diff --git a/mythtv/html/apps/backend/main.js b/mythtv/html/apps/backend/main.js
index 9f2b424ba6b..e2865483a57 100644
--- a/mythtv/html/apps/backend/main.js
+++ b/mythtv/html/apps/backend/main.js
@@ -1 +1 @@
-"use strict";(self.webpackChunkbackend=self.webpackChunkbackend||[]).push([[792],{153:()=>{function Mt(t){return"function"==typeof t}function ka(t){const e=t(n=>{Error.call(n),n.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const Lc=ka(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((n,i)=>`${i+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function lr(t,s){if(t){const e=t.indexOf(s);0<=e&&t.splice(e,1)}}class ti{constructor(s){this.initialTeardown=s,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let s;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:n}=this;if(Mt(n))try{n()}catch(o){s=o instanceof Lc?o.errors:[o]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const o of i)try{v1(o)}catch(r){s=s??[],r instanceof Lc?s=[...s,...r.errors]:s.push(r)}}if(s)throw new Lc(s)}}add(s){var e;if(s&&s!==this)if(this.closed)v1(s);else{if(s instanceof ti){if(s.closed||s._hasParent(this))return;s._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(s)}}_hasParent(s){const{_parentage:e}=this;return e===s||Array.isArray(e)&&e.includes(s)}_addParent(s){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(s),e):e?[e,s]:s}_removeParent(s){const{_parentage:e}=this;e===s?this._parentage=null:Array.isArray(e)&&lr(e,s)}remove(s){const{_finalizers:e}=this;e&&lr(e,s),s instanceof ti&&s._removeParent(this)}}ti.EMPTY=(()=>{const t=new ti;return t.closed=!0,t})();const _1=ti.EMPTY;function b1(t){return t instanceof ti||t&&"closed"in t&&Mt(t.remove)&&Mt(t.add)&&Mt(t.unsubscribe)}function v1(t){Mt(t)?t():t.unsubscribe()}const Io={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Rc={setTimeout(t,s,...e){const{delegate:n}=Rc;return n?.setTimeout?n.setTimeout(t,s,...e):setTimeout(t,s,...e)},clearTimeout(t){const{delegate:s}=Rc;return(s?.clearTimeout||clearTimeout)(t)},delegate:void 0};function C1(t){Rc.setTimeout(()=>{const{onUnhandledError:s}=Io;if(!s)throw t;s(t)})}function Oc(){}const bD=Zp("C",void 0,void 0);function Zp(t,s,e){return{kind:t,value:s,error:e}}let So=null;function Ac(t){if(Io.useDeprecatedSynchronousErrorHandling){const s=!So;if(s&&(So={errorThrown:!1,error:null}),t(),s){const{errorThrown:e,error:n}=So;if(So=null,e)throw n}}else t()}class Yp extends ti{constructor(s){super(),this.isStopped=!1,s?(this.destination=s,b1(s)&&s.add(this)):this.destination=SD}static create(s,e,n){return new Ea(s,e,n)}next(s){this.isStopped?eh(function CD(t){return Zp("N",t,void 0)}(s),this):this._next(s)}error(s){this.isStopped?eh(function vD(t){return Zp("E",void 0,t)}(s),this):(this.isStopped=!0,this._error(s))}complete(){this.isStopped?eh(bD,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(s){this.destination.next(s)}_error(s){try{this.destination.error(s)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const TD=Function.prototype.bind;function Xp(t,s){return TD.call(t,s)}class wD{constructor(s){this.partialObserver=s}next(s){const{partialObserver:e}=this;if(e.next)try{e.next(s)}catch(n){Pc(n)}}error(s){const{partialObserver:e}=this;if(e.error)try{e.error(s)}catch(n){Pc(n)}else Pc(s)}complete(){const{partialObserver:s}=this;if(s.complete)try{s.complete()}catch(e){Pc(e)}}}class Ea extends Yp{constructor(s,e,n){let i;if(super(),Mt(s)||!s)i={next:s??void 0,error:e??void 0,complete:n??void 0};else{let o;this&&Io.useDeprecatedNextContext?(o=Object.create(s),o.unsubscribe=()=>this.unsubscribe(),i={next:s.next&&Xp(s.next,o),error:s.error&&Xp(s.error,o),complete:s.complete&&Xp(s.complete,o)}):i=s}this.destination=new wD(i)}}function Pc(t){Io.useDeprecatedSynchronousErrorHandling?function yD(t){Io.useDeprecatedSynchronousErrorHandling&&So&&(So.errorThrown=!0,So.error=t)}(t):C1(t)}function eh(t,s){const{onStoppedNotification:e}=Io;e&&Rc.setTimeout(()=>e(t,s))}const SD={closed:!0,next:Oc,error:function ID(t){throw t},complete:Oc},th="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ws(t){return t}function y1(t){return 0===t.length?Ws:1===t.length?t[0]:function(e){return t.reduce((n,i)=>i(n),e)}}let It=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(e,n,i){const o=function MD(t){return t&&t instanceof Yp||function DD(t){return t&&Mt(t.next)&&Mt(t.error)&&Mt(t.complete)}(t)&&b1(t)}(e)?e:new Ea(e,n,i);return Ac(()=>{const{operator:r,source:u}=this;o.add(r?r.call(o,u):u?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(n){e.error(n)}}forEach(e,n){return new(n=T1(n))((i,o)=>{const r=new Ea({next:u=>{try{e(u)}catch(h){o(h),r.unsubscribe()}},error:o,complete:i});this.subscribe(r)})}_subscribe(e){var n;return null===(n=this.source)||void 0===n?void 0:n.subscribe(e)}[th](){return this}pipe(...e){return y1(e)(this)}toPromise(e){return new(e=T1(e))((n,i)=>{let o;this.subscribe(r=>o=r,r=>i(r),()=>n(o))})}}return t.create=s=>new t(s),t})();function T1(t){var s;return null!==(s=t??Io.Promise)&&void 0!==s?s:Promise}const kD=ka(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Qt=(()=>{class t extends It{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const n=new w1(this,this);return n.operator=e,n}_throwIfClosed(){if(this.closed)throw new kD}next(e){Ac(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const n of this.currentObservers)n.next(e)}})}error(e){Ac(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:n}=this;for(;n.length;)n.shift().error(e)}})}complete(){Ac(()=>{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:n,isStopped:i,observers:o}=this;return n||i?_1:(this.currentObservers=null,o.push(e),new ti(()=>{this.currentObservers=null,lr(o,e)}))}_checkFinalizedStatuses(e){const{hasError:n,thrownError:i,isStopped:o}=this;n?e.error(i):o&&e.complete()}asObservable(){const e=new It;return e.source=this,e}}return t.create=(s,e)=>new w1(s,e),t})();class w1 extends Qt{constructor(s,e){super(),this.destination=s,this.source=e}next(s){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===n||n.call(e,s)}error(s){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===n||n.call(e,s)}complete(){var s,e;null===(e=null===(s=this.destination)||void 0===s?void 0:s.complete)||void 0===e||e.call(s)}_subscribe(s){var e,n;return null!==(n=null===(e=this.source)||void 0===e?void 0:e.subscribe(s))&&void 0!==n?n:_1}}function I1(t){return Mt(t?.lift)}function cn(t){return s=>{if(I1(s))return s.lift(function(e){try{return t(e,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function sn(t,s,e,n,i){return new ED(t,s,e,n,i)}class ED extends Yp{constructor(s,e,n,i,o,r){super(s),this.onFinalize=o,this.shouldUnsubscribe=r,this._next=e?function(u){try{e(u)}catch(h){s.error(h)}}:super._next,this._error=i?function(u){try{i(u)}catch(h){s.error(h)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(u){s.error(u)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var s;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(s=this.onFinalize)||void 0===s||s.call(this))}}}function at(t,s){return cn((e,n)=>{let i=0;e.subscribe(sn(n,o=>{n.next(t.call(s,o,i++))}))})}function Ks(t){return this instanceof Ks?(this.v=t,this):new Ks(t)}function M1(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,s=t[Symbol.asyncIterator];return s?s.call(t):(t=function oh(t){var s="function"==typeof Symbol&&Symbol.iterator,e=s&&t[s],n=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(o){e[o]=t[o]&&function(r){return new Promise(function(u,h){!function i(o,r,u,h){Promise.resolve(h).then(function(b){o({value:b,done:u})},r)}(u,h,(r=t[o](r)).done,r.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const k1=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function E1(t){return Mt(t?.then)}function L1(t){return Mt(t[th])}function R1(t){return Symbol.asyncIterator&&Mt(t?.[Symbol.asyncIterator])}function O1(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 A1=function YD(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function P1(t){return Mt(t?.[A1])}function F1(t){return function D1(t,s,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,n=e.apply(t,s||[]),o=[];return i={},r("next"),r("throw"),r("return"),i[Symbol.asyncIterator]=function(){return this},i;function r(k){n[k]&&(i[k]=function(L){return new Promise(function(O,A){o.push([k,L,O,A])>1||u(k,L)})})}function u(k,L){try{!function h(k){k.value instanceof Ks?Promise.resolve(k.value.v).then(b,T):w(o[0][2],k)}(n[k](L))}catch(O){w(o[0][3],O)}}function b(k){u("next",k)}function T(k){u("throw",k)}function w(k,L){k(L),o.shift(),o.length&&u(o[0][0],o[0][1])}}(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:n,done:i}=yield Ks(e.read());if(i)return yield Ks(void 0);yield yield Ks(n)}}finally{e.releaseLock()}})}function N1(t){return Mt(t?.getReader)}function ni(t){if(t instanceof It)return t;if(null!=t){if(L1(t))return function XD(t){return new It(s=>{const e=t[th]();if(Mt(e.subscribe))return e.subscribe(s);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(k1(t))return function e4(t){return new It(s=>{for(let e=0;e{t.then(e=>{s.closed||(s.next(e),s.complete())},e=>s.error(e)).then(null,C1)})}(t);if(R1(t))return V1(t);if(P1(t))return function n4(t){return new It(s=>{for(const e of t)if(s.next(e),s.closed)return;s.complete()})}(t);if(N1(t))return function s4(t){return V1(F1(t))}(t)}throw O1(t)}function V1(t){return new It(s=>{(function o4(t,s){var e,n,i,o;return function S1(t,s,e,n){return new(e||(e=Promise))(function(o,r){function u(T){try{b(n.next(T))}catch(w){r(w)}}function h(T){try{b(n.throw(T))}catch(w){r(w)}}function b(T){T.done?o(T.value):function i(o){return o instanceof e?o:new e(function(r){r(o)})}(T.value).then(u,h)}b((n=n.apply(t,s||[])).next())})}(this,void 0,void 0,function*(){try{for(e=M1(t);!(n=yield e.next()).done;)if(s.next(n.value),s.closed)return}catch(r){i={error:r}}finally{try{n&&!n.done&&(o=e.return)&&(yield o.call(e))}finally{if(i)throw i.error}}s.complete()})})(t,s).catch(e=>s.error(e))})}function Is(t,s,e,n=0,i=!1){const o=s.schedule(function(){e(),i?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(o),!i)return o}function Tn(t,s,e=1/0){return Mt(s)?Tn((n,i)=>at((o,r)=>s(n,o,i,r))(ni(t(n,i))),e):("number"==typeof s&&(e=s),cn((n,i)=>function r4(t,s,e,n,i,o,r,u){const h=[];let b=0,T=0,w=!1;const k=()=>{w&&!h.length&&!b&&s.complete()},L=A=>b{o&&s.next(A),b++;let P=!1;ni(e(A,T++)).subscribe(sn(s,z=>{i?.(z),o?L(z):s.next(z)},()=>{P=!0},void 0,()=>{if(P)try{for(b--;h.length&&bO(z)):O(z)}k()}catch(z){s.error(z)}}))};return t.subscribe(sn(s,L,()=>{w=!0,k()})),()=>{u?.()}}(n,i,t,e)))}function cr(t=1/0){return Tn(Ws,t)}const ss=new It(t=>t.complete());function B1(t){return t&&Mt(t.schedule)}function rh(t){return t[t.length-1]}function H1(t){return Mt(rh(t))?t.pop():void 0}function La(t){return B1(rh(t))?t.pop():void 0}function G1(t,s=0){return cn((e,n)=>{e.subscribe(sn(n,i=>Is(n,t,()=>n.next(i),s),()=>Is(n,t,()=>n.complete(),s),i=>Is(n,t,()=>n.error(i),s)))})}function q1(t,s=0){return cn((e,n)=>{n.add(t.schedule(()=>e.subscribe(n),s))})}function z1(t,s){if(!t)throw new Error("Iterable cannot be null");return new It(e=>{Is(e,s,()=>{const n=t[Symbol.asyncIterator]();Is(e,s,()=>{n.next().then(i=>{i.done?e.complete():e.next(i.value)})},0,!0)})})}function hn(t,s){return s?function m4(t,s){if(null!=t){if(L1(t))return function c4(t,s){return ni(t).pipe(q1(s),G1(s))}(t,s);if(k1(t))return function d4(t,s){return new It(e=>{let n=0;return s.schedule(function(){n===t.length?e.complete():(e.next(t[n++]),e.closed||this.schedule())})})}(t,s);if(E1(t))return function u4(t,s){return ni(t).pipe(q1(s),G1(s))}(t,s);if(R1(t))return z1(t,s);if(P1(t))return function p4(t,s){return new It(e=>{let n;return Is(e,s,()=>{n=t[A1](),Is(e,s,()=>{let i,o;try{({value:i,done:o}=n.next())}catch(r){return void e.error(r)}o?e.complete():e.next(i)},0,!0)}),()=>Mt(n?.return)&&n.return()})}(t,s);if(N1(t))return function h4(t,s){return z1(F1(t),s)}(t,s)}throw O1(t)}(t,s):ni(t)}class Ii extends Qt{constructor(s){super(),this._value=s}get value(){return this.getValue()}_subscribe(s){const e=super._subscribe(s);return!e.closed&&s.next(this._value),e}getValue(){const{hasError:s,thrownError:e,_value:n}=this;if(s)throw e;return this._throwIfClosed(),n}next(s){super.next(this._value=s)}}function ue(...t){return hn(t,La(t))}function ah(t={}){const{connector:s=(()=>new Qt),resetOnError:e=!0,resetOnComplete:n=!0,resetOnRefCountZero:i=!0}=t;return o=>{let r,u,h,b=0,T=!1,w=!1;const k=()=>{u?.unsubscribe(),u=void 0},L=()=>{k(),r=h=void 0,T=w=!1},O=()=>{const A=r;L(),A?.unsubscribe()};return cn((A,P)=>{b++,!w&&!T&&k();const z=h=h??s();P.add(()=>{b--,0===b&&!w&&!T&&(u=lh(O,i))}),z.subscribe(P),!r&&b>0&&(r=new Ea({next:N=>z.next(N),error:N=>{w=!0,k(),u=lh(L,e,N),z.error(N)},complete:()=>{T=!0,k(),u=lh(L,n),z.complete()}}),ni(A).subscribe(r))})(o)}}function lh(t,s,...e){if(!0===s)return void t();if(!1===s)return;const n=new Ea({next:()=>{n.unsubscribe(),t()}});return ni(s(...e)).subscribe(n)}function ui(t,s){return cn((e,n)=>{let i=null,o=0,r=!1;const u=()=>r&&!i&&n.complete();e.subscribe(sn(n,h=>{i?.unsubscribe();let b=0;const T=o++;ni(t(h,T)).subscribe(i=sn(n,w=>n.next(s?s(h,w,T,b++):w),()=>{i=null,u()}))},()=>{r=!0,u()}))})}function _4(t,s){return t===s}function St(t){for(let s in t)if(t[s]===St)return s;throw Error("Could not find renamed property on target object.")}function Fc(t,s){for(const e in s)s.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=s[e])}function mn(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(mn).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const s=t.toString();if(null==s)return""+s;const e=s.indexOf("\n");return-1===e?s:s.substring(0,e)}function ch(t,s){return null==t||""===t?null===s?"":s:null==s||""===s?t:t+" "+s}const b4=St({__forward_ref__:St});function Ze(t){return t.__forward_ref__=Ze,t.toString=function(){return mn(this())},t}function Ee(t){return uh(t)?t():t}function uh(t){return"function"==typeof t&&t.hasOwnProperty(b4)&&t.__forward_ref__===Ze}function dh(t){return t&&!!t.\u0275providers}const U1="https://g.co/ng/security#xss";class $ extends Error{constructor(s,e){super(function Nc(t,s){return`NG0${Math.abs(t)}${s?": "+s:""}`}(s,e)),this.code=s}}function Oe(t){return"string"==typeof t?t:null==t?"":String(t)}function ph(t,s){throw new $(-201,!1)}function Si(t,s){null==t&&function Me(t,s,e,n){throw new Error(`ASSERTION ERROR: ${t}`+(null==n?"":` [Expected=> ${e} ${n} ${s} <=Actual]`))}(s,t,null,"!=")}function re(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 Vc(t){return j1(t,Hc)||j1(t,$1)}function j1(t,s){return t.hasOwnProperty(s)?t[s]:null}function Bc(t){return t&&(t.hasOwnProperty(hh)||t.hasOwnProperty(x4))?t[hh]:null}const Hc=St({\u0275prov:St}),hh=St({\u0275inj:St}),$1=St({ngInjectableDef:St}),x4=St({ngInjectorDef:St});var et=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}(et||{});let mh;function W1(){return mh}function ii(t){const s=mh;return mh=t,s}function K1(t,s,e){const n=Vc(t);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:e&et.Optional?null:void 0!==s?s:void ph(mn(t))}const Rt=globalThis;class le{constructor(s,e){this._desc=s,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=re({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Ra={},vh="__NG_DI_FLAG__",Gc="ngTempTokenPath",k4=/\n/gm,J1="__source";let ur;function Qs(t){const s=ur;return ur=t,s}function R4(t,s=et.Default){if(void 0===ur)throw new $(-203,!1);return null===ur?K1(t,void 0,s):ur.get(t,s&et.Optional?null:void 0,s)}function ie(t,s=et.Default){return(W1()||R4)(Ee(t),s)}function de(t,s=et.Default){return ie(t,qc(s))}function qc(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Ch(t){const s=[];for(let e=0;es){r=o-1;break}}}for(;oo?"":i[w+1].toLowerCase();const L=8&n?k:null;if(L&&-1!==eb(L,b,0)||2&n&&b!==k){if(Bi(n))return!1;r=!0}}}}else{if(!r&&!Bi(n)&&!Bi(h))return!1;if(r&&Bi(h))continue;r=!1,n=h|1&n}}return Bi(n)||r}function Bi(t){return 0==(1&t)}function B4(t,s,e,n){if(null===s)return-1;let i=0;if(n||!e){let o=!1;for(;i-1)for(e++;e0?'="'+u+'"':"")+"]"}else 8&n?i+="."+r:4&n&&(i+=" "+r);else""!==i&&!Bi(r)&&(s+=ab(o,i),i=""),n=r,o=o||!Bi(n);e++}return""!==i&&(s+=ab(o,i)),s}function U(t){return Ss(()=>{const s=cb(t),e={...s,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===zc.OnPush,directiveDefs:null,pipeDefs:null,dependencies:s.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||xi.Emulated,styles:t.styles||ht,_:null,schemas:t.schemas||null,tView:null,id:""};ub(e);const n=t.dependencies;return e.directiveDefs=jc(n,!1),e.pipeDefs=jc(n,!0),e.id=function Z4(t){let s=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 i of e)s=Math.imul(31,s)+i.charCodeAt(0)<<0;return s+=2147483648,"c"+s}(e),e})}function rs(t,s,e){const n=t.\u0275cmp;n.directiveDefs=jc(s,!1),n.pipeDefs=jc(e,!0)}function W4(t){return it(t)||Mn(t)}function K4(t){return null!==t}function ge(t){return Ss(()=>({type:t.type,bootstrap:t.bootstrap||ht,declarations:t.declarations||ht,imports:t.imports||ht,exports:t.exports||ht,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function lb(t,s){if(null==t)return os;const e={};for(const n in t)if(t.hasOwnProperty(n)){let i=t[n],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),e[i]=n,s&&(s[i]=o)}return e}function fe(t){return Ss(()=>{const s=cb(t);return ub(s),s})}function On(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 it(t){return t[Uc]||null}function Mn(t){return t[yh]||null}function jn(t){return t[Th]||null}function pi(t,s){const e=t[Y1]||null;if(!e&&!0===s)throw new Error(`Type ${mn(t)} does not have '\u0275mod' property.`);return e}function cb(t){const s={};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:s,inputTransforms:null,inputConfig:t.inputs||os,exportAs:t.exportAs||null,standalone:!0===t.standalone,signals:!0===t.signals,selectors:t.selectors||ht,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:lb(t.inputs,s),outputs:lb(t.outputs)}}function ub(t){t.features?.forEach(s=>s(t))}function jc(t,s){if(!t)return null;const e=s?jn:W4;return()=>("function"==typeof t?t():t).map(n=>e(n)).filter(K4)}const en=0,ce=1,Be=2,zt=3,Hi=4,Fa=5,An=6,pr=7,on=8,Js=9,hr=10,Ae=11,Na=12,db=13,mr=14,rn=15,Va=16,fr=17,as=18,Ba=19,pb=20,Zs=21,Ds=22,Ha=23,Ga=24,tt=25,Ih=1,hb=2,ls=7,gr=9,kn=11;function si(t){return Array.isArray(t)&&"object"==typeof t[Ih]}function $n(t){return Array.isArray(t)&&!0===t[Ih]}function Sh(t){return 0!=(4&t.flags)}function Do(t){return t.componentOffset>-1}function Wc(t){return 1==(1&t.flags)}function Gi(t){return!!t.template}function xh(t){return 0!=(512&t[Be])}function Mo(t,s){return t.hasOwnProperty(xs)?t[xs]:null}const Ys=Symbol("SIGNAL");function gb(t,s){return(null===t||"object"!=typeof t)&&Object.is(t,s)}let En=null,Kc=!1;function Di(t){const s=En;return En=t,s}const Qc={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 _b(t){if(Kc)throw new Error("");if(null===En)return;const s=En.nextProducerIndex++;_r(En),st.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function yb(t){_r(t);for(let s=0;s0}function _r(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function Ib(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}const Mh=Symbol("UNSET"),kh=Symbol("COMPUTING"),Xc=Symbol("ERRORED"),iM=(()=>({...Qc,value:Mh,dirty:!0,error:null,equal:gb,producerMustRecompute:t=>t.value===Mh||t.value===kh,producerRecomputeValue(t){if(t.value===kh)throw new Error("Detected cycle in computations.");const s=t.value;t.value=kh;const e=Jc(t);let n;try{n=t.computation()}catch(i){n=Xc,t.error=i}finally{Zc(t,e)}s!==Mh&&s!==Xc&&n!==Xc&&t.equal(s,n)?t.value=s:(t.value=n,t.version++)}}))();let Sb=function sM(){throw new Error};function Eh(){Sb()}let Lh=null;function br(t,s){const e=Object.create(rM);function n(){return _b(e),e.value}return e.value=t,s?.equal&&(e.equal=s.equal),n.set=Db,n.update=aM,n.mutate=lM,n.asReadonly=cM,n[Ys]=e,n}const rM=(()=>({...Qc,equal:gb,readonlyFn:void 0}))();function xb(t){t.version++,vb(t),Lh?.()}function Db(t){const s=this[Ys];Dh()||Eh(),s.equal(s.value,t)||(s.value=t,xb(s))}function aM(t){Dh()||Eh(),Db.call(this,t(this[Ys].value))}function lM(t){const s=this[Ys];Dh()||Eh(),t(s.value),xb(s)}function cM(){const t=this[Ys];if(void 0===t.readonlyFn){const s=()=>this();s[Ys]=t,t.readonlyFn=s}return t.readonlyFn}function Mb(t){const s=Di(null);try{return t()}finally{Di(s)}}const kb=()=>{},dM=(()=>({...Qc,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{t.schedule(t.ref)},hasRun:!1,cleanupFn:kb}))();class pM{constructor(s,e,n){this.previousValue=s,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function wn(){return Eb}function Eb(t){return t.type.prototype.ngOnChanges&&(t.setInput=mM),hM}function hM(){const t=Rb(this),s=t?.current;if(s){const e=t.previous;if(e===os)t.previous=s;else for(let n in s)e[n]=s[n];t.current=null,this.ngOnChanges(s)}}function mM(t,s,e,n){const i=this.declaredInputs[e],o=Rb(t)||function fM(t,s){return t[Lb]=s}(t,{previous:os,current:null}),r=o.current||(o.current={}),u=o.previous,h=u[i];r[i]=new pM(h&&h.currentValue,s,u===os),t[n]=s}wn.ngInherit=!0;const Lb="__ngSimpleChanges__";function Rb(t){return t[Lb]||null}const cs=function(t,s,e){};function Ot(t){for(;Array.isArray(t);)t=t[en];return t}function eu(t,s){return Ot(s[t])}function oi(t,s){return Ot(s[t.index])}function Pb(t,s){return t.data[s]}function vr(t,s){return t[s]}function hi(t,s){const e=s[t];return si(e)?e:e[en]}function Xs(t,s){return null==s?null:t[s]}function Fb(t){t[fr]=0}function yM(t){1024&t[Be]||(t[Be]|=1024,Vb(t,1))}function Nb(t){1024&t[Be]&&(t[Be]&=-1025,Vb(t,-1))}function Vb(t,s){let e=t[zt];if(null===e)return;e[Fa]+=s;let n=e;for(e=e[zt];null!==e&&(1===s&&1===n[Fa]||-1===s&&0===n[Fa]);)e[Fa]+=s,n=e,e=e[zt]}function Bb(t,s){if(256==(256&t[Be]))throw new $(911,!1);null===t[Zs]&&(t[Zs]=[]),t[Zs].push(s)}const ke={lFrame:Qb(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Gb(){return ke.bindingsEnabled}function Cr(){return null!==ke.skipHydrationRootTNode}function X(){return ke.lFrame.lView}function st(){return ke.lFrame.tView}function C(t){return ke.lFrame.contextLView=t,t[on]}function y(t){return ke.lFrame.contextLView=null,t}function Ln(){let t=qb();for(;null!==t&&64===t.type;)t=t.parent;return t}function qb(){return ke.lFrame.currentTNode}function us(t,s){const e=ke.lFrame;e.currentTNode=t,e.isParent=s}function Ah(){return ke.lFrame.isParent}function Ph(){ke.lFrame.isParent=!1}function Wn(){const t=ke.lFrame;let s=t.bindingRootIndex;return-1===s&&(s=t.bindingRootIndex=t.tView.bindingStartIndex),s}function Ms(){return ke.lFrame.bindingIndex}function yr(){return ke.lFrame.bindingIndex++}function ks(t){const s=ke.lFrame,e=s.bindingIndex;return s.bindingIndex=s.bindingIndex+t,e}function OM(t,s){const e=ke.lFrame;e.bindingIndex=e.bindingRootIndex=t,Fh(s)}function Fh(t){ke.lFrame.currentDirectiveIndex=t}function $b(){return ke.lFrame.currentQueryIndex}function Vh(t){ke.lFrame.currentQueryIndex=t}function PM(t){const s=t[ce];return 2===s.type?s.declTNode:1===s.type?t[An]:null}function Wb(t,s,e){if(e&et.SkipSelf){let i=s,o=t;for(;!(i=i.parent,null!==i||e&et.Host||(i=PM(o),null===i||(o=o[mr],10&i.type))););if(null===i)return!1;s=i,t=o}const n=ke.lFrame=Kb();return n.currentTNode=s,n.lView=t,!0}function Bh(t){const s=Kb(),e=t[ce];ke.lFrame=s,s.currentTNode=e.firstChild,s.lView=t,s.tView=e,s.contextLView=t,s.bindingIndex=e.bindingStartIndex,s.inI18n=!1}function Kb(){const t=ke.lFrame,s=null===t?null:t.child;return null===s?Qb(t):s}function Qb(t){const s={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=s),s}function Jb(){const t=ke.lFrame;return ke.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Zb=Jb;function Hh(){const t=Jb();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 Kn(){return ke.lFrame.selectedIndex}function ko(t){ke.lFrame.selectedIndex=t}function Jt(){const t=ke.lFrame;return Pb(t.tView,t.selectedIndex)}function lt(){ke.lFrame.currentNamespace="svg"}let Xb=!0;function tu(){return Xb}function eo(t){Xb=t}function nu(t,s){for(let e=s.directiveStart,n=s.directiveEnd;e=n)break}else s[h]<0&&(t[fr]+=65536),(u>13>16&&(3&t[Be])===s&&(t[Be]+=8192,tv(u,o)):tv(u,o)}const Tr=-1;class ja{constructor(s,e,n){this.factory=s,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function zh(t){return t!==Tr}function $a(t){return 32767&t}function Wa(t,s){let e=function $M(t){return t>>16}(t),n=s;for(;e>0;)n=n[mr],e--;return n}let Uh=!0;function ou(t){const s=Uh;return Uh=t,s}const nv=255,iv=5;let WM=0;const ds={};function ru(t,s){const e=sv(t,s);if(-1!==e)return e;const n=s[ce];n.firstCreatePass&&(t.injectorIndex=s.length,jh(n.data,t),jh(s,null),jh(n.blueprint,null));const i=au(t,s),o=t.injectorIndex;if(zh(i)){const r=$a(i),u=Wa(i,s),h=u[ce].data;for(let b=0;b<8;b++)s[o+b]=u[r+b]|h[r+b]}return s[o+8]=i,o}function jh(t,s){t.push(0,0,0,0,0,0,0,0,s)}function sv(t,s){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===s[t.injectorIndex+8]?-1:t.injectorIndex}function au(t,s){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,n=null,i=s;for(;null!==i;){if(n=dv(i),null===n)return Tr;if(e++,i=i[mr],-1!==n.injectorIndex)return n.injectorIndex|e<<16}return Tr}function $h(t,s,e){!function KM(t,s,e){let n;"string"==typeof e?n=e.charCodeAt(0)||0:e.hasOwnProperty(Aa)&&(n=e[Aa]),null==n&&(n=e[Aa]=WM++);const i=n&nv;s.data[t+(i>>iv)]|=1<=0?s&nv:XM:s}(e);if("function"==typeof o){if(!Wb(s,t,n))return n&et.Host?ov(i,0,n):rv(s,e,n,i);try{let r;if(r=o(n),null!=r||n&et.Optional)return r;ph()}finally{Zb()}}else if("number"==typeof o){let r=null,u=sv(t,s),h=Tr,b=n&et.Host?s[rn][An]:null;for((-1===u||n&et.SkipSelf)&&(h=-1===u?au(t,s):s[u+8],h!==Tr&&uv(n,!1)?(r=s[ce],u=$a(h),s=Wa(h,s)):u=-1);-1!==u;){const T=s[ce];if(cv(o,u,T.data)){const w=JM(u,s,e,r,n,b);if(w!==ds)return w}h=s[u+8],h!==Tr&&uv(n,s[ce].data[u+8]===b)&&cv(o,u,s)?(r=T,u=$a(h),s=Wa(h,s)):u=-1}}return i}function JM(t,s,e,n,i,o){const r=s[ce],u=r.data[t+8],T=lu(u,r,e,null==n?Do(u)&&Uh:n!=r&&0!=(3&u.type),i&et.Host&&o===u);return null!==T?Eo(s,r,T,u):ds}function lu(t,s,e,n,i){const o=t.providerIndexes,r=s.data,u=1048575&o,h=t.directiveStart,T=o>>20,k=i?u+T:t.directiveEnd;for(let L=n?u:u+T;L=h&&O.type===e)return L}if(i){const L=r[h];if(L&&Gi(L)&&L.type===e)return h}return null}function Eo(t,s,e,n){let i=t[e];const o=s.data;if(function zM(t){return t instanceof ja}(i)){const r=i;r.resolving&&function v4(t,s){const e=s?`. Dependency path: ${s.join(" > ")} > ${t}`:"";throw new $(-200,`Circular dependency in DI detected for ${t}${e}`)}(function yt(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Oe(t)}(o[e]));const u=ou(r.canSeeViewProviders);r.resolving=!0;const b=r.injectImpl?ii(r.injectImpl):null;Wb(t,n,et.Default);try{i=t[e]=r.factory(void 0,o,t,n),s.firstCreatePass&&e>=n.directiveStart&&function GM(t,s,e){const{ngOnChanges:n,ngOnInit:i,ngDoCheck:o}=s.type.prototype;if(n){const r=Eb(s);(e.preOrderHooks??=[]).push(t,r),(e.preOrderCheckHooks??=[]).push(t,r)}i&&(e.preOrderHooks??=[]).push(0-t,i),o&&((e.preOrderHooks??=[]).push(t,o),(e.preOrderCheckHooks??=[]).push(t,o))}(e,o[e],s)}finally{null!==b&&ii(b),ou(u),r.resolving=!1,Zb()}}return i}function cv(t,s,e){return!!(e[s+(t>>iv)]&1<{const s=t.prototype.constructor,e=s[xs]||Wh(s),n=Object.prototype;let i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==n;){const o=i[xs]||Wh(i);if(o&&o!==e)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function Wh(t){return uh(t)?()=>{const s=Wh(Ee(t));return s&&s()}:Mo(t)}function dv(t){const s=t[ce],e=s.type;return 2===e?s.declTNode:1===e?t[An]:null}const Ir="__parameters__";function xr(t,s,e){return Ss(()=>{const n=function Kh(t){return function(...e){if(t){const n=t(...e);for(const i in n)this[i]=n[i]}}}(s);function i(...o){if(this instanceof i)return n.apply(this,o),this;const r=new i(...o);return u.annotation=r,u;function u(h,b,T){const w=h.hasOwnProperty(Ir)?h[Ir]:Object.defineProperty(h,Ir,{value:[]})[Ir];for(;w.length<=T;)w.push(null);return(w[T]=w[T]||[]).push(r),h}}return e&&(i.prototype=Object.create(e.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}function Mr(t,s){t.forEach(e=>Array.isArray(e)?Mr(e,s):s(e))}function hv(t,s,e){s>=t.length?t.push(e):t.splice(s,0,e)}function uu(t,s){return s>=t.length-1?t.pop():t.splice(s,1)[0]}function Ja(t,s){const e=[];for(let n=0;n=0?t[1|n]=e:(n=~n,function ak(t,s,e,n){let i=t.length;if(i==s)t.push(e,n);else if(1===i)t.push(n,t[0]),t[0]=e;else{for(i--,t.push(t[i-1],t[i]);i>s;)t[i]=t[i-2],i--;t[s]=e,t[s+1]=n}}(t,n,s,e)),n}function Qh(t,s){const e=kr(t,s);if(e>=0)return t[1|e]}function kr(t,s){return function mv(t,s,e){let n=0,i=t.length>>e;for(;i!==n;){const o=n+(i-n>>1),r=t[o<s?i=o:n=o+1}return~(i<|^->||--!>|)/g,Ek="\u200b$1\u200b";const em=new Map;let Lk=0;const nm="__ngContext__";function Pn(t,s){si(s)?(t[nm]=s[Ba],function Ok(t){em.set(t[Ba],t)}(s)):t[nm]=s}let im;function sm(t,s){return im(t,s)}function Xa(t){const s=t[zt];return $n(s)?s[zt]:s}function Av(t){return Fv(t[Na])}function Pv(t){return Fv(t[Hi])}function Fv(t){for(;null!==t&&!$n(t);)t=t[Hi];return t}function Rr(t,s,e,n,i){if(null!=n){let o,r=!1;$n(n)?o=n:si(n)&&(r=!0,n=n[en]);const u=Ot(n);0===t&&null!==e?null==i?Hv(s,e,u):Lo(s,e,u,i||null,!0):1===t&&null!==e?Lo(s,e,u,i||null,!0):2===t?function Su(t,s,e){const n=wu(t,s);n&&function Yk(t,s,e,n){t.removeChild(s,e,n)}(t,n,s,e)}(s,u,r):3===t&&s.destroyNode(u),null!=o&&function tE(t,s,e,n,i){const o=e[ls];o!==Ot(e)&&Rr(s,t,n,o,i);for(let u=kn;us.replace(kk,Ek))}(s))}function yu(t,s,e){return t.createElement(s,e)}function Vv(t,s){const e=t[gr],n=e.indexOf(s);Nb(s),e.splice(n,1)}function Tu(t,s){if(t.length<=kn)return;const e=kn+s,n=t[e];if(n){const i=n[Va];null!==i&&i!==t&&Vv(i,n),s>0&&(t[e-1][Hi]=n[Hi]);const o=uu(t,kn+s);!function Uk(t,s){tl(t,s,s[Ae],2,null,null),s[en]=null,s[An]=null}(n[ce],n);const r=o[as];null!==r&&r.detachView(o[ce]),n[zt]=null,n[Hi]=null,n[Be]&=-129}return n}function rm(t,s){if(!(256&s[Be])){const e=s[Ae];s[Ha]&&Tb(s[Ha]),s[Ga]&&Tb(s[Ga]),e.destroyNode&&tl(t,s,e,3,null,null),function Wk(t){let s=t[Na];if(!s)return am(t[ce],t);for(;s;){let e=null;if(si(s))e=s[Na];else{const n=s[kn];n&&(e=n)}if(!e){for(;s&&!s[Hi]&&s!==t;)si(s)&&am(s[ce],s),s=s[zt];null===s&&(s=t),si(s)&&am(s[ce],s),e=s&&s[Hi]}s=e}}(s)}}function am(t,s){if(!(256&s[Be])){s[Be]&=-129,s[Be]|=256,function Zk(t,s){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let n=0;n=0?n[r]():n[-r].unsubscribe(),o+=2}else e[o].call(n[e[o+1]]);null!==n&&(s[pr]=null);const i=s[Zs];if(null!==i){s[Zs]=null;for(let o=0;o-1){const{encapsulation:o}=t.data[n.directiveStart+i];if(o===xi.None||o===xi.Emulated)return null}return oi(n,e)}}(t,s.parent,e)}function Lo(t,s,e,n,i){t.insertBefore(s,e,n,i)}function Hv(t,s,e){t.appendChild(s,e)}function Gv(t,s,e,n,i){null!==n?Lo(t,s,e,n,i):Hv(t,s,e)}function wu(t,s){return t.parentNode(s)}function qv(t,s,e){return Uv(t,s,e)}let cm,xu,hm,Du,Uv=function zv(t,s,e){return 40&t.type?oi(t,e):null};function Iu(t,s,e,n){const i=lm(t,n,s),o=s[Ae],u=qv(n.parent||s[An],n,s);if(null!=i)if(Array.isArray(e))for(let h=0;ht,createScript:t=>t,createScriptURL:t=>t})}catch{}return xu}()?.createHTML(t)||t}function Ar(){if(void 0!==hm)return hm;if(typeof document<"u")return document;throw new $(210,!1)}function mm(){if(void 0===Du&&(Du=null,Rt.trustedTypes))try{Du=Rt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Du}function Zv(t){return mm()?.createHTML(t)||t}function Xv(t){return mm()?.createScriptURL(t)||t}class Ro{constructor(s){this.changingThisBreaksApplicationSecurity=s}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${U1})`}}class lE extends Ro{getTypeName(){return"HTML"}}class cE extends Ro{getTypeName(){return"Style"}}class uE extends Ro{getTypeName(){return"Script"}}class dE extends Ro{getTypeName(){return"URL"}}class pE extends Ro{getTypeName(){return"ResourceURL"}}function fi(t){return t instanceof Ro?t.changingThisBreaksApplicationSecurity:t}function ps(t,s){const e=function hE(t){return t instanceof Ro&&t.getTypeName()||null}(t);if(null!=e&&e!==s){if("ResourceURL"===e&&"URL"===s)return!0;throw new Error(`Required a safe ${s}, got a ${e} (see ${U1})`)}return e===s}class vE{constructor(s){this.inertDocumentHelper=s}getInertBodyElement(s){s=""+s;try{const e=(new window.DOMParser).parseFromString(Or(s),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(s):(e.removeChild(e.firstChild),e)}catch{return null}}}class CE{constructor(s){this.defaultDoc=s,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(s){const e=this.inertDocument.createElement("template");return e.innerHTML=Or(s),e}}const TE=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Mu(t){return(t=String(t)).match(TE)?t:"unsafe:"+t}function Es(t){const s={};for(const e of t.split(","))s[e]=!0;return s}function nl(...t){const s={};for(const e of t)for(const n in e)e.hasOwnProperty(n)&&(s[n]=!0);return s}const tC=Es("area,br,col,hr,img,wbr"),nC=Es("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),iC=Es("rp,rt"),fm=nl(tC,nl(nC,Es("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),nl(iC,Es("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),nl(iC,nC)),gm=Es("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),sC=nl(gm,Es("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Es("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),wE=Es("script,style,template");class IE{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(s){let e=s.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let i=this.checkClobberedElement(e,e.nextSibling);if(i){e=i;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(s){const e=s.nodeName.toLowerCase();if(!fm.hasOwnProperty(e))return this.sanitizedSomething=!0,!wE.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=s.attributes;for(let i=0;i"),!0}endElement(s){const e=s.nodeName.toLowerCase();fm.hasOwnProperty(e)&&!tC.hasOwnProperty(e)&&(this.buf.push(""),this.buf.push(e),this.buf.push(">"))}chars(s){this.buf.push(oC(s))}checkClobberedElement(s,e){if(e&&(s.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${s.outerHTML}`);return e}}const SE=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,xE=/([^\#-~ |!])/g;function oC(t){return t.replace(/&/g,"&").replace(SE,function(s){return""+(1024*(s.charCodeAt(0)-55296)+(s.charCodeAt(1)-56320)+65536)+";"}).replace(xE,function(s){return""+s.charCodeAt(0)+";"}).replace(//g,">")}let ku;function rC(t,s){let e=null;try{ku=ku||function eC(t){const s=new CE(t);return function yE(){try{return!!(new window.DOMParser).parseFromString(Or(""),"text/html")}catch{return!1}}()?new vE(s):s}(t);let n=s?String(s):"";e=ku.getInertBodyElement(n);let i=5,o=n;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,n=o,o=e.innerHTML,e=ku.getInertBodyElement(n)}while(n!==o);return Or((new IE).sanitizeChildren(_m(e)||e))}finally{if(e){const n=_m(e)||e;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function _m(t){return"content"in t&&function DE(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var ki=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}(ki||{});function Zt(t){const s=il();return s?Zv(s.sanitize(ki.HTML,t)||""):ps(t,"HTML")?Zv(fi(t)):rC(Ar(),Oe(t))}function tn(t){const s=il();return s?s.sanitize(ki.URL,t)||"":ps(t,"URL")?fi(t):Mu(Oe(t))}function aC(t){const s=il();if(s)return Xv(s.sanitize(ki.RESOURCE_URL,t)||"");if(ps(t,"ResourceURL"))return Xv(fi(t));throw new $(904,!1)}function il(){const t=X();return t&&t[hr].sanitizer}const sl=new le("ENVIRONMENT_INITIALIZER"),cC=new le("INJECTOR",-1),uC=new le("INJECTOR_DEF_TYPES");class bm{get(s,e=Ra){if(e===Ra){const n=new Error(`NullInjectorError: No provider for ${mn(s)}!`);throw n.name="NullInjectorError",n}return e}}function OE(...t){return{\u0275providers:dC(0,t),\u0275fromNgModule:!0}}function dC(t,...s){const e=[],n=new Set;let i;const o=r=>{e.push(r)};return Mr(s,r=>{const u=r;Eu(u,o,[],n)&&(i||=[],i.push(u))}),void 0!==i&&pC(i,o),e}function pC(t,s){for(let e=0;e{s(o,n)})}}function Eu(t,s,e,n){if(!(t=Ee(t)))return!1;let i=null,o=Bc(t);const r=!o&&it(t);if(o||r){if(r&&!r.standalone)return!1;i=t}else{const h=t.ngModule;if(o=Bc(h),!o)return!1;i=h}const u=n.has(i);if(r){if(u)return!1;if(n.add(i),r.dependencies){const h="function"==typeof r.dependencies?r.dependencies():r.dependencies;for(const b of h)Eu(b,s,e,n)}}else{if(!o)return!1;{if(null!=o.imports&&!u){let b;n.add(i);try{Mr(o.imports,T=>{Eu(T,s,e,n)&&(b||=[],b.push(T))})}finally{}void 0!==b&&pC(b,s)}if(!u){const b=Mo(i)||(()=>new i);s({provide:i,useFactory:b,deps:ht},i),s({provide:uC,useValue:i,multi:!0},i),s({provide:sl,useValue:()=>ie(i),multi:!0},i)}const h=o.providers;if(null!=h&&!u){const b=t;Cm(h,T=>{s(T,b)})}}}return i!==t&&void 0!==t.providers}function Cm(t,s){for(let e of t)dh(e)&&(e=e.\u0275providers),Array.isArray(e)?Cm(e,s):s(e)}const AE=St({provide:String,useValue:St});function ym(t){return null!==t&&"object"==typeof t&&AE in t}function Oo(t){return"function"==typeof t}const Tm=new le("Set Injector scope."),Lu={},FE={};let wm;function Ru(){return void 0===wm&&(wm=new bm),wm}class gi{}class Pr extends gi{get destroyed(){return this._destroyed}constructor(s,e,n,i){super(),this.parent=e,this.source=n,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Sm(s,r=>this.processProvider(r)),this.records.set(cC,Fr(void 0,this)),i.has("environment")&&this.records.set(gi,Fr(void 0,this));const o=this.records.get(Tm);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(uC.multi,ht,et.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const e of this._ngOnDestroyHooks)e.ngOnDestroy();const s=this._onDestroyHooks;this._onDestroyHooks=[];for(const e of s)e()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(s){return this.assertNotDestroyed(),this._onDestroyHooks.push(s),()=>this.removeOnDestroy(s)}runInContext(s){this.assertNotDestroyed();const e=Qs(this),n=ii(void 0);try{return s()}finally{Qs(e),ii(n)}}get(s,e=Ra,n=et.Default){if(this.assertNotDestroyed(),s.hasOwnProperty(X1))return s[X1](this);n=qc(n);const o=Qs(this),r=ii(void 0);try{if(!(n&et.SkipSelf)){let h=this.records.get(s);if(void 0===h){const b=function GE(t){return"function"==typeof t||"object"==typeof t&&t instanceof le}(s)&&Vc(s);h=b&&this.injectableDefInScope(b)?Fr(Im(s),Lu):null,this.records.set(s,h)}if(null!=h)return this.hydrate(s,h)}return(n&et.Self?Ru():this.parent).get(s,e=n&et.Optional&&e===Ra?null:e)}catch(u){if("NullInjectorError"===u.name){if((u[Gc]=u[Gc]||[]).unshift(mn(s)),o)throw u;return function A4(t,s,e,n){const i=t[Gc];throw s[J1]&&i.unshift(s[J1]),t.message=function P4(t,s,e,n=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let i=mn(s);if(Array.isArray(s))i=s.map(mn).join(" -> ");else if("object"==typeof s){let o=[];for(let r in s)if(s.hasOwnProperty(r)){let u=s[r];o.push(r+":"+("string"==typeof u?JSON.stringify(u):mn(u)))}i=`{${o.join(", ")}}`}return`${e}${n?"("+n+")":""}[${i}]: ${t.replace(k4,"\n ")}`}("\n"+t.message,i,e,n),t.ngTokenPath=i,t[Gc]=null,t}(u,s,"R3InjectorError",this.source)}throw u}finally{ii(r),Qs(o)}}resolveInjectorInitializers(){const s=Qs(this),e=ii(void 0);try{const i=this.get(sl.multi,ht,et.Self);for(const o of i)o()}finally{Qs(s),ii(e)}}toString(){const s=[],e=this.records;for(const n of e.keys())s.push(mn(n));return`R3Injector[${s.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new $(205,!1)}processProvider(s){let e=Oo(s=Ee(s))?s:Ee(s&&s.provide);const n=function VE(t){return ym(t)?Fr(void 0,t.useValue):Fr(fC(t),Lu)}(s);if(Oo(s)||!0!==s.multi)this.records.get(e);else{let i=this.records.get(e);i||(i=Fr(void 0,Lu,!0),i.factory=()=>Ch(i.multi),this.records.set(e,i)),e=s,i.multi.push(s)}this.records.set(e,n)}hydrate(s,e){return e.value===Lu&&(e.value=FE,e.value=e.factory()),"object"==typeof e.value&&e.value&&function HE(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(s){if(!s.providedIn)return!1;const e=Ee(s.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(s){const e=this._onDestroyHooks.indexOf(s);-1!==e&&this._onDestroyHooks.splice(e,1)}}function Im(t){const s=Vc(t),e=null!==s?s.factory:Mo(t);if(null!==e)return e;if(t instanceof le)throw new $(204,!1);if(t instanceof Function)return function NE(t){const s=t.length;if(s>0)throw Ja(s,"?"),new $(204,!1);const e=function S4(t){return t&&(t[Hc]||t[$1])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new $(204,!1)}function fC(t,s,e){let n;if(Oo(t)){const i=Ee(t);return Mo(i)||Im(i)}if(ym(t))n=()=>Ee(t.useValue);else if(function mC(t){return!(!t||!t.useFactory)}(t))n=()=>t.useFactory(...Ch(t.deps||[]));else if(function hC(t){return!(!t||!t.useExisting)}(t))n=()=>ie(Ee(t.useExisting));else{const i=Ee(t&&(t.useClass||t.provide));if(!function BE(t){return!!t.deps}(t))return Mo(i)||Im(i);n=()=>new i(...Ch(t.deps))}return n}function Fr(t,s,e=!1){return{factory:t,value:s,multi:e?[]:void 0}}function Sm(t,s){for(const e of t)Array.isArray(e)?Sm(e,s):e&&dh(e)?Sm(e.\u0275providers,s):s(e)}const Ou=new le("AppId",{providedIn:"root",factory:()=>qE}),qE="ng",gC=new le("Platform Initializer"),gn=new le("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),_C=new le("AnimationModuleType"),bC=new le("CSP nonce",{providedIn:"root",factory:()=>Ar().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let vC=(t,s,e)=>null;function Om(t,s,e=!1){return vC(t,s,e)}class YE{}class TC{}class e5{resolveComponentFactory(s){throw function XE(t){const s=Error(`No component factory found for ${mn(t)}.`);return s.ngComponent=t,s}(s)}}let Bu=(()=>{class t{static#e=this.NULL=new e5}return t})();function t5(){return Br(Ln(),X())}function Br(t,s){return new Pe(oi(t,s))}let Pe=(()=>{class t{constructor(e){this.nativeElement=e}static#e=this.__NG_ELEMENT_ID__=t5}return t})();function n5(t){return t instanceof Pe?t.nativeElement:t}class al{}let Vt=(()=>{class t{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function s5(){const t=X(),e=hi(Ln().index,t);return(si(e)?e:t)[Ae]}()}return t})(),o5=(()=>{class t{static#e=this.\u0275prov=re({token:t,providedIn:"root",factory:()=>null})}return t})();class ll{constructor(s){this.full=s,this.major=s.split(".")[0],this.minor=s.split(".")[1],this.patch=s.split(".").slice(2).join(".")}}const r5=new ll("16.2.12"),Fm={};function DC(t,s=null,e=null,n){const i=MC(t,s,e,n);return i.resolveInjectorInitializers(),i}function MC(t,s=null,e=null,n,i=new Set){const o=[e||ht,OE(t)];return n=n||("object"==typeof t?void 0:mn(t)),new Pr(o,s||Ru(),n||null,i)}let Fn=(()=>{class t{static#e=this.THROW_IF_NOT_FOUND=Ra;static#t=this.NULL=new bm;static create(e,n){if(Array.isArray(e))return DC({name:""},n,e,"");{const i=e.name??"";return DC({name:i},e.parent,e.providers,i)}}static#n=this.\u0275prov=re({token:t,providedIn:"any",factory:()=>ie(cC)});static#i=this.__NG_ELEMENT_ID__=-1}return t})();function Vm(t){return t.ngOriginalError}class Ls{constructor(){this._console=console}handleError(s){const e=this._findOriginalError(s);this._console.error("ERROR",s),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(s){let e=s&&Vm(s);for(;e&&Vm(e);)e=Vm(e);return e||null}}let Hu=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=h5;static#t=this.__NG_ENV_ID__=e=>e}return t})();class p5 extends Hu{constructor(s){super(),this._lView=s}onDestroy(s){return Bb(this._lView,s),()=>function TM(t,s){if(null===t[Zs])return;const e=t[Zs].indexOf(s);-1!==e&&t[Zs].splice(e,1)}(this._lView,s)}}function h5(){return new p5(X())}function Bm(t){return s=>{setTimeout(t,void 0,s)}}const q=class m5 extends Qt{constructor(s=!1){super(),this.__isAsync=s}emit(s){super.next(s)}subscribe(s,e,n){let i=s,o=e||(()=>null),r=n;if(s&&"object"==typeof s){const h=s;i=h.next?.bind(h),o=h.error?.bind(h),r=h.complete?.bind(h)}this.__isAsync&&(o=Bm(o),i&&(i=Bm(i)),r&&(r=Bm(r)));const u=super.subscribe({next:i,error:o,complete:r});return s instanceof ti&&s.add(u),u}};function EC(...t){}class je{constructor({enableLongStackTrace:s=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new q(!1),this.onMicrotaskEmpty=new q(!1),this.onStable=new q(!1),this.onError=new q(!1),typeof Zone>"u")throw new $(908,!1);Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),s&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&e,i.shouldCoalesceRunChangeDetection=n,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function f5(){const t="function"==typeof Rt.requestAnimationFrame;let s=Rt[t?"requestAnimationFrame":"setTimeout"],e=Rt[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&s&&e){const n=s[Zone.__symbol__("OriginalDelegate")];n&&(s=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:s,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function b5(t){const s=()=>{!function _5(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Rt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Gm(t),t.isCheckStableRunning=!0,Hm(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Gm(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,i,o,r,u)=>{if(function C5(t){return!(!Array.isArray(t)||1!==t.length)&&!0===t[0].data?.__ignore_ng_zone__}(u))return e.invokeTask(i,o,r,u);try{return LC(t),e.invokeTask(i,o,r,u)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&s(),RC(t)}},onInvoke:(e,n,i,o,r,u,h)=>{try{return LC(t),e.invoke(i,o,r,u,h)}finally{t.shouldCoalesceRunChangeDetection&&s(),RC(t)}},onHasTask:(e,n,i,o)=>{e.hasTask(i,o),n===i&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,Gm(t),Hm(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,n,i,o)=>(e.handleError(i,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}(i)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!je.isInAngularZone())throw new $(909,!1)}static assertNotInAngularZone(){if(je.isInAngularZone())throw new $(909,!1)}run(s,e,n){return this._inner.run(s,e,n)}runTask(s,e,n,i){const o=this._inner,r=o.scheduleEventTask("NgZoneEvent: "+i,s,g5,EC,EC);try{return o.runTask(r,e,n)}finally{o.cancelTask(r)}}runGuarded(s,e,n){return this._inner.runGuarded(s,e,n)}runOutsideAngular(s){return this._outer.run(s)}}const g5={};function Hm(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 Gm(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function LC(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function RC(t){t._nesting--,Hm(t)}class v5{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new q,this.onMicrotaskEmpty=new q,this.onStable=new q,this.onError=new q}run(s,e,n){return s.apply(e,n)}runGuarded(s,e,n){return s.apply(e,n)}runOutsideAngular(s){return s()}runTask(s,e,n,i){return s.apply(e,n)}}const OC=new le("",{providedIn:"root",factory:AC});function AC(){const t=de(je);let s=!0;return function f4(...t){const s=La(t),e=function l4(t,s){return"number"==typeof rh(t)?t.pop():s}(t,1/0),n=t;return n.length?1===n.length?ni(n[0]):cr(e)(hn(n,s)):ss}(new It(i=>{s=t.isStable&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks,t.runOutsideAngular(()=>{i.next(s),i.complete()})}),new It(i=>{let o;t.runOutsideAngular(()=>{o=t.onStable.subscribe(()=>{je.assertNotInAngularZone(),queueMicrotask(()=>{!s&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks&&(s=!0,i.next(!0))})})});const r=t.onUnstable.subscribe(()=>{je.assertInAngularZone(),s&&(s=!1,t.runOutsideAngular(()=>{i.next(!1)}))});return()=>{o.unsubscribe(),r.unsubscribe()}}).pipe(ah()))}function Nn(t){return t.ownerDocument.defaultView}function PC(t){return t.ownerDocument}function Rs(t){return t instanceof Function?t():t}let qm=(()=>{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=re({token:t,providedIn:"root",factory:()=>new t})}return t})();function cl(t){for(;t;){t[Be]|=64;const s=Xa(t);if(xh(t)&&!s)return t;t=s}return null}const HC=new le("",{providedIn:"root",factory:()=>!1});let qu=null;function UC(t,s){return t[s]??WC()}function jC(t,s){const e=WC();e.producerNode?.length&&(t[s]=qu,e.lView=t,qu=$C())}const M5={...Qc,consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{cl(t.lView)},lView:null};function $C(){return Object.create(M5)}function WC(){return qu??=$C(),qu}const Ve={};function a(t){KC(st(),X(),Kn()+t,!1)}function KC(t,s,e,n){if(!n)if(3==(3&s[Be])){const o=t.preOrderCheckHooks;null!==o&&iu(s,o,e)}else{const o=t.preOrderHooks;null!==o&&su(s,o,0,e)}ko(e)}function M(t,s=et.Default){const e=X();return null===e?ie(t,s):av(Ln(),e,Ee(t),s)}function zu(t,s,e,n,i,o,r,u,h,b,T){const w=s.blueprint.slice();return w[en]=i,w[Be]=140|n,(null!==b||t&&2048&t[Be])&&(w[Be]|=2048),Fb(w),w[zt]=w[mr]=t,w[on]=e,w[hr]=r||t&&t[hr],w[Ae]=u||t&&t[Ae],w[Js]=h||t&&t[Js]||null,w[An]=o,w[Ba]=function Rk(){return Lk++}(),w[Ds]=T,w[pb]=b,w[rn]=2==s.type?t[rn]:w,w}function qr(t,s,e,n,i){let o=t.data[s];if(null===o)o=function zm(t,s,e,n,i){const o=qb(),r=Ah(),h=t.data[s]=function F5(t,s,e,n,i,o){let r=s?s.injectorIndex:-1,u=0;return Cr()&&(u|=128),{type:e,index:n,insertBeforeIndex:null,injectorIndex:r,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:u,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:s,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,r?o:o&&o.parent,e,s,n,i);return null===t.firstChild&&(t.firstChild=h),null!==o&&(r?null==o.child&&null!==h.parent&&(o.child=h):null===o.next&&(o.next=h,h.prev=o)),h}(t,s,e,n,i),function RM(){return ke.lFrame.inI18n}()&&(o.flags|=32);else if(64&o.type){o.type=e,o.value=n,o.attrs=i;const r=function Ua(){const t=ke.lFrame,s=t.currentTNode;return t.isParent?s:s.parent}();o.injectorIndex=null===r?-1:r.injectorIndex}return us(o,!0),o}function ul(t,s,e,n){if(0===e)return-1;const i=s.length;for(let o=0;ott&&KC(t,s,tt,!1),cs(u?2:0,i);const b=u?o:null,T=Jc(b);try{null!==b&&(b.dirty=!1),e(n,i)}finally{Zc(b,T)}}finally{u&&null===s[Ha]&&jC(s,Ha),ko(r),cs(u?3:1,i)}}function Um(t,s,e){if(Sh(s)){const n=Di(null);try{const o=s.directiveEnd;for(let r=s.directiveStart;rnull;function XC(t,s,e,n){for(let i in t)if(t.hasOwnProperty(i)){e=null===e?{}:e;const o=t[i];null===n?e0(e,s,i,o):n.hasOwnProperty(i)&&e0(e,s,n[i],o)}return e}function e0(t,s,e,n){t.hasOwnProperty(e)?t[e].push(s,n):t[e]=[s,n]}function _i(t,s,e,n,i,o,r,u){const h=oi(s,e);let T,b=s.inputs;!u&&null!=b&&(T=b[n])?(Ym(t,e,T,n,i),Do(s)&&function B5(t,s){const e=hi(s,t);16&e[Be]||(e[Be]|=64)}(e,s.index)):3&s.type&&(n=function V5(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(n),i=null!=r?r(i,s.value||"",n):i,o.setProperty(h,n,i))}function Km(t,s,e,n){if(Gb()){const i=null===n?null:{"":-1},o=function j5(t,s){const e=t.directiveRegistry;let n=null,i=null;if(e)for(let o=0;o0;){const e=t[--s];if("number"==typeof e&&e<0)return e}return 0})(r)!=u&&r.push(u),r.push(e,n,o)}}(t,s,n,ul(t,e,i.hostVars,Ve),i)}function hs(t,s,e,n,i,o){const r=oi(t,s);!function Jm(t,s,e,n,i,o,r){if(null==o)t.removeAttribute(s,i,e);else{const u=null==r?Oe(o):r(o,n||"",i);t.setAttribute(s,i,u,e)}}(s[Ae],r,o,t.value,e,n,i)}function Z5(t,s,e,n,i,o){const r=o[s];if(null!==r)for(let u=0;u{class t{constructor(){this.all=new Set,this.queue=new Map}create(e,n,i){const o=typeof Zone>"u"?null:Zone.current,r=function uM(t,s,e){const n=Object.create(dM);e&&(n.consumerAllowSignalWrites=!0),n.fn=t,n.schedule=s;const i=r=>{n.cleanupFn=r};return n.ref={notify:()=>Cb(n),run:()=>{if(n.dirty=!1,n.hasRun&&!yb(n))return;n.hasRun=!0;const r=Jc(n);try{n.cleanupFn(),n.cleanupFn=kb,n.fn(i)}finally{Zc(n,r)}},cleanup:()=>n.cleanupFn()},n.ref}(e,b=>{this.all.has(b)&&this.queue.set(b,o)},i);let u;this.all.add(r),r.notify();const h=()=>{r.cleanup(),u?.(),this.all.delete(r),this.queue.delete(r)};return u=n?.onDestroy(h),{destroy:h}}flush(){if(0!==this.queue.size)for(const[e,n]of this.queue)this.queue.delete(e),n?n.run(()=>e.run()):e.run()}get isQueueEmpty(){return 0===this.queue.size}static#e=this.\u0275prov=re({token:t,providedIn:"root",factory:()=>new t})}return t})();function p0(t,s){!s?.injector&&function Nm(t){if(!W1()&&!function L4(){return ur}())throw new $(-203,!1)}();const e=s?.injector??de(Fn),n=e.get(d0),i=!0!==s?.manualCleanup?e.get(Hu):null;return n.create(t,i,!!s?.allowSignalWrites)}function ju(t,s,e){let n=e?t.styles:null,i=e?t.classes:null,o=0;if(null!==s)for(let r=0;r0){f0(t,1);const i=e.components;null!==i&&_0(t,i,1)}}function _0(t,s,e){for(let n=0;n-1&&(Tu(s,n),uu(e,n))}this._attachedToViewContainer=!1}rm(this._lView[ce],this._lView)}onDestroy(s){Bb(this._lView,s)}markForCheck(){cl(this._cdRefInjectingView||this._lView)}detach(){this._lView[Be]&=-129}reattach(){this._lView[Be]|=128}detectChanges(){$u(this._lView[ce],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new $(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function $k(t,s){tl(t,s,s[Ae],2,null,null)}(this._lView[ce],this._lView)}attachToAppRef(s){if(this._attachedToViewContainer)throw new $(902,!1);this._appRef=s}}class o6 extends pl{constructor(s){super(s),this._view=s}detectChanges(){const s=this._view;$u(s[ce],s,s[on],!1)}checkNoChanges(){}get context(){return null}}class b0 extends Bu{constructor(s){super(),this.ngModule=s}resolveComponentFactory(s){const e=it(s);return new hl(e,this.ngModule)}}function v0(t){const s=[];for(let e in t)t.hasOwnProperty(e)&&s.push({propName:t[e],templateName:e});return s}class a6{constructor(s,e){this.injector=s,this.parentInjector=e}get(s,e,n){n=qc(n);const i=this.injector.get(s,Fm,n);return i!==Fm||e===Fm?i:this.parentInjector.get(s,e,n)}}class hl extends TC{get inputs(){const s=this.componentDef,e=s.inputTransforms,n=v0(s.inputs);if(null!==e)for(const i of n)e.hasOwnProperty(i.propName)&&(i.transform=e[i.propName]);return n}get outputs(){return v0(this.componentDef.outputs)}constructor(s,e){super(),this.componentDef=s,this.ngModule=e,this.componentType=s.type,this.selector=function j4(t){return t.map(U4).join(",")}(s.selectors),this.ngContentSelectors=s.ngContentSelectors?s.ngContentSelectors:[],this.isBoundToModule=!!e}create(s,e,n,i){let o=(i=i||this.ngModule)instanceof gi?i:i?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const r=o?new a6(s,o):s,u=r.get(al,null);if(null===u)throw new $(407,!1);const w={rendererFactory:u,sanitizer:r.get(o5,null),effectManager:r.get(d0,null),afterRenderEventManager:r.get(qm,null)},k=u.createRenderer(null,this.componentDef),L=this.componentDef.selectors[0][0]||"div",O=n?function L5(t,s,e,n){const o=n.get(HC,!1)||e===xi.ShadowDom,r=t.selectRootElement(s,o);return function R5(t){YC(t)}(r),r}(k,n,this.componentDef.encapsulation,r):yu(k,L,function r6(t){const s=t.toLowerCase();return"svg"===s?"svg":"math"===s?"math":null}(L)),z=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let N=null;null!==O&&(N=Om(O,r,!0));const ee=Wm(0,null,null,1,0,null,null,null,null,null,null),oe=zu(null,ee,null,z,null,null,w,k,r,null,N);let be,Je;Bh(oe);try{const Ct=this.componentDef;let Lt,qt=null;Ct.findHostDirectiveDefs?(Lt=[],qt=new Map,Ct.findHostDirectiveDefs(Ct,Lt,qt),Lt.push(Ct)):Lt=[Ct];const Rn=function c6(t,s){const e=t[ce],n=tt;return t[n]=s,qr(e,n,2,"#host",null)}(oe,O),Qp=function u6(t,s,e,n,i,o,r){const u=i[ce];!function d6(t,s,e,n){for(const i of t)s.mergedAttrs=Pa(s.mergedAttrs,i.hostAttrs);null!==s.mergedAttrs&&(ju(s,s.mergedAttrs,!0),null!==e&&Jv(n,e,s))}(n,t,s,r);let h=null;null!==s&&(h=Om(s,i[Js]));const b=o.rendererFactory.createRenderer(s,e);let T=16;e.signals?T=4096:e.onPush&&(T=64);const w=zu(i,ZC(e),null,T,i[t.index],t,o,b,null,null,h);return u.firstCreatePass&&Qm(u,t,n.length-1),Uu(i,w),i[t.index]=w}(Rn,O,Ct,Lt,oe,w,k);Je=Pb(ee,tt),O&&function h6(t,s,e,n){if(n)wh(t,e,["ng-version",r5.full]);else{const{attrs:i,classes:o}=function $4(t){const s=[],e=[];let n=1,i=2;for(;n0&&Qv(t,e,o.join(" "))}}(k,Ct,O,n),void 0!==e&&function m6(t,s,e){const n=t.projection=[];for(let i=0;i=0;n--){const i=t[n];i.hostVars=s+=i.hostVars,i.hostAttrs=Pa(i.hostAttrs,e=Pa(e,i.hostAttrs))}}(n)}function Wu(t){return t===os?{}:t===ht?[]:t}function _6(t,s){const e=t.viewQuery;t.viewQuery=e?(n,i)=>{s(n,i),e(n,i)}:s}function b6(t,s){const e=t.contentQueries;t.contentQueries=e?(n,i,o)=>{s(n,i,o),e(n,i,o)}:s}function v6(t,s){const e=t.hostBindings;t.hostBindings=e?(n,i)=>{s(n,i),e(n,i)}:s}function I0(t){const s=t.inputConfig,e={};for(const n in s)if(s.hasOwnProperty(n)){const i=s[n];Array.isArray(i)&&i[2]&&(e[n]=i[2])}t.inputTransforms=e}function Ku(t){return!!ef(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function ef(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function ms(t,s,e){return t[s]=e}function ml(t,s){return t[s]}function Vn(t,s,e){return!Object.is(t[s],e)&&(t[s]=e,!0)}function Ao(t,s,e,n){const i=Vn(t,s,e);return Vn(t,s+1,n)||i}function Qu(t,s,e,n,i){const o=Ao(t,s,e,n);return Vn(t,s+2,i)||o}function Ei(t,s,e,n,i,o){const r=Ao(t,s,e,n);return Ao(t,s+2,i,o)||r}function F(t,s,e,n){const i=X();return Vn(i,yr(),s)&&(st(),hs(Jt(),i,t,s,e,n)),F}function Ur(t,s,e,n){return Vn(t,yr(),e)?s+Oe(e)+n:Ve}function jr(t,s,e,n,i,o){const u=Ao(t,Ms(),e,i);return ks(2),u?s+Oe(e)+n+Oe(i)+o:Ve}function m(t,s,e,n,i,o,r,u){const h=X(),b=st(),T=t+tt,w=b.firstCreatePass?function U6(t,s,e,n,i,o,r,u,h){const b=s.consts,T=qr(s,t,4,r||null,Xs(b,u));Km(s,e,T,Xs(b,h)),nu(s,T);const w=T.tView=Wm(2,T,n,i,o,s.directiveRegistry,s.pipeRegistry,null,s.schemas,b,null);return null!==s.queries&&(s.queries.template(s,T),w.queries=s.queries.embeddedTView(T)),T}(T,b,h,s,e,n,i,o,r):b.data[T];us(w,!1);const k=N0(b,h,w,t);tu()&&Iu(b,h,k,w),Pn(k,h),Uu(h,h[T]=o0(k,h,k,w)),Wc(w)&&jm(b,h,w),null!=r&&$m(h,w,u)}let N0=function V0(t,s,e,n){return eo(!0),s[Ae].createComment("")};function B(t){return vr(function LM(){return ke.lFrame.contextLView}(),tt+t)}function d(t,s,e){const n=X();return Vn(n,yr(),s)&&_i(st(),Jt(),n,t,s,n[Ae],e,!1),d}function lf(t,s,e,n,i){const r=i?"class":"style";Ym(t,e,s.inputs[r],r,n)}function l(t,s,e,n){const i=X(),o=st(),r=tt+t,u=i[Ae],h=o.firstCreatePass?function K6(t,s,e,n,i,o){const r=s.consts,h=qr(s,t,2,n,Xs(r,i));return Km(s,e,h,Xs(r,o)),null!==h.attrs&&ju(h,h.attrs,!1),null!==h.mergedAttrs&&ju(h,h.mergedAttrs,!0),null!==s.queries&&s.queries.elementStart(s,h),h}(r,o,i,s,e,n):o.data[r],b=B0(o,i,h,u,s,t);i[r]=b;const T=Wc(h);return us(h,!0),Jv(u,b,h),32!=(32&h.flags)&&tu()&&Iu(o,i,b,h),0===function wM(){return ke.lFrame.elementDepthCount}()&&Pn(b,i),function IM(){ke.lFrame.elementDepthCount++}(),T&&(jm(o,i,h),Um(o,h,i)),null!==n&&$m(i,h),l}function c(){let t=Ln();Ah()?Ph():(t=t.parent,us(t,!1));const s=t;(function xM(t){return ke.skipHydrationRootTNode===t})(s)&&function EM(){ke.skipHydrationRootTNode=null}(),function SM(){ke.lFrame.elementDepthCount--}();const e=st();return e.firstCreatePass&&(nu(e,t),Sh(t)&&e.queries.elementEnd(t)),null!=s.classesWithoutHost&&function UM(t){return 0!=(8&t.flags)}(s)&&lf(e,s,X(),s.classesWithoutHost,!0),null!=s.stylesWithoutHost&&function jM(t){return 0!=(16&t.flags)}(s)&&lf(e,s,X(),s.stylesWithoutHost,!1),c}function D(t,s,e,n){return l(t,s,e,n),c(),D}let B0=(t,s,e,n,i,o)=>(eo(!0),yu(n,i,function Yb(){return ke.lFrame.currentNamespace}()));function Q(t,s,e){const n=X(),i=st(),o=t+tt,r=i.firstCreatePass?function Z6(t,s,e,n,i){const o=s.consts,r=Xs(o,n),u=qr(s,t,8,"ng-container",r);return null!==r&&ju(u,r,!0),Km(s,e,u,Xs(o,i)),null!==s.queries&&s.queries.elementStart(s,u),u}(o,i,n,s,e):i.data[o];us(r,!0);const u=H0(i,n,r,t);return n[o]=u,tu()&&Iu(i,n,u,r),Pn(u,n),Wc(r)&&(jm(i,n,r),Um(i,r,n)),null!=e&&$m(n,r),Q}function J(){let t=Ln();const s=st();return Ah()?Ph():(t=t.parent,us(t,!1)),s.firstCreatePass&&(nu(s,t),Sh(t)&&s.queries.elementEnd(t)),J}function Z(t,s,e){return Q(t,s,e),J(),Z}let H0=(t,s,e,n)=>(eo(!0),om(s[Ae],""));function E(){return X()}function bl(t){return!!t&&"function"==typeof t.then}function G0(t){return!!t&&"function"==typeof t.subscribe}function v(t,s,e,n){const i=X(),o=st(),r=Ln();return function z0(t,s,e,n,i,o,r){const u=Wc(n),b=t.firstCreatePass&&l0(t),T=s[on],w=a0(s);let k=!0;if(3&n.type||r){const A=oi(n,s),P=r?r(A):A,z=w.length,N=r?oe=>r(Ot(oe[n.index])):n.index;let ee=null;if(!r&&u&&(ee=function e7(t,s,e,n){const i=t.cleanup;if(null!=i)for(let o=0;oh?u[h]:null}"string"==typeof r&&(o+=2)}return null}(t,s,i,n.index)),null!==ee)(ee.__ngLastListenerFn__||ee).__ngNextListenerFn__=o,ee.__ngLastListenerFn__=o,k=!1;else{o=j0(n,s,T,o,!1);const oe=e.listen(P,i,o);w.push(o,oe),b&&b.push(i,N,z,z+1)}}else o=j0(n,s,T,o,!1);const L=n.outputs;let O;if(k&&null!==L&&(O=L[i])){const A=O.length;if(A)for(let P=0;P-1?hi(t.index,s):s);let h=U0(s,e,n,r),b=o.__ngNextListenerFn__;for(;b;)h=U0(s,e,b,r)&&h,b=b.__ngNextListenerFn__;return i&&!1===h&&r.preventDefault(),h}}function p(t=1){return function FM(t){return(ke.lFrame.contextLView=function NM(t,s){for(;t>0;)s=s[mr],t--;return s}(t,ke.lFrame.contextLView))[on]}(t)}function t7(t,s){let e=null;const n=function H4(t){const s=t.attrs;if(null!=s){const e=s.indexOf(5);if(!(1&e))return s[e+1]}return null}(t);for(let i=0;i>17&32767}function cf(t){return 2|t}function Po(t){return(131068&t)>>2}function uf(t,s){return-131069&t|s<<2}function df(t){return 1|t}function X0(t,s,e,n,i){const o=t[e+1],r=null===s;let u=n?no(o):Po(o),h=!1;for(;0!==u&&(!1===h||r);){const T=t[u+1];a7(t[u],s)&&(h=!0,t[u+1]=n?df(T):cf(T)),u=n?no(T):Po(T)}h&&(t[e+1]=n?cf(o):df(o))}function a7(t,s){return null===t||null==s||(Array.isArray(t)?t[1]:t)===s||!(!Array.isArray(t)||"string"!=typeof s)&&kr(t,s)>=0}const bn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function ey(t){return t.substring(bn.key,bn.keyEnd)}function l7(t){return t.substring(bn.value,bn.valueEnd)}function ty(t,s){const e=bn.textEnd;return e===s?-1:(s=bn.keyEnd=function d7(t,s,e){for(;s32;)s++;return s}(t,bn.key=s,e),Yr(t,s,e))}function ny(t,s){const e=bn.textEnd;let n=bn.key=Yr(t,s,e);return e===n?-1:(n=bn.keyEnd=function p7(t,s,e){let n;for(;s=65&&(-33&n)<=90||n>=48&&n<=57);)s++;return s}(t,n,e),n=sy(t,n,e),n=bn.value=Yr(t,n,e),n=bn.valueEnd=function h7(t,s,e){let n=-1,i=-1,o=-1,r=s,u=r;for(;r32&&(u=r),o=i,i=n,n=-33&h}return u}(t,n,e),sy(t,n,e))}function iy(t){bn.key=0,bn.keyEnd=0,bn.value=0,bn.valueEnd=0,bn.textEnd=t.length}function Yr(t,s,e){for(;s=0;e=ny(s,e))ly(t,ey(s),l7(s))}function se(t){Ui(C7,fs,t,!0)}function fs(t,s){for(let e=function c7(t){return iy(t),ty(t,Yr(t,0,bn.textEnd))}(s);e>=0;e=ty(s,e))mi(t,ey(s),!0)}function zi(t,s,e,n){const i=X(),o=st(),r=ks(2);o.firstUpdatePass&&ay(o,t,r,n),s!==Ve&&Vn(i,r,s)&&cy(o,o.data[Kn()],i,i[Ae],t,i[r+1]=function T7(t,s){return null==t||""===t||("string"==typeof s?t+=s:"object"==typeof t&&(t=mn(fi(t)))),t}(s,e),n,r)}function Ui(t,s,e,n){const i=st(),o=ks(2);i.firstUpdatePass&&ay(i,null,o,n);const r=X();if(e!==Ve&&Vn(r,o,e)){const u=i.data[Kn()];if(dy(u,n)&&!ry(i,o)){let h=n?u.classesWithoutHost:u.stylesWithoutHost;null!==h&&(e=ch(h,e||"")),lf(i,u,r,e,n)}else!function y7(t,s,e,n,i,o,r,u){i===Ve&&(i=ht);let h=0,b=0,T=0=t.expandoStartIndex}function ay(t,s,e,n){const i=t.data;if(null===i[e+1]){const o=i[Kn()],r=ry(t,e);dy(o,n)&&null===s&&!r&&(s=!1),s=function f7(t,s,e,n){const i=function Nh(t){const s=ke.lFrame.currentDirectiveIndex;return-1===s?null:t[s]}(t);let o=n?s.residualClasses:s.residualStyles;if(null===i)0===(n?s.classBindings:s.styleBindings)&&(e=Cl(e=pf(null,t,s,e,n),s.attrs,n),o=null);else{const r=s.directiveStylingLast;if(-1===r||t[r]!==i)if(e=pf(i,t,s,e,n),null===o){let h=function g7(t,s,e){const n=e?s.classBindings:s.styleBindings;if(0!==Po(n))return t[no(n)]}(t,s,n);void 0!==h&&Array.isArray(h)&&(h=pf(null,t,s,h[1],n),h=Cl(h,s.attrs,n),function _7(t,s,e,n){t[no(e?s.classBindings:s.styleBindings)]=n}(t,s,n,h))}else o=function b7(t,s,e){let n;const i=s.directiveEnd;for(let o=1+s.directiveStylingLast;o0)&&(b=!0)):T=e,i)if(0!==h){const k=no(t[u+1]);t[n+1]=Xu(k,u),0!==k&&(t[k+1]=uf(t[k+1],n)),t[u+1]=function i7(t,s){return 131071&t|s<<17}(t[u+1],n)}else t[n+1]=Xu(u,0),0!==u&&(t[u+1]=uf(t[u+1],n)),u=n;else t[n+1]=Xu(h,0),0===u?u=n:t[h+1]=uf(t[h+1],n),h=n;b&&(t[n+1]=cf(t[n+1])),X0(t,T,n,!0),X0(t,T,n,!1),function r7(t,s,e,n,i){const o=i?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof s&&kr(o,s)>=0&&(e[n+1]=df(e[n+1]))}(s,T,t,n,o),r=Xu(u,h),o?s.classBindings=r:s.styleBindings=r}(i,o,s,e,r,n)}}function pf(t,s,e,n,i){let o=null;const r=e.directiveEnd;let u=e.directiveStylingLast;for(-1===u?u=e.directiveStart:u++;u0;){const h=t[i],b=Array.isArray(h),T=b?h[1]:h,w=null===T;let k=e[i+1];k===Ve&&(k=w?ht:void 0);let L=w?Qh(k,n):T===n?k:void 0;if(b&&!ed(L)&&(L=Qh(h,n)),ed(L)&&(u=L,r))return u;const O=t[i+1];i=r?no(O):Po(O)}if(null!==s){let h=o?s.residualClasses:s.residualStyles;null!=h&&(u=Qh(h,n))}return u}function ed(t){return void 0!==t}function dy(t,s){return 0!=(t.flags&(s?8:16))}function _(t,s=""){const e=X(),n=st(),i=t+tt,o=n.firstCreatePass?qr(n,i,1,s,null):n.data[i],r=py(n,e,o,s,t);e[i]=r,tu()&&Iu(n,e,r,o),us(o,!1)}let py=(t,s,e,n,i)=>(eo(!0),function Cu(t,s){return t.createText(s)}(s[Ae],n));function S(t){return x("",t,""),S}function x(t,s,e){const n=X(),i=Ur(n,t,s,e);return i!==Ve&&Os(n,Kn(),i),x}function Ke(t,s,e,n,i){const o=X(),r=jr(o,t,s,e,n,i);return r!==Ve&&Os(o,Kn(),r),Ke}function Xr(t,s,e,n,i,o,r){const u=X(),h=function $r(t,s,e,n,i,o,r,u){const b=Qu(t,Ms(),e,i,r);return ks(3),b?s+Oe(e)+n+Oe(i)+o+Oe(r)+u:Ve}(u,t,s,e,n,i,o,r);return h!==Ve&&Os(u,Kn(),h),Xr}function td(t,s,e,n,i,o,r,u,h){const b=X(),T=function Wr(t,s,e,n,i,o,r,u,h,b){const w=Ei(t,Ms(),e,i,r,h);return ks(4),w?s+Oe(e)+n+Oe(i)+o+Oe(r)+u+Oe(h)+b:Ve}(b,t,s,e,n,i,o,r,u,h);return T!==Ve&&Os(b,Kn(),T),td}function hf(t,s,e,n,i,o,r,u,h,b,T){const w=X(),k=function Kr(t,s,e,n,i,o,r,u,h,b,T,w){const k=Ms();let L=Ei(t,k,e,i,r,h);return L=Vn(t,k+4,T)||L,ks(5),L?s+Oe(e)+n+Oe(i)+o+Oe(r)+u+Oe(h)+b+Oe(T)+w:Ve}(w,t,s,e,n,i,o,r,u,h,b,T);return k!==Ve&&Os(w,Kn(),k),hf}function mf(t,s,e,n,i,o,r,u,h,b,T,w,k){const L=X(),O=function Qr(t,s,e,n,i,o,r,u,h,b,T,w,k,L){const O=Ms();let A=Ei(t,O,e,i,r,h);return A=Ao(t,O+4,T,k)||A,ks(6),A?s+Oe(e)+n+Oe(i)+o+Oe(r)+u+Oe(h)+b+Oe(T)+w+Oe(k)+L:Ve}(L,t,s,e,n,i,o,r,u,h,b,T,w,k);return O!==Ve&&Os(L,Kn(),O),mf}const Fo=void 0;var U7=["en",[["a","p"],["AM","PM"],Fo],[["AM","PM"],Fo,Fo],[["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"]],Fo,[["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"]],Fo,[["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}",Fo,"{1} 'at' {0}",Fo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function z7(t){const e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let ea={};function Zn(t){const s=function j7(t){return t.toLowerCase().replace(/_/g,"-")}(t);let e=My(s);if(e)return e;const n=s.split("-")[0];if(e=My(n),e)return e;if("en"===n)return U7;throw new $(701,!1)}function My(t){return t in ea||(ea[t]=Rt.ng&&Rt.ng.common&&Rt.ng.common.locales&&Rt.ng.common.locales[t]),ea[t]}var At=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}(At||{});const ta="en-US";let ky=ta;function _f(t,s,e,n,i){if(t=Ee(t),Array.isArray(t))for(let o=0;o>20;if(Oo(t)||!t.multi){const L=new ja(b,i,M),O=vf(h,s,i?T:T+k,w);-1===O?($h(ru(u,r),o,h),bf(o,t,s.length),s.push(h),u.directiveStart++,u.directiveEnd++,i&&(u.providerIndexes+=1048576),e.push(L),r.push(L)):(e[O]=L,r[O]=L)}else{const L=vf(h,s,T+k,w),O=vf(h,s,T,T+k),P=O>=0&&e[O];if(i&&!P||!i&&!(L>=0&&e[L])){$h(ru(u,r),o,h);const z=function zL(t,s,e,n,i){const o=new ja(t,e,M);return o.multi=[],o.index=s,o.componentProviders=0,e2(o,i,n&&!e),o}(i?qL:GL,e.length,i,n,b);!i&&P&&(e[O].providerFactory=z),bf(o,t,s.length,0),s.push(h),u.directiveStart++,u.directiveEnd++,i&&(u.providerIndexes+=1048576),e.push(z),r.push(z)}else bf(o,t,L>-1?L:O,e2(e[i?O:L],b,!i&&n));!i&&n&&P&&e[O].componentProviders++}}}function bf(t,s,e,n){const i=Oo(s),o=function PE(t){return!!t.useClass}(s);if(i||o){const h=(o?Ee(s.useClass):s).prototype.ngOnDestroy;if(h){const b=t.destroyHooks||(t.destroyHooks=[]);if(!i&&s.multi){const T=b.indexOf(e);-1===T?b.push(e,[n,h]):b[T+1].push(n,h)}else b.push(e,h)}}}function e2(t,s,e){return e&&t.componentProviders++,t.multi.push(s)-1}function vf(t,s,e,n){for(let i=e;i{e.providersResolver=(n,i)=>function HL(t,s,e){const n=st();if(n.firstCreatePass){const i=Gi(t);_f(e,n.data,n.blueprint,i,!0),_f(s,n.data,n.blueprint,i,!1)}}(n,i?i(t):t,s)}}class No{}class t2{}class yf extends No{constructor(s,e,n){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new b0(this);const i=pi(s);this._bootstrapComponents=Rs(i.bootstrap),this._r3Injector=MC(s,e,[{provide:No,useValue:this},{provide:Bu,useValue:this.componentFactoryResolver},...n],mn(s),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(s)}get injector(){return this._r3Injector}destroy(){const s=this._r3Injector;!s.destroyed&&s.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(s){this.destroyCbs.push(s)}}class Tf extends t2{constructor(s){super(),this.moduleType=s}create(s){return new yf(this.moduleType,s,[])}}class n2 extends No{constructor(s){super(),this.componentFactoryResolver=new b0(this),this.instance=null;const e=new Pr([...s.providers,{provide:No,useValue:this},{provide:Bu,useValue:this.componentFactoryResolver}],s.parent||Ru(),s.debugName,new Set(["environment"]));this.injector=e,s.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(s){this.injector.onDestroy(s)}}function wf(t,s,e=null){return new n2({providers:t,parent:s,debugName:e,runEnvironmentInitializers:!0}).injector}let $L=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){const n=dC(0,e.type),i=n.length>0?wf([n],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,i)}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=re({token:t,providedIn:"environment",factory:()=>new t(ie(gi))})}return t})();function ot(t){t.getStandaloneInjector=s=>s.get($L).getOrCreateStandaloneInjector(t)}function V(t,s,e){const n=Wn()+t,i=X();return i[n]===Ve?ms(i,n,e?s.call(e):s()):ml(i,n)}function W(t,s,e,n){return d2(X(),Wn(),t,s,e,n)}function Se(t,s,e,n,i){return p2(X(),Wn(),t,s,e,n,i)}function Bt(t,s,e,n,i,o){return h2(X(),Wn(),t,s,e,n,i,o)}function Li(t,s,e,n,i,o,r){return function m2(t,s,e,n,i,o,r,u,h){const b=s+e;return Ei(t,b,i,o,r,u)?ms(t,b+4,h?n.call(h,i,o,r,u):n(i,o,r,u)):Dl(t,b+4)}(X(),Wn(),t,s,e,n,i,o,r)}function xl(t,s,e,n,i,o,r,u){const h=Wn()+t,b=X(),T=Ei(b,h,e,n,i,o);return Vn(b,h+4,r)||T?ms(b,h+5,u?s.call(u,e,n,i,o,r):s(e,n,i,o,r)):ml(b,h+5)}function As(t,s,e,n,i,o,r,u,h){const b=Wn()+t,T=X(),w=Ei(T,b,e,n,i,o);return Ao(T,b+4,r,u)||w?ms(T,b+6,h?s.call(h,e,n,i,o,r,u):s(e,n,i,o,r,u)):ml(T,b+6)}function rd(t,s,e,n){return function f2(t,s,e,n,i,o){let r=s+e,u=!1;for(let h=0;h=0;e--){const n=s[e];if(t===n.name)return n}}(s,e.pipeRegistry),e.data[i]=n,n.onDestroy&&(e.destroyHooks??=[]).push(i,n.onDestroy)):n=e.data[i];const o=n.factory||(n.factory=Mo(n.type)),u=ii(M);try{const h=ou(!1),b=o();return ou(h),function W6(t,s,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),s[e]=n}(e,X(),i,b),b}finally{ii(u)}}function g(t,s,e){const n=t+tt,i=X(),o=vr(i,n);return Ml(i,n)?d2(i,Wn(),s,o.transform,e,o):o.transform(e)}function mt(t,s,e,n){const i=t+tt,o=X(),r=vr(o,i);return Ml(o,i)?p2(o,Wn(),s,r.transform,e,n,r):r.transform(e,n)}function Ml(t,s){return t[ce].data[s].pure}function oR(){return this._results[Symbol.iterator]()}class Sf{static#e=Symbol.iterator;get changes(){return this._changes||(this._changes=new q)}constructor(s=!1){this._emitDistinctChangesOnly=s,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Sf.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=oR)}get(s){return this._results[s]}map(s){return this._results.map(s)}filter(s){return this._results.filter(s)}find(s){return this._results.find(s)}reduce(s,e){return this._results.reduce(s,e)}forEach(s){this._results.forEach(s)}some(s){return this._results.some(s)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(s,e){const n=this;n.dirty=!1;const i=function Mi(t){return t.flat(Number.POSITIVE_INFINITY)}(s);(this._changesDetected=!function ok(t,s,e){if(t.length!==s.length)return!1;for(let n=0;n0&&(e[i-1][Hi]=s),n{class t{static#e=this.__NG_ELEMENT_ID__=uR}return t})();const lR=ji,cR=class extends lR{constructor(s,e,n){super(),this._declarationLView=s,this._declarationTContainer=e,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(s,e){return this.createEmbeddedViewImpl(s,e)}createEmbeddedViewImpl(s,e,n){const i=function rR(t,s,e,n){const i=s.tView,u=zu(t,i,e,4096&t[Be]?4096:16,null,s,null,null,null,n?.injector??null,n?.hydrationInfo??null);u[Va]=t[s.index];const b=t[as];return null!==b&&(u[as]=b.createEmbeddedView(i)),Xm(i,u,e),u}(this._declarationLView,this._declarationTContainer,s,{injector:e,hydrationInfo:n});return new pl(i)}};function uR(){return ad(Ln(),X())}function ad(t,s){return 4&t.type?new cR(s,t,Br(t,s)):null}let Ri=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=gR}return t})();function gR(){return w2(Ln(),X())}const _R=Ri,y2=class extends _R{constructor(s,e,n){super(),this._lContainer=s,this._hostTNode=e,this._hostLView=n}get element(){return Br(this._hostTNode,this._hostLView)}get injector(){return new Qn(this._hostTNode,this._hostLView)}get parentInjector(){const s=au(this._hostTNode,this._hostLView);if(zh(s)){const e=Wa(s,this._hostLView),n=$a(s);return new Qn(e[ce].data[n+8],e)}return new Qn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(s){const e=T2(this._lContainer);return null!==e&&e[s]||null}get length(){return this._lContainer.length-kn}createEmbeddedView(s,e,n){let i,o;"number"==typeof n?i=n:null!=n&&(i=n.index,o=n.injector);const u=s.createEmbeddedViewImpl(e||{},o,null);return this.insertImpl(u,i,false),u}createComponent(s,e,n,i,o){const r=s&&!function Qa(t){return"function"==typeof t}(s);let u;if(r)u=e;else{const A=e||{};u=A.index,n=A.injector,i=A.projectableNodes,o=A.environmentInjector||A.ngModuleRef}const h=r?s:new hl(it(s)),b=n||this.parentInjector;if(!o&&null==h.ngModule){const P=(r?b:this.parentInjector).get(gi,null);P&&(o=P)}it(h.componentType??{});const L=h.create(b,i,null,o);return this.insertImpl(L.hostView,u,false),L}insert(s,e){return this.insertImpl(s,e,!1)}insertImpl(s,e,n){const i=s._lView;if(function CM(t){return $n(t[zt])}(i)){const h=this.indexOf(s);if(-1!==h)this.detach(h);else{const b=i[zt],T=new y2(b,b[An],b[zt]);T.detach(T.indexOf(s))}}const r=this._adjustIndex(e),u=this._lContainer;return aR(u,i,r,!n),s.attachToViewContainerRef(),hv(xf(u),r,s),s}move(s,e){return this.insert(s,e)}indexOf(s){const e=T2(this._lContainer);return null!==e?e.indexOf(s):-1}remove(s){const e=this._adjustIndex(s,-1),n=Tu(this._lContainer,e);n&&(uu(xf(this._lContainer),e),rm(n[ce],n))}detach(s){const e=this._adjustIndex(s,-1),n=Tu(this._lContainer,e);return n&&null!=uu(xf(this._lContainer),e)?new pl(n):null}_adjustIndex(s,e=0){return s??this.length+e}};function T2(t){return t[8]}function xf(t){return t[8]||(t[8]=[])}function w2(t,s){let e;const n=s[t.index];return $n(n)?e=n:(e=o0(n,s,null,t),s[t.index]=e,Uu(s,e)),I2(e,s,t,n),new y2(e,t,s)}let I2=function S2(t,s,e,n){if(t[ls])return;let i;i=8&e.type?Ot(n):function bR(t,s){const e=t[Ae],n=e.createComment(""),i=oi(s,t);return Lo(e,wu(e,i),n,function Xk(t,s){return t.nextSibling(s)}(e,i),!1),n}(s,e),t[ls]=i};class Df{constructor(s){this.queryList=s,this.matches=null}clone(){return new Df(this.queryList)}setDirty(){this.queryList.setDirty()}}class Mf{constructor(s=[]){this.queries=s}createEmbeddedView(s){const e=s.queries;if(null!==e){const n=null!==s.contentQueries?s.contentQueries[0]:e.length,i=[];for(let o=0;o0)n.push(r[u/2]);else{const b=o[u+1],T=s[-h];for(let w=kn;w{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,n)=>{this.resolve=e,this.reject=n}),this.appInits=de(Nf,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const e=[];for(const i of this.appInits){const o=i();if(bl(o))e.push(o);else if(G0(o)){const r=new Promise((u,h)=>{o.subscribe({complete:u,error:h})});e.push(r)}}const n=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{n()}).catch(i=>{this.reject(i)}),0===e.length&&n(),this.initialized=!0}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),W2=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();const Ps=new le("LocaleId",{providedIn:"root",factory:()=>de(Ps,et.Optional|et.SkipSelf)||function WR(){return typeof $localize<"u"&&$localize.locale||ta}()});let ud=(()=>{class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Ii(!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(n){return new(n||t)};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class JR{constructor(s,e){this.ngModuleFactory=s,this.componentFactories=e}}let K2=(()=>{class t{compileModuleSync(e){return new Tf(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const n=this.compileModuleSync(e),o=Rs(pi(e).declarations).reduce((r,u)=>{const h=it(u);return h&&r.push(new hl(h)),r},[]);return new JR(n,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Y2=new le(""),pd=new le("");let zf,Gf=(()=>{class t{constructor(e,n,i){this._ngZone=e,this.registry=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,zf||(function bO(t){zf=t}(i),i.addToWindow(n)),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:()=>{je.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(n=>!n.updateCb||!n.updateCb(e)||(clearTimeout(n.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,n,i){let o=-1;n&&n>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(r=>r.timeoutId!==o),e(this._didWork,this.getPendingTasks())},n)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:i})}whenStable(e,n,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,n,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,n,i){return[]}static#e=this.\u0275fac=function(n){return new(n||t)(ie(je),ie(qf),ie(pd))};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac})}return t})(),qf=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,n){this._applications.set(e,n)}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,n=!0){return zf?.findTestabilityInTree(this,e,n)??null}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),io=null;const X2=new le("AllowMultipleToken"),Uf=new le("PlatformDestroyListeners"),jf=new le("appBootstrapListener");class tT{constructor(s,e){this.name=s,this.token=e}}function iT(t,s,e=[]){const n=`Platform: ${s}`,i=new le(n);return(o=[])=>{let r=$f();if(!r||r.injector.get(X2,!1)){const u=[...e,...o,{provide:i,useValue:!0}];t?t(u):function yO(t){if(io&&!io.get(X2,!1))throw new $(400,!1);(function eT(){!function oM(t){Sb=t}(()=>{throw new $(600,!1)})})(),io=t;const s=t.get(oT);(function nT(t){t.get(gC,null)?.forEach(e=>e())})(t)}(function sT(t=[],s){return Fn.create({name:s,providers:[{provide:Tm,useValue:"platform"},{provide:Uf,useValue:new Set([()=>io=null])},...t]})}(u,n))}return function wO(t){const s=$f();if(!s)throw new $(401,!1);return s}()}}function $f(){return io?.get(oT)??null}let oT=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,n){const i=function IO(t="zone.js",s){return"noop"===t?new v5:"zone.js"===t?new je(s):t}(n?.ngZone,function rT(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}({eventCoalescing:n?.ngZoneEventCoalescing,runCoalescing:n?.ngZoneRunCoalescing}));return i.run(()=>{const o=function jL(t,s,e){return new yf(t,s,e)}(e.moduleType,this.injector,function dT(t){return[{provide:je,useFactory:t},{provide:sl,multi:!0,useFactory:()=>{const s=de(xO,{optional:!0});return()=>s.initialize()}},{provide:uT,useFactory:SO},{provide:OC,useFactory:AC}]}(()=>i)),r=o.injector.get(Ls,null);return i.runOutsideAngular(()=>{const u=i.onError.subscribe({next:h=>{r.handleError(h)}});o.onDestroy(()=>{hd(this._modules,o),u.unsubscribe()})}),function aT(t,s,e){try{const n=e();return bl(n)?n.catch(i=>{throw s.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw s.runOutsideAngular(()=>t.handleError(n)),n}}(r,i,()=>{const u=o.injector.get(Vf);return u.runInitializers(),u.donePromise.then(()=>(function Ey(t){Si(t,"Expected localeId to be defined"),"string"==typeof t&&(ky=t.toLowerCase().replace(/_/g,"-"))}(o.injector.get(Ps,ta)||ta),this._moduleDoBootstrap(o),o))})})}bootstrapModule(e,n=[]){const i=lT({},n);return function vO(t,s,e){const n=new Tf(e);return Promise.resolve(n)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,i))}_moduleDoBootstrap(e){const n=e.injector.get(Vo);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(i=>n.bootstrap(i));else{if(!e.instance.ngDoBootstrap)throw new $(-403,!1);e.instance.ngDoBootstrap(n)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new $(404,!1);this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());const e=this._injector.get(Uf,null);e&&(e.forEach(n=>n()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(n){return new(n||t)(ie(Fn))};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function lT(t,s){return Array.isArray(s)?s.reduce(lT,t):{...t,...s}}let Vo=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=de(uT),this.zoneIsStable=de(OC),this.componentTypes=[],this.components=[],this.isStable=de(ud).hasPendingTasks.pipe(ui(e=>e?ue(!1):this.zoneIsStable),function g4(t,s=Ws){return t=t??_4,cn((e,n)=>{let i,o=!0;e.subscribe(sn(n,r=>{const u=s(r);(o||!t(i,u))&&(o=!1,i=u,n.next(r))}))})}(),ah()),this._injector=de(gi)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,n){const i=e instanceof TC;if(!this._injector.get(Vf).done)throw!i&&function dr(t){const s=it(t)||Mn(t)||jn(t);return null!==s&&s.standalone}(e),new $(405,!1);let r;r=i?e:this._injector.get(Bu).resolveComponentFactory(e),this.componentTypes.push(r.componentType);const u=function CO(t){return t.isBoundToModule}(r)?void 0:this._injector.get(No),b=r.create(Fn.NULL,[],n||r.selector,u),T=b.location.nativeElement,w=b.injector.get(Y2,null);return w?.registerApplication(T),b.onDestroy(()=>{this.detachView(b.hostView),hd(this.components,b),w?.unregisterApplication(T)}),this._loadComponent(b),b}tick(){if(this._runningTick)throw new $(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 n=e;this._views.push(n),n.attachToAppRef(this)}detachView(e){const n=e;hd(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const n=this._injector.get(jf,[]);n.push(...this._bootstrapListeners),n.forEach(i=>i(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),()=>hd(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new $(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function hd(t,s){const e=t.indexOf(s);e>-1&&t.splice(e,1)}const uT=new le("",{providedIn:"root",factory:()=>de(Ls).handleError.bind(void 0)});function SO(){const t=de(je),s=de(Ls);return e=>t.runOutsideAngular(()=>s.handleError(e))}let xO=(()=>{class t{constructor(){this.zone=de(je),this.applicationRef=de(Vo)}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(n){return new(n||t)};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();let rt=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=kO}return t})();function kO(t){return function EO(t,s,e){if(Do(t)&&!e){const n=hi(t.index,s);return new pl(n,n)}return 47&t.type?new pl(s[rn],s):null}(Ln(),X(),16==(16&t))}class gT{constructor(){}supports(s){return Ku(s)}create(s){return new PO(s)}}const AO=(t,s)=>s;class PO{constructor(s){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=s||AO}forEachItem(s){let e;for(e=this._itHead;null!==e;e=e._next)s(e)}forEachOperation(s){let e=this._itHead,n=this._removalsHead,i=0,o=null;for(;e||n;){const r=!n||e&&e.currentIndex{r=this._trackByFn(i,u),null!==e&&Object.is(e.trackById,r)?(n&&(e=this._verifyReinsertion(e,u,r,i)),Object.is(e.item,u)||this._addIdentityChange(e,u)):(e=this._mismatch(e,u,r,i),n=!0),e=e._next,i++}),this.length=i;return this._truncate(e),this.collection=s,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let s;for(s=this._previousItHead=this._itHead;null!==s;s=s._next)s._nextPrevious=s._next;for(s=this._additionsHead;null!==s;s=s._nextAdded)s.previousIndex=s.currentIndex;for(this._additionsHead=this._additionsTail=null,s=this._movesHead;null!==s;s=s._nextMoved)s.previousIndex=s.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(s,e,n,i){let o;return null===s?o=this._itTail:(o=s._prev,this._remove(s)),null!==(s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(s.item,e)||this._addIdentityChange(s,e),this._reinsertAfter(s,o,i)):null!==(s=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(s.item,e)||this._addIdentityChange(s,e),this._moveAfter(s,o,i)):s=this._addAfter(new FO(e,n),o,i),s}_verifyReinsertion(s,e,n,i){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==o?s=this._reinsertAfter(o,s._prev,i):s.currentIndex!=i&&(s.currentIndex=i,this._addToMoves(s,i)),s}_truncate(s){for(;null!==s;){const e=s._next;this._addToRemovals(this._unlink(s)),s=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(s,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(s);const i=s._prevRemoved,o=s._nextRemoved;return null===i?this._removalsHead=o:i._nextRemoved=o,null===o?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(s,e,n),this._addToMoves(s,n),s}_moveAfter(s,e,n){return this._unlink(s),this._insertAfter(s,e,n),this._addToMoves(s,n),s}_addAfter(s,e,n){return this._insertAfter(s,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=s:this._additionsTail._nextAdded=s,s}_insertAfter(s,e,n){const i=null===e?this._itHead:e._next;return s._next=i,s._prev=e,null===i?this._itTail=s:i._prev=s,null===e?this._itHead=s:e._next=s,null===this._linkedRecords&&(this._linkedRecords=new _T),this._linkedRecords.put(s),s.currentIndex=n,s}_remove(s){return this._addToRemovals(this._unlink(s))}_unlink(s){null!==this._linkedRecords&&this._linkedRecords.remove(s);const e=s._prev,n=s._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,s}_addToMoves(s,e){return s.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=s:this._movesTail._nextMoved=s),s}_addToRemovals(s){return null===this._unlinkedRecords&&(this._unlinkedRecords=new _T),this._unlinkedRecords.put(s),s.currentIndex=null,s._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=s,s._prevRemoved=null):(s._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=s),s}_addIdentityChange(s,e){return s.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=s:this._identityChangesTail._nextIdentityChange=s,s}}class FO{constructor(s,e){this.item=s,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 NO{constructor(){this._head=null,this._tail=null}add(s){null===this._head?(this._head=this._tail=s,s._nextDup=null,s._prevDup=null):(this._tail._nextDup=s,s._prevDup=this._tail,s._nextDup=null,this._tail=s)}get(s,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,s))return n;return null}remove(s){const e=s._prevDup,n=s._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class _T{constructor(){this.map=new Map}put(s){const e=s.trackById;let n=this.map.get(e);n||(n=new NO,this.map.set(e,n)),n.add(s)}get(s,e){const i=this.map.get(s);return i?i.get(s,e):null}remove(s){const e=s.trackById;return this.map.get(e).remove(s)&&this.map.delete(e),s}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function bT(t,s,e){const n=t.previousIndex;if(null===n)return n;let i=0;return e&&n{if(e&&e.key===i)this._maybeAddToChanges(e,n),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(i,n);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let n=e;null!==n;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(s,e){if(s){const n=s._prev;return e._next=s,e._prev=n,s._prev=e,n&&(n._next=e),s===this._mapHead&&(this._mapHead=e),this._appendAfter=s,s}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(s,e){if(this._records.has(s)){const i=this._records.get(s);this._maybeAddToChanges(i,e);const o=i._prev,r=i._next;return o&&(o._next=r),r&&(r._prev=o),i._next=null,i._prev=null,i}const n=new BO(s);return this._records.set(s,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let s;for(this._previousMapHead=this._mapHead,s=this._previousMapHead;null!==s;s=s._next)s._nextPrevious=s._next;for(s=this._changesHead;null!==s;s=s._nextChanged)s.previousValue=s.currentValue;for(s=this._additionsHead;null!=s;s=s._nextAdded)s.previousValue=s.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(s,e){Object.is(e,s.currentValue)||(s.previousValue=s.currentValue,s.currentValue=e,this._addToChanges(s))}_addToAdditions(s){null===this._additionsHead?this._additionsHead=this._additionsTail=s:(this._additionsTail._nextAdded=s,this._additionsTail=s)}_addToChanges(s){null===this._changesHead?this._changesHead=this._changesTail=s:(this._changesTail._nextChanged=s,this._changesTail=s)}_forEach(s,e){s instanceof Map?s.forEach(e):Object.keys(s).forEach(n=>e(s[n],n))}}class BO{constructor(s){this.key=s,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 CT(){return new gd([new gT])}let gd=(()=>{class t{static#e=this.\u0275prov=re({token:t,providedIn:"root",factory:CT});constructor(e){this.factories=e}static create(e,n){if(null!=n){const i=n.factories.slice();e=e.concat(i)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||CT()),deps:[[t,new hu,new pu]]}}find(e){const n=this.factories.find(i=>i.supports(e));if(null!=n)return n;throw new $(901,!1)}}return t})();function yT(){return new Ll([new vT])}let Ll=(()=>{class t{static#e=this.\u0275prov=re({token:t,providedIn:"root",factory:yT});constructor(e){this.factories=e}static create(e,n){if(n){const i=n.factories.slice();e=e.concat(i)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||yT()),deps:[[t,new hu,new pu]]}}find(e){const n=this.factories.find(i=>i.supports(e));if(n)return n;throw new $(901,!1)}}return t})();const qO=iT(null,"core",[]);let zO=(()=>{class t{constructor(e){}static#e=this.\u0275fac=function(n){return new(n||t)(ie(Vo))};static#t=this.\u0275mod=ge({type:t});static#n=this.\u0275inj=me({})}return t})();function sa(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}let Yf=null;function so(){return Yf}class i9{}const ct=new le("DocumentToken");let Xf=(()=>{class t{historyGo(e){throw new Error("Not implemented")}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=re({token:t,factory:function(){return de(o9)},providedIn:"platform"})}return t})();const s9=new le("Location Initialized");let o9=(()=>{class t extends Xf{constructor(){super(),this._doc=de(ct),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return so().getBaseHref(this._doc)}onPopState(e){const n=so().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){const n=so().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",e,!1),()=>n.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,n,i){this._history.pushState(e,n,i)}replaceState(e,n,i){this._history.replaceState(e,n,i)}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(n){return new(n||t)};static#t=this.\u0275prov=re({token:t,factory:function(){return new t},providedIn:"platform"})}return t})();function eg(t,s){if(0==t.length)return s;if(0==s.length)return t;let e=0;return t.endsWith("/")&&e++,s.startsWith("/")&&e++,2==e?t+s.substring(1):1==e?t+s:t+"/"+s}function ET(t){const s=t.match(/#|\?|$/),e=s&&s.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Fs(t){return t&&"?"!==t[0]?"?"+t:t}let Ho=(()=>{class t{historyGo(e){throw new Error("Not implemented")}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=re({token:t,factory:function(){return de(RT)},providedIn:"root"})}return t})();const LT=new le("appBaseHref");let RT=(()=>{class t extends Ho{constructor(e,n){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??de(ct).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 eg(this._baseHref,e)}path(e=!1){const n=this._platformLocation.pathname+Fs(this._platformLocation.search),i=this._platformLocation.hash;return i&&e?`${n}${i}`:n}pushState(e,n,i,o){const r=this.prepareExternalUrl(i+Fs(o));this._platformLocation.pushState(e,n,r)}replaceState(e,n,i,o){const r=this.prepareExternalUrl(i+Fs(o));this._platformLocation.replaceState(e,n,r)}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(n){return new(n||t)(ie(Xf),ie(LT,8))};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),r9=(()=>{class t extends Ho{constructor(e,n){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=n&&(this._baseHref=n)}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 n=this._platformLocation.hash;return null==n&&(n="#"),n.length>0?n.substring(1):n}prepareExternalUrl(e){const n=eg(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,i,o){let r=this.prepareExternalUrl(i+Fs(o));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,n,r)}replaceState(e,n,i,o){let r=this.prepareExternalUrl(i+Fs(o));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,n,r)}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(n){return new(n||t)(ie(Xf),ie(LT,8))};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac})}return t})(),tg=(()=>{class t{constructor(e){this._subject=new q,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const n=this._locationStrategy.getBaseHref();this._basePath=function c9(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(ET(OT(n))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,n=""){return this.path()==this.normalize(e+Fs(n))}normalize(e){return t.stripTrailingSlash(function l9(t,s){if(!t||!s.startsWith(t))return s;const e=s.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:s}(this._basePath,OT(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,n="",i=null){this._locationStrategy.pushState(i,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Fs(n)),i)}replaceState(e,n="",i=null){this._locationStrategy.replaceState(i,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Fs(n)),i)}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(n=>{this._notifyUrlChangeListeners(n.url,n.state)})),()=>{const n=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(n,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(i=>i(e,n))}subscribe(e,n,i){return this._subject.subscribe({next:e,error:n,complete:i})}static#e=this.normalizeQueryParams=Fs;static#t=this.joinWithSlash=eg;static#n=this.stripTrailingSlash=ET;static#i=this.\u0275fac=function(n){return new(n||t)(ie(Ho))};static#s=this.\u0275prov=re({token:t,factory:function(){return function a9(){return new tg(ie(Ho))}()},providedIn:"root"})}return t})();function OT(t){return t.replace(/\/index.html$/,"")}var bd=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}(bd||{}),an=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}(an||{});function Oi(t,s){const e=Zn(t),n=e[At.NumberSymbols][s];if(typeof n>"u"){if(s===an.CurrencyDecimal)return e[At.NumberSymbols][an.Decimal];if(s===an.CurrencyGroup)return e[At.NumberSymbols][an.Group]}return n}const F9=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function cg(t){const s=parseInt(t);if(isNaN(s))throw new Error("Invalid integer literal when parsing "+t);return s}function qT(t,s){s=encodeURIComponent(s);for(const e of t.split(";")){const n=e.indexOf("="),[i,o]=-1==n?[e,""]:[e.slice(0,n),e.slice(n+1)];if(i.trim()===s)return decodeURIComponent(o)}return null}const dg=/\s+/,zT=[];let Fe=(()=>{class t{constructor(e,n,i,o){this._iterableDiffers=e,this._keyValueDiffers=n,this._ngEl=i,this._renderer=o,this.initialClasses=zT,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(dg):zT}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(dg):e}ngDoCheck(){for(const n of this.initialClasses)this._updateState(n,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const n of e)this._updateState(n,!0);else if(null!=e)for(const n of Object.keys(e))this._updateState(n,!!e[n]);this._applyStateDiff()}_updateState(e,n){const i=this.stateMap.get(e);void 0!==i?(i.enabled!==n&&(i.changed=!0,i.enabled=n),i.touched=!0):this.stateMap.set(e,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const n=e[0],i=e[1];i.changed?(this._toggleClass(n,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(n,!1),this.stateMap.delete(n)),i.touched=!1}}_toggleClass(e,n){(e=e.trim()).length>0&&e.split(dg).forEach(i=>{n?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}static#e=this.\u0275fac=function(n){return new(n||t)(M(gd),M(Ll),M(Pe),M(Vt))};static#t=this.\u0275dir=fe({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0})}return t})();class K9{constructor(s,e,n,i){this.$implicit=s,this.ngForOf=e,this.index=n,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let ut=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,n,i){this._viewContainer=e,this._template=n,this._differs=i,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 n=this._viewContainer;e.forEachOperation((i,o,r)=>{if(null==i.previousIndex)n.createEmbeddedView(this._template,new K9(i.item,this._ngForOf,-1,-1),null===r?void 0:r);else if(null==r)n.remove(null===o?void 0:o);else if(null!==o){const u=n.get(o);n.move(u,r),jT(u,i)}});for(let i=0,o=n.length;i{jT(n.get(i.currentIndex),i)})}static ngTemplateContextGuard(e,n){return!0}static#e=this.\u0275fac=function(n){return new(n||t)(M(Ri),M(ji),M(gd))};static#t=this.\u0275dir=fe({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return t})();function jT(t,s){t.context.$implicit=s.item}let ne=(()=>{class t{constructor(e,n){this._viewContainer=e,this._context=new Q9,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){$T("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){$T("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,n){return!0}static#e=this.\u0275fac=function(n){return new(n||t)(M(Ri),M(ji))};static#t=this.\u0275dir=fe({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return t})();class Q9{constructor(){this.$implicit=null,this.ngIf=null}}function $T(t,s){if(s&&!s.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${mn(s)}'.`)}class pg{constructor(s,e){this._viewContainerRef=s,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(s){s&&!this._created?this.create():!s&&this._created&&this.destroy()}}let Go=(()=>{class t{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews.push(e)}_matchCase(e){const n=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||n,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),n}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const n of this._defaultViews)n.enforceState(e)}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275dir=fe({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return t})(),Al=(()=>{class t{constructor(e,n,i){this.ngSwitch=i,i._addCase(),this._view=new pg(e,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#e=this.\u0275fac=function(n){return new(n||t)(M(Ri),M(ji),M(Go,9))};static#t=this.\u0275dir=fe({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return t})(),hg=(()=>{class t{constructor(e,n,i){i._addDefault(new pg(e,n))}static#e=this.\u0275fac=function(n){return new(n||t)(M(Ri),M(ji),M(Go,9))};static#t=this.\u0275dir=fe({type:t,selectors:[["","ngSwitchDefault",""]],standalone:!0})}return t})(),nt=(()=>{class t{constructor(e,n,i){this._ngEl=e,this._differs=n,this._renderer=i,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,n){const[i,o]=e.split("."),r=-1===i.indexOf("-")?void 0:to.DashCase;null!=n?this._renderer.setStyle(this._ngEl.nativeElement,i,o?`${n}${o}`:n,r):this._renderer.removeStyle(this._ngEl.nativeElement,i,r)}_applyChanges(e){e.forEachRemovedItem(n=>this._setStyle(n.key,null)),e.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),e.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}static#e=this.\u0275fac=function(n){return new(n||t)(M(Pe),M(Ll),M(Vt))};static#t=this.\u0275dir=fe({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return t})(),dt=(()=>{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 n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:i,ngTemplateOutletContext:o,ngTemplateOutletInjector:r}=this;this._viewRef=n.createEmbeddedView(i,o,r?{injector:r}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}static#e=this.\u0275fac=function(n){return new(n||t)(M(Ri))};static#t=this.\u0275dir=fe({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[wn]})}return t})();function Wi(t,s){return new $(2100,!1)}class Z9{createSubscription(s,e){return Mb(()=>s.subscribe({next:e,error:n=>{throw n}}))}dispose(s){Mb(()=>s.unsubscribe())}}class Y9{createSubscription(s,e){return s.then(e,n=>{throw n})}dispose(s){}}const X9=new Y9,eA=new Z9;let KT=(()=>{class t{constructor(e){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,n=>this._updateLatestValue(e,n))}_selectStrategy(e){if(bl(e))return X9;if(G0(e))return eA;throw Wi()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,n){e===this._obj&&(this._latestValue=n,this._ref.markForCheck())}static#e=this.\u0275fac=function(n){return new(n||t)(M(rt,16))};static#t=this.\u0275pipe=On({name:"async",type:t,pure:!1,standalone:!0})}return t})(),Md=(()=>{class t{constructor(e){this._locale=e}transform(e,n,i){if(!function mg(t){return!(null==t||""===t||t!=t)}(e))return null;i=i||this._locale;try{return function q9(t,s,e){return function ag(t,s,e,n,i,o,r=!1){let u="",h=!1;if(isFinite(t)){let b=function U9(t){let n,i,o,r,u,s=Math.abs(t)+"",e=0;for((i=s.indexOf("."))>-1&&(s=s.replace(".","")),(o=s.search(/e/i))>0?(i<0&&(i=o),i+=+s.slice(o+1),s=s.substring(0,o)):i<0&&(i=s.length),o=0;"0"===s.charAt(o);o++);if(o===(u=s.length))n=[0],i=1;else{for(u--;"0"===s.charAt(u);)u--;for(i-=o,n=[],r=0;o<=u;o++,r++)n[r]=Number(s.charAt(o))}return i>22&&(n=n.splice(0,21),e=i-1,i=1),{digits:n,exponent:e,integerLen:i}}(t);r&&(b=function z9(t){if(0===t.digits[0])return t;const s=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===s?t.digits.push(0,0):1===s&&t.digits.push(0),t.integerLen+=2),t}(b));let T=s.minInt,w=s.minFrac,k=s.maxFrac;if(o){const N=o.match(F9);if(null===N)throw new Error(`${o} is not a valid digit info`);const ee=N[1],oe=N[3],be=N[5];null!=ee&&(T=cg(ee)),null!=oe&&(w=cg(oe)),null!=be?k=cg(be):null!=oe&&w>k&&(k=w)}!function j9(t,s,e){if(s>e)throw new Error(`The minimum number of digits after fraction (${s}) is higher than the maximum (${e}).`);let n=t.digits,i=n.length-t.integerLen;const o=Math.min(Math.max(s,i),e);let r=o+t.integerLen,u=n[r];if(r>0){n.splice(Math.max(t.integerLen,r));for(let w=r;w=5)if(r-1<0){for(let w=0;w>r;w--)n.unshift(0),t.integerLen++;n.unshift(1),t.integerLen++}else n[r-1]++;for(;i=b?O.pop():h=!1),k>=10?1:0},0);T&&(n.unshift(T),t.integerLen++)}(b,w,k);let L=b.digits,O=b.integerLen;const A=b.exponent;let P=[];for(h=L.every(N=>!N);O0?P=L.splice(O,L.length):(P=L,L=[0]);const z=[];for(L.length>=s.lgSize&&z.unshift(L.splice(-s.lgSize,L.length).join(""));L.length>s.gSize;)z.unshift(L.splice(-s.gSize,L.length).join(""));L.length&&z.unshift(L.join("")),u=z.join(Oi(e,n)),P.length&&(u+=Oi(e,i)+P.join("")),A&&(u+=Oi(e,an.Exponential)+"+"+A)}else u=Oi(e,an.Infinity);return u=t<0&&!h?s.negPre+u+s.negSuf:s.posPre+u+s.posSuf,u}(t,function lg(t,s="-"){const e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=t.split(";"),i=n[0],o=n[1],r=-1!==i.indexOf(".")?i.split("."):[i.substring(0,i.lastIndexOf("0")+1),i.substring(i.lastIndexOf("0")+1)],u=r[0],h=r[1]||"";e.posPre=u.substring(0,u.indexOf("#"));for(let T=0;T{class t{transform(e,n,i){if(null==e)return null;if(!this.supports(e))throw Wi();return e.slice(n,i)}supports(e){return"string"==typeof e||Array.isArray(e)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275pipe=On({name:"slice",type:t,pure:!1,standalone:!0})}return t})(),Ne=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=ge({type:t});static#n=this.\u0275inj=me({})}return t})();const ZT="browser";function vn(t){return t===ZT}function YT(t){return"server"===t}let CA=(()=>{class t{static#e=this.\u0275prov=re({token:t,providedIn:"root",factory:()=>new yA(ie(ct),window)})}return t})();class yA{constructor(s,e){this.document=s,this.window=e,this.offset=()=>[0,0]}setOffset(s){this.offset=Array.isArray(s)?()=>s:s}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(s){this.supportsScrolling()&&this.window.scrollTo(s[0],s[1])}scrollToAnchor(s){if(!this.supportsScrolling())return;const e=function TA(t,s){const e=t.getElementById(s)||t.getElementsByName(s)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&"function"==typeof t.body.attachShadow){const n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let i=n.currentNode;for(;i;){const o=i.shadowRoot;if(o){const r=o.getElementById(s)||o.querySelector(`[name="${s}"]`);if(r)return r}i=n.nextNode()}}return null}(this.document,s);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(s){this.supportsScrolling()&&(this.window.history.scrollRestoration=s)}scrollToElement(s){const e=s.getBoundingClientRect(),n=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],i-o[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class XT{}class jA extends i9{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class bg extends jA{static makeCurrent(){!function n9(t){Yf||(Yf=t)}(new bg)}onAndCancel(s,e,n){return s.addEventListener(e,n),()=>{s.removeEventListener(e,n)}}dispatchEvent(s,e){s.dispatchEvent(e)}remove(s){s.parentNode&&s.parentNode.removeChild(s)}createElement(s,e){return(e=e||this.getDefaultDocument()).createElement(s)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(s){return s.nodeType===Node.ELEMENT_NODE}isShadowRoot(s){return s instanceof DocumentFragment}getGlobalEventTarget(s,e){return"window"===e?window:"document"===e?s:"body"===e?s.body:null}getBaseHref(s){const e=function $A(){return Fl=Fl||document.querySelector("base"),Fl?Fl.getAttribute("href"):null}();return null==e?null:function WA(t){Ld=Ld||document.createElement("a"),Ld.setAttribute("href",t);const s=Ld.pathname;return"/"===s.charAt(0)?s:`/${s}`}(e)}resetBaseElement(){Fl=null}getUserAgent(){return window.navigator.userAgent}getCookie(s){return qT(document.cookie,s)}}let Ld,Fl=null,QA=(()=>{class t{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac})}return t})();const vg=new le("EventManagerPlugins");let sw=(()=>{class t{constructor(e,n){this._zone=n,this._eventNameToPlugin=new Map,e.forEach(i=>{i.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,n,i){return this._findPluginFor(n).addEventListener(e,n,i)}getZone(){return this._zone}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(o=>o.supports(e)),!n)throw new $(5101,!1);return this._eventNameToPlugin.set(e,n),n}static#e=this.\u0275fac=function(n){return new(n||t)(ie(vg),ie(je))};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac})}return t})();class ow{constructor(s){this._doc=s}}const Cg="ng-app-id";let rw=(()=>{class t{constructor(e,n,i,o={}){this.doc=e,this.appId=n,this.nonce=i,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=YT(o),this.resetHostNodes()}addStyles(e){for(const n of e)1===this.changeUsageCount(n,1)&&this.onStyleAdded(n)}removeStyles(e){for(const n of e)this.changeUsageCount(n,-1)<=0&&this.onStyleRemoved(n)}ngOnDestroy(){const e=this.styleNodesInDOM;e&&(e.forEach(n=>n.remove()),e.clear());for(const n of this.getAllStyles())this.onStyleRemoved(n);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const n of this.getAllStyles())this.addStyleToHost(e,n)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(const n of this.hostNodes)this.addStyleToHost(n,e)}onStyleRemoved(e){const n=this.styleRef;n.get(e)?.elements?.forEach(i=>i.remove()),n.delete(e)}collectServerRenderedStyles(){const e=this.doc.head?.querySelectorAll(`style[${Cg}="${this.appId}"]`);if(e?.length){const n=new Map;return e.forEach(i=>{null!=i.textContent&&n.set(i.textContent,i)}),n}return null}changeUsageCount(e,n){const i=this.styleRef;if(i.has(e)){const o=i.get(e);return o.usage+=n,o.usage}return i.set(e,{usage:n,elements:[]}),n}getStyleElement(e,n){const i=this.styleNodesInDOM,o=i?.get(n);if(o?.parentNode===e)return i.delete(n),o.removeAttribute(Cg),o;{const r=this.doc.createElement("style");return this.nonce&&r.setAttribute("nonce",this.nonce),r.textContent=n,this.platformIsServer&&r.setAttribute(Cg,this.appId),r}}addStyleToHost(e,n){const i=this.getStyleElement(e,n);e.appendChild(i);const o=this.styleRef,r=o.get(n)?.elements;r?r.push(i):o.set(n,{elements:[i],usage:1})}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}static#e=this.\u0275fac=function(n){return new(n||t)(ie(ct),ie(Ou),ie(bC,8),ie(gn))};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac})}return t})();const yg={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/"},Tg=/%COMP%/g,XA=new le("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function lw(t,s){return s.map(e=>e.replace(Tg,t))}let wg=(()=>{class t{constructor(e,n,i,o,r,u,h,b=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=r,this.platformId=u,this.ngZone=h,this.nonce=b,this.rendererByCompId=new Map,this.platformIsServer=YT(u),this.defaultRenderer=new Ig(e,r,h,this.platformIsServer)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===xi.ShadowDom&&(n={...n,encapsulation:xi.Emulated});const i=this.getOrCreateRenderer(e,n);return i instanceof uw?i.applyToHost(e):i instanceof Sg&&i.applyStyles(),i}getOrCreateRenderer(e,n){const i=this.rendererByCompId;let o=i.get(n.id);if(!o){const r=this.doc,u=this.ngZone,h=this.eventManager,b=this.sharedStylesHost,T=this.removeStylesOnCompDestroy,w=this.platformIsServer;switch(n.encapsulation){case xi.Emulated:o=new uw(h,b,n,this.appId,T,r,u,w);break;case xi.ShadowDom:return new i8(h,b,e,n,r,u,this.nonce,w);default:o=new Sg(h,b,n,T,r,u,w)}i.set(n.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(n){return new(n||t)(ie(sw),ie(rw),ie(Ou),ie(XA),ie(ct),ie(gn),ie(je),ie(bC))};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac})}return t})();class Ig{constructor(s,e,n,i){this.eventManager=s,this.doc=e,this.ngZone=n,this.platformIsServer=i,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(s,e){return e?this.doc.createElementNS(yg[e]||e,s):this.doc.createElement(s)}createComment(s){return this.doc.createComment(s)}createText(s){return this.doc.createTextNode(s)}appendChild(s,e){(cw(s)?s.content:s).appendChild(e)}insertBefore(s,e,n){s&&(cw(s)?s.content:s).insertBefore(e,n)}removeChild(s,e){s&&s.removeChild(e)}selectRootElement(s,e){let n="string"==typeof s?this.doc.querySelector(s):s;if(!n)throw new $(-5104,!1);return e||(n.textContent=""),n}parentNode(s){return s.parentNode}nextSibling(s){return s.nextSibling}setAttribute(s,e,n,i){if(i){e=i+":"+e;const o=yg[i];o?s.setAttributeNS(o,e,n):s.setAttribute(e,n)}else s.setAttribute(e,n)}removeAttribute(s,e,n){if(n){const i=yg[n];i?s.removeAttributeNS(i,e):s.removeAttribute(`${n}:${e}`)}else s.removeAttribute(e)}addClass(s,e){s.classList.add(e)}removeClass(s,e){s.classList.remove(e)}setStyle(s,e,n,i){i&(to.DashCase|to.Important)?s.style.setProperty(e,n,i&to.Important?"important":""):s.style[e]=n}removeStyle(s,e,n){n&to.DashCase?s.style.removeProperty(e):s.style[e]=""}setProperty(s,e,n){s[e]=n}setValue(s,e){s.nodeValue=e}listen(s,e,n){if("string"==typeof s&&!(s=so().getGlobalEventTarget(this.doc,s)))throw new Error(`Unsupported event target ${s} for event ${e}`);return this.eventManager.addEventListener(s,e,this.decoratePreventDefault(n))}decoratePreventDefault(s){return e=>{if("__ngUnwrap__"===e)return s;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>s(e)):s(e))&&e.preventDefault()}}}function cw(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class i8 extends Ig{constructor(s,e,n,i,o,r,u,h){super(s,o,r,h),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const b=lw(i.id,i.styles);for(const T of b){const w=document.createElement("style");u&&w.setAttribute("nonce",u),w.textContent=T,this.shadowRoot.appendChild(w)}}nodeOrShadowRoot(s){return s===this.hostEl?this.shadowRoot:s}appendChild(s,e){return super.appendChild(this.nodeOrShadowRoot(s),e)}insertBefore(s,e,n){return super.insertBefore(this.nodeOrShadowRoot(s),e,n)}removeChild(s,e){return super.removeChild(this.nodeOrShadowRoot(s),e)}parentNode(s){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(s)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Sg extends Ig{constructor(s,e,n,i,o,r,u,h){super(s,o,r,u),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=i,this.styles=h?lw(h,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class uw extends Sg{constructor(s,e,n,i,o,r,u,h){const b=i+"-"+n.id;super(s,e,n,o,r,u,h,b),this.contentAttr=function e8(t){return"_ngcontent-%COMP%".replace(Tg,t)}(b),this.hostAttr=function t8(t){return"_nghost-%COMP%".replace(Tg,t)}(b)}applyToHost(s){this.applyStyles(),this.setAttribute(s,this.hostAttr,"")}createElement(s,e){const n=super.createElement(s,e);return super.setAttribute(n,this.contentAttr,""),n}}let s8=(()=>{class t extends ow{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,i){return e.addEventListener(n,i,!1),()=>this.removeEventListener(e,n,i)}removeEventListener(e,n,i){return e.removeEventListener(n,i)}static#e=this.\u0275fac=function(n){return new(n||t)(ie(ct))};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac})}return t})();const dw=["alt","control","meta","shift"],o8={"\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"},r8={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let a8=(()=>{class t extends ow{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,i){const o=t.parseEventName(n),r=t.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>so().onAndCancel(e,o.domEventName,r))}static parseEventName(e){const n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const o=t._normalizeKey(n.pop());let r="",u=n.indexOf("code");if(u>-1&&(n.splice(u,1),r="code."),dw.forEach(b=>{const T=n.indexOf(b);T>-1&&(n.splice(T,1),r+=b+".")}),r+=o,0!=n.length||0===o.length)return null;const h={};return h.domEventName=i,h.fullKey=r,h}static matchEventFullKeyCode(e,n){let i=o8[e.key]||e.key,o="";return n.indexOf("code.")>-1&&(i=e.code,o="code."),!(null==i||!i)&&(i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),dw.forEach(r=>{r!==i&&(0,r8[r])(e)&&(o+=r+".")}),o+=i,o===n)}static eventCallback(e,n,i){return o=>{t.matchEventFullKeyCode(o,e)&&i.runGuarded(()=>n(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}static#e=this.\u0275fac=function(n){return new(n||t)(ie(ct))};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac})}return t})();const d8=iT(qO,"browser",[{provide:gn,useValue:ZT},{provide:gC,useValue:function l8(){bg.makeCurrent()},multi:!0},{provide:ct,useFactory:function u8(){return function aE(t){hm=t}(document),document},deps:[]}]),p8=new le(""),mw=[{provide:pd,useClass:class KA{addToWindow(s){Rt.getAngularTestability=(n,i=!0)=>{const o=s.findTestabilityInTree(n,i);if(null==o)throw new $(5103,!1);return o},Rt.getAllAngularTestabilities=()=>s.getAllTestabilities(),Rt.getAllAngularRootElements=()=>s.getAllRootElements(),Rt.frameworkStabilizers||(Rt.frameworkStabilizers=[]),Rt.frameworkStabilizers.push(n=>{const i=Rt.getAllAngularTestabilities();let o=i.length,r=!1;const u=function(h){r=r||h,o--,0==o&&n(r)};i.forEach(h=>{h.whenStable(u)})})}findTestabilityInTree(s,e,n){return null==e?null:s.getTestability(e)??(n?so().isShadowRoot(e)?this.findTestabilityInTree(s,e.host,!0):this.findTestabilityInTree(s,e.parentElement,!0):null)}},deps:[]},{provide:Y2,useClass:Gf,deps:[je,qf,pd]},{provide:Gf,useClass:Gf,deps:[je,qf,pd]}],fw=[{provide:Tm,useValue:"root"},{provide:Ls,useFactory:function c8(){return new Ls},deps:[]},{provide:vg,useClass:s8,multi:!0,deps:[ct,je,gn]},{provide:vg,useClass:a8,multi:!0,deps:[ct]},wg,rw,sw,{provide:al,useExisting:wg},{provide:XT,useClass:QA,deps:[]},[]];let gw=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:Ou,useValue:e.appId}]}}static#e=this.\u0275fac=function(n){return new(n||t)(ie(p8,12))};static#t=this.\u0275mod=ge({type:t});static#n=this.\u0275inj=me({providers:[...fw,...mw],imports:[Ne,zO]})}return t})(),_w=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static#e=this.\u0275fac=function(n){return new(n||t)(ie(ct))};static#t=this.\u0275prov=re({token:t,factory:function(n){let i=null;return i=n?new n:function m8(){return new _w(ie(ct))}(),i},providedIn:"root"})}return t})();typeof window<"u"&&window;let Cw=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=re({token:t,factory:function(n){let i=null;return i=n?new(n||t):ie(yw),i},providedIn:"root"})}return t})(),yw=(()=>{class t extends Cw{constructor(e){super(),this._doc=e}sanitize(e,n){if(null==n)return null;switch(e){case ki.NONE:return n;case ki.HTML:return ps(n,"HTML")?fi(n):rC(this._doc,String(n)).toString();case ki.STYLE:return ps(n,"Style")?fi(n):n;case ki.SCRIPT:if(ps(n,"Script"))return fi(n);throw new $(5200,!1);case ki.URL:return ps(n,"URL")?fi(n):Mu(String(n));case ki.RESOURCE_URL:if(ps(n,"ResourceURL"))return fi(n);throw new $(5201,!1);default:throw new $(5202,!1)}}bypassSecurityTrustHtml(e){return function mE(t){return new lE(t)}(e)}bypassSecurityTrustStyle(e){return function fE(t){return new cE(t)}(e)}bypassSecurityTrustScript(e){return function gE(t){return new uE(t)}(e)}bypassSecurityTrustUrl(e){return function _E(t){return new dE(t)}(e)}bypassSecurityTrustResourceUrl(e){return function bE(t){return new pE(t)}(e)}static#e=this.\u0275fac=function(n){return new(n||t)(ie(ct))};static#t=this.\u0275prov=re({token:t,factory:function(n){let i=null;return i=n?new n:function b8(t){return new yw(t.get(ct))}(ie(Fn)),i},providedIn:"root"})}return t})();function qo(t,s){return Mt(s)?Tn(t,s,1):Tn(t,1)}function Bs(t,s){return cn((e,n)=>{let i=0;e.subscribe(sn(n,o=>t.call(s,o,i++)&&n.next(o)))})}function Nl(t){return cn((s,e)=>{try{s.subscribe(e)}finally{e.add(t)}})}class Rd{}class Od{}class gs{constructor(s){this.normalizedNames=new Map,this.lazyUpdate=null,s?"string"==typeof s?this.lazyInit=()=>{this.headers=new Map,s.split("\n").forEach(e=>{const n=e.indexOf(":");if(n>0){const i=e.slice(0,n),o=i.toLowerCase(),r=e.slice(n+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(r):this.headers.set(o,[r])}})}:typeof Headers<"u"&&s instanceof Headers?(this.headers=new Map,s.forEach((e,n)=>{this.setHeaderEntries(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(s).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(s){return this.init(),this.headers.has(s.toLowerCase())}get(s){this.init();const e=this.headers.get(s.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(s){return this.init(),this.headers.get(s.toLowerCase())||null}append(s,e){return this.clone({name:s,value:e,op:"a"})}set(s,e){return this.clone({name:s,value:e,op:"s"})}delete(s,e){return this.clone({name:s,value:e,op:"d"})}maybeSetNormalizedName(s,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,s)}init(){this.lazyInit&&(this.lazyInit instanceof gs?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(s=>this.applyUpdate(s)),this.lazyUpdate=null))}copyFrom(s){s.init(),Array.from(s.headers.keys()).forEach(e=>{this.headers.set(e,s.headers.get(e)),this.normalizedNames.set(e,s.normalizedNames.get(e))})}clone(s){const e=new gs;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof gs?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([s]),e}applyUpdate(s){const e=s.name.toLowerCase();switch(s.op){case"a":case"s":let n=s.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(s.name,e);const i=("a"===s.op?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":const o=s.value;if(o){let r=this.headers.get(e);if(!r)return;r=r.filter(u=>-1===o.indexOf(u)),0===r.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,r)}else this.headers.delete(e),this.normalizedNames.delete(e)}}setHeaderEntries(s,e){const n=(Array.isArray(e)?e:[e]).map(o=>o.toString()),i=s.toLowerCase();this.headers.set(i,n),this.maybeSetNormalizedName(s,i)}forEach(s){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>s(this.normalizedNames.get(e),this.headers.get(e)))}}class v8{encodeKey(s){return ww(s)}encodeValue(s){return ww(s)}decodeKey(s){return decodeURIComponent(s)}decodeValue(s){return decodeURIComponent(s)}}const y8=/%(\d[a-f0-9])/gi,T8={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ww(t){return encodeURIComponent(t).replace(y8,(s,e)=>T8[e]??s)}function Ad(t){return`${t}`}class Ie{constructor(s={}){if(this.updates=null,this.cloneFrom=null,this.encoder=s.encoder||new v8,s.fromString){if(s.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function C8(t,s){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{const o=i.indexOf("="),[r,u]=-1==o?[s.decodeKey(i),""]:[s.decodeKey(i.slice(0,o)),s.decodeValue(i.slice(o+1))],h=e.get(r)||[];h.push(u),e.set(r,h)}),e}(s.fromString,this.encoder)}else s.fromObject?(this.map=new Map,Object.keys(s.fromObject).forEach(e=>{const n=s.fromObject[e],i=Array.isArray(n)?n.map(Ad):[Ad(n)];this.map.set(e,i)})):this.map=null}has(s){return this.init(),this.map.has(s)}get(s){this.init();const e=this.map.get(s);return e?e[0]:null}getAll(s){return this.init(),this.map.get(s)||null}keys(){return this.init(),Array.from(this.map.keys())}append(s,e){return this.clone({param:s,value:e,op:"a"})}appendAll(s){const e=[];return Object.keys(s).forEach(n=>{const i=s[n];Array.isArray(i)?i.forEach(o=>{e.push({param:n,value:o,op:"a"})}):e.push({param:n,value:i,op:"a"})}),this.clone(e)}set(s,e){return this.clone({param:s,value:e,op:"s"})}delete(s,e){return this.clone({param:s,value:e,op:"d"})}toString(){return this.init(),this.keys().map(s=>{const e=this.encoder.encodeKey(s);return this.map.get(s).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(s=>""!==s).join("&")}clone(s){const e=new Ie({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(s),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(s=>this.map.set(s,this.cloneFrom.map.get(s))),this.updates.forEach(s=>{switch(s.op){case"a":case"s":const e=("a"===s.op?this.map.get(s.param):void 0)||[];e.push(Ad(s.value)),this.map.set(s.param,e);break;case"d":if(void 0===s.value){this.map.delete(s.param);break}{let n=this.map.get(s.param)||[];const i=n.indexOf(Ad(s.value));-1!==i&&n.splice(i,1),n.length>0?this.map.set(s.param,n):this.map.delete(s.param)}}}),this.cloneFrom=this.updates=null)}}class w8{constructor(){this.map=new Map}set(s,e){return this.map.set(s,e),this}get(s){return this.map.has(s)||this.map.set(s,s.defaultValue()),this.map.get(s)}delete(s){return this.map.delete(s),this}has(s){return this.map.has(s)}keys(){return this.map.keys()}}function Iw(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function Sw(t){return typeof Blob<"u"&&t instanceof Blob}function xw(t){return typeof FormData<"u"&&t instanceof FormData}class Vl{constructor(s,e,n,i){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=s.toUpperCase(),function I8(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,o=i):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new gs),this.context||(this.context=new w8),this.params){const r=this.params.toString();if(0===r.length)this.urlWithParams=e;else{const u=e.indexOf("?");this.urlWithParams=e+(-1===u?"?":uw.set(k,s.setHeaders[k]),h)),s.setParams&&(b=Object.keys(s.setParams).reduce((w,k)=>w.set(k,s.setParams[k]),b)),new Vl(e,n,o,{params:b,headers:h,context:T,reportProgress:u,responseType:i,withCredentials:r})}}var ra=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}(ra||{});class Dg{constructor(s,e=200,n="OK"){this.headers=s.headers||new gs,this.status=void 0!==s.status?s.status:e,this.statusText=s.statusText||n,this.url=s.url||null,this.ok=this.status>=200&&this.status<300}}class Mg extends Dg{constructor(s={}){super(s),this.type=ra.ResponseHeader}clone(s={}){return new Mg({headers:s.headers||this.headers,status:void 0!==s.status?s.status:this.status,statusText:s.statusText||this.statusText,url:s.url||this.url||void 0})}}class aa extends Dg{constructor(s={}){super(s),this.type=ra.Response,this.body=void 0!==s.body?s.body:null}clone(s={}){return new aa({body:void 0!==s.body?s.body:this.body,headers:s.headers||this.headers,status:void 0!==s.status?s.status:this.status,statusText:s.statusText||this.statusText,url:s.url||this.url||void 0})}}class Dw extends Dg{constructor(s){super(s,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${s.url||"(unknown url)"}`:`Http failure response for ${s.url||"(unknown url)"}: ${s.status} ${s.statusText}`,this.error=s.error||null}}function kg(t,s){return{body:s,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Ki=(()=>{class t{constructor(e){this.handler=e}request(e,n,i={}){let o;if(e instanceof Vl)o=e;else{let h,b;h=i.headers instanceof gs?i.headers:new gs(i.headers),i.params&&(b=i.params instanceof Ie?i.params:new Ie({fromObject:i.params})),o=new Vl(e,n,void 0!==i.body?i.body:null,{headers:h,context:i.context,params:b,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const r=ue(o).pipe(qo(h=>this.handler.handle(h)));if(e instanceof Vl||"events"===i.observe)return r;const u=r.pipe(Bs(h=>h instanceof aa));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return u.pipe(at(h=>{if(null!==h.body&&!(h.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return h.body}));case"blob":return u.pipe(at(h=>{if(null!==h.body&&!(h.body instanceof Blob))throw new Error("Response is not a Blob.");return h.body}));case"text":return u.pipe(at(h=>{if(null!==h.body&&"string"!=typeof h.body)throw new Error("Response is not a string.");return h.body}));default:return u.pipe(at(h=>h.body))}case"response":return u;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:(new Ie).append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,i={}){return this.request("PATCH",e,kg(i,n))}post(e,n,i={}){return this.request("POST",e,kg(i,n))}put(e,n,i={}){return this.request("PUT",e,kg(i,n))}static#e=this.\u0275fac=function(n){return new(n||t)(ie(Rd))};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac})}return t})();function Ew(t,s){return s(t)}function D8(t,s){return(e,n)=>s.intercept(e,{handle:i=>t(i,n)})}const k8=new le(""),Bl=new le(""),Lw=new le("");function E8(){let t=null;return(s,e)=>{null===t&&(t=(de(k8,{optional:!0})??[]).reduceRight(D8,Ew));const n=de(ud),i=n.add();return t(s,e).pipe(Nl(()=>n.remove(i)))}}let Rw=(()=>{class t extends Rd{constructor(e,n){super(),this.backend=e,this.injector=n,this.chain=null,this.pendingTasks=de(ud)}handle(e){if(null===this.chain){const i=Array.from(new Set([...this.injector.get(Bl),...this.injector.get(Lw,[])]));this.chain=i.reduceRight((o,r)=>function M8(t,s,e){return(n,i)=>e.runInContext(()=>s(n,o=>t(o,i)))}(o,r,this.injector),Ew)}const n=this.pendingTasks.add();return this.chain(e,i=>this.backend.handle(i)).pipe(Nl(()=>this.pendingTasks.remove(n)))}static#e=this.\u0275fac=function(n){return new(n||t)(ie(Od),ie(gi))};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac})}return t})();const A8=/^\)\]\}',?\n/;let Aw=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new $(-2800,!1);const n=this.xhrFactory;return(n.\u0275loadImpl?hn(n.\u0275loadImpl()):ue(null)).pipe(ui(()=>new It(o=>{const r=n.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((A,P)=>r.setRequestHeader(A,P.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const A=e.detectContentTypeHeader();null!==A&&r.setRequestHeader("Content-Type",A)}if(e.responseType){const A=e.responseType.toLowerCase();r.responseType="json"!==A?A:"text"}const u=e.serializeBody();let h=null;const b=()=>{if(null!==h)return h;const A=r.statusText||"OK",P=new gs(r.getAllResponseHeaders()),z=function P8(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||e.url;return h=new Mg({headers:P,status:r.status,statusText:A,url:z}),h},T=()=>{let{headers:A,status:P,statusText:z,url:N}=b(),ee=null;204!==P&&(ee=typeof r.response>"u"?r.responseText:r.response),0===P&&(P=ee?200:0);let oe=P>=200&&P<300;if("json"===e.responseType&&"string"==typeof ee){const be=ee;ee=ee.replace(A8,"");try{ee=""!==ee?JSON.parse(ee):null}catch(Je){ee=be,oe&&(oe=!1,ee={error:Je,text:ee})}}oe?(o.next(new aa({body:ee,headers:A,status:P,statusText:z,url:N||void 0})),o.complete()):o.error(new Dw({error:ee,headers:A,status:P,statusText:z,url:N||void 0}))},w=A=>{const{url:P}=b(),z=new Dw({error:A,status:r.status||0,statusText:r.statusText||"Unknown Error",url:P||void 0});o.error(z)};let k=!1;const L=A=>{k||(o.next(b()),k=!0);let P={type:ra.DownloadProgress,loaded:A.loaded};A.lengthComputable&&(P.total=A.total),"text"===e.responseType&&r.responseText&&(P.partialText=r.responseText),o.next(P)},O=A=>{let P={type:ra.UploadProgress,loaded:A.loaded};A.lengthComputable&&(P.total=A.total),o.next(P)};return r.addEventListener("load",T),r.addEventListener("error",w),r.addEventListener("timeout",w),r.addEventListener("abort",w),e.reportProgress&&(r.addEventListener("progress",L),null!==u&&r.upload&&r.upload.addEventListener("progress",O)),r.send(u),o.next({type:ra.Sent}),()=>{r.removeEventListener("error",w),r.removeEventListener("abort",w),r.removeEventListener("load",T),r.removeEventListener("timeout",w),e.reportProgress&&(r.removeEventListener("progress",L),null!==u&&r.upload&&r.upload.removeEventListener("progress",O)),r.readyState!==r.DONE&&r.abort()}})))}static#e=this.\u0275fac=function(n){return new(n||t)(ie(XT))};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac})}return t})();const Eg=new le("XSRF_ENABLED"),Pw=new le("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),Fw=new le("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Nw{}let V8=(()=>{class t{constructor(e,n,i){this.doc=e,this.platform=n,this.cookieName=i,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=qT(e,this.cookieName),this.lastCookieString=e),this.lastToken}static#e=this.\u0275fac=function(n){return new(n||t)(ie(ct),ie(gn),ie(Pw))};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac})}return t})();function B8(t,s){const e=t.url.toLowerCase();if(!de(Eg)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return s(t);const n=de(Nw).getToken(),i=de(Fw);return null!=n&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,n)})),s(t)}var ro=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}(ro||{});function H8(...t){const s=[Ki,Aw,Rw,{provide:Rd,useExisting:Rw},{provide:Od,useExisting:Aw},{provide:Bl,useValue:B8,multi:!0},{provide:Eg,useValue:!0},{provide:Nw,useClass:V8}];for(const e of t)s.push(...e.\u0275providers);return function vm(t){return{\u0275providers:t}}(s)}const Vw=new le("LEGACY_INTERCEPTOR_FN");function G8(){return function zo(t,s){return{\u0275kind:t,\u0275providers:s}}(ro.LegacyInterceptors,[{provide:Vw,useFactory:E8},{provide:Bl,useExisting:Vw,multi:!0}])}let q8=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=ge({type:t});static#n=this.\u0275inj=me({providers:[H8(G8())]})}return t})();function Hs(t){return!!t&&(t instanceof It||Mt(t.lift)&&Mt(t.subscribe))}const{isArray:K8}=Array,{getPrototypeOf:Q8,prototype:J8,keys:Z8}=Object;function Bw(t){if(1===t.length){const s=t[0];if(K8(s))return{args:s,keys:null};if(function Y8(t){return t&&"object"==typeof t&&Q8(t)===J8}(s)){const e=Z8(s);return{args:e.map(n=>s[n]),keys:e}}}return{args:t,keys:null}}const{isArray:X8}=Array;function Hw(t){return at(s=>function eP(t,s){return X8(s)?t(...s):t(s)}(t,s))}function Gw(t,s){return t.reduce((e,n,i)=>(e[n]=s[i],e),{})}function qw(...t){const s=H1(t),{args:e,keys:n}=Bw(t),i=new It(o=>{const{length:r}=e;if(!r)return void o.complete();const u=new Array(r);let h=r,b=r;for(let T=0;T{w||(w=!0,b--),u[T]=k},()=>h--,void 0,()=>{(!h||!w)&&(b||o.next(n?Gw(n,u):u),o.complete())}))}});return s?i.pipe(Hw(s)):i}function la(...t){return function tP(){return cr(1)}()(hn(t,La(t)))}function Fd(t){return new It(s=>{ni(t()).subscribe(s)})}function Pi(t){return t<=0?()=>ss:cn((s,e)=>{let n=0;s.subscribe(sn(e,i=>{++n<=t&&(e.next(i),t<=n&&e.complete())}))})}const Lg={now:()=>(Lg.delegate||Date).now(),delegate:void 0};class nP extends Qt{constructor(s=1/0,e=1/0,n=Lg){super(),this._bufferSize=s,this._windowTime=e,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,s),this._windowTime=Math.max(1,e)}next(s){const{isStopped:e,_buffer:n,_infiniteTimeWindow:i,_timestampProvider:o,_windowTime:r}=this;e||(n.push(s),!i&&n.push(o.now()+r)),this._trimBuffer(),super.next(s)}_subscribe(s){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(s),{_infiniteTimeWindow:n,_buffer:i}=this,o=i.slice();for(let r=0;rnew nP(n,s,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:i})}class Hl{}let Uw=(()=>{class t extends Hl{getTranslation(e){return ue({})}}return t.\u0275fac=function(){let s;return function(n){return(s||(s=we(t)))(n||t)}}(),t.\u0275prov=re({token:t,factory:t.\u0275fac}),t})();class Rg{}let jw=(()=>{class t{handle(e){return e.key}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=re({token:t,factory:t.\u0275fac}),t})();function Gl(t,s){if(t===s)return!0;if(null===t||null===s)return!1;if(t!=t&&s!=s)return!0;let i,o,r,e=typeof t;if(e==typeof s&&"object"==e){if(!Array.isArray(t)){if(Array.isArray(s))return!1;for(o in r=Object.create(null),t){if(!Gl(t[o],s[o]))return!1;r[o]=!0}for(o in s)if(!(o in r)&&typeof s[o]<"u")return!1;return!0}if(!Array.isArray(s))return!1;if((i=t.length)==s.length){for(o=0;o{Og(s[n])?n in t?e[n]=$w(t[n],s[n]):Object.assign(e,{[n]:s[n]}):Object.assign(e,{[n]:s[n]})}),e}class Nd{}let Ww=(()=>{class t extends Nd{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,n){let i;return i="string"==typeof e?this.interpolateString(e,n):"function"==typeof e?this.interpolateFunction(e,n):e,i}getValue(e,n){let i="string"==typeof n?n.split("."):[n];n="";do{n+=i.shift(),!vi(e)||!vi(e[n])||"object"!=typeof e[n]&&i.length?i.length?n+=".":e=void 0:(e=e[n],n="")}while(i.length);return e}interpolateFunction(e,n){return e(n)}interpolateString(e,n){return n?e.replace(this.templateMatcher,(i,o)=>{let r=this.getValue(n,o);return vi(r)?r:i}):e}}return t.\u0275fac=function(){let s;return function(n){return(s||(s=we(t)))(n||t)}}(),t.\u0275prov=re({token:t,factory:t.\u0275fac}),t})();class Vd{}let Kw=(()=>{class t extends Vd{compile(e,n){return e}compileTranslations(e,n){return e}}return t.\u0275fac=function(){let s;return function(n){return(s||(s=we(t)))(n||t)}}(),t.\u0275prov=re({token:t,factory:t.\u0275fac}),t})();class Qw{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new q,this.onLangChange=new q,this.onDefaultLangChange=new q}}const Ag=new le("USE_STORE"),Pg=new le("USE_DEFAULT_LANG"),Fg=new le("DEFAULT_LANGUAGE"),Ng=new le("USE_EXTEND");let Le=(()=>{class t{constructor(e,n,i,o,r,u=!0,h=!1,b=!1,T){this.store=e,this.currentLoader=n,this.compiler=i,this.parser=o,this.missingTranslationHandler=r,this.useDefaultLang=u,this.isolate=h,this.extend=b,this.pending=!1,this._onTranslationChange=new q,this._onLangChange=new q,this._onDefaultLangChange=new q,this._langs=[],this._translations={},this._translationRequests={},T&&this.setDefaultLang(T)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let n=this.retrieveTranslations(e);typeof n<"u"?(null==this.defaultLang&&(this.defaultLang=e),n.pipe(Pi(1)).subscribe(i=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return ue(this.translations[e]);let n=this.retrieveTranslations(e);return typeof n<"u"?(this.currentLang||(this.currentLang=e),n.pipe(Pi(1)).subscribe(i=>{this.changeLang(e)}),n):(this.changeLang(e),ue(this.translations[e]))}retrieveTranslations(e){let n;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),n=this._translationRequests[e]),n}getTranslation(e){this.pending=!0;const n=this.currentLoader.getTranslation(e).pipe(zw(1),Pi(1));return this.loadingTranslations=n.pipe(at(i=>this.compiler.compileTranslations(i,e)),zw(1),Pi(1)),this.loadingTranslations.subscribe({next:i=>{this.translations[e]=this.extend&&this.translations[e]?{...i,...this.translations[e]}:i,this.updateLangs(),this.pending=!1},error:i=>{this.pending=!1}}),n}setTranslation(e,n,i=!1){n=this.compiler.compileTranslations(n,e),this.translations[e]=(i||this.extend)&&this.translations[e]?$w(this.translations[e],n):n,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(n=>{-1===this.langs.indexOf(n)&&this.langs.push(n)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,n,i){let o;if(n instanceof Array){let r={},u=!1;for(let h of n)r[h]=this.getParsedResult(e,h,i),Hs(r[h])&&(u=!0);return u?qw(n.map(b=>Hs(r[b])?r[b]:ue(r[b]))).pipe(at(b=>{let T={};return b.forEach((w,k)=>{T[n[k]]=w}),T})):r}if(e&&(o=this.parser.interpolate(this.parser.getValue(e,n),i)),typeof o>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(o=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],n),i)),typeof o>"u"){let r={key:n,translateService:this};typeof i<"u"&&(r.interpolateParams=i),o=this.missingTranslationHandler.handle(r)}return typeof o<"u"?o:n}get(e,n){if(!vi(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(qo(i=>Hs(i=this.getParsedResult(i,e,n))?i:ue(i)));{let i=this.getParsedResult(this.translations[this.currentLang],e,n);return Hs(i)?i:ue(i)}}getStreamOnTranslationChange(e,n){if(!vi(e)||!e.length)throw new Error('Parameter "key" required');return la(Fd(()=>this.get(e,n)),this.onTranslationChange.pipe(ui(i=>{const o=this.getParsedResult(i.translations,e,n);return"function"==typeof o.subscribe?o:ue(o)})))}stream(e,n){if(!vi(e)||!e.length)throw new Error('Parameter "key" required');return la(Fd(()=>this.get(e,n)),this.onLangChange.pipe(ui(i=>{const o=this.getParsedResult(i.translations,e,n);return Hs(o)?o:ue(o)})))}instant(e,n){if(!vi(e)||!e.length)throw new Error('Parameter "key" required');let i=this.getParsedResult(this.translations[this.currentLang],e,n);if(Hs(i)){if(e instanceof Array){let o={};return e.forEach((r,u)=>{o[e[u]]=e[u]}),o}return e}return i}set(e,n,i=this.currentLang){this.translations[i][e]=this.compiler.compile(n,i),this.updateLangs(),this.onTranslationChange.emit({lang:i,translations:this.translations[i]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return t.\u0275fac=function(e){return new(e||t)(ie(Qw),ie(Hl),ie(Vd),ie(Nd),ie(Rg),ie(Pg),ie(Ag),ie(Ng),ie(Fg))},t.\u0275prov=re({token:t,factory:t.\u0275fac}),t})(),Bd=(()=>{class t{constructor(e,n,i){this.translateService=e,this.element=n,this._ref=i,this.onTranslationChangeSub||(this.onTranslationChangeSub=this.translateService.onTranslationChange.subscribe(o=>{o.lang===this.translateService.currentLang&&this.checkNodes(!0,o.translations)})),this.onLangChangeSub||(this.onLangChangeSub=this.translateService.onLangChange.subscribe(o=>{this.checkNodes(!0,o.translations)})),this.onDefaultLangChangeSub||(this.onDefaultLangChangeSub=this.translateService.onDefaultLangChange.subscribe(o=>{this.checkNodes(!0)}))}set translate(e){e&&(this.key=e,this.checkNodes())}set translateParams(e){Gl(this.currentParams,e)||(this.currentParams=e,this.checkNodes(!0))}ngAfterViewChecked(){this.checkNodes()}checkNodes(e=!1,n){let i=this.element.nativeElement.childNodes;i.length||(this.setContent(this.element.nativeElement,this.key),i=this.element.nativeElement.childNodes);for(let o=0;o{r!==e&&(n.lastKey=e),n.originalContent||(n.originalContent=this.getContent(n)),n.currentValue=vi(r)?r:n.originalContent||e,this.setContent(n,this.key?n.currentValue:n.originalContent.replace(e,n.currentValue)),this._ref.markForCheck()};if(vi(i)){let r=this.translateService.getParsedResult(i,e,this.currentParams);Hs(r)?r.subscribe({next:o}):o(r)}else this.translateService.get(e,this.currentParams).subscribe(o)}}getContent(e){return vi(e.textContent)?e.textContent:e.data}setContent(e,n){vi(e.textContent)?e.textContent=n:e.data=n}ngOnDestroy(){this.onLangChangeSub&&this.onLangChangeSub.unsubscribe(),this.onDefaultLangChangeSub&&this.onDefaultLangChangeSub.unsubscribe(),this.onTranslationChangeSub&&this.onTranslationChangeSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(M(Le),M(Pe),M(rt))},t.\u0275dir=fe({type:t,selectors:[["","translate",""],["","ngx-translate",""]],inputs:{translate:"translate",translateParams:"translateParams"}}),t})(),pe=(()=>{class t{constructor(e,n){this.translate=e,this._ref=n,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,n,i){let o=r=>{this.value=void 0!==r?r:e,this.lastKey=e,this._ref.markForCheck()};if(i){let r=this.translate.getParsedResult(i,e,n);Hs(r.subscribe)?r.subscribe(o):o(r)}this.translate.get(e,n).subscribe(o)}transform(e,...n){if(!e||!e.length)return e;if(Gl(e,this.lastKey)&&Gl(n,this.lastParams))return this.value;let i;if(vi(n[0])&&n.length)if("string"==typeof n[0]&&n[0].length){let o=n[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{i=JSON.parse(o)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${n[0]}`)}}else"object"==typeof n[0]&&!Array.isArray(n[0])&&(i=n[0]);return this.lastKey=e,this.lastParams=n,this.updateValue(e,i),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(o=>{this.lastKey&&o.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,i,o.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(o=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,i,o.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,i))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return t.\u0275fac=function(e){return new(e||t)(M(Le,16),M(rt,16))},t.\u0275pipe=On({name:"translate",type:t,pure:!1}),t.\u0275prov=re({token:t,factory:t.\u0275fac}),t})(),iP=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:Hl,useClass:Uw},e.compiler||{provide:Vd,useClass:Kw},e.parser||{provide:Nd,useClass:Ww},e.missingTranslationHandler||{provide:Rg,useClass:jw},Qw,{provide:Ag,useValue:e.isolate},{provide:Pg,useValue:e.useDefaultLang},{provide:Ng,useValue:e.extend},{provide:Fg,useValue:e.defaultLanguage},Le]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:Hl,useClass:Uw},e.compiler||{provide:Vd,useClass:Kw},e.parser||{provide:Nd,useClass:Ww},e.missingTranslationHandler||{provide:Rg,useClass:jw},{provide:Ag,useValue:e.isolate},{provide:Pg,useValue:e.useDefaultLang},{provide:Ng,useValue:e.extend},{provide:Fg,useValue:e.defaultLanguage},Le]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ge({type:t}),t.\u0275inj=me({}),t})();class sP{constructor(s,e="/assets/i18n/",n=".json"){this.http=s,this.prefix=e,this.suffix=n}getTranslation(s){return this.http.get(`${this.prefix}${s}${this.suffix}`)}}let Jw=(()=>{class t{constructor(e,n){this._renderer=e,this._elementRef=n,this.onChange=i=>{},this.onTouched=()=>{}}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static#e=this.\u0275fac=function(n){return new(n||t)(M(Vt),M(Pe))};static#t=this.\u0275dir=fe({type:t})}return t})(),Uo=(()=>{class t extends Jw{static#e=this.\u0275fac=function(){let e;return function(i){return(e||(e=we(t)))(i||t)}}();static#t=this.\u0275dir=fe({type:t,features:[_e]})}return t})();const dn=new le("NgValueAccessor"),rP={provide:dn,useExisting:Ze(()=>Xe),multi:!0},lP=new le("CompositionEventMode");let Xe=(()=>{class t extends Jw{constructor(e,n,i){super(e,n),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function aP(){const t=so()?so().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(n){return new(n||t)(M(Vt),M(Pe),M(lP,8))};static#t=this.\u0275dir=fe({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(n,i){1&n&&v("input",function(r){return i._handleInput(r.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(r){return i._compositionEnd(r.target.value)})},features:[Qe([rP]),_e]})}return t})();function ao(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}const Bn=new le("NgValidators"),lo=new le("NgAsyncValidators");function t3(t){return ao(t.value)?{required:!0}:null}function Hd(t){return null}function l3(t){return null!=t}function c3(t){return bl(t)?hn(t):t}function u3(t){let s={};return t.forEach(e=>{s=null!=e?{...s,...e}:s}),0===Object.keys(s).length?null:s}function d3(t,s){return s.map(e=>e(t))}function p3(t){return t.map(s=>function uP(t){return!t.validate}(s)?s:e=>s.validate(e))}function Vg(t){return null!=t?function h3(t){if(!t)return null;const s=t.filter(l3);return 0==s.length?null:function(e){return u3(d3(e,s))}}(p3(t)):null}function Bg(t){return null!=t?function m3(t){if(!t)return null;const s=t.filter(l3);return 0==s.length?null:function(e){return qw(d3(e,s).map(c3)).pipe(at(u3))}}(p3(t)):null}function f3(t,s){return null===t?[s]:Array.isArray(t)?[...t,s]:[t,s]}function Hg(t){return t?Array.isArray(t)?t:[t]:[]}function Gd(t,s){return Array.isArray(t)?t.includes(s):t===s}function b3(t,s){const e=Hg(s);return Hg(t).forEach(i=>{Gd(e,i)||e.push(i)}),e}function v3(t,s){return Hg(s).filter(e=>!Gd(t,e))}class C3{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(s){this._rawValidators=s||[],this._composedValidatorFn=Vg(this._rawValidators)}_setAsyncValidators(s){this._rawAsyncValidators=s||[],this._composedAsyncValidatorFn=Bg(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(s){this._onDestroyCallbacks.push(s)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(s=>s()),this._onDestroyCallbacks=[]}reset(s=void 0){this.control&&this.control.reset(s)}hasError(s,e){return!!this.control&&this.control.hasError(s,e)}getError(s,e){return this.control?this.control.getError(s,e):null}}class ei extends C3{get formDirective(){return null}get path(){return null}}class Qi extends C3{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class y3{constructor(s){this._cd=s}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 xe=(()=>{class t extends y3{constructor(e){super(e)}static#e=this.\u0275fac=function(n){return new(n||t)(M(Qi,2))};static#t=this.\u0275dir=fe({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,i){2&n&&Jn("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[_e]})}return t})(),$e=(()=>{class t extends y3{constructor(e){super(e)}static#e=this.\u0275fac=function(n){return new(n||t)(M(ei,10))};static#t=this.\u0275dir=fe({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,i){2&n&&Jn("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[_e]})}return t})();const ql="VALID",zd="INVALID",ca="PENDING",zl="DISABLED";function zg(t){return(Ud(t)?t.validators:t)||null}function Ug(t,s){return(Ud(s)?s.asyncValidators:t)||null}function Ud(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class jg{constructor(s,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(s),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(s){this._rawValidators=this._composedValidatorFn=s}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(s){this._rawAsyncValidators=this._composedAsyncValidatorFn=s}get parent(){return this._parent}get valid(){return this.status===ql}get invalid(){return this.status===zd}get pending(){return this.status==ca}get disabled(){return this.status===zl}get enabled(){return this.status!==zl}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(s){this._assignValidators(s)}setAsyncValidators(s){this._assignAsyncValidators(s)}addValidators(s){this.setValidators(b3(s,this._rawValidators))}addAsyncValidators(s){this.setAsyncValidators(b3(s,this._rawAsyncValidators))}removeValidators(s){this.setValidators(v3(s,this._rawValidators))}removeAsyncValidators(s){this.setAsyncValidators(v3(s,this._rawAsyncValidators))}hasValidator(s){return Gd(this._rawValidators,s)}hasAsyncValidator(s){return Gd(this._rawAsyncValidators,s)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(s={}){this.touched=!0,this._parent&&!s.onlySelf&&this._parent.markAsTouched(s)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(s=>s.markAllAsTouched())}markAsUntouched(s={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!s.onlySelf&&this._parent._updateTouched(s)}markAsDirty(s={}){this.pristine=!1,this._parent&&!s.onlySelf&&this._parent.markAsDirty(s)}markAsPristine(s={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!s.onlySelf&&this._parent._updatePristine(s)}markAsPending(s={}){this.status=ca,!1!==s.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!s.onlySelf&&this._parent.markAsPending(s)}disable(s={}){const e=this._parentMarkedDirty(s.onlySelf);this.status=zl,this.errors=null,this._forEachChild(n=>{n.disable({...s,onlySelf:!0})}),this._updateValue(),!1!==s.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...s,skipPristineCheck:e}),this._onDisabledChange.forEach(n=>n(!0))}enable(s={}){const e=this._parentMarkedDirty(s.onlySelf);this.status=ql,this._forEachChild(n=>{n.enable({...s,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:s.emitEvent}),this._updateAncestors({...s,skipPristineCheck:e}),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(s){this._parent&&!s.onlySelf&&(this._parent.updateValueAndValidity(s),s.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(s){this._parent=s}getRawValue(){return this.value}updateValueAndValidity(s={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ql||this.status===ca)&&this._runAsyncValidator(s.emitEvent)),!1!==s.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!s.onlySelf&&this._parent.updateValueAndValidity(s)}_updateTreeValidity(s={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(s)),this.updateValueAndValidity({onlySelf:!0,emitEvent:s.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?zl:ql}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(s){if(this.asyncValidator){this.status=ca,this._hasOwnPendingAsyncValidator=!0;const e=c3(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:s})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(s,e={}){this.errors=s,this._updateControlsErrors(!1!==e.emitEvent)}get(s){let e=s;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((n,i)=>n&&n._find(i),this)}getError(s,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[s]:null}hasError(s,e){return!!this.getError(s,e)}get root(){let s=this;for(;s._parent;)s=s._parent;return s}_updateControlsErrors(s){this.status=this._calculateStatus(),s&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(s)}_initObservables(){this.valueChanges=new q,this.statusChanges=new q}_calculateStatus(){return this._allControlsDisabled()?zl:this.errors?zd:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ca)?ca:this._anyControlsHaveStatus(zd)?zd:ql}_anyControlsHaveStatus(s){return this._anyControls(e=>e.status===s)}_anyControlsDirty(){return this._anyControls(s=>s.dirty)}_anyControlsTouched(){return this._anyControls(s=>s.touched)}_updatePristine(s={}){this.pristine=!this._anyControlsDirty(),this._parent&&!s.onlySelf&&this._parent._updatePristine(s)}_updateTouched(s={}){this.touched=this._anyControlsTouched(),this._parent&&!s.onlySelf&&this._parent._updateTouched(s)}_registerOnCollectionChange(s){this._onCollectionChange=s}_setUpdateStrategy(s){Ud(s)&&null!=s.updateOn&&(this._updateOn=s.updateOn)}_parentMarkedDirty(s){return!s&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(s){return null}_assignValidators(s){this._rawValidators=Array.isArray(s)?s.slice():s,this._composedValidatorFn=function mP(t){return Array.isArray(t)?Vg(t):t||null}(this._rawValidators)}_assignAsyncValidators(s){this._rawAsyncValidators=Array.isArray(s)?s.slice():s,this._composedAsyncValidatorFn=function fP(t){return Array.isArray(t)?Bg(t):t||null}(this._rawAsyncValidators)}}class $g extends jg{constructor(s,e,n){super(zg(e),Ug(n,e)),this.controls=s,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(s,e){return this.controls[s]?this.controls[s]:(this.controls[s]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(s,e,n={}){this.registerControl(s,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(s,e={}){this.controls[s]&&this.controls[s]._registerOnCollectionChange(()=>{}),delete this.controls[s],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(s,e,n={}){this.controls[s]&&this.controls[s]._registerOnCollectionChange(()=>{}),delete this.controls[s],e&&this.registerControl(s,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(s){return this.controls.hasOwnProperty(s)&&this.controls[s].enabled}setValue(s,e={}){(function I3(t,s,e){t._forEachChild((n,i)=>{if(void 0===e[i])throw new $(1002,"")})})(this,0,s),Object.keys(s).forEach(n=>{(function w3(t,s,e){const n=t.controls;if(!(s?Object.keys(n):n).length)throw new $(1e3,"");if(!n[e])throw new $(1001,"")})(this,!0,n),this.controls[n].setValue(s[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(s,e={}){null!=s&&(Object.keys(s).forEach(n=>{const i=this.controls[n];i&&i.patchValue(s[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(s={},e={}){this._forEachChild((n,i)=>{n.reset(s?s[i]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(s,e,n)=>(s[n]=e.getRawValue(),s))}_syncPendingControls(){let s=this._reduceChildren(!1,(e,n)=>!!n._syncPendingControls()||e);return s&&this.updateValueAndValidity({onlySelf:!0}),s}_forEachChild(s){Object.keys(this.controls).forEach(e=>{const n=this.controls[e];n&&s(n,e)})}_setUpControls(){this._forEachChild(s=>{s.setParent(this),s._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(s){for(const[e,n]of Object.entries(this.controls))if(this.contains(e)&&s(n))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,n,i)=>((n.enabled||this.disabled)&&(e[i]=n.value),e))}_reduceChildren(s,e){let n=s;return this._forEachChild((i,o)=>{n=e(n,i,o)}),n}_allControlsDisabled(){for(const s of Object.keys(this.controls))if(this.controls[s].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(s){return this.controls.hasOwnProperty(s)?this.controls[s]:null}}const jo=new le("CallSetDisabledState",{providedIn:"root",factory:()=>Ul}),Ul="always";function jl(t,s,e=Ul){Wg(t,s),s.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&s.valueAccessor.setDisabledState?.(t.disabled),function bP(t,s){s.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&S3(t,s)})}(t,s),function CP(t,s){const e=(n,i)=>{s.valueAccessor.writeValue(n),i&&s.viewToModelUpdate(n)};t.registerOnChange(e),s._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,s),function vP(t,s){s.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&S3(t,s),"submit"!==t.updateOn&&t.markAsTouched()})}(t,s),function _P(t,s){if(s.valueAccessor.setDisabledState){const e=n=>{s.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),s._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,s)}function Wd(t,s){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(s)})}function Wg(t,s){const e=function g3(t){return t._rawValidators}(t);null!==s.validator?t.setValidators(f3(e,s.validator)):"function"==typeof e&&t.setValidators([e]);const n=function _3(t){return t._rawAsyncValidators}(t);null!==s.asyncValidator?t.setAsyncValidators(f3(n,s.asyncValidator)):"function"==typeof n&&t.setAsyncValidators([n]);const i=()=>t.updateValueAndValidity();Wd(s._rawValidators,i),Wd(s._rawAsyncValidators,i)}function S3(t,s){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),s.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}const SP={provide:ei,useExisting:Ze(()=>He)},$l=(()=>Promise.resolve())();let He=(()=>{class t extends ei{constructor(e,n,i){super(),this.callSetDisabledState=i,this.submitted=!1,this._directives=new Set,this.ngSubmit=new q,this.form=new $g({},Vg(e),Bg(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){$l.then(()=>{const n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),jl(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){$l.then(()=>{const n=this._findContainer(e.path);n&&n.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){$l.then(()=>{const n=this._findContainer(e.path),i=new $g({});(function x3(t,s){Wg(t,s)})(i,e),n.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){$l.then(()=>{const n=this._findContainer(e.path);n&&n.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){$l.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,function D3(t,s){t._syncPendingControls(),s.forEach(e=>{const n=e.control;"submit"===n.updateOn&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static#e=this.\u0275fac=function(n){return new(n||t)(M(Bn,10),M(lo,10),M(jo,8))};static#t=this.\u0275dir=fe({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,i){1&n&&v("submit",function(r){return i.onSubmit(r)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Qe([SP]),_e]})}return t})();function M3(t,s){const e=t.indexOf(s);e>-1&&t.splice(e,1)}function k3(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const E3=class extends jg{constructor(s=null,e,n){super(zg(e),Ug(n,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(s),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Ud(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=k3(s)?s.value:s)}setValue(s,e={}){this.value=this._pendingValue=s,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(n=>n(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(s,e={}){this.setValue(s,e)}reset(s=this.defaultValue,e={}){this._applyFormState(s),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(s){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(s){this._onChange.push(s)}_unregisterOnChange(s){M3(this._onChange,s)}registerOnDisabledChange(s){this._onDisabledChange.push(s)}_unregisterOnDisabledChange(s){M3(this._onDisabledChange,s)}_forEachChild(s){}_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(s){k3(s)?(this.value=this._pendingValue=s.value,s.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=s}},MP={provide:Qi,useExisting:Ze(()=>Ce)},O3=(()=>Promise.resolve())();let Ce=(()=>{class t extends Qi{constructor(e,n,i,o,r,u){super(),this._changeDetectorRef=r,this.callSetDisabledState=u,this.control=new E3,this._registered=!1,this.name="",this.update=new q,this._parent=e,this._setValidators(n),this._setAsyncValidators(i),this.valueAccessor=function Jg(t,s){if(!s)return null;let e,n,i;return Array.isArray(s),s.forEach(o=>{o.constructor===Xe?e=o:function wP(t){return Object.getPrototypeOf(t.constructor)===Uo}(o)?n=o:i=o}),i||n||e||null}(0,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),function Qg(t,s){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(s,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(){jl(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){O3.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const n=e.isDisabled.currentValue,i=0!==n&&sa(n);O3.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function jd(t,s){return[...s.path,t]}(e,this._parent):[e]}static#e=this.\u0275fac=function(n){return new(n||t)(M(ei,9),M(Bn,10),M(lo,10),M(dn,10),M(rt,8),M(jo,8))};static#t=this.\u0275dir=fe({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:[Qe([MP]),_e,wn]})}return t})(),We=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275dir=fe({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return t})();const kP={provide:dn,useExisting:Ze(()=>Qd),multi:!0};let Qd=(()=>{class t extends Uo{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=n=>{e(""==n?null:parseFloat(n))}}static#e=this.\u0275fac=function(){let e;return function(i){return(e||(e=we(t)))(i||t)}}();static#t=this.\u0275dir=fe({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,i){1&n&&v("input",function(r){return i.onChange(r.target.value)})("blur",function(){return i.onTouched()})},features:[Qe([kP]),_e]})}return t})(),A3=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=ge({type:t});static#n=this.\u0275inj=me({})}return t})();const Zg=new le("NgModelWithFormControlWarning");function z3(t){return"number"==typeof t?t:parseFloat(t)}let $o=(()=>{class t{constructor(){this._validator=Hd}ngOnChanges(e){if(this.inputName in e){const n=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):Hd,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275dir=fe({type:t,features:[wn]})}return t})();const UP={provide:Bn,useExisting:Ze(()=>Jd),multi:!0};let Jd=(()=>{class t extends $o{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=e=>z3(e),this.createValidator=e=>function e3(t){return s=>{if(ao(s.value)||ao(t))return null;const e=parseFloat(s.value);return!isNaN(e)&&e>t?{max:{max:t,actual:s.value}}:null}}(e)}static#e=this.\u0275fac=function(){let e;return function(i){return(e||(e=we(t)))(i||t)}}();static#t=this.\u0275dir=fe({type:t,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(n,i){2&n&&F("max",i._enabled?i.max:null)},inputs:{max:"max"},features:[Qe([UP]),_e]})}return t})();const jP={provide:Bn,useExisting:Ze(()=>Zd),multi:!0};let Zd=(()=>{class t extends $o{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>z3(e),this.createValidator=e=>function Xw(t){return s=>{if(ao(s.value)||ao(t))return null;const e=parseFloat(s.value);return!isNaN(e)&&eWl),multi:!0};let Wl=(()=>{class t extends $o{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=sa,this.createValidator=e=>t3}enabled(e){return e}static#e=this.\u0275fac=function(){let e;return function(i){return(e||(e=we(t)))(i||t)}}();static#t=this.\u0275dir=fe({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(n,i){2&n&&F("required",i._enabled?"":null)},inputs:{required:"required"},features:[Qe([$P]),_e]})}return t})();const JP={provide:Bn,useExisting:Ze(()=>In),multi:!0};let In=(()=>{class t extends $o{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=e=>function q3(t){return"number"==typeof t?t:parseInt(t,10)}(e),this.createValidator=e=>function r3(t){return s=>function Yw(t){return null!=t&&"number"==typeof t.length}(s.value)&&s.value.length>t?{maxlength:{requiredLength:t,actualLength:s.value.length}}:null}(e)}static#e=this.\u0275fac=function(){let e;return function(i){return(e||(e=we(t)))(i||t)}}();static#t=this.\u0275dir=fe({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(n,i){2&n&&F("maxlength",i._enabled?i.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Qe([JP]),_e]})}return t})(),K3=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=ge({type:t});static#n=this.\u0275inj=me({imports:[A3]})}return t})(),Yd=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:jo,useValue:e.callSetDisabledState??Ul}]}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=ge({type:t});static#n=this.\u0275inj=me({imports:[K3]})}return t})(),XP=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Zg,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:jo,useValue:e.callSetDisabledState??Ul}]}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=ge({type:t});static#n=this.\u0275inj=me({imports:[K3]})}return t})();class Q3{}class eF{}const Gs="*";function Ji(t,s){return{type:7,name:t,definitions:s,options:{}}}function Ut(t,s=null){return{type:4,styles:s,timings:t}}function J3(t,s=null){return{type:2,steps:t,options:s}}function Tt(t){return{type:6,styles:t,offset:null}}function qs(t,s,e){return{type:0,name:t,styles:s,options:e}}function Yt(t,s,e=null){return{type:1,expr:t,animation:s,options:e}}function ua(t,s=null){return{type:8,animation:t,options:s}}function tF(t=null){return{type:9,options:t}}function Xd(t,s=null){return{type:10,animation:t,options:s}}function nF(t,s,e=null){return{type:11,selector:t,animation:s,options:e}}class Kl{constructor(s=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=s+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(s=>s()),this._onDoneFns=[])}onStart(s){this._originalOnStartFns.push(s),this._onStartFns.push(s)}onDone(s){this._originalOnDoneFns.push(s),this._onDoneFns.push(s)}onDestroy(s){this._onDestroyFns.push(s)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(s=>s()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(s=>s()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(s){this._position=this.totalTime?s*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(s){const e="start"==s?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class Z3{constructor(s){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=s;let e=0,n=0,i=0;const o=this.players.length;0==o?queueMicrotask(()=>this._onFinish()):this.players.forEach(r=>{r.onDone(()=>{++e==o&&this._onFinish()}),r.onDestroy(()=>{++n==o&&this._onDestroy()}),r.onStart(()=>{++i==o&&this._onStart()})}),this.totalTime=this.players.reduce((r,u)=>Math.max(r,u.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(s=>s()),this._onDoneFns=[])}init(){this.players.forEach(s=>s.init())}onStart(s){this._onStartFns.push(s)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(s=>s()),this._onStartFns=[])}onDone(s){this._onDoneFns.push(s)}onDestroy(s){this._onDestroyFns.push(s)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(s=>s.play())}pause(){this.players.forEach(s=>s.pause())}restart(){this.players.forEach(s=>s.restart())}finish(){this._onFinish(),this.players.forEach(s=>s.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(s=>s.destroy()),this._onDestroyFns.forEach(s=>s()),this._onDestroyFns=[])}reset(){this.players.forEach(s=>s.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(s){const e=s*this.totalTime;this.players.forEach(n=>{const i=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(i)})}getPosition(){const s=this.players.reduce((e,n)=>null===e||n.totalTime>e.totalTime?n:e,null);return null!=s?s.getPosition():0}beforeDestroy(){this.players.forEach(s=>{s.beforeDestroy&&s.beforeDestroy()})}triggerCallback(s){const e="start"==s?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}function Y3(t){return new $(3e3,!1)}function co(t){switch(t.length){case 0:return new Kl;case 1:return t[0];default:return new Z3(t)}}function X3(t,s,e=new Map,n=new Map){const i=[],o=[];let r=-1,u=null;if(s.forEach(h=>{const b=h.get("offset"),T=b==r,w=T&&u||new Map;h.forEach((k,L)=>{let O=L,A=k;if("offset"!==L)switch(O=t.normalizePropertyName(O,i),A){case"!":A=e.get(L);break;case Gs:A=n.get(L);break;default:A=t.normalizeStyleValue(L,O,A,i)}w.set(O,A)}),T||o.push(w),u=w,r=b}),i.length)throw function SF(t){return new $(3502,!1)}();return o}function s_(t,s,e,n){switch(s){case"start":t.onStart(()=>n(e&&o_(e,"start",t)));break;case"done":t.onDone(()=>n(e&&o_(e,"done",t)));break;case"destroy":t.onDestroy(()=>n(e&&o_(e,"destroy",t)))}}function o_(t,s,e){const o=r_(t.element,t.triggerName,t.fromState,t.toState,s||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),r=t._data;return null!=r&&(o._data=r),o}function r_(t,s,e,n,i="",o=0,r){return{element:t,triggerName:s,fromState:e,toState:n,phaseName:i,totalTime:o,disabled:!!r}}function Ci(t,s,e){let n=t.get(s);return n||t.set(s,n=e),n}function eI(t){const s=t.indexOf(":");return[t.substring(1,s),t.slice(s+1)]}const NF=(()=>typeof document>"u"?null:document.documentElement)();function a_(t){const s=t.parentNode||t.host||null;return s===NF?null:s}let Wo=null,tI=!1;function nI(t,s){for(;s;){if(s===t)return!0;s=a_(s)}return!1}function iI(t,s,e){if(e)return Array.from(t.querySelectorAll(s));const n=t.querySelector(s);return n?[n]:[]}let sI=(()=>{class t{validateStyleProperty(e){return function BF(t){Wo||(Wo=function HF(){return typeof document<"u"?document.body:null}()||{},tI=!!Wo.style&&"WebkitAppearance"in Wo.style);let s=!0;return Wo.style&&!function VF(t){return"ebkit"==t.substring(1,6)}(t)&&(s=t in Wo.style,!s&&tI&&(s="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Wo.style)),s}(e)}matchesElement(e,n){return!1}containsElement(e,n){return nI(e,n)}getParentElement(e){return a_(e)}query(e,n,i){return iI(e,n,i)}computeStyle(e,n,i){return i||""}animate(e,n,i,o,r,u=[],h){return new Kl(i,o)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac})}return t})(),l_=(()=>{class t{static#e=this.NOOP=new sI}return t})();const GF=1e3,c_="ng-enter",ep="ng-leave",tp="ng-trigger",np=".ng-trigger",rI="ng-animating",u_=".ng-animating";function zs(t){if("number"==typeof t)return t;const s=t.match(/^(-?[\.\d]+)(m?s)/);return!s||s.length<2?0:d_(parseFloat(s[1]),s[2])}function d_(t,s){return"s"===s?t*GF:t}function ip(t,s,e){return t.hasOwnProperty("duration")?t:function zF(t,s,e){let i,o=0,r="";if("string"==typeof t){const u=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===u)return s.push(Y3()),{duration:0,delay:0,easing:""};i=d_(parseFloat(u[1]),u[2]);const h=u[3];null!=h&&(o=d_(parseFloat(h),u[4]));const b=u[5];b&&(r=b)}else i=t;if(!e){let u=!1,h=s.length;i<0&&(s.push(function iF(){return new $(3100,!1)}()),u=!0),o<0&&(s.push(function sF(){return new $(3101,!1)}()),u=!0),u&&s.splice(h,0,Y3())}return{duration:i,delay:o,easing:r}}(t,s,e)}function Ql(t,s={}){return Object.keys(t).forEach(e=>{s[e]=t[e]}),s}function aI(t){const s=new Map;return Object.keys(t).forEach(e=>{s.set(e,t[e])}),s}function uo(t,s=new Map,e){if(e)for(let[n,i]of e)s.set(n,i);for(let[n,i]of t)s.set(n,i);return s}function _s(t,s,e){s.forEach((n,i)=>{const o=h_(i);e&&!e.has(i)&&e.set(i,t.style[o]),t.style[o]=n})}function Ko(t,s){s.forEach((e,n)=>{const i=h_(n);t.style[i]=""})}function Jl(t){return Array.isArray(t)?1==t.length?t[0]:J3(t):t}const p_=new RegExp("{{\\s*(.+?)\\s*}}","g");function cI(t){let s=[];if("string"==typeof t){let e;for(;e=p_.exec(t);)s.push(e[1]);p_.lastIndex=0}return s}function Zl(t,s,e){const n=t.toString(),i=n.replace(p_,(o,r)=>{let u=s[r];return null==u&&(e.push(function rF(t){return new $(3003,!1)}()),u=""),u.toString()});return i==n?t:i}function sp(t){const s=[];let e=t.next();for(;!e.done;)s.push(e.value),e=t.next();return s}const $F=/-+([a-z0-9])/g;function h_(t){return t.replace($F,(...s)=>s[1].toUpperCase())}function yi(t,s,e){switch(s.type){case 7:return t.visitTrigger(s,e);case 0:return t.visitState(s,e);case 1:return t.visitTransition(s,e);case 2:return t.visitSequence(s,e);case 3:return t.visitGroup(s,e);case 4:return t.visitAnimate(s,e);case 5:return t.visitKeyframes(s,e);case 6:return t.visitStyle(s,e);case 8:return t.visitReference(s,e);case 9:return t.visitAnimateChild(s,e);case 10:return t.visitAnimateRef(s,e);case 11:return t.visitQuery(s,e);case 12:return t.visitStagger(s,e);default:throw function aF(t){return new $(3004,!1)}()}}function uI(t,s){return window.getComputedStyle(t)[s]}const op="*";function QF(t,s){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(n=>function JF(t,s,e){if(":"==t[0]){const h=function ZF(t,s){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,n)=>parseFloat(n)>parseFloat(e);case":decrement":return(e,n)=>parseFloat(n) *"}}(t,e);if("function"==typeof h)return void s.push(h);t=h}const n=t.match(/^(\*|[-\w]+)\s*([=-]>)\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return e.push(function CF(t){return new $(3015,!1)}()),s;const i=n[1],o=n[2],r=n[3];s.push(dI(i,r));"<"==o[0]&&!(i==op&&r==op)&&s.push(dI(r,i))}(n,e,s)):e.push(t),e}const rp=new Set(["true","1"]),ap=new Set(["false","0"]);function dI(t,s){const e=rp.has(t)||ap.has(t),n=rp.has(s)||ap.has(s);return(i,o)=>{let r=t==op||t==i,u=s==op||s==o;return!r&&e&&"boolean"==typeof i&&(r=i?rp.has(t):ap.has(t)),!u&&n&&"boolean"==typeof o&&(u=o?rp.has(s):ap.has(s)),r&&u}}const YF=new RegExp("s*:selfs*,?","g");function m_(t,s,e,n){return new XF(t).build(s,e,n)}class XF{constructor(s){this._driver=s}build(s,e,n){const i=new nN(e);return this._resetContextStyleTimingState(i),yi(this,Jl(s),i)}_resetContextStyleTimingState(s){s.currentQuerySelector="",s.collectedStyles=new Map,s.collectedStyles.set("",new Map),s.currentTime=0}visitTrigger(s,e){let n=e.queryCount=0,i=e.depCount=0;const o=[],r=[];return"@"==s.name.charAt(0)&&e.errors.push(function cF(){return new $(3006,!1)}()),s.definitions.forEach(u=>{if(this._resetContextStyleTimingState(e),0==u.type){const h=u,b=h.name;b.toString().split(/\s*,\s*/).forEach(T=>{h.name=T,o.push(this.visitState(h,e))}),h.name=b}else if(1==u.type){const h=this.visitTransition(u,e);n+=h.queryCount,i+=h.depCount,r.push(h)}else e.errors.push(function uF(){return new $(3007,!1)}())}),{type:7,name:s.name,states:o,transitions:r,queryCount:n,depCount:i,options:null}}visitState(s,e){const n=this.visitStyle(s.styles,e),i=s.options&&s.options.params||null;if(n.containsDynamicStyles){const o=new Set,r=i||{};n.styles.forEach(u=>{u instanceof Map&&u.forEach(h=>{cI(h).forEach(b=>{r.hasOwnProperty(b)||o.add(b)})})}),o.size&&(sp(o.values()),e.errors.push(function dF(t,s){return new $(3008,!1)}()))}return{type:0,name:s.name,style:n,options:i?{params:i}:null}}visitTransition(s,e){e.queryCount=0,e.depCount=0;const n=yi(this,Jl(s.animation),e);return{type:1,matchers:QF(s.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Qo(s.options)}}visitSequence(s,e){return{type:2,steps:s.steps.map(n=>yi(this,n,e)),options:Qo(s.options)}}visitGroup(s,e){const n=e.currentTime;let i=0;const o=s.steps.map(r=>{e.currentTime=n;const u=yi(this,r,e);return i=Math.max(i,e.currentTime),u});return e.currentTime=i,{type:3,steps:o,options:Qo(s.options)}}visitAnimate(s,e){const n=function sN(t,s){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return f_(ip(t,s).duration,0,"");const e=t;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=f_(0,0,"");return o.dynamic=!0,o.strValue=e,o}const i=ip(e,s);return f_(i.duration,i.delay,i.easing)}(s.timings,e.errors);e.currentAnimateTimings=n;let i,o=s.styles?s.styles:Tt({});if(5==o.type)i=this.visitKeyframes(o,e);else{let r=s.styles,u=!1;if(!r){u=!0;const b={};n.easing&&(b.easing=n.easing),r=Tt(b)}e.currentTime+=n.duration+n.delay;const h=this.visitStyle(r,e);h.isEmptyStep=u,i=h}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(s,e){const n=this._makeStyleAst(s,e);return this._validateStyleAst(n,e),n}_makeStyleAst(s,e){const n=[],i=Array.isArray(s.styles)?s.styles:[s.styles];for(let u of i)"string"==typeof u?u===Gs?n.push(u):e.errors.push(new $(3002,!1)):n.push(aI(u));let o=!1,r=null;return n.forEach(u=>{if(u instanceof Map&&(u.has("easing")&&(r=u.get("easing"),u.delete("easing")),!o))for(let h of u.values())if(h.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:n,easing:r,offset:s.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(s,e){const n=e.currentAnimateTimings;let i=e.currentTime,o=e.currentTime;n&&o>0&&(o-=n.duration+n.delay),s.styles.forEach(r=>{"string"!=typeof r&&r.forEach((u,h)=>{const b=e.collectedStyles.get(e.currentQuerySelector),T=b.get(h);let w=!0;T&&(o!=i&&o>=T.startTime&&i<=T.endTime&&(e.errors.push(function hF(t,s,e,n,i){return new $(3010,!1)}()),w=!1),o=T.startTime),w&&b.set(h,{startTime:o,endTime:i}),e.options&&function jF(t,s,e){const n=s.params||{},i=cI(t);i.length&&i.forEach(o=>{n.hasOwnProperty(o)||e.push(function oF(t){return new $(3001,!1)}())})}(u,e.options,e.errors)})})}visitKeyframes(s,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function mF(){return new $(3011,!1)}()),n;let o=0;const r=[];let u=!1,h=!1,b=0;const T=s.steps.map(z=>{const N=this._makeStyleAst(z,e);let ee=null!=N.offset?N.offset:function iN(t){if("string"==typeof t)return null;let s=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const n=e;s=parseFloat(n.get("offset")),n.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;s=parseFloat(e.get("offset")),e.delete("offset")}return s}(N.styles),oe=0;return null!=ee&&(o++,oe=N.offset=ee),h=h||oe<0||oe>1,u=u||oe0&&o{const ee=k>0?N==L?1:k*N:r[N],oe=ee*P;e.currentTime=O+A.delay+oe,A.duration=oe,this._validateStyleAst(z,e),z.offset=ee,n.styles.push(z)}),n}visitReference(s,e){return{type:8,animation:yi(this,Jl(s.animation),e),options:Qo(s.options)}}visitAnimateChild(s,e){return e.depCount++,{type:9,options:Qo(s.options)}}visitAnimateRef(s,e){return{type:10,animation:this.visitReference(s.animation,e),options:Qo(s.options)}}visitQuery(s,e){const n=e.currentQuerySelector,i=s.options||{};e.queryCount++,e.currentQuery=s;const[o,r]=function eN(t){const s=!!t.split(/\s*,\s*/).find(e=>":self"==e);return s&&(t=t.replace(YF,"")),t=t.replace(/@\*/g,np).replace(/@\w+/g,e=>np+"-"+e.slice(1)).replace(/:animating/g,u_),[t,s]}(s.selector);e.currentQuerySelector=n.length?n+" "+o:o,Ci(e.collectedStyles,e.currentQuerySelector,new Map);const u=yi(this,Jl(s.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:r,animation:u,originalSelector:s.selector,options:Qo(s.options)}}visitStagger(s,e){e.currentQuery||e.errors.push(function bF(){return new $(3013,!1)}());const n="full"===s.timings?{duration:0,delay:0,easing:"full"}:ip(s.timings,e.errors,!0);return{type:12,animation:yi(this,Jl(s.animation),e),timings:n,options:null}}}class nN{constructor(s){this.errors=s,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 Qo(t){return t?(t=Ql(t)).params&&(t.params=function tN(t){return t?Ql(t):null}(t.params)):t={},t}function f_(t,s,e){return{duration:t,delay:s,easing:e}}function g_(t,s,e,n,i,o,r=null,u=!1){return{type:1,element:t,keyframes:s,preStyleProps:e,postStyleProps:n,duration:i,delay:o,totalTime:i+o,easing:r,subTimeline:u}}class lp{constructor(){this._map=new Map}get(s){return this._map.get(s)||[]}append(s,e){let n=this._map.get(s);n||this._map.set(s,n=[]),n.push(...e)}has(s){return this._map.has(s)}clear(){this._map.clear()}}const aN=new RegExp(":enter","g"),cN=new RegExp(":leave","g");function __(t,s,e,n,i,o=new Map,r=new Map,u,h,b=[]){return(new uN).buildKeyframes(t,s,e,n,i,o,r,u,h,b)}class uN{buildKeyframes(s,e,n,i,o,r,u,h,b,T=[]){b=b||new lp;const w=new b_(s,e,b,i,o,T,[]);w.options=h;const k=h.delay?zs(h.delay):0;w.currentTimeline.delayNextStep(k),w.currentTimeline.setStyles([r],null,w.errors,h),yi(this,n,w);const L=w.timelines.filter(O=>O.containsAnimation());if(L.length&&u.size){let O;for(let A=L.length-1;A>=0;A--){const P=L[A];if(P.element===e){O=P;break}}O&&!O.allowOnlyTimelineStyles()&&O.setStyles([u],null,w.errors,h)}return L.length?L.map(O=>O.buildKeyframes()):[g_(e,[],[],[],0,k,"",!1)]}visitTrigger(s,e){}visitState(s,e){}visitTransition(s,e){}visitAnimateChild(s,e){const n=e.subInstructions.get(e.element);if(n){const i=e.createSubContext(s.options),o=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,i,i.options);o!=r&&e.transformIntoNewTimeline(r)}e.previousNode=s}visitAnimateRef(s,e){const n=e.createSubContext(s.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([s.options,s.animation.options],e,n),this.visitReference(s.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=s}_applyAnimationRefDelays(s,e,n){for(const i of s){const o=i?.delay;if(o){const r="number"==typeof o?o:zs(Zl(o,i?.params??{},e.errors));n.delayNextStep(r)}}}_visitSubInstructions(s,e,n){let o=e.currentTimeline.currentTime;const r=null!=n.duration?zs(n.duration):null,u=null!=n.delay?zs(n.delay):null;return 0!==r&&s.forEach(h=>{const b=e.appendInstructionToTimeline(h,r,u);o=Math.max(o,b.duration+b.delay)}),o}visitReference(s,e){e.updateOptions(s.options,!0),yi(this,s.animation,e),e.previousNode=s}visitSequence(s,e){const n=e.subContextCount;let i=e;const o=s.options;if(o&&(o.params||o.delay)&&(i=e.createSubContext(o),i.transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=cp);const r=zs(o.delay);i.delayNextStep(r)}s.steps.length&&(s.steps.forEach(r=>yi(this,r,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),e.previousNode=s}visitGroup(s,e){const n=[];let i=e.currentTimeline.currentTime;const o=s.options&&s.options.delay?zs(s.options.delay):0;s.steps.forEach(r=>{const u=e.createSubContext(s.options);o&&u.delayNextStep(o),yi(this,r,u),i=Math.max(i,u.currentTimeline.currentTime),n.push(u.currentTimeline)}),n.forEach(r=>e.currentTimeline.mergeTimelineCollectedStyles(r)),e.transformIntoNewTimeline(i),e.previousNode=s}_visitTiming(s,e){if(s.dynamic){const n=s.strValue;return ip(e.params?Zl(n,e.params,e.errors):n,e.errors)}return{duration:s.duration,delay:s.delay,easing:s.easing}}visitAnimate(s,e){const n=e.currentAnimateTimings=this._visitTiming(s.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());const o=s.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(n.duration),this.visitStyle(o,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=s}visitStyle(s,e){const n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.hasCurrentStyleProperties()&&n.forwardFrame();const o=i&&i.easing||s.easing;s.isEmptyStep?n.applyEmptyStep(o):n.setStyles(s.styles,o,e.errors,e.options),e.previousNode=s}visitKeyframes(s,e){const n=e.currentAnimateTimings,i=e.currentTimeline.duration,o=n.duration,u=e.createSubContext().currentTimeline;u.easing=n.easing,s.styles.forEach(h=>{u.forwardTime((h.offset||0)*o),u.setStyles(h.styles,h.easing,e.errors,e.options),u.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(u),e.transformIntoNewTimeline(i+o),e.previousNode=s}visitQuery(s,e){const n=e.currentTimeline.currentTime,i=s.options||{},o=i.delay?zs(i.delay):0;o&&(6===e.previousNode.type||0==n&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=cp);let r=n;const u=e.invokeQuery(s.selector,s.originalSelector,s.limit,s.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=u.length;let h=null;u.forEach((b,T)=>{e.currentQueryIndex=T;const w=e.createSubContext(s.options,b);o&&w.delayNextStep(o),b===e.element&&(h=w.currentTimeline),yi(this,s.animation,w),w.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,w.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),h&&(e.currentTimeline.mergeTimelineCollectedStyles(h),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=s}visitStagger(s,e){const n=e.parentContext,i=e.currentTimeline,o=s.timings,r=Math.abs(o.duration),u=r*(e.currentQueryTotal-1);let h=r*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":h=u-h;break;case"full":h=n.currentStaggerTime}const T=e.currentTimeline;h&&T.delayNextStep(h);const w=T.currentTime;yi(this,s.animation,e),e.previousNode=s,n.currentStaggerTime=i.currentTime-w+(i.startTime-n.currentTimeline.startTime)}}const cp={};class b_{constructor(s,e,n,i,o,r,u,h){this._driver=s,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=o,this.errors=r,this.timelines=u,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=cp,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=h||new up(this._driver,e,0),u.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(s,e){if(!s)return;const n=s;let i=this.options;null!=n.duration&&(i.duration=zs(n.duration)),null!=n.delay&&(i.delay=zs(n.delay));const o=n.params;if(o){let r=i.params;r||(r=this.options.params={}),Object.keys(o).forEach(u=>{(!e||!r.hasOwnProperty(u))&&(r[u]=Zl(o[u],r,this.errors))})}}_copyOptions(){const s={};if(this.options){const e=this.options.params;if(e){const n=s.params={};Object.keys(e).forEach(i=>{n[i]=e[i]})}}return s}createSubContext(s=null,e,n){const i=e||this.element,o=new b_(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(s),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(s){return this.previousNode=cp,this.currentTimeline=this.currentTimeline.fork(this.element,s),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(s,e,n){const i={duration:e??s.duration,delay:this.currentTimeline.currentTime+(n??0)+s.delay,easing:""},o=new dN(this._driver,s.element,s.keyframes,s.preStyleProps,s.postStyleProps,i,s.stretchStartingKeyframe);return this.timelines.push(o),i}incrementTime(s){this.currentTimeline.forwardTime(this.currentTimeline.duration+s)}delayNextStep(s){s>0&&this.currentTimeline.delayNextStep(s)}invokeQuery(s,e,n,i,o,r){let u=[];if(i&&u.push(this.element),s.length>0){s=(s=s.replace(aN,"."+this._enterClassName)).replace(cN,"."+this._leaveClassName);let b=this._driver.query(this.element,s,1!=n);0!==n&&(b=n<0?b.slice(b.length+n,b.length):b.slice(0,n)),u.push(...b)}return!o&&0==u.length&&r.push(function vF(t){return new $(3014,!1)}()),u}}class up{constructor(s,e,n,i){this._driver=s,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,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(s){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+s),e&&this.snapshotCurrentStyles()):this.startTime+=s}fork(s,e){return this.applyStylesToKeyframe(),new up(this._driver,s,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(s){this.applyStylesToKeyframe(),this.duration=s,this._loadKeyframe()}_updateStyle(s,e){this._localTimelineStyles.set(s,e),this._globalTimelineStyles.set(s,e),this._styleSummary.set(s,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(s){s&&this._previousKeyframe.set("easing",s);for(let[e,n]of this._globalTimelineStyles)this._backFill.set(e,n||Gs),this._currentKeyframe.set(e,Gs);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(s,e,n,i){e&&this._previousKeyframe.set("easing",e);const o=i&&i.params||{},r=function pN(t,s){const e=new Map;let n;return t.forEach(i=>{if("*"===i){n=n||s.keys();for(let o of n)e.set(o,Gs)}else uo(i,e)}),e}(s,this._globalTimelineStyles);for(let[u,h]of r){const b=Zl(h,o,n);this._pendingStyles.set(u,b),this._localTimelineStyles.has(u)||this._backFill.set(u,this._globalTimelineStyles.get(u)??Gs),this._updateStyle(u,b)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((s,e)=>{this._currentKeyframe.set(e,s)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((s,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,s)}))}snapshotCurrentStyles(){for(let[s,e]of this._localTimelineStyles)this._pendingStyles.set(s,e),this._updateStyle(s,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const s=[];for(let e in this._currentKeyframe)s.push(e);return s}mergeTimelineCollectedStyles(s){s._styleSummary.forEach((e,n)=>{const i=this._styleSummary.get(n);(!i||e.time>i.time)&&this._updateStyle(n,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const s=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((u,h)=>{const b=uo(u,new Map,this._backFill);b.forEach((T,w)=>{"!"===T?s.add(w):T===Gs&&e.add(w)}),n||b.set("offset",h/this.duration),i.push(b)});const o=s.size?sp(s.values()):[],r=e.size?sp(e.values()):[];if(n){const u=i[0],h=new Map(u);u.set("offset",0),h.set("offset",1),i=[u,h]}return g_(this.element,i,o,r,this.duration,this.startTime,this.easing,!1)}}class dN extends up{constructor(s,e,n,i,o,r,u=!1){super(s,e,r.delay),this.keyframes=n,this.preStyleProps=i,this.postStyleProps=o,this._stretchStartingKeyframe=u,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let s=this.keyframes,{delay:e,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],r=n+e,u=e/r,h=uo(s[0]);h.set("offset",0),o.push(h);const b=uo(s[0]);b.set("offset",mI(u)),o.push(b);const T=s.length-1;for(let w=1;w<=T;w++){let k=uo(s[w]);const L=k.get("offset");k.set("offset",mI((e+L*n)/r)),o.push(k)}n=r,e=0,i="",s=o}return g_(this.element,s,this.preStyleProps,this.postStyleProps,n,e,i,!0)}}function mI(t,s=3){const e=Math.pow(10,s-1);return Math.round(t*e)/e}class v_{}const hN=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 mN extends v_{normalizePropertyName(s,e){return h_(s)}normalizeStyleValue(s,e,n,i){let o="";const r=n.toString().trim();if(hN.has(e)&&0!==n&&"0"!==n)if("number"==typeof n)o="px";else{const u=n.match(/^[+-]?[\d\.]+([a-z]*)$/);u&&0==u[1].length&&i.push(function lF(t,s){return new $(3005,!1)}())}return r+o}}function fI(t,s,e,n,i,o,r,u,h,b,T,w,k){return{type:0,element:t,triggerName:s,isRemovalTransition:i,fromState:e,fromStyles:o,toState:n,toStyles:r,timelines:u,queriedElements:h,preStyleProps:b,postStyleProps:T,totalTime:w,errors:k}}const C_={};class gI{constructor(s,e,n){this._triggerName=s,this.ast=e,this._stateStyles=n}match(s,e,n,i){return function fN(t,s,e,n,i){return t.some(o=>o(s,e,n,i))}(this.ast.matchers,s,e,n,i)}buildStyles(s,e,n){let i=this._stateStyles.get("*");return void 0!==s&&(i=this._stateStyles.get(s?.toString())||i),i?i.buildStyles(e,n):new Map}build(s,e,n,i,o,r,u,h,b,T){const w=[],k=this.ast.options&&this.ast.options.params||C_,O=this.buildStyles(n,u&&u.params||C_,w),A=h&&h.params||C_,P=this.buildStyles(i,A,w),z=new Set,N=new Map,ee=new Map,oe="void"===i,be={params:gN(A,k),delay:this.ast.options?.delay},Je=T?[]:__(s,e,this.ast.animation,o,r,O,P,be,b,w);let Ct=0;if(Je.forEach(qt=>{Ct=Math.max(qt.duration+qt.delay,Ct)}),w.length)return fI(e,this._triggerName,n,i,oe,O,P,[],[],N,ee,Ct,w);Je.forEach(qt=>{const Rn=qt.element,Qp=Ci(N,Rn,new Set);qt.preStyleProps.forEach(rr=>Qp.add(rr));const Ec=Ci(ee,Rn,new Set);qt.postStyleProps.forEach(rr=>Ec.add(rr)),Rn!==e&&z.add(Rn)});const Lt=sp(z.values());return fI(e,this._triggerName,n,i,oe,O,P,Je,Lt,N,ee,Ct)}}function gN(t,s){const e=Ql(s);for(const n in t)t.hasOwnProperty(n)&&null!=t[n]&&(e[n]=t[n]);return e}class _N{constructor(s,e,n){this.styles=s,this.defaultParams=e,this.normalizer=n}buildStyles(s,e){const n=new Map,i=Ql(this.defaultParams);return Object.keys(s).forEach(o=>{const r=s[o];null!==r&&(i[o]=r)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((r,u)=>{r&&(r=Zl(r,i,e));const h=this.normalizer.normalizePropertyName(u,e);r=this.normalizer.normalizeStyleValue(u,h,r,e),n.set(u,r)})}),n}}class vN{constructor(s,e,n){this.name=s,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states=new Map,e.states.forEach(i=>{this.states.set(i.name,new _N(i.style,i.options&&i.options.params||{},n))}),_I(this.states,"true","1"),_I(this.states,"false","0"),e.transitions.forEach(i=>{this.transitionFactories.push(new gI(s,i,this.states))}),this.fallbackTransition=function CN(t,s,e){return new gI(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(r,u)=>!0],options:null,queryCount:0,depCount:0},s)}(s,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(s,e,n,i){return this.transitionFactories.find(r=>r.match(s,e,n,i))||null}matchStyles(s,e,n){return this.fallbackTransition.buildStyles(s,e,n)}}function _I(t,s,e){t.has(s)?t.has(e)||t.set(e,t.get(s)):t.has(e)&&t.set(s,t.get(e))}const yN=new lp;class TN{constructor(s,e,n){this.bodyNode=s,this._driver=e,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(s,e){const n=[],o=m_(this._driver,e,n,[]);if(n.length)throw function xF(t){return new $(3503,!1)}();this._animations.set(s,o)}_buildPlayer(s,e,n){const i=s.element,o=X3(this._normalizer,s.keyframes,e,n);return this._driver.animate(i,o,s.duration,s.delay,s.easing,[],!0)}create(s,e,n={}){const i=[],o=this._animations.get(s);let r;const u=new Map;if(o?(r=__(this._driver,e,o,c_,ep,new Map,new Map,n,yN,i),r.forEach(T=>{const w=Ci(u,T.element,new Map);T.postStyleProps.forEach(k=>w.set(k,null))})):(i.push(function DF(){return new $(3300,!1)}()),r=[]),i.length)throw function MF(t){return new $(3504,!1)}();u.forEach((T,w)=>{T.forEach((k,L)=>{T.set(L,this._driver.computeStyle(w,L,Gs))})});const b=co(r.map(T=>{const w=u.get(T.element);return this._buildPlayer(T,new Map,w)}));return this._playersById.set(s,b),b.onDestroy(()=>this.destroy(s)),this.players.push(b),b}destroy(s){const e=this._getPlayer(s);e.destroy(),this._playersById.delete(s);const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(s){const e=this._playersById.get(s);if(!e)throw function kF(t){return new $(3301,!1)}();return e}listen(s,e,n,i){const o=r_(e,"","","");return s_(this._getPlayer(s),n,o,i),()=>{}}command(s,e,n,i){if("register"==n)return void this.register(s,i[0]);if("create"==n)return void this.create(s,e,i[0]||{});const o=this._getPlayer(s);switch(n){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(s)}}}const bI="ng-animate-queued",y_="ng-animate-disabled",DN=[],vI={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},MN={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Zi="__ng_removed";class T_{get params(){return this.options.params}constructor(s,e=""){this.namespaceId=e;const n=s&&s.hasOwnProperty("value");if(this.value=function RN(t){return t??null}(n?s.value:s),n){const o=Ql(s);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(s){const e=s.params;if(e){const n=this.options.params;Object.keys(e).forEach(i=>{null==n[i]&&(n[i]=e[i])})}}}const Yl="void",w_=new T_(Yl);class kN{constructor(s,e,n){this.id=s,this.hostElement=e,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+s,Fi(e,this._hostClassName)}listen(s,e,n,i){if(!this._triggers.has(e))throw function EF(t,s){return new $(3302,!1)}();if(null==n||0==n.length)throw function LF(t){return new $(3303,!1)}();if(!function ON(t){return"start"==t||"done"==t}(n))throw function RF(t,s){return new $(3400,!1)}();const o=Ci(this._elementListeners,s,[]),r={name:e,phase:n,callback:i};o.push(r);const u=Ci(this._engine.statesByElement,s,new Map);return u.has(e)||(Fi(s,tp),Fi(s,tp+"-"+e),u.set(e,w_)),()=>{this._engine.afterFlush(()=>{const h=o.indexOf(r);h>=0&&o.splice(h,1),this._triggers.has(e)||u.delete(e)})}}register(s,e){return!this._triggers.has(s)&&(this._triggers.set(s,e),!0)}_getTrigger(s){const e=this._triggers.get(s);if(!e)throw function OF(t){return new $(3401,!1)}();return e}trigger(s,e,n,i=!0){const o=this._getTrigger(e),r=new I_(this.id,e,s);let u=this._engine.statesByElement.get(s);u||(Fi(s,tp),Fi(s,tp+"-"+e),this._engine.statesByElement.set(s,u=new Map));let h=u.get(e);const b=new T_(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&h&&b.absorbOptions(h.options),u.set(e,b),h||(h=w_),b.value!==Yl&&h.value===b.value){if(!function FN(t,s){const e=Object.keys(t),n=Object.keys(s);if(e.length!=n.length)return!1;for(let i=0;i{Ko(s,P),_s(s,z)})}return}const k=Ci(this._engine.playersByElement,s,[]);k.forEach(A=>{A.namespaceId==this.id&&A.triggerName==e&&A.queued&&A.destroy()});let L=o.matchTransition(h.value,b.value,s,b.params),O=!1;if(!L){if(!i)return;L=o.fallbackTransition,O=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:s,triggerName:e,transition:L,fromState:h,toState:b,player:r,isFallbackTransition:O}),O||(Fi(s,bI),r.onStart(()=>{da(s,bI)})),r.onDone(()=>{let A=this.players.indexOf(r);A>=0&&this.players.splice(A,1);const P=this._engine.playersByElement.get(s);if(P){let z=P.indexOf(r);z>=0&&P.splice(z,1)}}),this.players.push(r),k.push(r),r}deregister(s){this._triggers.delete(s),this._engine.statesByElement.forEach(e=>e.delete(s)),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(i=>i.name!=s))})}clearElementCache(s){this._engine.statesByElement.delete(s),this._elementListeners.delete(s);const e=this._engine.playersByElement.get(s);e&&(e.forEach(n=>n.destroy()),this._engine.playersByElement.delete(s))}_signalRemovalForInnerTriggers(s,e){const n=this._engine.driver.query(s,np,!0);n.forEach(i=>{if(i[Zi])return;const o=this._engine.fetchNamespacesByElement(i);o.size?o.forEach(r=>r.triggerLeaveAnimation(i,e,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(s,e,n,i){const o=this._engine.statesByElement.get(s),r=new Map;if(o){const u=[];if(o.forEach((h,b)=>{if(r.set(b,h.value),this._triggers.has(b)){const T=this.trigger(s,b,Yl,i);T&&u.push(T)}}),u.length)return this._engine.markElementAsRemoved(this.id,s,!0,e,r),n&&co(u).onDone(()=>this._engine.processLeaveNode(s)),!0}return!1}prepareLeaveAnimationListeners(s){const e=this._elementListeners.get(s),n=this._engine.statesByElement.get(s);if(e&&n){const i=new Set;e.forEach(o=>{const r=o.name;if(i.has(r))return;i.add(r);const h=this._triggers.get(r).fallbackTransition,b=n.get(r)||w_,T=new T_(Yl),w=new I_(this.id,r,s);this._engine.totalQueuedPlayers++,this._queue.push({element:s,triggerName:r,transition:h,fromState:b,toState:T,player:w,isFallbackTransition:!0})})}}removeNode(s,e){const n=this._engine;if(s.childElementCount&&this._signalRemovalForInnerTriggers(s,e),this.triggerLeaveAnimation(s,e,!0))return;let i=!1;if(n.totalAnimations){const o=n.players.length?n.playersByQueriedElement.get(s):[];if(o&&o.length)i=!0;else{let r=s;for(;r=r.parentNode;)if(n.statesByElement.get(r)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(s),i)n.markElementAsRemoved(this.id,s,!1,e);else{const o=s[Zi];(!o||o===vI)&&(n.afterFlush(()=>this.clearElementCache(s)),n.destroyInnerAnimations(s),n._onRemovalComplete(s,e))}}insertNode(s,e){Fi(s,this._hostClassName)}drainQueuedTransitions(s){const e=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const o=n.element,r=this._elementListeners.get(o);r&&r.forEach(u=>{if(u.name==n.triggerName){const h=r_(o,n.triggerName,n.fromState.value,n.toState.value);h._data=s,s_(n.player,u.phase,h,u.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(n)}),this._queue=[],e.sort((n,i)=>{const o=n.transition.ast.depCount,r=i.transition.ast.depCount;return 0==o||0==r?o-r:this._engine.driver.containsElement(n.element,i.element)?1:-1})}destroy(s){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,s)}}class EN{_onRemovalComplete(s,e){this.onRemovalComplete(s,e)}constructor(s,e,n){this.bodyNode=s,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(i,o)=>{}}get queuedPlayers(){const s=[];return this._namespaceList.forEach(e=>{e.players.forEach(n=>{n.queued&&s.push(n)})}),s}createNamespace(s,e){const n=new kN(s,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[s]=n}_balanceNamespaceList(s,e){const n=this._namespaceList,i=this.namespacesByHostElement;if(n.length-1>=0){let r=!1,u=this.driver.getParentElement(e);for(;u;){const h=i.get(u);if(h){const b=n.indexOf(h);n.splice(b+1,0,s),r=!0;break}u=this.driver.getParentElement(u)}r||n.unshift(s)}else n.push(s);return i.set(e,s),s}register(s,e){let n=this._namespaceLookup[s];return n||(n=this.createNamespace(s,e)),n}registerTrigger(s,e,n){let i=this._namespaceLookup[s];i&&i.register(e,n)&&this.totalAnimations++}destroy(s,e){s&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const n=this._fetchNamespace(s);this.namespacesByHostElement.delete(n.hostElement);const i=this._namespaceList.indexOf(n);i>=0&&this._namespaceList.splice(i,1),n.destroy(e),delete this._namespaceLookup[s]}))}_fetchNamespace(s){return this._namespaceLookup[s]}fetchNamespacesByElement(s){const e=new Set,n=this.statesByElement.get(s);if(n)for(let i of n.values())if(i.namespaceId){const o=this._fetchNamespace(i.namespaceId);o&&e.add(o)}return e}trigger(s,e,n,i){if(dp(e)){const o=this._fetchNamespace(s);if(o)return o.trigger(e,n,i),!0}return!1}insertNode(s,e,n,i){if(!dp(e))return;const o=e[Zi];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const r=this.collectedLeaveElements.indexOf(e);r>=0&&this.collectedLeaveElements.splice(r,1)}if(s){const r=this._fetchNamespace(s);r&&r.insertNode(e,n)}i&&this.collectEnterElement(e)}collectEnterElement(s){this.collectedEnterElements.push(s)}markElementAsDisabled(s,e){e?this.disabledNodes.has(s)||(this.disabledNodes.add(s),Fi(s,y_)):this.disabledNodes.has(s)&&(this.disabledNodes.delete(s),da(s,y_))}removeNode(s,e,n){if(dp(e)){const i=s?this._fetchNamespace(s):null;i?i.removeNode(e,n):this.markElementAsRemoved(s,e,!1,n);const o=this.namespacesByHostElement.get(e);o&&o.id!==s&&o.removeNode(e,n)}else this._onRemovalComplete(e,n)}markElementAsRemoved(s,e,n,i,o){this.collectedLeaveElements.push(e),e[Zi]={namespaceId:s,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:o}}listen(s,e,n,i,o){return dp(e)?this._fetchNamespace(s).listen(e,n,i,o):()=>{}}_buildInstruction(s,e,n,i,o){return s.transition.build(this.driver,s.element,s.fromState.value,s.toState.value,n,i,s.fromState.options,s.toState.options,e,o)}destroyInnerAnimations(s){let e=this.driver.query(s,np,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(s,u_,!0),e.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(s){const e=this.playersByElement.get(s);e&&e.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(s){const e=this.playersByQueriedElement.get(s);e&&e.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(s=>{if(this.players.length)return co(this.players).onDone(()=>s());s()})}processLeaveNode(s){const e=s[Zi];if(e&&e.setForRemoval){if(s[Zi]=vI,e.namespaceId){this.destroyInnerAnimations(s);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(s)}this._onRemovalComplete(s,e.setForRemoval)}s.classList?.contains(y_)&&this.markElementAsDisabled(s,!1),this.driver.query(s,".ng-animate-disabled",!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(s=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,i)=>this._balanceNamespaceList(n,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){const n=this._whenQuietFns;this._whenQuietFns=[],e.length?co(e).onDone(()=>{n.forEach(i=>i())}):n.forEach(i=>i())}}reportError(s){throw function AF(t){return new $(3402,!1)}()}_flushAnimations(s,e){const n=new lp,i=[],o=new Map,r=[],u=new Map,h=new Map,b=new Map,T=new Set;this.disabledNodes.forEach(he=>{T.add(he);const ye=this.driver.query(he,".ng-animate-queued",!0);for(let De=0;De{const De=c_+A++;O.set(ye,De),he.forEach(pt=>Fi(pt,De))});const P=[],z=new Set,N=new Set;for(let he=0;hez.add(pt)):N.add(ye))}const ee=new Map,oe=TI(k,Array.from(z));oe.forEach((he,ye)=>{const De=ep+A++;ee.set(ye,De),he.forEach(pt=>Fi(pt,De))}),s.push(()=>{L.forEach((he,ye)=>{const De=O.get(ye);he.forEach(pt=>da(pt,De))}),oe.forEach((he,ye)=>{const De=ee.get(ye);he.forEach(pt=>da(pt,De))}),P.forEach(he=>{this.processLeaveNode(he)})});const be=[],Je=[];for(let he=this._namespaceList.length-1;he>=0;he--)this._namespaceList[he].drainQueuedTransitions(e).forEach(De=>{const pt=De.player,Dn=De.element;if(be.push(pt),this.collectedEnterElements.length){const Un=Dn[Zi];if(Un&&Un.setForMove){if(Un.previousTriggersValues&&Un.previousTriggersValues.has(De.triggerName)){const ar=Un.previousTriggersValues.get(De.triggerName),Vi=this.statesByElement.get(De.element);if(Vi&&Vi.has(De.triggerName)){const Jp=Vi.get(De.triggerName);Jp.value=ar,Vi.set(De.triggerName,Jp)}}return void pt.destroy()}}const ws=!w||!this.driver.containsElement(w,Dn),wi=ee.get(Dn),wo=O.get(Dn),Xt=this._buildInstruction(De,n,wo,wi,ws);if(Xt.errors&&Xt.errors.length)return void Je.push(Xt);if(ws)return pt.onStart(()=>Ko(Dn,Xt.fromStyles)),pt.onDestroy(()=>_s(Dn,Xt.toStyles)),void i.push(pt);if(De.isFallbackTransition)return pt.onStart(()=>Ko(Dn,Xt.fromStyles)),pt.onDestroy(()=>_s(Dn,Xt.toStyles)),void i.push(pt);const _D=[];Xt.timelines.forEach(Un=>{Un.stretchStartingKeyframe=!0,this.disabledNodes.has(Un.element)||_D.push(Un)}),Xt.timelines=_D,n.append(Dn,Xt.timelines),r.push({instruction:Xt,player:pt,element:Dn}),Xt.queriedElements.forEach(Un=>Ci(u,Un,[]).push(pt)),Xt.preStyleProps.forEach((Un,ar)=>{if(Un.size){let Vi=h.get(ar);Vi||h.set(ar,Vi=new Set),Un.forEach((Jp,g1)=>Vi.add(g1))}}),Xt.postStyleProps.forEach((Un,ar)=>{let Vi=b.get(ar);Vi||b.set(ar,Vi=new Set),Un.forEach((Jp,g1)=>Vi.add(g1))})});if(Je.length){const he=[];Je.forEach(ye=>{he.push(function PF(t,s){return new $(3505,!1)}())}),be.forEach(ye=>ye.destroy()),this.reportError(he)}const Ct=new Map,Lt=new Map;r.forEach(he=>{const ye=he.element;n.has(ye)&&(Lt.set(ye,ye),this._beforeAnimationBuild(he.player.namespaceId,he.instruction,Ct))}),i.forEach(he=>{const ye=he.element;this._getPreviousPlayers(ye,!1,he.namespaceId,he.triggerName,null).forEach(pt=>{Ci(Ct,ye,[]).push(pt),pt.destroy()})});const qt=P.filter(he=>II(he,h,b)),Rn=new Map;yI(Rn,this.driver,N,b,Gs).forEach(he=>{II(he,h,b)&&qt.push(he)});const Ec=new Map;L.forEach((he,ye)=>{yI(Ec,this.driver,new Set(he),h,"!")}),qt.forEach(he=>{const ye=Rn.get(he),De=Ec.get(he);Rn.set(he,new Map([...ye?.entries()??[],...De?.entries()??[]]))});const rr=[],fD=[],gD={};r.forEach(he=>{const{element:ye,player:De,instruction:pt}=he;if(n.has(ye)){if(T.has(ye))return De.onDestroy(()=>_s(ye,pt.toStyles)),De.disabled=!0,De.overrideTotalTime(pt.totalTime),void i.push(De);let Dn=gD;if(Lt.size>1){let wi=ye;const wo=[];for(;wi=wi.parentNode;){const Xt=Lt.get(wi);if(Xt){Dn=Xt;break}wo.push(wi)}wo.forEach(Xt=>Lt.set(Xt,Dn))}const ws=this._buildAnimation(De.namespaceId,pt,Ct,o,Ec,Rn);if(De.setRealPlayer(ws),Dn===gD)rr.push(De);else{const wi=this.playersByElement.get(Dn);wi&&wi.length&&(De.parentPlayer=co(wi)),i.push(De)}}else Ko(ye,pt.fromStyles),De.onDestroy(()=>_s(ye,pt.toStyles)),fD.push(De),T.has(ye)&&i.push(De)}),fD.forEach(he=>{const ye=o.get(he.element);if(ye&&ye.length){const De=co(ye);he.setRealPlayer(De)}}),i.forEach(he=>{he.parentPlayer?he.syncPlayerEvents(he.parentPlayer):he.destroy()});for(let he=0;he!ws.destroyed);Dn.length?AN(this,ye,Dn):this.processLeaveNode(ye)}return P.length=0,rr.forEach(he=>{this.players.push(he),he.onDone(()=>{he.destroy();const ye=this.players.indexOf(he);this.players.splice(ye,1)}),he.play()}),rr}afterFlush(s){this._flushFns.push(s)}afterFlushAnimationsDone(s){this._whenQuietFns.push(s)}_getPreviousPlayers(s,e,n,i,o){let r=[];if(e){const u=this.playersByQueriedElement.get(s);u&&(r=u)}else{const u=this.playersByElement.get(s);if(u){const h=!o||o==Yl;u.forEach(b=>{b.queued||!h&&b.triggerName!=i||r.push(b)})}}return(n||i)&&(r=r.filter(u=>!(n&&n!=u.namespaceId||i&&i!=u.triggerName))),r}_beforeAnimationBuild(s,e,n){const o=e.element,r=e.isRemovalTransition?void 0:s,u=e.isRemovalTransition?void 0:e.triggerName;for(const h of e.timelines){const b=h.element,T=b!==o,w=Ci(n,b,[]);this._getPreviousPlayers(b,T,r,u,e.toState).forEach(L=>{const O=L.getRealPlayer();O.beforeDestroy&&O.beforeDestroy(),L.destroy(),w.push(L)})}Ko(o,e.fromStyles)}_buildAnimation(s,e,n,i,o,r){const u=e.triggerName,h=e.element,b=[],T=new Set,w=new Set,k=e.timelines.map(O=>{const A=O.element;T.add(A);const P=A[Zi];if(P&&P.removedBeforeQueried)return new Kl(O.duration,O.delay);const z=A!==h,N=function PN(t){const s=[];return wI(t,s),s}((n.get(A)||DN).map(Ct=>Ct.getRealPlayer())).filter(Ct=>!!Ct.element&&Ct.element===A),ee=o.get(A),oe=r.get(A),be=X3(this._normalizer,O.keyframes,ee,oe),Je=this._buildPlayer(O,be,N);if(O.subTimeline&&i&&w.add(A),z){const Ct=new I_(s,u,A);Ct.setRealPlayer(Je),b.push(Ct)}return Je});b.forEach(O=>{Ci(this.playersByQueriedElement,O.element,[]).push(O),O.onDone(()=>function LN(t,s,e){let n=t.get(s);if(n){if(n.length){const i=n.indexOf(e);n.splice(i,1)}0==n.length&&t.delete(s)}return n}(this.playersByQueriedElement,O.element,O))}),T.forEach(O=>Fi(O,rI));const L=co(k);return L.onDestroy(()=>{T.forEach(O=>da(O,rI)),_s(h,e.toStyles)}),w.forEach(O=>{Ci(i,O,[]).push(L)}),L}_buildPlayer(s,e,n){return e.length>0?this.driver.animate(s.element,e,s.duration,s.delay,s.easing,n):new Kl(s.duration,s.delay)}}class I_{constructor(s,e,n){this.namespaceId=s,this.triggerName=e,this.element=n,this._player=new Kl,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(s){this._containsRealPlayer||(this._player=s,this._queuedCallbacks.forEach((e,n)=>{e.forEach(i=>s_(s,n,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(s.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(s){this.totalTime=s}syncPlayerEvents(s){const e=this._player;e.triggerCallback&&s.onStart(()=>e.triggerCallback("start")),s.onDone(()=>this.finish()),s.onDestroy(()=>this.destroy())}_queueEvent(s,e){Ci(this._queuedCallbacks,s,[]).push(e)}onDone(s){this.queued&&this._queueEvent("done",s),this._player.onDone(s)}onStart(s){this.queued&&this._queueEvent("start",s),this._player.onStart(s)}onDestroy(s){this.queued&&this._queueEvent("destroy",s),this._player.onDestroy(s)}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(s){this.queued||this._player.setPosition(s)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(s){const e=this._player;e.triggerCallback&&e.triggerCallback(s)}}function dp(t){return t&&1===t.nodeType}function CI(t,s){const e=t.style.display;return t.style.display=s??"none",e}function yI(t,s,e,n,i){const o=[];e.forEach(h=>o.push(CI(h)));const r=[];n.forEach((h,b)=>{const T=new Map;h.forEach(w=>{const k=s.computeStyle(b,w,i);T.set(w,k),(!k||0==k.length)&&(b[Zi]=MN,r.push(b))}),t.set(b,T)});let u=0;return e.forEach(h=>CI(h,o[u++])),r}function TI(t,s){const e=new Map;if(t.forEach(u=>e.set(u,[])),0==s.length)return e;const i=new Set(s),o=new Map;function r(u){if(!u)return 1;let h=o.get(u);if(h)return h;const b=u.parentNode;return h=e.has(b)?b:i.has(b)?1:r(b),o.set(u,h),h}return s.forEach(u=>{const h=r(u);1!==h&&e.get(h).push(u)}),e}function Fi(t,s){t.classList?.add(s)}function da(t,s){t.classList?.remove(s)}function AN(t,s,e){co(e).onDone(()=>t.processLeaveNode(s))}function wI(t,s){for(let e=0;ei.add(o)):s.set(t,n),e.delete(t),!0}class pp{constructor(s,e,n){this.bodyNode=s,this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(i,o)=>{},this._transitionEngine=new EN(s,e,n),this._timelineEngine=new TN(s,e,n),this._transitionEngine.onRemovalComplete=(i,o)=>this.onRemovalComplete(i,o)}registerTrigger(s,e,n,i,o){const r=s+"-"+i;let u=this._triggerCache[r];if(!u){const h=[],T=m_(this._driver,o,h,[]);if(h.length)throw function IF(t,s){return new $(3404,!1)}();u=function bN(t,s,e){return new vN(t,s,e)}(i,T,this._normalizer),this._triggerCache[r]=u}this._transitionEngine.registerTrigger(e,i,u)}register(s,e){this._transitionEngine.register(s,e)}destroy(s,e){this._transitionEngine.destroy(s,e)}onInsert(s,e,n,i){this._transitionEngine.insertNode(s,e,n,i)}onRemove(s,e,n){this._transitionEngine.removeNode(s,e,n)}disableAnimations(s,e){this._transitionEngine.markElementAsDisabled(s,e)}process(s,e,n,i){if("@"==n.charAt(0)){const[o,r]=eI(n);this._timelineEngine.command(o,e,r,i)}else this._transitionEngine.trigger(s,e,n,i)}listen(s,e,n,i,o){if("@"==n.charAt(0)){const[r,u]=eI(n);return this._timelineEngine.listen(r,e,u,o)}return this._transitionEngine.listen(s,e,n,i,o)}flush(s=-1){this._transitionEngine.flush(s)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(s){this._transitionEngine.afterFlushAnimationsDone(s)}}let VN=(()=>{class t{static#e=this.initialStylesByElement=new WeakMap;constructor(e,n,i){this._element=e,this._startStyles=n,this._endStyles=i,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&&_s(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(_s(this._element,this._initialStyles),this._endStyles&&(_s(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Ko(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ko(this._element,this._endStyles),this._endStyles=null),_s(this._element,this._initialStyles),this._state=3)}}return t})();function S_(t){let s=null;return t.forEach((e,n)=>{(function BN(t){return"display"===t||"position"===t})(n)&&(s=s||new Map,s.set(n,e))}),s}class SI{constructor(s,e,n,i){this.element=s,this.keyframes=e,this.options=n,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(s=>s()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const s=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,s,this.options),this._finalKeyframe=s.length?s[s.length-1]:new Map;const e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(s){const e=[];return s.forEach(n=>{e.push(Object.fromEntries(n))}),e}_triggerWebAnimation(s,e,n){return s.animate(this._convertKeyframesToObject(e),n)}onStart(s){this._originalOnStartFns.push(s),this._onStartFns.push(s)}onDone(s){this._originalOnDoneFns.push(s),this._onDoneFns.push(s)}onDestroy(s){this._onDestroyFns.push(s)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(s=>s()),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(s=>s()),this._onDestroyFns=[])}setPosition(s){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=s*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const s=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,i)=>{"offset"!==i&&s.set(i,this._finished?n:uI(this.element,i))}),this.currentSnapshot=s}triggerCallback(s){const e="start"===s?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class HN{validateStyleProperty(s){return!0}validateAnimatableStyleProperty(s){return!0}matchesElement(s,e){return!1}containsElement(s,e){return nI(s,e)}getParentElement(s){return a_(s)}query(s,e,n){return iI(s,e,n)}computeStyle(s,e,n){return window.getComputedStyle(s)[e]}animate(s,e,n,i,o,r=[]){const h={duration:n,delay:i,fill:0==i?"both":"forwards"};o&&(h.easing=o);const b=new Map,T=r.filter(L=>L instanceof SI);(function WF(t,s){return 0===t||0===s})(n,i)&&T.forEach(L=>{L.currentSnapshot.forEach((O,A)=>b.set(A,O))});let w=function UF(t){return t.length?t[0]instanceof Map?t:t.map(s=>aI(s)):[]}(e).map(L=>uo(L));w=function KF(t,s,e){if(e.size&&s.length){let n=s[0],i=[];if(e.forEach((o,r)=>{n.has(r)||i.push(r),n.set(r,o)}),i.length)for(let o=1;or.set(u,uI(t,u)))}}return s}(s,w,b);const k=function NN(t,s){let e=null,n=null;return Array.isArray(s)&&s.length?(e=S_(s[0]),s.length>1&&(n=S_(s[s.length-1]))):s instanceof Map&&(e=S_(s)),e||n?new VN(t,e,n):null}(s,w);return new SI(s,w,h,k)}}let GN=(()=>{class t extends Q3{constructor(e,n){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(n.body,{id:"0",encapsulation:xi.None,styles:[],data:{animation:[]}})}build(e){const n=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(e)?J3(e):e;return xI(this._renderer,null,n,"register",[i]),new qN(n,this._renderer)}static#e=this.\u0275fac=function(n){return new(n||t)(ie(al),ie(ct))};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac})}return t})();class qN extends eF{constructor(s,e){super(),this._id=s,this._renderer=e}create(s,e){return new zN(this._id,s,e||{},this._renderer)}}class zN{constructor(s,e,n,i){this.id=s,this.element=e,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(s,e){return this._renderer.listen(this.element,`@@${this.id}:${s}`,e)}_command(s,...e){return xI(this._renderer,this.element,this.id,s,e)}onDone(s){this._listen("done",s)}onStart(s){this._listen("start",s)}onDestroy(s){this._listen("destroy",s)}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(s){this._command("setPosition",s)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function xI(t,s,e,n,i){return t.setProperty(s,`@@${e}:${n}`,i)}const DI="@.disabled";let UN=(()=>{class t{constructor(e,n,i){this.delegate=e,this.engine=n,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,n.onRemovalComplete=(o,r)=>{const u=r?.parentNode(o);u&&r.removeChild(u,o)}}createRenderer(e,n){const o=this.delegate.createRenderer(e,n);if(!(e&&n&&n.data&&n.data.animation)){let T=this._rendererCache.get(o);return T||(T=new MI("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,T)),T}const r=n.id,u=n.id+"-"+this._currentId;this._currentId++,this.engine.register(u,e);const h=T=>{Array.isArray(T)?T.forEach(h):this.engine.registerTrigger(r,u,e,T.name,T)};return n.data.animation.forEach(h),new jN(this,u,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,n,i){e>=0&&en(i)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[r,u]=o;r(u)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([n,i]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}static#e=this.\u0275fac=function(n){return new(n||t)(ie(al),ie(pp),ie(je))};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac})}return t})();class MI{constructor(s,e,n,i){this.namespaceId=s,this.delegate=e,this.engine=n,this._onDestroy=i}get data(){return this.delegate.data}destroyNode(s){this.delegate.destroyNode?.(s)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(s,e){return this.delegate.createElement(s,e)}createComment(s){return this.delegate.createComment(s)}createText(s){return this.delegate.createText(s)}appendChild(s,e){this.delegate.appendChild(s,e),this.engine.onInsert(this.namespaceId,e,s,!1)}insertBefore(s,e,n,i=!0){this.delegate.insertBefore(s,e,n),this.engine.onInsert(this.namespaceId,e,s,i)}removeChild(s,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(s,e){return this.delegate.selectRootElement(s,e)}parentNode(s){return this.delegate.parentNode(s)}nextSibling(s){return this.delegate.nextSibling(s)}setAttribute(s,e,n,i){this.delegate.setAttribute(s,e,n,i)}removeAttribute(s,e,n){this.delegate.removeAttribute(s,e,n)}addClass(s,e){this.delegate.addClass(s,e)}removeClass(s,e){this.delegate.removeClass(s,e)}setStyle(s,e,n,i){this.delegate.setStyle(s,e,n,i)}removeStyle(s,e,n){this.delegate.removeStyle(s,e,n)}setProperty(s,e,n){"@"==e.charAt(0)&&e==DI?this.disableAnimations(s,!!n):this.delegate.setProperty(s,e,n)}setValue(s,e){this.delegate.setValue(s,e)}listen(s,e,n){return this.delegate.listen(s,e,n)}disableAnimations(s,e){this.engine.disableAnimations(s,e)}}class jN extends MI{constructor(s,e,n,i,o){super(e,n,i,o),this.factory=s,this.namespaceId=e}setProperty(s,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&e==DI?this.disableAnimations(s,n=void 0===n||!!n):this.engine.process(this.namespaceId,s,e.slice(1),n):this.delegate.setProperty(s,e,n)}listen(s,e,n){if("@"==e.charAt(0)){const i=function $N(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(s);let o=e.slice(1),r="";return"@"!=o.charAt(0)&&([o,r]=function WN(t){const s=t.indexOf(".");return[t.substring(0,s),t.slice(s+1)]}(o)),this.engine.listen(this.namespaceId,i,o,r,u=>{this.factory.scheduleListenerCallback(u._data||-1,n,u)})}return this.delegate.listen(s,e,n)}}const kI=[{provide:Q3,useClass:GN},{provide:v_,useFactory:function QN(){return new mN}},{provide:pp,useClass:(()=>{class t extends pp{constructor(e,n,i,o){super(e.body,n,i)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(n){return new(n||t)(ie(ct),ie(l_),ie(v_),ie(Vo))};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac})}return t})()},{provide:al,useFactory:function JN(t,s,e){return new UN(t,s,e)},deps:[wg,pp,je]}],x_=[{provide:l_,useFactory:()=>new HN},{provide:_C,useValue:"BrowserAnimations"},...kI],EI=[{provide:l_,useClass:sI},{provide:_C,useValue:"NoopAnimations"},...kI];let ZN=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?EI:x_}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=ge({type:t});static#n=this.\u0275inj=me({providers:x_,imports:[gw]})}return t})();class Y{static equals(s,e,n){return n?this.resolveFieldData(s,n)===this.resolveFieldData(e,n):this.equalsByValue(s,e)}static equalsByValue(s,e){if(s===e)return!0;if(s&&e&&"object"==typeof s&&"object"==typeof e){var o,r,u,n=Array.isArray(s),i=Array.isArray(e);if(n&&i){if((r=s.length)!=e.length)return!1;for(o=r;0!=o--;)if(!this.equalsByValue(s[o],e[o]))return!1;return!0}if(n!=i)return!1;var h=this.isDate(s),b=this.isDate(e);if(h!=b)return!1;if(h&&b)return s.getTime()==e.getTime();var T=s instanceof RegExp,w=e instanceof RegExp;if(T!=w)return!1;if(T&&w)return s.toString()==e.toString();var k=Object.keys(s);if((r=k.length)!==Object.keys(e).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(e,k[o]))return!1;for(o=r;0!=o--;)if(!this.equalsByValue(s[u=k[o]],e[u]))return!1;return!0}return s!=s&&e!=e}static resolveFieldData(s,e){if(s&&e){if(this.isFunction(e))return e(s);if(-1==e.indexOf("."))return s[e];{let n=e.split("."),i=s;for(let o=0,r=n.length;o=s.length&&(n%=s.length,e%=s.length),s.splice(n,0,s.splice(e,1)[0]))}static insertIntoOrderedArray(s,e,n,i){if(n.length>0){let o=!1;for(let r=0;re){n.splice(r,0,s),o=!0;break}o||n.push(s)}else n.push(s)}static findIndexInList(s,e){let n=-1;if(e)for(let i=0;i-1&&(s=s.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")),s}static isDate(s){return"[object Date]"===Object.prototype.toString.call(s)}static isEmpty(s){return null==s||""===s||Array.isArray(s)&&0===s.length||!this.isDate(s)&&"object"==typeof s&&0===Object.keys(s).length}static isNotEmpty(s){return!this.isEmpty(s)}static compare(s,e,n,i=1){let o=-1;const r=this.isEmpty(s),u=this.isEmpty(e);return o=r&&u?0:r?i:u?-i:"string"==typeof s&&"string"==typeof e?s.localeCompare(e,n,{numeric:!0}):se?1:0,o}static sort(s,e,n=1,i,o=1){return(1===o?n:o)*Y.compare(s,e,i,n)}static merge(s,e){if(null!=s||null!=e)return null!=s&&"object"!=typeof s||null!=e&&"object"!=typeof e?null!=s&&"string"!=typeof s||null!=e&&"string"!=typeof e?e||s:[s||"",e||""].join(" "):{...s||{},...e||{}}}static isPrintableCharacter(s=""){return this.isNotEmpty(s)&&1===s.length&&s.match(/\S| /)}static getItemValue(s,...e){return this.isFunction(s)?s(...e):s}static findLastIndex(s,e){let n=-1;if(this.isNotEmpty(s))try{n=s.findLastIndex(e)}catch{n=s.lastIndexOf([...s].reverse().find(e))}return n}static findLast(s,e){let n;if(this.isNotEmpty(s))try{n=s.findLast(e)}catch{n=[...s].reverse().find(e)}return n}}var LI=0;function Ft(t="pn_id_"){return`${t}${++LI}`}var Et=function YN(){let t=[];const i=o=>o&&parseInt(o.style.zIndex,10)||0;return{get:i,set:(o,r,u)=>{r&&(r.style.zIndex=String(((o,r)=>{let u=t.length>0?t[t.length-1]:{key:o,value:r},h=u.value+(u.key===o?0:r)+2;return t.push({key:o,value:h}),h})(o,u)))},clear:o=>{o&&((o=>{t=t.filter(r=>r.value!==o)})(i(o)),o.style.zIndex="")},getCurrent:()=>t.length>0?t[t.length-1].value:0}}();const RI=["*"];let Ht=(()=>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"})(),Xl=(()=>class t{static AND="and";static OR="or"})(),ec=(()=>{class t{filter(e,n,i,o,r){let u=[];if(e)for(let h of e)for(let b of n){let T=Y.resolveFieldData(h,b);if(this.filters[o](T,i,r)){u.push(h);break}}return u}filters={startsWith:(e,n,i)=>{if(null==n||""===n.trim())return!0;if(null==e)return!1;let o=Y.removeAccents(n.toString()).toLocaleLowerCase(i);return Y.removeAccents(e.toString()).toLocaleLowerCase(i).slice(0,o.length)===o},contains:(e,n,i)=>{if(null==n||"string"==typeof n&&""===n.trim())return!0;if(null==e)return!1;let o=Y.removeAccents(n.toString()).toLocaleLowerCase(i);return-1!==Y.removeAccents(e.toString()).toLocaleLowerCase(i).indexOf(o)},notContains:(e,n,i)=>{if(null==n||"string"==typeof n&&""===n.trim())return!0;if(null==e)return!1;let o=Y.removeAccents(n.toString()).toLocaleLowerCase(i);return-1===Y.removeAccents(e.toString()).toLocaleLowerCase(i).indexOf(o)},endsWith:(e,n,i)=>{if(null==n||""===n.trim())return!0;if(null==e)return!1;let o=Y.removeAccents(n.toString()).toLocaleLowerCase(i),r=Y.removeAccents(e.toString()).toLocaleLowerCase(i);return-1!==r.indexOf(o,r.length-o.length)},equals:(e,n,i)=>null==n||"string"==typeof n&&""===n.trim()||null!=e&&(e.getTime&&n.getTime?e.getTime()===n.getTime():Y.removeAccents(e.toString()).toLocaleLowerCase(i)==Y.removeAccents(n.toString()).toLocaleLowerCase(i)),notEquals:(e,n,i)=>!(null==n||"string"==typeof n&&""===n.trim()||null!=e&&(e.getTime&&n.getTime?e.getTime()===n.getTime():Y.removeAccents(e.toString()).toLocaleLowerCase(i)==Y.removeAccents(n.toString()).toLocaleLowerCase(i))),in:(e,n)=>{if(null==n||0===n.length)return!0;for(let i=0;inull==n||null==n[0]||null==n[1]||null!=e&&(e.getTime?n[0].getTime()<=e.getTime()&&e.getTime()<=n[1].getTime():n[0]<=e&&e<=n[1]),lt:(e,n,i)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()<=n.getTime():e<=n),gt:(e,n,i)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()>n.getTime():e>n),gte:(e,n,i)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()>=n.getTime():e>=n),is:(e,n,i)=>this.filters.equals(e,n,i),isNot:(e,n,i)=>this.filters.notEquals(e,n,i),before:(e,n,i)=>this.filters.lt(e,n,i),after:(e,n,i)=>this.filters.gt(e,n,i),dateIs:(e,n)=>null==n||null!=e&&e.toDateString()===n.toDateString(),dateIsNot:(e,n)=>null==n||null!=e&&e.toDateString()!==n.toDateString(),dateBefore:(e,n)=>null==n||null!=e&&e.getTime()null==n||null!=e&&e.getTime()>n.getTime()};register(e,n){this.filters[e]=n}static \u0275fac=function(n){return new(n||t)};static \u0275prov=re({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Yi=(()=>{class t{messageSource=new Qt;clearSource=new Qt;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(n){return new(n||t)};static \u0275prov=re({token:t,factory:t.\u0275fac})}return t})(),po=(()=>{class t{clickSource=new Qt;clickObservable=this.clickSource.asObservable();add(e){e&&this.clickSource.next(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=re({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Hn=(()=>{class t{ripple=!1;overlayOptions={};filterMatchModeOptions={text:[Ht.STARTS_WITH,Ht.CONTAINS,Ht.NOT_CONTAINS,Ht.ENDS_WITH,Ht.EQUALS,Ht.NOT_EQUALS],numeric:[Ht.EQUALS,Ht.NOT_EQUALS,Ht.LESS_THAN,Ht.LESS_THAN_OR_EQUAL_TO,Ht.GREATER_THAN,Ht.GREATER_THAN_OR_EQUAL_TO],date:[Ht.DATE_IS,Ht.DATE_IS_NOT,Ht.DATE_BEFORE,Ht.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 Qt;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(n){return new(n||t)};static \u0275prov=re({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),pa=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=U({type:t,selectors:[["p-header"]],ngContentSelectors:RI,decls:1,vars:0,template:function(n,i){1&n&&(_n(),xt(0))},encapsulation:2})}return t})(),tc=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=U({type:t,selectors:[["p-footer"]],ngContentSelectors:RI,decls:1,vars:0,template:function(n,i){1&n&&(_n(),xt(0))},encapsulation:2})}return t})(),ae=(()=>{class t{template;type;name;constructor(e){this.template=e}getType(){return this.name}static \u0275fac=function(n){return new(n||t)(M(ji))};static \u0275dir=fe({type:t,selectors:[["","pTemplate",""]],inputs:{type:"type",name:["pTemplate","name"]}})}return t})(),ze=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=me({imports:[Ne]})}return t})(),jt=(()=>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"})(),R=(()=>{class t{static zindex=1e3;static calculatedScrollbarWidth=null;static calculatedScrollbarHeight=null;static browser;static addClass(e,n){e&&n&&(e.classList?e.classList.add(n):e.className+=" "+n)}static addMultipleClasses(e,n){if(e&&n)if(e.classList){let i=n.trim().split(" ");for(let o=0;o{if(z)return"relative"===getComputedStyle(z).getPropertyValue("position")?z:i(z.parentElement)},o=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),r=n.offsetHeight,u=n.getBoundingClientRect(),h=this.getWindowScrollTop(),b=this.getWindowScrollLeft(),T=this.getViewport(),k=i(e)?.getBoundingClientRect()||{top:-1*h,left:-1*b};let L,O;u.top+r+o.height>T.height?(L=u.top-k.top-o.height,e.style.transformOrigin="bottom",u.top+L<0&&(L=-1*u.top)):(L=r+u.top-k.top,e.style.transformOrigin="top");const A=u.left+o.width-T.width;O=o.width>T.width?-1*(u.left-k.left):A>0?u.left-k.left-A:u.left-k.left,e.style.top=L+"px",e.style.left=O+"px"}static absolutePosition(e,n){const i=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),o=i.height,r=i.width,u=n.offsetHeight,h=n.offsetWidth,b=n.getBoundingClientRect(),T=this.getWindowScrollTop(),w=this.getWindowScrollLeft(),k=this.getViewport();let L,O;b.top+u+o>k.height?(L=b.top+T-o,e.style.transformOrigin="bottom",L<0&&(L=T)):(L=u+b.top+T,e.style.transformOrigin="top"),O=b.left+r>k.width?Math.max(0,b.left+w+h-r):b.left+w,e.style.top=L+"px",e.style.left=O+"px"}static getParents(e,n=[]){return null===e.parentNode?n:this.getParents(e.parentNode,n.concat([e.parentNode]))}static getScrollableParents(e){let n=[];if(e){let i=this.getParents(e);const o=/(auto|scroll)/,r=u=>{let h=window.getComputedStyle(u,null);return o.test(h.getPropertyValue("overflow"))||o.test(h.getPropertyValue("overflowX"))||o.test(h.getPropertyValue("overflowY"))};for(let u of i){let h=1===u.nodeType&&u.dataset.scrollselectors;if(h){let b=h.split(",");for(let T of b){let w=this.findSingle(u,T);w&&r(w)&&n.push(w)}}9!==u.nodeType&&r(u)&&n.push(u)}}return n}static getHiddenElementOuterHeight(e){e.style.visibility="hidden",e.style.display="block";let n=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",n}static getHiddenElementOuterWidth(e){e.style.visibility="hidden",e.style.display="block";let n=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",n}static getHiddenElementDimensions(e){let n={};return e.style.visibility="hidden",e.style.display="block",n.width=e.offsetWidth,n.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",n}static scrollInView(e,n){let i=getComputedStyle(e).getPropertyValue("borderTopWidth"),o=i?parseFloat(i):0,r=getComputedStyle(e).getPropertyValue("paddingTop"),u=r?parseFloat(r):0,h=e.getBoundingClientRect(),T=n.getBoundingClientRect().top+document.body.scrollTop-(h.top+document.body.scrollTop)-o-u,w=e.scrollTop,k=e.clientHeight,L=this.getOuterHeight(n);T<0?e.scrollTop=w+T:T+L>k&&(e.scrollTop=w+T-k+L)}static fadeIn(e,n){e.style.opacity=0;let i=+new Date,o=0,r=function(){o=+e.style.opacity.replace(",",".")+((new Date).getTime()-i)/n,e.style.opacity=o,i=+new Date,+o<1&&(window.requestAnimationFrame&&requestAnimationFrame(r)||setTimeout(r,16))};r()}static fadeOut(e,n){var i=1,u=50/n;let h=setInterval(()=>{(i-=u)<=0&&(i=0,clearInterval(h)),e.style.opacity=i},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,n){var i=Element.prototype;return(i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.msMatchesSelector||function(r){return-1!==[].indexOf.call(document.querySelectorAll(r),this)}).call(e,n)}static getOuterWidth(e,n){let i=e.offsetWidth;if(n){let o=getComputedStyle(e);i+=parseFloat(o.marginLeft)+parseFloat(o.marginRight)}return i}static getHorizontalPadding(e){let n=getComputedStyle(e);return parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)}static getHorizontalMargin(e){let n=getComputedStyle(e);return parseFloat(n.marginLeft)+parseFloat(n.marginRight)}static innerWidth(e){let n=e.offsetWidth,i=getComputedStyle(e);return n+=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight),n}static width(e){let n=e.offsetWidth,i=getComputedStyle(e);return n-=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight),n}static getInnerHeight(e){let n=e.offsetHeight,i=getComputedStyle(e);return n+=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom),n}static getOuterHeight(e,n){let i=e.offsetHeight;if(n){let o=getComputedStyle(e);i+=parseFloat(o.marginTop)+parseFloat(o.marginBottom)}return i}static getHeight(e){let n=e.offsetHeight,i=getComputedStyle(e);return n-=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom)+parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),n}static getWidth(e){let n=e.offsetWidth,i=getComputedStyle(e);return n-=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight)+parseFloat(i.borderLeftWidth)+parseFloat(i.borderRightWidth),n}static getViewport(){let e=window,n=document,i=n.documentElement,o=n.getElementsByTagName("body")[0];return{width:e.innerWidth||i.clientWidth||o.clientWidth,height:e.innerHeight||i.clientHeight||o.clientHeight}}static getOffset(e){var n=e.getBoundingClientRect();return{top:n.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:n.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(e,n){let i=e.parentNode;if(!i)throw"Can't replace element";return i.replaceChild(n,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,n){if(this.isElement(n))n.appendChild(e);else{if(!(n&&n.el&&n.el.nativeElement))throw"Cannot append "+n+" to "+e;n.el.nativeElement.appendChild(e)}}static removeChild(e,n){if(this.isElement(n))n.removeChild(e);else{if(!n.el||!n.el.nativeElement)throw"Cannot remove "+e+" from "+n;n.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 n=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(n.borderLeftWidth)-parseFloat(n.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let n=document.createElement("div");n.className="p-scrollbar-measure",document.body.appendChild(n);let i=n.offsetWidth-n.clientWidth;return document.body.removeChild(n),this.calculatedScrollbarWidth=i,i}}static calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return this.calculatedScrollbarHeight;let e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let n=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),this.calculatedScrollbarWidth=n,n}static invokeElementMethod(e,n,i){e[n].apply(e,i)}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(),n=/(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:n[1]||"",version:n[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,n){e&&document.activeElement!==e&&e.focus(n)}static getFocusableElements(e){let n=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)'),i=[];for(let o of n)(o.offsetWidth||o.offsetHeight||o.getClientRects().length)&&i.push(o);return i}static getNextFocusableElement(e,n=!1){const i=t.getFocusableElements(e);let o=0;if(i&&i.length>0){const r=i.indexOf(i[0].ownerDocument.activeElement);n?o=-1==r||0===r?i.length-1:r-1:-1!=r&&r!==i.length-1&&(o=r+1)}return i[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,n){if(!e)return null;switch(e){case"document":return document;case"window":return window;case"@next":return n?.nextElementSibling;case"@prev":return n?.previousElementSibling;case"@parent":return n?.parentElement;case"@grandparent":return n?.parentElement.parentElement;default:const i=typeof e;if("string"===i)return document.querySelector(e);if("object"===i&&e.hasOwnProperty("nativeElement"))return this.isExist(e.nativeElement)?e.nativeElement:void 0;const r=(u=e)&&u.constructor&&u.call&&u.apply?e():e;return r&&9===r.nodeType||this.isExist(r)?r:null}var u}static isClient(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}static getAttribute(e,n){if(e){const i=e.getAttribute(n);return isNaN(i)?"true"===i||"false"===i?"true"===i:i:+i}}}return t})();class Jo{element;listener;scrollableParents;constructor(s,e=(()=>{})){this.element=s,this.listener=e}bindScrollListener(){this.scrollableParents=R.getScrollableParents(this.element);for(let s=0;s{class t{label;spin=!1;styleClass;role;ariaLabel;ariaHidden;ngOnInit(){this.getAttributes()}getAttributes(){const e=Y.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(n){return new(n||t)};static \u0275cmp=U({type:t,selectors:[["ng-component"]],hostAttrs:[1,"p-element","p-icon-wrapper"],inputs:{label:"label",spin:"spin",styleClass:"styleClass"},standalone:!0,features:[ot],ngContentSelectors:eV,decls:1,vars:0,template:function(n,i){1&n&&(_n(),xt(0))},encapsulation:2,changeDetection:0})}return t})(),ho=(()=>{class t extends _t{static \u0275fac=function(){let e;return function(i){return(e||(e=we(t)))(i||t)}}();static \u0275cmp=U({type:t,selectors:[["ChevronDownIcon"]],standalone:!0,features:[_e,ot],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(n,i){1&n&&(lt(),l(0,"svg",0),D(1,"path",1),c()),2&n&&(se(i.getClassNames()),F("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role))},encapsulation:2})}return t})(),ha=(()=>{class t extends _t{static \u0275fac=function(){let e;return function(i){return(e||(e=we(t)))(i||t)}}();static \u0275cmp=U({type:t,selectors:[["ChevronRightIcon"]],standalone:!0,features:[_e,ot],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(n,i){1&n&&(lt(),l(0,"svg",0),D(1,"path",1),c()),2&n&&(se(i.getClassNames()),F("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role))},encapsulation:2})}return t})();function tV(t,s){if(1&t&&D(0,"span",11),2&t){const e=p(3);se(e.accordion.collapseIcon),d("ngClass",e.iconClass),F("aria-hidden",!0)}}function nV(t,s){1&t&&D(0,"ChevronDownIcon",11),2&t&&(d("ngClass",p(3).iconClass),F("aria-hidden",!0))}function iV(t,s){if(1&t&&(Q(0),m(1,tV,1,4,"span",9),m(2,nV,1,2,"ChevronDownIcon",10),J()),2&t){const e=p(2);a(1),d("ngIf",e.accordion.collapseIcon),a(1),d("ngIf",!e.accordion.collapseIcon)}}function sV(t,s){if(1&t&&D(0,"span",11),2&t){const e=p(3);se(e.accordion.expandIcon),d("ngClass",e.iconClass),F("aria-hidden",!0)}}function oV(t,s){1&t&&D(0,"ChevronRightIcon",11),2&t&&(d("ngClass",p(3).iconClass),F("aria-hidden",!0))}function rV(t,s){if(1&t&&(Q(0),m(1,sV,1,4,"span",9),m(2,oV,1,2,"ChevronRightIcon",10),J()),2&t){const e=p(2);a(1),d("ngIf",e.accordion.expandIcon),a(1),d("ngIf",!e.accordion.expandIcon)}}function aV(t,s){if(1&t&&(Q(0),m(1,iV,3,2,"ng-container",3),m(2,rV,3,2,"ng-container",3),J()),2&t){const e=p();a(1),d("ngIf",e.selected),a(1),d("ngIf",!e.selected)}}function lV(t,s){}function cV(t,s){1&t&&m(0,lV,0,0,"ng-template")}function uV(t,s){if(1&t&&(l(0,"span",12),_(1),c()),2&t){const e=p();a(1),x(" ",e.header," ")}}function dV(t,s){1&t&&Z(0)}function pV(t,s){1&t&&xt(0,1,["*ngIf","hasHeaderFacet"])}function hV(t,s){1&t&&Z(0)}function mV(t,s){if(1&t&&(Q(0),m(1,hV,1,0,"ng-container",6),J()),2&t){const e=p();a(1),d("ngTemplateOutlet",e.contentTemplate)}}const fV=["*",[["p-header"]]],gV=function(t){return{$implicit:t}},OI=function(t){return{transitionParams:t}},_V=function(t){return{value:"visible",params:t}},bV=function(t){return{value:"hidden",params:t}},vV=["*","p-header"],CV=["*"];let bs=(()=>{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 q;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,n,i){this.el=n,this.changeDetector=i,this.accordion=e,this.id=Ft()}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 n=this.findTabIndex();if(this.selected)this.selected=!1,this.accordion.onClose.emit({originalEvent:e,index:n});else{if(!this.accordion.multiple)for(var i=0;i0}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(n){return new(n||t)(M(Ze(()=>vs)),M(Pe),M(rt))};static \u0275cmp=U({type:t,selectors:[["p-accordionTab"]],contentQueries:function(n,i,o){if(1&n&&(Ye(o,pa,4),Ye(o,ae,4)),2&n){let r;H(r=G())&&(i.headerFacet=r),H(r=G())&&(i.templates=r)}},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:vV,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(n,i){1&n&&(_n(fV),l(0,"div",0)(1,"div",1)(2,"a",2),v("click",function(r){return i.toggle(r)})("keydown",function(r){return i.onKeydown(r)}),m(3,aV,3,2,"ng-container",3),m(4,cV,1,0,null,4),m(5,uV,2,1,"span",5),m(6,dV,1,0,"ng-container",6),m(7,pV,1,0,"ng-content",3),c()(),l(8,"div",7)(9,"div",8),xt(10),m(11,mV,2,1,"ng-container",3),c()()()),2&n&&(Jn("p-accordion-tab-active",i.selected),d("ngClass",i.tabStyleClass)("ngStyle",i.tabStyle),F("data-pc-name","accordiontab"),a(1),Jn("p-highlight",i.selected)("p-disabled",i.disabled),F("aria-level",i.headerAriaLevel)("data-p-disabled",i.disabled)("data-pc-section","header"),a(1),j(i.headerStyle),d("ngClass",i.headerStyleClass),F("tabindex",i.disabled?null:0)("id",i.getTabHeaderActionId(i.id))("aria-controls",i.getTabContentId(i.id))("aria-expanded",i.selected)("aria-disabled",i.disabled)("data-pc-section","headeraction"),a(1),d("ngIf",!i.iconTemplate),a(1),d("ngTemplateOutlet",i.iconTemplate)("ngTemplateOutletContext",W(35,gV,i.selected)),a(1),d("ngIf",!i.hasHeaderFacet),a(1),d("ngTemplateOutlet",i.headerTemplate),a(1),d("ngIf",i.hasHeaderFacet),a(1),d("@tabContent",i.selected?W(39,_V,W(37,OI,i.transitionOptions)):W(43,bV,W(41,OI,i.transitionOptions))),F("id",i.getTabContentId(i.id))("aria-hidden",!i.selected)("aria-labelledby",i.getTabHeaderActionId(i.id))("data-pc-section","toggleablecontent"),a(1),d("ngClass",i.contentStyleClass)("ngStyle",i.contentStyle),a(2),d("ngIf",i.contentTemplate&&(i.cache?i.loaded:i.selected)))},dependencies:function(){return[Fe,ne,dt,nt,ha,ho]},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:[Ji("tabContent",[qs("hidden",Tt({height:"0"})),qs("visible",Tt({height:"*"})),Yt("visible <=> hidden",[Ut("{{transitionParams}}")]),Yt("void => *",Ut(0))])]},changeDetection:0})}return t})(),vs=(()=>{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 q;onOpen=new q;activeIndexChange=new q;tabList;tabListSubscription=null;_activeIndex;_headerAriaLevel=2;preventActiveIndexPropagation=!1;tabs=[];constructor(e,n){this.el=e,this.changeDetector=n}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 n=this.findNextHeaderAction(e.target.parentElement.parentElement.parentElement);n?this.changeFocusedTab(n):this.onTabHomeKey(e),e.preventDefault()}onTabArrowUpKey(e){const n=this.findPrevHeaderAction(e.target.parentElement.parentElement.parentElement);n?this.changeFocusedTab(n):this.onTabEndKey(e),e.preventDefault()}onTabHomeKey(e){const n=this.findFirstHeaderAction();this.changeFocusedTab(n),e.preventDefault()}changeFocusedTab(e){e&&(R.focus(e),this.selectOnFocus&&this.tabs.forEach((n,i)=>{let o=this.multiple?this._activeIndex.includes(i):i===this._activeIndex;this.multiple?(this._activeIndex||(this._activeIndex=[]),n.id==e.id&&(n.selected=!n.selected,this._activeIndex.includes(i)?this._activeIndex=this._activeIndex.filter(r=>r!==i):this._activeIndex.push(i))):n.id==e.id?(n.selected=!n.selected,this._activeIndex=i):n.selected=!1,n.selectedChange.emit(o),this.activeIndexChange.emit(this._activeIndex),n.changeDetector.markForCheck()}))}findNextHeaderAction(e,n=!1){const o=R.findSingle(n?e:e.nextElementSibling,'[data-pc-section="header"]');return o?R.getAttribute(o,"data-p-disabled")?this.findNextHeaderAction(o.parentElement.parentElement):R.findSingle(o,'[data-pc-section="headeraction"]'):null}findPrevHeaderAction(e,n=!1){const o=R.findSingle(n?e:e.previousElementSibling,'[data-pc-section="header"]');return o?R.getAttribute(o,"data-p-disabled")?this.findPrevHeaderAction(o.parentElement.parentElement):R.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 n=this.findLastHeaderAction();this.changeFocusedTab(n),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(n.selected){if(!this.multiple)return void(e=i);e.push(i)}}),this.preventActiveIndexPropagation=!0,this.activeIndexChange.emit(e)}ngOnDestroy(){this.tabListSubscription&&this.tabListSubscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)(M(Pe),M(rt))};static \u0275cmp=U({type:t,selectors:[["p-accordion"]],contentQueries:function(n,i,o){if(1&n&&Ye(o,bs,4),2&n){let r;H(r=G())&&(i.tabList=r)}},hostAttrs:[1,"p-element"],hostBindings:function(n,i){1&n&&v("keydown",function(r){return i.onKeydown(r)})},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(n,i){1&n&&(_n(),l(0,"div",0),xt(1),c()),2&n&&(se(i.styleClass),d("ngClass","p-accordion p-component")("ngStyle",i.style))},dependencies:[Fe,nt],encapsulation:2,changeDetection:0})}return t})(),yV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=me({imports:[Ne,ha,ho,ze]})}return t})(),mo=(()=>{class t extends _t{pathId;ngOnInit(){this.pathId="url(#"+Ft()+")"}static \u0275fac=function(){let e;return function(i){return(e||(e=we(t)))(i||t)}}();static \u0275cmp=U({type:t,selectors:[["SpinnerIcon"]],standalone:!0,features:[_e,ot],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(n,i){1&n&&(lt(),l(0,"svg",0)(1,"g"),D(2,"path",1),c(),l(3,"defs")(4,"clipPath",2),D(5,"rect",3),c()()()),2&n&&(se(i.getClassNames()),F("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role),a(1),F("clip-path",i.pathId),a(3),d("id",i.pathId))},encapsulation:2})}return t})(),bt=(()=>{class t{document;platformId;renderer;el;zone;config;constructor(e,n,i,o,r,u){this.document=e,this.platformId=n,this.renderer=i,this.el=o,this.zone=r,this.config=u}animationListener;mouseDownListener;timeout;ngAfterViewInit(){vn(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 n=this.getInk();if(!n||"none"===this.document.defaultView?.getComputedStyle(n,null).display)return;if(R.removeClass(n,"p-ink-active"),!R.getHeight(n)&&!R.getWidth(n)){let u=Math.max(R.getOuterWidth(this.el.nativeElement),R.getOuterHeight(this.el.nativeElement));n.style.height=u+"px",n.style.width=u+"px"}let i=R.getOffset(this.el.nativeElement),o=e.pageX-i.left+this.document.body.scrollTop-R.getWidth(n)/2,r=e.pageY-i.top+this.document.body.scrollLeft-R.getHeight(n)/2;this.renderer.setStyle(n,"top",r+"px"),this.renderer.setStyle(n,"left",o+"px"),R.addClass(n,"p-ink-active"),this.timeout=setTimeout(()=>{let u=this.getInk();u&&R.removeClass(u,"p-ink-active")},401)}getInk(){const e=this.el.nativeElement.children;for(let n=0;n{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=me({imports:[Ne]})}return t})();function TV(t,s){1&t&&Z(0)}function wV(t,s){if(1&t&&D(0,"span",8),2&t){const e=p(3);se("p-button-loading-icon pi-spin "+e.loadingIcon),d("ngClass",e.iconClass()),F("aria-hidden",!0)("data-pc-section","loadingicon")}}function IV(t,s){1&t&&D(0,"SpinnerIcon",9),2&t&&(d("styleClass",p(3).spinnerIconClass())("spin",!0),F("aria-hidden",!0)("data-pc-section","loadingicon"))}function SV(t,s){if(1&t&&(Q(0),m(1,wV,1,5,"span",6),m(2,IV,1,4,"SpinnerIcon",7),J()),2&t){const e=p(2);a(1),d("ngIf",e.loadingIcon),a(1),d("ngIf",!e.loadingIcon)}}function xV(t,s){}function DV(t,s){1&t&&m(0,xV,0,0,"ng-template")}function MV(t,s){if(1&t&&(l(0,"span",10),m(1,DV,1,0,null,1),c()),2&t){const e=p(2);d("ngClass",e.iconClass()),F("aria-hidden",!0)("data-pc-section","loadingicon"),a(1),d("ngTemplateOutlet",e.loadingIconTemplate)}}function kV(t,s){if(1&t&&(Q(0),m(1,SV,3,2,"ng-container",2),m(2,MV,2,4,"span",5),J()),2&t){const e=p();a(1),d("ngIf",!e.loadingIconTemplate),a(1),d("ngIf",e.loadingIconTemplate)}}function EV(t,s){if(1&t&&D(0,"span",8),2&t){const e=p(2);se(e.icon),d("ngClass",e.iconClass()),F("data-pc-section","icon")}}function LV(t,s){}function RV(t,s){1&t&&m(0,LV,0,0,"ng-template",12),2&t&&d("ngIf",!p(3).icon)}function OV(t,s){if(1&t&&(l(0,"span",8),m(1,RV,1,1,null,1),c()),2&t){const e=p(2);d("ngClass",e.iconClass()),F("data-pc-section","icon"),a(1),d("ngTemplateOutlet",e.iconTemplate)}}function AV(t,s){if(1&t&&(Q(0),m(1,EV,1,4,"span",6),m(2,OV,2,3,"span",11),J()),2&t){const e=p();a(1),d("ngIf",e.icon&&!e.iconTemplate),a(1),d("ngIf",!e.icon&&e.iconTemplate)}}function PV(t,s){if(1&t&&(l(0,"span",13),_(1),c()),2&t){const e=p();F("aria-hidden",e.icon&&!e.label)("data-pc-section","label"),a(1),S(e.label)}}function FV(t,s){if(1&t&&(l(0,"span",8),_(1),c()),2&t){const e=p();se(e.badgeClass),d("ngClass",e.badgeStyleClass()),F("data-pc-section","badge"),a(1),S(e.badge)}}const NV=["*"],fo={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 Sn=(()=>{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(fo);spinnerIcon='';constructor(e,n){this.el=e,this.document=n}ngAfterViewInit(){R.addMultipleClasses(this.htmlElement,this.getStyleClass().join(" ")),this.createIcon(),this.createLabel(),this.initialized=!0}getStyleClass(){const e=[fo.button,fo.component];return this.icon&&!this.label&&Y.isEmpty(this.htmlElement.textContent)&&e.push(fo.iconOnly),this.loading&&(e.push(fo.disabled,fo.loading),!this.icon&&this.label&&e.push(fo.labelOnly),this.icon&&!this.label&&!Y.isEmpty(this.htmlElement.textContent)&&e.push(fo.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 n=this.label?"p-button-icon-"+this.iconPos:null;n&&R.addClass(e,n);let i=this.getIconClass();i&&R.addMultipleClasses(e,i),!this.loadingIcon&&this.loading&&(e.innerHTML=this.spinnerIcon),this.htmlElement.insertBefore(e,this.htmlElement.firstChild)}}updateLabel(){let e=R.findSingle(this.htmlElement,".p-button-label");this.label?e?e.textContent=this.label:this.createLabel():e&&this.htmlElement.removeChild(e)}updateIcon(){let e=R.findSingle(this.htmlElement,".p-button-icon"),n=R.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 "+(n?"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}ngOnDestroy(){this.initialized=!1}static \u0275fac=function(n){return new(n||t)(M(Pe),M(ct))};static \u0275dir=fe({type:t,selectors:[["","pButton",""]],hostAttrs:[1,"p-element"],inputs:{iconPos:"iconPos",loadingIcon:"loadingIcon",label:"label",icon:"icon",loading:"loading"}})}return t})(),Te=(()=>{class t{type="button";iconPos="left";icon;badge;label;disabled;loading=!1;loadingIcon;style;styleClass;badgeClass;ariaLabel;onClick=new q;onFocus=new q;onBlur=new q;contentTemplate;loadingIconTemplate;iconTemplate;templates;spinnerIconClass(){return Object.entries(this.iconClass()).filter(([,e])=>!!e).reduce((e,[n])=>e+` ${n}`,"p-button-loading-icon")}iconClass(){return{"p-button-icon":!0,"p-button-icon-left":"left"===this.iconPos&&this.label,"p-button-icon-right":"right"===this.iconPos&&this.label,"p-button-icon-top":"top"===this.iconPos&&this.label,"p-button-icon-bottom":"bottom"===this.iconPos&&this.label}}buttonClass(){return{"p-button p-component":!0,"p-button-icon-only":(this.icon||this.iconTemplate||this.loadingIcon||this.loadingIconTemplate)&&!this.label,"p-button-vertical":("top"===this.iconPos||"bottom"===this.iconPos)&&this.label,"p-disabled":this.disabled||this.loading,"p-button-loading":this.loading,"p-button-loading-label-only":this.loading&&!this.icon&&this.label&&!this.loadingIcon&&"left"===this.iconPos}}ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"content":default:this.contentTemplate=e.template;break;case"icon":this.iconTemplate=e.template;break;case"loadingicon":this.loadingIconTemplate=e.template}})}badgeStyleClass(){return{"p-badge p-component":!0,"p-badge-no-gutter":this.badge&&1===String(this.badge).length}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=U({type:t,selectors:[["p-button"]],contentQueries:function(n,i,o){if(1&n&&Ye(o,ae,4),2&n){let r;H(r=G())&&(i.templates=r)}},hostAttrs:[1,"p-element"],hostVars:2,hostBindings:function(n,i){2&n&&Jn("p-disabled",i.disabled)},inputs:{type:"type",iconPos:"iconPos",icon:"icon",badge:"badge",label:"label",disabled:"disabled",loading:"loading",loadingIcon:"loadingIcon",style:"style",styleClass:"styleClass",badgeClass:"badgeClass",ariaLabel:"ariaLabel"},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},ngContentSelectors:NV,decls:7,vars:14,consts:[["pRipple","",3,"ngStyle","disabled","ngClass","click","focus","blur"],[4,"ngTemplateOutlet"],[4,"ngIf"],["class","p-button-label",4,"ngIf"],[3,"ngClass","class",4,"ngIf"],["class","p-button-loading-icon",3,"ngClass",4,"ngIf"],[3,"class","ngClass",4,"ngIf"],[3,"styleClass","spin",4,"ngIf"],[3,"ngClass"],[3,"styleClass","spin"],[1,"p-button-loading-icon",3,"ngClass"],[3,"ngClass",4,"ngIf"],[3,"ngIf"],[1,"p-button-label"]],template:function(n,i){1&n&&(_n(),l(0,"button",0),v("click",function(r){return i.onClick.emit(r)})("focus",function(r){return i.onFocus.emit(r)})("blur",function(r){return i.onBlur.emit(r)}),xt(1),m(2,TV,1,0,"ng-container",1),m(3,kV,3,2,"ng-container",2),m(4,AV,3,2,"ng-container",2),m(5,PV,2,3,"span",3),m(6,FV,2,5,"span",4),c()),2&n&&(se(i.styleClass),d("ngStyle",i.style)("disabled",i.disabled||i.loading)("ngClass",i.buttonClass()),F("type",i.type)("aria-label",i.ariaLabel)("data-pc-name","button")("data-pc-section","root"),a(2),d("ngTemplateOutlet",i.contentTemplate),a(1),d("ngIf",i.loading),a(1),d("ngIf",!i.loading),a(1),d("ngIf",!i.contentTemplate&&i.label),a(1),d("ngIf",!i.contentTemplate&&i.badge))},dependencies:function(){return[Fe,ne,dt,nt,bt,mo]},encapsulation:2,changeDetection:0})}return t})(),nc=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=me({imports:[Ne,Cn,ze,mo,ze]})}return t})(),mp=(()=>{class t extends _t{static \u0275fac=function(){let e;return function(i){return(e||(e=we(t)))(i||t)}}();static \u0275cmp=U({type:t,selectors:[["ChevronLeftIcon"]],standalone:!0,features:[_e,ot],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(n,i){1&n&&(lt(),l(0,"svg",0),D(1,"path",1),c()),2&n&&(se(i.getClassNames()),F("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role))},encapsulation:2})}return t})(),AI=(()=>{class t extends _t{static \u0275fac=function(){let e;return function(i){return(e||(e=we(t)))(i||t)}}();static \u0275cmp=U({type:t,selectors:[["ChevronUpIcon"]],standalone:!0,features:[_e,ot],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(n,i){1&n&&(lt(),l(0,"svg",0),D(1,"path",1),c()),2&n&&(se(i.getClassNames()),F("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role))},encapsulation:2})}return t})(),xn=(()=>{class t extends _t{static \u0275fac=function(){let e;return function(i){return(e||(e=we(t)))(i||t)}}();static \u0275cmp=U({type:t,selectors:[["TimesIcon"]],standalone:!0,features:[_e,ot],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(n,i){1&n&&(lt(),l(0,"svg",0),D(1,"path",1),c()),2&n&&(se(i.getClassNames()),F("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role))},encapsulation:2})}return t})(),PI=(()=>{class t extends _t{static \u0275fac=function(){let e;return function(i){return(e||(e=we(t)))(i||t)}}();static \u0275cmp=U({type:t,selectors:[["CalendarIcon"]],standalone:!0,features:[_e,ot],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(n,i){1&n&&(lt(),l(0,"svg",0),D(1,"path",1),c()),2&n&&(se(i.getClassNames()),F("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role))},encapsulation:2})}return t})();const VV=["container"],BV=["inputfield"],HV=["contentWrapper"];function GV(t,s){if(1&t){const e=E();l(0,"TimesIcon",10),v("click",function(){return C(e),y(p(3).clear())}),c()}2&t&&d("styleClass","p-calendar-clear-icon")}function qV(t,s){}function zV(t,s){1&t&&m(0,qV,0,0,"ng-template")}function UV(t,s){if(1&t){const e=E();l(0,"span",11),v("click",function(){return C(e),y(p(3).clear())}),m(1,zV,1,0,null,12),c()}if(2&t){const e=p(3);a(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function jV(t,s){if(1&t&&(Q(0),m(1,GV,1,1,"TimesIcon",8),m(2,UV,2,1,"span",9),J()),2&t){const e=p(2);a(1),d("ngIf",!e.clearIconTemplate),a(1),d("ngIf",e.clearIconTemplate)}}function $V(t,s){1&t&&D(0,"span",15),2&t&&d("ngClass",p(3).icon)}function WV(t,s){1&t&&D(0,"CalendarIcon")}function KV(t,s){}function QV(t,s){1&t&&m(0,KV,0,0,"ng-template")}function JV(t,s){if(1&t&&(Q(0),m(1,WV,1,0,"CalendarIcon",6),m(2,QV,1,0,null,12),J()),2&t){const e=p(3);a(1),d("ngIf",!e.triggerIconTemplate),a(1),d("ngTemplateOutlet",e.triggerIconTemplate)}}function ZV(t,s){if(1&t){const e=E();l(0,"button",13),v("click",function(i){C(e),p();const o=B(1);return y(p().onButtonClick(i,o))}),m(1,$V,1,1,"span",14),m(2,JV,3,2,"ng-container",6),c()}if(2&t){const e=p(2);d("disabled",e.disabled),F("aria-label",e.iconAriaLabel),a(1),d("ngIf",e.icon),a(1),d("ngIf",!e.icon)}}function YV(t,s){if(1&t){const e=E();l(0,"input",4,5),v("focus",function(i){return C(e),y(p().onInputFocus(i))})("keydown",function(i){return C(e),y(p().onInputKeydown(i))})("click",function(){return C(e),y(p().onInputClick())})("blur",function(i){return C(e),y(p().onInputBlur(i))})("input",function(i){return C(e),y(p().onUserInput(i))}),c(),m(2,jV,3,2,"ng-container",6),m(3,ZV,3,4,"button",7)}if(2&t){const e=p();se(e.inputStyleClass),d("value",e.inputFieldValue)("readonly",e.readonlyInput)("ngStyle",e.inputStyle)("placeholder",e.placeholder||"")("disabled",e.disabled)("ngClass","p-inputtext p-component"),F("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),a(2),d("ngIf",e.showClear&&!e.disabled&&null!=e.value),a(1),d("ngIf",e.showIcon)}}function XV(t,s){1&t&&Z(0)}function eB(t,s){1&t&&D(0,"ChevronLeftIcon",37),2&t&&d("styleClass","p-datepicker-prev-icon")}function tB(t,s){}function nB(t,s){1&t&&m(0,tB,0,0,"ng-template")}function iB(t,s){if(1&t&&(l(0,"span",38),m(1,nB,1,0,null,12),c()),2&t){const e=p(5);a(1),d("ngTemplateOutlet",e.previousIconTemplate)}}function sB(t,s){if(1&t){const e=E();l(0,"button",35),v("keydown",function(i){return C(e),y(p(4).onContainerButtonKeydown(i))})("click",function(i){return C(e),y(p(4).onPrevButtonClick(i))}),m(1,eB,1,1,"ChevronLeftIcon",32),m(2,iB,2,1,"span",36),c()}if(2&t){const e=p(4);a(1),d("ngIf",!e.previousIconTemplate),a(1),d("ngIf",e.previousIconTemplate)}}function oB(t,s){if(1&t){const e=E();l(0,"button",39),v("click",function(i){return C(e),y(p(4).switchToMonthView(i))})("keydown",function(i){return C(e),y(p(4).onContainerButtonKeydown(i))}),_(1),c()}if(2&t){const e=p().$implicit,n=p(3);d("disabled",n.switchViewButtonDisabled()),a(1),x(" ",n.getMonthName(e.month)," ")}}function rB(t,s){if(1&t){const e=E();l(0,"button",40),v("click",function(i){return C(e),y(p(4).switchToYearView(i))})("keydown",function(i){return C(e),y(p(4).onContainerButtonKeydown(i))}),_(1),c()}if(2&t){const e=p().$implicit,n=p(3);d("disabled",n.switchViewButtonDisabled()),a(1),x(" ",n.getYear(e)," ")}}function aB(t,s){if(1&t&&(Q(0),_(1),J()),2&t){const e=p(5);a(1),Ke("",e.yearPickerValues()[0]," - ",e.yearPickerValues()[e.yearPickerValues().length-1],"")}}function lB(t,s){1&t&&Z(0)}const D_=function(t){return{$implicit:t}};function cB(t,s){if(1&t&&(l(0,"span",41),m(1,aB,2,2,"ng-container",6),m(2,lB,1,0,"ng-container",42),c()),2&t){const e=p(4);a(1),d("ngIf",!e.decadeTemplate),a(1),d("ngTemplateOutlet",e.decadeTemplate)("ngTemplateOutletContext",W(3,D_,e.yearPickerValues))}}function uB(t,s){1&t&&D(0,"ChevronRightIcon",37),2&t&&d("styleClass","p-datepicker-next-icon")}function dB(t,s){}function pB(t,s){1&t&&m(0,dB,0,0,"ng-template")}function hB(t,s){if(1&t&&(l(0,"span",43),m(1,pB,1,0,null,12),c()),2&t){const e=p(4);a(1),d("ngTemplateOutlet",e.nextIconTemplate)}}function mB(t,s){if(1&t&&(l(0,"th",49)(1,"span"),_(2),c()()),2&t){const e=p(5);a(2),S(e.getTranslation("weekHeader"))}}function fB(t,s){if(1&t&&(l(0,"th",50)(1,"span"),_(2),c()()),2&t){const e=s.$implicit;a(2),S(e)}}function gB(t,s){if(1&t&&(l(0,"td",53)(1,"span",54),_(2),c()()),2&t){const e=p().index,n=p(2).$implicit;a(2),x(" ",n.weekNumbers[e]," ")}}function _B(t,s){if(1&t&&(Q(0),_(1),J()),2&t){const e=p(2).$implicit;a(1),S(e.day)}}function bB(t,s){1&t&&Z(0)}function vB(t,s){if(1&t&&(Q(0),m(1,bB,1,0,"ng-container",42),J()),2&t){const e=p(2).$implicit,n=p(6);a(1),d("ngTemplateOutlet",n.dateTemplate)("ngTemplateOutletContext",W(2,D_,e))}}function CB(t,s){1&t&&Z(0)}function yB(t,s){if(1&t&&(Q(0),m(1,CB,1,0,"ng-container",42),J()),2&t){const e=p(2).$implicit,n=p(6);a(1),d("ngTemplateOutlet",n.disabledDateTemplate)("ngTemplateOutletContext",W(2,D_,e))}}const M_=function(t,s){return{"p-highlight":t,"p-disabled":s}};function TB(t,s){if(1&t){const e=E();Q(0),l(1,"span",55),v("click",function(i){C(e);const o=p().$implicit;return y(p(6).onDateSelect(i,o))})("keydown",function(i){C(e);const o=p().$implicit,r=p(3).index;return y(p(3).onDateCellKeydown(i,o,r))}),m(2,_B,2,1,"ng-container",6),m(3,vB,2,4,"ng-container",6),m(4,yB,2,4,"ng-container",6),c(),J()}if(2&t){const e=p().$implicit,n=p(6);a(1),d("ngClass",Se(4,M_,n.isSelected(e)&&e.selectable,!e.selectable)),a(1),d("ngIf",!n.dateTemplate&&(e.selectable||!n.disabledDateTemplate)),a(1),d("ngIf",e.selectable||!n.disabledDateTemplate),a(1),d("ngIf",!e.selectable)}}const wB=function(t,s){return{"p-datepicker-other-month":t,"p-datepicker-today":s}};function IB(t,s){if(1&t&&(l(0,"td",15),m(1,TB,5,7,"ng-container",6),c()),2&t){const e=s.$implicit,n=p(6);d("ngClass",Se(2,wB,e.otherMonth,e.today)),a(1),d("ngIf",!e.otherMonth||n.showOtherMonths)}}function SB(t,s){if(1&t&&(l(0,"tr"),m(1,gB,3,1,"td",51),m(2,IB,2,5,"td",52),c()),2&t){const e=s.$implicit,n=p(5);a(1),d("ngIf",n.showWeek),a(1),d("ngForOf",e)}}function xB(t,s){if(1&t&&(l(0,"div",44)(1,"table",45)(2,"thead")(3,"tr"),m(4,mB,3,1,"th",46),m(5,fB,3,1,"th",47),c()(),l(6,"tbody"),m(7,SB,3,2,"tr",48),c()()()),2&t){const e=p().$implicit,n=p(3);a(4),d("ngIf",n.showWeek),a(1),d("ngForOf",n.weekDays),a(2),d("ngForOf",e.dates)}}function DB(t,s){if(1&t){const e=E();l(0,"div",24)(1,"div",25),m(2,sB,3,2,"button",26),l(3,"div",27),m(4,oB,2,2,"button",28),m(5,rB,2,2,"button",29),m(6,cB,3,5,"span",30),c(),l(7,"button",31),v("keydown",function(i){return C(e),y(p(3).onContainerButtonKeydown(i))})("click",function(i){return C(e),y(p(3).onNextButtonClick(i))}),m(8,uB,1,1,"ChevronRightIcon",32),m(9,hB,2,1,"span",33),c()(),m(10,xB,8,3,"div",34),c()}if(2&t){const e=s.index,n=p(3);a(2),d("ngIf",0===e),a(2),d("ngIf","date"===n.currentView),a(1),d("ngIf","year"!==n.currentView),a(1),d("ngIf","year"===n.currentView),a(1),qi("display",1===n.numberOfMonths||e===n.numberOfMonths-1?"inline-flex":"none"),a(1),d("ngIf",!n.nextIconTemplate),a(1),d("ngIf",n.nextIconTemplate),a(1),d("ngIf","date"===n.currentView)}}function MB(t,s){if(1&t){const e=E();l(0,"span",58),v("click",function(i){const r=C(e).index;return y(p(4).onMonthSelect(i,r))})("keydown",function(i){const r=C(e).index;return y(p(4).onMonthCellKeydown(i,r))}),_(1),c()}if(2&t){const e=s.$implicit,n=s.index,i=p(4);d("ngClass",Se(2,M_,i.isMonthSelected(n),i.isMonthDisabled(n))),a(1),x(" ",e," ")}}function kB(t,s){if(1&t&&(l(0,"div",56),m(1,MB,2,5,"span",57),c()),2&t){const e=p(3);a(1),d("ngForOf",e.monthPickerValues())}}function EB(t,s){if(1&t){const e=E();l(0,"span",61),v("click",function(i){const r=C(e).$implicit;return y(p(4).onYearSelect(i,r))})("keydown",function(i){const r=C(e).$implicit;return y(p(4).onYearCellKeydown(i,r))}),_(1),c()}if(2&t){const e=s.$implicit,n=p(4);d("ngClass",Se(2,M_,n.isYearSelected(e),n.isYearDisabled(e))),a(1),x(" ",e," ")}}function LB(t,s){if(1&t&&(l(0,"div",59),m(1,EB,2,5,"span",60),c()),2&t){const e=p(3);a(1),d("ngForOf",e.yearPickerValues())}}function RB(t,s){if(1&t&&(Q(0),l(1,"div",20),m(2,DB,11,9,"div",21),c(),m(3,kB,2,1,"div",22),m(4,LB,2,1,"div",23),J()),2&t){const e=p(2);a(2),d("ngForOf",e.months),a(1),d("ngIf","month"===e.currentView),a(1),d("ngIf","year"===e.currentView)}}function OB(t,s){1&t&&D(0,"ChevronUpIcon")}function AB(t,s){}function PB(t,s){1&t&&m(0,AB,0,0,"ng-template")}function FB(t,s){1&t&&(Q(0),_(1,"0"),J())}function NB(t,s){1&t&&D(0,"ChevronDownIcon")}function VB(t,s){}function BB(t,s){1&t&&m(0,VB,0,0,"ng-template")}function HB(t,s){1&t&&D(0,"ChevronUpIcon")}function GB(t,s){}function qB(t,s){1&t&&m(0,GB,0,0,"ng-template")}function zB(t,s){1&t&&(Q(0),_(1,"0"),J())}function UB(t,s){1&t&&D(0,"ChevronDownIcon")}function jB(t,s){}function $B(t,s){1&t&&m(0,jB,0,0,"ng-template")}function WB(t,s){if(1&t&&(l(0,"div",65)(1,"span"),_(2),c()()),2&t){const e=p(3);a(2),S(e.timeSeparator)}}function KB(t,s){1&t&&D(0,"ChevronUpIcon")}function QB(t,s){}function JB(t,s){1&t&&m(0,QB,0,0,"ng-template")}function ZB(t,s){1&t&&(Q(0),_(1,"0"),J())}function YB(t,s){1&t&&D(0,"ChevronDownIcon")}function XB(t,s){}function eH(t,s){1&t&&m(0,XB,0,0,"ng-template")}function tH(t,s){if(1&t){const e=E();l(0,"div",70)(1,"button",64),v("keydown",function(i){return C(e),y(p(3).onContainerButtonKeydown(i))})("keydown.enter",function(i){return C(e),y(p(3).incrementSecond(i))})("keydown.space",function(i){return C(e),y(p(3).incrementSecond(i))})("mousedown",function(i){return C(e),y(p(3).onTimePickerElementMouseDown(i,2,1))})("mouseup",function(i){return C(e),y(p(3).onTimePickerElementMouseUp(i))})("keyup.enter",function(i){return C(e),y(p(3).onTimePickerElementMouseUp(i))})("keyup.space",function(i){return C(e),y(p(3).onTimePickerElementMouseUp(i))})("mouseleave",function(){return C(e),y(p(3).onTimePickerElementMouseLeave())}),m(2,KB,1,0,"ChevronUpIcon",6),m(3,JB,1,0,null,12),c(),l(4,"span"),m(5,ZB,2,0,"ng-container",6),_(6),c(),l(7,"button",64),v("keydown",function(i){return C(e),y(p(3).onContainerButtonKeydown(i))})("keydown.enter",function(i){return C(e),y(p(3).decrementSecond(i))})("keydown.space",function(i){return C(e),y(p(3).decrementSecond(i))})("mousedown",function(i){return C(e),y(p(3).onTimePickerElementMouseDown(i,2,-1))})("mouseup",function(i){return C(e),y(p(3).onTimePickerElementMouseUp(i))})("keyup.enter",function(i){return C(e),y(p(3).onTimePickerElementMouseUp(i))})("keyup.space",function(i){return C(e),y(p(3).onTimePickerElementMouseUp(i))})("mouseleave",function(){return C(e),y(p(3).onTimePickerElementMouseLeave())}),m(8,YB,1,0,"ChevronDownIcon",6),m(9,eH,1,0,null,12),c()()}if(2&t){const e=p(3);a(2),d("ngIf",!e.incrementIconTemplate),a(1),d("ngTemplateOutlet",e.incrementIconTemplate),a(2),d("ngIf",e.currentSecond<10),a(1),S(e.currentSecond),a(2),d("ngIf",!e.decrementIconTemplate),a(1),d("ngTemplateOutlet",e.decrementIconTemplate)}}function nH(t,s){1&t&&D(0,"ChevronUpIcon")}function iH(t,s){}function sH(t,s){1&t&&m(0,iH,0,0,"ng-template")}function oH(t,s){1&t&&D(0,"ChevronDownIcon")}function rH(t,s){}function aH(t,s){1&t&&m(0,rH,0,0,"ng-template")}function lH(t,s){if(1&t){const e=E();l(0,"div",71)(1,"button",72),v("keydown",function(i){return C(e),y(p(3).onContainerButtonKeydown(i))})("click",function(i){return C(e),y(p(3).toggleAMPM(i))})("keydown.enter",function(i){return C(e),y(p(3).toggleAMPM(i))}),m(2,nH,1,0,"ChevronUpIcon",6),m(3,sH,1,0,null,12),c(),l(4,"span"),_(5),c(),l(6,"button",72),v("keydown",function(i){return C(e),y(p(3).onContainerButtonKeydown(i))})("click",function(i){return C(e),y(p(3).toggleAMPM(i))})("keydown.enter",function(i){return C(e),y(p(3).toggleAMPM(i))}),m(7,oH,1,0,"ChevronDownIcon",6),m(8,aH,1,0,null,12),c()()}if(2&t){const e=p(3);a(2),d("ngIf",!e.incrementIconTemplate),a(1),d("ngTemplateOutlet",e.incrementIconTemplate),a(2),S(e.pm?"PM":"AM"),a(2),d("ngIf",!e.decrementIconTemplate),a(1),d("ngTemplateOutlet",e.decrementIconTemplate)}}function cH(t,s){if(1&t){const e=E();l(0,"div",62)(1,"div",63)(2,"button",64),v("keydown",function(i){return C(e),y(p(2).onContainerButtonKeydown(i))})("keydown.enter",function(i){return C(e),y(p(2).incrementHour(i))})("keydown.space",function(i){return C(e),y(p(2).incrementHour(i))})("mousedown",function(i){return C(e),y(p(2).onTimePickerElementMouseDown(i,0,1))})("mouseup",function(i){return C(e),y(p(2).onTimePickerElementMouseUp(i))})("keyup.enter",function(i){return C(e),y(p(2).onTimePickerElementMouseUp(i))})("keyup.space",function(i){return C(e),y(p(2).onTimePickerElementMouseUp(i))})("mouseleave",function(){return C(e),y(p(2).onTimePickerElementMouseLeave())}),m(3,OB,1,0,"ChevronUpIcon",6),m(4,PB,1,0,null,12),c(),l(5,"span"),m(6,FB,2,0,"ng-container",6),_(7),c(),l(8,"button",64),v("keydown",function(i){return C(e),y(p(2).onContainerButtonKeydown(i))})("keydown.enter",function(i){return C(e),y(p(2).decrementHour(i))})("keydown.space",function(i){return C(e),y(p(2).decrementHour(i))})("mousedown",function(i){return C(e),y(p(2).onTimePickerElementMouseDown(i,0,-1))})("mouseup",function(i){return C(e),y(p(2).onTimePickerElementMouseUp(i))})("keyup.enter",function(i){return C(e),y(p(2).onTimePickerElementMouseUp(i))})("keyup.space",function(i){return C(e),y(p(2).onTimePickerElementMouseUp(i))})("mouseleave",function(){return C(e),y(p(2).onTimePickerElementMouseLeave())}),m(9,NB,1,0,"ChevronDownIcon",6),m(10,BB,1,0,null,12),c()(),l(11,"div",65)(12,"span"),_(13),c()(),l(14,"div",66)(15,"button",64),v("keydown",function(i){return C(e),y(p(2).onContainerButtonKeydown(i))})("keydown.enter",function(i){return C(e),y(p(2).incrementMinute(i))})("keydown.space",function(i){return C(e),y(p(2).incrementMinute(i))})("mousedown",function(i){return C(e),y(p(2).onTimePickerElementMouseDown(i,1,1))})("mouseup",function(i){return C(e),y(p(2).onTimePickerElementMouseUp(i))})("keyup.enter",function(i){return C(e),y(p(2).onTimePickerElementMouseUp(i))})("keyup.space",function(i){return C(e),y(p(2).onTimePickerElementMouseUp(i))})("mouseleave",function(){return C(e),y(p(2).onTimePickerElementMouseLeave())}),m(16,HB,1,0,"ChevronUpIcon",6),m(17,qB,1,0,null,12),c(),l(18,"span"),m(19,zB,2,0,"ng-container",6),_(20),c(),l(21,"button",64),v("keydown",function(i){return C(e),y(p(2).onContainerButtonKeydown(i))})("keydown.enter",function(i){return C(e),y(p(2).decrementMinute(i))})("keydown.space",function(i){return C(e),y(p(2).decrementMinute(i))})("mousedown",function(i){return C(e),y(p(2).onTimePickerElementMouseDown(i,1,-1))})("mouseup",function(i){return C(e),y(p(2).onTimePickerElementMouseUp(i))})("keyup.enter",function(i){return C(e),y(p(2).onTimePickerElementMouseUp(i))})("keyup.space",function(i){return C(e),y(p(2).onTimePickerElementMouseUp(i))})("mouseleave",function(){return C(e),y(p(2).onTimePickerElementMouseLeave())}),m(22,UB,1,0,"ChevronDownIcon",6),m(23,$B,1,0,null,12),c()(),m(24,WB,3,1,"div",67),m(25,tH,10,6,"div",68),m(26,lH,9,5,"div",69),c()}if(2&t){const e=p(2);a(3),d("ngIf",!e.incrementIconTemplate),a(1),d("ngTemplateOutlet",e.incrementIconTemplate),a(2),d("ngIf",e.currentHour<10),a(1),S(e.currentHour),a(2),d("ngIf",!e.decrementIconTemplate),a(1),d("ngTemplateOutlet",e.decrementIconTemplate),a(3),S(e.timeSeparator),a(3),d("ngIf",!e.incrementIconTemplate),a(1),d("ngTemplateOutlet",e.incrementIconTemplate),a(2),d("ngIf",e.currentMinute<10),a(1),S(e.currentMinute),a(2),d("ngIf",!e.decrementIconTemplate),a(1),d("ngTemplateOutlet",e.decrementIconTemplate),a(1),d("ngIf",e.showSeconds),a(1),d("ngIf",e.showSeconds),a(1),d("ngIf","12"==e.hourFormat)}}const FI=function(t){return[t]};function uH(t,s){if(1&t){const e=E();l(0,"div",73)(1,"button",74),v("keydown",function(i){return C(e),y(p(2).onContainerButtonKeydown(i))})("click",function(i){return C(e),y(p(2).onTodayButtonClick(i))}),c(),l(2,"button",74),v("keydown",function(i){return C(e),y(p(2).onContainerButtonKeydown(i))})("click",function(i){return C(e),y(p(2).onClearButtonClick(i))}),c()()}if(2&t){const e=p(2);a(1),d("label",e.getTranslation("today"))("ngClass",W(4,FI,e.todayButtonStyleClass)),a(1),d("label",e.getTranslation("clear"))("ngClass",W(6,FI,e.clearButtonStyleClass))}}function dH(t,s){1&t&&Z(0)}const pH=function(t,s,e,n,i,o){return{"p-datepicker p-component":!0,"p-datepicker-inline":t,"p-disabled":s,"p-datepicker-timeonly":e,"p-datepicker-multiple-month":n,"p-datepicker-monthpicker":i,"p-datepicker-touch-ui":o}},NI=function(t,s){return{showTransitionParams:t,hideTransitionParams:s}},hH=function(t){return{value:"visibleTouchUI",params:t}},mH=function(t){return{value:"visible",params:t}};function fH(t,s){if(1&t){const e=E();l(0,"div",16,17),v("@overlayAnimation.start",function(i){return C(e),y(p().onOverlayAnimationStart(i))})("@overlayAnimation.done",function(i){return C(e),y(p().onOverlayAnimationDone(i))})("click",function(i){return C(e),y(p().onOverlayClick(i))}),xt(2),m(3,XV,1,0,"ng-container",12),m(4,RB,5,3,"ng-container",6),m(5,cH,27,16,"div",18),m(6,uH,3,8,"div",19),xt(7,1),m(8,dH,1,0,"ng-container",12),c()}if(2&t){const e=p();se(e.panelStyleClass),d("ngStyle",e.panelStyle)("ngClass",As(11,pH,e.inline,e.disabled,e.timeOnly,e.numberOfMonths>1,"month"===e.view,e.touchUI))("@overlayAnimation",e.touchUI?W(21,hH,Se(18,NI,e.showTransitionOptions,e.hideTransitionOptions)):W(26,mH,Se(23,NI,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0===e.inline),a(3),d("ngTemplateOutlet",e.headerTemplate),a(1),d("ngIf",!e.timeOnly),a(1),d("ngIf",(e.showTime||e.timeOnly)&&"date"===e.currentView),a(1),d("ngIf",e.showButtonBar),a(2),d("ngTemplateOutlet",e.footerTemplate)}}const gH=[[["p-header"]],[["p-footer"]]],_H=function(t,s,e,n){return{"p-calendar":!0,"p-calendar-w-btn":t,"p-calendar-timeonly":s,"p-calendar-disabled":e,"p-focus":n}},bH=["p-header","p-footer"],vH={provide:dn,useExisting:Ze(()=>Zo),multi:!0};let Zo=(()=>{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 n=e.split(":"),i=parseInt(n[0]),o=parseInt(n[1]);this.populateYearOptions(i,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 n=e||new Date;this.currentMonth=n.getMonth(),this.currentYear=n.getFullYear(),this.initTime(n),this.createMonths(this.currentMonth,this.currentYear)}}onFocus=new q;onBlur=new q;onClose=new q;onSelect=new q;onClear=new q;onInput=new q;onTodayClick=new q;onClearClick=new q;onMonthChange=new q;onYearChange=new q;onClickOutside=new q;onShow=new q;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,n,i,o,r,u,h){this.document=e,this.el=n,this.renderer=i,this.cd=o,this.zone=r,this.config=u,this.overlayService=h,this.window=this.document.defaultView}ngOnInit(){this.attributeSelector=Ft();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=R.getOuterWidth(this.containerViewChild?.nativeElement)+"px")))}getTranslation(e){return this.config.getTranslation(e)}populateYearOptions(e,n){this.yearOptions=[];for(let i=e;i<=n;i++)this.yearOptions.push(i)}createWeekDays(){this.weekDays=[];let e=this.getFirstDateOfWeek(),n=this.getTranslation(jt.DAY_NAMES_MIN);for(let i=0;i<7;i++)this.weekDays.push(n[e]),e=6==e?0:++e}monthPickerValues(){let e=[];for(let n=0;n<=11;n++)e.push(this.config.getTranslation("monthNamesShort")[n]);return e}yearPickerValues(){let e=[],n=this.currentYear-this.currentYear%10;for(let i=0;i<10;i++)e.push(n+i);return e}createMonths(e,n){this.months=this.months=[];for(let i=0;i11&&(o=o%11-1,r=n+1),this.months.push(this.createMonth(o,r))}}getWeekNumber(e){let n=new Date(e.getTime());n.setDate(n.getDate()+4-(n.getDay()||7));let i=n.getTime();return n.setMonth(0),n.setDate(1),Math.floor(Math.round((i-n.getTime())/864e5)/7)+1}createMonth(e,n){let i=[],o=this.getFirstDayOfMonthIndex(e,n),r=this.getDaysCountInMonth(e,n),u=this.getDaysCountInPrevMonth(e,n),h=1,b=new Date,T=[],w=Math.ceil((r+o)/7);for(let k=0;kr){let A=this.getNextMonthAndYear(e,n);L.push({day:h-r,month:A.month,year:A.year,otherMonth:!0,today:this.isToday(b,h-r,A.month,A.year),selectable:this.isSelectable(h-r,A.month,A.year,!0)})}else L.push({day:h,month:e,year:n,today:this.isToday(b,h,e,n),selectable:this.isSelectable(h,e,n,!1)});h++}this.showWeek&&T.push(this.getWeekNumber(new Date(L[0].year,L[0].month,L[0].day))),i.push(L)}return{month:e,year:n,dates:i,weekNumbers:T}}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 n=e[e.length-1]-e[0];this.populateYearOptions(e[0]+n,e[e.length-1]+n)}}switchToMonthView(e){this.setCurrentView("month"),e.preventDefault()}switchToYearView(e){this.setCurrentView("year"),e.preventDefault()}onDateSelect(e,n){!this.disabled&&n.selectable?(this.isMultipleSelection()&&this.isSelected(n)?(this.value=this.value.filter((i,o)=>!this.isDateEquals(i,n)),0===this.value.length&&(this.value=null),this.updateModel(this.value)):this.shouldSelectDate(n)&&this.selectDate(n),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,n){"month"===this.view?this.onDateSelect(e,{year:this.currentYear,month:n,day:1,selectable:!0}):(this.currentMonth=n,this.createMonths(this.currentMonth,this.currentYear),this.setCurrentView("date"),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}))}onYearSelect(e,n){"year"===this.view?this.onDateSelect(e,{year:n,month:0,day:1,selectable:!0}):(this.currentYear=n,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 n=0;n11,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 n=new Date(e.year,e.month,e.day);if(this.showTime&&(n.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),n.setMinutes(this.currentMinute),n.setSeconds(this.currentSecond)),this.minDate&&this.minDate>n&&(n=this.minDate,this.setCurrentHourPM(n.getHours()),this.currentMinute=n.getMinutes(),this.currentSecond=n.getSeconds()),this.maxDate&&this.maxDate=i.getTime()?o=n:(i=n,o=null),this.updateModel([i,o])}else this.updateModel([n,null]);this.onSelect.emit(n)}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 n=null;Array.isArray(this.value)&&(n=this.value.map(i=>this.formatDateTime(i))),this.onModelChange(n)}}getFirstDayOfMonthIndex(e,n){let i=new Date;i.setDate(1),i.setMonth(e),i.setFullYear(n);let o=i.getDay()+this.getSundayIndex();return o>=7?o-7:o}getDaysCountInMonth(e,n){return 32-this.daylightSavingAdjust(new Date(n,e,32)).getDate()}getDaysCountInPrevMonth(e,n){let i=this.getPreviousMonthAndYear(e,n);return this.getDaysCountInMonth(i.month,i.year)}getPreviousMonthAndYear(e,n){let i,o;return 0===e?(i=11,o=n-1):(i=e-1,o=n),{month:i,year:o}}getNextMonthAndYear(e,n){let i,o;return 11===e?(i=0,o=n+1):(i=e+1,o=n),{month:i,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 n=!1;for(let i of this.value)if(n=this.isDateEquals(i,e),n)break;return n}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[n,i]=this.isRangeSelection()?this.value:[this.value,this.value],o=new Date(this.currentYear,e,1);return o>=n&&o<=(i??n)}return!1}isMonthDisabled(e){for(let n=1;n=r.getTime()}return!1}isSingleSelection(){return"single"===this.selectionMode}isRangeSelection(){return"range"===this.selectionMode}isMultipleSelection(){return"multiple"===this.selectionMode}isToday(e,n,i,o){return e.getDate()===n&&e.getMonth()===i&&e.getFullYear()===o}isSelectable(e,n,i,o){let r=!0,u=!0,h=!0,b=!0;return!(o&&!this.selectOtherMonths)&&(this.minDate&&(this.minDate.getFullYear()>i||this.minDate.getFullYear()===i&&(this.minDate.getMonth()>n||this.minDate.getMonth()===n&&this.minDate.getDate()>e))&&(r=!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&&(R.getFocusableElements(this.contentViewChild.nativeElement).forEach(n=>n.tabIndex="-1"),this.overlayVisible&&(this.overlayVisible=!1))}onDateCellKeydown(e,n,i){const o=e.currentTarget,r=o.parentElement;switch(e.which){case 40:{o.tabIndex="-1";let u=R.index(r),h=r.parentElement.nextElementSibling;h?R.hasClass(h.children[u].children[0],"p-disabled")?(this.navigationState={backward:!1},this.navForward(e)):(h.children[u].children[0].tabIndex="0",h.children[u].children[0].focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 38:{o.tabIndex="-1";let u=R.index(r),h=r.parentElement.previousElementSibling;if(h){let b=h.children[u].children[0];R.hasClass(b,"p-disabled")?(this.navigationState={backward:!0},this.navBackward(e)):(b.tabIndex="0",b.focus())}else this.navigationState={backward:!0},this.navBackward(e);e.preventDefault();break}case 37:{o.tabIndex="-1";let u=r.previousElementSibling;if(u){let h=u.children[0];R.hasClass(h,"p-disabled")||R.hasClass(h.parentElement,"p-datepicker-weeknumber")?this.navigateToMonth(!0,i):(h.tabIndex="0",h.focus())}else this.navigateToMonth(!0,i);e.preventDefault();break}case 39:{o.tabIndex="-1";let u=r.nextElementSibling;if(u){let h=u.children[0];R.hasClass(h,"p-disabled")?this.navigateToMonth(!1,i):(h.tabIndex="0",h.focus())}else this.navigateToMonth(!1,i);e.preventDefault();break}case 13:case 32:this.onDateSelect(e,n),e.preventDefault();break;case 27:this.overlayVisible=!1,e.preventDefault();break;case 9:this.inline||this.trapFocus(e)}}onMonthCellKeydown(e,n){const i=e.currentTarget;switch(e.which){case 38:case 40:{i.tabIndex="-1";var o=i.parentElement.children,r=R.index(i);let u=o[40===e.which?r+3:r-3];u&&(u.tabIndex="0",u.focus()),e.preventDefault();break}case 37:{i.tabIndex="-1";let u=i.previousElementSibling;u?(u.tabIndex="0",u.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case 39:{i.tabIndex="-1";let u=i.nextElementSibling;u?(u.tabIndex="0",u.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 13:case 32:this.onMonthSelect(e,n),e.preventDefault();break;case 27:this.overlayVisible=!1,e.preventDefault();break;case 9:this.inline||this.trapFocus(e)}}onYearCellKeydown(e,n){const i=e.currentTarget;switch(e.which){case 38:case 40:{i.tabIndex="-1";var o=i.parentElement.children,r=R.index(i);let u=o[40===e.which?r+2:r-2];u&&(u.tabIndex="0",u.focus()),e.preventDefault();break}case 37:{i.tabIndex="-1";let u=i.previousElementSibling;u?(u.tabIndex="0",u.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case 39:{i.tabIndex="-1";let u=i.nextElementSibling;u?(u.tabIndex="0",u.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 13:case 32:this.onYearSelect(e,n),e.preventDefault();break;case 27:this.overlayVisible=!1,e.preventDefault();break;case 9:this.trapFocus(e)}}navigateToMonth(e,n){if(e)if(1===this.numberOfMonths||0===n)this.navigationState={backward:!0},this.navBackward(event);else{let o=R.find(this.contentViewChild.nativeElement.children[n-1],".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),r=o[o.length-1];r.tabIndex="0",r.focus()}else if(1===this.numberOfMonths||n===this.numberOfMonths-1)this.navigationState={backward:!1},this.navForward(event);else{let o=R.findSingle(this.contentViewChild.nativeElement.children[n+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?R.findSingle(this.contentViewChild.nativeElement,".p-datepicker-prev").focus():R.findSingle(this.contentViewChild.nativeElement,".p-datepicker-next").focus();else{if(this.navigationState.backward){let n;n=R.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)"),n&&n.length>0&&(e=n[n.length-1])}else e=R.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 n;if("month"===this.currentView){let i=R.find(e,".p-monthpicker .p-monthpicker-month:not(.p-disabled)"),o=R.findSingle(e,".p-monthpicker .p-monthpicker-month.p-highlight");i.forEach(r=>r.tabIndex=-1),n=o||i[0],0===i.length&&R.find(e,'.p-monthpicker .p-monthpicker-month.p-disabled[tabindex = "0"]').forEach(u=>u.tabIndex=-1)}else if("year"===this.currentView){let i=R.find(e,".p-yearpicker .p-yearpicker-year:not(.p-disabled)"),o=R.findSingle(e,".p-yearpicker .p-yearpicker-year.p-highlight");i.forEach(r=>r.tabIndex=-1),n=o||i[0],0===i.length&&R.find(e,'.p-yearpicker .p-yearpicker-year.p-disabled[tabindex = "0"]').forEach(u=>u.tabIndex=-1)}else if(n=R.findSingle(e,"span.p-highlight"),!n){let i=R.findSingle(e,"td.p-datepicker-today span:not(.p-disabled):not(.p-ink)");n=i||R.findSingle(e,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)")}n&&(n.tabIndex="0",!this.preventFocus&&(!this.navigationState||!this.navigationState.button)&&setTimeout(()=>{this.disabled||n.focus()},1),this.preventFocus=!1)}trapFocus(e){let n=R.getFocusableElements(this.contentViewChild.nativeElement);if(n&&n.length>0)if(n[0].ownerDocument.activeElement){let i=n.indexOf(n[0].ownerDocument.activeElement);if(e.shiftKey)if(-1==i||0===i)if(this.focusTrap)n[n.length-1].focus();else{if(-1===i)return this.hideOverlay();if(0===i)return}else n[i-1].focus();else if(-1==i||i===n.length-1){if(!this.focusTrap&&-1!=i)return this.hideOverlay();n[0].focus()}else n[i+1].focus()}else n[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,n){return"12"==this.hourFormat?12===e?n?12:0:n?e+12:e:e};validateTime(e,n,i,o){let r=this.value;const u=this.convertTo24Hour(e,o);this.isRangeSelection()&&(r=this.value[1]||this.value[0]),this.isMultipleSelection()&&(r=this.value[this.value.length-1]);const h=r?r.toDateString():null;return!(this.minDate&&h&&this.minDate.toDateString()===h&&(this.minDate.getHours()>u||this.minDate.getHours()===u&&(this.minDate.getMinutes()>n||this.minDate.getMinutes()===n&&this.minDate.getSeconds()>i))||this.maxDate&&h&&this.maxDate.toDateString()===h&&(this.maxDate.getHours()=24?i-24:i:"12"==this.hourFormat&&(this.currentHour<12&&i>11&&(o=!this.pm),i=i>=13?i-12:i),this.validateTime(i,this.currentMinute,this.currentSecond,o)&&(this.currentHour=i,this.pm=o),e.preventDefault()}onTimePickerElementMouseDown(e,n,i){this.disabled||(this.repeat(e,null,n,i),e.preventDefault())}onTimePickerElementMouseUp(e){this.disabled||(this.clearTimePickerTimer(),this.updateTime())}onTimePickerElementMouseLeave(){!this.disabled&&this.timePickerTimer&&(this.clearTimePickerTimer(),this.updateTime())}repeat(e,n,i,o){let r=n||500;switch(this.clearTimePickerTimer(),this.timePickerTimer=setTimeout(()=>{this.repeat(e,100,i,o),this.cd.markForCheck()},r),i){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 n=this.currentHour-this.stepHour,i=this.pm;"24"==this.hourFormat?n=n<0?24+n:n:"12"==this.hourFormat&&(12===this.currentHour&&(i=!this.pm),n=n<=0?12+n:n),this.validateTime(n,this.currentMinute,this.currentSecond,i)&&(this.currentHour=n,this.pm=i),e.preventDefault()}incrementMinute(e){let n=this.currentMinute+this.stepMinute;n=n>59?n-60:n,this.validateTime(this.currentHour,n,this.currentSecond,this.pm)&&(this.currentMinute=n),e.preventDefault()}decrementMinute(e){let n=this.currentMinute-this.stepMinute;n=n<0?60+n:n,this.validateTime(this.currentHour,n,this.currentSecond,this.pm)&&(this.currentMinute=n),e.preventDefault()}incrementSecond(e){let n=this.currentSecond+this.stepSecond;n=n>59?n-60:n,this.validateTime(this.currentHour,this.currentMinute,n,this.pm)&&(this.currentSecond=n),e.preventDefault()}decrementSecond(e){let n=this.currentSecond-this.stepSecond;n=n<0?60+n:n,this.validateTime(this.currentHour,this.currentMinute,n,this.pm)&&(this.currentSecond=n),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 n=!this.pm;this.validateTime(this.currentHour,this.currentMinute,this.currentSecond,n)&&(this.pm=n,this.updateTime()),e.preventDefault()}onUserInput(e){if(!this.isKeydown)return;this.isKeydown=!1;let n=e.target.value;try{let i=this.parseValueFromString(n);this.isValidSelection(i)?(this.updateModel(i),this.updateUI()):this.keepInvalid&&this.updateModel(i)}catch{this.updateModel(this.keepInvalid?n:null)}this.filled=null!=n&&n.length,this.onInput.emit(e)}isValidSelection(e){let n=!0;return this.isSingleSelection()?this.isSelectable(e.getDate(),e.getMonth(),e.getFullYear(),!1)||(n=!1):e.every(i=>this.isSelectable(i.getDate(),i.getMonth(),i.getFullYear(),!1))&&this.isRangeSelection()&&(n=e.length>1&&e[1]>e[0]),n}parseValueFromString(e){if(!e||0===e.trim().length)return null;let n;if(this.isSingleSelection())n=this.parseDateTime(e);else if(this.isMultipleSelection()){let i=e.split(this.multipleSeparator);n=[];for(let o of i)n.push(this.parseDateTime(o.trim()))}else if(this.isRangeSelection()){let i=e.split(" "+this.rangeSeparator+" ");n=[];for(let o=0;o{this.disableModality()}),this.renderer.appendChild(this.document.body,this.mask),R.addClass(this.document.body,"p-overflow-hidden"),this.document.body.style.setProperty("--scrollbar-width",R.calculateScrollbarWidth()+"px"))}disableModality(){this.mask&&(R.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 n,e=this.document.body.children;for(let i=0;i{const w=i+1{let L=""+w;if(o(T))for(;L.lengtho(T)?L[w]:k[w];let h="",b=!1;if(e)for(i=0;i11&&12!=i&&(i-=12),n+="12"==this.hourFormat&&0===i?12:i<10?"0"+i:i,n+=":",n+=o<10?"0"+o:o,this.showSeconds&&(n+=":",n+=r<10?"0"+r:r),"12"==this.hourFormat&&(n+=e.getHours()>11?" PM":" AM"),n}parseTime(e){let n=e.split(":");if(n.length!==(this.showSeconds?3:2))throw"Invalid time";let o=parseInt(n[0]),r=parseInt(n[1]),u=this.showSeconds?parseInt(n[2]):null;if(isNaN(o)||isNaN(r)||o>23||r>59||"12"==this.hourFormat&&o>12||this.showSeconds&&(isNaN(u)||u>59))throw"Invalid time";return"12"==this.hourFormat&&(12!==o&&this.pm?o+=12:!this.pm&&12===o&&(o-=12)),{hour:o,minute:r,second:u}}parseDate(e,n){if(null==n||null==e)throw"Invalid arguments";if(""===(e="object"==typeof e?e.toString():e+""))return null;let i,o,r,O,u=0,h="string"!=typeof this.shortYearCutoff?this.shortYearCutoff:(new Date).getFullYear()%100+parseInt(this.shortYearCutoff,10),b=-1,T=-1,w=-1,k=-1,L=!1,A=ee=>{let oe=i+1{let oe=A(ee),be="@"===ee?14:"!"===ee?20:"y"===ee&&oe?4:"o"===ee?3:2,Ct=new RegExp("^\\d{"+("y"===ee?be:1)+","+be+"}"),Lt=e.substring(u).match(Ct);if(!Lt)throw"Missing number at position "+u;return u+=Lt[0].length,parseInt(Lt[0],10)},z=(ee,oe,be)=>{let Je=-1,Ct=A(ee)?be:oe,Lt=[];for(let qt=0;qt-(qt[1].length-Rn[1].length));for(let qt=0;qt{if(e.charAt(u)!==n.charAt(i))throw"Unexpected literal at position "+u;u++};for("month"===this.view&&(w=1),i=0;i-1)for(T=1,w=k;o=this.getDaysCountInMonth(b,T-1),!(w<=o);)T++,w-=o;if("year"===this.view&&(T=-1===T?1:T,w=-1===w?1:w),O=this.daylightSavingAdjust(new Date(b,T-1,w)),O.getFullYear()!==b||O.getMonth()+1!==T||O.getDate()!==w)throw"Invalid date";return O}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 n=new Date,i={day:n.getDate(),month:n.getMonth(),year:n.getFullYear(),otherMonth:n.getMonth()!==this.currentMonth||n.getFullYear()!==this.currentYear,today:!0,selectable:!0};this.onDateSelect(e,i),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 n=[...this.responsiveOptions].filter(i=>!(!i.breakpoint||!i.numMonths)).sort((i,o)=>-1*i.breakpoint.localeCompare(o.breakpoint,void 0,{numeric:!0}));for(let i=0;i{this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:this.document,"mousedown",n=>{this.isOutsideClicked(n)&&this.overlayVisible&&this.zone.run(()=>{this.hideOverlay(),this.onClickOutside.emit(n),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 Jo(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 R.hasClass(e.target,"p-datepicker-prev")||R.hasClass(e.target,"p-datepicker-prev-icon")||R.hasClass(e.target,"p-datepicker-next")||R.hasClass(e.target,"p-datepicker-next-icon")}onWindowResize(){this.overlayVisible&&!R.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&&Et.clear(this.overlay),this.destroyResponsiveStyleElement(),this.clearTimePickerTimer(),this.restoreOverlayAppend(),this.onOverlayHide()}static \u0275fac=function(n){return new(n||t)(M(ct),M(Pe),M(Vt),M(rt),M(je),M(Hn),M(po))};static \u0275cmp=U({type:t,selectors:[["p-calendar"]],contentQueries:function(n,i,o){if(1&n&&Ye(o,ae,4),2&n){let r;H(r=G())&&(i.templates=r)}},viewQuery:function(n,i){if(1&n&&(K(VV,5),K(BV,5),K(HV,5)),2&n){let o;H(o=G())&&(i.containerViewChild=o.first),H(o=G())&&(i.inputfieldViewChild=o.first),H(o=G())&&(i.content=o.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(n,i){2&n&&Jn("p-inputwrapper-filled",i.filled)("p-inputwrapper-focus",i.focus)("p-calendar-clearable",i.showClear&&!i.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:[Qe([vH])],ngContentSelectors:bH,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(n,i){1&n&&(_n(gH),l(0,"span",0,1),m(2,YV,4,17,"ng-template",2),m(3,fH,9,28,"div",3),c()),2&n&&(se(i.styleClass),d("ngClass",Li(6,_H,i.showIcon,i.timeOnly,i.disabled,i.focus))("ngStyle",i.style),a(2),d("ngIf",!i.inline),a(1),d("ngIf",i.inline||i.overlayVisible))},dependencies:function(){return[Fe,ut,ne,dt,nt,Sn,bt,mp,ha,AI,ho,xn,PI]},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:[Ji("overlayAnimation",[qs("visibleTouchUI",Tt({transform:"translate(-50%,-50%)",opacity:1})),Yt("void => visible",[Tt({opacity:0,transform:"scaleY(0.8)"}),Ut("{{showTransitionParams}}",Tt({opacity:1,transform:"*"}))]),Yt("visible => void",[Ut("{{hideTransitionParams}}",Tt({opacity:0}))]),Yt("void => visibleTouchUI",[Tt({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}),Ut("{{showTransitionParams}}")]),Yt("visibleTouchUI => void",[Ut("{{hideTransitionParams}}",Tt({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}))])])]},changeDetection:0})}return t})(),VI=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=me({imports:[Ne,nc,ze,Cn,mp,ha,AI,ho,xn,PI,nc,ze]})}return t})();function CH(t,s){1&t&&Z(0)}function yH(t,s){if(1&t&&(l(0,"div",8),xt(1,1),m(2,CH,1,0,"ng-container",6),c()),2&t){const e=p();a(2),d("ngTemplateOutlet",e.headerTemplate)}}function TH(t,s){1&t&&Z(0)}function wH(t,s){if(1&t&&(l(0,"div",9),_(1),m(2,TH,1,0,"ng-container",6),c()),2&t){const e=p();a(1),x(" ",e.header," "),a(1),d("ngTemplateOutlet",e.titleTemplate)}}function IH(t,s){1&t&&Z(0)}function SH(t,s){if(1&t&&(l(0,"div",10),_(1),m(2,IH,1,0,"ng-container",6),c()),2&t){const e=p();a(1),x(" ",e.subheader," "),a(1),d("ngTemplateOutlet",e.subtitleTemplate)}}function xH(t,s){1&t&&Z(0)}function DH(t,s){1&t&&Z(0)}function MH(t,s){if(1&t&&(l(0,"div",11),xt(1,2),m(2,DH,1,0,"ng-container",6),c()),2&t){const e=p();a(2),d("ngTemplateOutlet",e.footerTemplate)}}const kH=["*",[["p-header"]],[["p-footer"]]],EH=["*","p-header","p-footer"];let Ge=(()=>{class t{el;header;subheader;style;styleClass;headerFacet;footerFacet;templates;headerTemplate;titleTemplate;subtitleTemplate;contentTemplate;footerTemplate;constructor(e){this.el=e}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"title":this.titleTemplate=e.template;break;case"subtitle":this.subtitleTemplate=e.template;break;case"content":default:this.contentTemplate=e.template;break;case"footer":this.footerTemplate=e.template}})}getBlockableElement(){return this.el.nativeElement.children[0]}static \u0275fac=function(n){return new(n||t)(M(Pe))};static \u0275cmp=U({type:t,selectors:[["p-card"]],contentQueries:function(n,i,o){if(1&n&&(Ye(o,pa,5),Ye(o,tc,5),Ye(o,ae,4)),2&n){let r;H(r=G())&&(i.headerFacet=r.first),H(r=G())&&(i.footerFacet=r.first),H(r=G())&&(i.templates=r)}},hostAttrs:[1,"p-element"],inputs:{header:"header",subheader:"subheader",style:"style",styleClass:"styleClass"},ngContentSelectors:EH,decls:9,vars:10,consts:[[3,"ngClass","ngStyle"],["class","p-card-header",4,"ngIf"],[1,"p-card-body"],["class","p-card-title",4,"ngIf"],["class","p-card-subtitle",4,"ngIf"],[1,"p-card-content"],[4,"ngTemplateOutlet"],["class","p-card-footer",4,"ngIf"],[1,"p-card-header"],[1,"p-card-title"],[1,"p-card-subtitle"],[1,"p-card-footer"]],template:function(n,i){1&n&&(_n(kH),l(0,"div",0),m(1,yH,3,1,"div",1),l(2,"div",2),m(3,wH,3,2,"div",3),m(4,SH,3,2,"div",4),l(5,"div",5),xt(6),m(7,xH,1,0,"ng-container",6),c(),m(8,MH,3,1,"div",7),c()()),2&n&&(se(i.styleClass),d("ngClass","p-card p-component")("ngStyle",i.style),F("data-pc-name","card"),a(1),d("ngIf",i.headerFacet||i.headerTemplate),a(2),d("ngIf",i.header||i.titleTemplate),a(1),d("ngIf",i.subheader||i.subtitleTemplate),a(3),d("ngTemplateOutlet",i.contentTemplate),a(1),d("ngIf",i.footerFacet||i.footerTemplate))},dependencies:[Fe,ne,dt,nt],styles:["@layer primeng{.p-card-header img{width:100%}}\n"],encapsulation:2,changeDetection:0})}return t})(),LH=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=me({imports:[Ne,ze]})}return t})(),Gn=(()=>{class t extends _t{static \u0275fac=function(){let e;return function(i){return(e||(e=we(t)))(i||t)}}();static \u0275cmp=U({type:t,selectors:[["CheckIcon"]],standalone:!0,features:[_e,ot],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(n,i){1&n&&(lt(),l(0,"svg",0),D(1,"path",1),c()),2&n&&(se(i.getClassNames()),F("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role))},encapsulation:2})}return t})();const RH=["cb"];function OH(t,s){1&t&&D(0,"span",10),2&t&&d("ngClass",p(3).checkboxIcon)}function AH(t,s){1&t&&D(0,"CheckIcon",11),2&t&&d("styleClass","p-checkbox-icon")}function PH(t,s){if(1&t&&(Q(0),m(1,OH,1,1,"span",8),m(2,AH,1,1,"CheckIcon",9),J()),2&t){const e=p(2);a(1),d("ngIf",e.checkboxIcon),a(1),d("ngIf",!e.checkboxIcon)}}function FH(t,s){}function NH(t,s){1&t&&m(0,FH,0,0,"ng-template")}function VH(t,s){if(1&t&&(l(0,"span",12),m(1,NH,1,0,null,13),c()),2&t){const e=p(2);a(1),d("ngTemplateOutlet",e.checkboxIconTemplate)}}function BH(t,s){if(1&t&&(Q(0),m(1,PH,3,2,"ng-container",5),m(2,VH,2,1,"span",7),J()),2&t){const e=p();a(1),d("ngIf",!e.checkboxIconTemplate),a(1),d("ngIf",e.checkboxIconTemplate)}}const HH=function(t,s,e){return{"p-checkbox-label":!0,"p-checkbox-label-active":t,"p-disabled":s,"p-checkbox-label-focus":e}};function GH(t,s){if(1&t){const e=E();l(0,"label",14),v("click",function(i){C(e);const o=p(),r=B(3);return y(o.onClick(i,r,!0))}),_(1),c()}if(2&t){const e=p();se(e.labelStyleClass),d("ngClass",Bt(5,HH,e.checked(),e.disabled,e.focused)),F("for",e.inputId),a(1),S(e.label)}}const qH=function(t,s,e){return{"p-checkbox p-component":!0,"p-checkbox-checked":t,"p-checkbox-disabled":s,"p-checkbox-focused":e}},zH=function(t,s,e){return{"p-highlight":t,"p-disabled":s,"p-focus":e}},UH={provide:dn,useExisting:Ze(()=>ln),multi:!0};let ln=(()=>{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 q;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,n,i){e.preventDefault(),!this.disabled&&!this.readonly&&(this.updateModel(e),i&&n.focus())}updateModel(e){let n;this.binary?(n=this.checked()?this.falseValue:this.trueValue,this.model=n,this.onModelChange(n)):(n=this.checked()?this.model.filter(i=>!Y.equals(i,this.value)):this.model?[...this.model,this.value]:[this.value],this.onModelChange(n),this.model=n,this.formControl&&this.formControl.setValue(n)),this.onChange.emit({checked:n,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:Y.contains(this.value,this.model)}static \u0275fac=function(n){return new(n||t)(M(rt))};static \u0275cmp=U({type:t,selectors:[["p-checkbox"]],contentQueries:function(n,i,o){if(1&n&&Ye(o,ae,4),2&n){let r;H(r=G())&&(i.templates=r)}},viewQuery:function(n,i){if(1&n&&K(RH,5),2&n){let o;H(o=G())&&(i.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:[Qe([UH])],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(n,i){if(1&n){const o=E();l(0,"div",0)(1,"div",1)(2,"input",2,3),v("focus",function(){return i.onFocus()})("blur",function(){return i.onBlur()})("change",function(u){return i.handleChange(u)}),c()(),l(4,"div",4),v("click",function(u){C(o);const h=B(3);return y(i.onClick(u,h,!0))}),m(5,BH,3,2,"ng-container",5),c()(),m(6,GH,2,9,"label",6)}2&n&&(se(i.styleClass),d("ngStyle",i.style)("ngClass",Bt(18,qH,i.checked(),i.disabled,i.focused)),a(2),d("readonly",i.readonly)("value",i.value)("checked",i.checked())("disabled",i.disabled),F("id",i.inputId)("name",i.name)("tabindex",i.tabindex)("aria-labelledby",i.ariaLabelledBy)("aria-label",i.ariaLabel)("aria-checked",i.checked())("required",i.required),a(2),d("ngClass",Bt(22,zH,i.checked(),i.disabled,i.focused)),a(1),d("ngIf",i.checked()),a(1),d("ngIf",i.label))},dependencies:function(){return[Fe,ne,dt,nt,Gn]},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})(),jH=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=me({imports:[Ne,Gn,ze]})}return t})(),$H=(()=>{class t{host;constructor(e){this.host=e}autofocus;focused=!1;ngAfterContentChecked(){if(!this.focused&&this.autofocus){const e=R.getFocusableElements(this.host.nativeElement);0===e.length&&this.host.nativeElement.focus(),e.length>0&&e[0].focus(),this.focused=!0}}static \u0275fac=function(n){return new(n||t)(M(Pe))};static \u0275dir=fe({type:t,selectors:[["","pAutoFocus",""]],hostAttrs:[1,"p-element"],inputs:{autofocus:"autofocus"}})}return t})(),WH=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=me({imports:[Ne]})}return t})();const KH=["overlay"],QH=["content"];function JH(t,s){1&t&&Z(0)}const ZH=function(t,s,e){return{showTransitionParams:t,hideTransitionParams:s,transform:e}},YH=function(t){return{value:"visible",params:t}},XH=function(t){return{mode:t}},eG=function(t){return{$implicit:t}};function tG(t,s){if(1&t){const e=E();l(0,"div",1,3),v("click",function(i){return C(e),y(p(2).onOverlayContentClick(i))})("@overlayContentAnimation.start",function(i){return C(e),y(p(2).onOverlayContentAnimationStart(i))})("@overlayContentAnimation.done",function(i){return C(e),y(p(2).onOverlayContentAnimationDone(i))}),xt(2),m(3,JH,1,0,"ng-container",4),c()}if(2&t){const e=p(2);se(e.contentStyleClass),d("ngStyle",e.contentStyle)("ngClass","p-overlay-content")("@overlayContentAnimation",W(11,YH,Bt(7,ZH,e.showTransitionOptions,e.hideTransitionOptions,e.transformOptions[e.modal?e.overlayResponsiveDirection:"default"]))),a(3),d("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",W(15,eG,W(13,XH,e.overlayMode)))}}const nG=function(t,s,e,n,i,o,r,u,h,b,T,w,k,L){return{"p-overlay p-component":!0,"p-overlay-modal p-component-overlay p-component-overlay-enter":t,"p-overlay-center":s,"p-overlay-top":e,"p-overlay-top-start":n,"p-overlay-top-end":i,"p-overlay-bottom":o,"p-overlay-bottom-start":r,"p-overlay-bottom-end":u,"p-overlay-left":h,"p-overlay-left-start":b,"p-overlay-left-end":T,"p-overlay-right":w,"p-overlay-right-start":k,"p-overlay-right-end":L}};function iG(t,s){if(1&t){const e=E();l(0,"div",1,2),v("click",function(i){return C(e),y(p().onOverlayClick(i))}),m(2,tG,4,17,"div",0),c()}if(2&t){const e=p();se(e.styleClass),d("ngStyle",e.style)("ngClass",rd(5,nG,[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])),a(2),d("ngIf",e.visible)}}const sG=["*"],oG={provide:dn,useExisting:Ze(()=>k_),multi:!0},rG=ua([Tt({transform:"{{transform}}",opacity:0}),Ut("{{showTransitionParams}}")]),aG=ua([Ut("{{hideTransitionParams}}",Tt({transform:"{{transform}}",opacity:0}))]);let k_=(()=>{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 Y.merge(this._style,this.modal?this.overlayResponsiveOptions?.style:this.overlayOptions?.style)}set style(e){this._style=e}get styleClass(){return Y.merge(this._styleClass,this.modal?this.overlayResponsiveOptions?.styleClass:this.overlayOptions?.styleClass)}set styleClass(e){this._styleClass=e}get contentStyle(){return Y.merge(this._contentStyle,this.modal?this.overlayResponsiveOptions?.contentStyle:this.overlayOptions?.contentStyle)}set contentStyle(e){this._contentStyle=e}get contentStyleClass(){return Y.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 q;onBeforeShow=new q;onShow=new q;onBeforeHide=new q;onHide=new q;onAnimationStart=new q;onAnimationDone=new q;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(vn(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 R.getTargetElement(this.target,this.el?.nativeElement)}constructor(e,n,i,o,r,u,h){this.document=e,this.platformId=n,this.el=i,this.renderer=o,this.config=r,this.overlayService=u,this.zone=h,this.window=this.document.defaultView}ngAfterContentInit(){this.templates?.forEach(e=>{e.getType(),this.contentTemplate=e.template})}show(e,n=!1){this.onVisibleChange(!0),this.handleEvents("onShow",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),n&&R.focus(this.targetEl),this.modal&&R.addClass(this.document?.body,"p-overflow-hidden")}hide(e,n=!1){this.visible&&(this.onVisibleChange(!1),this.handleEvents("onHide",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),n&&R.focus(this.targetEl),this.modal&&R.removeClass(this.document?.body,"p-overflow-hidden"))}alignOverlay(){!this.modal&&R.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&&Et.set(this.overlayMode,this.overlayEl,this.baseZIndex+this.config?.zIndex[this.overlayMode]),R.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&&R.addClass(this.overlayEl,"p-component-overlay-leave")}this.handleEvents("onAnimationStart",e)}onOverlayContentAnimationDone(e){const n=this.overlayEl||e.element.parentElement;switch(e.toState){case"visible":this.show(n,!0),this.bindListeners();break;case"void":this.hide(n,!0),this.unbindListeners(),R.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),Et.clear(n),this.modalVisible=!1}this.handleEvents("onAnimationDone",e)}handleEvents(e,n){this[e].emit(n),this.options&&this.options[e]&&this.options[e](n),this.config?.overlayOptions&&(this.config?.overlayOptions)[e]&&(this.config?.overlayOptions)[e](n)}bindListeners(){this.bindScrollListener(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindDocumentKeyboardListener()}unbindListeners(){this.unbindScrollListener(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindDocumentKeyboardListener()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Jo(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 i=!(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&&i}):i)&&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:!R.isTouchDevice()}):!R.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:!R.isTouchDevice()}):!R.isTouchDevice())&&this.zone.run(()=>{this.hide(e,!0)})})})}unbindDocumentKeyboardListener(){this.documentKeyboardListener&&(this.documentKeyboardListener(),this.documentKeyboardListener=null)}ngOnDestroy(){this.hide(this.overlayEl,!0),this.overlayEl&&(R.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),Et.clear(this.overlayEl)),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindListeners()}static \u0275fac=function(n){return new(n||t)(M(ct),M(gn),M(Pe),M(Vt),M(Hn),M(po),M(je))};static \u0275cmp=U({type:t,selectors:[["p-overlay"]],contentQueries:function(n,i,o){if(1&n&&Ye(o,ae,4),2&n){let r;H(r=G())&&(i.templates=r)}},viewQuery:function(n,i){if(1&n&&(K(KH,5),K(QH,5)),2&n){let o;H(o=G())&&(i.overlayViewChild=o.first),H(o=G())&&(i.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:[Qe([oG])],ngContentSelectors:sG,decls:1,vars:1,consts:[[3,"ngStyle","class","ngClass","click",4,"ngIf"],[3,"ngStyle","ngClass","click"],["overlay",""],["content",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,i){1&n&&(_n(),m(0,iG,3,20,"div",0)),2&n&&d("ngIf",i.modalVisible)},dependencies:[Fe,ne,dt,nt],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:[Ji("overlayContentAnimation",[Yt(":enter",[Xd(rG)]),Yt(":leave",[Xd(aG)])])]},changeDetection:0})}return t})(),fp=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=me({imports:[Ne,ze,ze]})}return t})();const lG=["element"],cG=["content"];function uG(t,s){1&t&&Z(0)}const E_=function(t,s){return{$implicit:t,options:s}};function dG(t,s){if(1&t&&(Q(0),m(1,uG,1,0,"ng-container",7),J()),2&t){const e=p(2);a(1),d("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",Se(2,E_,e.loadedItems,e.getContentOptions()))}}function pG(t,s){1&t&&Z(0)}function hG(t,s){if(1&t&&(Q(0),m(1,pG,1,0,"ng-container",7),J()),2&t){const e=s.$implicit,n=s.index,i=p(3);a(1),d("ngTemplateOutlet",i.itemTemplate)("ngTemplateOutletContext",Se(2,E_,e,i.getOptions(n)))}}const mG=function(t){return{"p-scroller-loading":t}};function fG(t,s){if(1&t&&(l(0,"div",8,9),m(2,hG,2,5,"ng-container",10),c()),2&t){const e=p(2);d("ngClass",W(4,mG,e.d_loading))("ngStyle",e.contentStyle),a(2),d("ngForOf",e.loadedItems)("ngForTrackBy",e._trackBy||e.index)}}function gG(t,s){1&t&&D(0,"div",11),2&t&&d("ngStyle",p(2).spacerStyle)}function _G(t,s){1&t&&Z(0)}const bG=function(t){return{numCols:t}},BI=function(t){return{options:t}};function vG(t,s){if(1&t&&(Q(0),m(1,_G,1,0,"ng-container",7),J()),2&t){const e=s.index,n=p(4);a(1),d("ngTemplateOutlet",n.loaderTemplate)("ngTemplateOutletContext",W(4,BI,n.getLoaderOptions(e,n.both&&W(2,bG,n._numItemsInViewport.cols))))}}function CG(t,s){if(1&t&&(Q(0),m(1,vG,2,6,"ng-container",14),J()),2&t){const e=p(3);a(1),d("ngForOf",e.loaderArr)}}function yG(t,s){1&t&&Z(0)}const TG=function(){return{styleClass:"p-scroller-loading-icon"}};function wG(t,s){if(1&t&&(Q(0),m(1,yG,1,0,"ng-container",7),J()),2&t){const e=p(4);a(1),d("ngTemplateOutlet",e.loaderIconTemplate)("ngTemplateOutletContext",W(3,BI,V(2,TG)))}}function IG(t,s){1&t&&D(0,"SpinnerIcon",16),2&t&&d("styleClass","p-scroller-loading-icon")}function SG(t,s){if(1&t&&(m(0,wG,2,5,"ng-container",0),m(1,IG,1,1,"ng-template",null,15,ve)),2&t){const e=B(2);d("ngIf",p(3).loaderIconTemplate)("ngIfElse",e)}}const xG=function(t){return{"p-component-overlay":t}};function DG(t,s){if(1&t&&(l(0,"div",12),m(1,CG,2,1,"ng-container",0),m(2,SG,3,2,"ng-template",null,13,ve),c()),2&t){const e=B(3),n=p(2);d("ngClass",W(3,xG,!n.loaderTemplate)),a(1),d("ngIf",n.loaderTemplate)("ngIfElse",e)}}const MG=function(t,s,e){return{"p-scroller":!0,"p-scroller-inline":t,"p-both-scroll":s,"p-horizontal-scroll":e}};function kG(t,s){if(1&t){const e=E();Q(0),l(1,"div",2,3),v("scroll",function(i){return C(e),y(p().onContainerScroll(i))}),m(3,dG,2,5,"ng-container",0),m(4,fG,3,6,"ng-template",null,4,ve),m(6,gG,1,1,"div",5),m(7,DG,4,5,"div",6),c(),J()}if(2&t){const e=B(5),n=p();a(1),se(n._styleClass),d("ngStyle",n._style)("ngClass",Bt(10,MG,n.inline,n.both,n.horizontal)),F("id",n._id)("tabindex",n.tabindex),a(2),d("ngIf",n.contentTemplate)("ngIfElse",e),a(3),d("ngIf",n._showSpacer),a(1),d("ngIf",!n.loaderDisabled&&n._showLoader&&n.d_loading)}}function EG(t,s){1&t&&Z(0)}const LG=function(t,s){return{rows:t,columns:s}};function RG(t,s){if(1&t&&(Q(0),m(1,EG,1,0,"ng-container",7),J()),2&t){const e=p(2);a(1),d("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",Se(5,E_,e.items,Se(2,LG,e._items,e.loadedColumns)))}}function OG(t,s){if(1&t&&(xt(0),m(1,RG,2,8,"ng-container",17)),2&t){const e=p();a(1),d("ngIf",e.contentTemplate)}}const AG=["*"];let L_=(()=>{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(([n,i])=>this[`_${n}`]!==i&&(this[`_${n}`]=i))}onLazyLoad=new q;onScroll=new q;onScrollIndexChange=new q;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,n,i,o,r){this.document=e,this.platformId=n,this.renderer=i,this.cd=o,this.zone=r}ngOnInit(){this.setInitialState()}ngOnChanges(e){let n=!1;if(e.loading){const{previousValue:i,currentValue:o}=e.loading;this.lazy&&i!==o&&o!==this.d_loading&&(this.d_loading=o,n=!0)}if(e.orientation&&(this.lastScrollPos=this.both?{top:0,left:0}:0),e.numToleratedItems){const{previousValue:i,currentValue:o}=e.numToleratedItems;i!==o&&o!==this.d_numToleratedItems&&(this.d_numToleratedItems=o)}if(e.options){const{previousValue:i,currentValue:o}=e.options;this.lazy&&i?.loading!==o?.loading&&o?.loading!==this.d_loading&&(this.d_loading=o.loading,n=!0),i?.numToleratedItems!==o?.numToleratedItems&&o?.numToleratedItems!==this.d_numToleratedItems&&(this.d_numToleratedItems=o.numToleratedItems)}this.initialized&&!n&&(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(){vn(this.platformId)&&R.isVisible(this.elementViewChild?.nativeElement)&&(this.setInitialState(),this.setContentEl(this.contentEl),this.init(),this.defaultWidth=R.getWidth(this.elementViewChild?.nativeElement),this.defaultHeight=R.getHeight(this.elementViewChild?.nativeElement),this.defaultContentWidth=R.getWidth(this.contentEl),this.defaultContentHeight=R.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||R.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,n="auto"){const{numToleratedItems:i}=this.calculateNumItems(),o=this.getContentPosition(),r=(T=0,w)=>T<=w?0:T,u=(T,w,k)=>T*w+k,h=(T=0,w=0)=>this.scrollTo({left:T,top:w,behavior:n});let b=0;this.both?(b={rows:r(e[0],i[0]),cols:r(e[1],i[1])},h(u(b.cols,this._itemSize[1],o.left),u(b.rows,this._itemSize[0],o.top))):(b=r(e,i),this.horizontal?h(u(b,this._itemSize,o.left),0):h(0,u(b,this._itemSize,o.top))),this.isRangeChanged=this.first!==b,this.first=b}scrollInView(e,n,i="auto"){if(n){const{first:o,viewport:r}=this.getRenderedRange(),u=(T=0,w=0)=>this.scrollTo({left:T,top:w,behavior:i}),b="to-end"===n;if("to-start"===n){if(this.both)r.first.rows-o.rows>e[0]?u(r.first.cols*this._itemSize[1],(r.first.rows-1)*this._itemSize[0]):r.first.cols-o.cols>e[1]&&u((r.first.cols-1)*this._itemSize[1],r.first.rows*this._itemSize[0]);else if(r.first-o>e){const T=(r.first-1)*this._itemSize;this.horizontal?u(T,0):u(0,T)}}else if(b)if(this.both)r.last.rows-o.rows<=e[0]+1?u(r.first.cols*this._itemSize[1],(r.first.rows+1)*this._itemSize[0]):r.last.cols-o.cols<=e[1]+1&&u((r.first.cols+1)*this._itemSize[1],r.first.rows*this._itemSize[0]);else if(r.last-o<=e+1){const T=(r.first+1)*this._itemSize;this.horizontal?u(T,0):u(0,T)}}else this.scrollToIndex(e,i)}getRenderedRange(){const e=(o,r)=>Math.floor(o/(r||o));let n=this.first,i=0;if(this.elementViewChild?.nativeElement){const{scrollTop:o,scrollLeft:r}=this.elementViewChild.nativeElement;this.both?(n={rows:e(o,this._itemSize[0]),cols:e(r,this._itemSize[1])},i={rows:n.rows+this.numItemsInViewport.rows,cols:n.cols+this.numItemsInViewport.cols}):(n=e(this.horizontal?r:o,this._itemSize),i=n+this.numItemsInViewport)}return{first:this.first,last:this.last,viewport:{first:n,last:i}}}calculateNumItems(){const e=this.getContentPosition(),n=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetWidth-e.left:0)||0,i=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetHeight-e.top:0)||0,o=(b,T)=>Math.ceil(b/(T||b)),r=b=>Math.ceil(b/2),u=this.both?{rows:o(i,this._itemSize[0]),cols:o(n,this._itemSize[1])}:o(this.horizontal?n:i,this._itemSize);return{numItemsInViewport:u,numToleratedItems:this.d_numToleratedItems||(this.both?[r(u.rows),r(u.cols)]:r(u))}}calculateOptions(){const{numItemsInViewport:e,numToleratedItems:n}=this.calculateNumItems(),i=(u,h,b,T=!1)=>this.getLast(u+h+(uArray.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,n]=[R.getWidth(this.contentEl),R.getHeight(this.contentEl)];e!==this.defaultContentWidth&&(this.elementViewChild.nativeElement.style.width=""),n!==this.defaultContentHeight&&(this.elementViewChild.nativeElement.style.height="");const[i,o]=[R.getWidth(this.elementViewChild.nativeElement),R.getHeight(this.elementViewChild.nativeElement)];(this.both||this.horizontal)&&(this.elementViewChild.nativeElement.style.width=ithis.elementViewChild.nativeElement.style[r]=u;this.both||this.horizontal?(o("height",i),o("width",n)):o("height",i)}}setSpacerSize(){if(this._items){const e=this.getContentPosition(),n=(i,o,r,u=0)=>this.spacerStyle={...this.spacerStyle,[`${i}`]:(o||[]).length*r+u+"px"};this.both?(n("height",this._items,this._itemSize[0],e.y),n("width",this._columns||this._items[1],this._itemSize[1],e.x)):this.horizontal?n("width",this._columns||this._items,this._itemSize,e.x):n("height",this._items,this._itemSize,e.y)}}setContentPosition(e){if(this.contentEl&&!this._appendOnly){const n=e?e.first:this.first,i=(r,u)=>r*u,o=(r=0,u=0)=>this.contentStyle={...this.contentStyle,transform:`translate3d(${r}px, ${u}px, 0)`};if(this.both)o(i(n.cols,this._itemSize[1]),i(n.rows,this._itemSize[0]));else{const r=i(n,this._itemSize);this.horizontal?o(r,0):o(0,r)}}}onScrollPositionChange(e){const n=e.target,i=this.getContentPosition(),o=(P,z)=>P?P>z?P-z:P:0,r=(P,z)=>Math.floor(P/(z||P)),u=(P,z,N,ee,oe,be)=>P<=oe?oe:be?N-ee-oe:z+oe-1,h=(P,z,N,ee,oe,be,Je)=>P<=be?0:Math.max(0,Je?Pz?N:P-2*be),b=(P,z,N,ee,oe,be=!1)=>{let Je=z+ee+2*oe;return P>=oe&&(Je+=oe+1),this.getLast(Je,be)},T=o(n.scrollTop,i.top),w=o(n.scrollLeft,i.left);let k=this.both?{rows:0,cols:0}:0,L=this.last,O=!1,A=this.lastScrollPos;if(this.both){const P=this.lastScrollPos.top<=T,z=this.lastScrollPos.left<=w;if(!this._appendOnly||this._appendOnly&&(P||z)){const N={rows:r(T,this._itemSize[0]),cols:r(w,this._itemSize[1])},ee={rows:u(N.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],P),cols:u(N.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],z)};k={rows:h(N.rows,ee.rows,this.first.rows,0,0,this.d_numToleratedItems[0],P),cols:h(N.cols,ee.cols,this.first.cols,0,0,this.d_numToleratedItems[1],z)},L={rows:b(N.rows,k.rows,0,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:b(N.cols,k.cols,0,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},O=k.rows!==this.first.rows||L.rows!==this.last.rows||k.cols!==this.first.cols||L.cols!==this.last.cols||this.isRangeChanged,A={top:T,left:w}}}else{const P=this.horizontal?w:T,z=this.lastScrollPos<=P;if(!this._appendOnly||this._appendOnly&&z){const N=r(P,this._itemSize);k=h(N,u(N,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,z),this.first,0,0,this.d_numToleratedItems,z),L=b(N,k,0,this.numItemsInViewport,this.d_numToleratedItems),O=k!==this.first||L!==this.last||this.isRangeChanged,A=P}}return{first:k,last:L,isRangeChanged:O,scrollPos:A}}onScrollChange(e){const{first:n,last:i,isRangeChanged:o,scrollPos:r}=this.onScrollPositionChange(e);if(o){const u={first:n,last:i};if(this.setContentPosition(u),this.first=n,this.last=i,this.lastScrollPos=r,this.handleEvents("onScrollIndexChange",u),this._lazy&&this.isPageChanged){const h={first:this._step?Math.min(this.getPageByFirst()*this._step,this.items.length-this._step):n,last:Math.min(this._step?(this.getPageByFirst()+1)*this._step:i,this.items.length)};(this.lazyLoadState.first!==h.first||this.lazyLoadState.last!==h.last)&&this.handleEvents("onLazyLoad",h),this.lazyLoadState=h}}}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:n}=this.onScrollPositionChange(e);(n||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(){vn(this.platformId)&&(this.windowResizeListener||this.zone.runOutsideAngular(()=>{const e=this.document.defaultView,n=R.isTouchDevice()?"orientationchange":"resize";this.windowResizeListener=this.renderer.listen(e,n,this.onWindowResize.bind(this))}))}unbindResizeListener(){this.windowResizeListener&&(this.windowResizeListener(),this.windowResizeListener=null)}onWindowResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{if(R.isVisible(this.elementViewChild?.nativeElement)){const[e,n]=[R.getWidth(this.elementViewChild?.nativeElement),R.getHeight(this.elementViewChild?.nativeElement)],[i,o]=[e!==this.defaultWidth,n!==this.defaultHeight];(this.both?i||o:this.horizontal?i:this.vertical&&o)&&this.zone.run(()=>{this.d_numToleratedItems=this._numToleratedItems,this.defaultWidth=e,this.defaultHeight=n,this.defaultContentWidth=R.getWidth(this.contentEl),this.defaultContentHeight=R.getHeight(this.contentEl),this.init()})}},this._resizeDelay)}handleEvents(e,n){return this.options&&this.options[e]?this.options[e](n):this[e].emit(n)}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,n)=>this.getLoaderOptions(e,n),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 n=(this._items||[]).length,i=this.both?this.first.rows+e:this.first+e;return{index:i,count:n,first:0===i,last:i===n-1,even:i%2==0,odd:i%2!=0}}getLoaderOptions(e,n){const i=this.loaderArr.length;return{index:e,count:i,first:0===e,last:e===i-1,even:e%2==0,odd:e%2!=0,...n}}static \u0275fac=function(n){return new(n||t)(M(ct),M(gn),M(Vt),M(rt),M(je))};static \u0275cmp=U({type:t,selectors:[["p-scroller"]],contentQueries:function(n,i,o){if(1&n&&Ye(o,ae,4),2&n){let r;H(r=G())&&(i.templates=r)}},viewQuery:function(n,i){if(1&n&&(K(lG,5),K(cG,5)),2&n){let o;H(o=G())&&(i.elementViewChild=o.first),H(o=G())&&(i.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:[wn],ngContentSelectors:AG,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(n,i){if(1&n&&(_n(),m(0,kG,8,14,"ng-container",0),m(1,OG,2,1,"ng-template",null,1,ve)),2&n){const o=B(2);d("ngIf",!i._disabled)("ngIfElse",o)}},dependencies:function(){return[Fe,ut,ne,dt,nt,mo]},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})(),ma=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=me({imports:[Ne,ze,mo,ze]})}return t})(),$t=(()=>{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};_disabled;container;styleClass;tooltipText;showTimeout;hideTimeout;active;mouseEnterListener;mouseLeaveListener;containerMouseleaveListener;clickListener;focusListener;blurListener;scrollHandler;resizeListener;constructor(e,n,i,o,r,u){this.platformId=e,this.el=n,this.zone=i,this.config=o,this.renderer=r,this.viewContainer=u}ngAfterViewInit(){vn(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.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()||!(R.hasClass(e.target,"p-tooltip")||R.hasClass(e.target,"p-tooltip-arrow")||R.hasClass(e.target,"p-tooltip-text")||R.hasClass(e.relatedTarget,"p-tooltip")||R.hasClass(e.relatedTarget,"p-tooltip-text")||R.hasClass(e.relatedTarget,"p-tooltip-arrow")))&&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");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")?R.appendChild(this.container,this.el.nativeElement):R.appendChild(this.container,this.getOption("appendTo")),this.container.style.display="inline-block",this.fitContent&&(this.container.style.width="fit-content"),this.isAutoHide()||this.bindContainerMouseleaveListener()}bindContainerMouseleaveListener(){this.containerMouseleaveListener||(this.containerMouseleaveListener=this.renderer.listen(this.container??this.container.nativeElement,"mouseleave",n=>{this.deactivate()}))}unbindContainerMouseleaveListener(){this.containerMouseleaveListener&&(this.bindContainerMouseleaveListener(),this.containerMouseleaveListener=null)}show(){!this.getOption("tooltipLabel")||this.getOption("disabled")||(this.create(),this.align(),R.fadeIn(this.container,250),"auto"===this.getOption("tooltipZIndex")?Et.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener())}hide(){"auto"===this.getOption("tooltipZIndex")&&Et.clear(this.container),this.remove()}updateText(){const e=this.getOption("tooltipLabel");if(e instanceof ji){const n=this.viewContainer.createEmbeddedView(e);n.detectChanges(),n.rootNodes.forEach(i=>this.tooltipText.appendChild(i))}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+R.getWindowScrollLeft(),top:e.top+R.getWindowScrollTop()}}return{left:0,top:0}}alignRight(){this.preAlign("right");let e=this.getHostOffset(),n=e.left+R.getOuterWidth(this.el.nativeElement),i=e.top+(R.getOuterHeight(this.el.nativeElement)-R.getOuterHeight(this.container))/2;this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=i+this.getOption("positionTop")+"px"}alignLeft(){this.preAlign("left");let e=this.getHostOffset(),n=e.left-R.getOuterWidth(this.container),i=e.top+(R.getOuterHeight(this.el.nativeElement)-R.getOuterHeight(this.container))/2;this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=i+this.getOption("positionTop")+"px"}alignTop(){this.preAlign("top");let e=this.getHostOffset(),n=e.left+(R.getOuterWidth(this.el.nativeElement)-R.getOuterWidth(this.container))/2,i=e.top-R.getOuterHeight(this.container);this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=i+this.getOption("positionTop")+"px"}alignBottom(){this.preAlign("bottom");let e=this.getHostOffset(),n=e.left+(R.getOuterWidth(this.el.nativeElement)-R.getOuterWidth(this.container))/2,i=e.top+R.getOuterHeight(this.el.nativeElement);this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=i+this.getOption("positionTop")+"px"}setOption(e){this._tooltipOptions={...this._tooltipOptions,...e}}getOption(e){return this._tooltipOptions[e]}getTarget(e){return R.hasClass(e,"p-inputwrapper")?R.findSingle(e,"input"):e}preAlign(e){this.container.style.left="-999px",this.container.style.top="-999px";let n="p-tooltip p-component p-tooltip-"+e;this.container.className=this.getOption("tooltipStyleClass")?n+" "+this.getOption("tooltipStyleClass"):n}isOutOfBounds(){let e=this.container.getBoundingClientRect(),n=e.top,i=e.left,o=R.getOuterWidth(this.container),r=R.getOuterHeight(this.container),u=R.getViewport();return i+o>u.width||i<0||n<0||n+r>u.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 Jo(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):R.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&&Et.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}static \u0275fac=function(n){return new(n||t)(M(gn),M(Pe),M(je),M(Hn),M(Vt),M(Ri))};static \u0275dir=fe({type:t,selectors:[["","pTooltip",""]],hostAttrs:[1,"p-element"],hostBindings:function(n,i){1&n&&v("keydown.escape",function(r){return i.onPressEscape(r)},0,PC)},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:[wn]})}return t})(),Ti=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=me({imports:[Ne]})}return t})(),fa=(()=>{class t extends _t{pathId;ngOnInit(){this.pathId="url(#"+Ft()+")"}static \u0275fac=function(){let e;return function(i){return(e||(e=we(t)))(i||t)}}();static \u0275cmp=U({type:t,selectors:[["SearchIcon"]],standalone:!0,features:[_e,ot],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(n,i){1&n&&(lt(),l(0,"svg",0)(1,"g"),D(2,"path",1),c(),l(3,"defs")(4,"clipPath",2),D(5,"rect",3),c()()()),2&n&&(se(i.getClassNames()),F("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role),a(1),F("clip-path",i.pathId),a(3),d("id",i.pathId))},encapsulation:2})}return t})();function PG(t,s){if(1&t&&(l(0,"span"),_(1),c()),2&t){const e=p();let n;a(1),S(null!==(n=e.label)&&void 0!==n?n:"empty")}}function FG(t,s){1&t&&Z(0)}const ic=function(t){return{height:t}},NG=function(t,s){return{"p-dropdown-item":!0,"p-highlight":t,"p-disabled":s}},R_=function(t){return{$implicit:t}},VG=["container"],BG=["filter"],HG=["in"],GG=["editableInput"],qG=["items"],zG=["scroller"],UG=["overlay"];function jG(t,s){if(1&t&&(Q(0),_(1),J()),2&t){const e=p(2);a(1),S(e.label||"empty")}}function $G(t,s){1&t&&Z(0)}const WG=function(t){return{"p-dropdown-label p-inputtext":!0,"p-dropdown-label-empty":t}};function KG(t,s){if(1&t&&(l(0,"span",14),m(1,jG,2,1,"ng-container",8),m(2,$G,1,0,"ng-container",15),c()),2&t){const e=p();d("ngClass",W(9,WG,null==e.label||0===e.label.length))("pTooltip",e.tooltip)("tooltipPosition",e.tooltipPosition)("positionStyle",e.tooltipPositionStyle)("tooltipStyleClass",e.tooltipStyleClass),F("id",e.labelId),a(1),d("ngIf",!e.selectedItemTemplate),a(1),d("ngTemplateOutlet",e.selectedItemTemplate)("ngTemplateOutletContext",W(11,R_,e.selectedOption))}}const QG=function(t){return{"p-dropdown-label p-inputtext p-placeholder":!0,"p-dropdown-label-empty":t}};function JG(t,s){if(1&t&&(l(0,"span",16),_(1),c()),2&t){const e=p();d("ngClass",W(2,QG,null==e.placeholder||0===e.placeholder.length)),a(1),S(e.placeholder||"empty")}}function ZG(t,s){if(1&t){const e=E();l(0,"input",17,18),v("input",function(i){return C(e),y(p().onEditableInputChange(i))})("focus",function(i){return C(e),y(p().onEditableInputFocus(i))})("blur",function(i){return C(e),y(p().onInputBlur(i))}),c()}if(2&t){const e=p();d("disabled",e.disabled),F("maxlength",e.maxlength)("placeholder",e.placeholder)("aria-expanded",e.overlayVisible)}}function YG(t,s){if(1&t){const e=E();l(0,"TimesIcon",21),v("click",function(i){return C(e),y(p(2).clear(i))}),c()}2&t&&d("styleClass","p-dropdown-clear-icon")}function XG(t,s){}function eq(t,s){1&t&&m(0,XG,0,0,"ng-template")}function tq(t,s){if(1&t){const e=E();l(0,"span",22),v("click",function(i){return C(e),y(p(2).clear(i))}),m(1,eq,1,0,null,23),c()}if(2&t){const e=p(2);a(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function nq(t,s){if(1&t&&(Q(0),m(1,YG,1,1,"TimesIcon",19),m(2,tq,2,1,"span",20),J()),2&t){const e=p();a(1),d("ngIf",!e.clearIconTemplate),a(1),d("ngIf",e.clearIconTemplate)}}function iq(t,s){1&t&&D(0,"span",26),2&t&&d("ngClass",p(2).dropdownIcon)}function sq(t,s){1&t&&D(0,"ChevronDownIcon",27),2&t&&d("styleClass","p-dropdown-trigger-icon")}function oq(t,s){if(1&t&&(Q(0),m(1,iq,1,1,"span",24),m(2,sq,1,1,"ChevronDownIcon",25),J()),2&t){const e=p();a(1),d("ngIf",e.dropdownIcon),a(1),d("ngIf",!e.dropdownIcon)}}function rq(t,s){}function aq(t,s){1&t&&m(0,rq,0,0,"ng-template")}function lq(t,s){if(1&t&&(l(0,"span",28),m(1,aq,1,0,null,23),c()),2&t){const e=p();a(1),d("ngTemplateOutlet",e.dropdownIconTemplate)}}function cq(t,s){1&t&&Z(0)}function uq(t,s){1&t&&Z(0)}const HI=function(t){return{options:t}};function dq(t,s){if(1&t&&(Q(0),m(1,uq,1,0,"ng-container",15),J()),2&t){const e=p(3);a(1),d("ngTemplateOutlet",e.filterTemplate)("ngTemplateOutletContext",W(2,HI,e.filterOptions))}}function pq(t,s){1&t&&D(0,"SearchIcon",27),2&t&&d("styleClass","p-dropdown-filter-icon")}function hq(t,s){}function mq(t,s){1&t&&m(0,hq,0,0,"ng-template")}function fq(t,s){if(1&t&&(l(0,"span",41),m(1,mq,1,0,null,23),c()),2&t){const e=p(4);a(1),d("ngTemplateOutlet",e.filterIconTemplate)}}function gq(t,s){if(1&t){const e=E();l(0,"div",37)(1,"input",38,39),v("keydown.enter",function(i){return i.preventDefault()})("keydown",function(i){return C(e),y(p(3).onKeydown(i,!1))})("input",function(i){return C(e),y(p(3).onFilterInputChange(i))}),c(),m(3,pq,1,1,"SearchIcon",25),m(4,fq,2,1,"span",40),c()}if(2&t){const e=p(3);a(1),d("value",e.filterValue||""),F("placeholder",e.filterPlaceholder)("aria-label",e.ariaFilterLabel)("aria-activedescendant",e.overlayVisible?"p-highlighted-option":e.labelId),a(2),d("ngIf",!e.filterIconTemplate),a(1),d("ngIf",e.filterIconTemplate)}}function _q(t,s){if(1&t&&(l(0,"div",34),v("click",function(n){return n.stopPropagation()}),m(1,dq,2,4,"ng-container",35),m(2,gq,5,6,"ng-template",null,36,ve),c()),2&t){const e=B(3),n=p(2);a(1),d("ngIf",n.filterTemplate)("ngIfElse",e)}}function bq(t,s){1&t&&Z(0)}const GI=function(t,s){return{$implicit:t,options:s}};function vq(t,s){if(1&t&&m(0,bq,1,0,"ng-container",15),2&t){const e=s.$implicit,n=s.options;p(2),d("ngTemplateOutlet",B(7))("ngTemplateOutletContext",Se(2,GI,e,n))}}function Cq(t,s){1&t&&Z(0)}function yq(t,s){if(1&t&&m(0,Cq,1,0,"ng-container",15),2&t){const e=s.options;d("ngTemplateOutlet",p(4).loaderTemplate)("ngTemplateOutletContext",W(2,HI,e))}}function Tq(t,s){1&t&&(Q(0),m(1,yq,1,4,"ng-template",44),J())}function wq(t,s){if(1&t){const e=E();l(0,"p-scroller",42,43),v("onLazyLoad",function(i){return C(e),y(p(2).onLazyLoad.emit(i))}),m(2,vq,1,5,"ng-template",13),m(3,Tq,2,0,"ng-container",8),c()}if(2&t){const e=p(2);j(W(8,ic,e.scrollHeight)),d("items",e.optionsToDisplay)("itemSize",e.virtualScrollItemSize||e._itemSize)("autoSize",!0)("lazy",e.lazy)("options",e.virtualScrollOptions),a(3),d("ngIf",e.loaderTemplate)}}function Iq(t,s){1&t&&Z(0)}const Sq=function(){return{}};function xq(t,s){if(1&t&&(Q(0),m(1,Iq,1,0,"ng-container",15),J()),2&t){p();const e=B(7),n=p();a(1),d("ngTemplateOutlet",e)("ngTemplateOutletContext",Se(3,GI,n.optionsToDisplay,V(2,Sq)))}}function Dq(t,s){if(1&t&&(l(0,"span"),_(1),c()),2&t){const e=p().$implicit,n=p(4);a(1),S(n.getOptionGroupLabel(e)||"empty")}}function Mq(t,s){1&t&&Z(0)}function kq(t,s){1&t&&Z(0)}const qI=function(t,s){return{$implicit:t,selectedOption:s}};function Eq(t,s){if(1&t&&(l(0,"li",50),m(1,Dq,2,1,"span",8),m(2,Mq,1,0,"ng-container",15),c(),m(3,kq,1,0,"ng-container",15)),2&t){const e=s.$implicit,n=p(2).options,i=B(5),o=p(2);d("ngStyle",W(6,ic,n.itemSize+"px")),a(1),d("ngIf",!o.groupTemplate),a(1),d("ngTemplateOutlet",o.groupTemplate)("ngTemplateOutletContext",W(8,R_,e)),a(1),d("ngTemplateOutlet",i)("ngTemplateOutletContext",Se(10,qI,o.getOptionGroupChildren(e),o.selectedOption))}}function Lq(t,s){if(1&t&&(Q(0),m(1,Eq,4,13,"ng-template",49),J()),2&t){const e=p().$implicit;a(1),d("ngForOf",e)}}function Rq(t,s){1&t&&Z(0)}function Oq(t,s){if(1&t&&(Q(0),m(1,Rq,1,0,"ng-container",15),J()),2&t){const e=p().$implicit,n=B(5),i=p(2);a(1),d("ngTemplateOutlet",n)("ngTemplateOutletContext",Se(2,qI,e,i.selectedOption))}}function Aq(t,s){if(1&t){const e=E();l(0,"p-dropdownItem",51),v("onClick",function(i){return C(e),y(p(4).onItemClick(i))}),c()}if(2&t){const e=s.$implicit,n=p().selectedOption,i=p(3);d("option",e)("selected",n==e)("label",i.getOptionLabel(e))("disabled",i.isOptionDisabled(e))("template",i.itemTemplate)}}function Pq(t,s){1&t&&m(0,Aq,1,5,"ng-template",49),2&t&&d("ngForOf",s.$implicit)}function Fq(t,s){if(1&t&&(Q(0),_(1),J()),2&t){const e=p(4);a(1),x(" ",e.emptyFilterMessageLabel," ")}}function Nq(t,s){1&t&&Z(0,null,53)}function Vq(t,s){if(1&t&&(l(0,"li",52),m(1,Fq,2,1,"ng-container",35),m(2,Nq,2,0,"ng-container",23),c()),2&t){const e=p().options,n=p(2);d("ngStyle",W(4,ic,e.itemSize+"px")),a(1),d("ngIf",!n.emptyFilterTemplate&&!n.emptyTemplate)("ngIfElse",n.emptyFilter),a(1),d("ngTemplateOutlet",n.emptyFilterTemplate||n.emptyTemplate)}}function Bq(t,s){if(1&t&&(Q(0),_(1),J()),2&t){const e=p(4);a(1),x(" ",e.emptyMessageLabel," ")}}function Hq(t,s){1&t&&Z(0,null,54)}function Gq(t,s){if(1&t&&(l(0,"li",52),m(1,Bq,2,1,"ng-container",35),m(2,Hq,2,0,"ng-container",23),c()),2&t){const e=p().options,n=p(2);d("ngStyle",W(4,ic,e.itemSize+"px")),a(1),d("ngIf",!n.emptyTemplate)("ngIfElse",n.empty),a(1),d("ngTemplateOutlet",n.emptyTemplate)}}function qq(t,s){if(1&t&&(l(0,"ul",45,46),m(2,Lq,2,1,"ng-container",8),m(3,Oq,2,5,"ng-container",8),m(4,Pq,1,1,"ng-template",null,47,ve),m(6,Vq,3,6,"li",48),m(7,Gq,3,6,"li",48),c()),2&t){const e=s.options,n=p(2);j(e.contentStyle),d("ngClass",e.contentStyleClass),F("id",n.listId),a(2),d("ngIf",n.group),a(1),d("ngIf",!n.group),a(3),d("ngIf",n.filterValue&&n.isEmpty()),a(1),d("ngIf",!n.filterValue&&n.isEmpty())}}function zq(t,s){1&t&&Z(0)}function Uq(t,s){if(1&t&&(l(0,"div",29),m(1,cq,1,0,"ng-container",23),m(2,_q,4,2,"div",30),l(3,"div",31),m(4,wq,4,10,"p-scroller",32),m(5,xq,2,6,"ng-container",8),m(6,qq,8,8,"ng-template",null,33,ve),c(),m(8,zq,1,0,"ng-container",23),c()),2&t){const e=p();se(e.panelStyleClass),d("ngClass","p-dropdown-panel p-component")("ngStyle",e.panelStyle),a(1),d("ngTemplateOutlet",e.headerTemplate),a(1),d("ngIf",e.filter),a(1),qi("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),a(1),d("ngIf",e.virtualScroll),a(1),d("ngIf",!e.virtualScroll),a(3),d("ngTemplateOutlet",e.footerTemplate)}}const jq=function(t,s,e,n){return{"p-dropdown p-component":!0,"p-disabled":t,"p-dropdown-open":s,"p-focus":e,"p-dropdown-clearable":n}},$q={provide:dn,useExisting:Ze(()=>Gt),multi:!0};let Wq=(()=>{class t{option;selected;label;disabled;visible;itemSize;template;onClick=new q;onOptionClick(e){this.onClick.emit({originalEvent:e,option:this.option})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=U({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(n,i){1&n&&(l(0,"li",0),v("click",function(r){return i.onOptionClick(r)}),m(1,PG,2,1,"span",1),m(2,FG,1,0,"ng-container",2),c()),2&n&&(d("ngStyle",W(8,ic,i.itemSize+"px"))("id",i.selected?"p-highlighted-option":"")("ngClass",Se(10,NG,i.selected,i.disabled)),F("aria-label",i.label)("aria-selected",i.selected),a(1),d("ngIf",!i.template),a(1),d("ngTemplateOutlet",i.template)("ngTemplateOutletContext",W(13,R_,i.option)))},dependencies:[Fe,ne,dt,nt,bt],encapsulation:2})}return t})(),Gt=(()=>{class t{el;renderer;cd;zone;filterService;config;scrollHeight="200px";filter;name;style;panelStyle;styleClass;panelStyleClass;readonly;required;editable;appendTo;tabindex=0;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&&Y.isNotEmpty(this.value)&&!this.editable&&(this.value=null,this.onModelChange(this.value)),this.optionsChanged=!0,this._filterValue&&this._filterValue.length&&this.activateFilter()}onChange=new q;onFilter=new q;onFocus=new q;onBlur=new q;onClick=new q;onShow=new q;onHide=new q;onClear=new q;onLazyLoad=new q;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=Ft();labelId;listId;constructor(e,n,i,o,r,u){this.el=e,this.renderer=n,this.cd=i,this.zone=o,this.filterService=r,this.config=u}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(jt.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(jt.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?Y.resolveFieldData(e,this.optionLabel):e&&void 0!==e.label?e.label:e}getOptionValue(e){return this.optionValue?Y.resolveFieldData(e,this.optionValue):!this.optionLabel&&e&&void 0!==e.value?e.value:e}isOptionDisabled(e){return this.optionDisabled?Y.resolveFieldData(e,this.optionDisabled):!(!e||void 0===e.disabled)&&e.disabled}getOptionGroupLabel(e){return this.optionGroupLabel?Y.resolveFieldData(e,this.optionGroupLabel):e&&void 0!==e.label?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?Y.resolveFieldData(e,this.optionGroupChildren):e.items}onItemClick(e){const n=e.option;this.isOptionDisabled(n)||(this.selectItem(e.originalEvent,n),this.accessibleViewChild?.nativeElement.focus({preventScroll:!0})),setTimeout(()=>{this.hide()},1)}selectItem(e,n){this.selectedOption!=n&&(this.selectedOption=n,this.value=this.getOptionValue(n),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=R.findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement,"li.p-highlight");e&&R.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 n=e.target;return R.hasClass(n,"p-dropdown-clear-icon")||null!==n.closest(".p-dropdown-clear-icon")||n.isSameNode(this.accessibleViewChild?.nativeElement)||this.editableInputViewChild&&n.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=R.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 n=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;-1!==n&&this.scroller?.scrollToIndex(n)}else{let n=R.findSingle(this.itemsWrapper,".p-dropdown-item.p-highlight");n&&n.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 n;if(this.optionsToDisplay&&this.optionsToDisplay.length){for(let i=e-1;0<=i;i--){let o=this.optionsToDisplay[i];if(!this.isOptionDisabled(o)){n=o;break}}if(!n)for(let i=this.optionsToDisplay.length-1;i>=e;i--){let o=this.optionsToDisplay[i];if(!this.isOptionDisabled(o)){n=o;break}}}return n}findNextEnabledOption(e){let n;if(this.optionsToDisplay&&this.optionsToDisplay.length){for(let i=e+1;i0&&this.selectItem(e,this.getOptionGroupChildren(this.optionsToDisplay[0])[0])}else{let i=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1,o=this.findNextEnabledOption(i);o&&(this.selectItem(e,o),this.selectedOptionUpdated=!0)}e.preventDefault();break;case"ArrowUp":if(this.group){let i=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;if(-1!==i){let o=i.itemIndex-1;if(o>=0)this.selectItem(e,this.getOptionGroupChildren(this.optionsToDisplay[i.groupIndex])[o]),this.selectedOptionUpdated=!0;else if(o<0){let r=this.optionsToDisplay[i.groupIndex-1];r&&(this.selectItem(e,this.getOptionGroupChildren(r)[this.getOptionGroupChildren(r).length-1]),this.selectedOptionUpdated=!0)}}}else{let i=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1,o=this.findPrevEnabledOption(i);o&&(this.selectItem(e,o),this.selectedOptionUpdated=!0)}e.preventDefault();break;case"Space":n&&(this.overlayVisible?this.hide():this.show(),e.preventDefault());break;case"Enter":this.overlayVisible&&(!this.filter||this.optionsToDisplay&&this.optionsToDisplay.length>0)?this.hide():this.overlayVisible||this.show(),e.preventDefault();break;case"Escape":this.overlayVisible&&this.hide(),e.preventDefault();break;case"Tab":this.onTabKey();break;default:n&&!e.metaKey&&17!==e.which&&this.search(e)}}onTabKey(){this.overlayVisible&&this.hide()}search(e){this.searchTimeout&&clearTimeout(this.searchTimeout);const n=e.key;let i;if(this.previousSearchChar=this.currentSearchChar,this.currentSearchChar=n,this.searchValue=this.previousSearchChar===this.currentSearchChar?this.currentSearchChar:this.searchValue?this.searchValue+n:n,this.group){let o=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):{groupIndex:0,itemIndex:0};i=this.searchOptionWithinGroup(o)}else{let o=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;i=this.searchOption(++o)}i&&!this.isOptionDisabled(i)&&(this.selectItem(e,i),this.selectedOptionUpdated=!0),this.searchTimeout=setTimeout(()=>{this.searchValue=null},250)}searchOption(e){let n;return this.searchValue&&(n=this.searchOptionInRange(e,this.optionsToDisplay.length),n||(n=this.searchOptionInRange(0,e))),n}searchOptionInRange(e,n){for(let i=e;i{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=me({imports:[Ne,fp,ze,Ti,Cn,ma,WH,xn,ho,fa,fp,ze,ma]})}return t})(),zI=(()=>{class t{el;ngModel;cd;filled;constructor(e,n,i){this.el=e,this.ngModel=n,this.cd=i}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(n){return new(n||t)(M(Pe),M(Ce,8),M(rt))};static \u0275dir=fe({type:t,selectors:[["","pInputText",""]],hostAttrs:[1,"p-inputtext","p-component","p-element"],hostVars:2,hostBindings:function(n,i){1&n&&v("input",function(r){return i.onInput(r)}),2&n&&Jn("p-filled",i.filled)}})}return t})(),UI=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=me({imports:[Ne]})}return t})(),jI=(()=>{class t extends _t{static \u0275fac=function(){let e;return function(i){return(e||(e=we(t)))(i||t)}}();static \u0275cmp=U({type:t,selectors:[["AngleUpIcon"]],standalone:!0,features:[_e,ot],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(n,i){1&n&&(lt(),l(0,"svg",0),D(1,"path",1),c()),2&n&&(se(i.getClassNames()),F("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role))},encapsulation:2})}return t})(),O_=(()=>{class t extends _t{static \u0275fac=function(){let e;return function(i){return(e||(e=we(t)))(i||t)}}();static \u0275cmp=U({type:t,selectors:[["AngleDownIcon"]],standalone:!0,features:[_e,ot],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(n,i){1&n&&(lt(),l(0,"svg",0),D(1,"path",1),c()),2&n&&(se(i.getClassNames()),F("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role))},encapsulation:2})}return t})();const Kq=["input"];function Qq(t,s){if(1&t){const e=E();l(0,"TimesIcon",8),v("click",function(){return C(e),y(p(2).clear())}),c()}2&t&&d("ngClass","p-inputnumber-clear-icon")}function Jq(t,s){}function Zq(t,s){1&t&&m(0,Jq,0,0,"ng-template")}function Yq(t,s){if(1&t){const e=E();l(0,"span",9),v("click",function(){return C(e),y(p(2).clear())}),m(1,Zq,1,0,null,10),c()}if(2&t){const e=p(2);a(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function Xq(t,s){if(1&t&&(Q(0),m(1,Qq,1,1,"TimesIcon",6),m(2,Yq,2,1,"span",7),J()),2&t){const e=p();a(1),d("ngIf",!e.clearIconTemplate),a(1),d("ngIf",e.clearIconTemplate)}}function ez(t,s){1&t&&D(0,"span",14),2&t&&d("ngClass",p(2).incrementButtonIcon)}function tz(t,s){1&t&&D(0,"AngleUpIcon")}function nz(t,s){}function iz(t,s){1&t&&m(0,nz,0,0,"ng-template")}function sz(t,s){if(1&t&&(Q(0),m(1,tz,1,0,"AngleUpIcon",3),m(2,iz,1,0,null,10),J()),2&t){const e=p(2);a(1),d("ngIf",!e.incrementButtonIconTemplate),a(1),d("ngTemplateOutlet",e.incrementButtonIconTemplate)}}function oz(t,s){1&t&&D(0,"span",14),2&t&&d("ngClass",p(2).decrementButtonIcon)}function rz(t,s){1&t&&D(0,"AngleDownIcon")}function az(t,s){}function lz(t,s){1&t&&m(0,az,0,0,"ng-template")}function cz(t,s){if(1&t&&(Q(0),m(1,rz,1,0,"AngleDownIcon",3),m(2,lz,1,0,null,10),J()),2&t){const e=p(2);a(1),d("ngIf",!e.decrementButtonIconTemplate),a(1),d("ngTemplateOutlet",e.decrementButtonIconTemplate)}}const $I=function(){return{"p-inputnumber-button p-inputnumber-button-up":!0}},WI=function(){return{"p-inputnumber-button p-inputnumber-button-down":!0}};function uz(t,s){if(1&t){const e=E();l(0,"span",11)(1,"button",12),v("mousedown",function(i){return C(e),y(p().onUpButtonMouseDown(i))})("mouseup",function(){return C(e),y(p().onUpButtonMouseUp())})("mouseleave",function(){return C(e),y(p().onUpButtonMouseLeave())})("keydown",function(i){return C(e),y(p().onUpButtonKeyDown(i))})("keyup",function(){return C(e),y(p().onUpButtonKeyUp())}),m(2,ez,1,1,"span",13),m(3,sz,3,2,"ng-container",3),c(),l(4,"button",12),v("mousedown",function(i){return C(e),y(p().onDownButtonMouseDown(i))})("mouseup",function(){return C(e),y(p().onDownButtonMouseUp())})("mouseleave",function(){return C(e),y(p().onDownButtonMouseLeave())})("keydown",function(i){return C(e),y(p().onDownButtonKeyDown(i))})("keyup",function(){return C(e),y(p().onDownButtonKeyUp())}),m(5,oz,1,1,"span",13),m(6,cz,3,2,"ng-container",3),c()()}if(2&t){const e=p();a(1),se(e.incrementButtonClass),d("ngClass",V(12,$I))("disabled",e.disabled),a(1),d("ngIf",e.incrementButtonIcon),a(1),d("ngIf",!e.incrementButtonIcon),a(1),se(e.decrementButtonClass),d("ngClass",V(13,WI))("disabled",e.disabled),a(1),d("ngIf",e.decrementButtonIcon),a(1),d("ngIf",!e.decrementButtonIcon)}}function dz(t,s){1&t&&D(0,"span",14),2&t&&d("ngClass",p(2).incrementButtonIcon)}function pz(t,s){1&t&&D(0,"AngleUpIcon")}function hz(t,s){}function mz(t,s){1&t&&m(0,hz,0,0,"ng-template")}function fz(t,s){if(1&t&&(Q(0),m(1,pz,1,0,"AngleUpIcon",3),m(2,mz,1,0,null,10),J()),2&t){const e=p(2);a(1),d("ngIf",!e.incrementButtonIconTemplate),a(1),d("ngTemplateOutlet",e.incrementButtonIconTemplate)}}function gz(t,s){if(1&t){const e=E();l(0,"button",12),v("mousedown",function(i){return C(e),y(p().onUpButtonMouseDown(i))})("mouseup",function(){return C(e),y(p().onUpButtonMouseUp())})("mouseleave",function(){return C(e),y(p().onUpButtonMouseLeave())})("keydown",function(i){return C(e),y(p().onUpButtonKeyDown(i))})("keyup",function(){return C(e),y(p().onUpButtonKeyUp())}),m(1,dz,1,1,"span",13),m(2,fz,3,2,"ng-container",3),c()}if(2&t){const e=p();se(e.incrementButtonClass),d("ngClass",V(6,$I))("disabled",e.disabled),a(1),d("ngIf",e.incrementButtonIcon),a(1),d("ngIf",!e.incrementButtonIcon)}}function _z(t,s){1&t&&D(0,"span",14),2&t&&d("ngClass",p(2).decrementButtonIcon)}function bz(t,s){1&t&&D(0,"AngleDownIcon")}function vz(t,s){}function Cz(t,s){1&t&&m(0,vz,0,0,"ng-template")}function yz(t,s){if(1&t&&(Q(0),m(1,bz,1,0,"AngleDownIcon",3),m(2,Cz,1,0,null,10),J()),2&t){const e=p(2);a(1),d("ngIf",!e.decrementButtonIconTemplate),a(1),d("ngTemplateOutlet",e.decrementButtonIconTemplate)}}function Tz(t,s){if(1&t){const e=E();l(0,"button",12),v("mousedown",function(i){return C(e),y(p().onDownButtonMouseDown(i))})("mouseup",function(){return C(e),y(p().onDownButtonMouseUp())})("mouseleave",function(){return C(e),y(p().onDownButtonMouseLeave())})("keydown",function(i){return C(e),y(p().onDownButtonKeyDown(i))})("keyup",function(){return C(e),y(p().onDownButtonKeyUp())}),m(1,_z,1,1,"span",13),m(2,yz,3,2,"ng-container",3),c()}if(2&t){const e=p();se(e.decrementButtonClass),d("ngClass",V(6,WI))("disabled",e.disabled),a(1),d("ngIf",e.decrementButtonIcon),a(1),d("ngIf",!e.decrementButtonIcon)}}const wz=function(t,s,e){return{"p-inputnumber p-component":!0,"p-inputnumber-buttons-stacked":t,"p-inputnumber-buttons-horizontal":s,"p-inputnumber-buttons-vertical":e}},Iz={provide:dn,useExisting:Ze(()=>vt),multi:!0};let vt=(()=>{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 q;onFocus=new q;onBlur=new q;onKeyDown=new q;onClear=new q;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,n,i,o){this.document=e,this.el=n,this.cd=i,this.injector=o}ngOnChanges(e){["locale","localeMatcher","mode","currency","currencyDisplay","useGrouping","minFractionDigits","maxFractionDigits","prefix","suffix"].some(i=>!!e[i])&&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(),n=new Map(e.map((i,o)=>[i,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=i=>n.get(i)}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 i=new Intl.NumberFormat(this.locale,this.getOptions()).format(e);return this.prefix&&(i=this.prefix+i),this.suffix&&(i+=this.suffix),i}return e.toString()}return""}parseValue(e){let n=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(n){if("-"===n)return n;let i=+n;return isNaN(i)?null:i}return null}repeat(e,n,i){if(this.readonly)return;let o=n||500;this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(e,40,i)},o),this.spin(e,i)}spin(e,n){let i=this.step*n,o=this.parseValue(this.input?.nativeElement.value)||0,r=this.validateValue(o+i);this.maxlength&&this.maxlength0&&n>h){const w=this.isDecimalMode()&&(this.minFractionDigits||0)0?r:""):r=o.slice(0,n-1)+o.slice(n)}this.updateValue(e,r,null,"delete-single")}else r=this.deleteRange(o,n,i),this.updateValue(e,r,null,"delete-range");break;case 46:if(e.preventDefault(),n===i){const u=o.charAt(n),{decimalCharIndex:h,decimalCharIndexWithoutPrefix:b}=this.getDecimalCharIndexes(o);if(this.isNumeralChar(u)){const T=this.getDecimalLength(o);if(this._group.test(u))this._group.lastIndex=0,r=o.slice(0,n)+o.slice(n+2);else if(this._decimal.test(u))this._decimal.lastIndex=0,T?this.input?.nativeElement.setSelectionRange(n+1,n+1):r=o.slice(0,n)+o.slice(n+1);else if(h>0&&n>h){const w=this.isDecimalMode()&&(this.minFractionDigits||0)0?r:""):r=o.slice(0,n)+o.slice(n+1)}this.updateValue(e,r,null,"delete-back-single")}else r=this.deleteRange(o,n,i),this.updateValue(e,r,null,"delete-range")}this.onKeyDown.emit(e)}onInputKeyPress(e){if(this.readonly)return;let n=e.which||e.keyCode,i=String.fromCharCode(n);const o=this.isDecimalSign(i),r=this.isMinusSign(i);13!=n&&e.preventDefault();const u=this.parseValue(this.input.nativeElement.value+i),h=null!=u?u.toString():"";this.maxlength&&h.length>this.maxlength||(48<=n&&n<=57||r||o)&&this.insert(e,i,{isDecimalSign:o,isMinusSign:r})}onPaste(e){if(!this.disabled&&!this.readonly){e.preventDefault();let n=(e.clipboardData||this.document.defaultView.clipboardData).getData("Text");if(n){this.maxlength&&(n=n.toString().substring(0,this.maxlength));let i=this.parseValue(n);null!=i&&this.insert(e,i.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 n=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:n,decimalCharIndexWithoutPrefix:o}}getCharIndexes(e){const n=e.search(this._decimal);this._decimal.lastIndex=0;const i=e.search(this._minusSign);this._minusSign.lastIndex=0;const o=e.search(this._suffix);this._suffix.lastIndex=0;const r=e.search(this._currency);return this._currency.lastIndex=0,{decimalCharIndex:n,minusCharIndex:i,suffixCharIndex:o,currencyCharIndex:r}}insert(e,n,i={isDecimalSign:!1,isMinusSign:!1}){const o=n.search(this._minusSign);if(this._minusSign.lastIndex=0,!this.allowMinusSign()&&-1!==o)return;let r=this.input?.nativeElement.selectionStart,u=this.input?.nativeElement.selectionEnd,h=this.input?.nativeElement.value.trim();const{decimalCharIndex:b,minusCharIndex:T,suffixCharIndex:w,currencyCharIndex:k}=this.getCharIndexes(h);let L;if(i.isMinusSign)0===r&&(L=h,(-1===T||0!==u)&&(L=this.insertText(h,n,0,u)),this.updateValue(e,L,n,"insert"));else if(i.isDecimalSign)b>0&&r===b?this.updateValue(e,h,n,"insert"):(b>r&&b0&&r>b){if(r+n.length-(b+1)<=O){const P=k>=r?k-1:w>=r?w:h.length;L=h.slice(0,r)+n+h.slice(r+n.length,P)+h.slice(P),this.updateValue(e,L,n,A)}}else L=this.insertText(h,n,r,u),this.updateValue(e,L,n,A)}}insertText(e,n,i,o){if(2===("."===n?n:n.split(".")).length){const u=e.slice(i,o).search(this._decimal);return this._decimal.lastIndex=0,u>0?e.slice(0,i)+this.formatValue(n)+e.slice(o):e||this.formatValue(n)}return o-i===e.length?this.formatValue(n):0===i?n+e.slice(o):o===e.length?e.slice(0,i)+n:e.slice(0,i)+n+e.slice(o)}deleteRange(e,n,i){let o;return o=i-n===e.length?"":0===n?e.slice(i):i===e.length?e.slice(0,n):e.slice(0,n)+e.slice(i),o}initCursor(){let e=this.input?.nativeElement.selectionStart,n=this.input?.nativeElement.value,i=n.length,o=null,r=(this.prefixChar||"").length;n=n.replace(this._prefix,""),e-=r;let u=n.charAt(e);if(this.isNumeralChar(u))return e+r;let h=e-1;for(;h>=0;){if(u=n.charAt(h),this.isNumeralChar(u)){o=h+r;break}h--}if(null!==o)this.input?.nativeElement.setSelectionRange(o+1,o+1);else{for(h=e;hthis.max?this.max:e}updateInput(e,n,i,o){n=n||"";let r=this.input?.nativeElement.value,u=this.formatValue(e),h=r.length;if(u!==o&&(u=this.concatValues(u,o)),0===h){this.input.nativeElement.value=u,this.input.nativeElement.setSelectionRange(0,0);const T=this.initCursor()+n.length;this.input.nativeElement.setSelectionRange(T,T)}else{let b=this.input.nativeElement.selectionStart,T=this.input.nativeElement.selectionEnd;if(this.maxlength&&u.length>this.maxlength&&(u=u.slice(0,this.maxlength),b=Math.min(b,this.maxlength),T=Math.min(T,this.maxlength)),this.maxlength&&this.maxlength0}clearTimer(){this.timer&&clearInterval(this.timer)}getFormatter(){return this.numberFormat}static \u0275fac=function(n){return new(n||t)(M(ct),M(Pe),M(rt),M(Fn))};static \u0275cmp=U({type:t,selectors:[["p-inputNumber"]],contentQueries:function(n,i,o){if(1&n&&Ye(o,ae,4),2&n){let r;H(r=G())&&(i.templates=r)}},viewQuery:function(n,i){if(1&n&&K(Kq,5),2&n){let o;H(o=G())&&(i.input=o.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(n,i){2&n&&Jn("p-inputwrapper-filled",i.filled)("p-inputwrapper-focus",i.focused)("p-inputnumber-clearable",i.showClear&&"vertical"!=i.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:[Qe([Iz]),wn],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(n,i){1&n&&(l(0,"span",0)(1,"input",1,2),v("input",function(r){return i.onUserInput(r)})("keydown",function(r){return i.onInputKeyDown(r)})("keypress",function(r){return i.onInputKeyPress(r)})("paste",function(r){return i.onPaste(r)})("click",function(){return i.onInputClick()})("focus",function(r){return i.onInputFocus(r)})("blur",function(r){return i.onInputBlur(r)}),c(),m(3,Xq,3,2,"ng-container",3),m(4,uz,7,14,"span",4),m(5,gz,3,7,"button",5),m(6,Tz,3,7,"button",5),c()),2&n&&(se(i.styleClass),d("ngClass",Bt(28,wz,i.showButtons&&"stacked"===i.buttonLayout,i.showButtons&&"horizontal"===i.buttonLayout,i.showButtons&&"vertical"===i.buttonLayout))("ngStyle",i.style),a(1),se(i.inputStyleClass),d("ngClass","p-inputnumber-input")("ngStyle",i.inputStyle)("value",i.formattedValue())("disabled",i.disabled)("readonly",i.readonly),F("placeholder",i.placeholder)("title",i.title)("id",i.inputId)("size",i.size)("name",i.name)("autocomplete",i.autocomplete)("maxlength",i.maxlength)("tabindex",i.tabindex)("aria-label",i.ariaLabel)("aria-required",i.ariaRequired)("required",i.required)("min",i.min)("max",i.max),a(2),d("ngIf","vertical"!=i.buttonLayout&&i.showClear&&(i.value||0===i.value)),a(1),d("ngIf",i.showButtons&&"stacked"===i.buttonLayout),a(1),d("ngIf",i.showButtons&&"stacked"!==i.buttonLayout),a(1),d("ngIf",i.showButtons&&"stacked"!==i.buttonLayout))},dependencies:function(){return[Fe,ne,dt,nt,zI,Sn,xn,jI,O_]},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})(),_p=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=me({imports:[Ne,UI,nc,xn,jI,O_,ze]})}return t})(),KI=(()=>{class t extends _t{static \u0275fac=function(){let e;return function(i){return(e||(e=we(t)))(i||t)}}();static \u0275cmp=U({type:t,selectors:[["AngleDoubleLeftIcon"]],standalone:!0,features:[_e,ot],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(n,i){1&n&&(lt(),l(0,"svg",0),D(1,"path",1),c()),2&n&&(se(i.getClassNames()),F("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role))},encapsulation:2})}return t})(),QI=(()=>{class t extends _t{static \u0275fac=function(){let e;return function(i){return(e||(e=we(t)))(i||t)}}();static \u0275cmp=U({type:t,selectors:[["AngleDoubleRightIcon"]],standalone:!0,features:[_e,ot],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(n,i){1&n&&(lt(),l(0,"svg",0),D(1,"path",1),c()),2&n&&(se(i.getClassNames()),F("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role))},encapsulation:2})}return t})(),JI=(()=>{class t extends _t{static \u0275fac=function(){let e;return function(i){return(e||(e=we(t)))(i||t)}}();static \u0275cmp=U({type:t,selectors:[["AngleLeftIcon"]],standalone:!0,features:[_e,ot],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(n,i){1&n&&(lt(),l(0,"svg",0),D(1,"path",1),c()),2&n&&(se(i.getClassNames()),F("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role))},encapsulation:2})}return t})(),sc=(()=>{class t extends _t{static \u0275fac=function(){let e;return function(i){return(e||(e=we(t)))(i||t)}}();static \u0275cmp=U({type:t,selectors:[["AngleRightIcon"]],standalone:!0,features:[_e,ot],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(n,i){1&n&&(lt(),l(0,"svg",0),D(1,"path",1),c()),2&n&&(se(i.getClassNames()),F("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role))},encapsulation:2})}return t})();function Sz(t,s){1&t&&Z(0)}const A_=function(t){return{$implicit:t}};function xz(t,s){if(1&t&&(l(0,"div",15),m(1,Sz,1,0,"ng-container",16),c()),2&t){const e=p(2);a(1),d("ngTemplateOutlet",e.templateLeft)("ngTemplateOutletContext",W(2,A_,e.paginatorState))}}function Dz(t,s){if(1&t&&(l(0,"span",17),_(1),c()),2&t){const e=p(2);a(1),S(e.currentPageReport)}}function Mz(t,s){1&t&&D(0,"AngleDoubleLeftIcon",19),2&t&&d("styleClass","p-paginator-icon")}function kz(t,s){}function Ez(t,s){1&t&&m(0,kz,0,0,"ng-template")}function Lz(t,s){if(1&t&&(l(0,"span",20),m(1,Ez,1,0,null,21),c()),2&t){const e=p(3);a(1),d("ngTemplateOutlet",e.firstPageLinkIconTemplate)}}const bp=function(t){return{"p-disabled":t}};function Rz(t,s){if(1&t){const e=E();l(0,"button",18),v("click",function(i){return C(e),y(p(2).changePageToFirst(i))}),m(1,Mz,1,1,"AngleDoubleLeftIcon",6),m(2,Lz,2,1,"span",7),c()}if(2&t){const e=p(2);d("disabled",e.isFirstPage()||e.empty())("ngClass",W(4,bp,e.isFirstPage()||e.empty())),a(1),d("ngIf",!e.firstPageLinkIconTemplate),a(1),d("ngIf",e.firstPageLinkIconTemplate)}}function Oz(t,s){1&t&&D(0,"AngleLeftIcon",19),2&t&&d("styleClass","p-paginator-icon")}function Az(t,s){}function Pz(t,s){1&t&&m(0,Az,0,0,"ng-template")}function Fz(t,s){if(1&t&&(l(0,"span",20),m(1,Pz,1,0,null,21),c()),2&t){const e=p(2);a(1),d("ngTemplateOutlet",e.previousPageLinkIconTemplate)}}const Nz=function(t){return{"p-highlight":t}};function Vz(t,s){if(1&t){const e=E();l(0,"button",24),v("click",function(i){const r=C(e).$implicit;return y(p(3).onPageLinkClick(i,r-1))}),_(1),c()}if(2&t){const e=s.$implicit,n=p(3);d("ngClass",W(2,Nz,e-1==n.getPage())),a(1),x(" ",n.getLocalization(e)," ")}}function Bz(t,s){if(1&t&&(l(0,"span",22),m(1,Vz,2,4,"button",23),c()),2&t){const e=p(2);a(1),d("ngForOf",e.pageLinks)}}function Hz(t,s){1&t&&_(0),2&t&&S(p(3).currentPageReport)}function Gz(t,s){if(1&t){const e=E();l(0,"p-dropdown",25),v("onChange",function(i){return C(e),y(p(2).onPageDropdownChange(i))}),m(1,Hz,1,1,"ng-template",26),c()}if(2&t){const e=p(2);d("options",e.pageItems)("ngModel",e.getPage())("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight)}}function qz(t,s){1&t&&D(0,"AngleRightIcon",19),2&t&&d("styleClass","p-paginator-icon")}function zz(t,s){}function Uz(t,s){1&t&&m(0,zz,0,0,"ng-template")}function jz(t,s){if(1&t&&(l(0,"span",20),m(1,Uz,1,0,null,21),c()),2&t){const e=p(2);a(1),d("ngTemplateOutlet",e.nextPageLinkIconTemplate)}}function $z(t,s){1&t&&D(0,"AngleDoubleRightIcon",19),2&t&&d("styleClass","p-paginator-icon")}function Wz(t,s){}function Kz(t,s){1&t&&m(0,Wz,0,0,"ng-template")}function Qz(t,s){if(1&t&&(l(0,"span",20),m(1,Kz,1,0,null,21),c()),2&t){const e=p(3);a(1),d("ngTemplateOutlet",e.lastPageLinkIconTemplate)}}function Jz(t,s){if(1&t){const e=E();l(0,"button",27),v("click",function(i){return C(e),y(p(2).changePageToLast(i))}),m(1,$z,1,1,"AngleDoubleRightIcon",6),m(2,Qz,2,1,"span",7),c()}if(2&t){const e=p(2);d("disabled",e.isLastPage()||e.empty())("ngClass",W(4,bp,e.isLastPage()||e.empty())),a(1),d("ngIf",!e.lastPageLinkIconTemplate),a(1),d("ngIf",e.lastPageLinkIconTemplate)}}function Zz(t,s){if(1&t){const e=E();l(0,"p-inputNumber",28),v("ngModelChange",function(i){return C(e),y(p(2).changePage(i-1))}),c()}if(2&t){const e=p(2);d("ngModel",e.currentPage())("disabled",e.empty())}}function Yz(t,s){1&t&&Z(0)}function Xz(t,s){if(1&t&&m(0,Yz,1,0,"ng-container",16),2&t){const e=s.$implicit;d("ngTemplateOutlet",p(4).dropdownItemTemplate)("ngTemplateOutletContext",W(2,A_,e))}}function eU(t,s){1&t&&(Q(0),m(1,Xz,1,4,"ng-template",31),J())}function tU(t,s){if(1&t){const e=E();l(0,"p-dropdown",29),v("ngModelChange",function(i){return C(e),y(p(2).rows=i)})("onChange",function(i){return C(e),y(p(2).onRppChange(i))}),m(1,eU,2,0,"ng-container",30),c()}if(2&t){const e=p(2);d("options",e.rowsPerPageItems)("ngModel",e.rows)("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight),a(1),d("ngIf",e.dropdownItemTemplate)}}function nU(t,s){1&t&&Z(0)}function iU(t,s){if(1&t&&(l(0,"div",32),m(1,nU,1,0,"ng-container",16),c()),2&t){const e=p(2);a(1),d("ngTemplateOutlet",e.templateRight)("ngTemplateOutletContext",W(2,A_,e.paginatorState))}}function sU(t,s){if(1&t){const e=E();l(0,"div",1),m(1,xz,2,4,"div",2),m(2,Dz,2,1,"span",3),m(3,Rz,3,6,"button",4),l(4,"button",5),v("click",function(i){return C(e),y(p().changePageToPrev(i))}),m(5,Oz,1,1,"AngleLeftIcon",6),m(6,Fz,2,1,"span",7),c(),m(7,Bz,2,1,"span",8),m(8,Gz,2,5,"p-dropdown",9),l(9,"button",10),v("click",function(i){return C(e),y(p().changePageToNext(i))}),m(10,qz,1,1,"AngleRightIcon",6),m(11,jz,2,1,"span",7),c(),m(12,Jz,3,6,"button",11),m(13,Zz,1,2,"p-inputNumber",12),m(14,tU,2,6,"p-dropdown",13),m(15,iU,2,4,"div",14),c()}if(2&t){const e=p();se(e.styleClass),d("ngStyle",e.style)("ngClass","p-paginator p-component"),a(1),d("ngIf",e.templateLeft),a(1),d("ngIf",e.showCurrentPageReport),a(1),d("ngIf",e.showFirstLastIcon),a(1),d("disabled",e.isFirstPage()||e.empty())("ngClass",W(21,bp,e.isFirstPage()||e.empty())),a(1),d("ngIf",!e.previousPageLinkIconTemplate),a(1),d("ngIf",e.previousPageLinkIconTemplate),a(1),d("ngIf",e.showPageLinks),a(1),d("ngIf",e.showJumpToPageDropdown),a(1),d("disabled",e.isLastPage()||e.empty())("ngClass",W(23,bp,e.isLastPage()||e.empty())),a(1),d("ngIf",!e.nextPageLinkIconTemplate),a(1),d("ngIf",e.nextPageLinkIconTemplate),a(1),d("ngIf",e.showFirstLastIcon),a(1),d("ngIf",e.showJumpToPageInput),a(1),d("ngIf",e.rowsPerPageOptions),a(1),d("ngIf",e.templateRight)}}let ZI=(()=>{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 q;templates;firstPageLinkIconTemplate;previousPageLinkIconTemplate;lastPageLinkIconTemplate;nextPageLinkIconTemplate;pageLinks;pageItems;rowsPerPageItems;paginatorState;_first=0;_page=0;constructor(e){this.cd=e}ngOnInit(){this.updatePaginatorState()}getLocalization(e){const n=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),i=new Map(n.map((o,r)=>[r,o]));return e>9?String(e).split("").map(r=>i.get(Number(r))).join(""):i.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(),n=Math.min(this.pageLinkSize,e),i=Math.max(0,Math.ceil(this.getPage()-n/2)),o=Math.min(e-1,i+n-1);return i=Math.max(0,i-(this.pageLinkSize-(o-i+1))),[i,o]}updatePageLinks(){this.pageLinks=[];let e=this.calculatePageLinkBoundaries(),i=e[1];for(let o=e[0];o<=i;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,n){this.changePage(n),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(n){return new(n||t)(M(rt))};static \u0275cmp=U({type:t,selectors:[["p-paginator"]],contentQueries:function(n,i,o){if(1&n&&Ye(o,ae,4),2&n){let r;H(r=G())&&(i.templates=r)}},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:[wn],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(n,i){1&n&&m(0,sU,16,25,"div",0),2&n&&d("ngIf",!!i.alwaysShow||i.pageLinks&&i.pageLinks.length>1)},dependencies:function(){return[Fe,ut,ne,dt,nt,Gt,ae,vt,xe,Ce,bt,KI,QI,JI,sc]},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})(),YI=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=me({imports:[Ne,gp,_p,Yd,ze,Cn,KI,QI,JI,sc,gp,_p,Yd,ze]})}return t})(),oU=(()=>{class t extends _t{pathId;ngOnInit(){this.pathId="url(#"+Ft()+")"}static \u0275fac=function(){let e;return function(i){return(e||(e=we(t)))(i||t)}}();static \u0275cmp=U({type:t,selectors:[["ThLargeIcon"]],standalone:!0,features:[_e,ot],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","M1.90909 6.36364H4.45455C4.96087 6.36364 5.44645 6.1625 5.80448 5.80448C6.1625 5.44645 6.36364 4.96087 6.36364 4.45455V1.90909C6.36364 1.40277 6.1625 0.917184 5.80448 0.55916C5.44645 0.201136 4.96087 0 4.45455 0H1.90909C1.40277 0 0.917184 0.201136 0.55916 0.55916C0.201136 0.917184 0 1.40277 0 1.90909V4.45455C0 4.96087 0.201136 5.44645 0.55916 5.80448C0.917184 6.1625 1.40277 6.36364 1.90909 6.36364ZM1.46154 1.46154C1.58041 1.34268 1.741 1.27492 1.90909 1.27273H4.45455C4.62264 1.27492 4.78322 1.34268 4.90209 1.46154C5.02096 1.58041 5.08871 1.741 5.09091 1.90909V4.45455C5.08871 4.62264 5.02096 4.78322 4.90209 4.90209C4.78322 5.02096 4.62264 5.08871 4.45455 5.09091H1.90909C1.741 5.08871 1.58041 5.02096 1.46154 4.90209C1.34268 4.78322 1.27492 4.62264 1.27273 4.45455V1.90909C1.27492 1.741 1.34268 1.58041 1.46154 1.46154ZM1.90909 14H4.45455C4.96087 14 5.44645 13.7989 5.80448 13.4408C6.1625 13.0828 6.36364 12.5972 6.36364 12.0909V9.54544C6.36364 9.03912 6.1625 8.55354 5.80448 8.19551C5.44645 7.83749 4.96087 7.63635 4.45455 7.63635H1.90909C1.40277 7.63635 0.917184 7.83749 0.55916 8.19551C0.201136 8.55354 0 9.03912 0 9.54544V12.0909C0 12.5972 0.201136 13.0828 0.55916 13.4408C0.917184 13.7989 1.40277 14 1.90909 14ZM1.46154 9.0979C1.58041 8.97903 1.741 8.91128 1.90909 8.90908H4.45455C4.62264 8.91128 4.78322 8.97903 4.90209 9.0979C5.02096 9.21677 5.08871 9.37735 5.09091 9.54544V12.0909C5.08871 12.259 5.02096 12.4196 4.90209 12.5384C4.78322 12.6573 4.62264 12.7251 4.45455 12.7273H1.90909C1.741 12.7251 1.58041 12.6573 1.46154 12.5384C1.34268 12.4196 1.27492 12.259 1.27273 12.0909V9.54544C1.27492 9.37735 1.34268 9.21677 1.46154 9.0979ZM12.0909 6.36364H9.54544C9.03912 6.36364 8.55354 6.1625 8.19551 5.80448C7.83749 5.44645 7.63635 4.96087 7.63635 4.45455V1.90909C7.63635 1.40277 7.83749 0.917184 8.19551 0.55916C8.55354 0.201136 9.03912 0 9.54544 0H12.0909C12.5972 0 13.0828 0.201136 13.4408 0.55916C13.7989 0.917184 14 1.40277 14 1.90909V4.45455C14 4.96087 13.7989 5.44645 13.4408 5.80448C13.0828 6.1625 12.5972 6.36364 12.0909 6.36364ZM9.54544 1.27273C9.37735 1.27492 9.21677 1.34268 9.0979 1.46154C8.97903 1.58041 8.91128 1.741 8.90908 1.90909V4.45455C8.91128 4.62264 8.97903 4.78322 9.0979 4.90209C9.21677 5.02096 9.37735 5.08871 9.54544 5.09091H12.0909C12.259 5.08871 12.4196 5.02096 12.5384 4.90209C12.6573 4.78322 12.7251 4.62264 12.7273 4.45455V1.90909C12.7251 1.741 12.6573 1.58041 12.5384 1.46154C12.4196 1.34268 12.259 1.27492 12.0909 1.27273H9.54544ZM9.54544 14H12.0909C12.5972 14 13.0828 13.7989 13.4408 13.4408C13.7989 13.0828 14 12.5972 14 12.0909V9.54544C14 9.03912 13.7989 8.55354 13.4408 8.19551C13.0828 7.83749 12.5972 7.63635 12.0909 7.63635H9.54544C9.03912 7.63635 8.55354 7.83749 8.19551 8.19551C7.83749 8.55354 7.63635 9.03912 7.63635 9.54544V12.0909C7.63635 12.5972 7.83749 13.0828 8.19551 13.4408C8.55354 13.7989 9.03912 14 9.54544 14ZM9.0979 9.0979C9.21677 8.97903 9.37735 8.91128 9.54544 8.90908H12.0909C12.259 8.91128 12.4196 8.97903 12.5384 9.0979C12.6573 9.21677 12.7251 9.37735 12.7273 9.54544V12.0909C12.7251 12.259 12.6573 12.4196 12.5384 12.5384C12.4196 12.6573 12.259 12.7251 12.0909 12.7273H9.54544C9.37735 12.7251 9.21677 12.6573 9.0979 12.5384C8.97903 12.4196 8.91128 12.259 8.90908 12.0909V9.54544C8.91128 9.37735 8.97903 9.21677 9.0979 9.0979Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,i){1&n&&(lt(),l(0,"svg",0)(1,"g"),D(2,"path",1),c(),l(3,"defs")(4,"clipPath",2),D(5,"rect",3),c()()()),2&n&&(se(i.getClassNames()),F("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role),a(1),F("clip-path",i.pathId),a(3),d("id",i.pathId))},encapsulation:2})}return t})(),XI=(()=>{class t extends _t{static \u0275fac=function(){let e;return function(i){return(e||(e=we(t)))(i||t)}}();static \u0275cmp=U({type:t,selectors:[["BarsIcon"]],standalone:!0,features:[_e,ot],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","M13.3226 3.6129H0.677419C0.497757 3.6129 0.325452 3.54152 0.198411 3.41448C0.0713707 3.28744 0 3.11514 0 2.93548C0 2.75581 0.0713707 2.58351 0.198411 2.45647C0.325452 2.32943 0.497757 2.25806 0.677419 2.25806H13.3226C13.5022 2.25806 13.6745 2.32943 13.8016 2.45647C13.9286 2.58351 14 2.75581 14 2.93548C14 3.11514 13.9286 3.28744 13.8016 3.41448C13.6745 3.54152 13.5022 3.6129 13.3226 3.6129ZM13.3226 7.67741H0.677419C0.497757 7.67741 0.325452 7.60604 0.198411 7.479C0.0713707 7.35196 0 7.17965 0 6.99999C0 6.82033 0.0713707 6.64802 0.198411 6.52098C0.325452 6.39394 0.497757 6.32257 0.677419 6.32257H13.3226C13.5022 6.32257 13.6745 6.39394 13.8016 6.52098C13.9286 6.64802 14 6.82033 14 6.99999C14 7.17965 13.9286 7.35196 13.8016 7.479C13.6745 7.60604 13.5022 7.67741 13.3226 7.67741ZM0.677419 11.7419H13.3226C13.5022 11.7419 13.6745 11.6706 13.8016 11.5435C13.9286 11.4165 14 11.2442 14 11.0645C14 10.8848 13.9286 10.7125 13.8016 10.5855C13.6745 10.4585 13.5022 10.3871 13.3226 10.3871H0.677419C0.497757 10.3871 0.325452 10.4585 0.198411 10.5855C0.0713707 10.7125 0 10.8848 0 11.0645C0 11.2442 0.0713707 11.4165 0.198411 11.5435C0.325452 11.6706 0.497757 11.7419 0.677419 11.7419Z","fill","currentColor"]],template:function(n,i){1&n&&(lt(),l(0,"svg",0),D(1,"path",1),c()),2&n&&(se(i.getClassNames()),F("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role))},encapsulation:2})}return t})();function rU(t,s){1&t&&D(0,"i"),2&t&&se("p-dataview-loading-icon pi-spin "+p(2).loadingIcon)}function aU(t,s){1&t&&D(0,"SpinnerIcon",16),2&t&&d("spin",!0)("styleClass","p-dataview-loading-icon")}function lU(t,s){}function cU(t,s){1&t&&m(0,lU,0,0,"ng-template")}function uU(t,s){if(1&t&&(Q(0),m(1,aU,1,2,"SpinnerIcon",14),m(2,cU,1,0,null,15),J()),2&t){const e=p(2);a(1),d("ngIf",!e.loadingIconTemplate),a(1),d("ngTemplateOutlet",e.loadingIconTemplate)}}function dU(t,s){if(1&t&&(l(0,"div",10)(1,"div",11),m(2,rU,1,2,"i",12),m(3,uU,3,2,"ng-container",13),c()()),2&t){const e=p();a(2),d("ngIf",e.loadingIcon),a(1),d("ngIf",!e.loadingIcon)}}function pU(t,s){1&t&&Z(0)}function hU(t,s){if(1&t&&(l(0,"div",17),xt(1),m(2,pU,1,0,"ng-container",15),c()),2&t){const e=p();a(2),d("ngTemplateOutlet",e.headerTemplate)}}function mU(t,s){if(1&t){const e=E();l(0,"p-paginator",18),v("onPageChange",function(i){return C(e),y(p().paginate(i))}),c()}if(2&t){const e=p();d("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("dropdownAppendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("templateLeft",e.paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showPageLinks",e.showPageLinks)("styleClass",e.paginatorStyleClass)}}function fU(t,s){1&t&&Z(0)}const gU=function(t,s){return{$implicit:t,rowIndex:s}};function _U(t,s){if(1&t&&m(0,fU,1,0,"ng-container",19),2&t){const e=s.$implicit,n=s.index;d("ngTemplateOutlet",p().itemTemplate)("ngTemplateOutletContext",Se(2,gU,e,n))}}function bU(t,s){if(1&t&&(Q(0),_(1),J()),2&t){const e=p(2);a(1),x(" ",e.emptyMessageLabel," ")}}function vU(t,s){1&t&&Z(0,null,23)}function CU(t,s){if(1&t&&(l(0,"div",20)(1,"div",21),m(2,bU,2,1,"ng-container",22),m(3,vU,2,0,"ng-container",15),c()()),2&t){const e=p();a(2),d("ngIf",!e.emptyMessageTemplate)("ngIfElse",e.emptyFilter),a(1),d("ngTemplateOutlet",e.emptyMessageTemplate)}}function yU(t,s){if(1&t){const e=E();l(0,"p-paginator",24),v("onPageChange",function(i){return C(e),y(p().paginate(i))}),c()}if(2&t){const e=p();d("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("dropdownAppendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("templateLeft",e.paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showPageLinks",e.showPageLinks)("styleClass",e.paginatorStyleClass)}}function TU(t,s){1&t&&Z(0)}function wU(t,s){if(1&t&&(l(0,"div",25),xt(1,1),m(2,TU,1,0,"ng-container",15),c()),2&t){const e=p();a(2),d("ngTemplateOutlet",e.footerTemplate)}}const IU=[[["p-header"]],[["p-footer"]]],SU=function(t,s){return{"p-dataview p-component":!0,"p-dataview-list":t,"p-dataview-grid":s}},xU=["p-header","p-footer"];let eS=(()=>{class t{el;cd;filterService;config;paginator;rows;totalRecords;pageLinks=5;rowsPerPageOptions;paginatorPosition="bottom";paginatorStyleClass;alwaysShowPaginator=!0;paginatorDropdownAppendTo;paginatorDropdownScrollHeight="200px";currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showJumpToPageDropdown;showFirstLastIcon=!0;showPageLinks=!0;lazy;lazyLoadOnInit=!0;emptyMessage="";style;styleClass;gridStyleClass="";trackBy=(e,n)=>n;filterBy;filterLocale;loading;loadingIcon;first=0;sortField;sortOrder;value;get layout(){return this._layout}set layout(e){this._layout=e,this.initialized&&this.changeLayout(e)}onLazyLoad=new q;onPage=new q;onSort=new q;onChangeLayout=new q;header;footer;templates;_value;listItemTemplate;gridItemTemplate;itemTemplate;headerTemplate;emptyMessageTemplate;footerTemplate;paginatorLeftTemplate;paginatorRightTemplate;paginatorDropdownItemTemplate;loadingIconTemplate;listIconTemplate;gridIconTemplate;filteredValue;filterValue;initialized;_layout="list";translationSubscription;get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(jt.EMPTY_MESSAGE)}constructor(e,n,i,o){this.el=e,this.cd=n,this.filterService=i,this.config=o}ngOnInit(){this.lazy&&this.lazyLoadOnInit&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.cd.markForCheck()}),this.initialized=!0}ngOnChanges(e){e.value&&(this._value=e.value.currentValue,this.updateTotalRecords(),!this.lazy&&this.hasFilter()&&this.filter(this.filterValue)),(e.sortField||e.sortOrder)&&(!this.lazy||this.initialized)&&this.sort()}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"listItem":this.listItemTemplate=e.template;break;case"gridItem":this.gridItemTemplate=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"empty":this.emptyMessageTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"loadingicon":this.loadingIconTemplate=e.template;break;case"listicon":this.listIconTemplate=e.template;break;case"gridicon":this.gridIconTemplate=e.template}}),this.updateItemTemplate()}updateItemTemplate(){switch(this.layout){case"list":this.itemTemplate=this.listItemTemplate;break;case"grid":this.itemTemplate=this.gridItemTemplate}}changeLayout(e){this._layout=e,this.onChangeLayout.emit({layout:this.layout}),this.updateItemTemplate(),this.cd.markForCheck()}updateTotalRecords(){this.totalRecords=this.lazy?this.totalRecords:this._value?this._value.length:0}paginate(e){this.first=e.first,this.rows=e.rows,this.lazy&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.onPage.emit({first:this.first,rows:this.rows})}sort(){this.first=0,this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.value.sort((e,n)=>{let i=Y.resolveFieldData(e,this.sortField),o=Y.resolveFieldData(n,this.sortField),r=null;return r=null==i&&null!=o?-1:null!=i&&null==o?1:null==i&&null==o?0:"string"==typeof i&&"string"==typeof o?i.localeCompare(o):io?1:0,this.sortOrder*r}),this.hasFilter()&&this.filter(this.filterValue)),this.onSort.emit({sortField:this.sortField,sortOrder:this.sortOrder})}isEmpty(){let e=this.filteredValue||this.value;return null==e||0==e.length}createLazyLoadMetadata(){return{first:this.first,rows:this.rows,sortField:this.sortField,sortOrder:this.sortOrder}}getBlockableElement(){return this.el.nativeElement.children[0]}filter(e,n="contains"){if(this.filterValue=e,this.value&&this.value.length){let i=this.filterBy.split(",");this.filteredValue=this.filterService.filter(this.value,i,e,n,this.filterLocale),this.filteredValue.length===this.value.length&&(this.filteredValue=null),this.paginator&&(this.first=0,this.totalRecords=this.filteredValue?this.filteredValue.length:this.value?this.value.length:0),this.cd.markForCheck()}}hasFilter(){return this.filterValue&&this.filterValue.trim().length>0}ngOnDestroy(){this.translationSubscription&&this.translationSubscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)(M(Pe),M(rt),M(ec),M(Hn))};static \u0275cmp=U({type:t,selectors:[["p-dataView"]],contentQueries:function(n,i,o){if(1&n&&(Ye(o,pa,5),Ye(o,tc,5),Ye(o,ae,4)),2&n){let r;H(r=G())&&(i.header=r.first),H(r=G())&&(i.footer=r.first),H(r=G())&&(i.templates=r)}},hostAttrs:[1,"p-element"],inputs:{paginator:"paginator",rows:"rows",totalRecords:"totalRecords",pageLinks:"pageLinks",rowsPerPageOptions:"rowsPerPageOptions",paginatorPosition:"paginatorPosition",paginatorStyleClass:"paginatorStyleClass",alwaysShowPaginator:"alwaysShowPaginator",paginatorDropdownAppendTo:"paginatorDropdownAppendTo",paginatorDropdownScrollHeight:"paginatorDropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:"showCurrentPageReport",showJumpToPageDropdown:"showJumpToPageDropdown",showFirstLastIcon:"showFirstLastIcon",showPageLinks:"showPageLinks",lazy:"lazy",lazyLoadOnInit:"lazyLoadOnInit",emptyMessage:"emptyMessage",style:"style",styleClass:"styleClass",gridStyleClass:"gridStyleClass",trackBy:"trackBy",filterBy:"filterBy",filterLocale:"filterLocale",loading:"loading",loadingIcon:"loadingIcon",first:"first",sortField:"sortField",sortOrder:"sortOrder",value:"value",layout:"layout"},outputs:{onLazyLoad:"onLazyLoad",onPage:"onPage",onSort:"onSort",onChangeLayout:"onChangeLayout"},features:[wn],ngContentSelectors:xU,decls:11,vars:20,consts:[[3,"ngClass","ngStyle"],["class","p-dataview-loading",4,"ngIf"],["class","p-dataview-header",4,"ngIf"],["styleClass","p-paginator-top",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","dropdownAppendTo","dropdownScrollHeight","templateLeft","templateRight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","styleClass","onPageChange",4,"ngIf"],[1,"p-dataview-content"],[1,"p-grid","p-nogutter","grid","grid-nogutter",3,"ngClass"],["ngFor","",3,"ngForOf","ngForTrackBy"],["class","p-col col",4,"ngIf"],["styleClass","p-paginator-bottom",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","dropdownAppendTo","dropdownScrollHeight","templateLeft","templateRight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","styleClass","onPageChange",4,"ngIf"],["class","p-dataview-footer",4,"ngIf"],[1,"p-dataview-loading"],[1,"p-dataview-loading-overlay","p-component-overlay"],[3,"class",4,"ngIf"],[4,"ngIf"],[3,"spin","styleClass",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"spin","styleClass"],[1,"p-dataview-header"],["styleClass","p-paginator-top",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","dropdownAppendTo","dropdownScrollHeight","templateLeft","templateRight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","styleClass","onPageChange"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-col","col"],[1,"p-dataview-emptymessage"],[4,"ngIf","ngIfElse"],["emptyFilter",""],["styleClass","p-paginator-bottom",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","dropdownAppendTo","dropdownScrollHeight","templateLeft","templateRight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","styleClass","onPageChange"],[1,"p-dataview-footer"]],template:function(n,i){1&n&&(_n(IU),l(0,"div",0),m(1,dU,4,2,"div",1),m(2,hU,3,1,"div",2),m(3,mU,1,17,"p-paginator",3),l(4,"div",4)(5,"div",5),m(6,_U,1,5,"ng-template",6),f(7,"slice"),m(8,CU,4,3,"div",7),c()(),m(9,yU,1,17,"p-paginator",8),m(10,wU,3,1,"div",9),c()),2&n&&(se(i.styleClass),d("ngClass",Se(17,SU,"list"===i.layout,"grid"===i.layout))("ngStyle",i.style),a(1),d("ngIf",i.loading),a(1),d("ngIf",i.header||i.headerTemplate),a(1),d("ngIf",i.paginator&&("top"===i.paginatorPosition||"both"==i.paginatorPosition)),a(2),d("ngClass",i.gridStyleClass),a(1),d("ngForOf",i.paginator?function g2(t,s,e,n,i){const o=t+tt,r=X(),u=vr(r,o);return Ml(r,o)?h2(r,Wn(),s,u.transform,e,n,i,u):u.transform(e,n,i)}(7,13,i.filteredValue||i.value,i.lazy?0:i.first,(i.lazy?0:i.first)+i.rows):i.filteredValue||i.value)("ngForTrackBy",i.trackBy),a(2),d("ngIf",i.isEmpty()&&!i.loading),a(1),d("ngIf",i.paginator&&("bottom"===i.paginatorPosition||"both"==i.paginatorPosition)),a(1),d("ngIf",i.footer||i.footerTemplate))},dependencies:function(){return[Fe,ut,ne,dt,nt,ZI,mo,JT]},styles:["@layer primeng{.p-dataview{position:relative}.p-dataview .p-dataview-loading-overlay{position:absolute;display:flex;align-items:center;justify-content:center;z-index:2}}\n"],encapsulation:2,changeDetection:0})}return t})(),kU=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=me({imports:[Ne,ze,YI,mo,XI,oU,ze]})}return t})(),EU=(()=>{class t{el;pFocusTrapDisabled=!1;constructor(e){this.el=e}onkeydown(e){if(!0!==this.pFocusTrapDisabled){e.preventDefault();const n=R.getNextFocusableElement(this.el.nativeElement,e.shiftKey);n&&(n.focus(),n.select?.())}}static \u0275fac=function(n){return new(n||t)(M(Pe))};static \u0275dir=fe({type:t,selectors:[["","pFocusTrap",""]],hostAttrs:[1,"p-element"],hostBindings:function(n,i){1&n&&v("keydown.tab",function(r){return i.onkeydown(r)})("keydown.shift.tab",function(r){return i.onkeydown(r)})},inputs:{pFocusTrapDisabled:"pFocusTrapDisabled"}})}return t})(),LU=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=me({imports:[Ne]})}return t})(),tS=(()=>{class t extends _t{pathId;ngOnInit(){this.pathId="url(#"+Ft()+")"}static \u0275fac=function(){let e;return function(i){return(e||(e=we(t)))(i||t)}}();static \u0275cmp=U({type:t,selectors:[["WindowMaximizeIcon"]],standalone:!0,features:[_e,ot],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 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14ZM9.77805 7.42192C9.89013 7.534 10.0415 7.59788 10.2 7.59995C10.3585 7.59788 10.5099 7.534 10.622 7.42192C10.7341 7.30985 10.798 7.15844 10.8 6.99995V3.94242C10.8066 3.90505 10.8096 3.86689 10.8089 3.82843C10.8079 3.77159 10.7988 3.7157 10.7824 3.6623C10.756 3.55552 10.701 3.45698 10.622 3.37798C10.5099 3.2659 10.3585 3.20202 10.2 3.19995H7.00002C6.84089 3.19995 6.68828 3.26317 6.57576 3.37569C6.46324 3.48821 6.40002 3.64082 6.40002 3.79995C6.40002 3.95908 6.46324 4.11169 6.57576 4.22422C6.68828 4.33674 6.84089 4.39995 7.00002 4.39995H8.80006L6.19997 7.00005C6.10158 7.11005 6.04718 7.25246 6.04718 7.40005C6.04718 7.54763 6.10158 7.69004 6.19997 7.80005C6.30202 7.91645 6.44561 7.98824 6.59997 8.00005C6.75432 7.98824 6.89791 7.91645 6.99997 7.80005L9.60002 5.26841V6.99995C9.6021 7.15844 9.66598 7.30985 9.77805 7.42192ZM1.4 14H3.8C4.17066 13.9979 4.52553 13.8498 4.78763 13.5877C5.04973 13.3256 5.1979 12.9707 5.2 12.6V10.2C5.1979 9.82939 5.04973 9.47452 4.78763 9.21242C4.52553 8.95032 4.17066 8.80215 3.8 8.80005H1.4C1.02934 8.80215 0.674468 8.95032 0.412371 9.21242C0.150274 9.47452 0.00210008 9.82939 0 10.2V12.6C0.00210008 12.9707 0.150274 13.3256 0.412371 13.5877C0.674468 13.8498 1.02934 13.9979 1.4 14ZM1.25858 10.0586C1.29609 10.0211 1.34696 10 1.4 10H3.8C3.85304 10 3.90391 10.0211 3.94142 10.0586C3.97893 10.0961 4 10.147 4 10.2V12.6C4 12.6531 3.97893 12.704 3.94142 12.7415C3.90391 12.779 3.85304 12.8 3.8 12.8H1.4C1.34696 12.8 1.29609 12.779 1.25858 12.7415C1.22107 12.704 1.2 12.6531 1.2 12.6V10.2C1.2 10.147 1.22107 10.0961 1.25858 10.0586Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,i){1&n&&(lt(),l(0,"svg",0)(1,"g"),D(2,"path",1),c(),l(3,"defs")(4,"clipPath",2),D(5,"rect",3),c()()()),2&n&&(se(i.getClassNames()),F("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role),a(1),F("clip-path",i.pathId),a(3),d("id",i.pathId))},encapsulation:2})}return t})(),nS=(()=>{class t extends _t{pathId;ngOnInit(){this.pathId="url(#"+Ft()+")"}static \u0275fac=function(){let e;return function(i){return(e||(e=we(t)))(i||t)}}();static \u0275cmp=U({type:t,selectors:[["WindowMinimizeIcon"]],standalone:!0,features:[_e,ot],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","M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,i){1&n&&(lt(),l(0,"svg",0)(1,"g"),D(2,"path",1),c(),l(3,"defs")(4,"clipPath",2),D(5,"rect",3),c()()()),2&n&&(se(i.getClassNames()),F("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role),a(1),F("clip-path",i.pathId),a(3),d("id",i.pathId))},encapsulation:2})}return t})();const RU=["titlebar"],OU=["content"],AU=["footer"];function PU(t,s){if(1&t){const e=E();l(0,"div",11),v("mousedown",function(i){return C(e),y(p(3).initResize(i))}),c()}}function FU(t,s){if(1&t&&(l(0,"span",18),_(1),c()),2&t){const e=p(4);d("id",e.getAriaLabelledBy()),a(1),S(e.header)}}function NU(t,s){1&t&&(l(0,"span",18),xt(1,1),c()),2&t&&d("id",p(4).getAriaLabelledBy())}function VU(t,s){1&t&&Z(0)}function BU(t,s){if(1&t&&D(0,"span",22),2&t){const e=p(5);d("ngClass",e.maximized?e.minimizeIcon:e.maximizeIcon)}}function HU(t,s){1&t&&D(0,"WindowMaximizeIcon",24),2&t&&d("styleClass","p-dialog-header-maximize-icon")}function GU(t,s){1&t&&D(0,"WindowMinimizeIcon",24),2&t&&d("styleClass","p-dialog-header-maximize-icon")}function qU(t,s){if(1&t&&(Q(0),m(1,HU,1,1,"WindowMaximizeIcon",23),m(2,GU,1,1,"WindowMinimizeIcon",23),J()),2&t){const e=p(5);a(1),d("ngIf",!e.maximized&&!e.maximizeIconTemplate),a(1),d("ngIf",e.maximized&&!e.minimizeIconTemplate)}}function zU(t,s){}function UU(t,s){1&t&&m(0,zU,0,0,"ng-template")}function jU(t,s){if(1&t&&(Q(0),m(1,UU,1,0,null,9),J()),2&t){const e=p(5);a(1),d("ngTemplateOutlet",e.maximizeIconTemplate)}}function $U(t,s){}function WU(t,s){1&t&&m(0,$U,0,0,"ng-template")}function KU(t,s){if(1&t&&(Q(0),m(1,WU,1,0,null,9),J()),2&t){const e=p(5);a(1),d("ngTemplateOutlet",e.minimizeIconTemplate)}}const QU=function(){return{"p-dialog-header-icon p-dialog-header-maximize p-link":!0}};function JU(t,s){if(1&t){const e=E();l(0,"button",19),v("click",function(){return C(e),y(p(4).maximize())})("keydown.enter",function(){return C(e),y(p(4).maximize())}),m(1,BU,1,1,"span",20),m(2,qU,3,2,"ng-container",21),m(3,jU,2,1,"ng-container",21),m(4,KU,2,1,"ng-container",21),c()}if(2&t){const e=p(4);d("ngClass",V(5,QU)),a(1),d("ngIf",e.maximizeIcon&&!e.maximizeIconTemplate&&!e.minimizeIconTemplate),a(1),d("ngIf",!e.maximizeIcon),a(1),d("ngIf",!e.maximized),a(1),d("ngIf",e.maximized)}}function ZU(t,s){1&t&&D(0,"span",27),2&t&&d("ngClass",p(6).closeIcon)}function YU(t,s){1&t&&D(0,"TimesIcon",24),2&t&&d("styleClass","p-dialog-header-close-icon")}function XU(t,s){if(1&t&&(Q(0),m(1,ZU,1,1,"span",26),m(2,YU,1,1,"TimesIcon",23),J()),2&t){const e=p(5);a(1),d("ngIf",e.closeIcon),a(1),d("ngIf",!e.closeIcon)}}function ej(t,s){}function tj(t,s){1&t&&m(0,ej,0,0,"ng-template")}function nj(t,s){if(1&t&&(l(0,"span"),m(1,tj,1,0,null,9),c()),2&t){const e=p(5);a(1),d("ngTemplateOutlet",e.closeIconTemplate)}}const ij=function(){return{"p-dialog-header-icon p-dialog-header-close p-link":!0}};function sj(t,s){if(1&t){const e=E();l(0,"button",25),v("click",function(i){return C(e),y(p(4).close(i))})("keydown.enter",function(i){return C(e),y(p(4).close(i))}),m(1,XU,3,2,"ng-container",21),m(2,nj,2,1,"span",21),c()}if(2&t){const e=p(4);d("ngClass",V(5,ij)),F("aria-label",e.closeAriaLabel)("tabindex",e.closeTabindex),a(1),d("ngIf",!e.closeIconTemplate),a(1),d("ngIf",e.closeIconTemplate)}}function oj(t,s){if(1&t){const e=E();l(0,"div",12,13),v("mousedown",function(i){return C(e),y(p(3).initDrag(i))}),m(2,FU,2,2,"span",14),m(3,NU,2,1,"span",14),m(4,VU,1,0,"ng-container",9),l(5,"div",15),m(6,JU,5,6,"button",16),m(7,sj,3,6,"button",17),c()()}if(2&t){const e=p(3);a(2),d("ngIf",!e.headerFacet&&!e.headerTemplate),a(1),d("ngIf",e.headerFacet),a(1),d("ngTemplateOutlet",e.headerTemplate),a(2),d("ngIf",e.maximizable),a(1),d("ngIf",e.closable)}}function rj(t,s){1&t&&Z(0)}function aj(t,s){1&t&&Z(0)}function lj(t,s){if(1&t&&(l(0,"div",28,29),xt(2,2),m(3,aj,1,0,"ng-container",9),c()),2&t){const e=p(3);a(3),d("ngTemplateOutlet",e.footerTemplate)}}const cj=function(t,s,e,n){return{"p-dialog p-component":!0,"p-dialog-rtl":t,"p-dialog-draggable":s,"p-dialog-resizable":e,"p-dialog-maximized":n}},uj=function(t,s){return{transform:t,transition:s}},dj=function(t){return{value:"visible",params:t}};function pj(t,s){if(1&t){const e=E();l(0,"div",3,4),v("@animation.start",function(i){return C(e),y(p(2).onAnimationStart(i))})("@animation.done",function(i){return C(e),y(p(2).onAnimationEnd(i))}),m(2,PU,1,0,"div",5),m(3,oj,8,5,"div",6),l(4,"div",7,8),xt(6),m(7,rj,1,0,"ng-container",9),c(),m(8,lj,4,1,"div",10),c()}if(2&t){const e=p(2);se(e.styleClass),d("ngClass",Li(16,cj,e.rtl,e.draggable,e.resizable,e.maximized))("ngStyle",e.style)("pFocusTrapDisabled",!1===e.focusTrap)("@animation",W(24,dj,Se(21,uj,e.transformOptions,e.transitionOptions))),F("aria-labelledby",e.getAriaLabelledBy())("aria-modal",!0),a(2),d("ngIf",e.resizable),a(1),d("ngIf",e.showHeader),a(1),se(e.contentStyleClass),d("ngClass","p-dialog-content")("ngStyle",e.contentStyle),a(3),d("ngTemplateOutlet",e.contentTemplate),a(1),d("ngIf",e.footerFacet||e.footerTemplate)}}const hj=function(t,s,e,n,i,o,r,u,h,b){return{"p-dialog-mask":!0,"p-component-overlay p-component-overlay-enter":t,"p-dialog-mask-scrollblocker":s,"p-dialog-left":e,"p-dialog-right":n,"p-dialog-top":i,"p-dialog-top-left":o,"p-dialog-top-right":r,"p-dialog-bottom":u,"p-dialog-bottom-left":h,"p-dialog-bottom-right":b}};function mj(t,s){if(1&t&&(l(0,"div",1),m(1,pj,9,26,"div",2),c()),2&t){const e=p();se(e.maskStyleClass),d("ngClass",rd(4,hj,[e.modal,e.modal||e.blockScroll,"left"===e.position,"right"===e.position,"top"===e.position,"topleft"===e.position||"top-left"===e.position,"topright"===e.position||"top-right"===e.position,"bottom"===e.position,"bottomleft"===e.position||"bottom-left"===e.position,"bottomright"===e.position||"bottom-right"===e.position])),a(1),d("ngIf",e.visible)}}const fj=["*",[["p-header"]],[["p-footer"]]],gj=["*","p-header","p-footer"],_j=ua([Tt({transform:"{{transform}}",opacity:0}),Ut("{{transition}}")]),bj=ua([Ut("{{transition}}",Tt({transform:"{{transform}}",opacity:0}))]);let pn=(()=>{class t{document;platformId;el;renderer;zone;cd;config;header;draggable=!0;resizable=!0;get positionLeft(){return 0}set positionLeft(e){console.log("positionLeft property is deprecated.")}get positionTop(){return 0}set positionTop(e){console.log("positionTop property is deprecated.")}contentStyle;contentStyleClass;modal=!1;closeOnEscape=!0;dismissableMask=!1;rtl=!1;closable=!0;get responsive(){return!1}set responsive(e){console.log("Responsive property is deprecated.")}appendTo;breakpoints;styleClass;maskStyleClass;showHeader=!0;get breakpoint(){return 649}set breakpoint(e){console.log("Breakpoint property is not utilized and deprecated, use breakpoints or CSS media queries instead.")}blockScroll=!1;autoZIndex=!0;baseZIndex=0;minX=0;minY=0;focusOnShow=!0;maximizable=!1;keepInViewport=!0;focusTrap=!0;transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";closeIcon;closeAriaLabel;closeTabindex="-1";minimizeIcon;maximizeIcon;get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.maskVisible&&(this.maskVisible=!0)}get style(){return this._style}set style(e){e&&(this._style={...e},this.originalStyle=e)}get position(){return this._position}set position(e){switch(this._position=e,e){case"topleft":case"bottomleft":case"left":this.transformOptions="translate3d(-100%, 0px, 0px)";break;case"topright":case"bottomright":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)";break;default:this.transformOptions="scale(0.7)"}}onShow=new q;onHide=new q;visibleChange=new q;onResizeInit=new q;onResizeEnd=new q;onDragEnd=new q;onMaximize=new q;headerFacet;footerFacet;templates;headerViewChild;contentViewChild;footerViewChild;headerTemplate;contentTemplate;footerTemplate;maximizeIconTemplate;closeIconTemplate;minimizeIconTemplate;_visible=!1;maskVisible;container;wrapper;dragging;documentDragListener;documentDragEndListener;resizing;documentResizeListener;documentResizeEndListener;documentEscapeListener;maskClickListener;lastPageX;lastPageY;preventVisibleChangePropagation;maximized;preMaximizeContentHeight;preMaximizeContainerWidth;preMaximizeContainerHeight;preMaximizePageX;preMaximizePageY;id=Ft();_style={};_position="center";originalStyle;transformOptions="scale(0.7)";styleElement;window;constructor(e,n,i,o,r,u,h){this.document=e,this.platformId=n,this.el=i,this.renderer=o,this.zone=r,this.cd=u,this.config=h,this.window=this.document.defaultView}ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"content":default:this.contentTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"closeicon":this.closeIconTemplate=e.template;break;case"maximizeicon":this.maximizeIconTemplate=e.template;break;case"minimizeicon":this.minimizeIconTemplate=e.template}})}ngOnInit(){this.breakpoints&&this.createStyle()}getAriaLabelledBy(){return null!==this.header?Ft()+"_header":null}focus(){let e=R.findSingle(this.container,"[autofocus]");e&&this.zone.runOutsideAngular(()=>{setTimeout(()=>e.focus(),5)})}close(e){this.visibleChange.emit(!1),e.preventDefault()}enableModality(){this.closable&&this.dismissableMask&&(this.maskClickListener=this.renderer.listen(this.wrapper,"mousedown",e=>{this.wrapper&&this.wrapper.isSameNode(e.target)&&this.close(e)})),this.modal&&(R.addClass(this.document.body,"p-overflow-hidden"),this.document.body.style.setProperty("--scrollbar-width",R.calculateScrollbarWidth()+"px"))}disableModality(){this.wrapper&&(this.dismissableMask&&this.unbindMaskClickListener(),this.modal&&(R.removeClass(this.document.body,"p-overflow-hidden"),this.document.body.style.removeProperty("--scrollbar-width")),this.cd.destroyed||this.cd.detectChanges())}maximize(){this.maximized=!this.maximized,!this.modal&&!this.blockScroll&&(this.maximized?(R.addClass(this.document.body,"p-overflow-hidden"),this.document.body.style.setProperty("--scrollbar-width",R.calculateScrollbarWidth()+"px")):(R.removeClass(this.document.body,"p-overflow-hidden"),this.document.body.style.removeProperty("--scrollbar-width"))),this.onMaximize.emit({maximized:this.maximized})}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}moveOnTop(){this.autoZIndex&&(Et.set("modal",this.container,this.baseZIndex+this.config.zIndex.modal),this.wrapper.style.zIndex=String(parseInt(this.container.style.zIndex,10)-1))}createStyle(){if(vn(this.platformId)&&!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 n in this.breakpoints)e+=`\n @media screen and (max-width: ${n}) {\n .p-dialog[${this.id}]:not(.p-dialog-maximized) {\n width: ${this.breakpoints[n]} !important;\n }\n }\n `;this.renderer.setProperty(this.styleElement,"innerHTML",e)}}initDrag(e){R.hasClass(e.target,"p-dialog-header-icon")||R.hasClass(e.target.parentElement,"p-dialog-header-icon")||this.draggable&&(this.dragging=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.container.style.margin="0",R.addClass(this.document.body,"p-unselectable-text"))}onKeydown(e){if(this.focusTrap&&9===e.which){e.preventDefault();let n=R.getFocusableElements(this.container);if(n&&n.length>0)if(n[0].ownerDocument.activeElement){let i=n.indexOf(n[0].ownerDocument.activeElement);e.shiftKey?-1==i||0===i?n[n.length-1].focus():n[i-1].focus():-1==i||i===n.length-1?n[0].focus():n[i+1].focus()}else n[0].focus()}}onDrag(e){if(this.dragging){const n=R.getOuterWidth(this.container),i=R.getOuterHeight(this.container),o=e.pageX-this.lastPageX,r=e.pageY-this.lastPageY,u=this.container.getBoundingClientRect(),h=getComputedStyle(this.container),b=parseFloat(h.marginLeft),T=parseFloat(h.marginTop),w=u.left+o-b,k=u.top+r-T,L=R.getViewport();this.container.style.position="fixed",this.keepInViewport?(w>=this.minX&&w+n=this.minY&&k+iparseInt(T))&&k.left+hparseInt(w))&&k.top+b{this.documentDragListener=this.renderer.listen(this.window,"mousemove",this.onDrag.bind(this))})}unbindDocumentDragListener(){this.documentDragListener&&(this.documentDragListener(),this.documentDragListener=null)}bindDocumentDragEndListener(){this.documentDragEndListener||this.zone.runOutsideAngular(()=>{this.documentDragEndListener=this.renderer.listen(this.window,"mouseup",this.endDrag.bind(this))})}unbindDocumentDragEndListener(){this.documentDragEndListener&&(this.documentDragEndListener(),this.documentDragEndListener=null)}bindDocumentResizeListeners(){!this.documentResizeListener&&!this.documentResizeEndListener&&this.zone.runOutsideAngular(()=>{this.documentResizeListener=this.renderer.listen(this.window,"mousemove",this.onResize.bind(this)),this.documentResizeEndListener=this.renderer.listen(this.window,"mouseup",this.resizeEnd.bind(this))})}unbindDocumentResizeListeners(){this.documentResizeListener&&this.documentResizeEndListener&&(this.documentResizeListener(),this.documentResizeEndListener(),this.documentResizeListener=null,this.documentResizeEndListener=null)}bindDocumentEscapeListener(){this.documentEscapeListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","keydown",n=>{27==n.which&&this.close(n)})}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}appendContainer(){this.appendTo&&("body"===this.appendTo?this.renderer.appendChild(this.document.body,this.wrapper):R.appendChild(this.wrapper,this.appendTo))}restoreAppend(){this.container&&this.appendTo&&this.renderer.appendChild(this.el.nativeElement,this.wrapper)}onAnimationStart(e){switch(e.toState){case"visible":this.container=e.element,this.wrapper=this.container?.parentElement,this.appendContainer(),this.moveOnTop(),this.bindGlobalListeners(),this.container?.setAttribute(this.id,""),this.modal&&this.enableModality(),!this.modal&&this.blockScroll&&R.addClass(this.document.body,"p-overflow-hidden"),this.focusOnShow&&this.focus();break;case"void":this.wrapper&&this.modal&&R.addClass(this.wrapper,"p-component-overlay-leave")}}onAnimationEnd(e){switch(e.toState){case"void":this.onContainerDestroy(),this.onHide.emit({}),this.cd.markForCheck();break;case"visible":this.onShow.emit({})}}onContainerDestroy(){this.unbindGlobalListeners(),this.dragging=!1,this.maskVisible=!1,this.maximized&&(R.removeClass(this.document.body,"p-overflow-hidden"),this.document.body.style.removeProperty("--scrollbar-width"),this.maximized=!1),this.modal&&this.disableModality(),this.blockScroll&&R.removeClass(this.document.body,"p-overflow-hidden"),this.container&&this.autoZIndex&&Et.clear(this.container),this.container=null,this.wrapper=null,this._style=this.originalStyle?{...this.originalStyle}:{}}destroyStyle(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngOnDestroy(){this.container&&(this.restoreAppend(),this.onContainerDestroy()),this.destroyStyle()}static \u0275fac=function(n){return new(n||t)(M(ct),M(gn),M(Pe),M(Vt),M(je),M(rt),M(Hn))};static \u0275cmp=U({type:t,selectors:[["p-dialog"]],contentQueries:function(n,i,o){if(1&n&&(Ye(o,pa,5),Ye(o,tc,5),Ye(o,ae,4)),2&n){let r;H(r=G())&&(i.headerFacet=r.first),H(r=G())&&(i.footerFacet=r.first),H(r=G())&&(i.templates=r)}},viewQuery:function(n,i){if(1&n&&(K(RU,5),K(OU,5),K(AU,5)),2&n){let o;H(o=G())&&(i.headerViewChild=o.first),H(o=G())&&(i.contentViewChild=o.first),H(o=G())&&(i.footerViewChild=o.first)}},hostAttrs:[1,"p-element"],inputs:{header:"header",draggable:"draggable",resizable:"resizable",positionLeft:"positionLeft",positionTop:"positionTop",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",modal:"modal",closeOnEscape:"closeOnEscape",dismissableMask:"dismissableMask",rtl:"rtl",closable:"closable",responsive:"responsive",appendTo:"appendTo",breakpoints:"breakpoints",styleClass:"styleClass",maskStyleClass:"maskStyleClass",showHeader:"showHeader",breakpoint:"breakpoint",blockScroll:"blockScroll",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",minX:"minX",minY:"minY",focusOnShow:"focusOnShow",maximizable:"maximizable",keepInViewport:"keepInViewport",focusTrap:"focusTrap",transitionOptions:"transitionOptions",closeIcon:"closeIcon",closeAriaLabel:"closeAriaLabel",closeTabindex:"closeTabindex",minimizeIcon:"minimizeIcon",maximizeIcon:"maximizeIcon",visible:"visible",style:"style",position:"position"},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange",onResizeInit:"onResizeInit",onResizeEnd:"onResizeEnd",onDragEnd:"onDragEnd",onMaximize:"onMaximize"},ngContentSelectors:gj,decls:1,vars:1,consts:[[3,"class","ngClass",4,"ngIf"],[3,"ngClass"],["pFocusTrap","","role","dialog",3,"ngClass","ngStyle","class","pFocusTrapDisabled",4,"ngIf"],["pFocusTrap","","role","dialog",3,"ngClass","ngStyle","pFocusTrapDisabled"],["container",""],["class","p-resizable-handle","style","z-index: 90;",3,"mousedown",4,"ngIf"],["class","p-dialog-header",3,"mousedown",4,"ngIf"],[3,"ngClass","ngStyle"],["content",""],[4,"ngTemplateOutlet"],["class","p-dialog-footer",4,"ngIf"],[1,"p-resizable-handle",2,"z-index","90",3,"mousedown"],[1,"p-dialog-header",3,"mousedown"],["titlebar",""],["class","p-dialog-title",3,"id",4,"ngIf"],[1,"p-dialog-header-icons"],["role","button","type","button","tabindex","-1","pRipple","",3,"ngClass","click","keydown.enter",4,"ngIf"],["type","button","pRipple","",3,"ngClass","click","keydown.enter",4,"ngIf"],[1,"p-dialog-title",3,"id"],["role","button","type","button","tabindex","-1","pRipple","",3,"ngClass","click","keydown.enter"],["class","p-dialog-header-maximize-icon",3,"ngClass",4,"ngIf"],[4,"ngIf"],[1,"p-dialog-header-maximize-icon",3,"ngClass"],[3,"styleClass",4,"ngIf"],[3,"styleClass"],["type","button","pRipple","",3,"ngClass","click","keydown.enter"],["class","p-dialog-header-close-icon",3,"ngClass",4,"ngIf"],[1,"p-dialog-header-close-icon",3,"ngClass"],[1,"p-dialog-footer"],["footer",""]],template:function(n,i){1&n&&(_n(fj),m(0,mj,2,15,"div",0)),2&n&&d("ngIf",i.maskVisible)},dependencies:function(){return[Fe,ne,dt,nt,EU,bt,xn,tS,nS]},styles:["@layer primeng{.p-dialog-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;pointer-events:none}.p-dialog-mask.p-component-overlay{pointer-events:auto}.p-dialog{display:flex;flex-direction:column;pointer-events:auto;max-height:90%;transform:scale(1);position:relative}.p-dialog-content{overflow-y:auto;flex-grow:1}.p-dialog-header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.p-dialog-draggable .p-dialog-header{cursor:move}.p-dialog-footer{flex-shrink:0}.p-dialog .p-dialog-header-icons{display:flex;align-items:center}.p-dialog .p-dialog-header-icon{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-fluid .p-dialog-footer .p-button{width:auto}.p-dialog-top .p-dialog,.p-dialog-bottom .p-dialog,.p-dialog-left .p-dialog,.p-dialog-right .p-dialog,.p-dialog-top-left .p-dialog,.p-dialog-top-right .p-dialog,.p-dialog-bottom-left .p-dialog,.p-dialog-bottom-right .p-dialog{margin:.75rem;transform:translateZ(0)}.p-dialog-maximized{transition:none;transform:none;width:100vw!important;height:100vh!important;top:0!important;left:0!important;max-height:100%;height:100%}.p-dialog-maximized .p-dialog-content{flex-grow:1}.p-dialog-left{justify-content:flex-start}.p-dialog-right{justify-content:flex-end}.p-dialog-top{align-items:flex-start}.p-dialog-top-left{justify-content:flex-start;align-items:flex-start}.p-dialog-top-right{justify-content:flex-end;align-items:flex-start}.p-dialog-bottom{align-items:flex-end}.p-dialog-bottom-left{justify-content:flex-start;align-items:flex-end}.p-dialog-bottom-right{justify-content:flex-end;align-items:flex-end}.p-dialog .p-resizable-handle{position:absolute;font-size:.1px;display:block;cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.p-confirm-dialog .p-dialog-content{display:flex;align-items:center}}\n"],encapsulation:2,data:{animation:[Ji("animation",[Yt("void => visible",[Xd(_j)]),Yt("visible => void",[Xd(bj)])])]},changeDetection:0})}return t})(),vj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=me({imports:[Ne,LU,Cn,xn,tS,nS,ze]})}return t})();const Cj=["*"];let yj=(()=>{class t{style;styleClass;layout="horizontal";type="solid";align;containerClass(){return{"p-divider p-component":!0,"p-divider-horizontal":"horizontal"===this.layout,"p-divider-vertical":"vertical"===this.layout,"p-divider-solid":"solid"===this.type,"p-divider-dashed":"dashed"===this.type,"p-divider-dotted":"dotted"===this.type,"p-divider-left":"horizontal"===this.layout&&(!this.align||"left"===this.align),"p-divider-center":"horizontal"===this.layout&&"center"===this.align||"vertical"===this.layout&&(!this.align||"center"===this.align),"p-divider-right":"horizontal"===this.layout&&"right"===this.align,"p-divider-top":"vertical"===this.layout&&"top"===this.align,"p-divider-bottom":"vertical"===this.layout&&"bottom"===this.align}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=U({type:t,selectors:[["p-divider"]],hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",layout:"layout",type:"type",align:"align"},ngContentSelectors:Cj,decls:3,vars:6,consts:[["role","separator",3,"ngClass","ngStyle"],[1,"p-divider-content"]],template:function(n,i){1&n&&(_n(),l(0,"div",0)(1,"div",1),xt(2),c()()),2&n&&(se(i.styleClass),d("ngClass",i.containerClass())("ngStyle",i.style),F("aria-orientation",i.layout)("data-pc-name","divider"))},dependencies:[Fe,nt],styles:['@layer primeng{.p-divider-horizontal{display:flex;width:100%;position:relative;align-items:center}.p-divider-horizontal:before{position:absolute;display:block;top:50%;left:0;width:100%;content:""}.p-divider-horizontal.p-divider-left{justify-content:flex-start}.p-divider-horizontal.p-divider-right{justify-content:flex-end}.p-divider-horizontal.p-divider-center{justify-content:center}.p-divider-content{z-index:1}.p-divider-vertical{min-height:100%;margin:0 1rem;display:flex;position:relative;justify-content:center}.p-divider-vertical:before{position:absolute;display:block;top:0;left:50%;height:100%;content:""}.p-divider-vertical.p-divider-top{align-items:flex-start}.p-divider-vertical.p-divider-center{align-items:center}.p-divider-vertical.p-divider-bottom{align-items:flex-end}.p-divider-solid.p-divider-horizontal:before{border-top-style:solid}.p-divider-solid.p-divider-vertical:before{border-left-style:solid}.p-divider-dashed.p-divider-horizontal:before{border-top-style:dashed}.p-divider-dashed.p-divider-vertical:before{border-left-style:dashed}.p-divider-dotted.p-divider-horizontal:before{border-top-style:dotted}.p-divider-dotted.p-divider-horizontal:before{border-left-style:dotted}}\n'],encapsulation:2,changeDetection:0})}return t})(),Tj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=me({imports:[Ne]})}return t})(),P_=(()=>{class t extends _t{static \u0275fac=function(){let e;return function(i){return(e||(e=we(t)))(i||t)}}();static \u0275cmp=U({type:t,selectors:[["MinusIcon"]],standalone:!0,features:[_e,ot],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.2222 7.77778H0.777778C0.571498 7.77778 0.373667 7.69584 0.227806 7.54998C0.0819442 7.40412 0 7.20629 0 7.00001C0 6.79373 0.0819442 6.5959 0.227806 6.45003C0.373667 6.30417 0.571498 6.22223 0.777778 6.22223H13.2222C13.4285 6.22223 13.6263 6.30417 13.7722 6.45003C13.9181 6.5959 14 6.79373 14 7.00001C14 7.20629 13.9181 7.40412 13.7722 7.54998C13.6263 7.69584 13.4285 7.77778 13.2222 7.77778Z","fill","currentColor"]],template:function(n,i){1&n&&(lt(),l(0,"svg",0),D(1,"path",1),c()),2&n&&(se(i.getClassNames()),F("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role))},dependencies:[Ne],encapsulation:2})}return t})(),F_=(()=>{class t extends _t{pathId;ngOnInit(){this.pathId="url(#"+Ft()+")"}static \u0275fac=function(){let e;return function(i){return(e||(e=we(t)))(i||t)}}();static \u0275cmp=U({type:t,selectors:[["PlusIcon"]],standalone:!0,features:[_e,ot],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7.67742 6.32258V0.677419C7.67742 0.497757 7.60605 0.325452 7.47901 0.198411C7.35197 0.0713707 7.17966 0 7 0C6.82034 0 6.64803 0.0713707 6.52099 0.198411C6.39395 0.325452 6.32258 0.497757 6.32258 0.677419V6.32258H0.677419C0.497757 6.32258 0.325452 6.39395 0.198411 6.52099C0.0713707 6.64803 0 6.82034 0 7C0 7.17966 0.0713707 7.35197 0.198411 7.47901C0.325452 7.60605 0.497757 7.67742 0.677419 7.67742H6.32258V13.3226C6.32492 13.5015 6.39704 13.6725 6.52358 13.799C6.65012 13.9255 6.82106 13.9977 7 14C7.17966 14 7.35197 13.9286 7.47901 13.8016C7.60605 13.6745 7.67742 13.5022 7.67742 13.3226V7.67742H13.3226C13.5022 7.67742 13.6745 7.60605 13.8016 7.47901C13.9286 7.35197 14 7.17966 14 7C13.9977 6.82106 13.9255 6.65012 13.799 6.52358C13.6725 6.39704 13.5015 6.32492 13.3226 6.32258H7.67742Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,i){1&n&&(lt(),l(0,"svg",0)(1,"g"),D(2,"path",1),c(),l(3,"defs")(4,"clipPath",2),D(5,"rect",3),c()()()),2&n&&(se(i.getClassNames()),F("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role),a(1),F("clip-path",i.pathId),a(3),d("id",i.pathId))},encapsulation:2})}return t})();function wj(t,s){1&t&&D(0,"PlusIcon",11),2&t&&(d("styleClass","p-fieldset-toggler"),F("data-pc-section","togglericon"))}function Ij(t,s){1&t&&Z(0)}function Sj(t,s){if(1&t&&(l(0,"span",12),m(1,Ij,1,0,"ng-container",6),c()),2&t){const e=p(3);F("data-pc-section","togglericon"),a(1),d("ngTemplateOutlet",e.expandIconTemplate)}}function xj(t,s){if(1&t&&(Q(0),m(1,wj,1,2,"PlusIcon",9),m(2,Sj,2,2,"span",10),J()),2&t){const e=p(2);a(1),d("ngIf",!e.expandIconTemplate),a(1),d("ngIf",e.expandIconTemplate)}}function Dj(t,s){1&t&&D(0,"MinusIcon",11),2&t&&(d("styleClass","p-fieldset-toggler"),F("aria-hidden",!0)("data-pc-section","togglericon"))}function Mj(t,s){1&t&&Z(0)}function kj(t,s){if(1&t&&(l(0,"span",12),m(1,Mj,1,0,"ng-container",6),c()),2&t){const e=p(3);F("data-pc-section","togglericon"),a(1),d("ngTemplateOutlet",e.collapseIconTemplate)}}function Ej(t,s){if(1&t&&(Q(0),m(1,Dj,1,3,"MinusIcon",9),m(2,kj,2,2,"span",10),J()),2&t){const e=p(2);a(1),d("ngIf",!e.collapseIconTemplate),a(1),d("ngIf",e.collapseIconTemplate)}}function Lj(t,s){1&t&&Z(0)}function Rj(t,s){if(1&t){const e=E();Q(0),l(1,"a",7),v("click",function(i){return C(e),y(p().toggle(i))})("keydown",function(i){return C(e),y(p().onKeyDown(i))}),m(2,xj,3,2,"ng-container",8),m(3,Ej,3,2,"ng-container",8),m(4,Lj,1,0,"ng-container",6),c(),J()}if(2&t){const e=p(),n=B(4);a(1),F("id",e.id+"_header")("aria-controls",e.id+"_content")("aria-expanded",!e.collapsed)("aria-label",e.buttonAriaLabel),a(1),d("ngIf",e.collapsed),a(1),d("ngIf",!e.collapsed),a(1),d("ngTemplateOutlet",n)}}function Oj(t,s){1&t&&Z(0)}function Aj(t,s){if(1&t&&(l(0,"span",13),_(1),c(),xt(2,1),m(3,Oj,1,0,"ng-container",6)),2&t){const e=p();F("data-pc-section","legendtitle"),a(1),S(e.legend),a(2),d("ngTemplateOutlet",e.headerTemplate)}}function Pj(t,s){1&t&&Z(0)}const Fj=["*",[["p-header"]]],Nj=function(t,s){return{"p-fieldset p-component":!0,"p-fieldset-toggleable":t,"p-fieldset-expanded":s}},Vj=function(t){return{transitionParams:t,height:"0"}},Bj=function(t){return{value:"hidden",params:t}},Hj=function(t){return{transitionParams:t,height:"*"}},Gj=function(t){return{value:"visible",params:t}},qj=["*","p-header"];let Xi=(()=>{class t{el;legend;toggleable;collapsed=!1;style;styleClass;transitionOptions="400ms cubic-bezier(0.86, 0, 0.07, 1)";collapsedChange=new q;onBeforeToggle=new q;onAfterToggle=new q;templates;get id(){return Ft()}get buttonAriaLabel(){return this.legend}animating;headerTemplate;contentTemplate;collapseIconTemplate;expandIconTemplate;constructor(e){this.el=e}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"expandicon":this.expandIconTemplate=e.template;break;case"collapseicon":this.collapseIconTemplate=e.template;break;case"content":this.contentTemplate=e.template}})}toggle(e){if(this.animating)return!1;this.animating=!0,this.onBeforeToggle.emit({originalEvent:e,collapsed:this.collapsed}),this.collapsed?this.expand():this.collapse(),this.onAfterToggle.emit({originalEvent:e,collapsed:this.collapsed}),e.preventDefault()}onKeyDown(e){("Enter"===e.code||"Space"===e.code)&&(this.toggle(e),e.preventDefault())}expand(){this.collapsed=!1,this.collapsedChange.emit(this.collapsed)}collapse(){this.collapsed=!0,this.collapsedChange.emit(this.collapsed)}getBlockableElement(){return this.el.nativeElement.children[0]}onToggleDone(){this.animating=!1}static \u0275fac=function(n){return new(n||t)(M(Pe))};static \u0275cmp=U({type:t,selectors:[["p-fieldset"]],contentQueries:function(n,i,o){if(1&n&&Ye(o,ae,4),2&n){let r;H(r=G())&&(i.templates=r)}},hostAttrs:[1,"p-element"],inputs:{legend:"legend",toggleable:"toggleable",collapsed:"collapsed",style:"style",styleClass:"styleClass",transitionOptions:"transitionOptions"},outputs:{collapsedChange:"collapsedChange",onBeforeToggle:"onBeforeToggle",onAfterToggle:"onAfterToggle"},ngContentSelectors:qj,decls:9,vars:28,consts:[[3,"ngClass","ngStyle"],[1,"p-fieldset-legend"],[4,"ngIf","ngIfElse"],["legendContent",""],["role","region",1,"p-toggleable-content"],[1,"p-fieldset-content"],[4,"ngTemplateOutlet"],["pRipple","","tabindex","0","role","button",3,"click","keydown"],[4,"ngIf"],[3,"styleClass",4,"ngIf"],["class","p-fieldset-toggler",4,"ngIf"],[3,"styleClass"],[1,"p-fieldset-toggler"],[1,"p-fieldset-legend-text"]],template:function(n,i){if(1&n&&(_n(Fj),l(0,"fieldset",0)(1,"legend",1),m(2,Rj,5,7,"ng-container",2),m(3,Aj,4,3,"ng-template",null,3,ve),c(),l(5,"div",4),v("@fieldsetContent.done",function(){return i.onToggleDone()}),l(6,"div",5),xt(7),m(8,Pj,1,0,"ng-container",6),c()()()),2&n){const o=B(4);se(i.styleClass),d("ngClass",Se(17,Nj,i.toggleable,!i.collapsed&&i.toggleable))("ngStyle",i.style),F("id",i.id)("data-pc-name","fieldset")("data-pc-section","root"),a(1),F("data-pc-section","legend"),a(1),d("ngIf",i.toggleable)("ngIfElse",o),a(3),d("@fieldsetContent",i.collapsed?W(22,Bj,W(20,Vj,i.transitionOptions)):W(26,Gj,W(24,Hj,i.animating?i.transitionOptions:"0ms"))),F("id",i.id+"_content")("aria-labelledby",i.id+"_header")("aria-hidden",i.collapsed)("data-pc-section","toggleablecontent"),a(1),F("data-pc-section","content"),a(2),d("ngTemplateOutlet",i.contentTemplate)}},dependencies:function(){return[Fe,ne,dt,nt,bt,P_,F_]},styles:["@layer primeng{.p-fieldset-legend>a,.p-fieldset-legend>span{display:flex;align-items:center;justify-content:center}.p-fieldset-toggleable .p-fieldset-legend a{cursor:pointer;-webkit-user-select:none;user-select:none;overflow:hidden;position:relative}.p-fieldset-legend-text{line-height:1}.p-fieldset-toggleable.p-fieldset-expanded>.p-toggleable-content:not(.ng-animating){overflow:visible}.p-fieldset-toggleable .p-toggleable-content{overflow:hidden}}\n"],encapsulation:2,data:{animation:[Ji("fieldsetContent",[qs("hidden",Tt({height:"0"})),qs("visible",Tt({height:"*"})),Yt("visible <=> hidden",[Ut("{{transitionParams}}")]),Yt("void => *",Ut(0))])]},changeDetection:0})}return t})(),zj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=me({imports:[Ne,Cn,P_,F_,ze]})}return t})();const Uj=["headerchkbox"],jj=["filter"];function $j(t,s){1&t&&Z(0)}function Wj(t,s){if(1&t&&(l(0,"div",7),xt(1),m(2,$j,1,0,"ng-container",8),c()),2&t){const e=p();a(2),d("ngTemplateOutlet",e.headerTemplate)}}function Kj(t,s){1&t&&D(0,"CheckIcon",19),2&t&&d("styleClass","p-checkbox-icon")}function Qj(t,s){}function Jj(t,s){1&t&&m(0,Qj,0,0,"ng-template")}function Zj(t,s){if(1&t&&(l(0,"span",20),m(1,Jj,1,0,null,8),c()),2&t){const e=p(4);a(1),d("ngTemplateOutlet",e.checkIconTemplate)}}function Yj(t,s){if(1&t&&(Q(0),m(1,Kj,1,1,"CheckIcon",17),m(2,Zj,2,1,"span",18),J()),2&t){const e=p(3);a(1),d("ngIf",!e.checkIconTemplate),a(1),d("ngIf",e.checkIconTemplate)}}const iS=function(t){return{"p-checkbox-disabled":t}},Xj=function(t,s,e){return{"p-highlight":t,"p-focus":s,"p-disabled":e}};function e$(t,s){if(1&t){const e=E();l(0,"div",12)(1,"div",13)(2,"input",14),v("focus",function(){return C(e),y(p(2).onHeaderCheckboxFocus())})("blur",function(){return C(e),y(p(2).onHeaderCheckboxBlur())})("keydown.space",function(i){return C(e),y(p(2).toggleAll(i))}),c()(),l(3,"div",15,16),v("click",function(i){return C(e),y(p(2).toggleAll(i))}),m(5,Yj,3,2,"ng-container",3),c()()}if(2&t){const e=p(2);d("ngClass",W(5,iS,e.disabled||e.toggleAllDisabled)),a(2),d("checked",e.allChecked)("disabled",e.disabled||e.toggleAllDisabled),a(1),d("ngClass",Bt(7,Xj,e.allChecked,e.headerCheckboxFocus,e.disabled||e.toggleAllDisabled)),a(2),d("ngIf",e.allChecked)}}function t$(t,s){1&t&&Z(0)}const n$=function(t){return{options:t}};function i$(t,s){if(1&t&&(Q(0),m(1,t$,1,0,"ng-container",21),J()),2&t){const e=p(2);a(1),d("ngTemplateOutlet",e.filterTemplate)("ngTemplateOutletContext",W(2,n$,e.filterOptions))}}function s$(t,s){1&t&&D(0,"SearchIcon",19),2&t&&d("styleClass","p-listbox-filter-icon")}function o$(t,s){}function r$(t,s){1&t&&m(0,o$,0,0,"ng-template")}function a$(t,s){if(1&t&&(l(0,"span",27),m(1,r$,1,0,null,8),c()),2&t){const e=p(4);a(1),d("ngTemplateOutlet",e.filterIconTemplate)}}function l$(t,s){if(1&t){const e=E();l(0,"div",23)(1,"input",24,25),v("input",function(i){return C(e),y(p(3).onFilter(i))}),c(),m(3,s$,1,1,"SearchIcon",17),m(4,a$,2,1,"span",26),c()}if(2&t){const e=p(3);a(1),d("value",e.filterValue||"")("disabled",e.disabled),F("placeholder",e.filterPlaceHolder)("aria-label",e.ariaFilterLabel),a(2),d("ngIf",!e.filterIconTemplate),a(1),d("ngIf",e.filterIconTemplate)}}function c$(t,s){1&t&&m(0,l$,5,6,"div",22),2&t&&d("ngIf",p(2).filter)}function u$(t,s){if(1&t&&(l(0,"div",7),m(1,e$,6,11,"div",9),m(2,i$,2,4,"ng-container",10),m(3,c$,1,1,"ng-template",null,11,ve),c()),2&t){const e=B(4),n=p();a(1),d("ngIf",n.checkbox&&n.multiple&&n.showToggleAll),a(1),d("ngIf",n.filterTemplate)("ngIfElse",e)}}function d$(t,s){if(1&t&&(l(0,"span"),_(1),c()),2&t){const e=p().$implicit,n=p(2);a(1),S(n.getOptionGroupLabel(e)||"empty")}}function p$(t,s){1&t&&Z(0)}function h$(t,s){1&t&&Z(0)}const N_=function(t){return{$implicit:t}};function m$(t,s){if(1&t&&(l(0,"li",29),m(1,d$,2,1,"span",3),m(2,p$,1,0,"ng-container",21),c(),m(3,h$,1,0,"ng-container",21)),2&t){const e=s.$implicit,n=p(2),i=B(8);a(1),d("ngIf",!n.groupTemplate),a(1),d("ngTemplateOutlet",n.groupTemplate)("ngTemplateOutletContext",W(5,N_,e)),a(1),d("ngTemplateOutlet",i)("ngTemplateOutletContext",W(7,N_,n.getOptionGroupChildren(e)))}}function f$(t,s){if(1&t&&(Q(0),m(1,m$,4,9,"ng-template",28),J()),2&t){const e=p();a(1),d("ngForOf",e.optionsToRender)}}function g$(t,s){1&t&&Z(0)}function _$(t,s){if(1&t&&(Q(0),m(1,g$,1,0,"ng-container",21),J()),2&t){const e=p(),n=B(8);a(1),d("ngTemplateOutlet",n)("ngTemplateOutletContext",W(2,N_,e.optionsToRender))}}function b$(t,s){1&t&&D(0,"CheckIcon",19),2&t&&d("styleClass","p-checkbox-icon")}function v$(t,s){}function C$(t,s){1&t&&m(0,v$,0,0,"ng-template")}function y$(t,s){if(1&t&&(l(0,"span",20),m(1,C$,1,0,null,8),c()),2&t){const e=p(5);a(1),d("ngTemplateOutlet",e.checkIconTemplate)}}function T$(t,s){if(1&t&&(Q(0),m(1,b$,1,1,"CheckIcon",17),m(2,y$,2,1,"span",18),J()),2&t){const e=p(4);a(1),d("ngIf",!e.checkIconTemplate),a(1),d("ngIf",e.checkIconTemplate)}}const w$=function(t){return{"p-highlight":t}};function I$(t,s){if(1&t&&(l(0,"div",12)(1,"div",32),m(2,T$,3,2,"ng-container",3),c()()),2&t){const e=p().$implicit,n=p(2);d("ngClass",W(3,iS,n.disabled||n.isOptionDisabled(e))),a(1),d("ngClass",W(5,w$,n.isSelected(e))),a(1),d("ngIf",n.isSelected(e))}}function S$(t,s){if(1&t&&(l(0,"span"),_(1),c()),2&t){const e=p().$implicit,n=p(2);a(1),S(n.getOptionLabel(e))}}function x$(t,s){1&t&&Z(0)}const D$=function(t,s){return{"p-listbox-item":!0,"p-highlight":t,"p-disabled":s}},M$=function(t,s){return{$implicit:t,index:s}};function k$(t,s){if(1&t){const e=E();l(0,"li",31),v("click",function(i){const r=C(e).$implicit;return y(p(2).onOptionClick(i,r))})("dblclick",function(i){const r=C(e).$implicit;return y(p(2).onOptionDoubleClick(i,r))})("touchend",function(){const o=C(e).$implicit;return y(p(2).onOptionTouchEnd(o))})("keydown",function(i){const r=C(e).$implicit;return y(p(2).onOptionKeyDown(i,r))}),m(1,I$,3,7,"div",9),m(2,S$,2,1,"span",3),m(3,x$,1,0,"ng-container",21),c()}if(2&t){const e=s.$implicit,n=s.index,i=p(2);d("ngClass",Se(8,D$,i.isSelected(e),i.isOptionDisabled(e))),F("tabindex",i.disabled||i.isOptionDisabled(e)?null:"0")("aria-label",i.getOptionLabel(e))("aria-selected",i.isSelected(e)),a(1),d("ngIf",i.checkbox&&i.multiple),a(1),d("ngIf",!i.itemTemplate),a(1),d("ngTemplateOutlet",i.itemTemplate)("ngTemplateOutletContext",Se(11,M$,e,n))}}function E$(t,s){1&t&&m(0,k$,4,14,"li",30),2&t&&d("ngForOf",s.$implicit)}function L$(t,s){if(1&t&&(Q(0),_(1),J()),2&t){const e=p(2);a(1),x(" ",e.emptyFilterMessageLabel," ")}}function R$(t,s){1&t&&Z(0,null,34)}function O$(t,s){if(1&t&&(l(0,"li",33),m(1,L$,2,1,"ng-container",10),m(2,R$,2,0,"ng-container",8),c()),2&t){const e=p();a(1),d("ngIf",!e.emptyFilterTemplate&&!e.emptyTemplate)("ngIfElse",e.emptyFilter),a(1),d("ngTemplateOutlet",e.emptyFilterTemplate||e.emptyTemplate)}}function A$(t,s){if(1&t&&(Q(0),_(1),J()),2&t){const e=p(2);a(1),x(" ",e.emptyMessageLabel," ")}}function P$(t,s){1&t&&Z(0,null,35)}function F$(t,s){if(1&t&&(l(0,"li",33),m(1,A$,2,1,"ng-container",10),m(2,P$,2,0,"ng-container",8),c()),2&t){const e=p();a(1),d("ngIf",!e.emptyTemplate)("ngIfElse",e.empty),a(1),d("ngTemplateOutlet",e.emptyTemplate)}}function N$(t,s){1&t&&Z(0)}function V$(t,s){if(1&t&&(l(0,"div",36),xt(1,1),m(2,N$,1,0,"ng-container",8),c()),2&t){const e=p();a(2),d("ngTemplateOutlet",e.footerTemplate)}}const B$=[[["p-header"]],[["p-footer"]]],H$=function(t){return{"p-listbox p-component":!0,"p-disabled":t}},G$=["p-header","p-footer"],q$={provide:dn,useExisting:Ze(()=>es),multi:!0};let es=(()=>{class t{el;cd;filterService;config;multiple;style;styleClass;listStyle;listStyleClass;readonly;disabled;checkbox=!1;filter=!1;filterBy;filterMatchMode="contains";filterLocale;metaKeySelection=!0;dataKey;showToggleAll=!0;optionLabel;optionValue;optionGroupChildren="items";optionGroupLabel;optionDisabled;ariaFilterLabel;filterPlaceHolder;emptyFilterMessage;emptyMessage;group;get options(){return this._options}set options(e){this._options=e,this.hasFilter()&&this.activateFilter()}get filterValue(){return this._filterValue}set filterValue(e){this._filterValue=e,this.activateFilter()}onChange=new q;onClick=new q;onDblClick=new q;headerCheckboxViewChild;filterViewChild;headerFacet;footerFacet;templates;_options;itemTemplate;groupTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;filterIconTemplate;checkIconTemplate;_filterValue;_filteredOptions;filterOptions;filtered;value;onModelChange=()=>{};onModelTouched=()=>{};optionTouched;focus;headerCheckboxFocus;translationSubscription;constructor(e,n,i,o){this.el=e,this.cd=n,this.filterService=i,this.config=o}ngOnInit(){this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.cd.markForCheck()}),this.filterBy&&(this.filterOptions={filter:e=>this.onFilter(e),reset:()=>this.resetFilter()})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"group":this.groupTemplate=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"empty":this.emptyTemplate=e.template;break;case"emptyfilter":this.emptyFilterTemplate=e.template;break;case"filtericon":this.filterIconTemplate=e.template;break;case"checkicon":this.checkIconTemplate=e.template}})}getOptionLabel(e){return this.optionLabel?Y.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?Y.resolveFieldData(e,this.optionGroupChildren):e.items}getOptionGroupLabel(e){return this.optionGroupLabel?Y.resolveFieldData(e,this.optionGroupLabel):null!=e.label?e.label:e}getOptionValue(e){return this.optionValue?Y.resolveFieldData(e,this.optionValue):this.optionLabel||void 0===e.value?e:e.value}isOptionDisabled(e){return this.optionDisabled?Y.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()}onOptionClick(e,n){this.disabled||this.isOptionDisabled(n)||this.readonly||(this.multiple?this.checkbox?this.onOptionClickCheckbox(e,n):this.onOptionClickMultiple(e,n):this.onOptionClickSingle(e,n),this.onClick.emit({originalEvent:e,option:n,value:this.value}),this.optionTouched=!1)}onOptionTouchEnd(e){this.disabled||this.isOptionDisabled(e)||this.readonly||(this.optionTouched=!0)}onOptionDoubleClick(e,n){this.disabled||this.isOptionDisabled(n)||this.readonly||this.onDblClick.emit({originalEvent:e,option:n,value:this.value})}onOptionClickSingle(e,n){let i=this.isSelected(n),o=!1;!this.optionTouched&&this.metaKeySelection?i?(e.metaKey||e.ctrlKey)&&(this.value=null,o=!0):(this.value=this.getOptionValue(n),o=!0):(this.value=i?null:this.getOptionValue(n),o=!0),o&&(this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}onOptionClickMultiple(e,n){let i=this.isSelected(n),o=!1;if(!this.optionTouched&&this.metaKeySelection){let u=e.metaKey||e.ctrlKey;i?(u?this.removeOption(n):this.value=[this.getOptionValue(n)],o=!0):(this.value=u&&this.value||[],this.value=[...this.value,this.getOptionValue(n)],o=!0)}else i?this.removeOption(n):this.value=[...this.value||[],this.getOptionValue(n)],o=!0;o&&(this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}onOptionClickCheckbox(e,n){this.disabled||this.readonly||(this.isSelected(n)?this.removeOption(n):(this.value=this.value?this.value:[],this.value=[...this.value,this.getOptionValue(n)]),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}removeOption(e){this.value=this.value.filter(n=>!Y.equals(n,this.getOptionValue(e),this.dataKey))}isSelected(e){let n=!1,i=this.getOptionValue(e);if(this.multiple){if(this.value)for(let o of this.value)if(Y.equals(o,i,this.dataKey)){n=!0;break}}else n=Y.equals(this.value,i,this.dataKey);return n}get allChecked(){let e=this.optionsToRender;if(!e||0===e.length)return!1;{let n=0,i=0,o=0,r=this.group?0:this.optionsToRender.length;for(let u of e)if(this.group)for(let h of this.getOptionGroupChildren(u)){let b=this.isOptionDisabled(h),T=this.isSelected(h);if(b)T?n++:i++;else{if(!T)return!1;o++}r++}else{let h=this.isOptionDisabled(u),b=this.isSelected(u);if(h)b?n++:i++;else{if(!b)return!1;o++}}return r===n||r===o||o&&r===o+i+n}}get optionsToRender(){return this._filteredOptions||this.options}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(jt.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(jt.EMPTY_FILTER_MESSAGE)}hasFilter(){return this._filterValue&&this._filterValue.trim().length>0}isEmpty(){return!this.optionsToRender||this.optionsToRender&&0===this.optionsToRender.length}onFilter(e){this._filterValue=e.target.value,this.activateFilter()}activateFilter(){if(this.hasFilter()&&this._options)if(this.group){let e=(this.filterBy||this.optionLabel||"label").split(","),n=[];for(let i of this.options){let o=this.filterService.filter(this.getOptionGroupChildren(i),e,this.filterValue,this.filterMatchMode,this.filterLocale);o&&o.length&&n.push({...i,[this.optionGroupChildren]:o})}this._filteredOptions=n}else this._filteredOptions=this._options.filter(e=>this.filterService.filters[this.filterMatchMode](this.getOptionLabel(e),this._filterValue,this.filterLocale));else this._filteredOptions=null}resetFilter(){this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value=""),this._filterValue=null,this._filteredOptions=null}get toggleAllDisabled(){let e=this.optionsToRender;if(!e||0===e.length)return!0;for(let n of e)if(!this.isOptionDisabled(n))return!1;return!0}toggleAll(e){this.disabled||this.toggleAllDisabled||this.readonly||(this.allChecked?this.uncheckAll():this.checkAll(),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}),e.preventDefault())}checkAll(){let n=[];this.optionsToRender.forEach(i=>{if(this.group){let o=this.getOptionGroupChildren(i);o&&o.forEach(r=>{let u=this.isOptionDisabled(r);(!u||u&&this.isSelected(r))&&n.push(this.getOptionValue(r))})}else{let o=this.isOptionDisabled(i);(!o||o&&this.isSelected(i))&&n.push(this.getOptionValue(i))}}),this.value=n}uncheckAll(){let n=[];this.optionsToRender.forEach(i=>{this.group?i.items&&i.items.forEach(o=>{this.isOptionDisabled(o)&&this.isSelected(o)&&n.push(this.getOptionValue(o))}):this.isOptionDisabled(i)&&this.isSelected(i)&&n.push(this.getOptionValue(i))}),this.value=n}onOptionKeyDown(e,n){if(this.readonly)return;let i=e.currentTarget;switch(e.which){case 40:var o=this.findNextItem(i);o&&o.focus(),e.preventDefault();break;case 38:var r=this.findPrevItem(i);r&&r.focus(),e.preventDefault();break;case 13:this.onOptionClick(e,n),e.preventDefault()}}findNextItem(e){let n=e.nextElementSibling;return n?R.hasClass(n,"p-disabled")||R.isHidden(n)||R.hasClass(n,"p-listbox-item-group")?this.findNextItem(n):n:null}findPrevItem(e){let n=e.previousElementSibling;return n?R.hasClass(n,"p-disabled")||R.isHidden(n)||R.hasClass(n,"p-listbox-item-group")?this.findPrevItem(n):n:null}onHeaderCheckboxFocus(){this.headerCheckboxFocus=!0}onHeaderCheckboxBlur(){this.headerCheckboxFocus=!1}ngOnDestroy(){this.translationSubscription&&this.translationSubscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)(M(Pe),M(rt),M(ec),M(Hn))};static \u0275cmp=U({type:t,selectors:[["p-listbox"]],contentQueries:function(n,i,o){if(1&n&&(Ye(o,pa,5),Ye(o,tc,5),Ye(o,ae,4)),2&n){let r;H(r=G())&&(i.headerFacet=r.first),H(r=G())&&(i.footerFacet=r.first),H(r=G())&&(i.templates=r)}},viewQuery:function(n,i){if(1&n&&(K(Uj,5),K(jj,5)),2&n){let o;H(o=G())&&(i.headerCheckboxViewChild=o.first),H(o=G())&&(i.filterViewChild=o.first)}},hostAttrs:[1,"p-element"],inputs:{multiple:"multiple",style:"style",styleClass:"styleClass",listStyle:"listStyle",listStyleClass:"listStyleClass",readonly:"readonly",disabled:"disabled",checkbox:"checkbox",filter:"filter",filterBy:"filterBy",filterMatchMode:"filterMatchMode",filterLocale:"filterLocale",metaKeySelection:"metaKeySelection",dataKey:"dataKey",showToggleAll:"showToggleAll",optionLabel:"optionLabel",optionValue:"optionValue",optionGroupChildren:"optionGroupChildren",optionGroupLabel:"optionGroupLabel",optionDisabled:"optionDisabled",ariaFilterLabel:"ariaFilterLabel",filterPlaceHolder:"filterPlaceHolder",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",group:"group",options:"options",filterValue:"filterValue"},outputs:{onChange:"onChange",onClick:"onClick",onDblClick:"onDblClick"},features:[Qe([q$])],ngContentSelectors:G$,decls:12,vars:18,consts:[[3,"ngClass","ngStyle"],["class","p-listbox-header",4,"ngIf"],["role","listbox",1,"p-listbox-list"],[4,"ngIf"],["itemslist",""],["class","p-listbox-empty-message",4,"ngIf"],["class","p-listbox-footer",4,"ngIf"],[1,"p-listbox-header"],[4,"ngTemplateOutlet"],["class","p-checkbox p-component",3,"ngClass",4,"ngIf"],[4,"ngIf","ngIfElse"],["builtInFilterElement",""],[1,"p-checkbox","p-component",3,"ngClass"],[1,"p-hidden-accessible"],["type","checkbox","readonly","readonly",3,"checked","disabled","focus","blur","keydown.space"],[1,"p-checkbox-box",3,"ngClass","click"],["headerchkbox",""],[3,"styleClass",4,"ngIf"],["class","p-checkbox-icon",4,"ngIf"],[3,"styleClass"],[1,"p-checkbox-icon"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-listbox-filter-container",4,"ngIf"],[1,"p-listbox-filter-container"],["type","text",1,"p-listbox-filter","p-inputtext","p-component",3,"value","disabled","input"],["filter",""],["class","p-listbox-filter-icon",4,"ngIf"],[1,"p-listbox-filter-icon"],["ngFor","",3,"ngForOf"],[1,"p-listbox-item-group"],["pRipple","","role","option",3,"ngClass","click","dblclick","touchend","keydown",4,"ngFor","ngForOf"],["pRipple","","role","option",3,"ngClass","click","dblclick","touchend","keydown"],[1,"p-checkbox-box",3,"ngClass"],[1,"p-listbox-empty-message"],["emptyFilter",""],["empty",""],[1,"p-listbox-footer"]],template:function(n,i){1&n&&(_n(B$),l(0,"div",0),m(1,Wj,3,1,"div",1),m(2,u$,5,3,"div",1),l(3,"div",0)(4,"ul",2),m(5,f$,2,1,"ng-container",3),m(6,_$,2,4,"ng-container",3),m(7,E$,1,1,"ng-template",null,4,ve),m(9,O$,3,3,"li",5),m(10,F$,3,3,"li",5),c()(),m(11,V$,3,1,"div",6),c()),2&n&&(se(i.styleClass),d("ngClass",W(16,H$,i.disabled))("ngStyle",i.style),a(1),d("ngIf",i.headerFacet||i.headerTemplate),a(1),d("ngIf",i.checkbox&&i.multiple&&i.showToggleAll||i.filter),a(1),se(i.listStyleClass),d("ngClass","p-listbox-list-wrapper")("ngStyle",i.listStyle),a(1),F("aria-multiselectable",i.multiple),a(1),d("ngIf",i.group),a(1),d("ngIf",!i.group),a(3),d("ngIf",i.hasFilter()&&i.isEmpty()),a(1),d("ngIf",!i.hasFilter()&&i.isEmpty()),a(1),d("ngIf",i.footerFacet||i.footerTemplate))},dependencies:function(){return[Fe,ut,ne,dt,nt,bt,fa,Gn]},styles:["@layer primeng{.p-listbox-list-wrapper{overflow:auto}.p-listbox-list{list-style-type:none;margin:0;padding:0}.p-listbox-item{cursor:pointer;position:relative;overflow:hidden;display:flex;align-items:center;-webkit-user-select:none;user-select:none}.p-listbox-header{display:flex;align-items:center}.p-listbox-filter-container{position:relative;flex:1 1 auto}.p-listbox-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-listbox-filter{width:100%}}\n"],encapsulation:2,changeDetection:0})}return t})(),z$=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=me({imports:[Ne,ze,Cn,fa,Gn,ze]})}return t})();function V_(...t){const s=La(t),e=H1(t),{args:n,keys:i}=Bw(t);if(0===n.length)return hn([],s);const o=new It(function U$(t,s,e=Ws){return n=>{sS(s,()=>{const{length:i}=t,o=new Array(i);let r=i,u=i;for(let h=0;h{const b=hn(t[h],s);let T=!1;b.subscribe(sn(n,w=>{o[h]=w,T||(T=!0,u--),u||n.next(e(o.slice()))},()=>{--r||n.complete()}))},n)},n)}}(n,s,i?r=>Gw(i,r):Ws));return e?o.pipe(Hw(e)):o}function sS(t,s,e){t?Is(e,t,s):s()}const vp=ka(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function oc(t,s){const e=Mt(t)?t:()=>t,n=i=>i.error(e());return new It(s?i=>s.schedule(n,0,i):n)}function B_(){return cn((t,s)=>{let e=null;t._refCount++;const n=sn(s,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(e=null);const i=t._connection,o=e;e=null,i&&(!o||i===o)&&i.unsubscribe(),s.unsubscribe()});t.subscribe(n),n.closed||(e=t.connect())})}class oS extends It{constructor(s,e){super(),this.source=s,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,I1(s)&&(this.lift=s.lift)}_subscribe(s){return this.getSubject().subscribe(s)}getSubject(){const s=this._subject;return(!s||s.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:s}=this;this._subject=this._connection=null,s?.unsubscribe()}connect(){let s=this._connection;if(!s){s=this._connection=new ti;const e=this.getSubject();s.add(this.source.subscribe(sn(e,void 0,()=>{this._teardown(),e.complete()},n=>{this._teardown(),e.error(n)},()=>this._teardown()))),s.closed&&(this._connection=null,s=ti.EMPTY)}return s}refCount(){return B_()(this)}}function rS(...t){const s=La(t);return cn((e,n)=>{(s?la(t,e,s):la(t,e)).subscribe(n)})}function Cp(t){return cn((s,e)=>{let n=!1;s.subscribe(sn(e,i=>{n=!0,e.next(i)},()=>{n||e.next(t),e.complete()}))})}function aS(t=j$){return cn((s,e)=>{let n=!1;s.subscribe(sn(e,i=>{n=!0,e.next(i)},()=>n?e.complete():e.error(t())))})}function j$(){return new vp}function Yo(t,s){const e=arguments.length>=2;return n=>n.pipe(t?Bs((i,o)=>t(i,o,n)):Ws,Pi(1),e?Cp(s):aS(()=>new vp))}function qn(t,s,e){const n=Mt(t)||s||e?{next:t,error:s,complete:e}:t;return n?cn((i,o)=>{var r;null===(r=n.subscribe)||void 0===r||r.call(n);let u=!0;i.subscribe(sn(o,h=>{var b;null===(b=n.next)||void 0===b||b.call(n,h),o.next(h)},()=>{var h;u=!1,null===(h=n.complete)||void 0===h||h.call(n),o.complete()},h=>{var b;u=!1,null===(b=n.error)||void 0===b||b.call(n,h),o.error(h)},()=>{var h,b;u&&(null===(h=n.unsubscribe)||void 0===h||h.call(n)),null===(b=n.finalize)||void 0===b||b.call(n)}))}):Ws}function Xo(t){return cn((s,e)=>{let o,n=null,i=!1;n=s.subscribe(sn(e,void 0,void 0,r=>{o=ni(t(r,Xo(t)(s))),n?(n.unsubscribe(),n=null,o.subscribe(e)):i=!0})),i&&(n.unsubscribe(),n=null,o.subscribe(e))})}function H_(t){return t<=0?()=>ss:cn((s,e)=>{let n=[];s.subscribe(sn(e,i=>{n.push(i),t{for(const i of n)e.next(i);e.complete()},void 0,()=>{n=null}))})}function lS(t){return at(()=>t)}const Ue="primary",rc=Symbol("RouteTitle");class J${constructor(s){this.params=s||{}}has(s){return Object.prototype.hasOwnProperty.call(this.params,s)}get(s){if(this.has(s)){const e=this.params[s];return Array.isArray(e)?e[0]:e}return null}getAll(s){if(this.has(s)){const e=this.params[s];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function ga(t){return new J$(t)}function Z$(t,s,e){const n=e.path.split("/");if(n.length>t.length||"full"===e.pathMatch&&(s.hasChildren()||n.lengthn[o]===i)}return t===s}function uS(t){return t.length>0?t[t.length-1]:null}function go(t){return Hs(t)?t:bl(t)?hn(Promise.resolve(t)):ue(t)}const X$={exact:function hS(t,s,e){if(!er(t.segments,s.segments)||!yp(t.segments,s.segments,e)||t.numberOfChildren!==s.numberOfChildren)return!1;for(const n in s.children)if(!t.children[n]||!hS(t.children[n],s.children[n],e))return!1;return!0},subset:mS},dS={exact:function eW(t,s){return Cs(t,s)},subset:function tW(t,s){return Object.keys(s).length<=Object.keys(t).length&&Object.keys(s).every(e=>cS(t[e],s[e]))},ignored:()=>!0};function pS(t,s,e){return X$[e.paths](t.root,s.root,e.matrixParams)&&dS[e.queryParams](t.queryParams,s.queryParams)&&!("exact"===e.fragment&&t.fragment!==s.fragment)}function mS(t,s,e){return fS(t,s,s.segments,e)}function fS(t,s,e,n){if(t.segments.length>e.length){const i=t.segments.slice(0,e.length);return!(!er(i,e)||s.hasChildren()||!yp(i,e,n))}if(t.segments.length===e.length){if(!er(t.segments,e)||!yp(t.segments,e,n))return!1;for(const i in s.children)if(!t.children[i]||!mS(t.children[i],s.children[i],n))return!1;return!0}{const i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!!(er(t.segments,i)&&yp(t.segments,i,n)&&t.children[Ue])&&fS(t.children[Ue],s,o,n)}}function yp(t,s,e){return s.every((n,i)=>dS[e](t[i].parameters,n.parameters))}class _a{constructor(s=new Dt([],{}),e={},n=null){this.root=s,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ga(this.queryParams)),this._queryParamMap}toString(){return sW.serialize(this)}}class Dt{constructor(s,e){this.segments=s,this.children=e,this.parent=null,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Tp(this)}}class ac{constructor(s,e){this.path=s,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=ga(this.parameters)),this._parameterMap}toString(){return bS(this)}}function er(t,s){return t.length===s.length&&t.every((e,n)=>e.path===s[n].path)}let lc=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=re({token:t,factory:function(){return new G_},providedIn:"root"})}return t})();class G_{parse(s){const e=new fW(s);return new _a(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(s){const e=`/${cc(s.root,!0)}`,n=function aW(t){const s=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(i=>`${wp(e)}=${wp(i)}`).join("&"):`${wp(e)}=${wp(n)}`}).filter(e=>!!e);return s.length?`?${s.join("&")}`:""}(s.queryParams);return`${e}${n}${"string"==typeof s.fragment?`#${function oW(t){return encodeURI(t)}(s.fragment)}`:""}`}}const sW=new G_;function Tp(t){return t.segments.map(s=>bS(s)).join("/")}function cc(t,s){if(!t.hasChildren())return Tp(t);if(s){const e=t.children[Ue]?cc(t.children[Ue],!1):"",n=[];return Object.entries(t.children).forEach(([i,o])=>{i!==Ue&&n.push(`${i}:${cc(o,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function iW(t,s){let e=[];return Object.entries(t.children).forEach(([n,i])=>{n===Ue&&(e=e.concat(s(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==Ue&&(e=e.concat(s(i,n)))}),e}(t,(n,i)=>i===Ue?[cc(t.children[Ue],!1)]:[`${i}:${cc(n,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[Ue]?`${Tp(t)}/${e[0]}`:`${Tp(t)}/(${e.join("//")})`}}function gS(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function wp(t){return gS(t).replace(/%3B/gi,";")}function q_(t){return gS(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ip(t){return decodeURIComponent(t)}function _S(t){return Ip(t.replace(/\+/g,"%20"))}function bS(t){return`${q_(t.path)}${function rW(t){return Object.keys(t).map(s=>`;${q_(s)}=${q_(t[s])}`).join("")}(t.parameters)}`}const lW=/^[^\/()?;#]+/;function z_(t){const s=t.match(lW);return s?s[0]:""}const cW=/^[^\/()?;=#]+/,dW=/^[^=?]+/,hW=/^[^]+/;class fW{constructor(s){this.url=s,this.remaining=s}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Dt([],{}):new Dt([],this.parseChildren())}parseQueryParams(){const s={};if(this.consumeOptional("?"))do{this.parseQueryParam(s)}while(this.consumeOptional("&"));return s}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const s=[];for(this.peekStartsWith("(")||s.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),s.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(s.length>0||Object.keys(e).length>0)&&(n[Ue]=new Dt(s,e)),n}parseSegment(){const s=z_(this.remaining);if(""===s&&this.peekStartsWith(";"))throw new $(4009,!1);return this.capture(s),new ac(Ip(s),this.parseMatrixParams())}parseMatrixParams(){const s={};for(;this.consumeOptional(";");)this.parseParam(s);return s}parseParam(s){const e=function uW(t){const s=t.match(cW);return s?s[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const i=z_(this.remaining);i&&(n=i,this.capture(n))}s[Ip(e)]=Ip(n)}parseQueryParam(s){const e=function pW(t){const s=t.match(dW);return s?s[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const r=function mW(t){const s=t.match(hW);return s?s[0]:""}(this.remaining);r&&(n=r,this.capture(n))}const i=_S(e),o=_S(n);if(s.hasOwnProperty(i)){let r=s[i];Array.isArray(r)||(r=[r],s[i]=r),r.push(o)}else s[i]=o}parseParens(s){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=z_(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new $(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):s&&(o=Ue);const r=this.parseChildren();e[o]=1===Object.keys(r).length?r[Ue]:new Dt([],r),this.consumeOptional("//")}return e}peekStartsWith(s){return this.remaining.startsWith(s)}consumeOptional(s){return!!this.peekStartsWith(s)&&(this.remaining=this.remaining.substring(s.length),!0)}capture(s){if(!this.consumeOptional(s))throw new $(4011,!1)}}function vS(t){return t.segments.length>0?new Dt([],{[Ue]:t}):t}function CS(t){const s={};for(const n of Object.keys(t.children)){const o=CS(t.children[n]);if(n===Ue&&0===o.segments.length&&o.hasChildren())for(const[r,u]of Object.entries(o.children))s[r]=u;else(o.segments.length>0||o.hasChildren())&&(s[n]=o)}return function gW(t){if(1===t.numberOfChildren&&t.children[Ue]){const s=t.children[Ue];return new Dt(t.segments.concat(s.segments),s.children)}return t}(new Dt(t.segments,s))}function tr(t){return t instanceof _a}function yS(t){let s;const i=vS(function e(o){const r={};for(const h of o.children){const b=e(h);r[h.outlet]=b}const u=new Dt(o.url,r);return o===t&&(s=u),u}(t.root));return s??i}function TS(t,s,e,n){let i=t;for(;i.parent;)i=i.parent;if(0===s.length)return U_(i,i,i,e,n);const o=function bW(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new IS(!0,0,t);let s=0,e=!1;const n=t.reduce((i,o,r)=>{if("object"==typeof o&&null!=o){if(o.outlets){const u={};return Object.entries(o.outlets).forEach(([h,b])=>{u[h]="string"==typeof b?b.split("/"):b}),[...i,{outlets:u}]}if(o.segmentPath)return[...i,o.segmentPath]}return"string"!=typeof o?[...i,o]:0===r?(o.split("/").forEach((u,h)=>{0==h&&"."===u||(0==h&&""===u?e=!0:".."===u?s++:""!=u&&i.push(u))}),i):[...i,o]},[]);return new IS(e,s,n)}(s);if(o.toRoot())return U_(i,i,new Dt([],{}),e,n);const r=function vW(t,s,e){if(t.isAbsolute)return new xp(s,!0,0);if(!e)return new xp(s,!1,NaN);if(null===e.parent)return new xp(e,!0,0);const n=Sp(t.commands[0])?0:1;return function CW(t,s,e){let n=t,i=s,o=e;for(;o>i;){if(o-=i,n=n.parent,!n)throw new $(4005,!1);i=n.segments.length}return new xp(n,!1,i-o)}(e,e.segments.length-1+n,t.numberOfDoubleDots)}(o,i,t),u=r.processChildren?dc(r.segmentGroup,r.index,o.commands):SS(r.segmentGroup,r.index,o.commands);return U_(i,r.segmentGroup,u,e,n)}function Sp(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function uc(t){return"object"==typeof t&&null!=t&&t.outlets}function U_(t,s,e,n,i){let r,o={};n&&Object.entries(n).forEach(([h,b])=>{o[h]=Array.isArray(b)?b.map(T=>`${T}`):`${b}`}),r=t===s?e:wS(t,s,e);const u=vS(CS(r));return new _a(u,o,i)}function wS(t,s,e){const n={};return Object.entries(t.children).forEach(([i,o])=>{n[i]=o===s?e:wS(o,s,e)}),new Dt(t.segments,n)}class IS{constructor(s,e,n){if(this.isAbsolute=s,this.numberOfDoubleDots=e,this.commands=n,s&&n.length>0&&Sp(n[0]))throw new $(4003,!1);const i=n.find(uc);if(i&&i!==uS(n))throw new $(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class xp{constructor(s,e,n){this.segmentGroup=s,this.processChildren=e,this.index=n}}function SS(t,s,e){if(t||(t=new Dt([],{})),0===t.segments.length&&t.hasChildren())return dc(t,s,e);const n=function TW(t,s,e){let n=0,i=s;const o={match:!1,pathIndex:0,commandIndex:0};for(;i=e.length)return o;const r=t.segments[i],u=e[n];if(uc(u))break;const h=`${u}`,b=n0&&void 0===h)break;if(h&&b&&"object"==typeof b&&void 0===b.outlets){if(!DS(h,b,r))return o;n+=2}else{if(!DS(h,{},r))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}(t,s,e),i=e.slice(n.commandIndex);if(n.match&&n.pathIndexo!==Ue)&&t.children[Ue]&&1===t.numberOfChildren&&0===t.children[Ue].segments.length){const o=dc(t.children[Ue],s,e);return new Dt(t.segments,o.children)}return Object.entries(n).forEach(([o,r])=>{"string"==typeof r&&(r=[r]),null!==r&&(i[o]=SS(t.children[o],s,r))}),Object.entries(t.children).forEach(([o,r])=>{void 0===n[o]&&(i[o]=r)}),new Dt(t.segments,i)}}function j_(t,s,e){const n=t.segments.slice(0,s);let i=0;for(;i{"string"==typeof n&&(n=[n]),null!==n&&(s[e]=j_(new Dt([],{}),0,n))}),s}function xS(t){const s={};return Object.entries(t).forEach(([e,n])=>s[e]=`${n}`),s}function DS(t,s,e){return t==e.path&&Cs(s,e.parameters)}const pc="imperative";class ys{constructor(s,e){this.id=s,this.url=e}}class Dp extends ys{constructor(s,e,n="imperative",i=null){super(s,e),this.type=0,this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class _o extends ys{constructor(s,e,n){super(s,e),this.urlAfterRedirects=n,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class hc extends ys{constructor(s,e,n,i){super(s,e),this.reason=n,this.code=i,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ba extends ys{constructor(s,e,n,i){super(s,e),this.reason=n,this.code=i,this.type=16}}class Mp extends ys{constructor(s,e,n,i){super(s,e),this.error=n,this.target=i,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class MS extends ys{constructor(s,e,n,i){super(s,e),this.urlAfterRedirects=n,this.state=i,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class IW extends ys{constructor(s,e,n,i){super(s,e),this.urlAfterRedirects=n,this.state=i,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class SW extends ys{constructor(s,e,n,i,o){super(s,e),this.urlAfterRedirects=n,this.state=i,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 xW extends ys{constructor(s,e,n,i){super(s,e),this.urlAfterRedirects=n,this.state=i,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class DW extends ys{constructor(s,e,n,i){super(s,e),this.urlAfterRedirects=n,this.state=i,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class MW{constructor(s){this.route=s,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class kW{constructor(s){this.route=s,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class EW{constructor(s){this.snapshot=s,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class LW{constructor(s){this.snapshot=s,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class RW{constructor(s){this.snapshot=s,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class OW{constructor(s){this.snapshot=s,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class kS{constructor(s,e,n){this.routerEvent=s,this.position=e,this.anchor=n,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class $_{}class W_{constructor(s){this.url=s}}class AW{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new mc,this.attachRef=null}}let mc=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,n){const i=this.getOrCreateContext(e);i.outlet=n,this.contexts.set(e,i)}onChildOutletDestroyed(e){const n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new AW,this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class ES{constructor(s){this._root=s}get root(){return this._root.value}parent(s){const e=this.pathFromRoot(s);return e.length>1?e[e.length-2]:null}children(s){const e=K_(s,this._root);return e?e.children.map(n=>n.value):[]}firstChild(s){const e=K_(s,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(s){const e=Q_(s,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==s)}pathFromRoot(s){return Q_(s,this._root).map(e=>e.value)}}function K_(t,s){if(t===s.value)return s;for(const e of s.children){const n=K_(t,e);if(n)return n}return null}function Q_(t,s){if(t===s.value)return[s];for(const e of s.children){const n=Q_(t,e);if(n.length)return n.unshift(s),n}return[]}class Us{constructor(s,e){this.value=s,this.children=e}toString(){return`TreeNode(${this.value})`}}function va(t){const s={};return t&&t.children.forEach(e=>s[e.value.outlet]=e),s}class LS extends ES{constructor(s,e){super(s),this.snapshot=e,J_(this,s)}toString(){return this.snapshot.toString()}}function RS(t,s){const e=function PW(t,s){const r=new kp([],{},{},"",{},Ue,s,null,{});return new AS("",new Us(r,[]))}(0,s),n=new Ii([new ac("",{})]),i=new Ii({}),o=new Ii({}),r=new Ii({}),u=new Ii(""),h=new bo(n,i,r,u,o,Ue,s,e.root);return h.snapshot=e.root,new LS(new Us(h,[]),e)}class bo{constructor(s,e,n,i,o,r,u,h){this.urlSubject=s,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=r,this.component=u,this._futureSnapshot=h,this.title=this.dataSubject?.pipe(at(b=>b[rc]))??ue(void 0),this.url=s,this.params=e,this.queryParams=n,this.fragment=i,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(at(s=>ga(s)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(at(s=>ga(s)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function OS(t,s="emptyOnly"){const e=t.pathFromRoot;let n=0;if("always"!==s)for(n=e.length-1;n>=1;){const i=e[n],o=e[n-1];if(i.routeConfig&&""===i.routeConfig.path)n--;else{if(o.component)break;n--}}return function FW(t){return t.reduce((s,e)=>({params:{...s.params,...e.params},data:{...s.data,...e.data},resolve:{...e.data,...s.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(n))}class kp{get title(){return this.data?.[rc]}constructor(s,e,n,i,o,r,u,h,b){this.url=s,this.params=e,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=r,this.component=u,this.routeConfig=h,this._resolve=b}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=ga(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ga(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(n=>n.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class AS extends ES{constructor(s,e){super(e),this.url=s,J_(this,e)}toString(){return PS(this._root)}}function J_(t,s){s.value._routerState=t,s.children.forEach(e=>J_(t,e))}function PS(t){const s=t.children.length>0?` { ${t.children.map(PS).join(", ")} } `:"";return`${t.value}${s}`}function Z_(t){if(t.snapshot){const s=t.snapshot,e=t._futureSnapshot;t.snapshot=e,Cs(s.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),s.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),Cs(s.params,e.params)||t.paramsSubject.next(e.params),function Y$(t,s){if(t.length!==s.length)return!1;for(let e=0;eCs(e.parameters,s[n].parameters))}(t.url,s.url);return e&&!(!t.parent!=!s.parent)&&(!t.parent||Y_(t.parent,s.parent))}let fc=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ue,this.activateEvents=new q,this.deactivateEvents=new q,this.attachEvents=new q,this.detachEvents=new q,this.parentContexts=de(mc),this.location=de(Ri),this.changeDetector=de(rt),this.environmentInjector=de(gi),this.inputBinder=de(Ep,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){const{firstChange:n,previousValue:i}=e.name;if(n)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),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 $(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new $(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new $(4012,!1);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,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,n){if(this.isActivated)throw new $(4013,!1);this._activatedRoute=e;const i=this.location,r=e.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,h=new NW(e,u,i.injector);this.activated=i.createComponent(r,{index:i.length,injector:h,environmentInjector:n??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275dir=fe({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[wn]})}return t})();class NW{constructor(s,e,n){this.route=s,this.childContexts=e,this.parent=n}get(s,e){return s===bo?this.route:s===mc?this.childContexts:this.parent.get(s,e)}}const Ep=new le("");let FS=(()=>{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:n}=e,i=V_([n.queryParams,n.params,n.data]).pipe(ui(([o,r,u],h)=>(u={...o,...r,...u},0===h?ue(u):Promise.resolve(u)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||null===n.component)return void this.unsubscribeFromRouteData(e);const r=function t9(t){const s=it(t);if(!s)return null;const e=new hl(s);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 s.standalone},get isSignal(){return s.signals}}}(n.component);if(r)for(const{templateName:u}of r.inputs)e.activatedComponentRef.setInput(u,o[u]);else this.unsubscribeFromRouteData(e)});this.outletDataSubscriptions.set(e,i)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac})}return t})();function gc(t,s,e){if(e&&t.shouldReuseRoute(s.value,e.value.snapshot)){const n=e.value;n._futureSnapshot=s.value;const i=function BW(t,s,e){return s.children.map(n=>{for(const i of e.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return gc(t,n,i);return gc(t,n)})}(t,s,e);return new Us(n,i)}{if(t.shouldAttach(s.value)){const o=t.retrieve(s.value);if(null!==o){const r=o.route;return r.value._futureSnapshot=s.value,r.children=s.children.map(u=>gc(t,u)),r}}const n=function HW(t){return new bo(new Ii(t.url),new Ii(t.params),new Ii(t.queryParams),new Ii(t.fragment),new Ii(t.data),t.outlet,t.component,t)}(s.value),i=s.children.map(o=>gc(t,o));return new Us(n,i)}}const X_="ngNavigationCancelingError";function NS(t,s){const{redirectTo:e,navigationBehaviorOptions:n}=tr(s)?{redirectTo:s,navigationBehaviorOptions:void 0}:s,i=VS(!1,0,s);return i.url=e,i.navigationBehaviorOptions=n,i}function VS(t,s,e){const n=new Error("NavigationCancelingError: "+(t||""));return n[X_]=!0,n.cancellationCode=s,e&&(n.url=e),n}function BS(t){return t&&t[X_]}let HS=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=U({type:t,selectors:[["ng-component"]],standalone:!0,features:[ot],decls:1,vars:0,template:function(n,i){1&n&&D(0,"router-outlet")},dependencies:[fc],encapsulation:2})}return t})();function e1(t){const s=t.children&&t.children.map(e1),e=s?{...t,children:s}:{...t};return!e.component&&!e.loadComponent&&(s||e.loadChildren)&&e.outlet&&e.outlet!==Ue&&(e.component=HS),e}function ts(t){return t.outlet||Ue}function _c(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let s=t.parent;s;s=s.parent){const e=s.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class KW{constructor(s,e,n,i,o){this.routeReuseStrategy=s,this.futureState=e,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(s){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,s),Z_(this.futureState.root),this.activateChildRoutes(e,n,s)}deactivateChildRoutes(s,e,n){const i=va(e);s.children.forEach(o=>{const r=o.value.outlet;this.deactivateRoutes(o,i[r],n),delete i[r]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(s,e,n){const i=s.value,o=e?e.value:null;if(i===o)if(i.component){const r=n.getContext(i.outlet);r&&this.deactivateChildRoutes(s,e,r.children)}else this.deactivateChildRoutes(s,e,n);else o&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(s,e){s.value.component&&this.routeReuseStrategy.shouldDetach(s.value.snapshot)?this.detachAndStoreRouteSubtree(s,e):this.deactivateRouteAndOutlet(s,e)}detachAndStoreRouteSubtree(s,e){const n=e.getContext(s.value.outlet),i=n&&s.value.component?n.children:e,o=va(s);for(const r of Object.keys(o))this.deactivateRouteAndItsChildren(o[r],i);if(n&&n.outlet){const r=n.outlet.detach(),u=n.children.onOutletDeactivated();this.routeReuseStrategy.store(s.value.snapshot,{componentRef:r,route:s,contexts:u})}}deactivateRouteAndOutlet(s,e){const n=e.getContext(s.value.outlet),i=n&&s.value.component?n.children:e,o=va(s);for(const r of Object.keys(o))this.deactivateRouteAndItsChildren(o[r],i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(s,e,n){const i=va(e);s.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new OW(o.value.snapshot))}),s.children.length&&this.forwardEvent(new LW(s.value.snapshot))}activateRoutes(s,e,n){const i=s.value,o=e?e.value:null;if(Z_(i),i===o)if(i.component){const r=n.getOrCreateContext(i.outlet);this.activateChildRoutes(s,e,r.children)}else this.activateChildRoutes(s,e,n);else if(i.component){const r=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const u=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),r.children.onOutletReAttached(u.contexts),r.attachRef=u.componentRef,r.route=u.route.value,r.outlet&&r.outlet.attach(u.componentRef,u.route.value),Z_(u.route.value),this.activateChildRoutes(s,null,r.children)}else{const u=_c(i.snapshot);r.attachRef=null,r.route=i,r.injector=u,r.outlet&&r.outlet.activateWith(i,r.injector),this.activateChildRoutes(s,null,r.children)}}else this.activateChildRoutes(s,null,n)}}class GS{constructor(s){this.path=s,this.route=this.path[this.path.length-1]}}class Lp{constructor(s,e){this.component=s,this.route=e}}function QW(t,s,e){const n=t._root;return bc(n,s?s._root:null,e,[n.value])}function Ca(t,s){const e=Symbol(),n=s.get(t,e);return n===e?"function"!=typeof t||function I4(t){return null!==Vc(t)}(t)?s.get(t):t:n}function bc(t,s,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=va(s);return t.children.forEach(r=>{(function ZW(t,s,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,r=s?s.value:null,u=e?e.getContext(t.value.outlet):null;if(r&&o.routeConfig===r.routeConfig){const h=function YW(t,s,e){if("function"==typeof e)return e(t,s);switch(e){case"pathParamsChange":return!er(t.url,s.url);case"pathParamsOrQueryParamsChange":return!er(t.url,s.url)||!Cs(t.queryParams,s.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Y_(t,s)||!Cs(t.queryParams,s.queryParams);default:return!Y_(t,s)}}(r,o,o.routeConfig.runGuardsAndResolvers);h?i.canActivateChecks.push(new GS(n)):(o.data=r.data,o._resolvedData=r._resolvedData),bc(t,s,o.component?u?u.children:null:e,n,i),h&&u&&u.outlet&&u.outlet.isActivated&&i.canDeactivateChecks.push(new Lp(u.outlet.component,r))}else r&&vc(s,u,i),i.canActivateChecks.push(new GS(n)),bc(t,null,o.component?u?u.children:null:e,n,i)})(r,o[r.value.outlet],e,n.concat([r.value]),i),delete o[r.value.outlet]}),Object.entries(o).forEach(([r,u])=>vc(u,e.getContext(r),i)),i}function vc(t,s,e){const n=va(t),i=t.value;Object.entries(n).forEach(([o,r])=>{vc(r,i.component?s?s.children.getContext(o):null:s,e)}),e.canDeactivateChecks.push(new Lp(i.component&&s&&s.outlet&&s.outlet.isActivated?s.outlet.component:null,i))}function Cc(t){return"function"==typeof t}function qS(t){return t instanceof vp||"EmptyError"===t?.name}const Rp=Symbol("INITIAL_VALUE");function ya(){return ui(t=>V_(t.map(s=>s.pipe(Pi(1),rS(Rp)))).pipe(at(s=>{for(const e of s)if(!0!==e){if(e===Rp)return Rp;if(!1===e||e instanceof _a)return e}return!0}),Bs(s=>s!==Rp),Pi(1)))}function zS(t){return function xD(...t){return y1(t)}(qn(s=>{if(tr(s))throw NS(0,s)}),at(s=>!0===s))}class Op{constructor(s){this.segmentGroup=s||null}}class US{constructor(s){this.urlTree=s}}function Ta(t){return oc(new Op(t))}function jS(t){return oc(new US(t))}class bK{constructor(s,e){this.urlSerializer=s,this.urlTree=e}noMatchError(s){return new $(4002,!1)}lineralizeSegments(s,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return ue(n);if(i.numberOfChildren>1||!i.children[Ue])return oc(new $(4e3,!1));i=i.children[Ue]}}applyRedirectCommands(s,e,n){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),s,n)}applyRedirectCreateUrlTree(s,e,n,i){const o=this.createSegmentGroup(s,e.root,n,i);return new _a(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(s,e){const n={};return Object.entries(s).forEach(([i,o])=>{if("string"==typeof o&&o.startsWith(":")){const u=o.substring(1);n[i]=e[u]}else n[i]=o}),n}createSegmentGroup(s,e,n,i){const o=this.createSegments(s,e.segments,n,i);let r={};return Object.entries(e.children).forEach(([u,h])=>{r[u]=this.createSegmentGroup(s,h,n,i)}),new Dt(o,r)}createSegments(s,e,n,i){return e.map(o=>o.path.startsWith(":")?this.findPosParam(s,o,i):this.findOrReturn(o,n))}findPosParam(s,e,n){const i=n[e.path.substring(1)];if(!i)throw new $(4001,!1);return i}findOrReturn(s,e){let n=0;for(const i of e){if(i.path===s.path)return e.splice(n),i;n++}return s}}const t1={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function vK(t,s,e,n,i){const o=n1(t,s,e);return o.matched?(n=function qW(t,s){return t.providers&&!t._injector&&(t._injector=wf(t.providers,s,`Route: ${t.path}`)),t._injector??s}(s,n),function fK(t,s,e,n){const i=s.canMatch;return i&&0!==i.length?ue(i.map(r=>{const u=Ca(r,t);return go(function sK(t){return t&&Cc(t.canMatch)}(u)?u.canMatch(s,e):t.runInContext(()=>u(s,e)))})).pipe(ya(),zS()):ue(!0)}(n,s,e).pipe(at(r=>!0===r?o:{...t1}))):ue(o)}function n1(t,s,e){if(""===s.path)return"full"===s.pathMatch&&(t.hasChildren()||e.length>0)?{...t1}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const i=(s.matcher||Z$)(e,t,s);if(!i)return{...t1};const o={};Object.entries(i.posParams??{}).forEach(([u,h])=>{o[u]=h.path});const r=i.consumed.length>0?{...o,...i.consumed[i.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:r,positionalParamSegments:i.posParams??{}}}function $S(t,s,e,n){return e.length>0&&function TK(t,s,e){return e.some(n=>Ap(t,s,n)&&ts(n)!==Ue)}(t,e,n)?{segmentGroup:new Dt(s,yK(n,new Dt(e,t.children))),slicedSegments:[]}:0===e.length&&function wK(t,s,e){return e.some(n=>Ap(t,s,n))}(t,e,n)?{segmentGroup:new Dt(t.segments,CK(t,0,e,n,t.children)),slicedSegments:e}:{segmentGroup:new Dt(t.segments,t.children),slicedSegments:e}}function CK(t,s,e,n,i){const o={};for(const r of n)if(Ap(t,e,r)&&!i[ts(r)]){const u=new Dt([],{});o[ts(r)]=u}return{...i,...o}}function yK(t,s){const e={};e[Ue]=s;for(const n of t)if(""===n.path&&ts(n)!==Ue){const i=new Dt([],{});e[ts(n)]=i}return e}function Ap(t,s,e){return(!(t.hasChildren()||s.length>0)||"full"!==e.pathMatch)&&""===e.path}class DK{constructor(s,e,n,i,o,r,u){this.injector=s,this.configLoader=e,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=r,this.urlSerializer=u,this.allowRedirects=!0,this.applyRedirects=new bK(this.urlSerializer,this.urlTree)}noMatchError(s){return new $(4002,!1)}recognize(){const s=$S(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,s,Ue).pipe(Xo(e=>{if(e instanceof US)return this.allowRedirects=!1,this.urlTree=e.urlTree,this.match(e.urlTree);throw e instanceof Op?this.noMatchError(e):e}),at(e=>{const n=new kp([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Ue,this.rootComponentType,null,{}),i=new Us(n,e),o=new AS("",i),r=function _W(t,s,e=null,n=null){return TS(yS(t),s,e,n)}(n,[],this.urlTree.queryParams,this.urlTree.fragment);return r.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(r),this.inheritParamsAndData(o._root),{state:o,tree:r}}))}match(s){return this.processSegmentGroup(this.injector,this.config,s.root,Ue).pipe(Xo(n=>{throw n instanceof Op?this.noMatchError(n):n}))}inheritParamsAndData(s){const e=s.value,n=OS(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),s.children.forEach(i=>this.inheritParamsAndData(i))}processSegmentGroup(s,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.processChildren(s,e,n):this.processSegment(s,e,n,n.segments,i,!0)}processChildren(s,e,n){const i=[];for(const o of Object.keys(n.children))"primary"===o?i.unshift(o):i.push(o);return hn(i).pipe(qo(o=>{const r=n.children[o],u=function $W(t,s){const e=t.filter(n=>ts(n)===s);return e.push(...t.filter(n=>ts(n)!==s)),e}(e,o);return this.processSegmentGroup(s,u,r,o)}),function W$(t,s){return cn(function $$(t,s,e,n,i){return(o,r)=>{let u=e,h=s,b=0;o.subscribe(sn(r,T=>{const w=b++;h=u?t(h,T,w):(u=!0,T),n&&r.next(h)},i&&(()=>{u&&r.next(h),r.complete()})))}}(t,s,arguments.length>=2,!0))}((o,r)=>(o.push(...r),o)),Cp(null),function K$(t,s){const e=arguments.length>=2;return n=>n.pipe(t?Bs((i,o)=>t(i,o,n)):Ws,H_(1),e?Cp(s):aS(()=>new vp))}(),Tn(o=>{if(null===o)return Ta(n);const r=WS(o);return function MK(t){t.sort((s,e)=>s.value.outlet===Ue?-1:e.value.outlet===Ue?1:s.value.outlet.localeCompare(e.value.outlet))}(r),ue(r)}))}processSegment(s,e,n,i,o,r){return hn(e).pipe(qo(u=>this.processSegmentAgainstRoute(u._injector??s,e,u,n,i,o,r).pipe(Xo(h=>{if(h instanceof Op)return ue(null);throw h}))),Yo(u=>!!u),Xo(u=>{if(qS(u))return function SK(t,s,e){return 0===s.length&&!t.children[e]}(n,i,o)?ue([]):Ta(n);throw u}))}processSegmentAgainstRoute(s,e,n,i,o,r,u){return function IK(t,s,e,n){return!!(ts(t)===n||n!==Ue&&Ap(s,e,t))&&("**"===t.path||n1(s,t,e).matched)}(n,i,o,r)?void 0===n.redirectTo?this.matchSegmentAgainstRoute(s,i,n,o,r,u):u&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(s,i,e,n,o,r):Ta(i):Ta(i)}expandSegmentAgainstRouteUsingRedirect(s,e,n,i,o,r){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(s,n,i,r):this.expandRegularSegmentAgainstRouteUsingRedirect(s,e,n,i,o,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(s,e,n,i){const o=this.applyRedirects.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?jS(o):this.applyRedirects.lineralizeSegments(n,o).pipe(Tn(r=>{const u=new Dt(r,{});return this.processSegment(s,e,u,r,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(s,e,n,i,o,r){const{matched:u,consumedSegments:h,remainingSegments:b,positionalParamSegments:T}=n1(e,i,o);if(!u)return Ta(e);const w=this.applyRedirects.applyRedirectCommands(h,i.redirectTo,T);return i.redirectTo.startsWith("/")?jS(w):this.applyRedirects.lineralizeSegments(i,w).pipe(Tn(k=>this.processSegment(s,n,e,k.concat(b),r,!1)))}matchSegmentAgainstRoute(s,e,n,i,o,r){let u;if("**"===n.path){const h=i.length>0?uS(i).parameters:{};u=ue({snapshot:new kp(i,h,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,KS(n),ts(n),n.component??n._loadedComponent??null,n,QS(n)),consumedSegments:[],remainingSegments:[]}),e.children={}}else u=vK(e,n,i,s).pipe(at(({matched:h,consumedSegments:b,remainingSegments:T,parameters:w})=>h?{snapshot:new kp(b,w,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,KS(n),ts(n),n.component??n._loadedComponent??null,n,QS(n)),consumedSegments:b,remainingSegments:T}:null));return u.pipe(ui(h=>null===h?Ta(e):this.getChildConfig(s=n._injector??s,n,i).pipe(ui(({routes:b})=>{const T=n._loadedInjector??s,{snapshot:w,consumedSegments:k,remainingSegments:L}=h,{segmentGroup:O,slicedSegments:A}=$S(e,k,L,b);if(0===A.length&&O.hasChildren())return this.processChildren(T,b,O).pipe(at(z=>null===z?null:[new Us(w,z)]));if(0===b.length&&0===A.length)return ue([new Us(w,[])]);const P=ts(n)===o;return this.processSegment(T,b,O,A,P?Ue:o,!0).pipe(at(z=>[new Us(w,z)]))}))))}getChildConfig(s,e,n){return e.children?ue({routes:e.children,injector:s}):e.loadChildren?void 0!==e._loadedRoutes?ue({routes:e._loadedRoutes,injector:e._loadedInjector}):function mK(t,s,e,n){const i=s.canLoad;return void 0===i||0===i.length?ue(!0):ue(i.map(r=>{const u=Ca(r,t);return go(function eK(t){return t&&Cc(t.canLoad)}(u)?u.canLoad(s,e):t.runInContext(()=>u(s,e)))})).pipe(ya(),zS())}(s,e,n).pipe(Tn(i=>i?this.configLoader.loadChildren(s,e).pipe(qn(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function _K(t){return oc(VS(!1,3))}())):ue({routes:[],injector:s})}}function kK(t){const s=t.value.routeConfig;return s&&""===s.path}function WS(t){const s=[],e=new Set;for(const n of t){if(!kK(n)){s.push(n);continue}const i=s.find(o=>n.value.routeConfig===o.value.routeConfig);void 0!==i?(i.children.push(...n.children),e.add(i)):s.push(n)}for(const n of e){const i=WS(n.children);s.push(new Us(n.value,i))}return s.filter(n=>!e.has(n))}function KS(t){return t.data||{}}function QS(t){return t.resolve||{}}function JS(t){return"string"==typeof t.title||null===t.title}function s1(t){return ui(s=>{const e=t(s);return e?hn(e).pipe(at(()=>s)):ue(s)})}const wa=new le("ROUTES");let o1=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=de(K2)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return ue(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const n=go(e.loadComponent()).pipe(at(ZS),qn(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),Nl(()=>{this.componentLoaders.delete(e)})),i=new oS(n,()=>new Qt).pipe(B_());return this.componentLoaders.set(e,i),i}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return ue({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);const o=function FK(t,s,e,n){return go(t.loadChildren()).pipe(at(ZS),Tn(i=>i instanceof t2||Array.isArray(i)?ue(i):hn(s.compileModuleAsync(i))),at(i=>{n&&n(t);let o,r,u=!1;return Array.isArray(i)?(r=i,!0):(o=i.create(e).injector,r=o.get(wa,[],{optional:!0,self:!0}).flat()),{routes:r.map(e1),injector:o}}))}(n,this.compiler,e,this.onLoadEndListener).pipe(Nl(()=>{this.childrenLoaders.delete(n)})),r=new oS(o,()=>new Qt).pipe(B_());return this.childrenLoaders.set(n,r),r}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function ZS(t){return function NK(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let Pp=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Qt,this.transitionAbortSubject=new Qt,this.configLoader=de(o1),this.environmentInjector=de(gi),this.urlSerializer=de(lc),this.rootContexts=de(mc),this.inputBindingEnabled=null!==de(Ep,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>ue(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=i=>this.events.next(new kW(i)),this.configLoader.onLoadStartListener=i=>this.events.next(new MW(i))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const n=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:n})}setupNavigations(e,n,i){return this.transitions=new Ii({id:0,currentUrlTree:n,currentRawUrl:n,currentBrowserUrl:n,extractedUrl:e.urlHandlingStrategy.extract(n),urlAfterRedirects:e.urlHandlingStrategy.extract(n),rawUrl:n,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:pc,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Bs(o=>0!==o.id),at(o=>({...o,extractedUrl:e.urlHandlingStrategy.extract(o.rawUrl)})),ui(o=>{this.currentTransition=o;let r=!1,u=!1;return ue(o).pipe(qn(h=>{this.currentNavigation={id:h.id,initialUrl:h.rawUrl,extractedUrl:h.extractedUrl,trigger:h.source,extras:h.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),ui(h=>{const b=h.currentBrowserUrl.toString(),T=!e.navigated||h.extractedUrl.toString()!==b||b!==h.currentUrlTree.toString();if(!T&&"reload"!==(h.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const k="";return this.events.next(new ba(h.id,this.urlSerializer.serialize(h.rawUrl),k,0)),h.resolve(null),ss}if(e.urlHandlingStrategy.shouldProcessUrl(h.rawUrl))return ue(h).pipe(ui(k=>{const L=this.transitions?.getValue();return this.events.next(new Dp(k.id,this.urlSerializer.serialize(k.extractedUrl),k.source,k.restoredState)),L!==this.transitions?.getValue()?ss:Promise.resolve(k)}),function EK(t,s,e,n,i,o){return Tn(r=>function xK(t,s,e,n,i,o,r="emptyOnly"){return new DK(t,s,e,n,i,r,o).recognize()}(t,s,e,n,r.extractedUrl,i,o).pipe(at(({state:u,tree:h})=>({...r,targetSnapshot:u,urlAfterRedirects:h}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,e.paramsInheritanceStrategy),qn(k=>{o.targetSnapshot=k.targetSnapshot,o.urlAfterRedirects=k.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:k.urlAfterRedirects};const L=new MS(k.id,this.urlSerializer.serialize(k.extractedUrl),this.urlSerializer.serialize(k.urlAfterRedirects),k.targetSnapshot);this.events.next(L)}));if(T&&e.urlHandlingStrategy.shouldProcessUrl(h.currentRawUrl)){const{id:k,extractedUrl:L,source:O,restoredState:A,extras:P}=h,z=new Dp(k,this.urlSerializer.serialize(L),O,A);this.events.next(z);const N=RS(0,this.rootComponentType).snapshot;return this.currentTransition=o={...h,targetSnapshot:N,urlAfterRedirects:L,extras:{...P,skipLocationChange:!1,replaceUrl:!1}},ue(o)}{const k="";return this.events.next(new ba(h.id,this.urlSerializer.serialize(h.extractedUrl),k,1)),h.resolve(null),ss}}),qn(h=>{const b=new IW(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(b)}),at(h=>(this.currentTransition=o={...h,guards:QW(h.targetSnapshot,h.currentSnapshot,this.rootContexts)},o)),function rK(t,s){return Tn(e=>{const{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:r}}=e;return 0===r.length&&0===o.length?ue({...e,guardsResult:!0}):function aK(t,s,e,n){return hn(t).pipe(Tn(i=>function hK(t,s,e,n,i){const o=s&&s.routeConfig?s.routeConfig.canDeactivate:null;return o&&0!==o.length?ue(o.map(u=>{const h=_c(s)??i,b=Ca(u,h);return go(function iK(t){return t&&Cc(t.canDeactivate)}(b)?b.canDeactivate(t,s,e,n):h.runInContext(()=>b(t,s,e,n))).pipe(Yo())})).pipe(ya()):ue(!0)}(i.component,i.route,e,s,n)),Yo(i=>!0!==i,!0))}(r,n,i,t).pipe(Tn(u=>u&&function XW(t){return"boolean"==typeof t}(u)?function lK(t,s,e,n){return hn(s).pipe(qo(i=>la(function uK(t,s){return null!==t&&s&&s(new EW(t)),ue(!0)}(i.route.parent,n),function cK(t,s){return null!==t&&s&&s(new RW(t)),ue(!0)}(i.route,n),function pK(t,s,e){const n=s[s.length-1],o=s.slice(0,s.length-1).reverse().map(r=>function JW(t){const s=t.routeConfig?t.routeConfig.canActivateChild:null;return s&&0!==s.length?{node:t,guards:s}:null}(r)).filter(r=>null!==r).map(r=>Fd(()=>ue(r.guards.map(h=>{const b=_c(r.node)??e,T=Ca(h,b);return go(function nK(t){return t&&Cc(t.canActivateChild)}(T)?T.canActivateChild(n,t):b.runInContext(()=>T(n,t))).pipe(Yo())})).pipe(ya())));return ue(o).pipe(ya())}(t,i.path,e),function dK(t,s,e){const n=s.routeConfig?s.routeConfig.canActivate:null;if(!n||0===n.length)return ue(!0);const i=n.map(o=>Fd(()=>{const r=_c(s)??e,u=Ca(o,r);return go(function tK(t){return t&&Cc(t.canActivate)}(u)?u.canActivate(s,t):r.runInContext(()=>u(s,t))).pipe(Yo())}));return ue(i).pipe(ya())}(t,i.route,e))),Yo(i=>!0!==i,!0))}(n,o,t,s):ue(u)),at(u=>({...e,guardsResult:u})))})}(this.environmentInjector,h=>this.events.next(h)),qn(h=>{if(o.guardsResult=h.guardsResult,tr(h.guardsResult))throw NS(0,h.guardsResult);const b=new SW(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot,!!h.guardsResult);this.events.next(b)}),Bs(h=>!!h.guardsResult||(this.cancelNavigationTransition(h,"",3),!1)),s1(h=>{if(h.guards.canActivateChecks.length)return ue(h).pipe(qn(b=>{const T=new xW(b.id,this.urlSerializer.serialize(b.extractedUrl),this.urlSerializer.serialize(b.urlAfterRedirects),b.targetSnapshot);this.events.next(T)}),ui(b=>{let T=!1;return ue(b).pipe(function LK(t,s){return Tn(e=>{const{targetSnapshot:n,guards:{canActivateChecks:i}}=e;if(!i.length)return ue(e);let o=0;return hn(i).pipe(qo(r=>function RK(t,s,e,n){const i=t.routeConfig,o=t._resolve;return void 0!==i?.title&&!JS(i)&&(o[rc]=i.title),function OK(t,s,e,n){const i=function AK(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===i.length)return ue({});const o={};return hn(i).pipe(Tn(r=>function PK(t,s,e,n){const i=_c(s)??n,o=Ca(t,i);return go(o.resolve?o.resolve(s,e):i.runInContext(()=>o(s,e)))}(t[r],s,e,n).pipe(Yo(),qn(u=>{o[r]=u}))),H_(1),lS(o),Xo(r=>qS(r)?ss:oc(r)))}(o,t,s,n).pipe(at(r=>(t._resolvedData=r,t.data=OS(t,e).resolve,i&&JS(i)&&(t.data[rc]=i.title),null)))}(r.route,n,t,s)),qn(()=>o++),H_(1),Tn(r=>o===i.length?ue(e):ss))})}(e.paramsInheritanceStrategy,this.environmentInjector),qn({next:()=>T=!0,complete:()=>{T||this.cancelNavigationTransition(b,"",2)}}))}),qn(b=>{const T=new DW(b.id,this.urlSerializer.serialize(b.extractedUrl),this.urlSerializer.serialize(b.urlAfterRedirects),b.targetSnapshot);this.events.next(T)}))}),s1(h=>{const b=T=>{const w=[];T.routeConfig?.loadComponent&&!T.routeConfig._loadedComponent&&w.push(this.configLoader.loadComponent(T.routeConfig).pipe(qn(k=>{T.component=k}),at(()=>{})));for(const k of T.children)w.push(...b(k));return w};return V_(b(h.targetSnapshot.root)).pipe(Cp(),Pi(1))}),s1(()=>this.afterPreactivation()),at(h=>{const b=function VW(t,s,e){const n=gc(t,s._root,e?e._root:void 0);return new LS(n,s)}(e.routeReuseStrategy,h.targetSnapshot,h.currentRouterState);return this.currentTransition=o={...h,targetRouterState:b},o}),qn(()=>{this.events.next(new $_)}),((t,s,e,n)=>at(i=>(new KW(s,i.targetRouterState,i.currentRouterState,e,n).activate(t),i)))(this.rootContexts,e.routeReuseStrategy,h=>this.events.next(h),this.inputBindingEnabled),Pi(1),qn({next:h=>{r=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new _o(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects))),e.titleStrategy?.updateTitle(h.targetRouterState.snapshot),h.resolve(!0)},complete:()=>{r=!0}}),function Q$(t){return cn((s,e)=>{ni(t).subscribe(sn(e,()=>e.complete(),Oc)),!e.closed&&s.subscribe(e)})}(this.transitionAbortSubject.pipe(qn(h=>{throw h}))),Nl(()=>{r||u||this.cancelNavigationTransition(o,"",1),this.currentNavigation?.id===o.id&&(this.currentNavigation=null)}),Xo(h=>{if(u=!0,BS(h))this.events.next(new hc(o.id,this.urlSerializer.serialize(o.extractedUrl),h.message,h.cancellationCode)),function GW(t){return BS(t)&&tr(t.url)}(h)?this.events.next(new W_(h.url)):o.resolve(!1);else{this.events.next(new Mp(o.id,this.urlSerializer.serialize(o.extractedUrl),h,o.targetSnapshot??void 0));try{o.resolve(e.errorHandler(h))}catch(b){o.reject(b)}}return ss}))}))}cancelNavigationTransition(e,n,i){const o=new hc(e.id,this.urlSerializer.serialize(e.extractedUrl),n,i);this.events.next(o),e.resolve(!1)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function YS(t){return t!==pc}let XS=(()=>{class t{buildTitle(e){let n,i=e.root;for(;void 0!==i;)n=this.getResolvedTitleForRoute(i)??n,i=i.children.find(o=>o.outlet===Ue);return n}getResolvedTitleForRoute(e){return e.data[rc]}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=re({token:t,factory:function(){return de(VK)},providedIn:"root"})}return t})(),VK=(()=>{class t extends XS{constructor(e){super(),this.title=e}updateTitle(e){const n=this.buildTitle(e);void 0!==n&&this.title.setTitle(n)}static#e=this.\u0275fac=function(n){return new(n||t)(ie(_w))};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),BK=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=re({token:t,factory:function(){return de(GK)},providedIn:"root"})}return t})();class HK{shouldDetach(s){return!1}store(s,e){}shouldAttach(s){return!1}retrieve(s){return null}shouldReuseRoute(s,e){return s.routeConfig===e.routeConfig}}let GK=(()=>{class t extends HK{static#e=this.\u0275fac=function(){let e;return function(i){return(e||(e=we(t)))(i||t)}}();static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Fp=new le("",{providedIn:"root",factory:()=>({})});let qK=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=re({token:t,factory:function(){return de(zK)},providedIn:"root"})}return t})(),zK=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var yc=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(yc||{});function ex(t,s){t.events.pipe(Bs(e=>e instanceof _o||e instanceof hc||e instanceof Mp||e instanceof ba),at(e=>e instanceof _o||e instanceof ba?yc.COMPLETE:e instanceof hc&&(0===e.code||1===e.code)?yc.REDIRECTING:yc.FAILED),Bs(e=>e!==yc.REDIRECTING),Pi(1)).subscribe(()=>{s()})}function UK(t){throw t}function jK(t,s,e){return s.parse("/")}const $K={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},WK={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Nt=(()=>{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=de(W2),this.isNgZoneEnabled=!1,this._events=new Qt,this.options=de(Fp,{optional:!0})||{},this.pendingTasks=de(ud),this.errorHandler=this.options.errorHandler||UK,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||jK,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=de(qK),this.routeReuseStrategy=de(BK),this.titleStrategy=de(XS),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=de(wa,{optional:!0})?.flat()??[],this.navigationTransitions=de(Pp),this.urlSerializer=de(lc),this.location=de(tg),this.componentInputBindingEnabled=!!de(Ep,{optional:!0}),this.eventsSubscription=new ti,this.isNgZoneEnabled=de(je)instanceof je&&je.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new _a,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=RS(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(n=>{try{const{currentTransition:i}=this.navigationTransitions;if(null===i)return void(tx(n)&&this._events.next(n));if(n instanceof Dp)YS(i.source)&&(this.browserUrlTree=i.extractedUrl);else if(n instanceof ba)this.rawUrlTree=i.rawUrl;else if(n instanceof MS){if("eager"===this.urlUpdateStrategy){if(!i.extras.skipLocationChange){const o=this.urlHandlingStrategy.merge(i.urlAfterRedirects,i.rawUrl);this.setBrowserUrl(o,i)}this.browserUrlTree=i.urlAfterRedirects}}else if(n instanceof $_)this.currentUrlTree=i.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(i.urlAfterRedirects,i.rawUrl),this.routerState=i.targetRouterState,"deferred"===this.urlUpdateStrategy&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i),this.browserUrlTree=i.urlAfterRedirects);else if(n instanceof hc)0!==n.code&&1!==n.code&&(this.navigated=!0),(3===n.code||2===n.code)&&this.restoreHistory(i);else if(n instanceof W_){const o=this.urlHandlingStrategy.merge(n.url,i.currentRawUrl),r={skipLocationChange:i.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||YS(i.source)};this.scheduleNavigation(o,pc,null,r,{resolve:i.resolve,reject:i.reject,promise:i.promise})}n instanceof Mp&&this.restoreHistory(i,!0),n instanceof _o&&(this.navigated=!0),tx(n)&&this._events.next(n)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});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),pc,e)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const n="popstate"===e.type?"popstate":"hashchange";"popstate"===n&&setTimeout(()=>{this.navigateToSyncWithBrowser(e.url,n,e.state)},0)}))}navigateToSyncWithBrowser(e,n,i){const o={replaceUrl:!0},r=i?.navigationId?i:null;if(i){const h={...i};delete h.navigationId,delete h.\u0275routerPageId,0!==Object.keys(h).length&&(o.state=h)}const u=this.parseUrl(e);this.scheduleNavigation(u,n,r,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(e1),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,n={}){const{relativeTo:i,queryParams:o,fragment:r,queryParamsHandling:u,preserveFragment:h}=n,b=h?this.currentUrlTree.fragment:r;let w,T=null;switch(u){case"merge":T={...this.currentUrlTree.queryParams,...o};break;case"preserve":T=this.currentUrlTree.queryParams;break;default:T=o||null}null!==T&&(T=this.removeEmptyProps(T));try{w=yS(i?i.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof e[0]||!e[0].startsWith("/"))&&(e=[]),w=this.currentUrlTree.root}return TS(w,e,T,b??null)}navigateByUrl(e,n={skipLocationChange:!1}){const i=tr(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,pc,null,n)}navigate(e,n={skipLocationChange:!1}){return function KK(t){for(let s=0;s{const o=e[i];return null!=o&&(n[i]=o),n},{})}scheduleNavigation(e,n,i,o,r){if(this.disposed)return Promise.resolve(!1);let u,h,b;r?(u=r.resolve,h=r.reject,b=r.promise):b=new Promise((w,k)=>{u=w,h=k});const T=this.pendingTasks.add();return ex(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(T))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:e,extras:o,resolve:u,reject:h,promise:b,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),b.catch(w=>Promise.reject(w))}setBrowserUrl(e,n){const i=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(i)||n.extras.replaceUrl){const r={...n.extras.state,...this.generateNgRouterState(n.id,this.browserPageId)};this.location.replaceState(i,"",r)}else{const o={...n.extras.state,...this.generateNgRouterState(n.id,this.browserPageId+1)};this.location.go(i,"",o)}}restoreHistory(e,n=!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&&(n&&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,n){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function tx(t){return!(t instanceof $_||t instanceof W_)}let nr=(()=>{class t{constructor(e,n,i,o,r,u){this.router=e,this.route=n,this.tabIndexAttribute=i,this.renderer=o,this.el=r,this.locationStrategy=u,this.href=null,this.commands=null,this.onChanges=new Qt,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const h=r.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===h||"area"===h,this.isAnchorElement?this.subscription=e.events.subscribe(b=>{b instanceof _o&&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,n,i,o,r){return!!(null===this.urlTree||this.isAnchorElement&&(0!==e||n||i||o||r||"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 lC(t,s,e){return function RE(t,s){return"src"===s&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===s&&("base"===t||"link"===t)?aC:tn}(s,e)(t)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",e)}applyAttributeValue(e,n){const i=this.renderer,o=this.el.nativeElement;null!==n?i.setAttribute(o,e,n):i.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(n){return new(n||t)(M(Nt),M(bo),function cu(t){return function QM(t,s){if("class"===s)return t.classes;if("style"===s)return t.styles;const e=t.attrs;if(e){const n=e.length;let i=0;for(;i{class t{get isActive(){return this._isActive}constructor(e,n,i,o,r){this.router=e,this.element=n,this.renderer=i,this.cdr=o,this.link=r,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new q,this.routerEventsSubscription=e.events.subscribe(u=>{u instanceof _o&&this.update()})}ngAfterContentInit(){ue(this.links.changes,ue(null)).pipe(cr()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const e=[...this.links.toArray(),this.link].filter(n=>!!n).map(n=>n.onChanges);this.linkInputChangesSubscription=hn(e).pipe(cr()).subscribe(n=>{this._isActive!==this.isLinkActive(this.router)(n)&&this.update()})}set routerLinkActive(e){const n=Array.isArray(e)?e:e.split(" ");this.classes=n.filter(i=>!!i)}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(n=>{e?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),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 n=function QK(t){return!!t.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>!!i.urlTree&&e.isActive(i.urlTree,n)}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static#e=this.\u0275fac=function(n){return new(n||t)(M(Nt),M(Pe),M(Vt),M(rt),M(nr,8))};static#t=this.\u0275dir=fe({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(n,i,o){if(1&n&&Ye(o,nr,5),2&n){let r;H(r=G())&&(i.links=r)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[wn]})}return t})();class nx{}let JK=(()=>{class t{constructor(e,n,i,o,r){this.router=e,this.injector=i,this.preloadingStrategy=o,this.loader=r}setUpPreloading(){this.subscription=this.router.events.pipe(Bs(e=>e instanceof _o),qo(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,n){const i=[];for(const o of n){o.providers&&!o._injector&&(o._injector=wf(o.providers,e,`Route: ${o.path}`));const r=o._injector??e,u=o._loadedInjector??r;(o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(r,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(u,o.children??o._loadedRoutes))}return hn(i).pipe(cr())}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>{let i;i=n.loadChildren&&void 0===n.canLoad?this.loader.loadChildren(e,n):ue(null);const o=i.pipe(Tn(r=>null===r?ue(void 0):(n._loadedRoutes=r.routes,n._loadedInjector=r.injector,this.processRoutes(r.injector??e,r.routes))));return n.loadComponent&&!n._loadedComponent?hn([o,this.loader.loadComponent(n)]).pipe(cr()):o})}static#e=this.\u0275fac=function(n){return new(n||t)(ie(Nt),ie(K2),ie(gi),ie(nx),ie(o1))};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const r1=new le("");let ix=(()=>{class t{constructor(e,n,i,o,r={}){this.urlSerializer=e,this.transitions=n,this.viewportScroller=i,this.zone=o,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Dp?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof _o?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof ba&&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 kS&&(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,n){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new kS(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,n))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(n){!function QC(){throw new Error("invalid")}()};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac})}return t})();function js(t,s){return{\u0275kind:t,\u0275providers:s}}function ox(){const t=de(Fn);return s=>{const e=t.get(Vo);if(s!==e.components[0])return;const n=t.get(Nt),i=t.get(rx);1===t.get(a1)&&n.initialNavigation(),t.get(ax,null,et.Optional)?.setUpPreloading(),t.get(r1,null,et.Optional)?.init(),n.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}const rx=new le("",{factory:()=>new Qt}),a1=new le("",{providedIn:"root",factory:()=>1}),ax=new le("");function eQ(t){return js(0,[{provide:ax,useExisting:JK},{provide:nx,useExisting:t}])}const lx=new le("ROUTER_FORROOT_GUARD"),nQ=[tg,{provide:lc,useClass:G_},Nt,mc,{provide:bo,useFactory:function sx(t){return t.routerState.root},deps:[Nt]},o1,[]];function iQ(){return new tT("Router",Nt)}let zn=(()=>{class t{constructor(e){}static forRoot(e,n){return{ngModule:t,providers:[nQ,[],{provide:wa,multi:!0,useValue:e},{provide:lx,useFactory:aQ,deps:[[Nt,new pu,new hu]]},{provide:Fp,useValue:n||{}},n?.useHash?{provide:Ho,useClass:r9}:{provide:Ho,useClass:RT},{provide:r1,useFactory:()=>{const t=de(CA),s=de(je),e=de(Fp),n=de(Pp),i=de(lc);return e.scrollOffset&&t.setOffset(e.scrollOffset),new ix(i,n,t,s,e)}},n?.preloadingStrategy?eQ(n.preloadingStrategy).\u0275providers:[],{provide:tT,multi:!0,useFactory:iQ},n?.initialNavigation?lQ(n):[],n?.bindToComponentInputs?js(8,[FS,{provide:Ep,useExisting:FS}]).\u0275providers:[],[{provide:cx,useFactory:ox},{provide:jf,multi:!0,useExisting:cx}]]}}static forChild(e){return{ngModule:t,providers:[{provide:wa,multi:!0,useValue:e}]}}static#e=this.\u0275fac=function(n){return new(n||t)(ie(lx,8))};static#t=this.\u0275mod=ge({type:t});static#n=this.\u0275inj=me({})}return t})();function aQ(t){return"guarded"}function lQ(t){return["disabled"===t.initialNavigation?js(3,[{provide:Nf,multi:!0,useFactory:()=>{const s=de(Nt);return()=>{s.setUpLocationChangeListener()}}},{provide:a1,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?js(2,[{provide:a1,useValue:0},{provide:Nf,multi:!0,deps:[Fn],useFactory:s=>{const e=s.get(s9,Promise.resolve());return()=>e.then(()=>new Promise(n=>{const i=s.get(Nt),o=s.get(rx);ex(i,()=>{n(!0)}),s.get(Pp).afterPreactivation=()=>(n(!0),o.closed?ue(void 0):o),i.initialNavigation()}))}}]).\u0275providers:[]]}const cx=new le("");let GQ=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=me({imports:[Ne,zn,Cn,Ti,ze,XI,O_,sc,zn,Ti,ze]})}return t})(),Tc=(()=>{class t extends _t{pathId;ngOnInit(){this.pathId="url(#"+Ft()+")"}static \u0275fac=function(){let e;return function(i){return(e||(e=we(t)))(i||t)}}();static \u0275cmp=U({type:t,selectors:[["ExclamationTriangleIcon"]],standalone:!0,features:[_e,ot],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(n,i){1&n&&(lt(),l(0,"svg",0)(1,"g"),D(2,"path",1)(3,"path",2)(4,"path",3),c(),l(5,"defs")(6,"clipPath",4),D(7,"rect",5),c()()()),2&n&&(se(i.getClassNames()),F("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role),a(1),F("clip-path",i.pathId),a(5),d("id",i.pathId))},encapsulation:2})}return t})(),wc=(()=>{class t extends _t{pathId;ngOnInit(){this.pathId="url(#"+Ft()+")"}static \u0275fac=function(){let e;return function(i){return(e||(e=we(t)))(i||t)}}();static \u0275cmp=U({type:t,selectors:[["InfoCircleIcon"]],standalone:!0,features:[_e,ot],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(n,i){1&n&&(lt(),l(0,"svg",0)(1,"g"),D(2,"path",1),c(),l(3,"defs")(4,"clipPath",2),D(5,"rect",3),c()()()),2&n&&(se(i.getClassNames()),F("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role),a(1),F("clip-path",i.pathId),a(3),d("id",i.pathId))},encapsulation:2})}return t})(),ir=(()=>{class t extends _t{pathId;ngOnInit(){this.pathId="url(#"+Ft()+")"}static \u0275fac=function(){let e;return function(i){return(e||(e=we(t)))(i||t)}}();static \u0275cmp=U({type:t,selectors:[["TimesCircleIcon"]],standalone:!0,features:[_e,ot],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(n,i){1&n&&(lt(),l(0,"svg",0)(1,"g"),D(2,"path",1),c(),l(3,"defs")(4,"clipPath",2),D(5,"rect",3),c()()()),2&n&&(se(i.getClassNames()),F("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role),a(1),F("clip-path",i.pathId),a(3),d("id",i.pathId))},encapsulation:2})}return t})();function qQ(t,s){1&t&&D(0,"CheckIcon",4),2&t&&d("styleClass","p-inline-message-icon")}function zQ(t,s){1&t&&D(0,"InfoCircleIcon",4),2&t&&d("styleClass","p-inline-message-icon")}function UQ(t,s){1&t&&D(0,"TimesCircleIcon",4),2&t&&d("styleClass","p-inline-message-icon")}function jQ(t,s){1&t&&D(0,"ExclamationTriangleIcon",4),2&t&&d("styleClass","p-inline-message-icon")}function $Q(t,s){1&t&&D(0,"span",6),2&t&&d("innerHTML",p(2).text,Zt)}function WQ(t,s){if(1&t&&(l(0,"div"),m(1,$Q,1,1,"span",5),c()),2&t){const e=p();a(1),d("ngIf",!e.escape)}}function KQ(t,s){if(1&t&&(l(0,"span",8),_(1),c()),2&t){const e=p(2);a(1),S(e.text)}}function QQ(t,s){1&t&&m(0,KQ,2,1,"span",7),2&t&&d("ngIf",p().escape)}const JQ=function(t,s,e,n,i){return{"p-inline-message-info":t,"p-inline-message-warn":s,"p-inline-message-error":e,"p-inline-message-success":n,"p-inline-message-icon-only":i}};let qe=(()=>{class t{severity;text;escape=!0;style;styleClass;get icon(){return this.severity&&this.severity.trim()?this.severity:"info"}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=U({type:t,selectors:[["p-message"]],hostAttrs:[1,"p-element"],inputs:{severity:"severity",text:"text",escape:"escape",style:"style",styleClass:"styleClass"},decls:8,vars:16,consts:[["aria-live","polite",1,"p-inline-message","p-component","p-inline-message",3,"ngStyle","ngClass"],[3,"styleClass",4,"ngIf"],[4,"ngIf","ngIfElse"],["escapeOut",""],[3,"styleClass"],["class","p-inline-message-text",3,"innerHTML",4,"ngIf"],[1,"p-inline-message-text",3,"innerHTML"],["class","p-inline-message-text",4,"ngIf"],[1,"p-inline-message-text"]],template:function(n,i){if(1&n&&(l(0,"div",0),m(1,qQ,1,1,"CheckIcon",1),m(2,zQ,1,1,"InfoCircleIcon",1),m(3,UQ,1,1,"TimesCircleIcon",1),m(4,jQ,1,1,"ExclamationTriangleIcon",1),m(5,WQ,2,1,"div",2),m(6,QQ,1,1,"ng-template",null,3,ve),c()),2&n){const o=B(7);se(i.styleClass),d("ngStyle",i.style)("ngClass",xl(10,JQ,"info"===i.severity,"warn"===i.severity,"error"===i.severity,"success"===i.severity,null==i.text)),a(1),d("ngIf","success"===i.icon),a(1),d("ngIf","info"===i.icon),a(1),d("ngIf","error"===i.icon),a(1),d("ngIf","warn"===i.icon),a(1),d("ngIf",!i.escape)("ngIfElse",o)}},dependencies:function(){return[Fe,ne,nt,Gn,wc,ir,Tc]},styles:["@layer primeng{.p-inline-message{display:inline-flex;align-items:center;justify-content:center;vertical-align:top}.p-inline-message-icon-only .p-inline-message-text{visibility:hidden;width:0}.p-fluid .p-inline-message{display:flex}}\n"],encapsulation:2,changeDetection:0})}return t})(),ZQ=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=me({imports:[Ne,Gn,wc,ir,Tc]})}return t})(),fJ=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=me({imports:[Ne,Cn,Gn,wc,ir,Tc,xn]})}return t})();function gJ(t,s){1&t&&Z(0)}function _J(t,s){1&t&&D(0,"TimesIcon",8),2&t&&d("styleClass","p-overlaypanel-close-icon")}function bJ(t,s){}function vJ(t,s){1&t&&m(0,bJ,0,0,"ng-template")}function CJ(t,s){if(1&t&&(l(0,"span",9),m(1,vJ,1,0,null,3),c()),2&t){const e=p(3);a(1),d("ngTemplateOutlet",e.closeIconTemplate)}}function yJ(t,s){if(1&t){const e=E();l(0,"button",5),v("click",function(i){return C(e),y(p(2).onCloseClick(i))})("keydown.enter",function(){return C(e),y(p(2).hide())}),m(1,_J,1,1,"TimesIcon",6),m(2,CJ,2,1,"span",7),c()}if(2&t){const e=p(2);F("aria-label",e.ariaCloseLabel),a(1),d("ngIf",!e.closeIconTemplate),a(1),d("ngIf",e.closeIconTemplate)}}const TJ=function(t,s){return{showTransitionParams:t,hideTransitionParams:s}},wJ=function(t,s){return{value:t,params:s}};function IJ(t,s){if(1&t){const e=E();l(0,"div",1),v("click",function(i){return C(e),y(p().onOverlayClick(i))})("@animation.start",function(i){return C(e),y(p().onAnimationStart(i))})("@animation.done",function(i){return C(e),y(p().onAnimationEnd(i))}),l(1,"div",2),v("click",function(){return C(e),y(p().onContentClick())})("mousedown",function(){return C(e),y(p().onContentClick())}),xt(2),m(3,gJ,1,0,"ng-container",3),c(),m(4,yJ,3,3,"button",4),c()}if(2&t){const e=p();se(e.styleClass),d("ngClass","p-overlaypanel p-component")("ngStyle",e.style)("@animation",Se(11,wJ,e.overlayVisible?"open":"close",Se(8,TJ,e.showTransitionOptions,e.hideTransitionOptions))),F("aria-modal",e.overlayVisible),a(3),d("ngTemplateOutlet",e.contentTemplate),a(1),d("ngIf",e.showCloseIcon)}}const SJ=["*"];let xJ=(()=>{class t{document;platformId;el;renderer;cd;zone;config;overlayService;dismissable=!0;showCloseIcon;style;styleClass;appendTo="body";autoZIndex=!0;ariaCloseLabel;baseZIndex=0;focusOnShow=!0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";onShow=new q;onHide=new q;templates;container;overlayVisible=!1;render=!1;isOverlayAnimationInProgress=!1;selfClick=!1;documentClickListener;target;willHide;scrollHandler;documentResizeListener;contentTemplate;closeIconTemplate;destroyCallback;overlayEventListener;overlaySubscription;constructor(e,n,i,o,r,u,h,b){this.document=e,this.platformId=n,this.el=i,this.renderer=o,this.cd=r,this.zone=u,this.config=h,this.overlayService=b}ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"content":default:this.contentTemplate=e.template;break;case"closeicon":this.closeIconTemplate=e.template}this.cd.markForCheck()})}bindDocumentClickListener(){if(vn(this.platformId)&&!this.documentClickListener&&this.dismissable){let e=R.isIOS()?"touchstart":"click";this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:this.document,e,i=>{!this.container?.contains(i.target)&&!this.target.contains(i.target)&&this.hide(),this.cd.markForCheck()})}}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null,this.selfClick=!1)}toggle(e,n){this.isOverlayAnimationInProgress||(this.overlayVisible?(this.hasTargetChanged(e,n)&&(this.destroyCallback=()=>{this.show(null,n||e.currentTarget||e.target)}),this.hide()):this.show(e,n))}show(e,n){n&&e&&e.stopPropagation(),!this.isOverlayAnimationInProgress&&(this.target=n||e.currentTarget||e.target,this.overlayVisible=!0,this.render=!0,this.cd.markForCheck())}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement}),this.selfClick=!0}onContentClick(){this.selfClick=!0}hasTargetChanged(e,n){return null!=this.target&&this.target!==(n||e.currentTarget||e.target)}appendContainer(){this.appendTo&&("body"===this.appendTo?this.renderer.appendChild(this.document.body,this.container):R.appendChild(this.container,this.appendTo))}restoreAppend(){this.container&&this.appendTo&&this.renderer.appendChild(this.el.nativeElement,this.container)}align(){this.autoZIndex&&Et.set("overlay",this.container,this.baseZIndex+this.config.zIndex.overlay),R.absolutePosition(this.container,this.target);const e=R.getOffset(this.container),n=R.getOffset(this.target),i=this.document.defaultView?.getComputedStyle(this.container).getPropertyValue("border-radius");let o=0;e.left{this.container&&this.container.contains(n.target)&&(this.selfClick=!0)},this.overlaySubscription=this.overlayService.clickObservable.subscribe(this.overlayEventListener),this.onShow.emit(null)),this.isOverlayAnimationInProgress=!0}onAnimationEnd(e){switch(e.toState){case"void":this.destroyCallback&&(this.destroyCallback(),this.destroyCallback=null),this.overlaySubscription&&this.overlaySubscription.unsubscribe();break;case"close":this.autoZIndex&&Et.clear(this.container),this.overlaySubscription&&this.overlaySubscription.unsubscribe(),this.onContainerDestroy(),this.onHide.emit({}),this.render=!1}this.isOverlayAnimationInProgress=!1}focus(){let e=R.findSingle(this.container,"[autofocus]");e&&this.zone.runOutsideAngular(()=>{setTimeout(()=>e.focus(),5)})}hide(){this.overlayVisible=!1,this.cd.markForCheck()}onCloseClick(e){this.hide(),e.preventDefault()}onWindowResize(){this.overlayVisible&&!R.isTouchDevice()&&this.hide()}bindDocumentResizeListener(){vn(this.platformId)&&!this.documentResizeListener&&(this.documentResizeListener=this.renderer.listen(this.document.defaultView,"resize",this.onWindowResize.bind(this)))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindScrollListener(){vn(this.platformId)&&(this.scrollHandler||(this.scrollHandler=new Jo(this.target,()=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener())}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}onContainerDestroy(){this.cd.destroyed||(this.target=null),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener()}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.container&&this.autoZIndex&&Et.clear(this.container),this.cd.destroyed||(this.target=null),this.destroyCallback=null,this.container&&(this.restoreAppend(),this.onContainerDestroy()),this.overlaySubscription&&this.overlaySubscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)(M(ct),M(gn),M(Pe),M(Vt),M(rt),M(je),M(Hn),M(po))};static \u0275cmp=U({type:t,selectors:[["p-overlayPanel"]],contentQueries:function(n,i,o){if(1&n&&Ye(o,ae,4),2&n){let r;H(r=G())&&(i.templates=r)}},hostAttrs:[1,"p-element"],inputs:{dismissable:"dismissable",showCloseIcon:"showCloseIcon",style:"style",styleClass:"styleClass",appendTo:"appendTo",autoZIndex:"autoZIndex",ariaCloseLabel:"ariaCloseLabel",baseZIndex:"baseZIndex",focusOnShow:"focusOnShow",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onShow:"onShow",onHide:"onHide"},ngContentSelectors:SJ,decls:1,vars:1,consts:[["role","dialog",3,"ngClass","ngStyle","class","click",4,"ngIf"],["role","dialog",3,"ngClass","ngStyle","click"],[1,"p-overlaypanel-content",3,"click","mousedown"],[4,"ngTemplateOutlet"],["type","button","class","p-overlaypanel-close p-link","pRipple","",3,"click","keydown.enter",4,"ngIf"],["type","button","pRipple","",1,"p-overlaypanel-close","p-link",3,"click","keydown.enter"],[3,"styleClass",4,"ngIf"],["class","p-overlaypanel-close-icon",4,"ngIf"],[3,"styleClass"],[1,"p-overlaypanel-close-icon"]],template:function(n,i){1&n&&(_n(),m(0,IJ,5,14,"div",0)),2&n&&d("ngIf",i.render)},dependencies:function(){return[Fe,ne,dt,nt,bt,xn]},styles:['@layer primeng{.p-overlaypanel{position:absolute;margin-top:10px;top:0;left:0}.p-overlaypanel-flipped{margin-top:0;margin-bottom:10px}.p-overlaypanel-close{display:flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-overlaypanel:after,.p-overlaypanel:before{bottom:100%;left:calc(var(--overlayArrowLeft, 0) + 1.25rem);content:" ";height:0;width:0;position:absolute;pointer-events:none}.p-overlaypanel:after{border-width:8px;margin-left:-8px}.p-overlaypanel:before{border-width:10px;margin-left:-10px}.p-overlaypanel-shifted:after,.p-overlaypanel-shifted:before{left:auto;right:1.25em;margin-left:auto}.p-overlaypanel-flipped:after,.p-overlaypanel-flipped:before{bottom:auto;top:100%}.p-overlaypanel.p-overlaypanel-flipped:after{border-bottom-color:transparent}.p-overlaypanel.p-overlaypanel-flipped:before{border-bottom-color:transparent}}\n'],encapsulation:2,data:{animation:[Ji("animation",[qs("void",Tt({transform:"scaleY(0.8)",opacity:0})),qs("close",Tt({opacity:0})),qs("open",Tt({transform:"translateY(0)",opacity:1})),Yt("void => open",Ut("{{showTransitionParams}}")),Yt("open => close",Ut("{{hideTransitionParams}}"))])]},changeDetection:0})}return t})(),DJ=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=me({imports:[Ne,Cn,ze,xn,ze]})}return t})(),jJ=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=me({imports:[Ne,ze,Cn,F_,P_,ze]})}return t})(),Ia=(()=>{class t{styleClass;style;strokeWidth="2";fill="none";animationDuration="2s";static \u0275fac=function(n){return new(n||t)};static \u0275cmp=U({type:t,selectors:[["p-progressSpinner"]],hostAttrs:[1,"p-element"],inputs:{styleClass:"styleClass",style:"style",strokeWidth:"strokeWidth",fill:"fill",animationDuration:"animationDuration"},decls:3,vars:10,consts:[["role","progressbar",1,"p-progress-spinner",3,"ngStyle","ngClass"],["viewBox","25 25 50 50",1,"p-progress-spinner-svg"],["cx","50","cy","50","r","20","stroke-miterlimit","10",1,"p-progress-spinner-circle"]],template:function(n,i){1&n&&(l(0,"div",0),lt(),l(1,"svg",1),D(2,"circle",2),c()()),2&n&&(d("ngStyle",i.style)("ngClass",i.styleClass),F("aria-busy",!0)("data-pc-name","progressspinner")("data-pc-section","root"),a(1),qi("animation-duration",i.animationDuration),F("data-pc-section","root"),a(1),F("fill",i.fill)("stroke-width",i.strokeWidth))},dependencies:[Fe,nt],styles:['@layer primeng{.p-progress-spinner{position:relative;margin:0 auto;width:100px;height:100px;display:inline-block}.p-progress-spinner:before{content:"";display:block;padding-top:100%}.p-progress-spinner-svg{animation:p-progress-spinner-rotate 2s linear infinite;height:100%;transform-origin:center center;width:100%;position:absolute;inset:0;margin:auto}.p-progress-spinner-circle{stroke-dasharray:89,200;stroke-dashoffset:0;stroke:#d62d20;animation:p-progress-spinner-dash 1.5s ease-in-out infinite,p-progress-spinner-color 6s ease-in-out infinite;stroke-linecap:round}}@keyframes p-progress-spinner-rotate{to{transform:rotate(360deg)}}@keyframes p-progress-spinner-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}@keyframes p-progress-spinner-color{to,0%{stroke:#d62d20}40%{stroke:#0057e7}66%{stroke:#008744}80%,90%{stroke:#ffa700}}\n'],encapsulation:2,changeDetection:0})}return t})(),$J=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=me({imports:[Ne]})}return t})();ua([Tt({transform:"{{transform}}",opacity:0}),Ut("{{transition}}")]),ua([Ut("{{transition}}",Tt({transform:"{{transform}}",opacity:0}))]);let sZ=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=me({imports:[Ne,Cn,ze,xn,ze]})}return t})(),oZ=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=me({imports:[Ne]})}return t})(),mZ=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=me({imports:[Ne,zn,Ti,zn,Ti]})}return t})();function fZ(t,s){1&t&&D(0,"span",8),2&t&&(se(p(2).$implicit.icon),d("ngClass","p-button-icon p-button-icon-left"))}function gZ(t,s){if(1&t&&(Q(0),m(1,fZ,1,3,"span",6),l(2,"span",7),_(3),c(),J()),2&t){const e=p().$implicit,n=p();a(1),d("ngIf",e.icon),a(2),S(n.getOptionLabel(e))}}function _Z(t,s){1&t&&Z(0)}const bZ=function(t,s){return{$implicit:t,index:s}};function vZ(t,s){if(1&t&&m(0,_Z,1,0,"ng-container",9),2&t){const e=p(),n=e.$implicit,i=e.index;d("ngTemplateOutlet",p().selectButtonTemplate)("ngTemplateOutletContext",Se(2,bZ,n,i))}}const CZ=function(t,s,e){return{"p-highlight":t,"p-disabled":s,"p-button-icon-only":e}};function yZ(t,s){if(1&t){const e=E();l(0,"div",2,3),v("click",function(i){const o=C(e),r=o.$implicit,u=o.index;return y(p().onItemClick(i,r,u))})("keydown.enter",function(i){const o=C(e),r=o.$implicit,u=o.index;return y(p().onItemClick(i,r,u))})("blur",function(){return C(e),y(p().onBlur())}),m(2,gZ,4,2,"ng-container",4),m(3,vZ,1,5,"ng-template",null,5,ve),c()}if(2&t){const e=s.$implicit,n=B(4),i=p();se(e.styleClass),d("ngClass",Bt(10,CZ,i.isSelected(e),i.disabled||i.isOptionDisabled(e),e.icon&&!i.getOptionLabel(e))),F("aria-pressed",i.isSelected(e))("title",e.title)("aria-label",e.label)("tabindex",i.disabled?null:i.tabindex)("aria-labelledby",i.getOptionLabel(e)),a(2),d("ngIf",!i.itemTemplate)("ngIfElse",n)}}const TZ={provide:dn,useExisting:Ze(()=>wZ),multi:!0};let wZ=(()=>{class t{cd;options;optionLabel;optionValue;optionDisabled;tabindex=0;multiple;style;styleClass;ariaLabelledBy;disabled;dataKey;onOptionClick=new q;onChange=new q;itemTemplate;get selectButtonTemplate(){return this.itemTemplate?.template}value;onModelChange=()=>{};onModelTouched=()=>{};constructor(e){this.cd=e}getOptionLabel(e){return this.optionLabel?Y.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionValue(e){return this.optionValue?Y.resolveFieldData(e,this.optionValue):this.optionLabel||void 0===e.value?e:e.value}isOptionDisabled(e){return this.optionDisabled?Y.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,n,i){if(this.disabled||this.isOptionDisabled(n))return;const o=this.getOptionValue(n);this.multiple?(this.isSelected(n)?this.removeOption(n):this.value=[...this.value||[],o],this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value})):this.value!==o&&(this.value=o,this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value})),this.onOptionClick.emit({originalEvent:e,option:n,index:i})}onBlur(){this.onModelTouched()}removeOption(e){this.value=this.value.filter(n=>!Y.equals(n,this.getOptionValue(e),this.dataKey))}isSelected(e){let n=!1;const i=this.getOptionValue(e);if(this.multiple){if(this.value&&Array.isArray(this.value))for(let o of this.value)if(Y.equals(o,i,this.dataKey)){n=!0;break}}else n=Y.equals(i,this.value,this.dataKey);return n}static \u0275fac=function(n){return new(n||t)(M(rt))};static \u0275cmp=U({type:t,selectors:[["p-selectButton"]],contentQueries:function(n,i,o){if(1&n&&Ye(o,ae,5),2&n){let r;H(r=G())&&(i.itemTemplate=r.first)}},hostAttrs:[1,"p-element"],inputs:{options:"options",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",tabindex:"tabindex",multiple:"multiple",style:"style",styleClass:"styleClass",ariaLabelledBy:"ariaLabelledBy",disabled:"disabled",dataKey:"dataKey"},outputs:{onOptionClick:"onOptionClick",onChange:"onChange"},features:[Qe([TZ])],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(n,i){1&n&&(l(0,"div",0),m(1,yZ,5,14,"div",1),c()),2&n&&(se(i.styleClass),d("ngClass","p-selectbutton p-buttonset p-component")("ngStyle",i.style),a(1),d("ngForOf",i.options))},dependencies:[Fe,ut,ne,dt,nt,bt],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})(),IZ=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=me({imports:[Ne,Cn,ze,ze]})}return t})();function SZ(t,s){1&t&&D(0,"span",8),2&t&&d("ngClass",p(2).checkboxTrueIcon)}function xZ(t,s){1&t&&D(0,"CheckIcon",11),2&t&&d("styleClass","p-checkbox-icon")}function DZ(t,s){}function MZ(t,s){1&t&&m(0,DZ,0,0,"ng-template")}function kZ(t,s){if(1&t&&(l(0,"span",12),m(1,MZ,1,0,null,13),c()),2&t){const e=p(3);a(1),d("ngTemplateOutlet",e.checkIconTemplate)}}function EZ(t,s){if(1&t&&(Q(0),m(1,xZ,1,1,"CheckIcon",9),m(2,kZ,2,1,"span",10),J()),2&t){const e=p(2);a(1),d("ngIf",!e.checkIconTemplate),a(1),d("ngIf",e.checkIconTemplate)}}function LZ(t,s){if(1&t&&(Q(0),m(1,SZ,1,1,"span",7),m(2,EZ,3,2,"ng-container",5),J()),2&t){const e=p();a(1),d("ngIf",e.checkboxTrueIcon),a(1),d("ngIf",!e.checkboxTrueIcon)}}function RZ(t,s){1&t&&D(0,"span",8),2&t&&d("ngClass",p(2).checkboxFalseIcon)}function OZ(t,s){1&t&&D(0,"TimesIcon",11),2&t&&d("styleClass","p-checkbox-icon")}function AZ(t,s){}function PZ(t,s){1&t&&m(0,AZ,0,0,"ng-template")}function FZ(t,s){if(1&t&&(l(0,"span",12),m(1,PZ,1,0,null,13),c()),2&t){const e=p(3);a(1),d("ngTemplateOutlet",e.uncheckIconTemplate)}}function NZ(t,s){if(1&t&&(Q(0),m(1,OZ,1,1,"TimesIcon",9),m(2,FZ,2,1,"span",10),J()),2&t){const e=p(2);a(1),d("ngIf",!e.uncheckIconTemplate),a(1),d("ngIf",e.uncheckIconTemplate)}}function VZ(t,s){if(1&t&&(Q(0),m(1,RZ,1,1,"span",7),m(2,NZ,3,2,"ng-container",5),J()),2&t){const e=p();a(1),d("ngIf",e.checkboxFalseIcon),a(1),d("ngIf",!e.checkboxFalseIcon)}}const BZ=function(t,s,e){return{"p-checkbox-label-active":t,"p-disabled":s,"p-checkbox-label-focus":e}};function HZ(t,s){if(1&t){const e=E();l(0,"label",14),v("click",function(i){C(e);const o=p(),r=B(3);return y(o.onClick(i,r))}),_(1),c()}if(2&t){const e=p();d("ngClass",Bt(3,BZ,null!=e.value,e.disabled,e.focused)),F("for",e.inputId),a(1),S(e.label)}}const GZ=function(t,s){return{"p-checkbox p-component":!0,"p-checkbox-disabled":t,"p-checkbox-focused":s}},qZ=function(t,s,e){return{"p-highlight":t,"p-disabled":s,"p-focus":e}},zZ={provide:dn,useExisting:Ze(()=>dx),multi:!0};let dx=(()=>{class t{cd;constructor(e){this.cd=e}disabled;name;ariaLabelledBy;tabindex;inputId;style;styleClass;label;readonly;checkboxTrueIcon;checkboxFalseIcon;onChange=new q;templates;checkIconTemplate;uncheckIconTemplate;focused;value;onModelChange=()=>{};onModelTouched=()=>{};onClick(e,n){!this.disabled&&!this.readonly&&(this.toggle(e),this.focused=!0,n.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(n){return new(n||t)(M(rt))};static \u0275cmp=U({type:t,selectors:[["p-triStateCheckbox"]],contentQueries:function(n,i,o){if(1&n&&Ye(o,ae,4),2&n){let r;H(r=G())&&(i.templates=r)}},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:[Qe([zZ])],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(n,i){if(1&n){const o=E();l(0,"div",0)(1,"div",1)(2,"input",2,3),v("keyup",function(u){return i.onKeyup(u)})("keydown",function(u){return i.onKeydown(u)})("focus",function(){return i.onFocus()})("blur",function(){return i.onBlur()}),c()(),l(4,"div",4),v("click",function(u){C(o);const h=B(3);return y(i.onClick(u,h))}),m(5,LZ,3,2,"ng-container",5),m(6,VZ,3,2,"ng-container",5),c()(),m(7,HZ,2,7,"label",6)}2&n&&(se(i.styleClass),d("ngStyle",i.style)("ngClass",Se(15,GZ,i.disabled,i.focused)),a(2),d("name",i.name)("readonly",i.readonly)("disabled",i.disabled),F("id",i.inputId)("tabindex",i.tabindex)("aria-labelledby",i.ariaLabelledBy),a(2),d("ngClass",Bt(18,qZ,null!=i.value,i.disabled,i.focused)),F("aria-checked",!0===i.value),a(1),d("ngIf",!0===i.value),a(1),d("ngIf",!1===i.value),a(1),d("ngIf",i.label))},dependencies:function(){return[Fe,ne,dt,nt,Gn,xn]},encapsulation:2,changeDetection:0})}return t})(),UZ=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=me({imports:[Ne,ze,Gn,xn,ze]})}return t})(),px=(()=>{class t extends _t{pathId;ngOnInit(){this.pathId="url(#"+Ft()+")"}static \u0275fac=function(){let e;return function(i){return(e||(e=we(t)))(i||t)}}();static \u0275cmp=U({type:t,selectors:[["ArrowDownIcon"]],standalone:!0,features:[_e,ot],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(n,i){1&n&&(lt(),l(0,"svg",0)(1,"g"),D(2,"path",1),c(),l(3,"defs")(4,"clipPath",2),D(5,"rect",3),c()()()),2&n&&(se(i.getClassNames()),F("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role),a(1),F("clip-path",i.pathId),a(3),d("id",i.pathId))},encapsulation:2})}return t})(),hx=(()=>{class t extends _t{pathId;ngOnInit(){this.pathId="url(#"+Ft()+")"}static \u0275fac=function(){let e;return function(i){return(e||(e=we(t)))(i||t)}}();static \u0275cmp=U({type:t,selectors:[["ArrowUpIcon"]],standalone:!0,features:[_e,ot],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(n,i){1&n&&(lt(),l(0,"svg",0)(1,"g"),D(2,"path",1),c(),l(3,"defs")(4,"clipPath",2),D(5,"rect",3),c()()()),2&n&&(se(i.getClassNames()),F("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role),a(1),F("clip-path",i.pathId),a(3),d("id",i.pathId))},encapsulation:2})}return t})(),mx=(()=>{class t extends _t{pathId;ngOnInit(){this.pathId="url(#"+Ft()+")"}static \u0275fac=function(){let e;return function(i){return(e||(e=we(t)))(i||t)}}();static \u0275cmp=U({type:t,selectors:[["FilterIcon"]],standalone:!0,features:[_e,ot],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(n,i){1&n&&(lt(),l(0,"svg",0)(1,"g"),D(2,"path",1),c(),l(3,"defs")(4,"clipPath",2),D(5,"rect",3),c()()()),2&n&&(se(i.getClassNames()),F("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role),a(1),F("clip-path",i.pathId),a(3),d("id",i.pathId))},encapsulation:2})}return t})(),fx=(()=>{class t extends _t{pathId;ngOnInit(){this.pathId="url(#"+Ft()+")"}static \u0275fac=function(){let e;return function(i){return(e||(e=we(t)))(i||t)}}();static \u0275cmp=U({type:t,selectors:[["SortAltIcon"]],standalone:!0,features:[_e,ot],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(n,i){1&n&&(lt(),l(0,"svg",0)(1,"g"),D(2,"path",1)(3,"path",2)(4,"path",3)(5,"path",4),c(),l(6,"defs")(7,"clipPath",5),D(8,"rect",6),c()()()),2&n&&(se(i.getClassNames()),F("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role),a(1),F("clip-path",i.pathId),a(6),d("id",i.pathId))},encapsulation:2})}return t})(),gx=(()=>{class t extends _t{pathId;ngOnInit(){this.pathId="url(#"+Ft()+")"}static \u0275fac=function(){let e;return function(i){return(e||(e=we(t)))(i||t)}}();static \u0275cmp=U({type:t,selectors:[["SortAmountDownIcon"]],standalone:!0,features:[_e,ot],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(n,i){1&n&&(lt(),l(0,"svg",0)(1,"g"),D(2,"path",1)(3,"path",2)(4,"path",3)(5,"path",4)(6,"path",5)(7,"path",6),c(),l(8,"defs")(9,"clipPath",7),D(10,"rect",8),c()()()),2&n&&(se(i.getClassNames()),F("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role),a(1),F("clip-path",i.pathId),a(8),d("id",i.pathId))},encapsulation:2})}return t})(),_x=(()=>{class t extends _t{pathId;ngOnInit(){this.pathId="url(#"+Ft()+")"}static \u0275fac=function(){let e;return function(i){return(e||(e=we(t)))(i||t)}}();static \u0275cmp=U({type:t,selectors:[["SortAmountUpAltIcon"]],standalone:!0,features:[_e,ot],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(n,i){1&n&&(lt(),l(0,"svg",0)(1,"g"),D(2,"path",1)(3,"path",2)(4,"path",3)(5,"path",4)(6,"path",5)(7,"path",6),c(),l(8,"defs")(9,"clipPath",7),D(10,"rect",8),c()()()),2&n&&(se(i.getClassNames()),F("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role),a(1),F("clip-path",i.pathId),a(8),d("id",i.pathId))},encapsulation:2})}return t})(),bx=(()=>{class t extends _t{pathId;ngOnInit(){this.pathId="url(#"+Ft()+")"}static \u0275fac=function(){let e;return function(i){return(e||(e=we(t)))(i||t)}}();static \u0275cmp=U({type:t,selectors:[["FilterSlashIcon"]],standalone:!0,features:[_e,ot],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(n,i){1&n&&(lt(),l(0,"svg",0)(1,"g"),D(2,"path",1),c(),l(3,"defs")(4,"clipPath",2),D(5,"rect",3),c()()()),2&n&&(se(i.getClassNames()),F("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role),a(1),F("clip-path",i.pathId),a(3),d("id",i.pathId))},encapsulation:2})}return t})();const jZ=["container"],$Z=["resizeHelper"],WZ=["reorderIndicatorUp"],KZ=["reorderIndicatorDown"],QZ=["wrapper"],JZ=["table"],ZZ=["thead"],YZ=["tfoot"],XZ=["scroller"];function eY(t,s){1&t&&D(0,"i"),2&t&&se("p-datatable-loading-icon "+p(2).loadingIcon)}function tY(t,s){1&t&&D(0,"SpinnerIcon",19),2&t&&d("spin",!0)("styleClass","p-datatable-loading-icon")}function nY(t,s){}function iY(t,s){1&t&&m(0,nY,0,0,"ng-template")}function sY(t,s){if(1&t&&(l(0,"span",20),m(1,iY,1,0,null,21),c()),2&t){const e=p(3);a(1),d("ngTemplateOutlet",e.loadingIconTemplate)}}function oY(t,s){if(1&t&&(Q(0),m(1,tY,1,2,"SpinnerIcon",17),m(2,sY,2,1,"span",18),J()),2&t){const e=p(2);a(1),d("ngIf",!e.loadingIconTemplate),a(1),d("ngIf",e.loadingIconTemplate)}}function rY(t,s){if(1&t&&(l(0,"div",15),m(1,eY,1,2,"i",16),m(2,oY,3,2,"ng-container",8),c()),2&t){const e=p();a(1),d("ngIf",e.loadingIcon),a(1),d("ngIf",!e.loadingIcon)}}function aY(t,s){1&t&&Z(0)}function lY(t,s){if(1&t&&(l(0,"div",22),m(1,aY,1,0,"ng-container",21),c()),2&t){const e=p();a(1),d("ngTemplateOutlet",e.captionTemplate)}}function cY(t,s){1&t&&Z(0)}function uY(t,s){1&t&&m(0,cY,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",p(3).paginatorFirstPageLinkIconTemplate)}function dY(t,s){1&t&&m(0,uY,1,1,"ng-template",24)}function pY(t,s){1&t&&Z(0)}function hY(t,s){1&t&&m(0,pY,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",p(3).paginatorPreviousPageLinkIconTemplate)}function mY(t,s){1&t&&m(0,hY,1,1,"ng-template",25)}function fY(t,s){1&t&&Z(0)}function gY(t,s){1&t&&m(0,fY,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",p(3).paginatorLastPageLinkIconTemplate)}function _Y(t,s){1&t&&m(0,gY,1,1,"ng-template",26)}function bY(t,s){1&t&&Z(0)}function vY(t,s){1&t&&m(0,bY,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",p(3).paginatorNextPageLinkIconTemplate)}function CY(t,s){1&t&&m(0,vY,1,1,"ng-template",27)}function yY(t,s){if(1&t){const e=E();l(0,"p-paginator",23),v("onPageChange",function(i){return C(e),y(p().onPageChange(i))}),m(1,dY,1,0,null,8),m(2,mY,1,0,null,8),m(3,_Y,1,0,null,8),m(4,CY,1,0,null,8),c()}if(2&t){const e=p();d("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),a(1),d("ngIf",e.paginatorFirstPageLinkIconTemplate),a(1),d("ngIf",e.paginatorPreviousPageLinkIconTemplate),a(1),d("ngIf",e.paginatorLastPageLinkIconTemplate),a(1),d("ngIf",e.paginatorNextPageLinkIconTemplate)}}function TY(t,s){1&t&&Z(0)}const vx=function(t,s){return{$implicit:t,options:s}};function wY(t,s){if(1&t&&m(0,TY,1,0,"ng-container",31),2&t){const e=s.$implicit,n=s.options;p(2),d("ngTemplateOutlet",B(10))("ngTemplateOutletContext",Se(2,vx,e,n))}}const IY=function(t){return{height:t}};function SY(t,s){if(1&t){const e=E();l(0,"p-scroller",28,29),v("onLazyLoad",function(i){return C(e),y(p().onLazyItemLoad(i))}),m(2,wY,1,5,"ng-template",30),c()}if(2&t){const e=p();j(W(15,IY,"flex"!==e.scrollHeight?e.scrollHeight:void 0)),d("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 xY(t,s){1&t&&Z(0)}const DY=function(t){return{columns:t}};function MY(t,s){if(1&t&&(Q(0),m(1,xY,1,0,"ng-container",31),J()),2&t){const e=p(),n=B(10);a(1),d("ngTemplateOutlet",n)("ngTemplateOutletContext",Se(4,vx,e.processedData,W(2,DY,e.columns)))}}function kY(t,s){1&t&&Z(0)}function EY(t,s){1&t&&Z(0)}function LY(t,s){if(1&t&&D(0,"tbody",40),2&t){const e=p().options,n=p();d("value",n.frozenValue)("frozenRows",!0)("pTableBody",e.columns)("pTableBodyTemplate",n.frozenBodyTemplate)("frozen",!0)}}function RY(t,s){if(1&t&&D(0,"tbody",41),2&t){const e=p().options;j("height: calc("+e.spacerStyle.height+" - "+e.rows.length*e.itemSize+"px);")}}function OY(t,s){1&t&&Z(0)}const vo=function(t){return{$implicit:t}};function AY(t,s){if(1&t&&(l(0,"tfoot",42,43),m(2,OY,1,0,"ng-container",31),c()),2&t){const e=p().options,n=p();a(2),d("ngTemplateOutlet",n.footerGroupedTemplate||n.footerTemplate)("ngTemplateOutletContext",W(2,vo,e.columns))}}const PY=function(t,s,e){return{"p-datatable-table":!0,"p-datatable-scrollable-table":t,"p-datatable-resizable-table":s,"p-datatable-resizable-table-fit":e}};function FY(t,s){if(1&t&&(l(0,"table",32,33),m(2,kY,1,0,"ng-container",31),l(3,"thead",34,35),m(5,EY,1,0,"ng-container",31),c(),m(6,LY,1,5,"tbody",36),D(7,"tbody",37),m(8,RY,1,2,"tbody",38),m(9,AY,3,4,"tfoot",39),c()),2&t){const e=s.options,n=p();j(n.tableStyle),se(n.tableStyleClass),d("ngClass",Bt(20,PY,n.scrollable,n.resizableColumns,n.resizableColumns&&"fit"===n.columnResizeMode)),F("id",n.id+"-table"),a(2),d("ngTemplateOutlet",n.colGroupTemplate)("ngTemplateOutletContext",W(24,vo,e.columns)),a(3),d("ngTemplateOutlet",n.headerGroupedTemplate||n.headerTemplate)("ngTemplateOutletContext",W(26,vo,e.columns)),a(1),d("ngIf",n.frozenValue||n.frozenBodyTemplate),a(1),j(e.contentStyle),d("ngClass",e.contentStyleClass)("value",n.dataToRender(e.rows))("pTableBody",e.columns)("pTableBodyTemplate",n.bodyTemplate)("scrollerOptions",e),a(1),d("ngIf",e.spacerStyle),a(1),d("ngIf",n.footerGroupedTemplate||n.footerTemplate)}}function NY(t,s){1&t&&Z(0)}function VY(t,s){1&t&&m(0,NY,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",p(3).paginatorFirstPageLinkIconTemplate)}function BY(t,s){1&t&&m(0,VY,1,1,"ng-template",24)}function HY(t,s){1&t&&Z(0)}function GY(t,s){1&t&&m(0,HY,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",p(3).paginatorPreviousPageLinkIconTemplate)}function qY(t,s){1&t&&m(0,GY,1,1,"ng-template",25)}function zY(t,s){1&t&&Z(0)}function UY(t,s){1&t&&m(0,zY,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",p(3).paginatorLastPageLinkIconTemplate)}function jY(t,s){1&t&&m(0,UY,1,1,"ng-template",26)}function $Y(t,s){1&t&&Z(0)}function WY(t,s){1&t&&m(0,$Y,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",p(3).paginatorNextPageLinkIconTemplate)}function KY(t,s){1&t&&m(0,WY,1,1,"ng-template",27)}function QY(t,s){if(1&t){const e=E();l(0,"p-paginator",44),v("onPageChange",function(i){return C(e),y(p().onPageChange(i))}),m(1,BY,1,0,null,8),m(2,qY,1,0,null,8),m(3,jY,1,0,null,8),m(4,KY,1,0,null,8),c()}if(2&t){const e=p();d("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),a(1),d("ngIf",e.paginatorFirstPageLinkIconTemplate),a(1),d("ngIf",e.paginatorPreviousPageLinkIconTemplate),a(1),d("ngIf",e.paginatorLastPageLinkIconTemplate),a(1),d("ngIf",e.paginatorNextPageLinkIconTemplate)}}function JY(t,s){1&t&&Z(0)}function ZY(t,s){if(1&t&&(l(0,"div",45),m(1,JY,1,0,"ng-container",21),c()),2&t){const e=p();a(1),d("ngTemplateOutlet",e.summaryTemplate)}}function YY(t,s){1&t&&D(0,"div",46,47)}function XY(t,s){1&t&&D(0,"ArrowDownIcon")}function eX(t,s){}function tX(t,s){1&t&&m(0,eX,0,0,"ng-template")}function nX(t,s){if(1&t&&(l(0,"span",48,49),m(2,XY,1,0,"ArrowDownIcon",8),m(3,tX,1,0,null,21),c()),2&t){const e=p();a(2),d("ngIf",!e.reorderIndicatorUpIconTemplate),a(1),d("ngTemplateOutlet",e.reorderIndicatorUpIconTemplate)}}function iX(t,s){1&t&&D(0,"ArrowUpIcon")}function sX(t,s){}function oX(t,s){1&t&&m(0,sX,0,0,"ng-template")}function rX(t,s){if(1&t&&(l(0,"span",50,51),m(2,iX,1,0,"ArrowUpIcon",8),m(3,oX,1,0,null,21),c()),2&t){const e=p();a(2),d("ngIf",!e.reorderIndicatorDownIconTemplate),a(1),d("ngTemplateOutlet",e.reorderIndicatorDownIconTemplate)}}const aX=function(t,s,e){return{"p-datatable p-component":!0,"p-datatable-hoverable-rows":t,"p-datatable-scrollable":s,"p-datatable-flex-scrollable":e}},lX=function(t){return{maxHeight:t}},cX=["pTableBody",""];function uX(t,s){1&t&&Z(0)}const l1=function(t,s,e,n,i){return{$implicit:t,rowIndex:s,columns:e,editing:n,frozen:i}};function dX(t,s){if(1&t&&(Q(0,3),m(1,uX,1,0,"ng-container",4),J()),2&t){const e=p(),n=e.$implicit,i=e.index,o=p(2);a(1),d("ngTemplateOutlet",o.dt.groupHeaderTemplate)("ngTemplateOutletContext",xl(2,l1,n,o.getRowIndex(i),o.columns,"row"===o.dt.editMode&&o.dt.isRowEditing(n),o.frozen))}}function pX(t,s){1&t&&Z(0)}function hX(t,s){if(1&t&&(Q(0),m(1,pX,1,0,"ng-container",4),J()),2&t){const e=p(),n=e.$implicit,i=e.index,o=p(2);a(1),d("ngTemplateOutlet",n?o.template:o.dt.loadingBodyTemplate)("ngTemplateOutletContext",xl(2,l1,n,o.getRowIndex(i),o.columns,"row"===o.dt.editMode&&o.dt.isRowEditing(n),o.frozen))}}function mX(t,s){1&t&&Z(0)}const fX=function(t,s,e,n,i,o,r){return{$implicit:t,rowIndex:s,columns:e,editing:n,frozen:i,rowgroup:o,rowspan:r}};function gX(t,s){if(1&t&&(Q(0),m(1,mX,1,0,"ng-container",4),J()),2&t){const e=p(),n=e.$implicit,i=e.index,o=p(2);a(1),d("ngTemplateOutlet",n?o.template:o.dt.loadingBodyTemplate)("ngTemplateOutletContext",function u2(t,s,e,n,i,o,r,u,h,b){const T=Wn()+t,w=X();let k=Ei(w,T,e,n,i,o);return Qu(w,T+4,r,u,h)||k?ms(w,T+7,b?s.call(b,e,n,i,o,r,u,h):s(e,n,i,o,r,u,h)):ml(w,T+7)}(2,fX,n,o.getRowIndex(i),o.columns,"row"===o.dt.editMode&&o.dt.isRowEditing(n),o.frozen,o.shouldRenderRowspan(o.value,n,i),o.calculateRowGroupSize(o.value,n,i)))}}function _X(t,s){1&t&&Z(0)}function bX(t,s){if(1&t&&(Q(0,3),m(1,_X,1,0,"ng-container",4),J()),2&t){const e=p(),n=e.$implicit,i=e.index,o=p(2);a(1),d("ngTemplateOutlet",o.dt.groupFooterTemplate)("ngTemplateOutletContext",xl(2,l1,n,o.getRowIndex(i),o.columns,"row"===o.dt.editMode&&o.dt.isRowEditing(n),o.frozen))}}function vX(t,s){if(1&t&&(m(0,dX,2,8,"ng-container",2),m(1,hX,2,8,"ng-container",0),m(2,gX,2,10,"ng-container",0),m(3,bX,2,8,"ng-container",2)),2&t){const e=s.$implicit,n=s.index,i=p(2);d("ngIf",i.dt.groupHeaderTemplate&&!i.dt.virtualScroll&&"subheader"===i.dt.rowGroupMode&&i.shouldRenderRowGroupHeader(i.value,e,n)),a(1),d("ngIf","rowspan"!==i.dt.rowGroupMode),a(1),d("ngIf","rowspan"===i.dt.rowGroupMode),a(1),d("ngIf",i.dt.groupFooterTemplate&&!i.dt.virtualScroll&&"subheader"===i.dt.rowGroupMode&&i.shouldRenderRowGroupFooter(i.value,e,n))}}function CX(t,s){if(1&t&&(Q(0),m(1,vX,4,4,"ng-template",1),J()),2&t){const e=p();a(1),d("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function yX(t,s){1&t&&Z(0)}const Vp=function(t,s,e,n,i,o){return{$implicit:t,rowIndex:s,columns:e,expanded:n,editing:i,frozen:o}};function TX(t,s){if(1&t&&(Q(0),m(1,yX,1,0,"ng-container",4),J()),2&t){const e=p(),n=e.$implicit,i=e.index,o=p(2);a(1),d("ngTemplateOutlet",o.template)("ngTemplateOutletContext",As(2,Vp,n,o.getRowIndex(i),o.columns,o.dt.isRowExpanded(n),"row"===o.dt.editMode&&o.dt.isRowEditing(n),o.frozen))}}function wX(t,s){1&t&&Z(0)}function IX(t,s){if(1&t&&(Q(0,3),m(1,wX,1,0,"ng-container",4),J()),2&t){const e=p(),n=e.$implicit,i=e.index,o=p(2);a(1),d("ngTemplateOutlet",o.dt.groupHeaderTemplate)("ngTemplateOutletContext",As(2,Vp,n,o.getRowIndex(i),o.columns,o.dt.isRowExpanded(n),"row"===o.dt.editMode&&o.dt.isRowEditing(n),o.frozen))}}function SX(t,s){1&t&&Z(0)}function xX(t,s){1&t&&Z(0)}function DX(t,s){if(1&t&&(Q(0,3),m(1,xX,1,0,"ng-container",4),J()),2&t){const e=p(2),n=e.$implicit,i=e.index,o=p(2);a(1),d("ngTemplateOutlet",o.dt.groupFooterTemplate)("ngTemplateOutletContext",As(2,Vp,n,o.getRowIndex(i),o.columns,o.dt.isRowExpanded(n),"row"===o.dt.editMode&&o.dt.isRowEditing(n),o.frozen))}}const Cx=function(t,s,e,n){return{$implicit:t,rowIndex:s,columns:e,frozen:n}};function MX(t,s){if(1&t&&(Q(0),m(1,SX,1,0,"ng-container",4),m(2,DX,2,9,"ng-container",2),J()),2&t){const e=p(),n=e.$implicit,i=e.index,o=p(2);a(1),d("ngTemplateOutlet",o.dt.expandedRowTemplate)("ngTemplateOutletContext",Li(3,Cx,n,o.getRowIndex(i),o.columns,o.frozen)),a(1),d("ngIf",o.dt.groupFooterTemplate&&"subheader"===o.dt.rowGroupMode&&o.shouldRenderRowGroupFooter(o.value,n,o.getRowIndex(i)))}}function kX(t,s){if(1&t&&(m(0,TX,2,9,"ng-container",0),m(1,IX,2,9,"ng-container",2),m(2,MX,3,8,"ng-container",0)),2&t){const e=s.$implicit,n=s.index,i=p(2);d("ngIf",!i.dt.groupHeaderTemplate),a(1),d("ngIf",i.dt.groupHeaderTemplate&&"subheader"===i.dt.rowGroupMode&&i.shouldRenderRowGroupHeader(i.value,e,i.getRowIndex(n))),a(1),d("ngIf",i.dt.isRowExpanded(e))}}function EX(t,s){if(1&t&&(Q(0),m(1,kX,3,3,"ng-template",1),J()),2&t){const e=p();a(1),d("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function LX(t,s){1&t&&Z(0)}function RX(t,s){1&t&&Z(0)}function OX(t,s){if(1&t&&(Q(0),m(1,RX,1,0,"ng-container",4),J()),2&t){const e=p(),n=e.$implicit,i=e.index,o=p(2);a(1),d("ngTemplateOutlet",o.dt.frozenExpandedRowTemplate)("ngTemplateOutletContext",Li(2,Cx,n,o.getRowIndex(i),o.columns,o.frozen))}}function AX(t,s){if(1&t&&(m(0,LX,1,0,"ng-container",4),m(1,OX,2,7,"ng-container",0)),2&t){const e=s.$implicit,n=s.index,i=p(2);d("ngTemplateOutlet",i.template)("ngTemplateOutletContext",As(3,Vp,e,i.getRowIndex(n),i.columns,i.dt.isRowExpanded(e),"row"===i.dt.editMode&&i.dt.isRowEditing(e),i.frozen)),a(1),d("ngIf",i.dt.isRowExpanded(e))}}function PX(t,s){if(1&t&&(Q(0),m(1,AX,2,10,"ng-template",1),J()),2&t){const e=p();a(1),d("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function FX(t,s){1&t&&Z(0)}const yx=function(t,s){return{$implicit:t,frozen:s}};function NX(t,s){if(1&t&&(Q(0),m(1,FX,1,0,"ng-container",4),J()),2&t){const e=p();a(1),d("ngTemplateOutlet",e.dt.loadingBodyTemplate)("ngTemplateOutletContext",Se(2,yx,e.columns,e.frozen))}}function VX(t,s){1&t&&Z(0)}function BX(t,s){if(1&t&&(Q(0),m(1,VX,1,0,"ng-container",4),J()),2&t){const e=p();a(1),d("ngTemplateOutlet",e.dt.emptyMessageTemplate)("ngTemplateOutletContext",Se(2,yx,e.columns,e.frozen))}}function HX(t,s){1&t&&D(0,"SortAltIcon",4),2&t&&d("styleClass","p-sortable-column-icon")}function GX(t,s){1&t&&D(0,"SortAmountUpAltIcon",4),2&t&&d("styleClass","p-sortable-column-icon")}function qX(t,s){1&t&&D(0,"SortAmountDownIcon",4),2&t&&d("styleClass","p-sortable-column-icon")}function zX(t,s){if(1&t&&(Q(0),m(1,HX,1,1,"SortAltIcon",3),m(2,GX,1,1,"SortAmountUpAltIcon",3),m(3,qX,1,1,"SortAmountDownIcon",3),J()),2&t){const e=p();a(1),d("ngIf",0===e.sortOrder),a(1),d("ngIf",1===e.sortOrder),a(1),d("ngIf",-1===e.sortOrder)}}function UX(t,s){}function jX(t,s){1&t&&m(0,UX,0,0,"ng-template")}function $X(t,s){if(1&t&&(l(0,"span",5),m(1,jX,1,0,null,6),c()),2&t){const e=p();a(1),d("ngTemplateOutlet",e.dt.sortIconTemplate)("ngTemplateOutletContext",W(2,vo,e.sortOrder))}}function WX(t,s){if(1&t&&(l(0,"span",7),_(1),c()),2&t){const e=p();a(1),S(e.getBadgeValue())}}function KX(t,s){1&t&&Z(0)}function QX(t,s){if(1&t&&(Q(0),m(1,KX,1,0,"ng-container",1),J()),2&t){const e=p();a(1),d("ngTemplateOutlet",e.inputTemplate)}}function JX(t,s){1&t&&Z(0)}function ZX(t,s){if(1&t&&(Q(0),m(1,JX,1,0,"ng-container",1),J()),2&t){const e=p();a(1),d("ngTemplateOutlet",e.outputTemplate)}}const see=["icon"];function oee(t,s){if(1&t&&D(0,"p-columnFilterFormElement",5),2&t){const e=p();d("type",e.type)("field",e.field)("filterConstraint",e.dt.filters[e.field])("filterTemplate",e.filterTemplate)("placeholder",e.placeholder)("minFractionDigits",e.minFractionDigits)("maxFractionDigits",e.maxFractionDigits)("prefix",e.prefix)("suffix",e.suffix)("locale",e.locale)("localeMatcher",e.localeMatcher)("currency",e.currency)("currencyDisplay",e.currencyDisplay)("useGrouping",e.useGrouping)("showButtons",e.showButtons)}}function ree(t,s){1&t&&D(0,"FilterIcon",10),2&t&&d("styleClass","pi-filter-icon")}function aee(t,s){}function lee(t,s){1&t&&m(0,aee,0,0,"ng-template")}function cee(t,s){if(1&t&&(l(0,"span",11),m(1,lee,1,0,null,12),c()),2&t){const e=p(2);a(1),d("ngTemplateOutlet",e.filterIconTemplate)}}const uee=function(t,s){return{"p-column-filter-menu-button-open":t,"p-column-filter-menu-button-active":s}};function dee(t,s){if(1&t){const e=E();l(0,"button",6,7),v("click",function(){return C(e),y(p().toggleMenu())})("keydown",function(i){return C(e),y(p().onToggleButtonKeyDown(i))}),m(2,ree,1,1,"FilterIcon",8),m(3,cee,2,1,"span",9),c()}if(2&t){const e=p();d("ngClass",Se(4,uee,e.overlayVisible,e.hasFilter())),F("aria-expanded",e.overlayVisible),a(2),d("ngIf",!e.filterIconTemplate),a(1),d("ngIf",e.filterIconTemplate)}}function pee(t,s){1&t&&D(0,"FilterSlashIcon")}function hee(t,s){}function mee(t,s){1&t&&m(0,hee,0,0,"ng-template")}const fee=function(t){return{"p-hidden-space":t}};function gee(t,s){if(1&t){const e=E();l(0,"button",13,7),v("click",function(){return C(e),y(p().clearFilter())}),m(2,pee,1,0,"FilterSlashIcon",14),m(3,mee,1,0,null,12),c()}if(2&t){const e=p();d("ngClass",W(3,fee,!e.hasRowFilter())),a(2),d("ngIf",!e.clearIconTemplate),a(1),d("ngTemplateOutlet",e.clearFilterIcon)}}function _ee(t,s){1&t&&Z(0)}const bee=function(t){return{"p-highlight":t}};function vee(t,s){if(1&t){const e=E();l(0,"li",23),v("click",function(){const o=C(e).$implicit;return y(p(3).onRowMatchModeChange(o.value))})("keydown",function(i){return C(e),y(p(3).onRowMatchModeKeyDown(i))})("keydown.enter",function(){const o=C(e).$implicit;return y(p(3).onRowMatchModeChange(o.value))}),_(1),c()}if(2&t){const e=s.$implicit,n=s.index,i=p(3);d("ngClass",W(3,bee,i.isRowMatchModeSelected(e.value))),F("tabindex",0===n?"0":null),a(1),x(" ",e.label," ")}}function Cee(t,s){if(1&t){const e=E();l(0,"ul",19),m(1,vee,2,5,"li",20),D(2,"li",21),l(3,"li",22),v("click",function(){return C(e),y(p(2).onRowClearItemClick())})("keydown",function(i){return C(e),y(p(2).onRowMatchModeKeyDown(i))})("keydown.enter",function(){return C(e),y(p(2).onRowClearItemClick())}),_(4),c()()}if(2&t){const e=p(2);a(1),d("ngForOf",e.matchModes),a(3),S(e.noFilterLabel)}}function yee(t,s){if(1&t){const e=E();l(0,"div",31)(1,"p-dropdown",32),v("ngModelChange",function(i){return C(e),y(p(3).onOperatorChange(i))}),c()()}if(2&t){const e=p(3);a(1),d("options",e.operatorOptions)("ngModel",e.operator)}}function Tee(t,s){if(1&t){const e=E();l(0,"p-dropdown",37),v("ngModelChange",function(i){C(e);const o=p().$implicit;return y(p(3).onMenuMatchModeChange(i,o))}),c()}if(2&t){const e=p().$implicit;d("options",p(3).matchModes)("ngModel",e.matchMode)}}function wee(t,s){1&t&&D(0,"TrashIcon")}function Iee(t,s){}function See(t,s){1&t&&m(0,Iee,0,0,"ng-template")}function xee(t,s){if(1&t){const e=E();l(0,"button",38),v("click",function(){C(e);const i=p().$implicit;return y(p(3).removeConstraint(i))}),m(1,wee,1,0,"TrashIcon",14),m(2,See,1,0,null,12),c()}if(2&t){const e=p(4);d("label",e.removeRuleButtonLabel),a(1),d("ngIf",!e.removeRuleIconTemplate),a(1),d("ngTemplateOutlet",e.removeRuleIconTemplate)}}function Dee(t,s){if(1&t&&(l(0,"div",33),m(1,Tee,1,2,"p-dropdown",34),D(2,"p-columnFilterFormElement",35),l(3,"div"),m(4,xee,3,3,"button",36),c()()),2&t){const e=s.$implicit,n=p(3);a(1),d("ngIf",n.showMatchModes&&n.matchModes),a(1),d("type",n.type)("field",n.field)("filterConstraint",e)("filterTemplate",n.filterTemplate)("placeholder",n.placeholder)("minFractionDigits",n.minFractionDigits)("maxFractionDigits",n.maxFractionDigits)("prefix",n.prefix)("suffix",n.suffix)("locale",n.locale)("localeMatcher",n.localeMatcher)("currency",n.currency)("currencyDisplay",n.currencyDisplay)("useGrouping",n.useGrouping),a(2),d("ngIf",n.showRemoveIcon)}}function Mee(t,s){1&t&&D(0,"PlusIcon")}function kee(t,s){}function Eee(t,s){1&t&&m(0,kee,0,0,"ng-template")}function Lee(t,s){if(1&t){const e=E();l(0,"div",39)(1,"button",40),v("click",function(){return C(e),y(p(3).addConstraint())}),m(2,Mee,1,0,"PlusIcon",14),m(3,Eee,1,0,null,12),c()()}if(2&t){const e=p(3);a(1),d("label",e.addRuleButtonLabel),a(1),d("ngIf",!e.addRuleIconTemplate),a(1),d("ngTemplateOutlet",e.addRuleIconTemplate)}}function Ree(t,s){if(1&t){const e=E();l(0,"button",41),v("click",function(){return C(e),y(p(3).clearFilter())}),c()}2&t&&d("label",p(3).clearButtonLabel)}function Oee(t,s){if(1&t){const e=E();l(0,"button",42),v("click",function(){return C(e),y(p(3).applyFilter())}),c()}2&t&&d("label",p(3).applyButtonLabel)}function Aee(t,s){if(1&t&&(m(0,yee,2,2,"div",24),l(1,"div",25),m(2,Dee,5,16,"div",26),c(),m(3,Lee,4,3,"div",27),l(4,"div",28),m(5,Ree,1,1,"button",29),m(6,Oee,1,1,"button",30),c()),2&t){const e=p(2);d("ngIf",e.isShowOperator),a(2),d("ngForOf",e.fieldConstraints),a(1),d("ngIf",e.isShowAddConstraint),a(2),d("ngIf",e.showClearButton),a(1),d("ngIf",e.showApplyButton)}}function Pee(t,s){1&t&&Z(0)}const Fee=function(t){return{"p-column-filter-overlay p-component p-fluid":!0,"p-column-filter-overlay-menu":t}};function Nee(t,s){if(1&t){const e=E();l(0,"div",15),v("click",function(){return C(e),y(p().onContentClick())})("@overlayAnimation.start",function(i){return C(e),y(p().onOverlayAnimationStart(i))})("@overlayAnimation.done",function(i){return C(e),y(p().onOverlayAnimationEnd(i))})("keydown.escape",function(){return C(e),y(p().onEscape())}),m(1,_ee,1,0,"ng-container",16),m(2,Cee,5,2,"ul",17),m(3,Aee,7,5,"ng-template",null,18,ve),m(5,Pee,1,0,"ng-container",16),c()}if(2&t){const e=B(4),n=p();d("ngClass",W(8,Fee,"menu"===n.display))("@overlayAnimation","visible"),a(1),d("ngTemplateOutlet",n.headerTemplate)("ngTemplateOutletContext",W(10,vo,n.field)),a(1),d("ngIf","row"===n.display)("ngIfElse",e),a(3),d("ngTemplateOutlet",n.footerTemplate)("ngTemplateOutletContext",W(12,vo,n.field))}}const Vee=function(t,s){return{"p-column-filter-row":t,"p-column-filter-menu":s}};function Bee(t,s){1&t&&Z(0)}const Hee=function(t,s,e,n,i,o,r,u,h,b,T,w,k,L,O,A){return{$implicit:t,filterCallback:s,type:e,field:n,filterConstraint:i,placeholder:o,minFractionDigits:r,maxFractionDigits:u,prefix:h,suffix:b,locale:T,localeMatcher:w,currency:k,currencyDisplay:L,useGrouping:O,showButtons:A}};function Gee(t,s){if(1&t&&(Q(0),m(1,Bee,1,0,"ng-container",2),J()),2&t){const e=p();a(1),d("ngTemplateOutlet",e.filterTemplate)("ngTemplateOutletContext",rd(2,Hee,[e.filterConstraint.value,e.filterCallback,e.type,e.field,e.filterConstraint,e.placeholder,e.minFractionDigits,e.maxFractionDigits,e.prefix,e.suffix,e.locale,e.localeMatcher,e.currency,e.currencyDisplay,e.useGrouping,e.showButtons]))}}function qee(t,s){if(1&t){const e=E();l(0,"input",8),v("input",function(i){return C(e),y(p(2).onModelChange(i.target.value))})("keydown.enter",function(i){return C(e),y(p(2).onTextInputEnterKeyDown(i))}),c()}if(2&t){const e=p(2);d("value",null==e.filterConstraint?null:e.filterConstraint.value),F("placeholder",e.placeholder)}}function zee(t,s){if(1&t){const e=E();l(0,"p-inputNumber",9),v("ngModelChange",function(i){return C(e),y(p(2).onModelChange(i))})("onKeyDown",function(i){return C(e),y(p(2).onNumericInputKeyDown(i))}),c()}if(2&t){const e=p(2);d("ngModel",null==e.filterConstraint?null:e.filterConstraint.value)("showButtons",e.showButtons)("minFractionDigits",e.minFractionDigits)("maxFractionDigits",e.maxFractionDigits)("prefix",e.prefix)("suffix",e.suffix)("placeholder",e.placeholder)("mode",e.currency?"currency":"decimal")("locale",e.locale)("localeMatcher",e.localeMatcher)("currency",e.currency)("currencyDisplay",e.currencyDisplay)("useGrouping",e.useGrouping)}}function Uee(t,s){if(1&t){const e=E();l(0,"p-triStateCheckbox",10),v("ngModelChange",function(i){return C(e),y(p(2).onModelChange(i))}),c()}if(2&t){const e=p(2);d("ngModel",null==e.filterConstraint?null:e.filterConstraint.value)}}function jee(t,s){if(1&t){const e=E();l(0,"p-calendar",11),v("ngModelChange",function(i){return C(e),y(p(2).onModelChange(i))}),c()}if(2&t){const e=p(2);d("placeholder",e.placeholder)("ngModel",null==e.filterConstraint?null:e.filterConstraint.value)}}function $ee(t,s){1&t&&(Q(0,3),m(1,qee,1,2,"input",4),m(2,zee,1,13,"p-inputNumber",5),m(3,Uee,1,1,"p-triStateCheckbox",6),m(4,jee,1,2,"p-calendar",7),J()),2&t&&(d("ngSwitch",p().type),a(1),d("ngSwitchCase","text"),a(1),d("ngSwitchCase","numeric"),a(1),d("ngSwitchCase","boolean"),a(1),d("ngSwitchCase","date"))}let Bp=(()=>{class t{sortSource=new Qt;selectionSource=new Qt;contextMenuSource=new Qt;valueSource=new Qt;totalRecordsSource=new Qt;columnsSource=new Qt;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(n){return new(n||t)};static \u0275prov=re({token:t,factory:t.\u0275fac})}return t})(),yn=(()=>{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 q;contextMenuSelectionMode="separate";dataKey;metaKeySelection;rowSelectable;rowTrackBy=(e,n)=>n;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 q;selectionChange=new q;onRowSelect=new q;onRowUnselect=new q;onPage=new q;onSort=new q;onFilter=new q;onLazyLoad=new q;onRowExpand=new q;onRowCollapse=new q;onContextMenuSelect=new q;onColResize=new q;onColReorder=new q;onRowReorder=new q;onEditInit=new q;onEditComplete=new q;onEditCancel=new q;onHeaderCheckboxToggle=new q;sortFunction=new q;firstChange=new q;rowsChange=new q;onStateSave=new q;onStateRestore=new q;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=Ft();styleElement;responsiveStyleElement;window;constructor(e,n,i,o,r,u,h,b,T){this.document=e,this.platformId=n,this.renderer=i,this.el=o,this.zone=r,this.tableService=u,this.cd=h,this.filterService=b,this.overlayService=T,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 n=e||this.processedData;if(n&&this.paginator){const i=this.lazy?0:this.first;return n.slice(i,i+this.rows)}return n}updateSelectionKeys(){if(this.dataKey&&this._selection)if(this.selectionKeys={},Array.isArray(this._selection))for(let e of this._selection)this.selectionKeys[String(Y.resolveFieldData(e,this.dataKey))]=1;else this.selectionKeys[String(Y.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 n=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 i=n.metaKey||n.ctrlKey,o=this.getSortMeta(e.field);o?i?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())):((!i||!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,n=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&&n){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:n}):(this.value.sort((o,r)=>{let u=Y.resolveFieldData(o,e),h=Y.resolveFieldData(r,e),b=null;return b=null==u&&null!=h?-1:null!=u&&null==h?1:null==u&&null==h?0:"string"==typeof u&&"string"==typeof h?u.localeCompare(h):uh?1:0,n*b}),this._value=[...this.value]),this.hasFilter()&&this._filter());let i={field:e,order:n};this.onSort.emit(i),this.tableService.onSort(i)}}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,n)=>this.multisortField(e,n,this.multiSortMeta,0)),this._value=[...this.value]),this.hasFilter()&&this._filter()),this.onSort.emit({multisortmeta:this.multiSortMeta}),this.tableService.onSort(this.multiSortMeta))}multisortField(e,n,i,o){const r=Y.resolveFieldData(e,i[o].field),u=Y.resolveFieldData(n,i[o].field);return 0===Y.compare(r,u,this.filterLocale)?i.length-1>o?this.multisortField(e,n,i,o+1):0:this.compareValuesOnSort(r,u,i[o].order)}compareValuesOnSort(e,n,i){return Y.sort(e,n,i,this.filterLocale,this.sortOrder)}getSortMeta(e){if(this.multiSortMeta&&this.multiSortMeta.length)for(let n=0;nO!=k),this.selectionChange.emit(this.selection),T&&delete this.selectionKeys[T]}this.onRowUnselect.emit({originalEvent:e.originalEvent,data:r,type:"row"})}else this.isSingleSelectionMode()?(this._selection=r,this.selectionChange.emit(r),T&&(this.selectionKeys={},this.selectionKeys[T]=1)):this.isMultipleSelectionMode()&&(w?this._selection=this.selection||[]:(this._selection=[],this.selectionKeys={}),this._selection=[...this.selection,r],this.selectionChange.emit(this.selection),T&&(this.selectionKeys[T]=1)),this.onRowSelect.emit({originalEvent:e.originalEvent,data:r,type:"row",index:u})}else if("single"===this.selectionMode)h?(this._selection=null,this.selectionKeys={},this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,data:r,type:"row",index:u})):(this._selection=r,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,data:r,type:"row",index:u}),T&&(this.selectionKeys={},this.selectionKeys[T]=1));else if("multiple"===this.selectionMode)if(h){let w=this.findIndexInSelection(r);this._selection=this.selection.filter((k,L)=>L!=w),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,data:r,type:"row",index:u}),T&&delete this.selectionKeys[T]}else this._selection=this.selection?[...this.selection,r]:[r],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,data:r,type:"row",index:u}),T&&(this.selectionKeys[T]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}this.rowTouched=!1}}handleRowTouchEnd(e){this.rowTouched=!0}handleRowRightClick(e){if(this.contextMenu){const n=e.rowData,i=e.rowIndex;if("separate"===this.contextMenuSelectionMode)this.contextMenuSelection=n,this.contextMenuSelectionChange.emit(n),this.onContextMenuSelect.emit({originalEvent:e.originalEvent,data:n,index:e.rowIndex}),this.contextMenu.show(e.originalEvent),this.tableService.onContextMenu(n);else if("joint"===this.contextMenuSelectionMode){this.preventSelectionSetterPropagation=!0;let o=this.isSelected(n),r=this.dataKey?String(Y.resolveFieldData(n,this.dataKey)):null;if(!o){if(!this.isRowSelectable(n,i))return;this.isSingleSelectionMode()?(this.selection=n,this.selectionChange.emit(n),r&&(this.selectionKeys={},this.selectionKeys[r]=1)):this.isMultipleSelectionMode()&&(this._selection=this.selection?[...this.selection,n]:[n],this.selectionChange.emit(this.selection),r&&(this.selectionKeys[r]=1))}this.tableService.onSelectionChange(),this.contextMenu.show(e.originalEvent),this.onContextMenuSelect.emit({originalEvent:e,data:n,index:e.rowIndex})}}}selectRange(e,n){let i,o;this.anchorRowIndex>n?(i=n,o=this.anchorRowIndex):this.anchorRowIndexr?(n=this.anchorRowIndex,i=this.rangeRowIndex):ok!=b);let T=this.dataKey?String(Y.resolveFieldData(h,this.dataKey)):null;T&&delete this.selectionKeys[T],this.onRowUnselect.emit({originalEvent:e,data:h,type:"row"})}}isSelected(e){return!(!e||!this.selection)&&(this.dataKey?void 0!==this.selectionKeys[Y.resolveFieldData(e,this.dataKey)]:Array.isArray(this.selection)?this.findIndexInSelection(e)>-1:this.equals(e,this.selection))}findIndexInSelection(e){let n=-1;if(this.selection&&this.selection.length)for(let i=0;ih!=r),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:n,type:"checkbox"}),o&&delete this.selectionKeys[o]}else{if(!this.isRowSelectable(n,e.rowIndex))return;this._selection=this.selection?[...this.selection,n]:[n],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:n,type:"checkbox"}),o&&(this.selectionKeys[o]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowsWithCheckbox(e,n){if(null!==this._selectAll)this.selectAllChange.emit({originalEvent:e,checked:n});else{const i=this.selectionPageOnly?this.dataToRender(this.processedData):this.processedData;let o=this.selectionPageOnly&&this._selection?this._selection.filter(r=>!i.some(u=>this.equals(r,u))):[];n&&(o=this.frozenValue?[...o,...this.frozenValue,...i]:[...o,...i],o=this.rowSelectable?o.filter((r,u)=>this.rowSelectable({data:r,index:u})):o),this._selection=o,this.preventSelectionSetterPropagation=!0,this.updateSelectionKeys(),this.selectionChange.emit(this._selection),this.tableService.onSelectionChange(),this.onHeaderCheckboxToggle.emit({originalEvent:e,checked:n}),this.isStateful()&&this.saveState()}}equals(e,n){return"equals"===this.compareSelectionBy?e===n:Y.equals(e,n,this.dataKey)}filter(e,n,i){this.filterTimeout&&clearTimeout(this.filterTimeout),this.isFilterBlank(e)?this.filters[n]&&delete this.filters[n]:this.filters[n]={value:e,matchMode:i},this.filterTimeout=setTimeout(()=>{this._filter(),this.filterTimeout=null},this.filterDelay),this.anchorRowIndex=null}filterGlobal(e,n){this.filter(e,"global",n)}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 n=0;nthis.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 n of e)n.value=null;else e&&(e.value=null)}reset(){this.clear()}getExportHeader(e){return e[this.exportHeader]||e.header||e.field}exportCSV(e){let n,i="",o=this.columns;e&&e.selectionOnly?n=this.selection||[]:e&&e.allValues?n=this.value||[]:(n=this.filteredValue||this.value,this.frozenValue&&(n=n?[...this.frozenValue,...n]:this.frozenValue));for(let h=0;h{i+="\n";for(let T=0;T{this.editingCell&&!this.selfClick&&this.isEditingCellValid()&&(R.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 n=String(Y.resolveFieldData(e,this.dataKey));this.editingRowKeys[n]=!0}saveRowEdit(e,n){if(0===R.find(n,".ng-invalid.ng-dirty").length){let i=String(Y.resolveFieldData(e,this.dataKey));delete this.editingRowKeys[i]}}cancelRowEdit(e){let n=String(Y.resolveFieldData(e,this.dataKey));delete this.editingRowKeys[n]}toggleRow(e,n){if(!this.dataKey)throw new Error("dataKey must be defined to use row expansion");let i=String(Y.resolveFieldData(e,this.dataKey));null!=this.expandedRowKeys[i]?(delete this.expandedRowKeys[i],this.onRowCollapse.emit({originalEvent:n,data:e})):("single"===this.rowExpandMode&&(this.expandedRowKeys={}),this.expandedRowKeys[i]=!0,this.onRowExpand.emit({originalEvent:n,data:e})),n&&n.preventDefault(),this.isStateful()&&this.saveState()}isRowExpanded(e){return!0===this.expandedRowKeys[String(Y.resolveFieldData(e,this.dataKey))]}isRowEditing(e){return!0===this.editingRowKeys[String(Y.resolveFieldData(e,this.dataKey))]}isSingleSelectionMode(){return"single"===this.selectionMode}isMultipleSelectionMode(){return"multiple"===this.selectionMode}onColumnResizeBegin(e){let n=R.getOffset(this.containerViewChild?.nativeElement).left;this.resizeColumnElement=e.target.parentElement,this.columnResizing=!0,this.lastResizerHelperX=e.pageX-n+this.containerViewChild?.nativeElement.scrollLeft,this.onColumnResize(e),e.preventDefault()}onColumnResize(e){let n=R.getOffset(this.containerViewChild?.nativeElement).left;R.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-n+this.containerViewChild?.nativeElement.scrollLeft+"px",this.resizeHelperViewChild.nativeElement.style.display="block"}onColumnResizeEnd(){let e=this.resizeHelperViewChild?.nativeElement.offsetLeft-this.lastResizerHelperX,i=this.resizeColumnElement.offsetWidth+e;if(i>=(this.resizeColumnElement.style.minWidth.replace(/[^\d.]/g,"")||15)){if("fit"===this.columnResizeMode){let u=this.resizeColumnElement.nextElementSibling.offsetWidth-e;i>15&&u>15&&this.resizeTableCells(i,u)}else"expand"===this.columnResizeMode&&(this._initialColWidths=this._totalTableWidth(),this.setResizeTableWidth(this.tableViewChild?.nativeElement.offsetWidth+e+"px"),this.resizeTableCells(i,null));this.onColResize.emit({element:this.resizeColumnElement,delta:e}),this.isStateful()&&this.saveState()}this.resizeHelperViewChild.nativeElement.style.display="none",R.removeClass(this.containerViewChild?.nativeElement,"p-unselectable-text")}_totalTableWidth(){let e=[];const n=R.findSingle(this.containerViewChild.nativeElement,".p-datatable-thead");return R.find(n,"tr > th").forEach(o=>e.push(R.getOuterWidth(o))),e}resizeTableCells(e,n){let i=R.index(this.resizeColumnElement),o="expand"===this.columnResizeMode?this._initialColWidths:this._totalTableWidth();this.destroyStyleElement(),this.createStyleElement();let r="";o.forEach((u,h)=>{let b=h===i?e:n&&h===i+1?n:u;r+=`\n #${this.id}-table > .p-datatable-thead > tr > th:nth-child(${h+1}),\n #${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${h+1}),\n #${this.id}-table > .p-datatable-tfoot > tr > td:nth-child(${h+1}) {\n width: ${b}px !important; max-width: ${b}px !important;\n }\n `}),this.renderer.setProperty(this.styleElement,"innerHTML",r)}onColumnDragStart(e,n){this.reorderIconWidth=R.getHiddenElementOuterWidth(this.reorderIndicatorUpViewChild?.nativeElement),this.reorderIconHeight=R.getHiddenElementOuterHeight(this.reorderIndicatorDownViewChild?.nativeElement),this.draggedColumn=n,e.dataTransfer.setData("text","b")}onColumnDragEnter(e,n){if(this.reorderableColumns&&this.draggedColumn&&n){e.preventDefault();let i=R.getOffset(this.containerViewChild?.nativeElement),o=R.getOffset(n);if(this.draggedColumn!=n){R.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),R.indexWithinGroup(n,"preorderablecolumn");let h=o.left-i.left,T=o.left+n.offsetWidth/2;this.reorderIndicatorUpViewChild.nativeElement.style.top=o.top-i.top-(this.reorderIconHeight-1)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.top=o.top-i.top+n.offsetHeight+"px",e.pageX>T?(this.reorderIndicatorUpViewChild.nativeElement.style.left=h+n.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=h+n.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=1):(this.reorderIndicatorUpViewChild.nativeElement.style.left=h-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=h-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,n){if(e.preventDefault(),this.draggedColumn){let i=R.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),o=R.indexWithinGroup(n,"preorderablecolumn"),r=i!=o;r&&(o-i==1&&-1===this.dropPosition||i-o==1&&1===this.dropPosition)&&(r=!1),r&&oi&&-1===this.dropPosition&&(o-=1),r&&(Y.reorderArray(this.columns,i,o),this.onColReorder.emit({dragIndex:i,dropIndex:o,columns:this.columns}),this.isStateful()&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.saveState()})})),this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.display="none",this.draggedColumn.draggable=!1,this.draggedColumn=null,this.dropPosition=null}}onRowDragStart(e,n){this.rowDragging=!0,this.draggedRowIndex=n,e.dataTransfer.setData("text","b")}onRowDragOver(e,n,i){if(this.rowDragging&&this.draggedRowIndex!==n){let o=R.getOffset(i).top,r=e.pageY,u=o+R.getOuterHeight(i)/2,h=i.previousElementSibling;rthis.droppedRowIndex?this.droppedRowIndex:0===this.droppedRowIndex?0:this.droppedRowIndex-1;Y.reorderArray(this.value,this.draggedRowIndex,i),this.virtualScroll&&(this._value=[...this._value]),this.onRowReorder.emit({dragIndex:this.draggedRowIndex,dropIndex:i})}this.onRowDragLeave(e,n),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(!vn(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 n={};this.paginator&&(n.first=this.first,n.rows=this.rows),this.sortField&&(n.sortField=this.sortField,n.sortOrder=this.sortOrder),this.multiSortMeta&&(n.multiSortMeta=this.multiSortMeta),this.hasFilter()&&(n.filters=this.filters),this.resizableColumns&&this.saveColumnWidths(n),this.reorderableColumns&&this.saveColumnOrder(n),this.selection&&(n.selection=this.selection),Object.keys(this.expandedRowKeys).length&&(n.expandedRowKeys=this.expandedRowKeys),e.setItem(this.stateKey,JSON.stringify(n)),this.onStateSave.emit(n)}clearState(){const e=this.getStorage();this.stateKey&&e.removeItem(this.stateKey)}restoreState(){const n=this.getStorage().getItem(this.stateKey),i=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/;if(n){let r=JSON.parse(n,function(r,u){return"string"==typeof u&&i.test(u)?new Date(u):u});this.paginator&&(void 0!==this.first&&(this.first=r.first,this.firstChange.emit(this.first)),void 0!==this.rows&&(this.rows=r.rows,this.rowsChange.emit(this.rows))),r.sortField&&(this.restoringSort=!0,this._sortField=r.sortField,this._sortOrder=r.sortOrder),r.multiSortMeta&&(this.restoringSort=!0,this._multiSortMeta=r.multiSortMeta),r.filters&&(this.restoringFilter=!0,this.filters=r.filters),this.resizableColumns&&(this.columnWidthsState=r.columnWidths,this.tableWidthState=r.tableWidth),r.expandedRowKeys&&(this.expandedRowKeys=r.expandedRowKeys),r.selection&&Promise.resolve(null).then(()=>this.selectionChange.emit(r.selection)),this.stateRestored=!0,this.onStateRestore.emit(r)}}saveColumnWidths(e){let n=[];R.find(this.containerViewChild?.nativeElement,".p-datatable-thead > tr > th").forEach(o=>n.push(R.getOuterWidth(o))),e.columnWidths=n.join(","),"expand"===this.columnResizeMode&&(e.tableWidth=R.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"),Y.isNotEmpty(e)){this.createStyleElement();let n="";e.forEach((i,o)=>{n+=`\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: ${i}px !important; max-width: ${i}px !important\n }\n `}),this.styleElement.innerHTML=n}}}saveColumnOrder(e){if(this.columns){let n=[];this.columns.map(i=>{n.push(i.field||i.key)}),e.columnOrder=n}}restoreColumnOrder(){const n=this.getStorage().getItem(this.stateKey);if(n){let o=JSON.parse(n).columnOrder;if(o){let r=[];o.map(u=>{let h=this.findColumnByKey(u);h&&r.push(h)}),this.columnOrderStateRestored=!0,this.columns=r}}}findColumnByKey(e){if(!this.columns)return null;for(let n of this.columns)if(n.key===e||n.field===e)return n}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(){vn(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(n){return new(n||t)(M(ct),M(gn),M(Vt),M(Pe),M(je),M(Bp),M(rt),M(ec),M(po))};static \u0275cmp=U({type:t,selectors:[["p-table"]],contentQueries:function(n,i,o){if(1&n&&Ye(o,ae,4),2&n){let r;H(r=G())&&(i.templates=r)}},viewQuery:function(n,i){if(1&n&&(K(jZ,5),K($Z,5),K(WZ,5),K(KZ,5),K(QZ,5),K(JZ,5),K(ZZ,5),K(YZ,5),K(XZ,5)),2&n){let o;H(o=G())&&(i.containerViewChild=o.first),H(o=G())&&(i.resizeHelperViewChild=o.first),H(o=G())&&(i.reorderIndicatorUpViewChild=o.first),H(o=G())&&(i.reorderIndicatorDownViewChild=o.first),H(o=G())&&(i.wrapperViewChild=o.first),H(o=G())&&(i.tableViewChild=o.first),H(o=G())&&(i.tableHeaderViewChild=o.first),H(o=G())&&(i.tableFooterViewChild=o.first),H(o=G())&&(i.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:[Qe([Bp]),wn],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(n,i){1&n&&(l(0,"div",0,1),m(2,rY,3,2,"div",2),m(3,lY,2,1,"div",3),m(4,yY,5,23,"p-paginator",4),l(5,"div",5,6),m(7,SY,3,17,"p-scroller",7),m(8,MY,2,7,"ng-container",8),m(9,FY,10,28,"ng-template",null,9,ve),c(),m(11,QY,5,23,"p-paginator",10),m(12,ZY,2,1,"div",11),m(13,YY,2,0,"div",12),m(14,nX,4,2,"span",13),m(15,rX,4,2,"span",14),c()),2&n&&(se(i.styleClass),d("ngStyle",i.style)("ngClass",Bt(16,aX,i.rowHover||i.selectionMode,i.scrollable,i.scrollable&&"flex"===i.scrollHeight)),F("id",i.id),a(2),d("ngIf",i.loading&&i.showLoader),a(1),d("ngIf",i.captionTemplate),a(1),d("ngIf",i.paginator&&("top"===i.paginatorPosition||"both"==i.paginatorPosition)),a(1),d("ngStyle",W(20,lX,i.virtualScroll?"":i.scrollHeight)),a(2),d("ngIf",i.virtualScroll),a(1),d("ngIf",!i.virtualScroll),a(3),d("ngIf",i.paginator&&("bottom"===i.paginatorPosition||"both"==i.paginatorPosition)),a(1),d("ngIf",i.summaryTemplate),a(1),d("ngIf",i.resizableColumns),a(1),d("ngIf",i.reorderableColumns),a(1),d("ngIf",i.reorderableColumns))},dependencies:function(){return[Fe,ne,dt,nt,ZI,ae,L_,px,hx,mo,Wee]},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})(),Wee=(()=>{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,n,i,o){this.dt=e,this.tableService=n,this.cd=i,this.el=o,this.subscription=this.dt.tableService.valueSource$.subscribe(()=>{this.dt.virtualScroll&&this.cd.detectChanges()})}shouldRenderRowGroupHeader(e,n,i){let o=Y.resolveFieldData(n,this.dt.groupRowsBy),r=e[i-1];return!r||o!==Y.resolveFieldData(r,this.dt.groupRowsBy)}shouldRenderRowGroupFooter(e,n,i){let o=Y.resolveFieldData(n,this.dt.groupRowsBy),r=e[i+1];return!r||o!==Y.resolveFieldData(r,this.dt.groupRowsBy)}shouldRenderRowspan(e,n,i){let o=Y.resolveFieldData(n,this.dt.groupRowsBy),r=e[i-1];return!r||o!==Y.resolveFieldData(r,this.dt.groupRowsBy)}calculateRowGroupSize(e,n,i){let o=Y.resolveFieldData(n,this.dt.groupRowsBy),r=o,u=0;for(;o===r;){u++;let h=e[++i];if(!h)break;r=Y.resolveFieldData(h,this.dt.groupRowsBy)}return 1===u?null:u}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}updateFrozenRowStickyPosition(){this.el.nativeElement.style.top=R.getOuterHeight(this.el.nativeElement.previousElementSibling)+"px"}updateFrozenRowGroupHeaderStickyPosition(){if(this.el.nativeElement.previousElementSibling){let e=R.getOuterHeight(this.el.nativeElement.previousElementSibling);this.dt.rowGroupHeaderStyleObject.top=e+"px"}}getScrollerOption(e,n){return this.dt.virtualScroll&&(n=n||this.scrollerOptions)?n[e]:null}getRowIndex(e){const n=this.dt.paginator?this.dt.first+e:e,i=this.getScrollerOption("getItemOptions");return i?i(n).index:n}static \u0275fac=function(n){return new(n||t)(M(yn),M(Bp),M(rt),M(Pe))};static \u0275cmp=U({type:t,selectors:[["","pTableBody",""]],hostAttrs:[1,"p-element"],inputs:{columns:["pTableBody","columns"],template:["pTableBodyTemplate","template"],value:"value",frozen:"frozen",frozenRows:"frozenRows",scrollerOptions:"scrollerOptions"},attrs:cX,decls:5,vars:5,consts:[[4,"ngIf"],["ngFor","",3,"ngForOf","ngForTrackBy"],["role","row",4,"ngIf"],["role","row"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,i){1&n&&(m(0,CX,2,2,"ng-container",0),m(1,EX,2,2,"ng-container",0),m(2,PX,2,2,"ng-container",0),m(3,NX,2,5,"ng-container",0),m(4,BX,2,5,"ng-container",0)),2&n&&(d("ngIf",!i.dt.expandedRowTemplate),a(1),d("ngIf",i.dt.expandedRowTemplate&&!(i.frozen&&i.dt.frozenExpandedRowTemplate)),a(1),d("ngIf",i.dt.frozenExpandedRowTemplate&&i.frozen),a(1),d("ngIf",i.dt.loading),a(1),d("ngIf",i.dt.isEmpty()&&!i.dt.loading))},dependencies:[ut,ne,dt],encapsulation:2})}return t})(),Kee=(()=>{class t{dt;constructor(e){this.dt=e}get getFrozenRowGroupHeaderStickyPosition(){return this.dt.rowGroupHeaderStyleObject?this.dt.rowGroupHeaderStyleObject.top:""}static \u0275fac=function(n){return new(n||t)(M(yn))};static \u0275dir=fe({type:t,selectors:[["","pRowGroupHeader",""]],hostAttrs:[1,"p-rowgroup-header","p-element"],hostVars:2,hostBindings:function(n,i){2&n&&qi("top",i.getFrozenRowGroupHeaderStickyPosition)}})}return t})(),Sa=(()=>{class t{dt;field;pSortableColumnDisabled;sorted;sortOrder;subscription;constructor(e){this.dt=e,this.isEnabled()&&(this.subscription=this.dt.tableService.sortSource$.subscribe(n=>{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}),R.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 R.hasClass(e,"pi-filter-icon")||R.hasClass(e,"p-column-filter-menu-button")}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)(M(yn))};static \u0275dir=fe({type:t,selectors:[["","pSortableColumn",""]],hostAttrs:[1,"p-element"],hostVars:7,hostBindings:function(n,i){1&n&&v("click",function(r){return i.onClick(r)})("keydown.enter",function(r){return i.onEnterKey(r)}),2&n&&(F("tabindex",i.isEnabled()?"0":null)("role","columnheader")("aria-sort",i.sortOrder),Jn("p-sortable-column",i.isEnabled())("p-highlight",i.sorted))},inputs:{field:["pSortableColumn","field"],pSortableColumnDisabled:"pSortableColumnDisabled"}})}return t})(),xa=(()=>{class t{dt;cd;field;subscription;sortOrder;constructor(e,n){this.dt=e,this.cd=n,this.subscription=this.dt.tableService.sortSource$.subscribe(i=>{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,n=-1;if(e&&"multiple"===this.dt.sortMode&&(this.dt.showInitialSortBadge||e.length>1))for(let i=0;i-1?e:e+1}isMultiSorted(){return"multiple"===this.dt.sortMode&&this.getMultiSortMetaIndex()>-1}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)(M(yn),M(rt))};static \u0275cmp=U({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(n,i){1&n&&(m(0,zX,4,3,"ng-container",0),m(1,$X,2,4,"span",1),m(2,WX,2,1,"span",2)),2&n&&(d("ngIf",!i.dt.sortIconTemplate),a(1),d("ngIf",i.dt.sortIconTemplate),a(1),d("ngIf",i.isMultiSorted()))},dependencies:function(){return[ne,dt,fx,_x,gx]},encapsulation:2,changeDetection:0})}return t})(),Tx=(()=>{class t{dt;tableService;data;index;pSelectableRowDisabled;selected;subscription;constructor(e,n){this.dt=e,this.tableService=n,this.isEnabled()&&(this.subscription=this.dt.tableService.selectionSource$.subscribe(()=>{this.selected=this.dt.isSelected(this.data)}))}ngOnInit(){this.isEnabled()&&(this.selected=this.dt.isSelected(this.data))}onClick(e){this.isEnabled()&&this.dt.handleRowClick({originalEvent:e,rowData:this.data,rowIndex:this.index})}onTouchEnd(e){this.isEnabled()&&this.dt.handleRowTouchEnd(e)}onArrowDownKeyDown(e){if(!this.isEnabled())return;const i=this.findNextSelectableRow(e.currentTarget);i&&i.focus(),e.preventDefault()}onArrowUpKeyDown(e){if(!this.isEnabled())return;const i=this.findPrevSelectableRow(e.currentTarget);i&&i.focus(),e.preventDefault()}onEnterKeyDown(e){this.isEnabled()&&this.dt.handleRowClick({originalEvent:e,rowData:this.data,rowIndex:this.index})}onPageDownKeyDown(){this.dt.virtualScroll&&this.dt.scroller.elementViewChild.nativeElement.focus()}onSpaceKeydown(){this.dt.virtualScroll&&!this.dt.editingCell&&this.dt.scroller.elementViewChild.nativeElement.focus()}findNextSelectableRow(e){let n=e.nextElementSibling;return n?R.hasClass(n,"p-selectable-row")?n:this.findNextSelectableRow(n):null}findPrevSelectableRow(e){let n=e.previousElementSibling;return n?R.hasClass(n,"p-selectable-row")?n:this.findPrevSelectableRow(n):null}isEnabled(){return!0!==this.pSelectableRowDisabled}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)(M(yn),M(Bp))};static \u0275dir=fe({type:t,selectors:[["","pSelectableRow",""]],hostAttrs:[1,"p-element"],hostVars:5,hostBindings:function(n,i){1&n&&v("click",function(r){return i.onClick(r)})("touchend",function(r){return i.onTouchEnd(r)})("keydown.arrowdown",function(r){return i.onArrowDownKeyDown(r)})("keydown.arrowup",function(r){return i.onArrowUpKeyDown(r)})("keydown.enter",function(r){return i.onEnterKeyDown(r)})("keydown.shift.enter",function(r){return i.onEnterKeyDown(r)})("keydown.meta.enter",function(r){return i.onEnterKeyDown(r)})("keydown.pagedown",function(){return i.onPageDownKeyDown()})("keydown.pageup",function(){return i.onPageDownKeyDown()})("keydown.home",function(){return i.onPageDownKeyDown()})("keydown.end",function(){return i.onPageDownKeyDown()})("keydown.space",function(){return i.onSpaceKeydown()}),2&n&&(F("tabindex",i.isEnabled()?0:void 0),Jn("p-selectable-row",i.isEnabled())("p-highlight",i.selected))},inputs:{data:["pSelectableRow","data"],index:["pSelectableRowIndex","index"],pSelectableRowDisabled:"pSelectableRowDisabled"}})}return t})(),wx=(()=>{class t{dt;el;zone;data;field;rowIndex;pEditableColumnDisabled;pFocusCellSelector;overlayEventListener;constructor(e,n,i){this.dt=e,this.el=n,this.zone=i}ngAfterViewInit(){this.isEnabled()&&R.addClass(this.el.nativeElement,"p-editable-column")}onClick(e){if(this.isEnabled())if(this.dt.selfClick=!0,this.dt.editingCell){if(this.dt.editingCell!==this.el.nativeElement){if(!this.dt.isEditingCellValid())return;this.closeEditingCell(!0,e),this.openCell()}}else this.openCell()}openCell(){this.dt.updateEditingCell(this.el.nativeElement,this.data,this.field,this.rowIndex),R.addClass(this.el.nativeElement,"p-cell-editing"),this.dt.onEditInit.emit({field:this.field,data:this.data,index:this.rowIndex}),this.zone.runOutsideAngular(()=>{setTimeout(()=>{let n=R.findSingle(this.el.nativeElement,this.pFocusCellSelector||"input, textarea, select");n&&n.focus()},50)}),this.overlayEventListener=e=>{this.el&&this.el.nativeElement.contains(e.target)&&(this.dt.selfClick=!0)},this.dt.overlaySubscription=this.dt.overlayService.clickObservable.subscribe(this.overlayEventListener)}closeEditingCell(e,n){const i={field:this.dt.editingCellField,data:this.dt.editingCellData,originalEvent:n,index:this.dt.editingCellRowIndex};e?this.dt.onEditComplete.emit(i):(this.dt.onEditCancel.emit(i),this.dt.value.forEach(o=>{o[this.dt.editingCellField]===this.data&&(o[this.dt.editingCellField]=this.dt.editingCellData)})),R.removeClass(this.dt.editingCell,"p-cell-editing"),this.dt.editingCell=null,this.dt.editingCellData=null,this.dt.editingCellField=null,this.dt.unbindDocumentEditListener(),this.dt.overlaySubscription&&this.dt.overlaySubscription.unsubscribe()}onEnterKeyDown(e){this.isEnabled()&&!e.shiftKey&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!0,e),e.preventDefault())}onTabKeyDown(e){this.isEnabled()&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!0,e),e.preventDefault())}onEscapeKeyDown(e){this.isEnabled()&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!1,e),e.preventDefault())}onShiftKeyDown(e){this.isEnabled()&&(e.shiftKey?this.moveToPreviousCell(e):this.moveToNextCell(e))}onArrowDown(e){if(this.isEnabled()){let n=this.findCell(e.target);if(n){let i=R.index(n),o=this.findNextEditableColumnByIndex(n,i);o&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!0,e),R.invokeElementMethod(e.target,"blur"),R.invokeElementMethod(o,"click")),e.preventDefault()}}}onArrowUp(e){if(this.isEnabled()){let n=this.findCell(e.target);if(n){let i=R.index(n),o=this.findPrevEditableColumnByIndex(n,i);o&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!0,e),R.invokeElementMethod(e.target,"blur"),R.invokeElementMethod(o,"click")),e.preventDefault()}}}onArrowLeft(e){this.isEnabled()&&this.moveToPreviousCell(e)}onArrowRight(e){this.isEnabled()&&this.moveToNextCell(e)}findCell(e){if(e){let n=e;for(;n&&!R.hasClass(n,"p-cell-editing");)n=n.parentElement;return n}return null}moveToPreviousCell(e){let n=this.findCell(e.target);if(n){let i=this.findPreviousEditableColumn(n);i&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!0,e),R.invokeElementMethod(e.target,"blur"),R.invokeElementMethod(i,"click"),e.preventDefault())}}moveToNextCell(e){let n=this.findCell(e.target);if(n){let i=this.findNextEditableColumn(n);i&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!0,e),R.invokeElementMethod(e.target,"blur"),R.invokeElementMethod(i,"click"),e.preventDefault())}}findPreviousEditableColumn(e){let n=e.previousElementSibling;if(!n){let i=e.parentElement?.previousElementSibling;i&&(n=i.lastElementChild)}return n?R.hasClass(n,"p-editable-column")?n:this.findPreviousEditableColumn(n):null}findNextEditableColumn(e){let n=e.nextElementSibling;if(!n){let i=e.parentElement?.nextElementSibling;i&&(n=i.firstElementChild)}return n?R.hasClass(n,"p-editable-column")?n:this.findNextEditableColumn(n):null}findNextEditableColumnByIndex(e,n){let i=e.parentElement?.nextElementSibling;if(i){let o=i.children[n];return o&&R.hasClass(o,"p-editable-column")?o:null}return null}findPrevEditableColumnByIndex(e,n){let i=e.parentElement?.previousElementSibling;if(i){let o=i.children[n];return o&&R.hasClass(o,"p-editable-column")?o:null}return null}isEnabled(){return!0!==this.pEditableColumnDisabled}ngOnDestroy(){this.dt.overlaySubscription&&this.dt.overlaySubscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)(M(yn),M(Pe),M(je))};static \u0275dir=fe({type:t,selectors:[["","pEditableColumn",""]],hostAttrs:[1,"p-element"],hostBindings:function(n,i){1&n&&v("click",function(r){return i.onClick(r)})("keydown.enter",function(r){return i.onEnterKeyDown(r)})("keydown.tab",function(r){return i.onShiftKeyDown(r)})("keydown.escape",function(r){return i.onEscapeKeyDown(r)})("keydown.shift.tab",function(r){return i.onShiftKeyDown(r)})("keydown.meta.tab",function(r){return i.onShiftKeyDown(r)})("keydown.arrowdown",function(r){return i.onArrowDown(r)})("keydown.arrowup",function(r){return i.onArrowUp(r)})("keydown.arrowleft",function(r){return i.onArrowLeft(r)})("keydown.arrowright",function(r){return i.onArrowRight(r)})},inputs:{data:["pEditableColumn","data"],field:["pEditableColumnField","field"],rowIndex:["pEditableColumnRowIndex","rowIndex"],pEditableColumnDisabled:"pEditableColumnDisabled",pFocusCellSelector:"pFocusCellSelector"}})}return t})(),Qee=(()=>{class t{el;data;pEditableRowDisabled;constructor(e){this.el=e}isEnabled(){return!0!==this.pEditableRowDisabled}static \u0275fac=function(n){return new(n||t)(M(Pe))};static \u0275dir=fe({type:t,selectors:[["","pEditableRow",""]],hostAttrs:[1,"p-element"],inputs:{data:["pEditableRow","data"],pEditableRowDisabled:"pEditableRowDisabled"}})}return t})(),Jee=(()=>{class t{dt;editableColumn;editableRow;templates;inputTemplate;outputTemplate;constructor(e,n,i){this.dt=e,this.editableColumn=n,this.editableRow=i}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"input":this.inputTemplate=e.template;break;case"output":this.outputTemplate=e.template}})}get editing(){return this.dt.editingCell&&this.editableColumn&&this.dt.editingCell===this.editableColumn.el.nativeElement||this.editableRow&&"row"===this.dt.editMode&&this.dt.isRowEditing(this.editableRow.data)}static \u0275fac=function(n){return new(n||t)(M(yn),M(wx,8),M(Qee,8))};static \u0275cmp=U({type:t,selectors:[["p-cellEditor"]],contentQueries:function(n,i,o){if(1&n&&Ye(o,ae,4),2&n){let r;H(r=G())&&(i.templates=r)}},hostAttrs:[1,"p-element"],decls:2,vars:2,consts:[[4,"ngIf"],[4,"ngTemplateOutlet"]],template:function(n,i){1&n&&(m(0,QX,2,1,"ng-container",0),m(1,ZX,2,1,"ng-container",0)),2&n&&(d("ngIf",i.editing),a(1),d("ngIf",!i.editing))},dependencies:[ne,dt],encapsulation:2})}return t})(),Ix=(()=>{class t{document;el;dt;renderer;config;overlayService;cd;field;type="text";display="row";showMenu=!0;matchMode;operator=Xl.AND;showOperator=!0;showClearButton=!0;showApplyButton=!0;showMatchModes=!0;showAddButton=!0;hideOnClear=!1;placeholder;matchModeOptions;maxConstraints=2;minFractionDigits;maxFractionDigits;prefix;suffix;locale;localeMatcher;currency;currencyDisplay;useGrouping=!0;showButtons=!0;icon;templates;overlaySubscription;headerTemplate;filterTemplate;footerTemplate;filterIconTemplate;removeRuleIconTemplate;addRuleIconTemplate;operatorOptions;overlayVisible;overlay;scrollHandler;documentClickListener;documentResizeListener;matchModes;translationSubscription;resetSubscription;selfClick;overlayEventListener;window;constructor(e,n,i,o,r,u,h){this.document=e,this.el=n,this.dt=i,this.renderer=o,this.config=r,this.overlayService=u,this.cd=h,this.window=this.document.defaultView}ngOnInit(){this.dt.filters[this.field]||this.initFieldFilterConstraint(),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.generateMatchModeOptions(),this.generateOperatorOptions()}),this.generateMatchModeOptions(),this.generateOperatorOptions()}generateMatchModeOptions(){this.matchModes=this.matchModeOptions||this.config.filterMatchModeOptions[this.type]?.map(e=>({label:this.config.getTranslation(e),value:e}))}generateOperatorOptions(){this.operatorOptions=[{label:this.config.getTranslation(jt.MATCH_ALL),value:Xl.AND},{label:this.config.getTranslation(jt.MATCH_ANY),value:Xl.OR}]}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"filter":default:this.filterTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"filtericon":this.filterIconTemplate=e.template;break;case"removeruleicon":this.removeRuleIconTemplate=e.template;break;case"addruleicon":this.addRuleIconTemplate=e.template}})}initFieldFilterConstraint(){let e=this.getDefaultMatchMode();this.dt.filters[this.field]="row"==this.display?{value:null,matchMode:e}:[{value:null,matchMode:e,operator:this.operator}]}onMenuMatchModeChange(e,n){n.matchMode=e,this.showApplyButton||this.dt._filter()}onRowMatchModeChange(e){this.dt.filters[this.field].matchMode=e,this.dt._filter(),this.hide()}onRowMatchModeKeyDown(e){let n=e.target;switch(e.key){case"ArrowDown":var i=this.findNextItem(n);i&&(n.removeAttribute("tabindex"),i.tabIndex="0",i.focus()),e.preventDefault();break;case"ArrowUp":var o=this.findPrevItem(n);o&&(n.removeAttribute("tabindex"),o.tabIndex="0",o.focus()),e.preventDefault()}}onRowClearItemClick(){this.clearFilter(),this.hide()}isRowMatchModeSelected(e){return this.dt.filters[this.field].matchMode===e}addConstraint(){this.dt.filters[this.field].push({value:null,matchMode:this.getDefaultMatchMode(),operator:this.getDefaultOperator()})}removeConstraint(e){this.dt.filters[this.field]=this.dt.filters[this.field].filter(n=>n!==e),this.dt._filter()}onOperatorChange(e){this.dt.filters[this.field].forEach(n=>{n.operator=e,this.operator=e}),this.showApplyButton||this.dt._filter()}toggleMenu(){this.overlayVisible=!this.overlayVisible}onToggleButtonKeyDown(e){switch(e.key){case"Escape":case"Tab":this.overlayVisible=!1;break;case"ArrowDown":if(this.overlayVisible){let n=R.getFocusableElements(this.overlay);n&&n[0].focus(),e.preventDefault()}else e.altKey&&(this.overlayVisible=!0,e.preventDefault())}}onEscape(){this.overlayVisible=!1,this.icon?.nativeElement.focus()}findNextItem(e){let n=e.nextElementSibling;return n?R.hasClass(n,"p-column-filter-separator")?this.findNextItem(n):n:e.parentElement?.firstElementChild}findPrevItem(e){let n=e.previousElementSibling;return n?R.hasClass(n,"p-column-filter-separator")?this.findPrevItem(n):n:e.parentElement?.lastElementChild}onContentClick(){this.selfClick=!0}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.overlay=e.element,this.renderer.appendChild(this.document.body,this.overlay),Et.set("overlay",this.overlay,this.config.zIndex.overlay),R.absolutePosition(this.overlay,this.icon?.nativeElement),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.overlayEventListener=n=>{this.overlay&&this.overlay.contains(n.target)&&(this.selfClick=!0)},this.overlaySubscription=this.overlayService.clickObservable.subscribe(this.overlayEventListener);break;case"void":this.onOverlayHide(),this.overlaySubscription&&this.overlaySubscription.unsubscribe()}}onOverlayAnimationEnd(e){"void"===e.toState&&Et.clear(e.element)}getDefaultMatchMode(){return this.matchMode?this.matchMode:"text"===this.type?Ht.STARTS_WITH:"numeric"===this.type?Ht.EQUALS:"date"===this.type?Ht.DATE_IS:Ht.CONTAINS}getDefaultOperator(){return this.dt.filters?this.dt.filters[this.field][0].operator:this.operator}hasRowFilter(){return this.dt.filters[this.field]&&!this.dt.isFilterBlank(this.dt.filters[this.field].value)}get fieldConstraints(){return this.dt.filters?this.dt.filters[this.field]:null}get showRemoveIcon(){return!!this.fieldConstraints&&this.fieldConstraints.length>1}get showMenuButton(){return this.showMenu&&("row"!==this.display||"boolean"!==this.type)}get isShowOperator(){return this.showOperator&&"boolean"!==this.type}get isShowAddConstraint(){return this.showAddButton&&"boolean"!==this.type&&this.fieldConstraints&&this.fieldConstraints.length{this.overlayVisible&&!this.selfClick&&this.isOutsideClicked(n)&&this.hide(),this.selfClick=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null,this.selfClick=!1)}bindDocumentResizeListener(){this.documentResizeListener||(this.documentResizeListener=this.renderer.listen(this.window,"resize",e=>{this.overlayVisible&&!R.isTouchDevice()&&this.hide()}))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Jo(this.icon?.nativeElement,()=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}hide(){this.overlayVisible=!1,this.cd.markForCheck()}onOverlayHide(){this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null}clearFilter(){this.initFieldFilterConstraint(),this.dt._filter(),this.hideOnClear&&this.hide()}applyFilter(){this.dt._filter(),this.hide()}ngOnDestroy(){this.overlay&&(this.renderer.appendChild(this.el.nativeElement,this.overlay),Et.clear(this.overlay),this.onOverlayHide()),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.resetSubscription&&this.resetSubscription.unsubscribe(),this.overlaySubscription&&this.overlaySubscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)(M(ct),M(Pe),M(yn),M(Vt),M(Hn),M(po),M(rt))};static \u0275cmp=U({type:t,selectors:[["p-columnFilter"]],contentQueries:function(n,i,o){if(1&n&&Ye(o,ae,4),2&n){let r;H(r=G())&&(i.templates=r)}},viewQuery:function(n,i){if(1&n&&K(see,5),2&n){let o;H(o=G())&&(i.icon=o.first)}},hostAttrs:[1,"p-element"],inputs:{field:"field",type:"type",display:"display",showMenu:"showMenu",matchMode:"matchMode",operator:"operator",showOperator:"showOperator",showClearButton:"showClearButton",showApplyButton:"showApplyButton",showMatchModes:"showMatchModes",showAddButton:"showAddButton",hideOnClear:"hideOnClear",placeholder:"placeholder",matchModeOptions:"matchModeOptions",maxConstraints:"maxConstraints",minFractionDigits:"minFractionDigits",maxFractionDigits:"maxFractionDigits",prefix:"prefix",suffix:"suffix",locale:"locale",localeMatcher:"localeMatcher",currency:"currency",currencyDisplay:"currencyDisplay",useGrouping:"useGrouping",showButtons:"showButtons"},decls:5,vars:8,consts:[[1,"p-column-filter",3,"ngClass"],["class","p-fluid",3,"type","field","filterConstraint","filterTemplate","placeholder","minFractionDigits","maxFractionDigits","prefix","suffix","locale","localeMatcher","currency","currencyDisplay","useGrouping","showButtons",4,"ngIf"],["type","button","class","p-column-filter-menu-button p-link","aria-haspopup","true",3,"ngClass","click","keydown",4,"ngIf"],["type","button","class","p-column-filter-clear-button p-link",3,"ngClass","click",4,"ngIf"],[3,"ngClass","click","keydown.escape",4,"ngIf"],[1,"p-fluid",3,"type","field","filterConstraint","filterTemplate","placeholder","minFractionDigits","maxFractionDigits","prefix","suffix","locale","localeMatcher","currency","currencyDisplay","useGrouping","showButtons"],["type","button","aria-haspopup","true",1,"p-column-filter-menu-button","p-link",3,"ngClass","click","keydown"],["icon",""],[3,"styleClass",4,"ngIf"],["class","pi-filter-icon",4,"ngIf"],[3,"styleClass"],[1,"pi-filter-icon"],[4,"ngTemplateOutlet"],["type","button",1,"p-column-filter-clear-button","p-link",3,"ngClass","click"],[4,"ngIf"],[3,"ngClass","click","keydown.escape"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-column-filter-row-items",4,"ngIf","ngIfElse"],["menu",""],[1,"p-column-filter-row-items"],["class","p-column-filter-row-item",3,"ngClass","click","keydown","keydown.enter",4,"ngFor","ngForOf"],[1,"p-column-filter-separator"],[1,"p-column-filter-row-item",3,"click","keydown","keydown.enter"],[1,"p-column-filter-row-item",3,"ngClass","click","keydown","keydown.enter"],["class","p-column-filter-operator",4,"ngIf"],[1,"p-column-filter-constraints"],["class","p-column-filter-constraint",4,"ngFor","ngForOf"],["class","p-column-filter-add-rule",4,"ngIf"],[1,"p-column-filter-buttonbar"],["type","button","pButton","","class","p-button-outlined p-button-sm","pRipple","",3,"label","click",4,"ngIf"],["type","button","pButton","","class","p-button-sm","pRipple","",3,"label","click",4,"ngIf"],[1,"p-column-filter-operator"],["styleClass","p-column-filter-operator-dropdown",3,"options","ngModel","ngModelChange"],[1,"p-column-filter-constraint"],["styleClass","p-column-filter-matchmode-dropdown",3,"options","ngModel","ngModelChange",4,"ngIf"],[3,"type","field","filterConstraint","filterTemplate","placeholder","minFractionDigits","maxFractionDigits","prefix","suffix","locale","localeMatcher","currency","currencyDisplay","useGrouping"],["type","button","pButton","","class","p-column-filter-remove-button p-button-text p-button-danger p-button-sm","pRipple","",3,"label","click",4,"ngIf"],["styleClass","p-column-filter-matchmode-dropdown",3,"options","ngModel","ngModelChange"],["type","button","pButton","","pRipple","",1,"p-column-filter-remove-button","p-button-text","p-button-danger","p-button-sm",3,"label","click"],[1,"p-column-filter-add-rule"],["type","button","pButton","","pRipple","",1,"p-column-filter-add-button","p-button-text","p-button-sm",3,"label","click"],["type","button","pButton","","pRipple","",1,"p-button-outlined","p-button-sm",3,"label","click"],["type","button","pButton","","pRipple","",1,"p-button-sm",3,"label","click"]],template:function(n,i){1&n&&(l(0,"div",0),m(1,oee,1,15,"p-columnFilterFormElement",1),m(2,dee,4,7,"button",2),m(3,gee,4,5,"button",3),m(4,Nee,6,14,"div",4),c()),2&n&&(d("ngClass",Se(5,Vee,"row"===i.display,"menu"===i.display)),a(1),d("ngIf","row"===i.display),a(1),d("ngIf",i.showMenuButton),a(1),d("ngIf",i.showClearButton&&"row"===i.display),a(1),d("ngIf",i.showMenu&&i.overlayVisible))},dependencies:function(){return[Fe,ut,ne,dt,Gt,xe,Ce,Sn,mx,bx,Zee]},encapsulation:2,data:{animation:[Ji("overlayAnimation",[Yt(":enter",[Tt({opacity:0,transform:"scaleY(0.8)"}),Ut(".12s cubic-bezier(0, 0, 0.2, 1)")]),Yt(":leave",[Ut(".1s linear",Tt({opacity:0}))])])]}})}return t})(),Zee=(()=>{class t{dt;colFilter;field;type;filterConstraint;filterTemplate;placeholder;minFractionDigits;maxFractionDigits;prefix;suffix;locale;localeMatcher;currency;currencyDisplay;useGrouping=!0;get showButtons(){return this.colFilter.showButtons}filterCallback;constructor(e,n){this.dt=e,this.colFilter=n}ngOnInit(){this.filterCallback=e=>{this.filterConstraint.value=e,this.dt._filter()}}onModelChange(e){this.filterConstraint.value=e,("boolean"===this.type||""===e)&&this.dt._filter()}onTextInputEnterKeyDown(e){this.dt._filter(),e.preventDefault()}onNumericInputKeyDown(e){"Enter"===e.key&&(this.dt._filter(),e.preventDefault())}static \u0275fac=function(n){return new(n||t)(M(yn),M(Ix))};static \u0275cmp=U({type:t,selectors:[["p-columnFilterFormElement"]],hostAttrs:[1,"p-element"],inputs:{field:"field",type:"type",filterConstraint:"filterConstraint",filterTemplate:"filterTemplate",placeholder:"placeholder",minFractionDigits:"minFractionDigits",maxFractionDigits:"maxFractionDigits",prefix:"prefix",suffix:"suffix",locale:"locale",localeMatcher:"localeMatcher",currency:"currency",currencyDisplay:"currencyDisplay",useGrouping:"useGrouping"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["builtInElement",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["type","text","pInputText","",3,"value","input","keydown.enter",4,"ngSwitchCase"],[3,"ngModel","showButtons","minFractionDigits","maxFractionDigits","prefix","suffix","placeholder","mode","locale","localeMatcher","currency","currencyDisplay","useGrouping","ngModelChange","onKeyDown",4,"ngSwitchCase"],[3,"ngModel","ngModelChange",4,"ngSwitchCase"],[3,"placeholder","ngModel","ngModelChange",4,"ngSwitchCase"],["type","text","pInputText","",3,"value","input","keydown.enter"],[3,"ngModel","showButtons","minFractionDigits","maxFractionDigits","prefix","suffix","placeholder","mode","locale","localeMatcher","currency","currencyDisplay","useGrouping","ngModelChange","onKeyDown"],[3,"ngModel","ngModelChange"],[3,"placeholder","ngModel","ngModelChange"]],template:function(n,i){if(1&n&&(m(0,Gee,2,19,"ng-container",0),m(1,$ee,5,5,"ng-template",null,1,ve)),2&n){const o=B(2);d("ngIf",i.filterTemplate)("ngIfElse",o)}},dependencies:[ne,dt,Go,Al,vt,xe,Ce,zI,Zo,dx],encapsulation:2})}return t})(),Yee=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=me({imports:[Ne,YI,UI,gp,Yd,nc,IZ,VI,_p,UZ,ma,px,hx,mo,fx,_x,gx,Gn,mx,bx,ze,ma]})}return t})();const Sx=["container"];function Xee(t,s){1&t&&D(0,"span"),2&t&&se("p-toast-message-icon pi "+p(2).message.icon)}function ete(t,s){1&t&&D(0,"CheckIcon"),2&t&&F("aria-hidden",!0)("data-pc-section","icon")}function tte(t,s){1&t&&D(0,"InfoCircleIcon"),2&t&&F("aria-hidden",!0)("data-pc-section","icon")}function nte(t,s){1&t&&D(0,"TimesCircleIcon"),2&t&&F("aria-hidden",!0)("data-pc-section","icon")}function ite(t,s){1&t&&D(0,"ExclamationTriangleIcon"),2&t&&F("aria-hidden",!0)("data-pc-section","icon")}function ste(t,s){if(1&t&&(l(0,"span",11),Q(1),m(2,ete,1,2,"CheckIcon",3),m(3,tte,1,2,"InfoCircleIcon",3),m(4,nte,1,2,"TimesCircleIcon",3),m(5,ite,1,2,"ExclamationTriangleIcon",3),J(),c()),2&t){const e=p(2);F("aria-hidden",!0)("data-pc-section","icon"),a(2),d("ngIf","success"===e.message.severity),a(1),d("ngIf","info"===e.message.severity),a(1),d("ngIf","error"===e.message.severity),a(1),d("ngIf","warn"===e.message.severity)}}function ote(t,s){if(1&t&&(Q(0),m(1,Xee,1,2,"span",6),m(2,ste,6,6,"span",7),l(3,"div",8)(4,"div",9),_(5),c(),l(6,"div",10),_(7),c()(),J()),2&t){const e=p();a(1),d("ngIf",e.message.icon),a(1),d("ngIf",!e.message.icon),a(1),F("data-pc-section","text"),a(1),F("data-pc-section","summary"),a(1),S(e.message.summary),a(1),F("data-pc-section","detail"),a(1),S(e.message.detail)}}function rte(t,s){1&t&&Z(0)}function ate(t,s){1&t&&D(0,"span"),2&t&&se("pt-1 text-base p-toast-message-icon pi "+p(2).message.closeIcon)}function lte(t,s){1&t&&D(0,"TimesIcon",14),2&t&&(d("styleClass","p-toast-icon-close-icon"),F("aria-hidden",!0)("data-pc-section","closeicon"))}function cte(t,s){if(1&t){const e=E();l(0,"button",12),v("click",function(i){return C(e),y(p().onCloseIconClick(i))})("keydown.enter",function(i){return C(e),y(p().onCloseIconClick(i))}),m(1,ate,1,2,"span",6),m(2,lte,1,3,"TimesIcon",13),c()}if(2&t){const e=p();F("aria-label","Close")("data-pc-section","closebutton"),a(1),d("ngIf",e.message.closeIcon),a(1),d("ngIf",!e.message.closeIcon)}}const ute=function(t){return[t,"p-toast-message"]},dte=function(t,s,e,n){return{showTransformParams:t,hideTransformParams:s,showTransitionParams:e,hideTransitionParams:n}},pte=function(t){return{value:"visible",params:t}},hte=function(t){return{$implicit:t}};function mte(t,s){if(1&t){const e=E();l(0,"p-toastItem",3),v("onClose",function(i){return C(e),y(p().onMessageClose(i))})("@toastAnimation.start",function(i){return C(e),y(p().onAnimationStart(i))})("@toastAnimation.done",function(i){return C(e),y(p().onAnimationEnd(i))}),c()}if(2&t){const e=s.$implicit,n=s.index,i=p();d("message",e)("index",n)("life",i.life)("template",i.template)("@toastAnimation",void 0)("showTransformOptions",i.showTransformOptions)("hideTransformOptions",i.hideTransformOptions)("showTransitionOptions",i.showTransitionOptions)("hideTransitionOptions",i.hideTransitionOptions)}}let fte=(()=>{class t{zone;message;index;life;template;showTransformOptions;hideTransformOptions;showTransitionOptions;hideTransitionOptions;onClose=new q;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(n){return new(n||t)(M(je))};static \u0275cmp=U({type:t,selectors:[["p-toastItem"]],viewQuery:function(n,i){if(1&n&&K(Sx,5),2&n){let o;H(o=G())&&(i.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(n,i){1&n&&(l(0,"div",0,1),v("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()}),l(2,"div",2),m(3,ote,8,7,"ng-container",3),m(4,rte,1,0,"ng-container",4),m(5,cte,3,4,"button",5),c()()),2&n&&(se(null==i.message?null:i.message.styleClass),d("ngClass",W(13,ute,"p-toast-message-"+(null==i.message?null:i.message.severity)))("@messageState",W(20,pte,Li(15,dte,i.showTransformOptions,i.hideTransformOptions,i.showTransitionOptions,i.hideTransitionOptions))),F("id",null==i.message?null:i.message.id)("data-pc-name","toast")("data-pc-section","root"),a(2),d("ngClass",null==i.message?null:i.message.contentStyleClass),F("data-pc-section","content"),a(1),d("ngIf",!i.template),a(1),d("ngTemplateOutlet",i.template)("ngTemplateOutletContext",W(22,hte,i.message)),a(1),d("ngIf",!1!==(null==i.message?null:i.message.closable)))},dependencies:function(){return[Fe,ne,dt,bt,Gn,wc,ir,Tc,xn]},encapsulation:2,data:{animation:[Ji("messageState",[qs("visible",Tt({transform:"translateY(0)",opacity:1})),Yt("void => *",[Tt({transform:"{{showTransformParams}}",opacity:0}),Ut("{{showTransitionParams}}")]),Yt("* => void",[Ut("{{hideTransitionParams}}",Tt({height:0,opacity:0,transform:"{{hideTransformParams}}"}))])])]},changeDetection:0})}return t})(),Hp=(()=>{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 q;containerViewChild;templates;messageSubscription;clearSubscription;messages;messagesArchieve;template;constructor(e,n,i,o,r){this.document=e,this.renderer=n,this.messageService=i,this.cd=o,this.config=r}styleElement;id=Ft();ngOnInit(){this.messageSubscription=this.messageService.messageObserver.subscribe(e=>{if(e)if(Array.isArray(e)){const n=e.filter(i=>this.canAdd(i));this.add(n)}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 n=this.key===e.key;return n&&this.preventOpenDuplicates&&(n=!this.containsMessage(this.messages,e)),n&&this.preventDuplicates&&(n=!this.containsMessage(this.messagesArchieve,e)),n}containsMessage(e,n){return!!e&&null!=e.find(i=>i.summary===n.summary&&i.detail==n.detail&&i.severity===n.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&&Et.set("modal",this.containerViewChild?.nativeElement,this.baseZIndex||this.config.zIndex.modal))}onAnimationEnd(e){"void"===e.toState&&this.autoZIndex&&Y.isEmpty(this.messages)&&Et.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 n in this.breakpoints){let i="";for(let o in this.breakpoints[n])i+=o+":"+this.breakpoints[n][o]+" !important;";e+=`\n @media screen and (max-width: ${n}) {\n .p-toast[${this.id}] {\n ${i}\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&&Et.clear(this.containerViewChild.nativeElement),this.clearSubscription&&this.clearSubscription.unsubscribe(),this.destroyStyle()}static \u0275fac=function(n){return new(n||t)(M(ct),M(Vt),M(Yi),M(rt),M(Hn))};static \u0275cmp=U({type:t,selectors:[["p-toast"]],contentQueries:function(n,i,o){if(1&n&&Ye(o,ae,4),2&n){let r;H(r=G())&&(i.templates=r)}},viewQuery:function(n,i){if(1&n&&K(Sx,5),2&n){let o;H(o=G())&&(i.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(n,i){1&n&&(l(0,"div",0,1),m(2,mte,1,9,"p-toastItem",2),c()),2&n&&(se(i.styleClass),d("ngClass","p-toast p-component p-toast-"+i.position)("ngStyle",i.style),a(2),d("ngForOf",i.messages))},dependencies:[Fe,ut,nt,fte],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:[Ji("toastAnimation",[Yt(":enter, :leave",[nF("@*",tF())])])]},changeDetection:0})}return t})(),gte=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=me({imports:[Ne,Cn,Gn,wc,ir,Tc,xn,ze]})}return t})(),Cte=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=me({imports:[Ne]})}return t})();const yte=["rb"],Tte=function(t,s,e){return{"p-radiobutton-label":!0,"p-radiobutton-label-active":t,"p-disabled":s,"p-radiobutton-label-focus":e}};function wte(t,s){if(1&t){const e=E();l(0,"label",4),v("click",function(i){return C(e),y(p().select(i))}),_(1),c()}if(2&t){const e=p(),n=B(3);se(e.labelStyleClass),d("ngClass",Bt(5,Tte,n.checked,e.disabled,e.focused)),F("for",e.inputId),a(1),S(e.label)}}const Ite=function(t,s,e){return{"p-radiobutton p-component":!0,"p-radiobutton-checked":t,"p-radiobutton-disabled":s,"p-radiobutton-focused":e}},Ste=function(t,s,e){return{"p-radiobutton-box":!0,"p-highlight":t,"p-disabled":s,"p-focus":e}},xte={provide:dn,useExisting:Ze(()=>Ic),multi:!0};let Dte=(()=>{class t{accessors=[];add(e,n){this.accessors.push([e,n])}remove(e){this.accessors=this.accessors.filter(n=>n[1]!==e)}select(e){this.accessors.forEach(n=>{this.isSameGroup(n,e)&&n[1]!==e&&n[1].writeValue(e.value)})}isSameGroup(e,n){return!!e[0].control&&e[0].control.root===n.control.control.root&&e[1].name===n.name}static \u0275fac=function(n){return new(n||t)};static \u0275prov=re({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ic=(()=>{class t{cd;injector;registry;value;formControlName;name;disabled;label;tabindex;inputId;ariaLabelledBy;ariaLabel;style;styleClass;labelStyleClass;onClick=new q;onFocus=new q;onBlur=new q;inputViewChild;onModelChange=()=>{};onModelTouched=()=>{};checked;focused;control;constructor(e,n,i){this.cd=e,this.injector=n,this.registry=i}ngOnInit(){this.control=this.injector.get(Qi),this.checkName(),this.registry.add(this.control,this)}handleClick(e,n,i){e.preventDefault(),!this.disabled&&(this.select(e),i&&n.focus())}select(e){this.disabled||(this.inputViewChild.nativeElement.checked=!0,this.checked=!0,this.onModelChange(this.value),this.registry.select(this),this.onClick.emit({originalEvent:e,value:this.value}))}writeValue(e){this.checked=e==this.value,this.inputViewChild&&this.inputViewChild.nativeElement&&(this.inputViewChild.nativeElement.checked=this.checked),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onInputFocus(e){this.focused=!0,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onModelTouched(),this.onBlur.emit(e)}onChange(e){this.select(e)}focus(){this.inputViewChild.nativeElement.focus()}ngOnDestroy(){this.registry.remove(this)}checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this.throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}throwNameError(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')}static \u0275fac=function(n){return new(n||t)(M(rt),M(Fn),M(Dte))};static \u0275cmp=U({type:t,selectors:[["p-radioButton"]],viewQuery:function(n,i){if(1&n&&K(yte,5),2&n){let o;H(o=G())&&(i.inputViewChild=o.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",formControlName:"formControlName",name:"name",disabled:"disabled",label:"label",tabindex:"tabindex",inputId:"inputId",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",style:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass"},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},features:[Qe([xte])],decls:7,vars:23,consts:[[3,"ngStyle","ngClass"],[1,"p-hidden-accessible"],["type","radio",3,"checked","disabled","change","focus","blur"],["rb",""],[3,"ngClass","click"],[1,"p-radiobutton-icon"],[3,"class","ngClass","click",4,"ngIf"]],template:function(n,i){if(1&n){const o=E();l(0,"div",0)(1,"div",1)(2,"input",2,3),v("change",function(u){return i.onChange(u)})("focus",function(u){return i.onInputFocus(u)})("blur",function(u){return i.onInputBlur(u)}),c()(),l(4,"div",4),v("click",function(u){C(o);const h=B(3);return y(i.handleClick(u,h,!0))}),D(5,"span",5),c()(),m(6,wte,2,9,"label",6)}2&n&&(se(i.styleClass),d("ngStyle",i.style)("ngClass",Bt(15,Ite,i.checked,i.disabled,i.focused)),a(2),d("checked",i.checked)("disabled",i.disabled),F("id",i.inputId)("name",i.name)("value",i.value)("tabindex",i.tabindex)("aria-checked",i.checked)("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledBy),a(2),d("ngClass",Bt(19,Ste,i.checked,i.disabled,i.focused)),a(2),d("ngIf",i.label))},dependencies:[Fe,ne,nt],encapsulation:2,changeDetection:0})}return t})(),Mte=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=me({imports:[Ne]})}return t})();function kte(t,s){if(1&t&&(l(0,"div",5),_(1),c()),2&t){const e=p(2);qi("display",null!=e.value&&0!==e.value?"flex":"none"),F("data-pc-section","label"),a(1),Ke("",e.value,"",e.unit,"")}}function Ete(t,s){if(1&t&&(l(0,"div",3),m(1,kte,2,5,"div",4),c()),2&t){const e=p();qi("width",e.value+"%")("background",e.color),F("data-pc-section","value"),a(1),d("ngIf",e.showValue)}}function Lte(t,s){if(1&t&&(l(0,"div",6),D(1,"div",7),c()),2&t){const e=p();F("data-pc-section","container"),a(1),qi("background",e.color),F("data-pc-section","value")}}const Rte=function(t,s){return{"p-progressbar p-component":!0,"p-progressbar-determinate":t,"p-progressbar-indeterminate":s}};let Ote=(()=>{class t{value;showValue=!0;styleClass;style;unit="%";mode="determinate";color;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=U({type:t,selectors:[["p-progressBar"]],hostAttrs:[1,"p-element"],inputs:{value:"value",showValue:"showValue",styleClass:"styleClass",style:"style",unit:"unit",mode:"mode",color:"color"},decls:3,vars:14,consts:[["role","progressbar",3,"ngStyle","ngClass"],["class","p-progressbar-value p-progressbar-value-animate","style","display:flex",3,"width","background",4,"ngIf"],["class","p-progressbar-indeterminate-container",4,"ngIf"],[1,"p-progressbar-value","p-progressbar-value-animate",2,"display","flex"],["class","p-progressbar-label",3,"display",4,"ngIf"],[1,"p-progressbar-label"],[1,"p-progressbar-indeterminate-container"],[1,"p-progressbar-value","p-progressbar-value-animate"]],template:function(n,i){1&n&&(l(0,"div",0),m(1,Ete,2,6,"div",1),m(2,Lte,2,4,"div",2),c()),2&n&&(se(i.styleClass),d("ngStyle",i.style)("ngClass",Se(11,Rte,"determinate"===i.mode,"indeterminate"===i.mode)),F("aria-valuemin",0)("aria-valuenow",i.value)("aria-valuemax",100)("data-pc-name","progressbar")("data-pc-section","root"),a(1),d("ngIf","determinate"===i.mode),a(1),d("ngIf","indeterminate"===i.mode))},dependencies:[Fe,ne,nt],styles:['@layer primeng{.p-progressbar{position:relative;overflow:hidden}.p-progressbar-determinate .p-progressbar-value{height:100%;width:0%;position:absolute;display:none;border:0 none;display:flex;align-items:center;justify-content:center;overflow:hidden}.p-progressbar-determinate .p-progressbar-label{display:inline-flex}.p-progressbar-determinate .p-progressbar-value-animate{transition:width 1s ease-in-out}.p-progressbar-indeterminate .p-progressbar-value:before{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;animation:p-progressbar-indeterminate-anim 2.1s cubic-bezier(.65,.815,.735,.395) infinite}.p-progressbar-indeterminate .p-progressbar-value:after{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;animation:p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(.165,.84,.44,1) infinite;animation-delay:1.15s}}@keyframes p-progressbar-indeterminate-anim{0%{left:-35%;right:100%}60%{left:100%;right:-90%}to{left:100%;right:-90%}}@keyframes p-progressbar-indeterminate-anim-short{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}\n'],encapsulation:2,changeDetection:0})}return t})(),Ate=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=me({imports:[Ne]})}return t})();const Pte=["container"],Fte=["content"],Nte=["xBar"],Vte=["yBar"];function Bte(t,s){1&t&&Z(0)}const Hte=["*"];let xx=(()=>{class t{platformId;el;zone;cd;document;renderer;style;styleClass;step=5;containerViewChild;contentViewChild;xBarViewChild;yBarViewChild;templates;scrollYRatio;scrollXRatio;timeoutFrame=e=>setTimeout(e,0);initialized=!1;lastPageY;lastPageX;isXBarClicked=!1;isYBarClicked=!1;contentTemplate;lastScrollLeft=0;lastScrollTop=0;orientation="vertical";timer;windowResizeListener;contentScrollListener;mouseEnterListener;xBarMouseDownListener;yBarMouseDownListener;documentMouseMoveListener;documentMouseUpListener;constructor(e,n,i,o,r,u){this.platformId=e,this.el=n,this.zone=i,this.cd=o,this.document=r,this.renderer=u}ngAfterViewInit(){vn(this.platformId)&&this.zone.runOutsideAngular(()=>{this.moveBar(),this.moveBar=this.moveBar.bind(this),this.onXBarMouseDown=this.onXBarMouseDown.bind(this),this.onYBarMouseDown=this.onYBarMouseDown.bind(this),this.onDocumentMouseMove=this.onDocumentMouseMove.bind(this),this.onDocumentMouseUp=this.onDocumentMouseUp.bind(this),this.windowResizeListener=this.renderer.listen(window,"resize",this.moveBar),this.contentScrollListener=this.renderer.listen(this.contentViewChild.nativeElement,"scroll",this.moveBar),this.mouseEnterListener=this.renderer.listen(this.contentViewChild.nativeElement,"mouseenter",this.moveBar),this.xBarMouseDownListener=this.renderer.listen(this.xBarViewChild.nativeElement,"mousedown",this.onXBarMouseDown),this.yBarMouseDownListener=this.renderer.listen(this.yBarViewChild.nativeElement,"mousedown",this.onYBarMouseDown),this.calculateContainerHeight(),this.initialized=!0})}ngAfterContentInit(){this.templates.forEach(e=>{e.getType(),this.contentTemplate=e.template})}calculateContainerHeight(){let e=this.containerViewChild.nativeElement,n=this.contentViewChild.nativeElement,i=this.xBarViewChild.nativeElement;const o=this.document.defaultView;let r=o.getComputedStyle(e),u=o.getComputedStyle(i),h=R.getHeight(e)-parseInt(u.height,10);"none"!=r["max-height"]&&0==h&&(e.style.height=n.offsetHeight+parseInt(u.height,10)>parseInt(r["max-height"],10)?r["max-height"]:n.offsetHeight+parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth)+"px")}moveBar(){let e=this.containerViewChild.nativeElement,n=this.contentViewChild.nativeElement,i=this.xBarViewChild.nativeElement,o=n.scrollWidth,r=n.clientWidth,u=-1*(e.clientHeight-i.clientHeight);this.scrollXRatio=r/o;let h=this.yBarViewChild.nativeElement,b=n.scrollHeight,T=n.clientHeight,w=-1*(e.clientWidth-h.clientWidth);this.scrollYRatio=T/b,this.requestAnimationFrame(()=>{if(this.scrollXRatio>=1)i.setAttribute("data-p-scrollpanel-hidden","true"),R.addClass(i,"p-scrollpanel-hidden");else{i.setAttribute("data-p-scrollpanel-hidden","false"),R.removeClass(i,"p-scrollpanel-hidden");const k=Math.max(100*this.scrollXRatio,10);i.style.cssText="width:"+k+"%; left:"+n.scrollLeft*(100-k)/(o-r)+"%;bottom:"+u+"px;"}if(this.scrollYRatio>=1)h.setAttribute("data-p-scrollpanel-hidden","true"),R.addClass(h,"p-scrollpanel-hidden");else{h.setAttribute("data-p-scrollpanel-hidden","false"),R.removeClass(h,"p-scrollpanel-hidden");const k=Math.max(100*this.scrollYRatio,10);h.style.cssText="height:"+k+"%; top: calc("+n.scrollTop*(100-k)/(b-T)+"% - "+i.clientHeight+"px);right:"+w+"px;"}}),this.cd.markForCheck()}onScroll(e){this.lastScrollLeft!==e.target.scrollLeft?(this.lastScrollLeft=e.target.scrollLeft,this.orientation="horizontal"):this.lastScrollTop!==e.target.scrollTop&&(this.lastScrollTop=e.target.scrollTop,this.orientation="vertical"),this.moveBar()}onKeyDown(e){if("vertical"===this.orientation)switch(e.code){case"ArrowDown":this.setTimer("scrollTop",this.step),e.preventDefault();break;case"ArrowUp":this.setTimer("scrollTop",-1*this.step),e.preventDefault();break;case"ArrowLeft":case"ArrowRight":e.preventDefault()}else if("horizontal"===this.orientation)switch(e.code){case"ArrowRight":this.setTimer("scrollLeft",this.step),e.preventDefault();break;case"ArrowLeft":this.setTimer("scrollLeft",-1*this.step),e.preventDefault();break;case"ArrowDown":case"ArrowUp":e.preventDefault()}}onKeyUp(){this.clearTimer()}repeat(e,n){this.contentViewChild.nativeElement[e]+=n,this.moveBar()}setTimer(e,n){this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(e,n)},40)}clearTimer(){this.timer&&clearTimeout(this.timer)}bindDocumentMouseListeners(){this.documentMouseMoveListener||(this.documentMouseMoveListener=e=>{this.onDocumentMouseMove(e)},this.document.addEventListener("mousemove",this.documentMouseMoveListener)),this.documentMouseUpListener||(this.documentMouseUpListener=e=>{this.onDocumentMouseUp(e)},this.document.addEventListener("mouseup",this.documentMouseUpListener))}unbindDocumentMouseListeners(){this.documentMouseMoveListener&&(this.document.removeEventListener("mousemove",this.documentMouseMoveListener),this.documentMouseMoveListener=null),this.documentMouseUpListener&&(document.removeEventListener("mouseup",this.documentMouseUpListener),this.documentMouseUpListener=null)}onYBarMouseDown(e){this.isYBarClicked=!0,this.yBarViewChild.nativeElement.focus(),this.lastPageY=e.pageY,this.yBarViewChild.nativeElement.setAttribute("data-p-scrollpanel-grabbed","true"),R.addClass(this.yBarViewChild.nativeElement,"p-scrollpanel-grabbed"),this.document.body.setAttribute("data-p-scrollpanel-grabbed","true"),R.addClass(this.document.body,"p-scrollpanel-grabbed"),this.bindDocumentMouseListeners(),e.preventDefault()}onXBarMouseDown(e){this.isXBarClicked=!0,this.xBarViewChild.nativeElement.focus(),this.lastPageX=e.pageX,this.xBarViewChild.nativeElement.setAttribute("data-p-scrollpanel-grabbed","false"),R.addClass(this.xBarViewChild.nativeElement,"p-scrollpanel-grabbed"),this.document.body.setAttribute("data-p-scrollpanel-grabbed","false"),R.addClass(this.document.body,"p-scrollpanel-grabbed"),this.bindDocumentMouseListeners(),e.preventDefault()}onDocumentMouseMove(e){this.isXBarClicked?this.onMouseMoveForXBar(e):(this.isYBarClicked||this.onMouseMoveForXBar(e),this.onMouseMoveForYBar(e))}onMouseMoveForXBar(e){let n=e.pageX-this.lastPageX;this.lastPageX=e.pageX,this.requestAnimationFrame(()=>{this.contentViewChild.nativeElement.scrollLeft+=n/this.scrollXRatio})}onMouseMoveForYBar(e){let n=e.pageY-this.lastPageY;this.lastPageY=e.pageY,this.requestAnimationFrame(()=>{this.contentViewChild.nativeElement.scrollTop+=n/this.scrollYRatio})}scrollTop(e){let n=this.contentViewChild.nativeElement.scrollHeight-this.contentViewChild.nativeElement.clientHeight;this.contentViewChild.nativeElement.scrollTop=e=e>n?n:e>0?e:0}onFocus(e){this.xBarViewChild.nativeElement.isSameNode(e.target)?this.orientation="horizontal":this.yBarViewChild.nativeElement.isSameNode(e.target)&&(this.orientation="vertical")}onBlur(){"horizontal"===this.orientation&&(this.orientation="vertical")}onDocumentMouseUp(e){this.yBarViewChild.nativeElement.setAttribute("data-p-scrollpanel-grabbed","false"),R.removeClass(this.yBarViewChild.nativeElement,"p-scrollpanel-grabbed"),this.xBarViewChild.nativeElement.setAttribute("data-p-scrollpanel-grabbed","false"),R.removeClass(this.xBarViewChild.nativeElement,"p-scrollpanel-grabbed"),this.document.body.setAttribute("data-p-scrollpanel-grabbed","false"),R.removeClass(this.document.body,"p-scrollpanel-grabbed"),this.unbindDocumentMouseListeners(),this.isXBarClicked=!1,this.isYBarClicked=!1}requestAnimationFrame(e){(window.requestAnimationFrame||this.timeoutFrame)(e)}unbindListeners(){this.windowResizeListener&&(this.windowResizeListener(),this.windowResizeListener=null),this.contentScrollListener&&(this.contentScrollListener(),this.contentScrollListener=null),this.mouseEnterListener&&(this.mouseEnterListener(),this.mouseEnterListener=null),this.xBarMouseDownListener&&(this.xBarMouseDownListener(),this.xBarMouseDownListener=null),this.yBarMouseDownListener&&(this.yBarMouseDownListener(),this.yBarMouseDownListener=null)}ngOnDestroy(){this.initialized&&this.unbindListeners()}refresh(){this.moveBar()}static \u0275fac=function(n){return new(n||t)(M(gn),M(Pe),M(je),M(rt),M(ct),M(Vt))};static \u0275cmp=U({type:t,selectors:[["p-scrollPanel"]],contentQueries:function(n,i,o){if(1&n&&Ye(o,ae,4),2&n){let r;H(r=G())&&(i.templates=r)}},viewQuery:function(n,i){if(1&n&&(K(Pte,5),K(Fte,5),K(Nte,5),K(Vte,5)),2&n){let o;H(o=G())&&(i.containerViewChild=o.first),H(o=G())&&(i.contentViewChild=o.first),H(o=G())&&(i.xBarViewChild=o.first),H(o=G())&&(i.yBarViewChild=o.first)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",step:"step"},ngContentSelectors:Hte,decls:11,vars:14,consts:[[3,"ngClass","ngStyle"],["container",""],[1,"p-scrollpanel-wrapper"],[1,"p-scrollpanel-content",3,"mouseenter","scroll"],["content",""],[4,"ngTemplateOutlet"],["tabindex","0","role","scrollbar",1,"p-scrollpanel-bar","p-scrollpanel-bar-x",3,"mousedown","keydown","keyup","focus","blur"],["xBar",""],["tabindex","0","role","scrollbar",1,"p-scrollpanel-bar","p-scrollpanel-bar-y",3,"mousedown","keydown","keyup","focus"],["yBar",""]],template:function(n,i){1&n&&(_n(),l(0,"div",0,1)(2,"div",2)(3,"div",3,4),v("mouseenter",function(){return i.moveBar()})("scroll",function(r){return i.onScroll(r)}),xt(5),m(6,Bte,1,0,"ng-container",5),c()(),l(7,"div",6,7),v("mousedown",function(r){return i.onXBarMouseDown(r)})("keydown",function(r){return i.onKeyDown(r)})("keyup",function(){return i.onKeyUp()})("focus",function(r){return i.onFocus(r)})("blur",function(){return i.onBlur()}),c(),l(9,"div",8,9),v("mousedown",function(r){return i.onYBarMouseDown(r)})("keydown",function(r){return i.onKeyDown(r)})("keyup",function(){return i.onKeyUp()})("focus",function(r){return i.onFocus(r)}),c()()),2&n&&(se(i.styleClass),d("ngClass","p-scrollpanel p-component")("ngStyle",i.style),F("data-pc-name","scrollpanel"),a(2),F("data-pc-section","wrapper"),a(1),F("data-pc-section","content"),a(3),d("ngTemplateOutlet",i.contentTemplate),a(1),F("aria-orientation","horizontal")("aria-valuenow",i.lastScrollLeft)("data-pc-section","barx"),a(2),F("aria-orientation","vertical")("aria-valuenow",i.lastScrollTop)("data-pc-section","bary"))},dependencies:[Fe,dt,nt],styles:["@layer primeng{.p-scrollpanel-wrapper{overflow:hidden;width:100%;height:100%;position:relative;float:left}.p-scrollpanel-content{height:calc(100% + 18px);width:calc(100% + 18px);padding:0 18px 18px 0;position:relative;overflow:auto;box-sizing:border-box}.p-scrollpanel-bar{position:relative;background:#c1c1c1;border-radius:3px;cursor:pointer;opacity:0;transition:opacity .25s linear}.p-scrollpanel-bar-y{width:9px;top:0}.p-scrollpanel-bar-x{height:9px;bottom:0}.p-scrollpanel-hidden{visibility:hidden}.p-scrollpanel:hover .p-scrollpanel-bar,.p-scrollpanel:active .p-scrollpanel-bar{opacity:1}.p-scrollpanel-grabbed{-webkit-user-select:none;user-select:none}}\n"],encapsulation:2,changeDetection:0})}return t})(),Gte=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=me({imports:[Ne]})}return t})();const qte=["content"],zte=["navbar"],Ute=["inkbar"],jte=["prevBtn"],$te=["nextBtn"],Wte=["tabLink"],Kte=["tab"];function Qte(t,s){1&t&&D(0,"ChevronLeftIcon"),2&t&&F("aria-hidden",!0)}function Jte(t,s){}function Zte(t,s){1&t&&m(0,Jte,0,0,"ng-template")}function Yte(t,s){if(1&t){const e=E();l(0,"button",11,12),v("click",function(){return C(e),y(p().navBackward())}),m(2,Qte,1,1,"ChevronLeftIcon",13),m(3,Zte,1,0,null,14),c()}if(2&t){const e=p();a(2),d("ngIf",!e.previousIconTemplate),a(1),d("ngTemplateOutlet",e.previousIconTemplate)}}function Xte(t,s){if(1&t&&D(0,"span",26),2&t){const e=p(3).$implicit;d("ngClass",e.icon)("ngStyle",e.iconStyle)}}function ene(t,s){if(1&t&&(l(0,"span",27),_(1),c()),2&t){const e=p(3).$implicit,n=p();a(1),S(n.getItemProp(e,"label"))}}function tne(t,s){if(1&t&&D(0,"span",28),2&t){const e=p(3).$implicit;d("innerHTML",p().getItemProp(e,"label"),Zt)}}function nne(t,s){if(1&t&&(l(0,"span",29),_(1),c()),2&t){const e=p(3).$implicit,n=p();d("ngClass",e.badgeStyleClass),a(1),S(n.getItemProp(e,"badge"))}}function ine(t,s){if(1&t&&(Q(0),m(1,Xte,1,2,"span",22),m(2,ene,2,1,"span",23),m(3,tne,1,1,"ng-template",null,24,ve),m(5,nne,2,2,"span",25),J()),2&t){const e=B(4),n=p(2).$implicit;a(1),d("ngIf",n.icon),a(1),d("ngIf",!1!==n.escape)("ngIfElse",e),a(3),d("ngIf",n.badge)}}function sne(t,s){1&t&&Z(0)}const Dx=function(t,s){return{$implicit:t,index:s}};function one(t,s){if(1&t){const e=E();l(0,"a",19,20),v("click",function(i){C(e);const o=p().$implicit;return y(p().itemClick(i,o))})("keydown",function(i){C(e);const o=p(),r=o.index,u=o.$implicit;return y(p().onKeydownItem(i,r,u))})("focus",function(){C(e);const i=p().$implicit;return y(p().onMenuItemFocus(i))}),m(2,ine,6,4,"ng-container",13),m(3,sne,1,0,"ng-container",21),c()}if(2&t){const e=p(),n=e.$implicit,i=e.index,o=p();d("target",o.getItemProp(n,"target")),F("href",o.getItemProp(n,"url"),tn)("id",o.getItemProp(n,"id"))("aria-disabled",o.disabled(n))("aria-label",o.getItemProp(n,"label"))("tabindex",o.disabled(n)?-1:0),a(2),d("ngIf",!o.itemTemplate),a(1),d("ngTemplateOutlet",o.itemTemplate)("ngTemplateOutletContext",Se(9,Dx,n,i))}}function rne(t,s){if(1&t&&D(0,"span",26),2&t){const e=p(3).$implicit;d("ngClass",e.icon)("ngStyle",e.iconStyle),F("aria-hidden",!0)}}function ane(t,s){if(1&t&&(l(0,"span",27),_(1),c()),2&t){const e=p(3).$implicit,n=p();a(1),S(n.getItemProp(e,"label"))}}function lne(t,s){if(1&t&&D(0,"span",28),2&t){const e=p(3).$implicit;d("innerHTML",p().getItemProp(e,"label"),Zt)}}function cne(t,s){if(1&t&&(l(0,"span",29),_(1),c()),2&t){const e=p(3).$implicit,n=p();d("ngClass",e.badgeStyleClass),a(1),S(n.getItemProp(e,"badge"))}}function une(t,s){if(1&t&&(Q(0),m(1,rne,1,3,"span",22),m(2,ane,2,1,"span",23),m(3,lne,1,1,"ng-template",null,31,ve),m(5,cne,2,2,"span",25),J()),2&t){const e=B(4),n=p(2).$implicit;a(1),d("ngIf",n.icon),a(1),d("ngIf",!1!==n.escape)("ngIfElse",e),a(3),d("ngIf",n.badge)}}function dne(t,s){1&t&&Z(0)}const pne=function(){return{exact:!1}};function hne(t,s){if(1&t){const e=E();l(0,"a",30,20),v("click",function(i){C(e);const o=p().$implicit;return y(p().itemClick(i,o))})("keydown",function(i){C(e);const o=p(),r=o.index,u=o.$implicit;return y(p().onKeydownItem(i,r,u))})("focus",function(){C(e);const i=p().$implicit;return y(p().onMenuItemFocus(i))}),m(2,une,6,4,"ng-container",13),m(3,dne,1,0,"ng-container",21),c()}if(2&t){const e=p(),n=e.$implicit,i=e.index,o=p();d("routerLink",n.routerLink)("queryParams",n.queryParams)("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",n.routerLinkActiveOptions||V(18,pne))("target",n.target)("fragment",n.fragment)("queryParamsHandling",n.queryParamsHandling)("preserveFragment",n.preserveFragment)("skipLocationChange",n.skipLocationChange)("replaceUrl",n.replaceUrl)("state",n.state),F("id",o.getItemProp(n,"id"))("aria-disabled",o.disabled(n))("aria-label",o.getItemProp(n,"label"))("tabindex",o.disabled(n)?-1:0),a(2),d("ngIf",!o.itemTemplate),a(1),d("ngTemplateOutlet",o.itemTemplate)("ngTemplateOutletContext",Se(19,Dx,n,i))}}const mne=function(t,s,e){return{"p-tabmenuitem":!0,"p-disabled":t,"p-highlight":s,"p-hidden":e}};function fne(t,s){if(1&t&&(l(0,"li",15,16),m(2,one,4,12,"a",17),m(3,hne,4,22,"a",18),c()),2&t){const e=s.$implicit,n=p();se(e.styleClass),d("ngStyle",e.style)("ngClass",Bt(9,mne,n.getItemProp(e,"disabled"),n.isActive(e),!1===e.visible))("tooltipOptions",e.tooltipOptions),F("data-p-disabled",n.disabled(e))("data-p-highlight",n.focusedItemInfo()===e),a(2),d("ngIf",!e.routerLink),a(1),d("ngIf",e.routerLink)}}function gne(t,s){1&t&&D(0,"ChevronRightIcon"),2&t&&F("aria-hidden",!0)}function _ne(t,s){}function bne(t,s){1&t&&m(0,_ne,0,0,"ng-template")}function vne(t,s){if(1&t){const e=E();l(0,"button",32,33),v("click",function(){return C(e),y(p().navForward())}),m(2,gne,1,1,"ChevronRightIcon",13),m(3,bne,1,0,null,14),c()}if(2&t){const e=p();a(2),d("ngIf",!e.previousIconTemplate),a(1),d("ngTemplateOutlet",e.nextIconTemplate)}}const Cne=function(t){return{"p-tabmenu p-component":!0,"p-tabmenu-scrollable":t}};let Mx=(()=>{class t{platformId;router;route;cd;set model(e){this._model=e,this._focusableItems=(this._model||[]).reduce((n,i)=>(n.push(i),n),[])}get model(){return this._model}activeItem;scrollable;popup;style;styleClass;ariaLabel;ariaLabelledBy;activeItemChange=new q;content;navbar;inkbar;prevBtn;nextBtn;tabLink;tab;templates;itemTemplate;previousIconTemplate;nextIconTemplate;tabChanged;backwardIsDisabled=!0;forwardIsDisabled=!1;timerIdForInitialAutoScroll=null;_focusableItems;_model;focusedItemInfo=br(null);get focusableItems(){return(!this._focusableItems||!this._focusableItems.length)&&(this._focusableItems=(this.model||[]).reduce((e,n)=>(e.push(n),e),[])),this._focusableItems}constructor(e,n,i,o){this.platformId=e,this.router=n,this.route=i,this.cd=o}ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"nexticon":this.nextIconTemplate=e.template;break;case"previousicon":this.previousIconTemplate=e.template}})}ngAfterViewInit(){vn(this.platformId)&&(this.updateInkBar(),this.initAutoScrollForActiveItem(),this.initButtonState())}ngAfterViewChecked(){this.tabChanged&&(this.updateInkBar(),this.tabChanged=!1)}ngOnDestroy(){this.clearAutoScrollHandler()}isActive(e){if(e.routerLink){const n=Array.isArray(e.routerLink)?e.routerLink:[e.routerLink];return this.router.isActive(this.router.createUrlTree(n,{relativeTo:this.route}).toString(),e.routerLinkActiveOptions?.exact??e.routerLinkActiveOptions??!1)}return e===this.activeItem}getItemProp(e,n){return e?Y.getItemValue(e[n]):void 0}visible(e){return"function"==typeof e.visible?e.visible():!1!==e.visible}disabled(e){return"function"==typeof e.disabled?e.disabled():e.disabled}onMenuItemFocus(e){this.focusedItemInfo.set(e)}itemClick(e,n){n.disabled?e.preventDefault():(!n.url&&!n.routerLink&&e.preventDefault(),n.command&&n.command({originalEvent:e,item:n}),this.activeItem=n,this.activeItemChange.emit(n),this.tabChanged=!0,this.cd.markForCheck())}onKeydownItem(e,n,i){let o=n,r={};const u=this.tabLink.toArray(),h=this.tab.toArray();switch(e.code){case"ArrowRight":r=this.findNextItem(h,o),o=r.i;break;case"ArrowLeft":r=this.findPrevItem(h,o),o=r.i;break;case"End":r=this.findPrevItem(h,this.model.length),o=r.i,e.preventDefault();break;case"Home":r=this.findNextItem(h,-1),o=r.i,e.preventDefault();break;case"Space":case"Enter":this.itemClick(e,i);break;case"Tab":this.onTabKeyDown(u)}u[o]&&u[n]&&(u[n].nativeElement.tabIndex="-1",u[o].nativeElement.tabIndex="0",u[o].nativeElement.focus()),this.cd.markForCheck()}onTabKeyDown(e){e.forEach(n=>{n.nativeElement.tabIndex=R.getAttribute(n.nativeElement.parentElement,"data-p-highlight")?"0":"-1"})}findNextItem(e,n){let i=n+1;if(i>=e.length)return{nextItem:e[e.length],i:e.length};let o=e[i];return o?R.getAttribute(o.nativeElement,"data-p-disabled")?this.findNextItem(e,i):{nextItem:o.nativeElement,i}:null}findPrevItem(e,n){let i=n-1;if(i<0)return{prevItem:e[0],i:0};let o=e[i];return o?R.getAttribute(o.nativeElement,"data-p-disabled")?this.findPrevItem(e,i):{prevItem:o.nativeElement,i}:null}updateInkBar(){const e=R.findSingle(this.navbar?.nativeElement,"li.p-highlight");e&&(this.inkbar.nativeElement.style.width=R.getWidth(e)+"px",this.inkbar.nativeElement.style.left=R.getOffset(e).left-R.getOffset(this.navbar?.nativeElement).left+"px")}getVisibleButtonWidths(){return[this.prevBtn?.nativeElement,this.nextBtn?.nativeElement].reduce((e,n)=>n?e+R.getWidth(n):e,0)}updateButtonState(){const e=this.content?.nativeElement,{scrollLeft:n,scrollWidth:i}=e,o=R.getWidth(e);this.backwardIsDisabled=0===n,this.forwardIsDisabled=parseInt(n)===i-o}updateScrollBar(e){const n=this.navbar?.nativeElement.children[e];n&&n.scrollIntoView({block:"nearest",inline:"center"})}onScroll(e){this.scrollable&&this.updateButtonState(),e.preventDefault()}navBackward(){const e=this.content?.nativeElement,n=R.getWidth(e)-this.getVisibleButtonWidths(),i=e.scrollLeft-n;e.scrollLeft=i<=0?0:i}navForward(){const e=this.content?.nativeElement,n=R.getWidth(e)-this.getVisibleButtonWidths(),i=e.scrollLeft+n,o=e.scrollWidth-n;e.scrollLeft=i>=o?o:i}initAutoScrollForActiveItem(){this.scrollable&&(this.clearAutoScrollHandler(),this.timerIdForInitialAutoScroll=setTimeout(()=>{const e=this.model.findIndex(n=>this.isActive(n));-1!==e&&this.updateScrollBar(e)}))}clearAutoScrollHandler(){this.timerIdForInitialAutoScroll&&(clearTimeout(this.timerIdForInitialAutoScroll),this.timerIdForInitialAutoScroll=null)}initButtonState(){this.scrollable&&Promise.resolve().then(()=>{this.updateButtonState(),this.cd.markForCheck()})}static \u0275fac=function(n){return new(n||t)(M(gn),M(Nt),M(bo),M(rt))};static \u0275cmp=U({type:t,selectors:[["p-tabMenu"]],contentQueries:function(n,i,o){if(1&n&&Ye(o,ae,4),2&n){let r;H(r=G())&&(i.templates=r)}},viewQuery:function(n,i){if(1&n&&(K(qte,5),K(zte,5),K(Ute,5),K(jte,5),K($te,5),K(Wte,5),K(Kte,5)),2&n){let o;H(o=G())&&(i.content=o.first),H(o=G())&&(i.navbar=o.first),H(o=G())&&(i.inkbar=o.first),H(o=G())&&(i.prevBtn=o.first),H(o=G())&&(i.nextBtn=o.first),H(o=G())&&(i.tabLink=o),H(o=G())&&(i.tab=o)}},hostAttrs:[1,"p-element"],inputs:{model:"model",activeItem:"activeItem",scrollable:"scrollable",popup:"popup",style:"style",styleClass:"styleClass",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy"},outputs:{activeItemChange:"activeItemChange"},decls:11,vars:11,consts:[[3,"ngClass","ngStyle"],[1,"p-tabmenu-nav-container"],["class","p-tabmenu-nav-prev p-tabmenu-nav-btn p-link","type","button","role","navigation","pRipple","",3,"click",4,"ngIf"],[1,"p-tabmenu-nav-content",3,"scroll"],["content",""],["role","menubar",1,"p-tabmenu-nav","p-reset"],["navbar",""],["role","presentation","pTooltip","",3,"ngStyle","class","ngClass","tooltipOptions",4,"ngFor","ngForOf"],["role","none",1,"p-tabmenu-ink-bar"],["inkbar",""],["class","p-tabmenu-nav-next p-tabmenu-nav-btn p-link","type","button","role","navigation","pRipple","",3,"click",4,"ngIf"],["type","button","role","navigation","pRipple","",1,"p-tabmenu-nav-prev","p-tabmenu-nav-btn","p-link",3,"click"],["prevBtn",""],[4,"ngIf"],[4,"ngTemplateOutlet"],["role","presentation","pTooltip","",3,"ngStyle","ngClass","tooltipOptions"],["tab",""],["class","p-menuitem-link","role","menuitem","pRipple","",3,"target","click","keydown","focus",4,"ngIf"],["role","menuitem","class","p-menuitem-link","pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","click","keydown","focus",4,"ngIf"],["role","menuitem","pRipple","",1,"p-menuitem-link",3,"target","click","keydown","focus"],["tabLink",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-menuitem-icon",3,"ngClass","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlLabel",""],["class","p-menuitem-badge",3,"ngClass",4,"ngIf"],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],[1,"p-menuitem-badge",3,"ngClass"],["role","menuitem","pRipple","",1,"p-menuitem-link",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","click","keydown","focus"],["htmlRouteLabel",""],["type","button","role","navigation","pRipple","",1,"p-tabmenu-nav-next","p-tabmenu-nav-btn","p-link",3,"click"],["nextBtn",""]],template:function(n,i){1&n&&(l(0,"div",0)(1,"div",1),m(2,Yte,4,2,"button",2),l(3,"div",3,4),v("scroll",function(r){return i.onScroll(r)}),l(5,"ul",5,6),m(7,fne,4,13,"li",7),D(8,"li",8,9),c()(),m(10,vne,4,2,"button",10),c()()),2&n&&(se(i.styleClass),d("ngClass",W(9,Cne,i.scrollable))("ngStyle",i.style),a(2),d("ngIf",i.scrollable&&!i.backwardIsDisabled),a(3),F("aria-labelledby",i.ariaLabelledBy)("aria-label",i.ariaLabel),a(2),d("ngForOf",i.focusableItems),a(3),d("ngIf",i.scrollable&&!i.forwardIsDisabled))},dependencies:function(){return[Fe,ut,ne,dt,nt,nr,Np,bt,$t,mp,ha]},styles:["@layer primeng{.p-tabmenu-nav-container{position:relative}.p-tabmenu-scrollable .p-tabmenu-nav-container{overflow:hidden}.p-tabmenu-nav-content{overflow-x:auto;overflow-y:hidden;scroll-behavior:smooth;scrollbar-width:none;overscroll-behavior:contain auto}.p-tabmenu-nav-btn{position:absolute;top:0;z-index:2;height:100%;display:flex;align-items:center;justify-content:center}.p-tabmenu-nav-prev{left:0}.p-tabmenu-nav-next{right:0}.p-tabview-nav-content::-webkit-scrollbar{display:none}.p-tabmenu-nav{display:flex;margin:0;padding:0;list-style-type:none;flex-wrap:nowrap}.p-tabmenu-nav a{cursor:pointer;-webkit-user-select:none;user-select:none;display:flex;align-items:center;position:relative;text-decoration:none;overflow:hidden}.p-tabmenu-nav a:focus{z-index:1}.p-tabmenu-nav .p-menuitem-text{line-height:1;white-space:nowrap}.p-tabmenu-ink-bar{display:none;z-index:1}.p-tabmenu-nav-content::-webkit-scrollbar{display:none}.p-tabmenuitem:not(.p-hidden){display:flex}}\n"],encapsulation:2,changeDetection:0})}return t})(),yne=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=me({imports:[Ne,zn,ze,Cn,Ti,mp,ha,zn,ze,Ti]})}return t})();function Tne(t,s){1&t&&D(0,"CheckIcon",7),2&t&&d("styleClass","p-checkbox-icon")}function wne(t,s){}function Ine(t,s){1&t&&m(0,wne,0,0,"ng-template")}function Sne(t,s){if(1&t&&(l(0,"span",8),m(1,Ine,1,0,null,9),c()),2&t){const e=p(2);a(1),d("ngTemplateOutlet",e.checkIconTemplate)}}function xne(t,s){if(1&t&&(Q(0),m(1,Tne,1,1,"CheckIcon",5),m(2,Sne,2,1,"span",6),J()),2&t){const e=p();a(1),d("ngIf",!e.checkIconTemplate),a(1),d("ngIf",e.checkIconTemplate)}}function Dne(t,s){if(1&t&&(l(0,"span"),_(1),c()),2&t){const e=p();a(1),S(e.label)}}function Mne(t,s){1&t&&Z(0)}const Sc=function(t){return{height:t}},kne=function(t,s){return{"p-highlight":t,"p-disabled":s}},Ene=function(t){return{"p-highlight":t}},Gp=function(t){return{$implicit:t}},Lne=["container"],Rne=["overlay"],One=["filterInput"],Ane=["in"],Pne=["items"],Fne=["scroller"];function Nne(t,s){if(1&t&&(Q(0),_(1),J()),2&t){const e=p(2);a(1),S(e.valuesAsString||"empty")}}function Vne(t,s){if(1&t){const e=E();l(0,"TimesCircleIcon",20),v("click",function(){C(e);const i=p(2).$implicit,o=p(3);return y(o.removeChip(i,o.event))}),c()}2&t&&d("styleClass","p-multiselect-token-icon")}function Bne(t,s){1&t&&Z(0)}function Hne(t,s){if(1&t){const e=E();l(0,"span",21),v("click",function(){C(e);const i=p(2).$implicit,o=p(3);return y(o.removeChip(i,o.event))}),m(1,Bne,1,0,"ng-container",22),c()}if(2&t){const e=p(5);a(1),d("ngTemplateOutlet",e.removeTokenIconTemplate)}}function Gne(t,s){if(1&t&&(Q(0),m(1,Vne,1,1,"TimesCircleIcon",18),m(2,Hne,2,1,"span",19),J()),2&t){const e=p(4);a(1),d("ngIf",!e.removeTokenIconTemplate),a(1),d("ngIf",e.removeTokenIconTemplate)}}function qne(t,s){if(1&t&&(l(0,"div",15,16)(2,"span",17),_(3),c(),m(4,Gne,3,2,"ng-container",7),c()),2&t){const e=s.$implicit,n=p(3);a(3),S(n.findLabelByValue(e)),a(1),d("ngIf",!n.disabled)}}function zne(t,s){if(1&t&&(Q(0),_(1),J()),2&t){const e=p(3);a(1),S(e.placeholder||e.defaultLabel||"empty")}}function Une(t,s){if(1&t&&(Q(0),m(1,qne,5,2,"div",14),m(2,zne,2,1,"ng-container",7),J()),2&t){const e=p(2);a(1),d("ngForOf",e.value),a(1),d("ngIf",!e.value||0===e.value.length)}}function jne(t,s){if(1&t&&(Q(0),m(1,Nne,2,1,"ng-container",7),m(2,Une,3,2,"ng-container",7),J()),2&t){const e=p();a(1),d("ngIf","comma"===e.display),a(1),d("ngIf","chip"===e.display)}}function $ne(t,s){1&t&&Z(0)}function Wne(t,s){if(1&t){const e=E();l(0,"TimesIcon",20),v("click",function(i){return C(e),y(p(2).clear(i))}),c()}2&t&&d("styleClass","p-multiselect-clear-icon")}function Kne(t,s){}function Qne(t,s){1&t&&m(0,Kne,0,0,"ng-template")}function Jne(t,s){if(1&t){const e=E();l(0,"span",24),v("click",function(i){return C(e),y(p(2).clear(i))}),m(1,Qne,1,0,null,22),c()}if(2&t){const e=p(2);a(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function Zne(t,s){if(1&t&&(Q(0),m(1,Wne,1,1,"TimesIcon",18),m(2,Jne,2,1,"span",23),J()),2&t){const e=p();a(1),d("ngIf",!e.clearIconTemplate),a(1),d("ngIf",e.clearIconTemplate)}}function Yne(t,s){1&t&&D(0,"span",27),2&t&&d("ngClass",p(2).dropdownIcon)}function Xne(t,s){1&t&&D(0,"ChevronDownIcon",28),2&t&&d("styleClass","p-multiselect-trigger-icon")}function eie(t,s){if(1&t&&(Q(0),m(1,Yne,1,1,"span",25),m(2,Xne,1,1,"ChevronDownIcon",26),J()),2&t){const e=p();a(1),d("ngIf",e.dropdownIcon),a(1),d("ngIf",!e.dropdownIcon)}}function tie(t,s){}function nie(t,s){1&t&&m(0,tie,0,0,"ng-template")}function iie(t,s){if(1&t&&(l(0,"span",29),m(1,nie,1,0,null,22),c()),2&t){const e=p();a(1),d("ngTemplateOutlet",e.dropdownIconTemplate)}}function sie(t,s){1&t&&Z(0)}function oie(t,s){1&t&&Z(0)}const kx=function(t){return{options:t}};function rie(t,s){if(1&t&&(Q(0),m(1,oie,1,0,"ng-container",8),J()),2&t){const e=p(3);a(1),d("ngTemplateOutlet",e.filterTemplate)("ngTemplateOutletContext",W(2,kx,e.filterOptions))}}function aie(t,s){1&t&&D(0,"CheckIcon",28),2&t&&d("styleClass","p-checkbox-icon")}function lie(t,s){}function cie(t,s){1&t&&m(0,lie,0,0,"ng-template")}function uie(t,s){if(1&t&&(l(0,"span",47),m(1,cie,1,0,null,22),c()),2&t){const e=p(6);a(1),d("ngTemplateOutlet",e.checkIconTemplate)}}function die(t,s){if(1&t&&(Q(0),m(1,aie,1,1,"CheckIcon",26),m(2,uie,2,1,"span",46),J()),2&t){const e=p(5);a(1),d("ngIf",!e.checkIconTemplate),a(1),d("ngIf",e.checkIconTemplate)}}const pie=function(t){return{"p-checkbox-disabled":t}},hie=function(t,s,e){return{"p-highlight":t,"p-focus":s,"p-disabled":e}};function mie(t,s){if(1&t){const e=E();l(0,"div",43)(1,"div",2)(2,"input",44),v("focus",function(){return C(e),y(p(4).onHeaderCheckboxFocus())})("blur",function(){return C(e),y(p(4).onHeaderCheckboxBlur())})("keydown.space",function(i){return C(e),y(p(4).toggleAll(i))}),c()(),l(3,"div",45),v("click",function(i){return C(e),y(p(4).toggleAll(i))}),m(4,die,3,2,"ng-container",7),c()()}if(2&t){const e=p(4);d("ngClass",W(6,pie,e.disabled||e.toggleAllDisabled)),a(2),d("checked",e.allChecked)("disabled",e.disabled||e.toggleAllDisabled),a(1),d("ngClass",Bt(8,hie,e.allChecked,e.headerCheckboxFocus,e.disabled||e.toggleAllDisabled)),F("aria-checked",e.allChecked),a(1),d("ngIf",e.allChecked)}}function fie(t,s){1&t&&D(0,"SearchIcon",28),2&t&&d("styleClass","p-multiselect-filter-icon")}function gie(t,s){}function _ie(t,s){1&t&&m(0,gie,0,0,"ng-template")}function bie(t,s){if(1&t&&(l(0,"span",52),m(1,_ie,1,0,null,22),c()),2&t){const e=p(5);a(1),d("ngTemplateOutlet",e.filterIconTemplate)}}function vie(t,s){if(1&t){const e=E();l(0,"div",48)(1,"input",49,50),v("input",function(i){return C(e),y(p(4).onFilterInputChange(i))}),c(),m(3,fie,1,1,"SearchIcon",26),m(4,bie,2,1,"span",51),c()}if(2&t){const e=p(4);a(1),d("value",e.filterValue||"")("disabled",e.disabled),F("autocomplete",e.autocomplete)("placeholder",e.filterPlaceHolder)("aria-label",e.ariaFilterLabel),a(2),d("ngIf",!e.filterIconTemplate),a(1),d("ngIf",e.filterIconTemplate)}}function Cie(t,s){1&t&&D(0,"TimesIcon",28),2&t&&d("styleClass","p-multiselect-close-icon")}function yie(t,s){}function Tie(t,s){1&t&&m(0,yie,0,0,"ng-template")}function wie(t,s){if(1&t&&(l(0,"span",53),m(1,Tie,1,0,null,22),c()),2&t){const e=p(4);a(1),d("ngTemplateOutlet",e.closeIconTemplate)}}function Iie(t,s){if(1&t){const e=E();m(0,mie,5,12,"div",39),m(1,vie,5,7,"div",40),l(2,"button",41),v("click",function(i){return C(e),y(p(3).close(i))}),m(3,Cie,1,1,"TimesIcon",26),m(4,wie,2,1,"span",42),c()}if(2&t){const e=p(3);d("ngIf",e.showToggleAll&&!e.selectionLimit),a(1),d("ngIf",e.filter),a(2),d("ngIf",!e.closeIconTemplate),a(1),d("ngIf",e.closeIconTemplate)}}function Sie(t,s){if(1&t&&(l(0,"div",36),xt(1),m(2,sie,1,0,"ng-container",22),m(3,rie,2,4,"ng-container",37),m(4,Iie,5,4,"ng-template",null,38,ve),c()),2&t){const e=B(5),n=p(2);a(2),d("ngTemplateOutlet",n.headerTemplate),a(1),d("ngIf",n.filterTemplate)("ngIfElse",e)}}function xie(t,s){1&t&&Z(0)}const Ex=function(t,s){return{$implicit:t,options:s}};function Die(t,s){if(1&t&&m(0,xie,1,0,"ng-container",8),2&t){const e=s.$implicit,n=s.options;p(2),d("ngTemplateOutlet",B(6))("ngTemplateOutletContext",Se(2,Ex,e,n))}}function Mie(t,s){1&t&&Z(0)}function kie(t,s){if(1&t&&m(0,Mie,1,0,"ng-container",8),2&t){const e=s.options;d("ngTemplateOutlet",p(4).loaderTemplate)("ngTemplateOutletContext",W(2,kx,e))}}function Eie(t,s){1&t&&(Q(0),m(1,kie,1,4,"ng-template",56),J())}function Lie(t,s){if(1&t){const e=E();l(0,"p-scroller",54,55),v("onLazyLoad",function(i){return C(e),y(p(2).onLazyLoad.emit(i))}),m(2,Die,1,5,"ng-template",13),m(3,Eie,2,0,"ng-container",7),c()}if(2&t){const e=p(2);j(W(9,Sc,e.scrollHeight)),d("items",e.optionsToRender)("itemSize",e.virtualScrollItemSize||e._itemSize)("autoSize",!0)("tabindex",-1)("lazy",e.lazy)("options",e.virtualScrollOptions),a(3),d("ngIf",e.loaderTemplate)}}function Rie(t,s){1&t&&Z(0)}const Oie=function(){return{}};function Aie(t,s){if(1&t&&(Q(0),m(1,Rie,1,0,"ng-container",8),J()),2&t){p();const e=B(6),n=p();a(1),d("ngTemplateOutlet",e)("ngTemplateOutletContext",Se(3,Ex,n.optionsToRender,V(2,Oie)))}}function Pie(t,s){if(1&t&&(l(0,"span"),_(1),c()),2&t){const e=p().$implicit,n=p(4);a(1),S(n.getOptionGroupLabel(e)||"empty")}}function Fie(t,s){1&t&&Z(0)}function Nie(t,s){1&t&&Z(0)}function Vie(t,s){if(1&t&&(l(0,"li",62),m(1,Pie,2,1,"span",7),m(2,Fie,1,0,"ng-container",8),c(),m(3,Nie,1,0,"ng-container",8)),2&t){const e=s.$implicit,n=p(2).options,i=B(5),o=p(2);d("ngStyle",W(6,Sc,n.itemSize+"px")),a(1),d("ngIf",!o.groupTemplate),a(1),d("ngTemplateOutlet",o.groupTemplate)("ngTemplateOutletContext",W(8,Gp,e)),a(1),d("ngTemplateOutlet",i)("ngTemplateOutletContext",W(10,Gp,o.getOptionGroupChildren(e)))}}function Bie(t,s){if(1&t&&(Q(0),m(1,Vie,4,12,"ng-template",61),J()),2&t){const e=p().$implicit;a(1),d("ngForOf",e)}}function Hie(t,s){1&t&&Z(0)}function Gie(t,s){if(1&t&&(Q(0),m(1,Hie,1,0,"ng-container",8),J()),2&t){const e=p().$implicit,n=B(5);a(1),d("ngTemplateOutlet",n)("ngTemplateOutletContext",W(2,Gp,e))}}function qie(t,s){if(1&t){const e=E();l(0,"p-multiSelectItem",63),v("onClick",function(i){return C(e),y(p(4).onOptionClick(i))})("onKeydown",function(i){return C(e),y(p(4).onOptionKeydown(i))}),c()}if(2&t){const e=s.$implicit,n=p(2).options,i=p(2);d("option",e)("selected",i.isSelected(e))("label",i.getOptionLabel(e))("disabled",i.isOptionDisabled(e))("template",i.itemTemplate)("checkIconTemplate",i.checkIconTemplate)("itemSize",n.itemSize)}}function zie(t,s){1&t&&m(0,qie,1,7,"ng-template",61),2&t&&d("ngForOf",s.$implicit)}function Uie(t,s){if(1&t&&(Q(0),_(1),J()),2&t){const e=p(4);a(1),x(" ",e.emptyFilterMessageLabel," ")}}function jie(t,s){1&t&&Z(0,null,65)}function $ie(t,s){if(1&t&&(l(0,"li",64),m(1,Uie,2,1,"ng-container",37),m(2,jie,2,0,"ng-container",22),c()),2&t){const e=p().options,n=p(2);d("ngStyle",W(4,Sc,e.itemSize+"px")),a(1),d("ngIf",!n.emptyFilterTemplate&&!n.emptyTemplate)("ngIfElse",n.emptyFilter),a(1),d("ngTemplateOutlet",n.emptyFilterTemplate||n.emptyTemplate)}}function Wie(t,s){if(1&t&&(Q(0),_(1),J()),2&t){const e=p(4);a(1),x(" ",e.emptyMessageLabel," ")}}function Kie(t,s){1&t&&Z(0,null,66)}function Qie(t,s){if(1&t&&(l(0,"li",64),m(1,Wie,2,1,"ng-container",37),m(2,Kie,2,0,"ng-container",22),c()),2&t){const e=p().options,n=p(2);d("ngStyle",W(4,Sc,e.itemSize+"px")),a(1),d("ngIf",!n.emptyTemplate)("ngIfElse",n.empty),a(1),d("ngTemplateOutlet",n.emptyTemplate)}}function Jie(t,s){if(1&t&&(l(0,"ul",57,58),m(2,Bie,2,1,"ng-container",7),m(3,Gie,2,4,"ng-container",7),m(4,zie,1,1,"ng-template",null,59,ve),m(6,$ie,3,6,"li",60),m(7,Qie,3,6,"li",60),c()),2&t){const e=s.options,n=p(2);j(e.contentStyle),d("ngClass",e.contentStyleClass),a(2),d("ngIf",n.group),a(1),d("ngIf",!n.group),a(3),d("ngIf",n.hasFilter()&&n.isEmpty()),a(1),d("ngIf",!n.hasFilter()&&n.isEmpty())}}function Zie(t,s){1&t&&Z(0)}function Yie(t,s){if(1&t&&(l(0,"div",67),xt(1,1),m(2,Zie,1,0,"ng-container",22),c()),2&t){const e=p(2);a(2),d("ngTemplateOutlet",e.footerTemplate)}}const Xie=function(){return["p-multiselect-panel p-component"]};function ese(t,s){if(1&t){const e=E();l(0,"div",30),v("keydown",function(i){return C(e),y(p().onKeydown(i))}),m(1,Sie,6,3,"div",31),l(2,"div",32),m(3,Lie,4,11,"p-scroller",33),m(4,Aie,2,6,"ng-container",7),m(5,Jie,8,7,"ng-template",null,34,ve),c(),m(7,Yie,3,1,"div",35),c()}if(2&t){const e=p();se(e.panelStyleClass),d("ngClass",V(10,Xie))("ngStyle",e.panelStyle),a(1),d("ngIf",e.showHeader),a(1),qi("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),a(1),d("ngIf",e.virtualScroll),a(1),d("ngIf",!e.virtualScroll),a(3),d("ngIf",e.footerFacet||e.footerTemplate)}}const tse=[[["p-header"]],[["p-footer"]]],nse=function(t,s,e,n){return{"p-multiselect p-component":!0,"p-multiselect-open":t,"p-multiselect-chip":s,"p-focus":e,"p-disabled":n}},ise=function(t,s){return{"p-placeholder":t,"p-multiselect-label-empty":s}},sse=function(t,s){return{$implicit:t,removeChip:s}},ose=function(){return{"p-multiselect-trigger":!0}},rse=["p-header","p-footer"],ase={provide:dn,useExisting:Ze(()=>Lx),multi:!0};let lse=(()=>{class t{option;selected;label;disabled;itemSize;template;checkIconTemplate;onClick=new q;onKeydown=new q;onOptionClick(e){this.onClick.emit({originalEvent:e,option:this.option,selected:this.selected})}onOptionKeydown(e){this.onKeydown.emit({originalEvent:e,option:this.option})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=U({type:t,selectors:[["p-multiSelectItem"]],hostAttrs:[1,"p-element"],inputs:{option:"option",selected:"selected",label:"label",disabled:"disabled",itemSize:"itemSize",template:"template",checkIconTemplate:"checkIconTemplate"},outputs:{onClick:"onClick",onKeydown:"onKeydown"},decls:6,vars:18,consts:[["pRipple","",1,"p-multiselect-item",3,"ngStyle","ngClass","click","keydown"],[1,"p-checkbox","p-component"],[1,"p-checkbox-box",3,"ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"styleClass",4,"ngIf"],["class","p-checkbox-icon",4,"ngIf"],[3,"styleClass"],[1,"p-checkbox-icon"],[4,"ngTemplateOutlet"]],template:function(n,i){1&n&&(l(0,"li",0),v("click",function(r){return i.onOptionClick(r)})("keydown",function(r){return i.onOptionKeydown(r)}),l(1,"div",1)(2,"div",2),m(3,xne,3,2,"ng-container",3),c()(),m(4,Dne,2,1,"span",3),m(5,Mne,1,0,"ng-container",4),c()),2&n&&(d("ngStyle",W(9,Sc,i.itemSize+"px"))("ngClass",Se(11,kne,i.selected,i.disabled)),F("aria-label",i.label)("tabindex",i.disabled?null:"0"),a(2),d("ngClass",W(14,Ene,i.selected)),a(1),d("ngIf",i.selected),a(1),d("ngIf",!i.template),a(1),d("ngTemplateOutlet",i.template)("ngTemplateOutletContext",W(16,Gp,i.option)))},dependencies:function(){return[Fe,ne,dt,nt,bt,Gn]},encapsulation:2})}return t})(),Lx=(()=>{class t{el;renderer;cd;zone;filterService;config;overlayService;style;styleClass;panelStyle;panelStyleClass;inputId;disabled;readonly;group;filter=!0;filterPlaceHolder;filterLocale;overlayVisible;tabindex;appendTo;dataKey;name;label;ariaLabelledBy;displaySelectedLabel=!0;maxSelectedLabels=3;selectedItemsLabel="ellipsis";showToggleAll=!0;emptyFilterMessage="";emptyMessage="";resetFilterOnHide=!1;dropdownIcon;optionLabel;optionValue;optionDisabled;optionGroupLabel;optionGroupChildren="items";showHeader=!0;filterBy;scrollHeight="200px";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;overlayOptions;ariaFilterLabel;filterMatchMode="contains";tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;autofocusFilter=!0;display="comma";autocomplete="on";showClear=!1;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.")}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.")}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.")}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.")}set defaultLabel(e){this._defaultLabel=e,this.updateLabel()}get defaultLabel(){return this._defaultLabel}set placeholder(e){this._placeholder=e,this.updateLabel()}get placeholder(){return this._placeholder}get options(){return this._options}set options(e){this._options=e,this.updateLabel()}get filterValue(){return this._filterValue}set filterValue(e){this._filterValue=e,this.activateFilter()}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e,console.warn("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}get selectionLimit(){return this._selectionLimit}set selectionLimit(e){this._selectionLimit=e,this.checkSelectionLimit()}containerViewChild;overlayViewChild;filterInputChild;accessibleViewChild;itemsViewChild;scroller;footerFacet;headerFacet;templates;onChange=new q;onFilter=new q;onFocus=new q;onBlur=new q;onClick=new q;onClear=new q;onPanelShow=new q;onPanelHide=new q;onLazyLoad=new q;onRemove=new q;_autoZIndex;_baseZIndex;_showTransitionOptions;_hideTransitionOptions;_defaultLabel;_placeholder;_itemSize;_selectionLimit;value;_filteredOptions;onModelChange=()=>{};onModelTouched=()=>{};valuesAsString;focus;filled;_filterValue;filtered;itemTemplate;groupTemplate;loaderTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;selectedItemsTemplate;checkIconTemplate;filterIconTemplate;removeTokenIconTemplate;closeIconTemplate;clearIconTemplate;dropdownIconTemplate;headerCheckboxFocus;filterOptions;_options;maxSelectionLimitReached;preventModelTouched;preventDocumentDefault;constructor(e,n,i,o,r,u,h){this.el=e,this.renderer=n,this.cd=i,this.zone=o,this.filterService=r,this.config=u,this.overlayService=h}ngOnInit(){this.updateLabel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"selectedItems":this.selectedItemsTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"filter":this.filterTemplate=e.template;break;case"emptyfilter":this.emptyFilterTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"loader":this.loaderTemplate=e.template;break;case"checkicon":this.checkIconTemplate=e.template;break;case"filtericon":this.filterIconTemplate=e.template;break;case"removetokenicon":this.removeTokenIconTemplate=e.template;break;case"closeicon":this.closeIconTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template;break;case"dropdownicon":this.dropdownIconTemplate=e.template}})}ngAfterViewInit(){this.overlayVisible&&this.show()}ngAfterViewChecked(){this.filtered&&(this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild?.alignOverlay()},1)}),this.filtered=!1)}getOptionLabel(e){return this.optionLabel?Y.resolveFieldData(e,this.optionLabel):e&&null!=e.label?e.label:e}getOptionValue(e){return this.optionValue?Y.resolveFieldData(e,this.optionValue):!this.optionLabel&&e&&void 0!==e.value?e.value:e}getOptionGroupLabel(e){return this.optionGroupLabel?Y.resolveFieldData(e,this.optionGroupLabel):e&&null!=e.label?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?Y.resolveFieldData(e,this.optionGroupChildren):e.items}isOptionDisabled(e){return(this.optionDisabled?Y.resolveFieldData(e,this.optionDisabled):!(!e||void 0===e.disabled)&&e.disabled)||this.maxSelectionLimitReached&&!this.isSelected(e)}writeValue(e){this.value=e,this.updateLabel(),this.updateFilledState(),this.checkSelectionLimit(),this.cd.markForCheck()}checkSelectionLimit(){this.maxSelectionLimitReached=!(!this.selectionLimit||!this.value||this.value.length!==this.selectionLimit)}updateFilledState(){this.filled=this.value&&this.value.length>0}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onOptionClick(e){let n=e.option;if(this.isOptionDisabled(n))return;let i=this.getOptionValue(n),o=this.findSelectionIndex(i);-1!=o?(this.value=this.value.filter((r,u)=>u!=o),this.onRemove.emit({newValue:this.value,removed:i}),this.selectionLimit&&(this.maxSelectionLimitReached=!1)):((!this.selectionLimit||!this.value||this.value.length{if(this.group){let o=this.getOptionGroupChildren(i);o&&o.forEach(r=>{let u=this.isOptionDisabled(r);(!u||u&&this.isSelected(r))&&n.push(this.getOptionValue(r))})}else{let o=this.isOptionDisabled(i);(!o||o&&this.isSelected(i))&&n.push(this.getOptionValue(i))}}),this.value=n}uncheckAll(){let n=[];this.optionsToRender.forEach(i=>{this.group?i.items&&i.items.forEach(o=>{this.isOptionDisabled(o)&&this.isSelected(o)&&n.push(this.getOptionValue(o))}):this.isOptionDisabled(i)&&this.isSelected(i)&&n.push(this.getOptionValue(i))}),this.value=n}show(){this.overlayVisible||(this.overlayVisible=!0,this.preventDocumentDefault=!0,this.cd.markForCheck())}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.filterInputChild&&this.filterInputChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&this.filterInputChild.nativeElement.focus()),this.onPanelShow.emit();break;case"void":this.onModelTouched()}}hide(){this.overlayVisible=!1,this.resetFilterOnHide&&this.resetFilter(),this.onPanelHide.emit(),this.cd.markForCheck()}resetFilter(){this.filterInputChild&&this.filterInputChild.nativeElement&&(this.filterInputChild.nativeElement.value=""),this._filterValue=null,this._filteredOptions=null}close(e){this.hide(),e.preventDefault(),e.stopPropagation()}clear(e){this.value=null,this.updateLabel(),this.updateFilledState(),this.checkSelectionLimit(),this.onClear.emit(),this.onModelChange(this.value),e.stopPropagation()}onMouseclick(e,n){this.disabled||this.readonly||e.target.isSameNode(this.accessibleViewChild?.nativeElement)||(this.onClick.emit(e),!this.overlayViewChild?.el?.nativeElement?.contains(e.target)&&!R.hasClass(e.target,"p-multiselect-token-icon")&&(this.overlayVisible?this.hide():this.show(),n.focus()))}removeChip(e,n){this.value=this.value.filter(i=>!Y.equals(i,e,this.dataKey)),this.onModelChange(this.value),this.checkSelectionLimit(),this.onChange.emit({originalEvent:n,value:this.value,itemValue:e}),this.updateLabel(),this.updateFilledState()}onInputFocus(e){this.focus=!0,this.onFocus.emit({originalEvent:e})}onInputBlur(e){this.focus=!1,this.onBlur.emit({originalEvent:e}),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}onOptionKeydown(e){if(!this.readonly)switch(e.originalEvent.which){case 40:var n=this.findNextItem(e.originalEvent.target.parentElement);n&&n.focus(),e.originalEvent.preventDefault();break;case 38:var i=this.findPrevItem(e.originalEvent.target.parentElement);i&&i.focus(),e.originalEvent.preventDefault();break;case 13:this.onOptionClick(e),e.originalEvent.preventDefault();break;case 27:case 9:this.hide()}}findNextItem(e){let n=e.nextElementSibling;return n?R.hasClass(n.children[0],"p-disabled")||R.isHidden(n.children[0])||R.hasClass(n,"p-multiselect-item-group")?this.findNextItem(n):n.children[0]:null}findPrevItem(e){let n=e.previousElementSibling;return n?R.hasClass(n.children[0],"p-disabled")||R.isHidden(n.children[0])||R.hasClass(n,"p-multiselect-item-group")?this.findPrevItem(n):n.children[0]:null}onKeydown(e){switch(e.which){case 40:!this.overlayVisible&&e.altKey&&(this.show(),e.preventDefault());break;case 32:this.overlayVisible||(this.show(),e.preventDefault());break;case 27:this.hide()}}updateLabel(){if(this.value&&this.options&&this.value.length&&this.displaySelectedLabel){let e="";for(let n=0;n0&&(e+=", "),e+=i)}if(this.value.length<=this.maxSelectedLabels||"ellipsis"===this.selectedItemsLabel)this.valuesAsString=e;else{let n=/{(.*?)}/;this.valuesAsString=n.test(this.selectedItemsLabel)?this.selectedItemsLabel.replace(this.selectedItemsLabel.match(n)[0],this.value.length+""):this.selectedItemsLabel}}else this.valuesAsString=this.placeholder||this.defaultLabel}findLabelByValue(e){if(this.group){let n=null;for(let i=0;i0}isEmpty(){return!this.optionsToRender||this.optionsToRender&&0===this.optionsToRender.length}onFilterInputChange(e){this._filterValue=e.target.value,this.activateFilter(),this.filtered=!0,this.onFilter.emit({originalEvent:e,filter:this._filterValue}),this.cd.detectChanges()}activateFilter(){if(this.hasFilter()&&this._options){let e=(this.filterBy||this.optionLabel||"label").split(",");if(this.group){let n=[];for(let i of this.options){let o=this.filterService.filter(this.getOptionGroupChildren(i),e,this.filterValue,this.filterMatchMode,this.filterLocale);o&&o.length&&n.push({...i,[this.optionGroupChildren]:o})}this._filteredOptions=n}else this._filteredOptions=this.filterService.filter(this.options,e,this._filterValue,this.filterMatchMode,this.filterLocale)}else this._filteredOptions=null}onHeaderCheckboxFocus(){this.headerCheckboxFocus=!0}onHeaderCheckboxBlur(){this.headerCheckboxFocus=!1}static \u0275fac=function(n){return new(n||t)(M(Pe),M(Vt),M(rt),M(je),M(ec),M(Hn),M(po))};static \u0275cmp=U({type:t,selectors:[["p-multiSelect"]],contentQueries:function(n,i,o){if(1&n&&(Ye(o,tc,5),Ye(o,pa,5),Ye(o,ae,4)),2&n){let r;H(r=G())&&(i.footerFacet=r.first),H(r=G())&&(i.headerFacet=r.first),H(r=G())&&(i.templates=r)}},viewQuery:function(n,i){if(1&n&&(K(Lne,5),K(Rne,5),K(One,5),K(Ane,5),K(Pne,5),K(Fne,5)),2&n){let o;H(o=G())&&(i.containerViewChild=o.first),H(o=G())&&(i.overlayViewChild=o.first),H(o=G())&&(i.filterInputChild=o.first),H(o=G())&&(i.accessibleViewChild=o.first),H(o=G())&&(i.itemsViewChild=o.first),H(o=G())&&(i.scroller=o.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(n,i){2&n&&Jn("p-inputwrapper-filled",i.filled)("p-inputwrapper-focus",i.focus||i.overlayVisible)("p-multiselect-clearable",i.showClear&&!i.disabled)},inputs:{style:"style",styleClass:"styleClass",panelStyle:"panelStyle",panelStyleClass:"panelStyleClass",inputId:"inputId",disabled:"disabled",readonly:"readonly",group:"group",filter:"filter",filterPlaceHolder:"filterPlaceHolder",filterLocale:"filterLocale",overlayVisible:"overlayVisible",tabindex:"tabindex",appendTo:"appendTo",dataKey:"dataKey",name:"name",label:"label",ariaLabelledBy:"ariaLabelledBy",displaySelectedLabel:"displaySelectedLabel",maxSelectedLabels:"maxSelectedLabels",selectedItemsLabel:"selectedItemsLabel",showToggleAll:"showToggleAll",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",resetFilterOnHide:"resetFilterOnHide",dropdownIcon:"dropdownIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",showHeader:"showHeader",filterBy:"filterBy",scrollHeight:"scrollHeight",lazy:"lazy",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",filterMatchMode:"filterMatchMode",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",autofocusFilter:"autofocusFilter",display:"display",autocomplete:"autocomplete",showClear:"showClear",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",defaultLabel:"defaultLabel",placeholder:"placeholder",options:"options",filterValue:"filterValue",itemSize:"itemSize",selectionLimit:"selectionLimit"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onClear:"onClear",onPanelShow:"onPanelShow",onPanelHide:"onPanelHide",onLazyLoad:"onLazyLoad",onRemove:"onRemove"},features:[Qe([ase])],ngContentSelectors:rse,decls:16,vars:43,consts:[[3,"ngClass","ngStyle","click"],["container",""],[1,"p-hidden-accessible"],["type","text","readonly","readonly","aria-haspopup","listbox","role","listbox",3,"disabled","focus","blur","keydown"],["in",""],[1,"p-multiselect-label-container",3,"pTooltip","tooltipPosition","positionStyle","tooltipStyleClass"],[1,"p-multiselect-label",3,"ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngClass"],["class","p-multiselect-trigger-icon",4,"ngIf"],[3,"visible","options","target","appendTo","autoZIndex","baseZIndex","showTransitionOptions","hideTransitionOptions","visibleChange","onAnimationStart","onHide"],["overlay",""],["pTemplate","content"],["class","p-multiselect-token",4,"ngFor","ngForOf"],[1,"p-multiselect-token"],["token",""],[1,"p-multiselect-token-label"],[3,"styleClass","click",4,"ngIf"],["class","p-multiselect-token-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-multiselect-token-icon",3,"click"],[4,"ngTemplateOutlet"],["class","p-multiselect-clear-icon",3,"click",4,"ngIf"],[1,"p-multiselect-clear-icon",3,"click"],["class","p-multiselect-trigger-icon",3,"ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[1,"p-multiselect-trigger-icon",3,"ngClass"],[3,"styleClass"],[1,"p-multiselect-trigger-icon"],[3,"ngClass","ngStyle","keydown"],["class","p-multiselect-header",4,"ngIf"],[1,"p-multiselect-items-wrapper"],[3,"items","style","itemSize","autoSize","tabindex","lazy","options","onLazyLoad",4,"ngIf"],["buildInItems",""],["class","p-multiselect-footer",4,"ngIf"],[1,"p-multiselect-header"],[4,"ngIf","ngIfElse"],["builtInFilterElement",""],["class","p-checkbox p-component",3,"ngClass",4,"ngIf"],["class","p-multiselect-filter-container",4,"ngIf"],["type","button","pRipple","",1,"p-multiselect-close","p-link","p-button-icon-only",3,"click"],["class","p-multiselect-close-icon",4,"ngIf"],[1,"p-checkbox","p-component",3,"ngClass"],["type","checkbox","readonly","readonly",3,"checked","disabled","focus","blur","keydown.space"],["role","checkbox",1,"p-checkbox-box",3,"ngClass","click"],["class","p-checkbox-icon",4,"ngIf"],[1,"p-checkbox-icon"],[1,"p-multiselect-filter-container"],["type","text","role","textbox",1,"p-multiselect-filter","p-inputtext","p-component",3,"value","disabled","input"],["filterInput",""],["class","p-multiselect-filter-icon",4,"ngIf"],[1,"p-multiselect-filter-icon"],[1,"p-multiselect-close-icon"],[3,"items","itemSize","autoSize","tabindex","lazy","options","onLazyLoad"],["scroller",""],["pTemplate","loader"],["role","listbox","aria-multiselectable","true",1,"p-multiselect-items","p-component",3,"ngClass"],["items",""],["itemslist",""],["class","p-multiselect-empty-message",3,"ngStyle",4,"ngIf"],["ngFor","",3,"ngForOf"],[1,"p-multiselect-item-group",3,"ngStyle"],[3,"option","selected","label","disabled","template","checkIconTemplate","itemSize","onClick","onKeydown"],[1,"p-multiselect-empty-message",3,"ngStyle"],["emptyFilter",""],["empty",""],[1,"p-multiselect-footer"]],template:function(n,i){if(1&n){const o=E();_n(tse),l(0,"div",0,1),v("click",function(u){C(o);const h=B(4);return y(i.onMouseclick(u,h))}),l(2,"div",2)(3,"input",3,4),v("focus",function(u){return i.onInputFocus(u)})("blur",function(u){return i.onInputBlur(u)})("keydown",function(u){return i.onKeydown(u)}),c()(),l(5,"div",5)(6,"div",6),m(7,jne,3,2,"ng-container",7),m(8,$ne,1,0,"ng-container",8),c(),m(9,Zne,3,2,"ng-container",7),c(),l(10,"div",9),m(11,eie,3,2,"ng-container",7),m(12,iie,2,1,"span",10),c(),l(13,"p-overlay",11,12),v("visibleChange",function(u){return i.overlayVisible=u})("onAnimationStart",function(u){return i.onOverlayAnimationStart(u)})("onHide",function(){return i.hide()}),m(15,ese,8,11,"ng-template",13),c()()}2&n&&(se(i.styleClass),d("ngClass",Li(31,nse,i.overlayVisible,"chip"===i.display,i.focus,i.disabled))("ngStyle",i.style),a(3),d("disabled",i.disabled),F("label",i.label)("id",i.inputId)("name",i.name)("tabindex",i.tabindex)("aria-expanded",i.overlayVisible)("aria-labelledby",i.ariaLabelledBy),a(2),d("pTooltip",i.tooltip)("tooltipPosition",i.tooltipPosition)("positionStyle",i.tooltipPositionStyle)("tooltipStyleClass",i.tooltipStyleClass),a(1),d("ngClass",Se(36,ise,i.valuesAsString===(i.defaultLabel||i.placeholder),!(null!=i.valuesAsString&&0!==i.valuesAsString.length||null!=i.placeholder&&0!==i.placeholder.length))),a(1),d("ngIf",!i.selectedItemsTemplate),a(1),d("ngTemplateOutlet",i.selectedItemsTemplate)("ngTemplateOutletContext",Se(39,sse,i.value,i.removeChip.bind(i))),a(1),d("ngIf",null!=i.value&&i.filled&&!i.disabled&&i.showClear),a(1),d("ngClass",V(42,ose)),a(1),d("ngIf",!i.dropdownIconTemplate),a(1),d("ngIf",i.dropdownIconTemplate),a(1),d("visible",i.overlayVisible)("options",i.overlayOptions)("target","@parent")("appendTo",i.appendTo)("autoZIndex",i.autoZIndex)("baseZIndex",i.baseZIndex)("showTransitionOptions",i.showTransitionOptions)("hideTransitionOptions",i.hideTransitionOptions))},dependencies:function(){return[Fe,ut,ne,dt,nt,k_,ae,$t,bt,L_,Gn,fa,ir,xn,ho,lse]},styles:["@layer primeng{.p-multiselect{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}.p-multiselect-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-multiselect-label-container{overflow:hidden;flex:1 1 auto;cursor:pointer}.p-multiselect-label{display:block;white-space:nowrap;cursor:pointer;overflow:hidden;text-overflow:ellipsis}.p-multiselect-label-empty{overflow:hidden;visibility:hidden}.p-multiselect-token{cursor:default;display:inline-flex;align-items:center;flex:0 0 auto}.p-multiselect-token-icon{cursor:pointer}.p-multiselect-items-wrapper{overflow:auto}.p-multiselect-items{margin:0;padding:0;list-style-type:none}.p-multiselect-item{cursor:pointer;display:flex;align-items:center;font-weight:400;white-space:nowrap;position:relative;overflow:hidden}.p-multiselect-header{display:flex;align-items:center;justify-content:space-between}.p-multiselect-filter-container{position:relative;flex:1 1 auto}.p-multiselect-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-multiselect-filter-container .p-inputtext{width:100%}.p-multiselect-close{display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;position:relative}.p-fluid .p-multiselect{display:flex}.p-multiselect-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-multiselect-clearable{position:relative}}\n"],encapsulation:2,changeDetection:0})}return t})(),cse=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=me({imports:[Ne,fp,ze,Ti,Cn,ma,Gn,fa,ir,xn,ho,Gn,fp,ze,ma]})}return t})(),Rx=(()=>{class t{el;ngModel;control;cd;autoResize;onResize=new q;filled;cachedScrollHeight;ngModelSubscription;ngControlSubscription;constructor(e,n,i,o){this.el=e,this.ngModel=n,this.control=i,this.cd=o}ngOnInit(){this.ngModel&&(this.ngModelSubscription=this.ngModel.valueChanges.subscribe(()=>{this.updateState()})),this.control&&(this.ngControlSubscription=this.control.valueChanges.subscribe(()=>{this.updateState()}))}ngAfterViewInit(){this.autoResize&&this.resize(),this.updateFilledState(),this.cd.detectChanges()}onInput(e){this.updateState()}updateFilledState(){this.filled=this.el.nativeElement.value&&this.el.nativeElement.value.length}resize(e){this.el.nativeElement.style.height="auto",this.el.nativeElement.style.height=this.el.nativeElement.scrollHeight+"px",parseFloat(this.el.nativeElement.style.height)>=parseFloat(this.el.nativeElement.style.maxHeight)?(this.el.nativeElement.style.overflowY="scroll",this.el.nativeElement.style.height=this.el.nativeElement.style.maxHeight):this.el.nativeElement.style.overflow="hidden",this.onResize.emit(e||{})}updateState(){this.updateFilledState(),this.autoResize&&this.resize()}ngOnDestroy(){this.ngModelSubscription&&this.ngModelSubscription.unsubscribe(),this.ngControlSubscription&&this.ngControlSubscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)(M(Pe),M(Ce,8),M(Qi,8),M(rt))};static \u0275dir=fe({type:t,selectors:[["","pInputTextarea",""]],hostAttrs:[1,"p-inputtextarea","p-inputtext","p-component","p-element"],hostVars:4,hostBindings:function(n,i){1&n&&v("input",function(r){return i.onInput(r)}),2&n&&Jn("p-filled",i.filled)("p-inputtextarea-resizable",i.autoResize)},inputs:{autoResize:"autoResize"},outputs:{onResize:"onResize"}})}return t})(),use=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=me({imports:[Ne]})}return t})();const dse=["sublist"];function pse(t,s){if(1&t&&D(0,"li",5),2&t){const e=p().$implicit,n=p();j(n.getItemProp(e,"style")),d("id",n.getItemId(e))("ngClass",n.getSeparatorItemClass(e)),F("data-pc-section","separator")}}function hse(t,s){if(1&t&&D(0,"span",18),2&t){const e=p(3).$implicit,n=p();d("ngClass",n.getItemProp(e,"icon"))("ngStyle",n.getItemProp(e,"iconStyle")),F("data-pc-section","icon")("aria-hidden",!0)("tabindex",-1)}}function mse(t,s){if(1&t&&(l(0,"span",19),_(1),c()),2&t){const e=p(3).$implicit,n=p();F("data-pc-section","label"),a(1),x(" ",n.getItemLabel(e)," ")}}function fse(t,s){if(1&t&&D(0,"span",20),2&t){const e=p(3).$implicit;d("innerHTML",p().getItemLabel(e),Zt),F("data-pc-section","label")}}function gse(t,s){if(1&t&&(l(0,"span",21),_(1),c()),2&t){const e=p(3).$implicit,n=p();d("ngClass",n.getItemProp(e,"badgeStyleClass")),a(1),S(n.getItemProp(e,"badge"))}}function _se(t,s){1&t&&D(0,"AngleRightIcon",24),2&t&&(d("styleClass","p-submenu-icon"),F("data-pc-section","submenuicon")("aria-hidden",!0))}function bse(t,s){}function vse(t,s){1&t&&m(0,bse,0,0,"ng-template"),2&t&&d("data-pc-section","submenuicon")("aria-hidden",!0)}function Cse(t,s){if(1&t&&(Q(0),m(1,_se,1,3,"AngleRightIcon",22),m(2,vse,1,2,null,23),J()),2&t){const e=p(4);a(1),d("ngIf",!e.tieredMenu.submenuIconTemplate),a(1),d("ngTemplateOutlet",e.tieredMenu.submenuIconTemplate)}}const Ox=function(t){return{"p-menuitem-link":!0,"p-disabled":t}};function yse(t,s){if(1&t&&(l(0,"a",12),m(1,hse,1,5,"span",13),m(2,mse,2,2,"span",14),m(3,fse,1,2,"ng-template",null,15,ve),m(5,gse,2,2,"span",16),m(6,Cse,3,2,"ng-container",17),c()),2&t){const e=B(4),n=p(2).$implicit,i=p();d("target",i.getItemProp(n,"target"))("ngClass",W(12,Ox,i.getItemProp(n,"disabled"))),F("href",i.getItemProp(n,"url"),tn)("aria-hidden",!0)("data-automationid",i.getItemProp(n,"automationId"))("data-pc-section","action")("tabindex",-1),a(1),d("ngIf",i.getItemProp(n,"icon")),a(1),d("ngIf",i.getItemProp(n,"escape"))("ngIfElse",e),a(3),d("ngIf",i.getItemProp(n,"badge")),a(1),d("ngIf",i.isItemGroup(n))}}function Tse(t,s){if(1&t&&D(0,"span",18),2&t){const e=p(3).$implicit,n=p();d("ngClass",n.getItemProp(e,"icon"))("ngStyle",n.getItemProp(e,"iconStyle")),F("data-pc-section","icon")("aria-hidden",!0)("tabindex",-1)}}function wse(t,s){if(1&t&&(l(0,"span",19),_(1),c()),2&t){const e=p(3).$implicit,n=p();F("data-pc-section","label"),a(1),x(" ",n.getItemLabel(e)," ")}}function Ise(t,s){if(1&t&&D(0,"span",20),2&t){const e=p(3).$implicit;d("innerHTML",p().getItemLabel(e),Zt),F("data-pc-section","label")}}function Sse(t,s){if(1&t&&(l(0,"span",21),_(1),c()),2&t){const e=p(3).$implicit,n=p();d("ngClass",n.getItemProp(e,"badgeStyleClass")),a(1),S(n.getItemProp(e,"badge"))}}function xse(t,s){1&t&&D(0,"AngleRightIcon",24),2&t&&(d("styleClass","p-submenu-icon"),F("data-pc-section","submenuicon")("aria-hidden",!0))}function Dse(t,s){}function Mse(t,s){1&t&&m(0,Dse,0,0,"ng-template"),2&t&&d("data-pc-section","submenuicon")("aria-hidden",!0)}function kse(t,s){if(1&t&&(Q(0),m(1,xse,1,3,"AngleRightIcon",22),m(2,Mse,1,2,null,23),J()),2&t){const e=p(4);a(1),d("ngIf",!e.tieredMenu.submenuIconTemplate),a(1),d("ngTemplateOutlet",e.tieredMenu.submenuIconTemplate)}}const Ese=function(){return{exact:!1}};function Lse(t,s){if(1&t&&(l(0,"a",25),m(1,Tse,1,5,"span",13),m(2,wse,2,2,"span",14),m(3,Ise,1,2,"ng-template",null,15,ve),m(5,Sse,2,2,"span",16),m(6,kse,3,2,"ng-container",17),c()),2&t){const e=B(4),n=p(2).$implicit,i=p();d("routerLink",i.getItemProp(n,"routerLink"))("queryParams",i.getItemProp(n,"queryParams"))("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",i.getItemProp(n,"routerLinkActiveOptions")||V(21,Ese))("target",i.getItemProp(n,"target"))("ngClass",W(22,Ox,i.getItemProp(n,"disabled")))("fragment",i.getItemProp(n,"fragment"))("queryParamsHandling",i.getItemProp(n,"queryParamsHandling"))("preserveFragment",i.getItemProp(n,"preserveFragment"))("skipLocationChange",i.getItemProp(n,"skipLocationChange"))("replaceUrl",i.getItemProp(n,"replaceUrl"))("state",i.getItemProp(n,"state")),F("data-automationid",i.getItemProp(n,"automationId"))("tabindex",-1)("aria-hidden",!0)("data-pc-section","action"),a(1),d("ngIf",i.getItemProp(n,"icon")),a(1),d("ngIf",i.getItemProp(n,"escape"))("ngIfElse",e),a(3),d("ngIf",i.getItemProp(n,"badge")),a(1),d("ngIf",i.isItemGroup(n))}}function Rse(t,s){if(1&t){const e=E();l(0,"p-tieredMenuSub",26),v("itemClick",function(i){return C(e),y(p(3).itemClick.emit(i))})("itemMouseEnter",function(i){return C(e),y(p(3).onItemMouseEnter(i))}),c()}if(2&t){const e=p(2).$implicit,n=p();d("items",e.items)("autoDisplay",n.autoDisplay)("menuId",n.menuId)("activeItemPath",n.activeItemPath)("focusedItemId",n.focusedItemId)("level",n.level+1)}}function Ose(t,s){if(1&t){const e=E();l(0,"li",6,7)(2,"div",8),v("click",function(i){C(e);const o=p().$implicit;return y(p().onItemClick(i,o))})("mouseenter",function(i){C(e);const o=p().$implicit;return y(p().onItemMouseEnter({$event:i,processedItem:o}))}),m(3,yse,7,14,"a",9),m(4,Lse,7,24,"a",10),c(),m(5,Rse,1,6,"p-tieredMenuSub",11),c()}if(2&t){const e=p(),n=e.$implicit,i=e.index,o=p();se(o.getItemProp(n,"styleClass")),d("id",o.getItemId(n))("ngStyle",o.getItemProp(n,"style"))("ngClass",o.getItemClass(n))("tooltipOptions",o.getItemProp(n,"tooltipOptions")),F("data-pc-section","menuitem")("data-p-highlight",o.isItemActive(n))("data-p-focused",o.isItemFocused(n))("data-p-disabled",o.isItemDisabled(n))("aria-label",o.getItemLabel(n))("aria-disabled",o.isItemDisabled(n)||void 0)("aria-haspopup",o.isItemGroup(n)&&!o.getItemProp(n,"to")?"menu":void 0)("aria-expanded",o.isItemGroup(n)?o.isItemActive(n):void 0)("aria-level",o.level+1)("aria-setsize",o.getAriaSetSize())("aria-posinset",o.getAriaPosInset(i)),a(2),F("data-pc-section","content"),a(1),d("ngIf",!o.getItemProp(n,"routerLink")),a(1),d("ngIf",o.getItemProp(n,"routerLink")),a(1),d("ngIf",o.isItemVisible(n)&&o.isItemGroup(n))}}function Ase(t,s){if(1&t&&(m(0,pse,1,5,"li",3),m(1,Ose,6,21,"li",4)),2&t){const e=s.$implicit,n=p();d("ngIf",n.isItemVisible(e)&&n.getItemProp(e,"separator")),a(1),d("ngIf",n.isItemVisible(e)&&!n.getItemProp(e,"separator"))}}const Pse=function(t,s){return{"p-submenu-list":t,"p-tieredmenu-root-list":s}},Fse=["rootmenu"],Nse=["container"],Vse=function(t){return{"p-tieredmenu p-component":!0,"p-tieredmenu-overlay":t}},Bse=function(t,s){return{showTransitionParams:t,hideTransitionParams:s}},Hse=function(t){return{value:"visible",params:t}};function Gse(t,s){if(1&t){const e=E();l(0,"div",1,2),v("click",function(i){return C(e),y(p().onOverlayClick(i))})("@overlayAnimation.start",function(i){return C(e),y(p().onOverlayAnimationStart(i))})("@overlayAnimation.done",function(i){return C(e),y(p().onOverlayAnimationEnd(i))}),l(2,"p-tieredMenuSub",3,4),v("itemClick",function(i){return C(e),y(p().onItemClick(i))})("menuFocus",function(i){return C(e),y(p().onMenuFocus(i))})("menuBlur",function(i){return C(e),y(p().onMenuBlur(i))})("menuKeydown",function(i){return C(e),y(p().onKeyDown(i))})("itemMouseEnter",function(i){return C(e),y(p().onItemMouseEnter(i))}),c()()}if(2&t){const e=p();se(e.styleClass),d("id",e.id)("ngClass",W(21,Vse,e.popup))("ngStyle",e.style)("@overlayAnimation",W(26,Hse,Se(23,Bse,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0!==e.popup),F("data-pc-section","root")("data-pc-name","tieredmenu"),a(2),d("root",!0)("items",e.processedItems)("menuId",e.id)("tabindex",e.disabled?-1:e.tabindex)("ariaLabel",e.ariaLabel)("ariaLabelledBy",e.ariaLabelledBy)("baseZIndex",e.baseZIndex)("autoZIndex",e.autoZIndex)("autoDisplay",e.autoDisplay)("popup",e.popup)("focusedItemId",e.focused?e.focusedItemId:void 0)("activeItemPath",e.activeItemPath())}}let qse=(()=>{class t{el;renderer;cd;tieredMenu;items;root=!1;autoDisplay;autoZIndex=!0;baseZIndex=0;popup;menuId;ariaLabel;ariaLabelledBy;level=0;focusedItemId;activeItemPath;tabindex=0;itemClick=new q;itemMouseEnter=new q;menuFocus=new q;menuBlur=new q;menuKeydown=new q;sublistViewChild;constructor(e,n,i,o){this.el=e,this.renderer=n,this.cd=i,this.tieredMenu=o}positionSubmenu(){let e=this.sublistViewChild&&this.sublistViewChild.nativeElement;if(e){const n=e.parentElement.parentElement,i=R.getOffset(n),o=R.getViewport(),r=e.offsetParent?e.offsetWidth:R.getHiddenElementOuterWidth(e),u=R.getOuterWidth(n.children[0]);parseInt(i.left,10)+u+r>o.width-R.calculateScrollbarWidth()&&R.addClass(e,"p-submenu-list-flipped")}}getItemProp(e,n,i=null){return e&&e.item?Y.getItemValue(e.item[n],i):void 0}getItemId(e){return e.item?.id??`${this.menuId}_${e.key}`}getItemKey(e){return this.getItemId(e)}getItemClass(e){return{...this.getItemProp(e,"class"),"p-menuitem":!0,"p-highlight":this.isItemActive(e),"p-menuitem-active":this.isItemActive(e),"p-focus":this.isItemFocused(e),"p-disabled":this.isItemDisabled(e)}}getItemLabel(e){return this.getItemProp(e,"label")}getSeparatorItemClass(e){return{...this.getItemProp(e,"class"),"p-menuitem-separator":!0}}getAriaSetSize(){return this.items.filter(e=>this.isItemVisible(e)&&!this.getItemProp(e,"separator")).length}getAriaPosInset(e){return e-this.items.slice(0,e).filter(n=>this.isItemVisible(n)&&this.getItemProp(n,"separator")).length+1}isItemVisible(e){return!1!==this.getItemProp(e,"visible")}isItemActive(e){if(this.activeItemPath)return this.activeItemPath.some(n=>n.key===e.key)}isItemDisabled(e){return this.getItemProp(e,"disabled")}isItemFocused(e){return this.focusedItemId===this.getItemId(e)}isItemGroup(e){return Y.isNotEmpty(e.items)}onItemMouseEnter(e){if(this.autoDisplay){const{event:n,processedItem:i}=e;this.itemMouseEnter.emit({originalEvent:n,processedItem:i})}}onItemClick(e,n){this.getItemProp(n,"command",{originalEvent:e,item:n.item}),this.itemClick.emit({originalEvent:e,processedItem:n,isFocus:!0})}static \u0275fac=function(n){return new(n||t)(M(Pe),M(Vt),M(rt),M(Ze(()=>Ax)))};static \u0275cmp=U({type:t,selectors:[["p-tieredMenuSub"]],viewQuery:function(n,i){if(1&n&&K(dse,7),2&n){let o;H(o=G())&&(i.sublistViewChild=o.first)}},hostAttrs:[1,"p-element"],inputs:{items:"items",root:"root",autoDisplay:"autoDisplay",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",popup:"popup",menuId:"menuId",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",level:"level",focusedItemId:"focusedItemId",activeItemPath:"activeItemPath",tabindex:"tabindex"},outputs:{itemClick:"itemClick",itemMouseEnter:"itemMouseEnter",menuFocus:"menuFocus",menuBlur:"menuBlur",menuKeydown:"menuKeydown"},decls:3,vars:12,consts:[["role","menu",3,"ngClass","id","tabindex","keydown","focus","blur"],["sublist",""],["ngFor","",3,"ngForOf"],["role","separator",3,"id","style","ngClass",4,"ngIf"],["role","menuitem","pTooltip","",3,"id","ngStyle","ngClass","class","tooltipOptions",4,"ngIf"],["role","separator",3,"id","ngClass"],["role","menuitem","pTooltip","",3,"id","ngStyle","ngClass","tooltipOptions"],["listItem",""],[1,"p-menuitem-content",3,"click","mouseenter"],["pRipple","",3,"target","ngClass",4,"ngIf"],["pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state",4,"ngIf"],[3,"items","autoDisplay","menuId","activeItemPath","focusedItemId","level","itemClick","itemMouseEnter",4,"ngIf"],["pRipple","",3,"target","ngClass"],["class","p-menuitem-icon",3,"ngClass","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlLabel",""],["class","p-menuitem-badge",3,"ngClass",4,"ngIf"],[4,"ngIf"],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],[1,"p-menuitem-badge",3,"ngClass"],[3,"styleClass",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"styleClass"],["pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state"],[3,"items","autoDisplay","menuId","activeItemPath","focusedItemId","level","itemClick","itemMouseEnter"]],template:function(n,i){1&n&&(l(0,"ul",0,1),v("keydown",function(r){return i.menuKeydown.emit(r)})("focus",function(r){return i.menuFocus.emit(r)})("blur",function(r){return i.menuBlur.emit(r)}),m(2,Ase,2,2,"ng-template",2),c()),2&n&&(d("ngClass",Se(9,Pse,!i.root,i.root))("id",i.menuId+"_list")("tabindex",i.tabindex),F("aria-label",i.ariaLabel)("aria-labelledBy",i.ariaLabelledBy)("aria-activedescendant",i.focusedItemId)("aria-orientation","vertical")("data-pc-section","menu"),a(2),d("ngForOf",i.items))},dependencies:function(){return[Fe,ut,ne,dt,nt,nr,Np,bt,$t,sc,t]},encapsulation:2})}return t})(),Ax=(()=>{class t{document;platformId;el;renderer;cd;config;overlayService;set model(e){this._model=e,this._processedItems=this.createProcessedItems(this._model||[])}get model(){return this._model}popup;style;styleClass;appendTo;autoZIndex=!0;baseZIndex=0;autoDisplay=!0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";id;ariaLabel;ariaLabelledBy;disabled=!1;tabindex=0;onShow=new q;onHide=new q;templates;rootmenu;containerViewChild;submenuIconTemplate;container;outsideClickListener;resizeListener;scrollHandler;target;relatedTarget;visible;relativeAlign;window;dirty=!1;focused=!1;activeItemPath=br([]);number=br(0);focusedItemInfo=br({index:-1,level:0,parentKey:"",item:null});searchValue="";searchTimeout;_processedItems;_model;get visibleItems(){const e=this.activeItemPath().find(n=>n.key===this.focusedItemInfo().parentKey);return e?e.items:this.processedItems}get processedItems(){return(!this._processedItems||!this._processedItems.length)&&(this._processedItems=this.createProcessedItems(this.model||[])),this._processedItems}get focusedItemId(){const e=this.focusedItemInfo();return e.item?.id?e.item.id:-1!==e.index?`${this.id}${Y.isNotEmpty(e.parentKey)?"_"+e.parentKey:""}_${e.index}`:null}constructor(e,n,i,o,r,u,h){this.document=e,this.platformId=n,this.el=i,this.renderer=o,this.cd=r,this.config=u,this.overlayService=h,this.window=this.document.defaultView,p0(()=>{const b=this.activeItemPath();Y.isNotEmpty(b)?(this.bindOutsideClickListener(),this.bindResizeListener()):(this.unbindOutsideClickListener(),this.unbindResizeListener())})}ngOnInit(){this.id=this.id||Ft()}ngAfterContentInit(){this.templates?.forEach(e=>{"submenuicon"===e.getType()&&(this.submenuIconTemplate=e.template)})}createProcessedItems(e,n=0,i={},o=""){const r=[];return e&&e.forEach((u,h)=>{const b=(""!==o?o+"_":"")+h,T={item:u,index:h,level:n,key:b,parent:i,parentKey:o};T.items=this.createProcessedItems(u.items,n+1,T,b),r.push(T)}),r}getItemProp(e,n){return e?Y.getItemValue(e[n]):void 0}getProccessedItemLabel(e){return e?this.getItemLabel(e.item):void 0}getItemLabel(e){return this.getItemProp(e,"label")}isProcessedItemGroup(e){return e&&Y.isNotEmpty(e.items)}isSelected(e){return this.activeItemPath().some(n=>n.key===e.key)}isValidSelectedItem(e){return this.isValidItem(e)&&this.isSelected(e)}isValidItem(e){return!!e&&!this.isItemDisabled(e.item)&&!this.isItemSeparator(e.item)}isItemDisabled(e){return this.getItemProp(e,"disabled")}isItemSeparator(e){return this.getItemProp(e,"separator")}isItemMatched(e){return this.isValidItem(e)&&this.getProccessedItemLabel(e).toLocaleLowerCase().startsWith(this.searchValue.toLocaleLowerCase())}isProccessedItemGroup(e){return e&&Y.isNotEmpty(e.items)}onOverlayClick(e){this.popup&&this.overlayService.add({originalEvent:e,target:this.el.nativeElement})}onItemClick(e){const{originalEvent:n,processedItem:i}=e,o=this.isProcessedItemGroup(i),r=Y.isEmpty(i.parent);if(this.isSelected(i)){const{index:h,key:b,level:T,parentKey:w,item:k}=i;this.activeItemPath.set(this.activeItemPath().filter(L=>b!==L.key&&b.startsWith(L.key))),this.focusedItemInfo.set({index:h,level:T,parentKey:w,item:k}),this.dirty=!0,R.focus(this.rootmenu.sublistViewChild.nativeElement)}else if(o)this.onItemChange(e);else{const h=r?i:this.activeItemPath().find(b=>""===b.parentKey);this.hide(n),this.changeFocusedItemIndex(n,h?h.index:-1),R.focus(this.rootmenu.sublistViewChild.nativeElement)}}onItemMouseEnter(e){R.isTouchDevice()?this.onItemChange({event:e,processedItem:e.processedItem,focus:this.autoDisplay}):this.dirty&&this.onItemChange(e)}onKeyDown(e){const n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Space":this.onSpaceKey(e);break;case"Enter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!n&&Y.isPrintableCharacter(e.key)&&this.searchItems(e,e.key)}}onArrowDownKey(e){const n=-1!==this.focusedItemInfo().index?this.findNextItemIndex(this.focusedItemInfo().index):this.findFirstFocusedItemIndex();this.changeFocusedItemIndex(e,n),e.preventDefault()}onArrowRightKey(e){const n=this.visibleItems[this.focusedItemInfo().index],i=this.isProccessedItemGroup(n),o=n.item;i&&(this.onItemChange({originalEvent:e,processedItem:n}),this.focusedItemInfo.set({index:-1,parentKey:n.key,item:o}),this.searchValue="",this.onArrowDownKey(e)),e.preventDefault()}onArrowUpKey(e){if(e.altKey){if(-1!==this.focusedItemInfo().index){const n=this.visibleItems[this.focusedItemInfo().index];!this.isProccessedItemGroup(n)&&this.onItemChange({originalEvent:e,processedItem:n})}this.popup&&this.hide(e,!0),e.preventDefault()}else{const n=-1!==this.focusedItemInfo().index?this.findPrevItemIndex(this.focusedItemInfo().index):this.findLastFocusedItemIndex();this.changeFocusedItemIndex(e,n),e.preventDefault()}}onArrowLeftKey(e){const n=this.visibleItems[this.focusedItemInfo().index],i=this.activeItemPath().find(u=>u.key===n.parentKey);Y.isEmpty(n.parent)||(this.focusedItemInfo.set({index:-1,parentKey:i?i.parentKey:"",item:n.item}),this.searchValue="",this.onArrowDownKey(e));const r=this.activeItemPath().filter(u=>u.parentKey!==this.focusedItemInfo().parentKey);this.activeItemPath.set(r),e.preventDefault()}onHomeKey(e){this.changeFocusedItemIndex(e,this.findFirstItemIndex()),e.preventDefault()}onEndKey(e){this.changeFocusedItemIndex(e,this.findLastItemIndex()),e.preventDefault()}onSpaceKey(e){this.onEnterKey(e)}onEscapeKey(e){this.hide(e,!0),this.focusedItemInfo().index=this.findFirstFocusedItemIndex(),e.preventDefault()}onTabKey(e){if(-1!==this.focusedItemInfo().index){const n=this.visibleItems[this.focusedItemInfo().index];!this.isProccessedItemGroup(n)&&this.onItemChange({originalEvent:e,processedItem:n})}this.hide()}onEnterKey(e){if(-1!==this.focusedItemInfo().index){const n=R.findSingle(this.rootmenu.el.nativeElement,`li[id="${this.focusedItemId}"]`),i=n&&R.findSingle(n,'a[data-pc-section="action"]');if(i?i.click():n&&n.click(),this.focusedItemInfo(),!this.popup){const r=this.visibleItems[this.focusedItemInfo().index];!this.isProccessedItemGroup(r)&&(this.focusedItemInfo().index=this.findFirstFocusedItemIndex())}}e.preventDefault()}onItemChange(e){const{processedItem:n,isFocus:i}=e;if(Y.isEmpty(n))return;const{index:o,key:r,level:u,parentKey:h,items:b,item:T}=n,w=Y.isNotEmpty(b),k=this.activeItemPath().filter(L=>L.parentKey!==h&&L.parentKey!==r);w&&k.push(n),this.focusedItemInfo.set({index:o,level:u,parentKey:h,item:T}),this.activeItemPath.set(k),w&&(this.dirty=!0),i&&R.focus(this.rootmenu.sublistViewChild.nativeElement)}onMenuFocus(e){this.focused=!0;const n=-1!==this.focusedItemInfo().index?this.focusedItemInfo():{index:this.findFirstFocusedItemIndex(),level:0,parentKey:"",item:this.visibleItems[this.findFirstFocusedItemIndex()]?.item};this.focusedItemInfo.set(n)}onMenuBlur(e){this.focused=!1,this.focusedItemInfo.set({index:-1,level:0,parentKey:"",item:null}),this.searchValue="",this.dirty=!1}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.popup&&(this.container=e.element,this.moveOnTop(),this.onShow.emit({}),this.appendOverlay(),this.alignOverlay(),this.bindOutsideClickListener(),this.bindResizeListener(),this.bindScrollListener(),R.focus(this.rootmenu.sublistViewChild.nativeElement),this.scrollInView());break;case"void":this.onOverlayHide(),this.onHide.emit({})}}alignOverlay(){this.relativeAlign?R.relativePosition(this.container,this.target):R.absolutePosition(this.container,this.target)}onOverlayAnimationEnd(e){"void"===e.toState&&Et.clear(e.element)}appendOverlay(){this.appendTo&&("body"===this.appendTo?this.renderer.appendChild(this.document.body,this.container):R.appendChild(this.container,this.appendTo))}restoreOverlayAppend(){this.container&&this.appendTo&&this.renderer.appendChild(this.el.nativeElement,this.container)}moveOnTop(){this.autoZIndex&&Et.set("menu",this.container,this.baseZIndex+this.config.zIndex.menu)}hide(e,n){this.popup&&(this.onHide.emit({}),this.visible=!1),this.activeItemPath.set([]),this.focusedItemInfo.set({index:-1,level:0,parentKey:""}),n&&R.focus(this.relatedTarget||this.target||this.rootmenu.sublistViewChild.nativeElement),this.dirty=!1}toggle(e){this.visible?this.hide(e,!0):this.show(e)}show(e,n){this.popup&&(this.visible=!0,this.target=this.target||e.currentTarget,this.relatedTarget=e.relatedTarget||null,this.relativeAlign=e?.relativeAlign||null),this.focusedItemInfo.set({index:this.findFirstFocusedItemIndex(),level:0,parentKey:""}),n&&R.focus(this.rootmenu.sublistViewChild.nativeElement),this.cd.markForCheck()}searchItems(e,n){this.searchValue=(this.searchValue||"")+n;let i=-1,o=!1;return-1!==this.focusedItemInfo().index?(i=this.visibleItems.slice(this.focusedItemInfo().index).findIndex(r=>this.isItemMatched(r)),i=-1===i?this.visibleItems.slice(0,this.focusedItemInfo().index).findIndex(r=>this.isItemMatched(r)):i+this.focusedItemInfo().index):i=this.visibleItems.findIndex(r=>this.isItemMatched(r)),-1!==i&&(o=!0),-1===i&&-1===this.focusedItemInfo().index&&(i=this.findFirstFocusedItemIndex()),-1!==i&&this.changeFocusedItemIndex(e,i),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),o}findLastFocusedItemIndex(){const e=this.findSelectedItemIndex();return e<0?this.findLastItemIndex():e}findLastItemIndex(){return Y.findLastIndex(this.visibleItems,e=>this.isValidItem(e))}findPrevItemIndex(e){const n=e>0?Y.findLastIndex(this.visibleItems.slice(0,e),i=>this.isValidItem(i)):-1;return n>-1?n:e}findNextItemIndex(e){const n=ethis.isValidItem(i)):-1;return n>-1?n+e+1:e}findFirstFocusedItemIndex(){const e=this.findSelectedItemIndex();return e<0?this.findFirstItemIndex():e}findFirstItemIndex(){return this.visibleItems.findIndex(e=>this.isValidItem(e))}findSelectedItemIndex(){return this.visibleItems.findIndex(e=>this.isValidSelectedItem(e))}changeFocusedItemIndex(e,n){this.focusedItemInfo().index!==n&&(this.focusedItemInfo.mutate(i=>{i.index=n,i.item=this.visibleItems[n].item}),this.scrollInView())}scrollInView(e=-1){const i=R.findSingle(this.rootmenu.el.nativeElement,`li[id="${-1!==e?`${this.id}_${e}`:this.focusedItemId}"]`);i&&i.scrollIntoView&&i.scrollIntoView({block:"nearest",inline:"nearest"})}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Jo(this.target,e=>{this.visible&&this.hide(e,!0)})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&(this.scrollHandler.unbindScrollListener(),this.scrollHandler=null)}bindResizeListener(){vn(this.platformId)&&(this.resizeListener||(this.resizeListener=this.renderer.listen(this.document.defaultView,"resize",e=>{R.isTouchDevice()||this.hide(e,!0)})))}bindOutsideClickListener(){vn(this.platformId)&&(this.outsideClickListener||(this.outsideClickListener=this.renderer.listen(this.document,"click",e=>{const n=this.containerViewChild&&!this.containerViewChild.nativeElement.contains(e.target),i=!this.popup||!(this.target&&(this.target===e.target||this.target.contains(e.target)));n&&i&&this.hide()})))}unbindOutsideClickListener(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)}unbindResizeListener(){this.resizeListener&&(this.resizeListener(),this.resizeListener=null)}onOverlayHide(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.unbindScrollListener(),this.cd.destroyed||(this.target=null)}ngOnDestroy(){this.popup&&(this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.container&&this.autoZIndex&&Et.clear(this.container),this.restoreOverlayAppend(),this.onOverlayHide())}static \u0275fac=function(n){return new(n||t)(M(ct),M(gn),M(Pe),M(Vt),M(rt),M(Hn),M(po))};static \u0275cmp=U({type:t,selectors:[["p-tieredMenu"]],contentQueries:function(n,i,o){if(1&n&&Ye(o,ae,4),2&n){let r;H(r=G())&&(i.templates=r)}},viewQuery:function(n,i){if(1&n&&(K(Fse,5),K(Nse,5)),2&n){let o;H(o=G())&&(i.rootmenu=o.first),H(o=G())&&(i.containerViewChild=o.first)}},hostAttrs:[1,"p-element"],inputs:{model:"model",popup:"popup",style:"style",styleClass:"styleClass",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",autoDisplay:"autoDisplay",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",id:"id",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",disabled:"disabled",tabindex:"tabindex"},outputs:{onShow:"onShow",onHide:"onHide"},decls:1,vars:1,consts:[[3,"id","ngClass","class","ngStyle","click",4,"ngIf"],[3,"id","ngClass","ngStyle","click"],["container",""],[3,"root","items","menuId","tabindex","ariaLabel","ariaLabelledBy","baseZIndex","autoZIndex","autoDisplay","popup","focusedItemId","activeItemPath","itemClick","menuFocus","menuBlur","menuKeydown","itemMouseEnter"],["rootmenu",""]],template:function(n,i){1&n&&m(0,Gse,4,28,"div",0),2&n&&d("ngIf",!i.popup||i.visible)},dependencies:[Fe,ne,nt,qse],styles:["@layer primeng{.p-tieredmenu-overlay{position:absolute;top:0;left:0}.p-tieredmenu ul{margin:0;padding:0;list-style:none}.p-tieredmenu .p-submenu-list{position:absolute;min-width:100%;z-index:1;display:none}.p-tieredmenu .p-menuitem-link{cursor:pointer;display:flex;align-items:center;text-decoration:none;overflow:hidden;position:relative}.p-tieredmenu .p-menuitem-text{line-height:1}.p-tieredmenu .p-menuitem{position:relative}.p-tieredmenu .p-menuitem-link .p-submenu-icon:not(svg){margin-left:auto}.p-tieredmenu .p-menuitem-link .p-icon-wrapper{margin-left:auto}.p-tieredmenu .p-menuitem-active>p-tieredmenusub>.p-submenu-list{display:block;left:100%;top:0}.p-tieredmenu .p-menuitem-active>p-tieredmenusub>.p-submenu-list.p-submenu-list-flipped{left:-100%}}\n"],encapsulation:2,data:{animation:[Ji("overlayAnimation",[Yt(":enter",[Tt({opacity:0,transform:"scaleY(0.8)"}),Ut("{{showTransitionParams}}")]),Yt(":leave",[Ut("{{hideTransitionParams}}",Tt({opacity:0}))])])]},changeDetection:0})}return t})(),zse=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=me({imports:[Ne,zn,Cn,Ti,sc,ze,zn,Ti,ze]})}return t})(),Use=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=ge({type:t});static#n=this.\u0275inj=me({imports:[yV,nc,VI,LH,jH,kU,vj,Tj,gp,zj,_p,z$,GQ,ZQ,fJ,DJ,jJ,$J,Cn,sZ,oZ,mZ,Yee,gte,Cte,Ti,Mte,Ate,Gte,yne,cse,use,zse]})}return t})();const jse=["pMenuItemContent",""];function $se(t,s){1&t&&Z(0)}const Px=function(t){return{"p-disabled":t}};function Wse(t,s){if(1&t){const e=E();l(0,"a",4),v("click",function(i){C(e);const o=p();return y(o.onItemClick(i,o.item))}),m(1,$se,1,0,"ng-container",5),c()}if(2&t){const e=p(),n=B(4);d("target",e.item.target)("ngClass",W(9,Px,e.item.disabled)),F("title",e.item.title)("href",e.item.url||null,tn)("data-automationid",e.item.automationId)("tabindex",-1)("data-pc-section","action")("aria-hidden",!0),a(1),d("ngTemplateOutlet",n)}}function Kse(t,s){1&t&&Z(0)}const Qse=function(){return{exact:!1}};function Jse(t,s){if(1&t){const e=E();l(0,"a",6),v("click",function(i){C(e);const o=p();return y(o.onItemClick(i,o.item))}),m(1,Kse,1,0,"ng-container",5),c()}if(2&t){const e=p(),n=B(4);d("routerLink",e.item.routerLink)("queryParams",e.item.queryParams)("routerLinkActiveOptions",e.item.routerLinkActiveOptions||V(17,Qse))("target",e.item.target)("ngClass",W(18,Px,e.item.disabled))("fragment",e.item.fragment)("queryParamsHandling",e.item.queryParamsHandling)("preserveFragment",e.item.preserveFragment)("skipLocationChange",e.item.skipLocationChange)("replaceUrl",e.item.replaceUrl)("state",e.item.state),F("data-automationid",e.item.automationId)("tabindex",-1)("data-pc-section","action")("aria-hidden",!0)("title",e.item.title),a(1),d("ngTemplateOutlet",n)}}function Zse(t,s){if(1&t&&D(0,"span",11),2&t){const e=p(2);se(e.item.iconClass),d("ngClass",e.item.icon)("ngStyle",e.item.iconStyle)}}function Yse(t,s){if(1&t&&(l(0,"span",12),_(1),c()),2&t){const e=p(2);a(1),S(e.item.label)}}function Xse(t,s){1&t&&(D(0,"span",13),f(1,"safeHtml")),2&t&&d("innerHTML",g(1,1,p(2).item.label),Zt)}function eoe(t,s){if(1&t&&(l(0,"span",14),_(1),c()),2&t){const e=p(2);d("ngClass",e.item.badgeStyleClass),a(1),S(e.item.badge)}}function toe(t,s){if(1&t&&(m(0,Zse,1,4,"span",7),m(1,Yse,2,1,"span",8),m(2,Xse,2,3,"ng-template",null,9,ve),m(4,eoe,2,2,"span",10)),2&t){const e=B(3),n=p();d("ngIf",n.item.icon),a(1),d("ngIf",!1!==n.item.escape)("ngIfElse",e),a(3),d("ngIf",n.item.badge)}}const noe=["list"],ioe=["container"],c1=function(t){return{"p-hidden":t}};function soe(t,s){if(1&t&&D(0,"li",9),2&t){const e=p().$implicit;d("ngClass",W(1,c1,!1===e.visible))}}function ooe(t,s){if(1&t&&(l(0,"span"),_(1),c()),2&t){const e=p(2).$implicit;a(1),S(e.label)}}function roe(t,s){1&t&&(D(0,"span",13),f(1,"safeHtml")),2&t&&d("innerHTML",g(1,1,p(2).$implicit.label),Zt)}const aoe=function(t,s){return{"p-hidden":t,flex:s}};function loe(t,s){if(1&t&&(l(0,"li",10),m(1,ooe,2,1,"span",11),m(2,roe,2,3,"ng-template",null,12,ve),c()),2&t){const e=B(3),n=p(),i=n.$implicit,o=n.index,r=p(3);d("ngClass",Se(6,aoe,!1===i.visible,i.visible))("tooltipOptions",i.tooltipOptions),F("data-automationid",i.automationId)("id",r.menuitemId(i,r.id,o)),a(1),d("ngIf",!1!==i.escape)("ngIfElse",e)}}function coe(t,s){if(1&t&&D(0,"li",9),2&t){const e=p().$implicit,n=p().$implicit;d("ngClass",W(1,c1,!1===e.visible||!1===n.visible))}}const Fx=function(t,s,e){return{"p-hidden":t,"p-focus":s,"p-disabled":e}};function uoe(t,s){if(1&t){const e=E();l(0,"li",15),v("onMenuItemClick",function(i){return C(e),y(p(5).itemClick(i))}),c()}if(2&t){const e=p(),n=e.$implicit,i=e.index,o=p(),r=o.$implicit,u=o.index,h=p(3);se(n.styleClass),d("pMenuItemContent",n)("ngClass",Bt(13,Fx,!1===n.visible||!1===r.visible,h.focusedOptionId()&&h.menuitemId(n,h.id,u,i)===h.focusedOptionId(),h.disabled(n.disabled)))("ngStyle",n.style)("tooltipOptions",n.tooltipOptions)("id",h.menuitemId(n,h.id,u,i)),F("data-pc-section","menuitem")("aria-label",h.label(n.label))("data-p-focused",h.isItemFocused(h.menuitemId(n,h.id,u,i)))("data-p-disabled",h.disabled(n.disabled))("aria-disabled",h.disabled(n.disabled))("id",h.menuitemId(n,h.id,u,i))}}function doe(t,s){if(1&t&&(m(0,coe,1,3,"li",7),m(1,uoe,1,17,"li",14)),2&t){const e=s.$implicit;d("ngIf",e.separator),a(1),d("ngIf",!e.separator)}}function poe(t,s){if(1&t&&(m(0,soe,1,3,"li",7),m(1,loe,4,9,"li",8),m(2,doe,2,2,"ng-template",6)),2&t){const e=s.$implicit;d("ngIf",e.separator),a(1),d("ngIf",!e.separator),a(1),d("ngForOf",e.items)}}function hoe(t,s){1&t&&m(0,poe,3,3,"ng-template",6),2&t&&d("ngForOf",p(2).model)}function moe(t,s){if(1&t&&D(0,"li",9),2&t){const e=p().$implicit;d("ngClass",W(1,c1,!1===e.visible))}}function foe(t,s){if(1&t){const e=E();l(0,"li",15),v("onMenuItemClick",function(i){return C(e),y(p(4).itemClick(i))}),c()}if(2&t){const e=p(),n=e.$implicit,i=e.index,o=p(3);se(n.styleClass),d("pMenuItemContent",n)("ngClass",Bt(13,Fx,!1===n.visible,o.focusedOptionId()&&o.menuitemId(n,o.id,i,o.j)===o.focusedOptionId(),o.disabled(n.disabled)))("ngStyle",n.style)("tooltipOptions",n.tooltipOptions)("id",o.menuitemId(n,o.id,i)),F("data-pc-section","menuitem")("aria-label",o.label(n.label))("data-p-focused",o.isItemFocused(o.menuitemId(n,o.id,i)))("data-p-disabled",o.disabled(n.disabled))("aria-disabled",o.disabled(n.disabled))("id",o.menuitemId(n,o.id,i))}}function goe(t,s){if(1&t&&(m(0,moe,1,3,"li",7),m(1,foe,1,17,"li",14)),2&t){const e=s.$implicit;d("ngIf",e.separator),a(1),d("ngIf",!e.separator)}}function _oe(t,s){1&t&&m(0,goe,2,2,"ng-template",6),2&t&&d("ngForOf",p(2).model)}const boe=function(t){return{"p-menu p-component":!0,"p-menu-overlay":t}},voe=function(t,s){return{showTransitionParams:t,hideTransitionParams:s}},Coe=function(t){return{value:"visible",params:t}};function yoe(t,s){if(1&t){const e=E();l(0,"div",1,2),v("click",function(i){return C(e),y(p().onOverlayClick(i))})("@overlayAnimation.start",function(i){return C(e),y(p().onOverlayAnimationStart(i))})("@overlayAnimation.done",function(i){return C(e),y(p().onOverlayAnimationEnd(i))}),l(2,"ul",3,4),v("focus",function(i){return C(e),y(p().onListFocus(i))})("blur",function(i){return C(e),y(p().onListBlur(i))})("keydown",function(i){return C(e),y(p().onListKeyDown(i))}),m(4,hoe,1,1,null,5),m(5,_oe,1,1,null,5),c()()}if(2&t){const e=p();se(e.styleClass),d("ngClass",W(16,boe,e.popup))("ngStyle",e.style)("@overlayAnimation",W(21,Coe,Se(18,voe,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0!==e.popup)("id",e.id),F("data-pc-name","menu"),a(2),d("id",e.id+"_list")("tabindex",e.tabindex),F("data-pc-section","menu")("aria-activedescendant",e.activedescendant())("aria-label",e.ariaLabel)("aria-labelledBy",e.ariaLabelledBy),a(2),d("ngIf",e.hasSubMenu()),a(1),d("ngIf",!e.hasSubMenu())}}let Nx=(()=>{class t{platformId;sanitizer;constructor(e,n){this.platformId=e,this.sanitizer=n}transform(e){return e&&vn(this.platformId)?this.sanitizer.bypassSecurityTrustHtml(e):e}static \u0275fac=function(n){return new(n||t)(M(gn,16),M(Cw,16))};static \u0275pipe=On({name:"safeHtml",type:t,pure:!0})}return t})(),Toe=(()=>{class t{item;id;onMenuItemClick=new q;menu;constructor(e){this.menu=e}onItemClick(e,n){this.onMenuItemClick.emit({originalEvent:e,item:{...n,id:this.id}})}static \u0275fac=function(n){return new(n||t)(M(Ze(()=>Vx)))};static \u0275cmp=U({type:t,selectors:[["","pMenuItemContent",""]],hostAttrs:[1,"p-element"],inputs:{item:["pMenuItemContent","item"],id:"id"},outputs:{onMenuItemClick:"onMenuItemClick"},attrs:jse,decls:5,vars:3,consts:[[1,"p-menuitem-content"],["class","p-menuitem-link","pRipple","",3,"target","ngClass","click",4,"ngIf"],["routerLinkActive","p-menuitem-link-active","class","p-menuitem-link","pRipple","",3,"routerLink","queryParams","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","click",4,"ngIf"],["itemContent",""],["pRipple","",1,"p-menuitem-link",3,"target","ngClass","click"],[4,"ngTemplateOutlet"],["routerLinkActive","p-menuitem-link-active","pRipple","",1,"p-menuitem-link",3,"routerLink","queryParams","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","click"],["class","p-menuitem-icon",3,"ngClass","class","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlLabel",""],["class","p-menuitem-badge",3,"ngClass",4,"ngIf"],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],[1,"p-menuitem-badge",3,"ngClass"]],template:function(n,i){1&n&&(l(0,"div",0),m(1,Wse,2,11,"a",1),m(2,Jse,2,20,"a",2),m(3,toe,5,4,"ng-template",null,3,ve),c()),2&n&&(F("data-pc-section","content"),a(1),d("ngIf",!(null!=i.item&&i.item.routerLink)),a(1),d("ngIf",null==i.item?null:i.item.routerLink))},dependencies:[Fe,ne,dt,nt,nr,Np,bt,Nx],encapsulation:2})}return t})(),Vx=(()=>{class t{document;platformId;el;renderer;cd;config;overlayService;model;popup;style;styleClass;appendTo;autoZIndex=!0;baseZIndex=0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";ariaLabel;ariaLabelledBy;id;tabindex=0;onShow=new q;onHide=new q;onBlur=new q;onFocus=new q;listViewChild;containerViewChild;container;scrollHandler;documentClickListener;documentResizeListener;preventDocumentDefault;target;visible;focusedOptionId=function nM(t,s){const e=Object.create(iM);e.computation=t,s?.equal&&(e.equal=s.equal);const n=()=>{if(bb(e),_b(e),e.value===Xc)throw e.error;return e.value};return n[Ys]=e,n}(()=>-1!==this.focusedOptionIndex()?this.focusedOptionIndex():null);focusedOptionIndex=br(-1);selectedOptionIndex=br(-1);focused=!1;overlayVisible=!1;relativeAlign;constructor(e,n,i,o,r,u,h){this.document=e,this.platformId=n,this.el=i,this.renderer=o,this.cd=r,this.config=u,this.overlayService=h,this.id=this.id||Ft()}toggle(e){this.visible?this.hide():this.show(e),this.preventDocumentDefault=!0}show(e){this.target=e.currentTarget,this.relativeAlign=e.relativeAlign,this.visible=!0,this.preventDocumentDefault=!0,this.overlayVisible=!0,this.cd.markForCheck()}ngOnInit(){this.popup||this.bindDocumentClickListener()}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.popup&&(this.container=e.element,this.moveOnTop(),this.onShow.emit({}),this.appendOverlay(),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),R.focus(this.listViewChild.nativeElement),this.changeFocusedOptionIndex(0));break;case"void":this.onOverlayHide(),this.onHide.emit({})}}onOverlayAnimationEnd(e){"void"===e.toState&&this.autoZIndex&&Et.clear(e.element)}alignOverlay(){this.relativeAlign?R.relativePosition(this.container,this.target):R.absolutePosition(this.container,this.target)}appendOverlay(){this.appendTo&&("body"===this.appendTo?this.renderer.appendChild(this.document.body,this.container):R.appendChild(this.container,this.appendTo))}restoreOverlayAppend(){this.container&&this.appendTo&&this.renderer.appendChild(this.el.nativeElement,this.container)}moveOnTop(){this.autoZIndex&&Et.set("menu",this.container,this.baseZIndex+this.config.zIndex.menu)}hide(){this.visible=!1,this.relativeAlign=!1,this.cd.markForCheck()}onWindowResize(){this.visible&&!R.isTouchDevice()&&this.hide()}menuitemId(e,n,i,o){return e?.id??`${n}_${i}${void 0!==o?"_"+o:""}`}isItemFocused(e){return this.focusedOptionId()===e}label(e){return"function"==typeof e?e():e}disabled(e){return"function"==typeof e?e():!(typeof e>"u")&&e}activedescendant(){return this.focused?this.focusedOptionId():void 0}onListFocus(e){this.focused=!0,this.popup||(-1!==this.selectedOptionIndex()?(this.changeFocusedOptionIndex(this.selectedOptionIndex()),this.selectedOptionIndex.set(-1)):this.changeFocusedOptionIndex(0)),this.onFocus.emit(e)}onListBlur(e){this.focused=!1,this.changeFocusedOptionIndex(-1),this.selectedOptionIndex.set(-1),this.focusedOptionIndex.set(-1),this.onBlur.emit(e)}onListKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Enter":this.onEnterKey(e);break;case"Space":this.onSpaceKey(e);break;case"Escape":this.popup&&(R.focus(this.target),this.hide());case"Tab":this.overlayVisible&&this.hide()}}onArrowDownKey(e){const n=this.findNextOptionIndex(this.focusedOptionIndex());this.changeFocusedOptionIndex(n),e.preventDefault()}onArrowUpKey(e){if(e.altKey&&this.popup)R.focus(this.target),this.hide(),e.preventDefault();else{const n=this.findPrevOptionIndex(this.focusedOptionIndex());this.changeFocusedOptionIndex(n),e.preventDefault()}}onHomeKey(e){this.changeFocusedOptionIndex(0),e.preventDefault()}onEndKey(e){this.changeFocusedOptionIndex(R.find(this.containerViewChild.nativeElement,'li[data-pc-section="menuitem"][data-p-disabled="false"]').length-1),e.preventDefault()}onEnterKey(e){const n=R.findSingle(this.containerViewChild.nativeElement,`li[id="${this.focusedOptionIndex()}"]`),i=n&&R.findSingle(n,'a[data-pc-section="action"]');this.popup&&R.focus(this.target),i?i.click():n&&n.click(),e.preventDefault()}onSpaceKey(e){this.onEnterKey(e)}findNextOptionIndex(e){const i=[...R.find(this.containerViewChild.nativeElement,'li[data-pc-section="menuitem"][data-p-disabled="false"]')].findIndex(o=>o.id===e);return i>-1?i+1:0}findPrevOptionIndex(e){const i=[...R.find(this.containerViewChild.nativeElement,'li[data-pc-section="menuitem"][data-p-disabled="false"]')].findIndex(o=>o.id===e);return i>-1?i-1:0}changeFocusedOptionIndex(e){const n=R.find(this.containerViewChild.nativeElement,'li[data-pc-section="menuitem"][data-p-disabled="false"]');if(n.length>0){let i=e>=n.length?n.length-1:e<0?0:e;i>-1&&this.focusedOptionIndex.set(n[i].getAttribute("id"))}}itemClick(e){const{originalEvent:n,item:i}=e;i.disabled?n.preventDefault():(!i.url&&!i.routerLink&&n.preventDefault(),i.command&&i.command({originalEvent:n,item:i}),this.popup&&this.hide(),!this.popup&&this.focusedOptionIndex()!==i.id&&this.focusedOptionIndex.set(i.id))}onOverlayClick(e){this.popup&&this.overlayService.add({originalEvent:e,target:this.el.nativeElement}),this.preventDocumentDefault=!0}bindDocumentClickListener(){!this.documentClickListener&&vn(this.platformId)&&(this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","click",n=>{const i=this.containerViewChild.nativeElement&&!this.containerViewChild.nativeElement.contains(n.target),o=!(this.target&&(this.target===n.target||this.target.contains(n.target)));!this.popup&&i&&o&&this.onListBlur(n),this.preventDocumentDefault&&this.overlayVisible&&i&&o&&(this.hide(),this.preventDocumentDefault=!1)}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){!this.documentResizeListener&&vn(this.platformId)&&(this.documentResizeListener=this.renderer.listen(this.document.defaultView,"resize",this.onWindowResize.bind(this)))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindScrollListener(){!this.scrollHandler&&vn(this.platformId)&&(this.scrollHandler=new Jo(this.target,()=>{this.visible&&this.hide()})),this.scrollHandler?.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}onOverlayHide(){this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.preventDocumentDefault=!1,this.cd.destroyed||(this.target=null)}ngOnDestroy(){this.popup&&(this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.container&&this.autoZIndex&&Et.clear(this.container),this.restoreOverlayAppend(),this.onOverlayHide()),this.popup||this.unbindDocumentClickListener()}hasSubMenu(){if(this.model)for(var e of this.model)if(e.items)return!0;return!1}isItemHidden(e){return e.separator?!1===e.visible||e.items&&e.items.some(n=>!1!==n.visible):!1===e.visible}static \u0275fac=function(n){return new(n||t)(M(ct),M(gn),M(Pe),M(Vt),M(rt),M(Hn),M(po))};static \u0275cmp=U({type:t,selectors:[["p-menu"]],viewQuery:function(n,i){if(1&n&&(K(noe,5),K(ioe,5)),2&n){let o;H(o=G())&&(i.listViewChild=o.first),H(o=G())&&(i.containerViewChild=o.first)}},hostAttrs:[1,"p-element"],inputs:{model:"model",popup:"popup",style:"style",styleClass:"styleClass",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",id:"id",tabindex:"tabindex"},outputs:{onShow:"onShow",onHide:"onHide",onBlur:"onBlur",onFocus:"onFocus"},decls:1,vars:1,consts:[[3,"ngClass","class","ngStyle","id","click",4,"ngIf"],[3,"ngClass","ngStyle","id","click"],["container",""],["role","menu",1,"p-menu-list","p-reset",3,"id","tabindex","focus","blur","keydown"],["list",""],[4,"ngIf"],["ngFor","",3,"ngForOf"],["class","p-menuitem-separator","role","separator",3,"ngClass",4,"ngIf"],["class","p-submenu-header","pTooltip","","role","none",3,"ngClass","tooltipOptions",4,"ngIf"],["role","separator",1,"p-menuitem-separator",3,"ngClass"],["pTooltip","","role","none",1,"p-submenu-header",3,"ngClass","tooltipOptions"],[4,"ngIf","ngIfElse"],["htmlSubmenuLabel",""],[3,"innerHTML"],["class","p-menuitem","pTooltip","","role","menuitem",3,"pMenuItemContent","ngClass","ngStyle","class","tooltipOptions","id","onMenuItemClick",4,"ngIf"],["pTooltip","","role","menuitem",1,"p-menuitem",3,"pMenuItemContent","ngClass","ngStyle","tooltipOptions","id","onMenuItemClick"]],template:function(n,i){1&n&&m(0,yoe,6,23,"div",0),2&n&&d("ngIf",!i.popup||i.visible)},dependencies:[Fe,ut,ne,nt,$t,Toe,Nx],styles:["@layer primeng{.p-menu-overlay{position:absolute;top:0;left:0}.p-menu ul{margin:0;padding:0;list-style:none}.p-menu .p-submenu-header{align-items:center}.p-menu .p-menuitem-link{cursor:pointer;display:flex;align-items:center;text-decoration:none;overflow:hidden;position:relative}.p-menu .p-menuitem-text{line-height:1}}\n"],encapsulation:2,data:{animation:[Ji("overlayAnimation",[Yt(":enter",[Tt({opacity:0,transform:"scaleY(0.8)"}),Ut("{{showTransitionParams}}")]),Yt(":leave",[Ut("{{hideTransitionParams}}",Tt({opacity:0}))])])]},changeDetection:0})}return t})(),woe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=me({imports:[Ne,zn,Cn,Ti,zn,Ti]})}return t})(),Da=(()=>{class t{constructor(e){this.httpClient=e}GetDatabaseStatus(){return this.httpClient.get("/Config/GetDatabaseStatus")}SetDatabaseCredentials(e){return this.httpClient.post("/Config/SetDatabaseCredentials",e)}GetCountries(){return this.httpClient.get("/Config/GetCountries")}GetLanguages(){return this.httpClient.get("/Config/GetLanguages")}GetIPAddresses(e){let n=(new Ie).set("Protocol",e);return this.httpClient.get("/Config/GetIPAddresses",{params:n})}GetSystemEvents(e){let n=new Ie;return e&&n.set("Host",e),this.httpClient.get("/Config/GetSystemEvents",{params:n})}static#e=this.\u0275fac=function(n){return new(n||t)(ie(Ki))};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Wt=(()=>{class t{constructor(e){this.httpClient=e}AddStorageGroupDir(e){return this.httpClient.post("/Myth/AddStorageGroupDir",e)}BackupDatabase(){return this.httpClient.post("/Myth/BackupDatabase",{body:void 0})}CheckDatabase(e){return this.httpClient.post("/Myth/CheckDatabase",e)}DelayShutdown(){return this.httpClient.post("Myth/DelayShutdown",{body:void 0})}GetBackendInfo(){return this.httpClient.get("/Myth/GetBackendInfo")}GetConnectionInfo(e){let n=(new Ie).set("Pin",e);return this.httpClient.get("/Myth/GetConnectionInfo",{params:n})}GetFrontends(e){let n=(new Ie).set("OnLine",e);return this.httpClient.get("/Myth/GetFrontends",{params:n})}GetHostName(){return this.httpClient.get("/Myth/GetHostName")}GetHosts(){return this.httpClient.get("/Myth/GetHosts")}GetKeys(){return this.httpClient.get("/Myth/GetKeys")}GetSetting(e){let n=(new Ie).set("HostName",e.HostName).set("Key",e.Key).set("Default",e.Default?e.Default:"");return this.httpClient.get("/Myth/GetSetting",{params:n})}GetSettingList(e){let n=(new Ie).set("HostName",e);return this.httpClient.get("/Myth/GetSettingList",{params:n})}GetStorageGroupDirs(e){return typeof e<"u"&&(typeof e.GroupName<"u"||typeof e.HostName<"u")?this.httpClient.post("/Myth/GetStorageGroupDirs",e):this.httpClient.get("/Myth/GetStorageGroupDirs")}GetDirListing(e,n){let i=(new Ie).set("DirName",e);return n&&(i=i.set("Files",n)),this.httpClient.get("/Myth/GetDirListing",{params:i})}GetTimeZone(){return this.httpClient.get("/Myth/GetTimeZone")}ManageDigestUser(e){return this.httpClient.post("/Myth/ManageDigestUser",e)}ManageUrlProtection(e){return this.httpClient.post("/Myth/ManageUrlProtection",e)}ProfileDelete(){return this.httpClient.post("/Myth/ProfileDelete",{body:void 0})}ProfileSubmit(){return this.httpClient.post("/Myth/ProfileSubmit",{body:void 0})}ProfileText(){return this.httpClient.get("/Myth/ProfileText")}ProfileURL(){return this.httpClient.get("/Myth/ProfileURL")}ProfileUpdated(){return this.httpClient.get("/Myth/ProfileUpdated")}PutSetting(e){return this.httpClient.post("/Myth/PutSetting",e)}DeleteSetting(e){return this.httpClient.post("/Myth/DeleteSetting",e)}RemoveStorageGroupDir(e){return this.httpClient.post("/Myth/RemoveStorageGroupDir",e)}SetConnectionInfo(e){return this.httpClient.post("/Myth/SetConnectionInfo",e)}TestDBSettings(e){return this.httpClient.post("/Myth/TestDBSettings",e)}ManageScheduler(e){return this.httpClient.post("/Myth/ManageScheduler",e)}Shutdown(e){return this.httpClient.post("/Myth/Shutdown",e)}Proxy(e){return this.httpClient.post("/Myth/Proxy",{Url:e})}static#e=this.\u0275fac=function(n){return new(n||t)(ie(Ki))};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),qp=(()=>{class t{constructor(e,n){this.configService=e,this.mythService=n,this.m_wizardData={Country:{Code:"",Country:"",NativeCountry:"",Image:""},Language:{Code:"",Language:"",NativeLanguage:"",Image:""},Database:{Host:"localhost",Port:3306,UserName:"mythtv",Password:"mythtv",Ping:!1,Name:"mythconverg",Type:"QMYSQL",LocalHostName:"my-unique-identifier-goes-here",LocalEnabled:!1,DoTest:!0,WOLEnabled:!1,WOLReconnect:0,WOLRetry:0,WOLCommand:""},DatabaseStatus:{DatabaseStatus:{Host:"",Port:0,UserName:"",Password:"",Ping:!1,Name:"",Type:"",LocalHostName:"",LocalEnabled:!1,Connected:!1,HaveDatabase:!1,SchemaVersion:0,WOLEnabled:!1,WOLReconnect:0,WOLRetry:0,WOLCommand:""}}},this.m_topElement=null,this.m_hostName="",this.m_languageSetting="",this.m_languages=[],this.m_countrySetting="",this.m_countries=[],this.fullMenu=[],this.dbSetupMenu=[],this.wizardItems=[],this.mythService.GetHostName().subscribe(i=>{this.m_hostName=i.String})}ngOnInit(){}Init(){this.initDatabaseStatus(),this.initLanguages()}getWizardData(){return this.Init(),this.m_wizardData}initDatabaseStatus(){this.dbPromise=new Promise((e,n)=>{this.configService.GetDatabaseStatus().subscribe(i=>{this.m_wizardData.DatabaseStatus=i,this.m_wizardData.Database.Host=i.DatabaseStatus.Host,this.m_wizardData.Database.Port=i.DatabaseStatus.Port,this.m_wizardData.Database.UserName=i.DatabaseStatus.UserName,this.m_wizardData.Database.Password=i.DatabaseStatus.Password,this.m_wizardData.Database.Name=i.DatabaseStatus.Name,this.m_wizardData.Database.LocalEnabled=i.DatabaseStatus.LocalEnabled,this.m_wizardData.Database.LocalHostName=i.DatabaseStatus.LocalHostName,this.m_wizardData.Database.WOLEnabled=i.DatabaseStatus.WOLEnabled,this.m_wizardData.Database.WOLReconnect=i.DatabaseStatus.WOLReconnect,this.m_wizardData.Database.WOLRetry=i.DatabaseStatus.WOLRetry,this.m_wizardData.Database.WOLCommand=i.DatabaseStatus.WOLCommand,e(!0)},i=>{console.log("Failed to get database status",i.statusText),n(!0)})})}initLanguages(){this.configService.GetCountries().subscribe(e=>{this.m_countries=e.CountryList.Countries,this.initCountry()}),this.configService.GetLanguages().subscribe(e=>{this.m_languages=e.LanguageList.Languages,this.initLanguage()})}initCountry(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"Country",Default:"US"}).subscribe(e=>{this.m_wizardData.Country=this.findCountryByCode(e.String)})}findCountryByCode(e){for(var n=0;n{this.m_wizardData.Language=this.findLanguageByCode(e.String)})}findLanguageByCode(e){for(var n=0;n{this.m_wizardData.DatabaseStatus=e},e=>{console.log("Failed to get database status",e.statusText)})}static#e=this.\u0275fac=function(n){return new(n||t)(ie(Da),ie(Wt))};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Re=(()=>{class t{constructor(e,n){this.mythService=e,this.translate=n,this.m_hostName="",this.m_initialized=!1,this.requesterForm=null,this.m_HostAddressData={successCount:0,errorCount:0,thisHostName:this.m_hostName,BackendServerPort:6543,BackendStatusPort:6544,SecurityPin:"0000",AllowConnFromAll:!1,ListenOnAllIps:!0,BackendServerIP:"127.0.0.1",BackendServerIP6:"::1",AllowLinkLocal:!0,BackendServerAddr:"",IsMasterBackend:!0,MasterServerName:this.m_hostName},this.HostAddressObs={next:i=>{i.bool?this.m_HostAddressData.successCount++:(this.m_HostAddressData.errorCount++,this.requesterForm&&this.requesterForm.form.markAsDirty())},error:i=>{console.error(i),this.m_HostAddressData.errorCount++,this.requesterForm&&this.requesterForm.form.markAsDirty()}},this.JobQCommandsObs={next:i=>{i.bool?this.m_JobQCommands.successCount++:(this.m_JobQCommands.errorCount++,this.requesterForm&&this.requesterForm.form.markAsDirty())},error:i=>{console.error(i),this.m_JobQCommands.errorCount++,this.requesterForm&&this.requesterForm.form.markAsDirty()}},this.currentForm=null,this.schedulingEnabled=!0,this.isDatabaseIgnored=!1,this.DBTimezoneSupport=!1,this.WebOnlyStartup="",this.pageType=""}Init(){this.m_initialized=!0}getHostAddressData(){return this.mythService.GetHostName().subscribe({next:e=>{this.m_hostName=e.String,this.m_HostAddressData.thisHostName=this.m_hostName,this.m_HostAddressData.MasterServerName=this.m_hostName,this.getHostSettings()},error:()=>this.m_HostAddressData.errorCount++}),this.m_HostAddressData}getHostSettings(){this.mythService.GetSetting({HostName:this.m_hostName,Key:"BackendServerPort",Default:"6543"}).subscribe({next:e=>this.m_HostAddressData.BackendServerPort=Number(e.String),error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"BackendStatusPort",Default:"6544"}).subscribe({next:e=>this.m_HostAddressData.BackendStatusPort=Number(e.String),error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"SecurityPin",Default:"0000"}).subscribe({next:e=>this.m_HostAddressData.SecurityPin=e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"AllowConnFromAll",Default:"0"}).subscribe({next:e=>this.m_HostAddressData.AllowConnFromAll="1"==e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"ListenOnAllIps",Default:"1"}).subscribe({next:e=>this.m_HostAddressData.ListenOnAllIps="1"==e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"BackendServerIP"}).subscribe({next:e=>this.m_HostAddressData.BackendServerIP=e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"BackendServerIP6"}).subscribe({next:e=>this.m_HostAddressData.BackendServerIP6=e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"UseLinkLocal"}).subscribe({next:e=>this.m_HostAddressData.AllowLinkLocal="1"==e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"BackendServerAddr"}).subscribe({next:e=>this.m_HostAddressData.BackendServerAddr=e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"MasterServerName",Default:this.m_hostName}).subscribe({next:e=>{this.m_HostAddressData.MasterServerName=e.String,this.m_HostAddressData.IsMasterBackend=this.m_HostAddressData.MasterServerName==this.m_hostName},error:()=>this.m_HostAddressData.errorCount++})}saveHostAddressData(e){this.requesterForm=e,this.m_HostAddressData.successCount=0,this.m_HostAddressData.errorCount=0,this.mythService.PutSetting({HostName:this.m_hostName,Key:"BackendServerPort",Value:String(this.m_HostAddressData.BackendServerPort)}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"BackendStatusPort",Value:String(this.m_HostAddressData.BackendStatusPort)}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"SecurityPin",Value:this.m_HostAddressData.SecurityPin}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"AllowConnFromAll",Value:this.m_HostAddressData.AllowConnFromAll?"1":"0"}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"ListenOnAllIps",Value:this.m_HostAddressData.ListenOnAllIps?"1":"0"}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"BackendServerIP",Value:this.m_HostAddressData.BackendServerIP}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"BackendServerIP6",Value:this.m_HostAddressData.BackendServerIP6}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"AllowLinkLocal",Value:this.m_HostAddressData.AllowLinkLocal?"1":"0"}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"BackendServerAddr",Value:this.m_HostAddressData.BackendServerAddr}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"MasterServerName",Value:this.m_HostAddressData.MasterServerName}).subscribe(this.HostAddressObs)}getLocaleData(){return this.m_LocaleData={successCount:0,errorCount:0,TVFormat:"PAL",VbiFormat:"None",FreqTable:"us-bcast"},this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"TVFormat"}).subscribe({next:e=>this.m_LocaleData.TVFormat=e.String,error:()=>this.m_LocaleData.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"VbiFormat"}).subscribe({next:e=>this.m_LocaleData.VbiFormat=e.String,error:()=>this.m_LocaleData.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"FreqTable"}).subscribe({next:e=>this.m_LocaleData.FreqTable=e.String,error:()=>this.m_LocaleData.errorCount++}),this.m_LocaleData}getSetupData(){return this.getHostAddressData(),this.getLocaleData(),this.m_setupData={General:{HostAddress:this.m_HostAddressData,Locale:this.m_LocaleData}},this.m_setupData}parseTime(e,n){let i=n.split(":");e.setHours(Number(i[0])),e.setMinutes(Number(i[1]))}formatTime(e){let n=e.getHours(),i=e.getMinutes(),o="";return n<10&&(o+="0"),o+=String(n),o+=":",i<10&&(o+="0"),o+=String(i),o}getJobQCommands(){if("object"==typeof this.m_JobQCommands)return this.m_JobQCommands;this.m_JobQCommands={successCount:0,errorCount:0,UserJobDesc:[],UserJob:[]};for(let e=0;e<4;e++){let n=e+1;this.translate.get("settings.services.job_default",{num:n}).subscribe(i=>this.m_JobQCommands.UserJobDesc[e]=i),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"UserJobDesc"+n,Default:""}).subscribe({next:i=>{i.String&&i.String.length>0&&(this.m_JobQCommands.UserJobDesc[e]=i.String)},error:()=>this.m_JobQCommands.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"UserJob"+n,Default:""}).subscribe({next:i=>this.m_JobQCommands.UserJob[e]=i.String,error:()=>this.m_JobQCommands.errorCount++})}return this.m_JobQCommands}saveJobQCommands(e){this.requesterForm=e,this.m_JobQCommands.successCount=0,this.m_JobQCommands.errorCount=0;for(let n=0;n<4;n++){let i=n+1;this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"UserJobDesc"+i,Value:this.m_JobQCommands.UserJobDesc[n]}).subscribe(this.JobQCommandsObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"UserJob"+i,Value:this.m_JobQCommands.UserJob[n]}).subscribe(this.JobQCommandsObs)}}getCurrentForm(){return this.currentForm}setCurrentForm(e){this.currentForm=e}static#e=this.\u0275fac=function(n){return new(n||t)(ie(Wt),ie(Le))};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),sr=(()=>{class t{constructor(e){this.httpClient=e}AddDontRecordSchedule(e){return this.httpClient.post("/Dvr/AddDontRecordSchedule",e)}AddRecordSchedule(e){return this.httpClient.post("/Dvr/AddRecordSchedule",e)}UpdateRecordSchedule(e){return this.httpClient.post("/Dvr/UpdateRecordSchedule",e)}RemoveRecordSchedule(e){return this.httpClient.post("/Dvr/RemoveRecordSchedule",{RecordId:e})}AddRecordedCredits(e){return this.httpClient.post("/Dvr/AddRecordedCredits",e)}AddRecordedProgram(e){return this.httpClient.post("/Dvr/AddRecordedProgram",e)}AllowReRecord(e,n,i){return this.httpClient.post("/Dvr/AllowReRecord",{RecordedId:e,ChanId:n,StartTime:i})}DeleteRecording(e){return this.httpClient.post("/Dvr/DeleteRecording",e)}UnDeleteRecording(e){return this.httpClient.post("/Dvr/UnDeleteRecording",e)}UpdateRecordedMetadata(e){return this.httpClient.post("/Dvr/UpdateRecordedMetadata",e)}DisableRecordSchedule(e){return this.httpClient.post("/Dvr/DisableRecordSchedule",{RecordId:e})}DupInToDescription(e){let n=(new Ie).set("DupIn",e);return this.httpClient.get("/Dvr/DupInToDescription",{params:n})}DupInToString(e){let n=(new Ie).set("DupIn",e);return this.httpClient.get("/Dvr/DupInToString",{params:n})}DupMethodToDescription(e){let n=(new Ie).set("DupMethod",e);return this.httpClient.get("/Dvr/DupMethodToDescription",{params:n})}DupMethodToString(e){let n=(new Ie).set("DupMethod",e);return this.httpClient.get("/Dvr/DupMethodToString",{params:n})}EnableRecordSchedule(e){return this.httpClient.post("/Dvr/EnableRecordSchedule",e)}GetConflictList(e){let n=(new Ie).set("StartIndex",e.StartIndex).set("Count",e.Count).set("RecordId",e.RecordId);return this.httpClient.get("/Dvr/GetConflictList",{params:n})}GetEncoderList(){return this.httpClient.get("/Dvr/GetEncoderList")}GetExpiringList(e){let n=(new Ie).set("StartIndex",e.StartIndex).set("Count",e.Count);return this.httpClient.get("/Dvr/GetExpiringList",{params:n})}GetInputList(){return this.httpClient.get("/Dvr/GetInputList")}GetLastPlayPos(e){let n=(new Ie).set("RecordedId",e.RecordedId).set("ChanId",e.ChanId).set("StartTime",e.StartTime).set("OffsetType",e.OffsetType);return this.httpClient.get("/Dvr/GetLastPlayPos",{params:n})}GetOldRecordedList(e){let n=(new Ie).set("Descending",e.Descending).set("StartIndex",e.StartIndex).set("Count",e.Count).set("StartTime",e.StartTime).set("EndTime",e.EndTime).set("Title",e.Title).set("SeriesId",e.SeriesId).set("RecordId",e.RecordId).set("Sort",e.Sort);return this.httpClient.get("/Dvr/GetOldRecordedList",{params:n})}GetPlayGroupList(){return this.httpClient.get("/Dvr/GetPlayGroupList")}GetPlayGroup(e){let n=(new Ie).set("Name",e);return this.httpClient.get("/Dvr/GetPlayGroup",{params:n})}AddPlayGroup(e){return this.httpClient.post("/Dvr/AddPlayGroup",e)}UpdatePlayGroup(e){return this.httpClient.post("/Dvr/UpdatePlayGroup",e)}removePlayGroup(e){return this.httpClient.post("/Dvr/RemovePlayGroup",{Name:e})}GetProgramCategories(e){let n=(new Ie).set("OnlyRecorded",e);return this.httpClient.get("/Dvr/GetProgramCategories",{params:n})}GetRecGroupList(){return this.httpClient.get("/Dvr/GetRecGroupList")}GetRecRuleFilterList(){return this.httpClient.get("/Dvr/GetRecRuleFilterList")}GetRecStorageGroupList(){return this.httpClient.get("/Dvr/GetRecStorageGroupList")}GetRecordSchedule(e){let n=new Ie;for(const[i,o]of Object.entries(e))n=n.set(i,o);return this.httpClient.get("/Dvr/GetRecordSchedule",{params:n})}GetRecordScheduleList(e){let n=new Ie;for(const[i,o]of Object.entries(e))n=n.set(i,o);return this.httpClient.get("/Dvr/GetRecordScheduleList",{params:n})}GetRecorded(e){let n=new Ie;for(const[i,o]of Object.entries(e))n=n.set(i,o);return this.httpClient.get("/Dvr/GetRecorded",{params:n})}GetRecordedList(e){let n=new Ie;for(const[i,o]of Object.entries(e))n=n.set(i,o);return this.httpClient.get("/Dvr/GetRecordedList",{params:n})}GetUpcomingList(e){let n=new Ie;for(const[i,o]of Object.entries(e))n=n.set(i,o);return this.httpClient.get("/Dvr/GetUpcomingList",{params:n})}RecStatusToString(e){let n=(new Ie).set("RecStatus",e);return this.httpClient.get("/Dvr/RecStatusToString",{params:n})}ManageJobQueue(e){return this.httpClient.post("/Dvr/ManageJobQueue",e)}StopRecording(e){return this.httpClient.post("/Dvr/StopRecording",{RecordedId:e})}static#e=this.\u0275fac=function(n){return new(n||t)(ie(Ki))};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Ioe(t,s){if(1&t&&(l(0,"div",9),D(1,"p-message",10),f(2,"translate"),c()),2&t){const e=p();a(1),I("text",g(2,2,"settings.main.webonly."+e.setupService.WebOnlyStartup)),d("styleClass","font-bold")}}function Soe(t,s){1&t&&(D(0,"p-message",10),f(1,"translate")),2&t&&(I("text",g(1,2,"settings.main.mustenable")),d("styleClass","font-bold"))}function xoe(t,s){1&t&&(D(0,"p-message",10),f(1,"translate")),2&t&&(I("text",g(1,2,"settings.main.mustrestart")),d("styleClass","font-bold"))}function Doe(t,s){if(1&t&&(l(0,"div",9),m(1,Soe,2,4,"p-message",11),m(2,xoe,2,4,"ng-template",null,12,ve),c()),2&t){const e=B(3),n=p();a(1),d("ngIf",n.setupService.schedulingEnabled)("ngIfElse",e)}}function Moe(t,s){if(1&t){const e=E();l(0,"div",13)(1,"div",14)(2,"p-button",15),v("onClick",function(){return C(e),y(p().disableSched())}),f(3,"translate"),c()(),l(4,"div",14),_(5),f(6,"translate"),c()()}2&t&&(a(2),I("label",g(3,2,"settings.main.enableupdates_label")),a(3),S(g(6,4,"settings.main.enableupdates_desc")))}function koe(t,s){1&t&&(l(0,"div",14)(1,"div",17),_(2),f(3,"translate"),c()()),2&t&&(a(2),S(g(3,1,"settings.main.restart_desc")))}function Eoe(t,s){1&t&&(l(0,"div",14),_(1),f(2,"translate"),c()),2&t&&(a(1),x(" ",g(2,1,"settings.main.slave_enabled"),""))}function Loe(t,s){if(1&t){const e=E();l(0,"div",13)(1,"div",14)(2,"p-button",15),v("onClick",function(){return C(e),y(p().restart())}),f(3,"translate"),c()(),m(4,koe,4,3,"div",16),m(5,Eoe,3,3,"div",16),c()}if(2&t){const e=p();a(2),I("label",g(3,3,"WEBONLYPARM"==e.setupService.WebOnlyStartup?"settings.main.shutdown_label":"settings.main.restart_label")),a(2),d("ngIf",!e.masterServerName||!e.hostName||e.masterServerName==e.hostName),a(1),d("ngIf",e.masterServerName&&e.hostName&&e.masterServerName!=e.hostName)}}const Roe=function(t,s,e){return{Title:t,StartTime:s,Status:e}};function Ooe(t,s){if(1&t&&(l(0,"small",18),_(1),f(2,"translate"),c()),2&t){const e=p();a(1),x(" ",mt(2,1,"settings.main.upcomingrec",Bt(4,Roe,e.upComing[0].Title,e.recStartTime,e.recStatusDesc))," ")}}function Aoe(t,s){1&t&&(l(0,"div")(1,"p"),_(2),f(3,"translate"),c(),l(4,"p"),_(5),f(6,"translate"),c()()),2&t&&(a(2),x("",g(3,2,"settings.main.slave_instructions")," "),a(3),x("",g(6,4,"settings.main.slave_warning")," "))}function Poe(t,s){1&t&&D(0,"p-progressSpinner")}function Foe(t,s){1&t&&(D(0,"p-message",19),f(1,"translate")),2&t&&I("text",g(1,1,"settings.main.restarting"))}function Noe(t,s){1&t&&(D(0,"p-message",20),f(1,"translate")),2&t&&I("text",g(1,1,"common.networkfail"))}let Voe=(()=>{class t{constructor(e,n,i,o,r,u){this.mythService=e,this.setupService=n,this.dvrService=i,this.wizardService=o,this.messageService=r,this.translate=u,this.errorCount=0,this.retryCount=0,this.upComing=[],this.recStatusDesc="",this.recStartTime="",this.ready=!1,this.delay=0,this.busy=!1,this.hostName="",this.masterServerName="",this.getBackendInfo(),this.refreshInfo()}refreshInfo(){setTimeout(()=>{this.getBackendInfo(),this.refreshInfo()},12e4)}getBackendInfo(){0==this.retryCount&&(this.errorCount=0),this.ready=!1,this.recStatusDesc="",this.recStartTime="",this.upComing=[],this.mythService.GetHostName().subscribe({next:e=>{this.hostName=e.String,this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"MasterServerName",Default:this.hostName}).subscribe({next:n=>{this.masterServerName=n.String},error:()=>this.errorCount++})},error:()=>this.errorCount++}),this.mythService.GetBackendInfo().subscribe({next:e=>{this.setupService.schedulingEnabled=e.BackendInfo.Env.SchedulingEnabled,this.setupService.isDatabaseIgnored=e.BackendInfo.Env.IsDatabaseIgnored,this.setupService.DBTimezoneSupport=e.BackendInfo.Env.DBTimezoneSupport,this.setupService.WebOnlyStartup=e.BackendInfo.Env.WebOnlyStartup,(this.setupService.isDatabaseIgnored||!this.setupService.DBTimezoneSupport||"NONE"!=this.setupService.WebOnlyStartup)&&(this.setupService.schedulingEnabled=!1),this.wizardService.wizardItems=this.setupService.isDatabaseIgnored?this.wizardService.dbSetupMenu:this.wizardService.fullMenu,this.wizardService.getWizardData(),this.retryCount>0&&this.errorCount>0?(this.retryCount=0,this.errorCount=0):this.retryCount>0&&0==this.errorCount&&setTimeout(()=>this.getBackendInfo(),2e3),0==this.retryCount&&(setTimeout(()=>this.getUpcoming(),this.delay),this.delay=0)},error:()=>{this.errorCount++,this.errorCountthis.getBackendInfo(),2e3):this.retryCount=0}})}getUpcoming(){this.errorCount=0,this.dvrService.GetUpcomingList({Count:1}).subscribe({next:e=>{if(this.upComing=e.ProgramList.Programs,this.ready=!0,this.upComing.length>0){this.dvrService.RecStatusToString(this.upComing[0].Recording.Status).subscribe({next:i=>this.recStatusDesc=i.String,error:()=>this.errorCount++});var n=new Date(this.upComing[0].Recording.StartTs);this.recStartTime=n.toLocaleString()}},error:()=>this.errorCount++})}disableSched(){this.mythService.ManageScheduler({Disable:!0}).subscribe({next:e=>this.getBackendInfo(),error:()=>this.errorCount++})}restart(){let e="WEBONLYPARM"!=this.setupService.WebOnlyStartup;this.mythService.Shutdown({Restart:e}).subscribe({next:n=>{n.bool?(this.retryCount=e?30:9999,this.getBackendInfo()):this.errorCount++},error:()=>this.errorCount++}),this.delay=5e3}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)(M(Wt),M(Re),M(sr),M(qp),M(Yi),M(Le))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-backend-warning"]],features:[Qe([Yi])],decls:15,vars:9,consts:[[1,"block","card","w-full"],[1,"block"],[1,"m-5"],["class","flex mb-3",4,"ngIf"],["class","flex",4,"ngIf"],["class","pb-0 m-0",4,"ngIf"],[4,"ngIf"],["severity","info",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],[1,"flex","mb-3"],["severity","warn",3,"styleClass","text"],["severity","warn",3,"styleClass","text",4,"ngIf","ngIfElse"],["mustrestart",""],[1,"flex"],[1,"flex","align-items-center"],["icon","pi pi-save","iconPos","left",1,"pr-5","pb-1","pt-0","m-0",3,"label","onClick"],["class","flex align-items-center",4,"ngIf"],[1,"text-pink-500"],[1,"pb-0","m-0"],["severity","info",3,"text"],["severity","error",3,"text"]],template:function(n,i){1&n&&(l(0,"div",0)(1,"div",1)(2,"p-card",2),m(3,Ioe,3,4,"div",3),m(4,Doe,4,2,"div",3),m(5,Moe,7,6,"div",4),m(6,Loe,6,5,"div",4),l(7,"div"),m(8,Ooe,3,8,"small",5),c(),m(9,Aoe,7,6,"div",6),l(10,"div"),m(11,Poe,1,0,"p-progressSpinner",6),m(12,Foe,2,3,"p-message",7),l(13,"p"),m(14,Noe,2,3,"p-message",8),c()()()()()),2&n&&(a(3),d("ngIf",0==i.retryCount&&"NONE"!=i.setupService.WebOnlyStartup),a(1),d("ngIf",0==i.retryCount),a(1),d("ngIf",i.setupService.schedulingEnabled&&0==i.retryCount),a(1),d("ngIf",!i.setupService.schedulingEnabled&&0==i.retryCount),a(2),d("ngIf",i.upComing.length>0),a(1),d("ngIf",i.masterServerName&&i.hostName&&i.masterServerName!=i.hostName&&0==i.retryCount),a(2),d("ngIf",i.retryCount>0),a(1),d("ngIf",i.retryCount>0),a(2),d("ngIf",!i.setupService.isDatabaseIgnored&&i.errorCount>0&&0==i.retryCount))},dependencies:[ne,Te,Ge,qe,Ia,pe]})}return t})();const Boe=["top"];let Bx=(()=>{class t{constructor(e,n,i){this.wizardService=e,this.setupService=n,this.translate=i,this.fullMenu=[],this.dbSetupMenu=[],this.activeIndex=0,n.pageType="S"}ngOnInit(){this.translate.get("setupwizard.steps.selectlanguage").subscribe(e=>{this.fullMenu=[{label:this.translate.instant("setupwizard.steps.dbsetup"),routerLink:"dbsetup"},{label:this.translate.instant("setupwizard.steps.selectlanguage"),routerLink:"selectlanguage"},{label:this.translate.instant("setupwizard.steps.general"),routerLink:"general"},{label:this.translate.instant("setupwizard.steps.capture_cards"),routerLink:"capture-cards"},{label:this.translate.instant("setupwizard.steps.recording_profiles"),routerLink:"recording-profiles"},{label:this.translate.instant("setupwizard.steps.video_sources"),routerLink:"video-sources"},{label:this.translate.instant("setupwizard.steps.input_connections"),routerLink:"input-connections"},{label:this.translate.instant("setupwizard.steps.channel_editor"),routerLink:"channel-editor"},{label:this.translate.instant("setupwizard.steps.storage_groups"),routerLink:"storage-groups"},{label:this.translate.instant("setupwizard.steps.system_events"),routerLink:"system-events"}],this.wizardService.fullMenu=this.fullMenu,this.activeItem=this.fullMenu[0],this.dbSetupMenu=[this.fullMenu[0]],this.wizardService.dbSetupMenu=this.dbSetupMenu,this.wizardService.wizardItems=this.wizardService.fullMenu})}ngAfterViewInit(){this.wizardService.m_topElement=this.topElement}static#e=this.\u0275fac=function(n){return new(n||t)(M(qp),M(Re),M(Le))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-settings"]],viewQuery:function(n,i){if(1&n&&K(Boe,5),2&n){let o;H(o=G())&&(i.topElement=o.first)}},decls:17,vars:12,consts:[["top",""],[1,"content-section","implementation"],[1,"card"],[1,"flex","flex-row"],["pButton","","pRipple","","icon","pi pi-angle-double-left",1,"p-button-text","p-button-primary",3,"pTooltip","click"],[1,"col-11"],[3,"model","activeItem","scrollable"],["menu",""],["pButton","","pRipple","","icon","pi pi-angle-double-right",1,"p-button-text","p-button-primary",3,"pTooltip","click"]],template:function(n,i){if(1&n){const o=E();D(0,"span",null,0),l(2,"div",1)(3,"h1"),_(4),f(5,"translate"),c(),l(6,"div",2)(7,"div",3)(8,"button",4),v("click",function(){return C(o),y(B(12).navBackward())}),f(9,"translate"),c(),l(10,"div",5),D(11,"p-tabMenu",6,7),c(),l(13,"button",8),v("click",function(){return C(o),y(B(12).navForward())}),f(14,"translate"),c()()(),D(15,"app-backend-warning")(16,"router-outlet"),c()}2&n&&(a(4),S(g(5,6,"settings.main.title")),a(4),I("pTooltip",g(9,8,"dashboard.scrolltabsleft")),a(3),d("model",i.wizardService.wizardItems)("activeItem",i.activeItem)("scrollable",!1),a(2),I("pTooltip",g(14,10,"dashboard.scrolltabsright")))},dependencies:[fc,$t,Sn,bt,Mx,Voe,pe],styles:['.warning[_ngcontent-%COMP%]{color:#cc8925;background-color:#fff2e2}.connected[_ngcontent-%COMP%]{color:#1ea97c;background-color:#e4f8f0}.medium-width[_ngcontent-%COMP%]{width:"600"}']})}return t})();function Hoe(t,s){if(1&t){const e=E();l(0,"div"),D(1,"h1"),l(2,"div",1)(3,"button",2),v("click",function(){return C(e),y(B(7).navBackward())}),f(4,"translate"),c(),l(5,"div",3),D(6,"p-tabMenu",4,5),c(),l(8,"button",6),v("click",function(){return C(e),y(B(7).navForward())}),f(9,"translate"),c()(),D(10,"router-outlet"),c()}if(2&t){const e=p();a(3),I("pTooltip",g(4,5,"dashboard.scrolltabsleft")),a(3),d("model",e.fullMenu)("activeItem",e.activeItem)("scrollable",!1),a(2),I("pTooltip",g(9,7,"dashboard.scrolltabsright"))}}let Hx=(()=>{class t{constructor(e,n){this.translate=e,this.setupService=n,this.translateDone=!1,this.fullMenu=[{label:"dashboard.backendStatus",routerLink:"status"},{label:"dashboard.channeleditor",routerLink:"channel-editor"},{label:"dashboard.programguide",routerLink:"program-guide"},{label:"dashboard.recordings.heading",routerLink:"recordings"},{label:"dashboard.upcoming.heading",routerLink:"upcoming"},{label:"dashboard.recrules.heading",routerLink:"recrules"},{label:"dashboard.videos.heading",routerLink:"videos"},{label:"dashboard.settings.heading",routerLink:"settings"}],this.activeItem=this.fullMenu[0],n.pageType="D",this.fullMenu.forEach(i=>{i.label&&this.translate.get(i.label).subscribe(o=>{i.label=o,this.translateDone=!0})})}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)(M(Le),M(Re))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-dashboard"]],decls:1,vars:1,consts:[[4,"ngIf"],[1,"flex","flex-row"],["pButton","","pRipple","","icon","pi pi-angle-double-left",1,"p-button-text","p-button-primary",3,"pTooltip","click"],[1,"col-11"],[3,"model","activeItem","scrollable"],["menu",""],["pButton","","pRipple","","icon","pi pi-angle-double-right",1,"p-button-text","p-button-primary",3,"pTooltip","click"]],template:function(n,i){1&n&&m(0,Hoe,11,9,"div",0),2&n&&d("ngIf",i.translateDone)},dependencies:[ne,fc,$t,Sn,bt,Mx,pe],styles:["[_nghost-%COMP%] .dark-panel.p-panel .p-panel-header{background:#c0c0c0}"]})}return t})(),ns=(()=>{class t{constructor(){}canDeactivate(e,n,i,o){return!e.canDeactivate||e.canDeactivate()}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Goe=[{path:"dashboard",component:Hx},{path:"setupwizard",component:Bx}];let qoe=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=ge({type:t});static#n=this.\u0275inj=me({providers:[ns],imports:[zn.forRoot(Goe),zn]})}return t})(),zoe=(()=>{class t{constructor(e,n){this.http=e,this.document=n}switchTheme(e){let n=this.document.getElementById("app-theme");n&&(n.href="assets/themes/"+e)}getThemes(){return this.http.get("assets/themes/themes.json").toPromise().then(e=>e.data).then(e=>e)}static#e=this.\u0275fac=function(n){return new(n||t)(ie(Ki),ie(ct))};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),xc=(()=>{class t{constructor(e){this.translate=e,this.m_showSidebar=!0,this.recStatusText={Default:"",All:"",Pending:"",Failing:"",MissedFuture:"",Tuning:"",Failed:"",TunerBusy:"",LowDiskSpace:"",Cancelled:"",Missed:"",Aborted:"",Recorded:"",Recording:"",WillRecord:"",Unknown:"",DontRecord:"",PreviousRecording:"",CurrentRecording:"",EarlierShowing:"",TooManyRecordings:"",NotListed:"",Conflict:"",LaterShowing:"",Repeat:"",Inactive:"",NeverRecord:"",Offline:""},this.recStatusList=[],this.getTranslations()}getTranslations(){for(const[e,n]of Object.entries(this.recStatusText))this.translate.get("data.recstatus."+e).subscribe(i=>{Object.defineProperty(this.recStatusText,e,{value:i});let o=3;"Default"==e&&(o=1),"All"==e&&(o=2),"Unknown"!=e&&(this.recStatusList.push({Status:e,Name:i,Sequence:o}),"Offline"==e&&this.sortStatusList())})}sortStatusList(){this.recStatusList.sort((e,n)=>{let i=e.Sequence-n.Sequence;if(0!=i)return i;const o=e.Name.toUpperCase(),r=n.Name.toUpperCase();return or?1:0})}toggleShowSidebar(){this.m_showSidebar=!this.m_showSidebar}showSidebar(e){this.m_showSidebar=e}static#e=this.\u0275fac=function(n){return new(n||t)(ie(Le))};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Uoe(t,s){if(1&t&&(l(0,"div"),D(1,"img",26),c()),2&t){const e=p(2);a(1),ai("src","images/themes/",e.m_selectedTheme.Image,"",tn)}}function joe(t,s){if(1&t&&(l(0,"div"),D(1,"img",27),c()),2&t){const e=p(2);a(1),ai("src","images/locale/",e.m_selectedLanguage.Image,"",tn)}}function $oe(t,s){if(1&t){const e=E();l(0,"div",7)(1,"div",8)(2,"a",9),v("click",function(){return C(e),y(p().toggleShowSidebar())}),D(3,"i",10)(4,"span",11),c(),D(5,"img",12),l(6,"div",13)(7,"h1"),_(8),f(9,"translate"),c()()(),l(10,"div",14)(11,"button",15),v("click",function(){return C(e),y(p().showTopBar=!1)}),f(12,"translate"),c()(),l(13,"div",16)(14,"a",17),v("click",function(){return C(e),y(p().toggleShowNavbar())}),D(15,"i",18)(16,"span",11),c(),l(17,"ul",19)(18,"li",20)(19,"a",21),v("click",function(i){return C(e),p(),y(B(5).toggle(i))}),f(20,"translate"),m(21,Uoe,2,1,"div",22),l(22,"span",23),_(23),f(24,"translate"),c(),D(25,"span",24),c()(),l(26,"li",20)(27,"a",25),v("click",function(i){return C(e),p(),y(B(8).toggle(i))}),f(28,"translate"),m(29,joe,2,1,"div",22),l(30,"span",23),_(31),f(32,"translate"),c(),D(33,"span",24),c()()()()()}if(2&t){const e=p();a(8),S(g(9,9,"navbar.mainheading")),a(3),I("pTooltip",g(12,11,"navbar.hide")),a(6),d("hidden",e.m_showNavbar),a(2),I("pTooltip",g(20,13,"navbar.switchTheme")),a(2),d("ngIf",e.m_selectedTheme),a(2),S(g(24,15,"navbar.switchTheme")),a(4),I("pTooltip",g(28,17,"navbar.changeLanguage")),a(2),d("ngIf",e.m_selectedLanguage),a(2),S(g(32,19,"navbar.changeLanguage"))}}function Woe(t,s){if(1&t){const e=E();l(0,"div",28)(1,"button",29),v("click",function(){return C(e),y(p().showTopBar=!0)}),f(2,"translate"),c()()}2&t&&(a(1),I("pTooltip",g(2,1,"navbar.show")))}function Koe(t,s){if(1&t&&(l(0,"tr",33)(1,"td",34)(2,"span",35),_(3),c()()()),2&t){const e=s.$implicit;a(3),S(e.Category)}}function Qoe(t,s){if(1&t){const e=E();l(0,"tr",36),v("click",function(){const o=C(e).$implicit;return y(p(2).changeTheme(o))}),l(1,"td",37),D(2,"img",38),c(),l(3,"td"),_(4),c()()}if(2&t){const n=s.$implicit;d("pSelectableRow",s.$implicit),a(2),ai("src","images/themes/",n.Image,"",tn),d("alt",n.image),a(2),S(n.Name)}}function Joe(t,s){1&t&&(l(0,"p-table",30),m(1,Koe,4,1,"ng-template",31),m(2,Qoe,5,4,"ng-template",32),c()),2&t&&d("value",p().m_themes$)("paginator",!1)("scrollable",!0)}function Zoe(t,s){if(1&t){const e=E();l(0,"tr",36),v("click",function(){const o=C(e).$implicit,r=p(2);return B(8).hide(),y(r.changeLanguage(o))}),l(1,"td",37),D(2,"img",38),c(),l(3,"td")(4,"pre")(5,"span",40),_(6),c(),D(7,"br"),_(8),c()()()}if(2&t){const n=s.$implicit;d("pSelectableRow",s.$implicit),a(2),ai("src","images/locale/",n.Image,"",tn),d("alt",n.image),a(4),S(n.Language),a(2),x("",n.NativeLanguage," ")}}function Yoe(t,s){1&t&&(l(0,"p-table",39),m(1,Zoe,9,5,"ng-template",32),c()),2&t&&d("value",p().m_languages)("paginator",!1)("scrollable",!0)}const Xoe=function(){return{width:"350px"}},ere=function(){return{width:"450px"}};let tre=(()=>{class t{constructor(e,n,i,o,r,u,h){this.themeService=e,this.configService=n,this.translateService=i,this.primeconfigService=o,this.dataService=r,this.mythService=u,this.router=h,this.m_showNavbar=!0,this.showTopBar=!0,this.m_devMode=!1,this.m_haveDatabase=!0,this.themeService.getThemes().then(b=>{this.m_themes$=b,this.m_selectedTheme=this.findThemeByName(localStorage.getItem("Theme")||"Blue Light"),this.themeService.switchTheme(this.m_selectedTheme.CSS)}),this.configService.GetLanguages().subscribe(b=>{this.m_languages=b.LanguageList.Languages,this.m_selectedLanguage=this.findLanguageByCode(localStorage.getItem("Language")||"en_US")}),this.mythService.GetBackendInfo().subscribe(b=>{var T=this.router.url;b.BackendInfo.Env.IsDatabaseIgnored||!b.BackendInfo.Env.SchedulingEnabled&&!T.startsWith("/setupwizard/")?h.navigate(["setupwizard/dbsetup"]):"/"==T&&h.navigate(["dashboard/status"])})}ngOnInit(){}findThemeByName(e){for(var n=0;nthis.primeconfigService.setTranslation(n))}toggleShowNavbar(){this.m_showNavbar=!this.m_showNavbar}toggleShowSidebar(){this.dataService.toggleShowSidebar()}static#e=this.\u0275fac=function(n){return new(n||t)(M(zoe),M(Da),M(Le),M(Hn),M(xc),M(Wt),M(Nt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-navbar"]],decls:10,vars:10,consts:[[1,"flex","flex-column","relative","flex-auto"],["class","toolbar flex justify-content-between align-items-center pm-8 surface-section relative lg:static surface-border","style","height: 80px;",4,"ngIf","ngIfElse"],["hidden",""],[3,"showCloseIcon"],["themePanel",""],["pTemplate",""],["languagePanel",""],[1,"toolbar","flex","justify-content-between","align-items-center","pm-8","surface-section","relative","lg:static","surface-border",2,"height","80px"],[1,"toolbar","flex","align-items-left","flex-shrink-0",2,"height","80px"],["pRipple","",1,"p-ripple","p-element","my-3","mx-1","flex","align-items-center","cursor-pointer","p-3","lg:hidden","lg:justify-content-center","hover:bg-gray-800","border-round","text-300","hover:text-0","transition-duration-150","transition-colors",3,"click"],[1,"pi","pi-bars","mr-1","lg:ml-1","text-base","lg:text-xl"],["ng","","serve","",1,"p-ink"],["src","images/mythtv.png","alt","Image","height","80",1,"py-2","pl-1"],[1,"hidden","md:inline-flex"],[1,"toolbar","flex","flex-grow-1","align-items-end",2,"height","80px"],["pButton","","pRipple","","icon","pi pi-angle-up",1,"p-button-text","lg:col-offset-3","p-button-secondary",3,"pTooltip","click"],[1,"pr-2","toolbar",2,"height","80px"],["pRipple","",1,"toolbar","p-ripple","p-element","my-2","mx-2","flex","align-items-center","cursor-pointer","p-3","md:hidden","md:justify-content-center","hover:bg-gray-800","border-round","text-300","hover:text-0","transition-duration-150","transition-colors",2,"height","80px",3,"click"],[1,"pi","pi-ellipsis-v","mr-1","md:mr-0","text-base","md:text-xl"],[1,"toolbar","list-none","p-0","m-0","md:flex","md:align-items-center","select-none","md:flex-row","surface-section","border-1","md:border-none","surface-border","right-0","top-100","z-2","shadow-2","md:shadow-none","absolute","md:static",3,"hidden"],[1,"toolbar",2,"height","80px"],["pRipple","","tooltipPosition","bottom",1,"p-ripple","p-element","my-3","mx-1","flex","align-items-center","cursor-pointer","p-2","lg:justify-content-center","hover:bg-gray-800","border-round","text-300","hover:text-0","transition-duration-150","transition-colors",3,"pTooltip","click"],[4,"ngIf"],[1,"font-medium","inline","md:hidden"],[1,"p-ink"],["pRipple","","tooltipPosition","bottom",1,"p-ripple","p-element","my-3","mx-1","flex","align-items-center","cursor-pointer","p-3","lg:justify-content-center","hover:bg-gray-800","border-round","text-300","hover:text-0","transition-duration-150","transition-colors",3,"pTooltip","click"],[1,"mr-2","lg:mr-0",2,"width","32px","height","32px",3,"src"],[1,"mr-2","lg:mr-0",2,"width","32px",3,"src"],[1,"toolbar","block","flex","flex-grow-1","justify-content-center","align-items-end",2,"height","2rem"],["pButton","","pRipple","","icon","pi pi-angle-down",1,"p-button-text","p-button-secondary",3,"pTooltip","click"],["selectionMode","single","sortField","Name","sortMode","single","scrollHeight","500px","rowGroupMode","subheader","groupRowsBy","Category","responsiveLayout","scroll",3,"value","paginator","scrollable"],["pTemplate","groupheader"],["pTemplate","body"],["pRowGroupHeader",""],["colspan","2"],[1,"font-bold","ml-2"],[3,"pSelectableRow","click"],[2,"max-width","80px"],[1,"theme-image",3,"src","alt"],["selectionMode","single","sortField","NativeLanguage","sortMode","single","scrollHeight","500px","responsiveLayout","scroll",3,"value","paginator","scrollable"],[1,"font-bold"]],template:function(n,i){if(1&n&&(l(0,"div",0),m(1,$oe,34,21,"div",1),m(2,Woe,3,3,"ng-template",null,2,ve),c(),l(4,"p-overlayPanel",3,4),m(6,Joe,3,3,"ng-template",5),c(),l(7,"p-overlayPanel",3,6),m(9,Yoe,2,3,"ng-template",5),c()),2&n){const o=B(3);a(1),d("ngIf",i.showTopBar)("ngIfElse",o),a(3),j(V(8,Xoe)),d("showCloseIcon",!0),a(3),j(V(9,ere)),d("showCloseIcon",!0)}},dependencies:[ne,$t,ae,Sn,xJ,bt,yn,Kee,Tx,pe],styles:[".toolbar[_ngcontent-%COMP%]{background-color:#000;color:#4682b4}.theme-image[_ngcontent-%COMP%]{width:50px}"]})}return t})(),nre=(()=>{class t{constructor(e){this.dataService=e}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)(M(xc))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-sidenav"]],decls:32,vars:25,consts:[[1,"navbar","flex","relative","lg:static","surface-ground"],["id","sidebar",1,"bg-gray-900","lg:block","flex-shrink-0","absolute","lg:static","left-0","top-0","z-2","border-gray-800","w-18rem","lg:w-5rem","select-none",3,"hidden"],[1,"flex","flex-column","h-full"],[1,"mt-1","select-none"],[1,"list-none","p-3","lg:py-3","lg:px-2","m-0"],[3,"routerLink","pTooltip","tooltipDisabled","click"],["pRipple","",1,"p-ripple","p-element","flex","align-items-center","cursor-pointer","p-3","lg:justify-content-center","hover:bg-gray-800","border-round","text-gray-300","hover:text-white","transition-duration-150","transition-colors"],[1,"pi","pi-home","mr-2","lg:mr-0","text-base","lg:text-xl"],[1,"font-medium","inline","lg:hidden"],[1,"p-ink"],["pRipple","",1,"p-element","flex","align-items-center","cursor-pointer","p-3","lg:justify-content-center","hover:bg-gray-800","border-round","text-gray-300","hover:text-white","transition-duration-150","transition-colors"],[1,"pi","pi-cog","mr-2","lg:mr-0","text-base","lg:text-xl"],[1,"pi","pi-map","mr-2","lg:mr-0","text-base","lg:text-xl"],[1,"contentarea","px-0","lg:px-3","w-full"]],template:function(n,i){1&n&&(Q(0),l(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"ul",4)(6,"li",5),v("click",function(){return i.dataService.showSidebar(!0)}),f(7,"translate"),l(8,"a",6),D(9,"i",7),l(10,"span",8),_(11),f(12,"translate"),c(),D(13,"span",9),c()(),l(14,"li",5),v("click",function(){return i.dataService.showSidebar(!0)}),f(15,"translate"),l(16,"a",10),D(17,"i",11),l(18,"span",8),_(19),f(20,"translate"),c(),D(21,"span",9),c()(),l(22,"li",5),v("click",function(){return i.dataService.showSidebar(!0)}),f(23,"translate"),l(24,"a",10),D(25,"i",12),l(26,"span",8),_(27),f(28,"translate"),c(),D(29,"span",9),c()()()()()(),l(30,"div",13),D(31,"router-outlet"),c()(),J()),2&n&&(a(2),d("hidden",i.dataService.m_showSidebar),a(4),I("pTooltip",g(7,13,"navbar.dashboard")),d("routerLink","dashboard/status")("tooltipDisabled",!1===i.dataService.m_showSidebar),a(5),S(g(12,15,"navbar.dashboard")),a(3),I("pTooltip",g(15,17,"navbar.backendSetup")),d("routerLink","setupwizard/dbsetup")("tooltipDisabled",!1===i.dataService.m_showSidebar),a(5),S(g(20,19,"navbar.backendSetup")),a(3),I("pTooltip",g(23,21,"dashboard.programguide")),d("routerLink","dashboard/program-guide")("tooltipDisabled",!1===i.dataService.m_showSidebar),a(5),S(g(28,23,"dashboard.programguide")))},dependencies:[fc,nr,$t,bt,pe],styles:[".sidebar[_ngcontent-%COMP%]{width:70px;height:100%;margin:0}.navbar[_ngcontent-%COMP%]{min-height:calc(100vh - 85px);max-height:calc(100vh - 85px)}.contentarea[_ngcontent-%COMP%]{overflow:scroll;height:calc(100vh - 85px)}"]})}return t})(),ire=(()=>{class t{constructor(e,n){this.config=e,this.translate=n,this.title="MythTV Backend",n.setDefaultLang("en_US"),n.use(localStorage.getItem("Language")||"en_US"),n.get("primeng").subscribe(i=>this.config.setTranslation(i)),this.config.ripple=!0}static#e=this.\u0275fac=function(n){return new(n||t)(M(Hn),M(Le))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-root"]],decls:2,vars:0,template:function(n,i){1&n&&D(0,"app-navbar")(1,"app-sidenav")},dependencies:[tre,nre]})}return t})();const sre=["langform"],ore=["countryrow"],rre=["languagerow"];function are(t,s){1&t&&(_(0),f(1,"translate")),2&t&&x(" ",g(1,1,"setupwizard.localSetup")," ")}function lre(t,s){1&t&&(_(0),f(1,"translate")),2&t&&x(" ",g(1,1,"setupwizard.countryAndLanguage")," ")}function cre(t,s){1&t&&(l(0,"h2"),_(1),f(2,"translate"),c()),2&t&&(a(1),S(g(2,1,"setupwizard.selectCountry")))}function ure(t,s){if(1&t&&(l(0,"div",18,19),D(2,"img",20),l(3,"pre")(4,"span",21),_(5),c(),_(6),c()()),2&t){const e=s.$implicit;F("id",e.Code),a(2),ai("src","images/locale/",e.Image,"",tn),a(3),S(e.Country),a(1),Ke("",null!==e.NativeCountry?" - "+e.NativeCountry:""," (",e.Code,")")}}function dre(t,s){if(1&t&&(l(0,"div",22),D(1,"p-message",23),f(2,"translate"),c()),2&t){const e=p(2);a(1),vl("text","",g(2,2,"setupwizard.selectedCountry")," ",e.m_wizardData.Country.Country,"")}}function pre(t,s){1&t&&(l(0,"div",22),D(1,"p-message",24),f(2,"translate"),c()),2&t&&(a(1),I("text",g(2,1,"setupwizard.noCountry")))}function hre(t,s){1&t&&(l(0,"h2"),_(1),f(2,"translate"),c()),2&t&&(a(1),S(g(2,1,"setupwizard.selectLanguage")))}function mre(t,s){if(1&t&&(l(0,"div",18,25),D(2,"img",20),l(3,"pre")(4,"span",21),_(5),c(),_(6),c()()),2&t){const e=s.$implicit;F("id",e.Code),a(2),ai("src","images/locale/",e.Image,"",tn),a(3),S(e.Language),a(1),Ke(" - ",e.NativeLanguage," (",e.Code,")")}}function fre(t,s){if(1&t&&(l(0,"div",22),D(1,"p-message",23),f(2,"translate"),c()),2&t){const e=p(2);a(1),vl("text","",g(2,2,"setupwizard.selectedLanguage")," ",e.m_wizardData.Language.NativeLanguage,"")}}function gre(t,s){1&t&&(l(0,"div",22),D(1,"p-message",26),f(2,"translate"),c()),2&t&&(a(1),I("text",g(2,1,"setupwizard.noLanguage")))}const Gx=function(){return{"max-height":"460px","min-height":"460px"}};function _re(t,s){if(1&t){const e=E();l(0,"div",8)(1,"div",9)(2,"p-listbox",10),v("ngModelChange",function(i){return C(e),y(p().m_wizardData.Country=i)}),m(3,cre,3,3,"ng-template",11),m(4,ure,7,5,"ng-template",12),c(),m(5,dre,3,4,"div",13),m(6,pre,3,3,"ng-template",null,14,ve),c(),l(8,"div",15)(9,"p-listbox",16),v("ngModelChange",function(i){return C(e),y(p().m_wizardData.Language=i)}),m(10,hre,3,3,"ng-template",11),m(11,mre,7,5,"ng-template",12),c(),m(12,fre,3,4,"div",13),m(13,gre,3,3,"ng-template",null,17,ve),c()()}if(2&t){const e=B(7),n=B(14),i=p();a(2),d("options",i.m_countries)("ngModel",i.m_wizardData.Country)("multiple",!1)("filter",!0)("listStyle",V(14,Gx)),a(3),d("ngIf",""!=i.m_wizardData.Country.Code)("ngIfElse",e),a(4),d("options",i.m_languages)("ngModel",i.m_wizardData.Language)("multiple",!1)("filter",!0)("listStyle",V(15,Gx)),a(3),d("ngIf",""!=i.m_wizardData.Language.Code)("ngIfElse",n)}}function bre(t,s){1&t&&(D(0,"p-message",23),f(1,"translate")),2&t&&I("text",g(1,1,"common.savesuccess"))}function vre(t,s){1&t&&(D(0,"p-message",24),f(1,"translate")),2&t&&I("text",g(1,1,"common.networkfail"))}function Cre(t,s){if(1&t){const e=E();l(0,"div",27)(1,"div",28),m(2,bre,2,3,"p-message",29),m(3,vre,2,3,"p-message",30),c(),l(4,"p-button",31),v("onClick",function(){C(e);const i=p(),o=B(2);return i.saveForm(),y(o.form.markAsPristine())}),f(5,"translate"),c(),l(6,"p-button",32),v("onClick",function(){return C(e),y(p().router.navigate(["setupwizard/dbsetup"]))}),f(7,"translate"),c(),l(8,"p-button",33),v("onClick",function(){return C(e),y(p().router.navigate(["setupwizard/general"]))}),f(9,"translate"),c()()}if(2&t){const e=p(),n=B(2);a(2),d("ngIf",e.successCount>0&&e.successCount==e.expectedCount&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0),a(1),I("label",g(5,7,"common.save")),d("disabled",!n.dirty||e.setupService.schedulingEnabled),a(2),I("label",g(7,9,"common.back")),a(2),I("label",g(9,11,"common.next")),d("disabled",""==e.m_wizardData.Country.Code||""==e.m_wizardData.Language.Code)}}let yre=(()=>{class t{constructor(e,n,i,o,r,u){this.router=e,this.translate=n,this.setupService=i,this.configService=o,this.wizardService=r,this.mythService=u,this.m_countries=[],this.m_languages=[],this.successCount=0,this.errorCount=0,this.expectedCount=0,this.warningText="settings.common.warning",this.saveObserver={next:h=>{h.bool?(this.successCount++,this.successCount>=this.expectedCount&&localStorage.setItem("Language",this.m_wizardData.Language.Code),this.translate.use(this.m_wizardData.Language.Code)):(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:h=>{console.error(h),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.translate.get(this.warningText).subscribe(h=>{this.warningText=h})}ngOnInit(){this.configService.GetLanguages().subscribe(e=>this.m_languages=e.LanguageList.Languages),this.configService.GetCountries().subscribe(e=>this.m_countries=e.CountryList.Countries),this.m_wizardData=this.wizardService.getWizardData(),setTimeout(()=>this.scrollIntoView(),1e3)}ngAfterViewInit(){}scrollIntoView(){if(""!=this.m_wizardData.Country.Code){const e=this.countryRowElement.find(n=>n.nativeElement.getAttribute("id")===this.m_wizardData.Country.Code);e?e.nativeElement.scrollIntoView({behavior:"instant",inline:"start",block:"center"}):console.log("Failed to find element by ID")}if(""!=this.m_wizardData.Language.Code){const e=this.languageRowElement.find(n=>n.nativeElement.getAttribute("id")===this.m_wizardData.Language.Code);e&&e.nativeElement.scrollIntoView({behavior:"instant",inline:"start",block:"center"})}null!=this.wizardService.m_topElement&&this.wizardService.m_topElement.nativeElement.scrollIntoView({behavior:"instant",block:"start"})}saveForm(){this.successCount=0,this.errorCount=0,this.expectedCount=2,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"Country",Value:this.m_wizardData.Country.Code}).subscribe(this.saveObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"Language",Value:this.m_wizardData.Language.Code}).subscribe(this.saveObserver)}confirm(e){return ue(window.confirm(e))}canDeactivate(){return!this.currentForm||!this.currentForm.dirty||this.confirm(this.warningText)}onWindowClose(e){this.currentForm&&this.currentForm.dirty&&(e.preventDefault(),e.returnValue=!1)}static#e=this.\u0275fac=function(n){return new(n||t)(M(Nt),M(Le),M(Re),M(Da),M(qp),M(Wt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-selectlanguage"]],viewQuery:function(n,i){if(1&n&&(K(sre,5),K(ore,5,Pe),K(rre,5,Pe)),2&n){let o;H(o=G())&&(i.currentForm=o.first),H(o=G())&&(i.countryRowElement=o),H(o=G())&&(i.languageRowElement=o)}},hostBindings:function(n,i){1&n&&v("beforeunload",function(r){return i.onWindowClose(r)},0,Nn)},decls:8,vars:0,consts:[[1,"wizard-content","m-0","md:m-3"],["name","langform",1,"mx-0","md:mx-3"],["langform","ngForm"],[1,"m-0","md:m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid","m-0","md:m-3"],[1,"col-12","md:col-6","pt-2"],["optionLabel","Country","name","countries",3,"options","ngModel","multiple","filter","listStyle","ngModelChange"],["pTemplate","header"],["pTemplate","item"],["class","pt-5",4,"ngIf","ngIfElse"],["noCountry",""],[1,"col-12","md:col-6"],["optionLabel","Language","name","languages",3,"options","ngModel","multiple","filter","listStyle","ngModelChange"],["noLanguage",""],[1,"language-item"],["countryrow",""],[1,"pr-3",2,"width","70px",3,"src"],[1,"font-bold"],[1,"pt-5"],["severity","success",3,"text"],["severity","error",3,"text"],["languagerow",""],["severity","error",1,"pt-2",3,"text"],[1,"grid","nogutter","m-5"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["icon","pi pi-angle-left","iconPos","left",1,"pr-3",3,"label","onClick"],["icon","pi pi-angle-right","iconPos","right",3,"label","disabled","onClick"]],template:function(n,i){1&n&&(l(0,"div",0)(1,"form",1,2)(3,"p-card",3),m(4,are,2,3,"ng-template",4),m(5,lre,2,3,"ng-template",5),m(6,_re,15,16,"ng-template",6),m(7,Cre,10,13,"ng-template",7),c()()())},dependencies:[ne,We,xe,$e,Ce,He,ae,Te,Ge,es,qe,pe],styles:[".language-item{display:flex;align-items:center}@media screen and (max-width: 48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2})}return t})();class Tre{constructor(s,e){this._document=e;const n=this._textarea=this._document.createElement("textarea"),i=n.style;i.position="fixed",i.top=i.opacity="0",i.left="-999em",n.setAttribute("aria-hidden","true"),n.value=s,n.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(n)}copy(){const s=this._textarea;let e=!1;try{if(s){const n=this._document.activeElement;s.select(),s.setSelectionRange(0,s.value.length),e=this._document.execCommand("copy"),n&&n.focus()}}catch{}return e}destroy(){const s=this._textarea;s&&(s.remove(),this._textarea=void 0)}}let qx=(()=>{class t{constructor(e){this._document=e}copy(e){const n=this.beginCopy(e),i=n.copy();return n.destroy(),i}beginCopy(e){return new Tre(e,this._document)}static#e=this.\u0275fac=function(n){return new(n||t)(ie(ct))};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const wre=["databaseForm"];function Ire(t,s){1&t&&(_(0),f(1,"translate")),2&t&&x(" ",g(1,1,"setupwizard.databaseSetup")," ")}function Sre(t,s){1&t&&(_(0),f(1,"translate")),2&t&&x(" ",g(1,1,"setupwizard.enterDBLoginDetails")," ")}function xre(t,s){1&t&&(l(0,"div")(1,"small",42),_(2),f(3,"translate"),c()()),2&t&&(a(2),S(g(3,1,"setupwizard.IPorAddressRequired")))}function Dre(t,s){1&t&&(l(0,"div")(1,"small",43),_(2),f(3,"translate"),c()()),2&t&&(a(2),S(g(3,1,"setupwizard.portRequired")))}function Mre(t,s){1&t&&(l(0,"div")(1,"small",43),_(2),f(3,"translate"),c()()),2&t&&(a(2),S(g(3,1,"setupwizard.userRequired")))}function kre(t,s){1&t&&(l(0,"div")(1,"small",43),_(2),f(3,"translate"),c()()),2&t&&(a(2),S(g(3,1,"setupwizard.passwordRequired")))}function Ere(t,s){1&t&&(l(0,"div")(1,"small",43),_(2),f(3,"translate"),c()()),2&t&&(a(2),S(g(3,1,"setupwizard.databaseNameRequired")))}function Lre(t,s){if(1&t){const e=E();l(0,"div",30)(1,"label",44),_(2),f(3,"translate"),c(),l(4,"input",45,46),v("ngModelChange",function(i){return C(e),y(p(2).database.LocalHostName=i)}),c(),l(6,"small",47),_(7),f(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(g(3,3,"setupwizard.LocalHostName_label")),a(2),d("ngModel",e.database.LocalHostName),a(3),S(g(8,5,"setupwizard.LocalHostName_desc"))}}function Rre(t,s){if(1&t){const e=E();l(0,"div",8)(1,"label",48),_(2),f(3,"translate"),c(),l(4,"p-inputNumber",49),v("ngModelChange",function(i){return C(e),y(p(2).database.WOLReconnect=i)}),c(),l(5,"small",32),_(6),f(7,"translate"),c()()}if(2&t){const e=p(2);a(2),x(" ",g(3,8,"settings.vsource.WOLReconnect_label")," "),a(2),d("ngModel",e.database.WOLReconnect)("min",0)("max",60)("step",1)("useGrouping",!1)("showButtons",!0),a(2),x(" ",g(7,10,"settings.vsource.WOLReconnect_desc")," ")}}function Ore(t,s){if(1&t){const e=E();l(0,"div",8)(1,"label",50),_(2),f(3,"translate"),c(),l(4,"p-inputNumber",51),v("ngModelChange",function(i){return C(e),y(p(2).database.WOLRetry=i)}),c(),l(5,"small",32),_(6),f(7,"translate"),c()()}if(2&t){const e=p(2);a(2),x(" ",g(3,8,"settings.vsource.WOLRetry_label")," "),a(2),d("ngModel",e.database.WOLRetry)("min",1)("max",10)("step",1)("useGrouping",!1)("showButtons",!0),a(2),x(" ",g(7,10,"settings.vsource.WOLRetry_desc")," ")}}function Are(t,s){if(1&t){const e=E();l(0,"div",30)(1,"label",52),_(2),f(3,"translate"),c(),l(4,"input",53,54),v("ngModelChange",function(i){return C(e),y(p(2).database.WOLCommand=i)}),c(),l(6,"small",55),_(7),f(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(g(3,3,"setupwizard.WOLCommand_label")),a(2),d("ngModel",e.database.WOLCommand),a(3),S(g(8,5,"setupwizard.WOLCommand_desc"))}}function Pre(t,s){1&t&&(l(0,"div"),D(1,"p-message",56),f(2,"translate"),c()),2&t&&(a(1),I("text",g(2,1,"setupwizard.connectedToDatabase")))}function Fre(t,s){1&t&&(l(0,"div",57,39),D(2,"p-message",58),f(3,"translate"),c()),2&t&&(a(2),I("text",g(3,1,"setupwizard.notConnectedToDatabase")))}const zx=function(t){return{Name:t}};function Nre(t,s){if(1&t&&(l(0,"div"),D(1,"p-message",56),f(2,"translate"),c()),2&t){const e=p(2);a(1),I("text",mt(2,1,"setupwizard.dbsetup.havedb",W(4,zx,e.m_wizardData.Database.Name)))}}function Vre(t,s){if(1&t&&(l(0,"div",59,40),D(2,"p-message",60),f(3,"translate"),c()),2&t){const e=p(2);a(2),I("text",mt(3,1,"setupwizard.dbsetup.havenotdb",W(4,zx,e.m_wizardData.Database.Name)))}}const Bre=function(t){return{SchemaVersion:t}};function Hre(t,s){if(1&t&&(l(0,"div"),D(1,"p-message",61),f(2,"translate"),c()),2&t){const e=p(2);a(1),I("text",mt(2,1,"setupwizard.dbsetup.schemaver",W(4,Bre,e.m_wizardData.DatabaseStatus.DatabaseStatus.SchemaVersion)))}}function Gre(t,s){1&t&&(l(0,"div",62,40),D(2,"p-message",63),f(3,"translate"),c()),2&t&&(a(2),I("text",g(3,1,"setupwizard.databaseSchemaUnknown")))}function qre(t,s){if(1&t){const e=E();l(0,"div")(1,"p"),_(2),f(3,"translate"),c(),l(4,"div",68)(5,"div",69),_(6," Sql Server Type: "),c(),l(7,"div",70)(8,"p-radioButton",71),v("ngModelChange",function(i){return C(e),y(p(3).dbtype=i)})("ngModelChange",function(){return C(e),y(p(3).setCommandList())}),c(),l(9,"label",72),_(10,"MySql"),c()(),l(11,"div",73)(12,"p-radioButton",74),v("ngModelChange",function(i){return C(e),y(p(3).dbtype=i)})("ngModelChange",function(){return C(e),y(p(3).setCommandList())}),c(),l(13,"label",75),_(14,"MariaDB"),c()()(),l(15,"table",76)(16,"tr")(17,"td",65),_(18),c(),l(19,"td",66)(20,"button",67),v("click",function(){C(e);const i=p(3);return y(i.copyToclipboard(i.commandlist))}),f(21,"translate"),c()()()(),l(22,"p"),_(23),f(24,"translate"),c(),l(25,"table")(26,"tr")(27,"td",65),_(28),c(),l(29,"td",66)(30,"button",67),v("click",function(){C(e);const i=p(3);return y(i.copyToclipboard(i.mySqlCommand))}),f(31,"translate"),c()()()()()}if(2&t){const e=p(3);a(2),x(" ",g(3,8,"setupwizard.sqlinstructions")," "),a(6),d("ngModel",e.dbtype),a(4),d("ngModel",e.dbtype),a(6),x(" ",e.commandlist," "),a(2),I("pTooltip",g(21,10,"settings.common.clipboard_tooltip")),a(3),S(g(24,12,"setupwizard.runcommand")),a(5),x(" ",e.mySqlCommand," "),a(2),I("pTooltip",g(31,14,"settings.common.clipboard_tooltip"))}}function zre(t,s){if(1&t){const e=E();l(0,"div")(1,"h2"),_(2),f(3,"translate"),c(),m(4,qre,32,16,"div",13),l(5,"p",64),_(6),f(7,"translate"),c(),l(8,"table")(9,"tr")(10,"td",65),_(11),c(),l(12,"td",66)(13,"button",67),v("click",function(){C(e);const i=p(2);return y(i.copyToclipboard(i.tzCommand))}),f(14,"translate"),c()()()(),l(15,"p"),_(16),f(17,"translate"),c(),l(18,"p"),_(19),f(20,"translate"),c(),l(21,"p"),_(22),f(23,"translate"),c()()}if(2&t){const e=p(2);a(2),S(g(3,8,"common.instructions")),a(2),d("ngIf",e.connectionFail),a(2),S(g(7,10,"setupwizard.tztables")),a(5),x(" ",e.tzCommand," "),a(2),I("pTooltip",g(14,12,"settings.common.clipboard_tooltip")),a(3),x("",g(17,14,"setupwizard.ignoremessages")," "),a(3),S(g(20,16,"setupwizard.savethis")),a(3),S(g(23,18,"setupwizard.restartbe"))}}const Ure=function(t){return{"is-invalid":t}};function jre(t,s){if(1&t){const e=E();l(0,"div",7)(1,"div",8)(2,"label",9),_(3),f(4,"translate"),c(),l(5,"input",10,11),v("ngModelChange",function(i){return C(e),y(p().database.Host=i)}),c(),l(7,"small",12),_(8),f(9,"translate"),c(),m(10,xre,4,3,"div",13),c(),l(11,"div",8)(12,"label",14),_(13),f(14,"translate"),c(),l(15,"input",15,16),v("ngModelChange",function(i){return C(e),y(p().database.Port=i)}),c(),l(17,"small",17),_(18),f(19,"translate"),c(),m(20,Dre,4,3,"div",13),c(),l(21,"div",8)(22,"label",18),_(23),f(24,"translate"),c(),l(25,"input",19,20),v("ngModelChange",function(i){return C(e),y(p().database.UserName=i)}),c(),l(27,"small",21),_(28),f(29,"translate"),c(),m(30,Mre,4,3,"div",13),c(),l(31,"div",8)(32,"label",22),_(33),f(34,"translate"),c(),l(35,"input",23,24),v("ngModelChange",function(i){return C(e),y(p().database.Password=i)}),c(),l(37,"small",25),_(38),f(39,"translate"),c(),m(40,kre,4,3,"div",13),c(),l(41,"div",8)(42,"label",26),_(43),f(44,"translate"),c(),l(45,"input",27,28),v("ngModelChange",function(i){return C(e),y(p().database.Name=i)}),c(),l(47,"small",29),_(48),f(49,"translate"),c(),m(50,Ere,4,3,"div",13),c(),l(51,"div",30)(52,"p-checkbox",31),v("ngModelChange",function(i){return C(e),y(p().database.LocalEnabled=i)}),f(53,"translate"),c(),l(54,"small",32),_(55),f(56,"translate"),c()(),m(57,Lre,9,7,"div",33),l(58,"div",30)(59,"p-checkbox",34),v("ngModelChange",function(i){return C(e),y(p().database.WOLEnabled=i)}),f(60,"translate"),c(),l(61,"small",32),_(62),f(63,"translate"),c()(),m(64,Rre,8,12,"div",35),m(65,Ore,8,12,"div",35),m(66,Are,9,7,"div",33),c(),l(67,"div")(68,"p-button",36),v("click",function(){return C(e),y(p().saveForm(!1))}),f(69,"translate"),c()(),l(70,"div",37),m(71,Pre,3,3,"div",38),m(72,Fre,4,3,"ng-template",null,39,ve),m(74,Nre,3,6,"div",38),m(75,Vre,4,6,"ng-template",null,40,ve),m(77,Hre,3,6,"div",38),m(78,Gre,4,3,"ng-template",null,41,ve),c(),m(80,zre,24,20,"div",13)}if(2&t){const e=B(6),n=B(16),i=B(26),o=B(36),r=B(46),u=B(73),h=B(76),b=B(79),T=p(),w=B(2);a(3),S(g(4,42,"setupwizard.MySQLServerIP")),a(2),d("ngModel",T.database.Host)("ngClass",W(72,Ure,e.invalid)),a(3),S(g(9,44,"setupwizard.ipaddress_help")),a(2),d("ngIf",e.invalid&&(e.dirty||e.touched)),a(3),S(g(14,46,"setupwizard.MySQLServerPort")),a(2),d("ngModel",T.database.Port),a(3),S(g(19,48,"setupwizard.port_help")),a(2),d("ngIf",n.invalid&&(n.dirty||n.touched)),a(3),S(g(24,50,"setupwizard.MySQLUser")),a(2),d("ngModel",T.database.UserName),a(3),S(g(29,52,"setupwizard.user_help")),a(2),d("ngIf",i.invalid&&(i.dirty||i.touched)),a(3),S(g(34,54,"setupwizard.MySQLPassword")),a(2),d("ngModel",T.database.Password),a(3),S(g(39,56,"setupwizard.password_help")),a(2),d("ngIf",o.invalid&&(o.dirty||o.touched)),a(3),S(g(44,58,"setupwizard.MySQLDatabaseName")),a(2),d("ngModel",T.database.Name),a(3),S(g(49,60,"setupwizard.dbname_help")),a(2),d("ngIf",r.invalid&&(r.dirty||r.touched)),a(2),I("label",g(53,62,"setupwizard.LocalEnabled_label")),d("ngModel",T.database.LocalEnabled)("binary",!0),a(3),x(" ",g(56,64,"setupwizard.LocalEnabled_desc")," "),a(2),d("ngIf",T.database.LocalEnabled),a(2),I("label",g(60,66,"setupwizard.WOLEnabled_label")),d("ngModel",T.database.WOLEnabled)("binary",!0),a(3),x(" ",g(63,68,"setupwizard.WOLEnabled_desc")," "),a(2),d("ngIf",T.database.WOLEnabled),a(1),d("ngIf",T.database.WOLEnabled),a(1),d("ngIf",T.database.WOLEnabled),a(2),I("label",g(69,70,"setupwizard.testConnection")),d("disabled",null==w.invalid||w.invalid),a(3),d("ngIf",T.m_wizardData.DatabaseStatus.DatabaseStatus.Connected)("ngIfElse",u),a(3),d("ngIf",T.m_wizardData.DatabaseStatus.DatabaseStatus.HaveDatabase)("ngIfElse",h),a(3),d("ngIf",T.m_wizardData.DatabaseStatus.DatabaseStatus.Connected&&T.m_wizardData.DatabaseStatus.DatabaseStatus.HaveDatabase)("ngIfElse",b),a(3),d("ngIf",T.setupService.isDatabaseIgnored)}}function $re(t,s){1&t&&(D(0,"p-message",83),f(1,"translate")),2&t&&I("text",g(1,1,"common.savesuccess"))}function Wre(t,s){1&t&&(D(0,"p-message",60),f(1,"translate")),2&t&&I("text",g(1,1,"common.networkfail"))}function Kre(t,s){1&t&&(D(0,"p-message",60),f(1,"translate")),2&t&&I("text",g(1,1,"setupwizard.connectionfail"))}function Qre(t,s){if(1&t){const e=E();l(0,"div",77)(1,"div",78),m(2,$re,2,3,"p-message",79),m(3,Wre,2,3,"p-message",80),m(4,Kre,2,3,"p-message",80),c(),l(5,"p-button",81),v("onClick",function(){C(e);const i=p(),o=B(2);return i.saveForm(!0),y(o.form.markAsPristine())}),f(6,"translate"),c(),l(7,"p-button",82),v("onClick",function(){return C(e),y(p().router.navigate(["setupwizard/selectlanguage"]))}),f(8,"translate"),c()()}if(2&t){const e=p(),n=B(2);a(2),d("ngIf",e.successCount>0&&e.successCount==e.expectedCount&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0),a(1),d("ngIf",e.connectionFail),a(1),I("label",g(6,7,"common.save")),d("disabled",(!n.dirty||e.setupService.schedulingEnabled)&&!e.setupService.isDatabaseIgnored),a(2),I("label",g(8,9,"common.next")),d("disabled",e.setupService.isDatabaseIgnored)}}let Jre=(()=>{class t{constructor(e,n,i,o,r,u,h,b){this.router=e,this.configService=n,this.mythService=i,this.wizardService=o,this.translate=r,this.messageService=u,this.setupService=h,this.clipboard=b,this.successCount=0,this.errorCount=0,this.expectedCount=2,this.connectionFail=!1,this.commandlist="",this.mySqlCommand="sudo mysql -u root < setup.sql",this.tzCommand="mysql_tzinfo_to_sql /usr/share/zoneinfo | sudo mysql -u root mysql",this.dbtype="MySQL",this.msg_testconnection="setupwizard.testConnection",this.msg_connectionsuccess="setupwizard.connectionsuccess",this.msg_connectionfail="setupwizard.connectionfail",this.warningText="settings.common.warning",this.saveObserver={next:T=>{T.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:T=>{console.error(T),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.translate.get(this.msg_testconnection).subscribe(T=>this.msg_testconnection=T),this.translate.get(this.msg_connectionsuccess).subscribe(T=>this.msg_connectionsuccess=T),this.translate.get(this.msg_connectionfail).subscribe(T=>this.msg_connectionfail=T),this.translate.get(this.warningText).subscribe(T=>this.warningText=T)}ngOnInit(){this.wizardService.initDatabaseStatus(),this.m_wizardData=this.wizardService.getWizardData(),this.database=Object.assign({},this.m_wizardData.Database),this.wizardService.dbPromise.then(()=>{this.database=Object.assign({},this.m_wizardData.Database)},()=>this.errorCount++)}copyToclipboard(e){this.clipboard.copy(e)}saveForm(e){this.successCount=0,this.errorCount=0,this.expectedCount=1,this.connectionFail=!1;const n={HostName:this.database.Host,UserName:this.database.UserName,Password:this.database.Password,DBName:this.database.Name,dbPort:this.database.Port};this.commandlist="",this.mythService.TestDBSettings(n).subscribe(i=>{i.bool?e?this.configService.SetDatabaseCredentials(this.database).subscribe(this.saveObserver):this.messageService.add({severity:"success",life:5e3,summary:this.msg_testconnection,detail:this.msg_connectionsuccess}):(this.messageService.add({severity:"error",life:5e3,summary:this.msg_testconnection,detail:this.msg_connectionfail}),this.connectionFail=!0,this.setCommandList())})}setCommandList(){let e="";"MySQL"==this.dbtype&&(e="WITH mysql_native_password"),this.commandlist=`CREATE DATABASE IF NOT EXISTS ${this.database.Name};\nCREATE USER IF NOT EXISTS '${this.database.UserName}'@'localhost' IDENTIFIED ${e} by '${this.database.Password}';\nCREATE USER IF NOT EXISTS '${this.database.UserName}'@'%' IDENTIFIED ${e} by '${this.database.Password}';\nGRANT ALL ON ${this.database.Name}.* TO '${this.database.UserName}'@'localhost';\nGRANT ALL ON ${this.database.Name}.* TO '${this.database.UserName}'@'%';`}confirm(e){return ue(window.confirm(e))}canDeactivate(){return!this.currentForm||!this.currentForm.dirty||this.confirm(this.warningText)}onWindowClose(e){this.currentForm&&this.currentForm.dirty&&(e.preventDefault(),e.returnValue=!1)}static#e=this.\u0275fac=function(n){return new(n||t)(M(Nt),M(Da),M(Wt),M(qp),M(Le),M(Yi),M(Re),M(qx))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-dbsetup"]],viewQuery:function(n,i){if(1&n&&K(wre,5),2&n){let o;H(o=G())&&(i.currentForm=o.first)}},hostBindings:function(n,i){1&n&&v("beforeunload",function(r){return i.onWindowClose(r)},0,Nn)},features:[Qe([Yi])],decls:8,vars:0,consts:[["name","databaseForm",1,"mx-0","md:mx-3"],["databaseForm","ngForm"],[1,"m-0","md:m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"formgrid","grid","form-group"],[1,"field","col-12","md:col-6"],["for","ipaddress",1,"label","block"],["pInputText","","id","ipaddress","type","text","aria-describedby","ipaddress-help","name","hostname","placeholder","Ex. 127.0.0.1 or localhost","required","",1,"mb-2","form-control","w-full",3,"ngModel","ngClass","ngModelChange"],["host","ngModel"],["id","ipaddress-help"],[4,"ngIf"],["for","port",1,"label","block"],["pInputText","","id","port","type","number","aria-describedby","port-help","name","port","placeholder","Ex. 3306","min","0","max","65536",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["port","ngModel"],["id","port-help"],["for","user",1,"label","block"],["pInputText","","id","user","type","text","aria-describedby","user-help","name","user","placeholder","Ex. mythtv","required","",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["user","ngModel"],["id","user-help"],["for","password",1,"label","block"],["pInputText","","id","password","type","text","aria-describedby","password-help","name","password","placeholder","Ex. mythtv","required","",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["password","ngModel"],["id","password-help"],["for","dbname",1,"label","block"],["pInputText","","id","dbname","type","text","aria-describedby","dbname-help","name","dbname","placeholder","Ex. mythconverg","required","",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["dbname","ngModel"],["id","dbname-help"],[1,"field","col-12"],["name","LocalEnabled",1,"mb-2","w-full","label","block",3,"ngModel","binary","label","ngModelChange"],[1,"block"],["class","field col-12",4,"ngIf"],["name","WOLEnabled",1,"mb-2","w-full","label","block",3,"ngModel","binary","label","ngModelChange"],["class","field col-12 md:col-6",4,"ngIf"],["type","button",1,"mr-1","p-button-raised","p-button-secondary",3,"label","disabled","click"],[1,"pt-4",2,"display","flex"],[4,"ngIf","ngIfElse"],["notconnected",""],["nodatabase",""],["noschema",""],["id","address-help",1,"p-error","block"],[1,"p-error","block"],["for","LocalHostName",1,"label","block"],["pInputText","","id","LocalHostName","type","text","aria-describedby","LocalHostName-help","name","LocalHostName",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["LocalHostName","ngModel"],["id","LocalHostName-help"],["for","WOLReconnect",1,"label","block"],["name","WOLReconnect","id","WOLReconnect",3,"ngModel","min","max","step","useGrouping","showButtons","ngModelChange"],["for","WOLRetry",1,"label","block"],["name","WOLRetry","id","WOLRetry",3,"ngModel","min","max","step","useGrouping","showButtons","ngModelChange"],["for","WOLCommand",1,"label","block"],["pInputText","","id","WOLCommand","type","text","aria-describedby","WOLCommand-help","name","WOLCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["WOLCommand","ngModel"],["id","WOLCommand-help"],["severity","success",1,"pr-2",3,"text"],[1,"pr-2","notconnected"],["severity","error",1,"",3,"text"],[1,"pr-2","nodatabase"],["severity","error",3,"text"],["severity","info",1,"pr-2",3,"text"],[1,"pr-2","noschema"],["severity","info",3,"text"],[1,""],[1,"align-items-center","bg-blue-100","text-gray-900",2,"font-family","monospace"],[1,"align-items-center"],["pButton","","pRipple","","type","button","icon","pi pi-copy",1,"p-button-rounded","p-button-text",3,"pTooltip","click"],[1,"flex","pb-3"],[1,"flex-none","flex","align-items-center","label","block","pr-5"],[1,"flex-none","flex","align-items-center","pr-5"],["name","dbtype","value","MySQL","inputId","mysql",3,"ngModel","ngModelChange"],["for","mysql"],[1,"flex-none","flex","align-items-center"],["name","dbtype","value","MariaDB","inputId","mariadb",3,"ngModel","ngModelChange"],["for","mariadb"],[2,"white-space","'pre-line'"],[1,"grid","nogutter","m-5"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["icon","pi pi-angle-right","iconPos","right",1,"pr-3",3,"label","disabled","onClick"],["severity","success",3,"text"]],template:function(n,i){1&n&&(D(0,"p-toast"),l(1,"form",0,1)(3,"p-card",2),m(4,Ire,2,3,"ng-template",3),m(5,Sre,2,3,"ng-template",4),m(6,jre,81,74,"ng-template",5),m(7,Qre,9,11,"ng-template",6),c()())},dependencies:[Fe,ne,We,Xe,Qd,xe,$e,Wl,Zd,Jd,Ce,He,$t,ae,Sn,Te,Ge,ln,vt,qe,bt,Hp,Ic,pe],styles:[".is-invalid{border-color:red}@media screen and (max-width: 48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2})}return t})();const Zre=["hostaddress"];function Yre(t,s){1&t&&(_(0),f(1,"translate")),2&t&&x(" ",g(1,1,"settings.hostaddress.title")," ")}function Xre(t,s){1&t&&(_(0),f(1,"translate")),2&t&&x(" ",g(1,1,"settings.hostaddress.subtitle")," ")}function eae(t,s){1&t&&(l(0,"div")(1,"small",40),_(2),f(3,"translate"),c()()),2&t&&(a(2),S(g(3,1,"setupwizard.portRequired")))}function tae(t,s){1&t&&(l(0,"div")(1,"small",40),_(2),f(3,"translate"),c()()),2&t&&(a(2),S(g(3,1,"setupwizard.portRequired")))}function nae(t,s){1&t&&(l(0,"div")(1,"small",40),_(2),f(3,"translate"),c()()),2&t&&(a(2),x(" ",g(3,1,"settings.hostaddress.pin_reqd")," "))}function iae(t,s){1&t&&(l(0,"div")(1,"small",52),_(2,"IPv4 address"),c()())}function sae(t,s){1&t&&(l(0,"div")(1,"small",40),_(2,"IPv6 address"),c()())}function oae(t,s){if(1&t){const e=E();l(0,"div")(1,"div",9)(2,"label",41),_(3),f(4,"translate"),c(),l(5,"p-dropdown",42,43),v("ngModelChange",function(i){return C(e),y(p(2).m_HostAddressData.BackendServerIP=i)}),c(),l(7,"small",44),_(8),f(9,"translate"),c(),m(10,iae,3,0,"div",14),c(),l(11,"div",9)(12,"label",45),_(13),f(14,"translate"),c(),l(15,"p-dropdown",46,47),v("ngModelChange",function(i){return C(e),y(p(2).m_HostAddressData.BackendServerIP6=i)}),c(),l(17,"small",48),_(18),f(19,"translate"),c(),m(20,sae,3,0,"div",14),c(),l(21,"div",9)(22,"p-checkbox",49,50),v("ngModelChange",function(i){return C(e),y(p(2).m_HostAddressData.AllowLinkLocal=i)}),f(24,"translate"),c(),l(25,"small",51),_(26),f(27,"translate"),c()()()}if(2&t){const e=B(6),n=B(16),i=p(2);a(3),S(g(4,14,"settings.hostaddress.ipv4_label")),a(2),d("options",i.m_IPsV4)("ngModel",i.m_HostAddressData.BackendServerIP),a(3),x(" ",g(9,16,"settings.hostaddress.ipv4_desc")," "),a(2),d("ngIf",e.invalid&&(e.dirty||e.touched)),a(3),x(" ",g(14,18,"settings.hostaddress.ipv6_label")," "),a(2),d("options",i.m_IPsV6)("ngModel",i.m_HostAddressData.BackendServerIP6),a(3),x(" ",g(19,20,"settings.hostaddress.ipv6_desc")," "),a(2),d("ngIf",n.invalid&&(n.dirty||n.touched)),a(2),I("label",g(24,22,"settings.hostaddress.listenlinklocal_label")),d("ngModel",i.m_HostAddressData.AllowLinkLocal)("binary",!0),a(4),x(" ",g(27,24,"settings.hostaddress.listenlinklocal_desc")," ")}}function rae(t,s){1&t&&(l(0,"div")(1,"small",40),_(2,"Primary IP address / DNS name is required"),c()())}function aae(t,s){1&t&&(l(0,"div")(1,"small",53),_(2),f(3,"translate"),c()()),2&t&&(a(2),x(" ",g(3,1,"settings.hostaddress.ismaster_hint")," "))}function lae(t,s){1&t&&(l(0,"div")(1,"small",54),_(2,"Hostname of master backend is required"),c()())}const Ux=function(t){return{"is-invalid":t}};function cae(t,s){if(1&t){const e=E();l(0,"div",7)(1,"p-fieldset",8),f(2,"translate"),l(3,"div",9)(4,"label",10),_(5),f(6,"translate"),c(),l(7,"input",11,12),v("ngModelChange",function(i){return C(e),y(p().m_HostAddressData.BackendServerPort=i)}),c(),l(9,"small",13),_(10),f(11,"translate"),c(),m(12,eae,4,3,"div",14),c(),l(13,"div",9)(14,"label",15),_(15),f(16,"translate"),c(),l(17,"input",16,17),v("ngModelChange",function(i){return C(e),y(p().m_HostAddressData.BackendStatusPort=i)}),c(),l(19,"small",18),_(20),f(21,"translate"),c(),m(22,tae,4,3,"div",14),c()(),l(23,"p-fieldset",8),f(24,"translate"),l(25,"div",9)(26,"label",19),_(27),f(28,"translate"),c(),l(29,"input",20,21),v("ngModelChange",function(i){return C(e),y(p().m_HostAddressData.SecurityPin=i)}),c(),l(31,"small",22),_(32),f(33,"translate"),c(),m(34,nae,4,3,"div",14),c()(),l(35,"p-fieldset",8),f(36,"translate"),l(37,"div",9)(38,"p-checkbox",23,24),v("ngModelChange",function(i){return C(e),y(p().m_HostAddressData.AllowConnFromAll=i)}),f(40,"translate"),c(),l(41,"small",22),D(42,"div",25),f(43,"translate"),c()()(),l(44,"p-fieldset",8),f(45,"translate"),l(46,"div",9)(47,"p-checkbox",26,27),v("ngModelChange",function(i){return C(e),y(p().m_HostAddressData.ListenOnAllIps=i)}),f(49,"translate"),c(),l(50,"small",28),_(51),f(52,"translate"),c()(),m(53,oae,28,26,"div",14),c(),l(54,"p-fieldset",8),f(55,"translate"),l(56,"div",9)(57,"label",29),_(58),f(59,"translate"),c(),l(60,"p-dropdown",30,31),v("ngModelChange",function(i){return C(e),y(p().m_HostAddressData.BackendServerAddr=i)}),c(),l(62,"small",32),_(63),f(64,"translate"),c()(),m(65,rae,3,0,"div",14),c(),l(66,"p-fieldset",8),f(67,"translate"),l(68,"div",9)(69,"p-checkbox",33,34),v("ngModelChange",function(i){return C(e),y(p().m_HostAddressData.IsMasterBackend=i)})("onChange",function(){return C(e),y(p().setMaster())}),f(71,"translate"),c(),l(72,"small",35),_(73),f(74,"translate"),c(),m(75,aae,4,3,"div",14),c(),l(76,"div",9)(77,"label",36),_(78),f(79,"translate"),c(),l(80,"input",37,38),v("ngModelChange",function(i){return C(e),y(p().m_HostAddressData.MasterServerName=i)}),c(),l(82,"small",39),D(83,"div",25),f(84,"translate"),c(),m(85,lae,3,0,"div",14),c()()()}if(2&t){const e=B(8),n=B(18),i=B(30),o=B(61),r=B(81),u=p();a(1),I("legend",g(2,44,"settings.hostaddress.panel.ports")),a(4),x(" ",g(6,46,"settings.hostaddress.backendport_label")," "),a(2),d("ngModel",u.m_HostAddressData.BackendServerPort)("ngClass",W(88,Ux,e.invalid)),a(3),x(" ",g(11,48,"settings.hostaddress.backendport_desc")," "),a(2),d("ngIf",e.invalid&&(e.dirty||e.touched)),a(3),x(" ",g(16,50,"settings.hostaddress.statusport_label")," "),a(2),d("ngModel",u.m_HostAddressData.BackendStatusPort)("ngClass",W(90,Ux,n.invalid)),a(3),S(g(21,52,"settings.hostaddress.statusport_desc")),a(2),d("ngIf",n.invalid&&(n.dirty||n.touched)),a(1),I("legend",g(24,54,"settings.hostaddress.panel.pin")),a(4),x(" ",g(28,56,"settings.hostaddress.pin_label")," "),a(2),d("ngModel",u.m_HostAddressData.SecurityPin),a(3),x(" ",g(33,58,"settings.hostaddress.pin_desc")," "),a(2),d("ngIf",i.invalid&&(i.dirty||i.touched)),a(1),I("legend",g(36,60,"settings.hostaddress.panel.allowconn")),a(3),I("label",g(40,62,"settings.hostaddress.allowconn_label")),d("ngModel",u.m_HostAddressData.AllowConnFromAll)("binary",!0),a(4),d("innerHTML",g(43,64,"settings.hostaddress.allowconn_desc"),Zt),a(2),I("legend",g(45,66,"settings.hostaddress.panel.iplisten")),a(3),I("label",g(49,68,"settings.hostaddress.listenall_label")),d("ngModel",u.m_HostAddressData.ListenOnAllIps)("binary",!0),a(4),x(" ",g(52,70,"settings.hostaddress.listenall_desc")," "),a(2),d("ngIf",!u.m_HostAddressData.ListenOnAllIps),a(1),I("legend",g(55,72,"settings.hostaddress.panel.primaryadd")),a(4),x(" ",g(59,74,"settings.hostaddress.primaryip_label")," "),a(2),d("options",u.m_IPsAll)("ngModel",u.m_HostAddressData.BackendServerAddr)("editable",!0),a(3),x(" ",g(64,76,"settings.hostaddress.primaryip_desc")," "),a(2),d("ngIf",o.invalid&&(o.dirty||o.touched)),a(1),I("legend",g(67,78,"settings.hostaddress.panel.masterbe")),a(3),I("label",g(71,80,"settings.hostaddress.ismaster_label")),d("ngModel",u.m_HostAddressData.IsMasterBackend)("binary",!0),a(4),x(" ",g(74,82,"settings.hostaddress.ismaster_desc")," "),a(2),d("ngIf",u.m_showChangeHint),a(3),S(g(79,84,"settings.hostaddress.master_label")),a(2),d("ngModel",u.m_HostAddressData.MasterServerName),a(3),d("innerHTML",g(84,86,"settings.hostaddress.master_desc"),Zt),a(2),d("ngIf",r.invalid&&(r.dirty||r.touched))}}function uae(t,s){1&t&&(D(0,"p-message",60),f(1,"translate")),2&t&&I("text",g(1,1,"common.savesuccess"))}function dae(t,s){1&t&&(D(0,"p-message",61),f(1,"translate")),2&t&&I("text",g(1,1,"common.networkfail"))}function pae(t,s){if(1&t){const e=E();l(0,"div",55)(1,"div",56),m(2,uae,2,3,"p-message",57),m(3,dae,2,3,"p-message",58),c(),l(4,"p-button",59),v("onClick",function(){C(e);const i=p(),o=B(1);return i.saveForm(),y(o.form.markAsPristine())}),f(5,"translate"),c()()}if(2&t){const e=p(),n=B(1);a(2),d("ngIf",e.m_HostAddressData.successCount>0&&0==e.m_HostAddressData.errorCount&&!n.dirty),a(1),d("ngIf",e.m_HostAddressData.errorCount>0),a(1),I("label",g(5,4,"common.save")),d("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let hae=(()=>{class t{constructor(e,n){this.setupService=e,this.configService=n,this.m_IsMasterBackend=!1,this.m_showChangeHint=!1,this.m_HostAddressData=this.setupService.getHostAddressData(),setTimeout(()=>n.GetIPAddresses("All").subscribe(i=>this.m_IPsAll=i.IPAddresses),500),n.GetIPAddresses("IPv4").subscribe(i=>this.m_IPsV4=i.IPAddresses),n.GetIPAddresses("IPv6").subscribe(i=>this.m_IPsV6=i.IPAddresses)}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}setMaster(){typeof this.m_savedMaster>"u"&&(this.m_savedMaster=this.m_HostAddressData.MasterServerName),this.m_HostAddressData.IsMasterBackend?(this.m_HostAddressData.MasterServerName=this.m_HostAddressData.thisHostName,this.m_showChangeHint=!1):this.m_HostAddressData.MasterServerName==this.m_savedMaster?this.m_showChangeHint=!0:this.m_HostAddressData.MasterServerName=this.m_savedMaster}saveForm(){console.log("save form clicked"),this.setupService.saveHostAddressData(this.currentForm)}static#e=this.\u0275fac=function(n){return new(n||t)(M(Re),M(Da))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-host-address"]],viewQuery:function(n,i){if(1&n&&K(Zre,5),2&n){let o;H(o=G())&&(i.currentForm=o.first)}},decls:7,vars:0,consts:[["name","hostaddress",1,"mx-0","md:mx-3"],["hostaddress","ngForm"],[1,"m-0","md:m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full",3,"legend"],[1,"form-group","field"],["for","backendserverport",1,"label","block"],["pInputText","","id","backendserverport","type","number","name","backendserverport","placeholder","Ex. 6543","required","","min","0","max","65536",1,"mb-2","form-control","w-10rem",3,"ngModel","ngClass","ngModelChange"],["backendserverport","ngModel"],["id","backendserverport-help",1,"block"],[4,"ngIf"],["for","backendstatusport",1,"label","block"],["pInputText","","id","backendstatusport","type","number","name","backendstatusport","placeholder","Ex. 6544","required","","min","0","max","65536",1,"mb-2","form-control","w-10rem",3,"ngModel","ngClass","ngModelChange"],["backendstatusport","ngModel"],["id","backendstatusport-help",1,"block"],["for","securitypin",1,"label","block"],["pInputText","","id","securitypin","type","text","name","securitypin","placeholder","Ex. 1234","required","",1,"mb-2","form-control","w-10rem",3,"ngModel","ngModelChange"],["securitypin","ngModel"],["id","securitypin-help",1,"block"],["inputId","AllowConnFromAll","name","AllowConnFromAll",1,"mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["AllowConnFromAll","ngModel"],[3,"innerHTML"],["inputId","ListenOnAllIps","name","ListenOnAllIps",1,"mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["ListenOnAllIps","ngModel"],["id","ListenOnAllIps-help",1,"block"],["for","BackendServerAddr",1,"label","block","w-full"],["appendTo","body","name","BackendServerAddr","aria-describedby","BackendServerAddr-help",1,"block","mb-2","w-full",3,"options","ngModel","editable","ngModelChange"],["BackendServerAddr","ngModel"],["id","BackendServerAddr-help",1,"block","w-full"],["inputId","IsMasterBackend","name","IsMasterBackend",1,"mb-2","w-full",3,"ngModel","binary","label","ngModelChange","onChange"],["IsMasterBackend","ngModel"],["id","IsMasterBackend-help",1,"block"],["for","MasterServerName",1,"label","block"],["pInputText","","id","MasterServerName","type","text","name","MasterServerName","placeholder","Ex. masterbe","disabled","disabled",1,"mb-2","form-control","w-15rem","read-only",3,"ngModel","ngModelChange"],["MasterServerName","ngModel"],["id","MasterServerName-help",1,"block"],[1,"p-error","block"],["for","BackendServerIP",1,"label","block"],["appendTo","body","name","BackendServerIP","aria-describedby","BackendServerIP-help",1,"block","w-15rem","mb-2",3,"options","ngModel","ngModelChange"],["BackendServerIP","ngModel"],["id","BackendServerIP-help",1,"block"],["for","BackendServerIP6",1,"label","block"],["appendTo","body","name","BackendServerIP6","aria-describedby","BackendServerIP6-help",1,"block","w-15rem","mb-2",3,"options","ngModel","ngModelChange"],["BackendServerIP6","ngModel"],["id","BackendServerIP6-help",1,"block"],["inputId","AllowLinkLocal","name","AllowLinkLocal",1,"mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["AllowLinkLocal","ngModel"],["id","AllowLinkLocal-help",1,"block"],["id","LocalServerIP-help",1,"p-error","block"],["id","IsMasterBackend-help",1,"p-error","block"],["id","MasterServerName-help",1,"p-error","block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(n,i){1&n&&(l(0,"form",0,1)(2,"p-card",2),m(3,Yre,2,3,"ng-template",3),m(4,Xre,2,3,"ng-template",4),m(5,cae,86,92,"ng-template",5),m(6,pae,6,6,"ng-template",6),c()())},dependencies:[Fe,ne,We,Xe,Qd,xe,$e,Wl,Zd,Jd,Ce,He,ae,Te,Ge,ln,Gt,Xi,qe,pe],styles:["[_nghost-%COMP%] .p-dropdown{width:18rem}.read-only[_ngcontent-%COMP%]{opacity:1;background-color:#e0e0e0;border-style:solid;height:2rem}"]})}return t})();const mae=["locale"];function fae(t,s){1&t&&(_(0),f(1,"translate")),2&t&&x(" ",g(1,1,"settings.locale.title")," ")}function gae(t,s){1&t&&(_(0),f(1,"translate")),2&t&&x(" ",g(1,1,"settings.locale.subtitle")," ")}function _ae(t,s){if(1&t){const e=E();l(0,"div",7)(1,"p-fieldset",8),f(2,"translate"),l(3,"div",9)(4,"label",10),_(5,"TV Format"),c(),l(6,"p-dropdown",11),v("ngModelChange",function(i){return C(e),y(p().TVFormat=i)}),c(),l(7,"small",12),_(8),f(9,"translate"),c()(),l(10,"div",9)(11,"label",13),_(12),f(13,"translate"),c(),l(14,"p-dropdown",14),v("ngModelChange",function(i){return C(e),y(p().VbiFormat=i)}),c(),l(15,"small",15),_(16),f(17,"translate"),c()()(),l(18,"p-fieldset",8),f(19,"translate"),l(20,"div",9)(21,"label",16),_(22),f(23,"translate"),c(),l(24,"p-dropdown",17),v("ngModelChange",function(i){return C(e),y(p().FreqTable=i)}),c(),l(25,"small",18),_(26),f(27,"translate"),c()()()()}if(2&t){const e=p();a(1),I("legend",g(2,13,"settings.locale.tvformat_label")),a(5),d("options",e.m_TVFormats)("ngModel",e.TVFormat),a(2),x(" ",g(9,15,"settings.locale.tvformat_desc")," "),a(4),S(g(13,17,"settings.locale.vbiformat_label")),a(2),d("options",e.m_vbiFormats)("ngModel",e.VbiFormat),a(2),x(" ",g(17,19,"settings.locale.vbiformat_desc")," "),a(2),I("legend",g(19,21,"settings.locale.freqtable_label")),a(4),S(g(23,23,"settings.locale.channfreq_label")),a(2),d("options",e.m_FreqTables)("ngModel",e.FreqTable),a(2),x(" ",g(27,25,"settings.locale.channfreq_desc")," ")}}function bae(t,s){1&t&&(D(0,"p-message",24),f(1,"translate")),2&t&&I("text",g(1,1,"common.savesuccess"))}function vae(t,s){1&t&&(D(0,"p-message",25),f(1,"translate")),2&t&&I("text",g(1,1,"common.networkfail"))}function Cae(t,s){if(1&t){const e=E();l(0,"div",19)(1,"div",20),m(2,bae,2,3,"p-message",21),m(3,vae,2,3,"p-message",22),c(),l(4,"p-button",23),v("onClick",function(){C(e);const i=p(),o=B(1);return i.saveForm(),y(o.form.markAsPristine())}),f(5,"translate"),c()()}if(2&t){const e=p(),n=B(1);a(2),d("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0),a(1),I("label",g(5,4,"common.save")),d("disabled",!n.dirty||e.setupService.schedulingEnabled)}}const yae=function(){return{width:"100%"}};let Tae=(()=>{class t{constructor(e,n){this.setupService=e,this.mythService=n,this.successCount=0,this.errorCount=0,this.TVFormat="PAL",this.VbiFormat="None",this.FreqTable="us-bcast",this.LocaleObs={next:i=>{i.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:i=>{console.error(i),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.m_TVFormats=["NTSC","NTSC-JP","PAL","PAL-60","PAL-BG","PAL-DK","PAL-D","PAL-I","PAL-M","PAL-N","PAL-NC","SECAM","SECAM-D","DECAM-DK"],this.m_vbiFormats=["None","PAL teletext","NTSC closed caption"],this.m_FreqTables=["us-bcast","us-cable","us-cable-hrc","us-cable-irc","japan-bcast","japan-cable","europe-west","europe-east","italy","newzealand","australia","ireland","france","china-bcast","southafrica","argentina","australia-optus","singapore","malaysia","israel-hot-matav","try-all"],this.getLocaleData()}getLocaleData(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"TVFormat"}).subscribe({next:e=>this.TVFormat=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"VbiFormat"}).subscribe({next:e=>this.VbiFormat=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"FreqTable"}).subscribe({next:e=>this.FreqTable=e.String,error:()=>this.errorCount++})}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"TVFormat",Value:this.TVFormat}).subscribe(this.LocaleObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"VbiFormat",Value:this.VbiFormat}).subscribe(this.LocaleObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"FreqTable",Value:this.FreqTable}).subscribe(this.LocaleObs)}static#e=this.\u0275fac=function(n){return new(n||t)(M(Re),M(Wt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-locale"]],viewQuery:function(n,i){if(1&n&&K(mae,5),2&n){let o;H(o=G())&&(i.currentForm=o.first)}},decls:7,vars:3,consts:[["name","locale",1,"ml-3","mr-3",3,"ngSubmit"],["locale","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","TV Formats"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full",3,"legend"],[1,"form-group","field"],["for","tvformat",1,"label","block"],["appendTo","body","name","tvformat","aria-describedby","tvformat-help",1,"w-full","mb-2",3,"options","ngModel","ngModelChange"],["id","tvformat-help",1,"block","mt-2"],["for","vbiformat",1,"label","block"],["appendTo","body","name","vbiformat","aria-describedby","vbiformat-help",1,"mb-5","w-full",3,"options","ngModel","ngModelChange"],["id","vbiformat-help",1,"block","mt-2"],["for","freqtable",1,"label","block"],["appendTo","body","name","freqtable",1,"mb-2","w-full",3,"options","ngModel","ngModelChange"],["id","freqtable-help",1,"block","pt-2"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(n,i){1&n&&(l(0,"form",0,1),v("ngSubmit",function(){return i.saveForm()}),l(2,"p-card",2),m(3,fae,2,3,"ng-template",3),m(4,gae,2,3,"ng-template",4),m(5,_ae,28,27,"ng-template",5),m(6,Cae,6,6,"ng-template",6),c()()),2&n&&(a(2),j(V(2,yae)))},dependencies:[ne,We,xe,$e,Ce,He,ae,Te,Ge,Gt,Xi,qe,pe],styles:["[_nghost-%COMP%] .p-dropdown{width:18rem}"]})}return t})();const wae=["miscsettings"];function Iae(t,s){1&t&&(_(0),f(1,"translate")),2&t&&x(" ",g(1,1,"settings.misc.title")," ")}function Sae(t,s){1&t&&(_(0),f(1,"translate")),2&t&&x(" ",g(1,1,"settings.misc.subtitle")," ")}function xae(t,s){if(1&t){const e=E();l(0,"div",7)(1,"p-fieldset",8),f(2,"translate"),l(3,"div",9)(4,"p-checkbox",10),v("ngModelChange",function(i){return C(e),y(p().MasterBackendOverride=i)}),f(5,"translate"),c(),l(6,"small",11),_(7),f(8,"translate"),c()(),l(9,"div",9)(10,"p-checkbox",12),v("ngModelChange",function(i){return C(e),y(p().DeletesFollowLinks=i)}),f(11,"translate"),c(),l(12,"small",11),_(13),f(14,"translate"),c()(),l(15,"div",9)(16,"p-checkbox",13),v("ngModelChange",function(i){return C(e),y(p().TruncateDeletesSlowly=i)}),f(17,"translate"),c(),l(18,"small",11),_(19),f(20,"translate"),c()(),l(21,"div",9)(22,"label",14),_(23),f(24,"translate"),c(),l(25,"p-inputNumber",15),v("ngModelChange",function(i){return C(e),y(p().HDRingbufferSize=i)}),c(),l(26,"small",11),_(27),f(28,"translate"),c()(),l(29,"div",9)(30,"label",16),_(31),f(32,"translate"),c(),l(33,"p-dropdown",17),v("ngModelChange",function(i){return C(e),y(p().StorageScheduler=i)}),c(),l(34,"small",11),_(35),f(36,"translate"),c()()(),l(37,"p-fieldset",8),f(38,"translate"),l(39,"div",9)(40,"label",18),_(41),f(42,"translate"),c(),l(43,"p-dropdown",19),v("ngModelChange",function(i){return C(e),y(p().UPNPWmpSource=i)}),c(),l(44,"small",11),_(45),f(46,"translate"),c()()(),l(47,"div",20)(48,"div",9)(49,"label",21),_(50),f(51,"translate"),c(),l(52,"input",22),v("ngModelChange",function(i){return C(e),y(p().MiscStatusScript=i)}),c(),l(53,"small",11),_(54),f(55,"translate"),l(56,"a",23),_(57,"Miscellaneous Status Information"),c()()(),l(58,"div",9)(59,"p-checkbox",24),v("ngModelChange",function(i){return C(e),y(p().DisableAutomaticBackup=i)}),f(60,"translate"),c(),l(61,"small",11),_(62),f(63,"translate"),c()(),l(64,"div",9)(65,"p-checkbox",25),v("ngModelChange",function(i){return C(e),y(p().DisableFirewireReset=i)}),f(66,"translate"),c(),l(67,"small",11),_(68),f(69,"translate"),c()()()()}if(2&t){const e=p();a(1),I("legend",g(2,44,"settings.misc.panel_filemgmt")),d("toggleable",!0)("collapsed",!0),a(3),I("label",g(5,46,"settings.misc.mbo_label")),d("ngModel",e.MasterBackendOverride)("binary",!0),a(3),x(" ",g(8,48,"settings.misc.mbo_desc")," "),a(3),I("label",g(11,50,"settings.misc.follow_label")),d("ngModel",e.DeletesFollowLinks)("binary",!0),a(3),x(" ",g(14,52,"settings.misc.follow_desc")," "),a(3),I("label",g(17,54,"settings.misc.slowly_label")),d("ngModel",e.TruncateDeletesSlowly)("binary",!0),a(3),x(" ",g(20,56,"settings.misc.slowly_desc")," "),a(4),S(g(24,58,"settings.misc.ringbuf_label")),a(2),d("ngModel",e.HDRingbufferSize)("showButtons",!0)("min",4700)("max",94e3)("step",4700),a(2),x(" ",g(28,60,"settings.misc.ringbuf_desc")," "),a(4),S(g(32,62,"settings.misc.sg_label")),a(2),d("options",e.soptions)("ngModel",e.StorageScheduler),a(2),x(" ",g(36,64,"settings.misc.sg_desc")," "),a(2),I("legend",g(38,66,"settings.misc.panel_upnp")),d("toggleable",!0)("collapsed",!0),a(4),S(g(42,68,"settings.misc.upnp_label")),a(2),d("options",e.uoptions)("ngModel",e.UPNPWmpSource),a(2),x(" ",g(46,70,"settings.misc.upnp_desc")," "),a(5),S(g(51,72,"settings.misc.statapp_label")),a(2),d("ngModel",e.MiscStatusScript),a(2),x(" ",g(55,74,"settings.misc.statapp_desc")," "),a(5),I("label",g(60,76,"settings.misc.disback_label")),d("ngModel",e.DisableAutomaticBackup)("binary",!0),a(3),x(" ",g(63,78,"settings.misc.disback_desc")," "),a(3),I("label",g(66,80,"settings.misc.disfwr_label")),d("ngModel",e.DisableFirewireReset)("binary",!0),a(3),x(" ",g(69,82,"settings.misc.disfwr_desc")," ")}}function Dae(t,s){1&t&&(D(0,"p-message",31),f(1,"translate")),2&t&&I("text",g(1,1,"common.savesuccess"))}function Mae(t,s){1&t&&(D(0,"p-message",32),f(1,"translate")),2&t&&I("text",g(1,1,"common.networkfail"))}function kae(t,s){if(1&t){const e=E();l(0,"div",26)(1,"div",27),m(2,Dae,2,3,"p-message",28),m(3,Mae,2,3,"p-message",29),c(),l(4,"p-button",30),v("onClick",function(){C(e);const i=p(),o=B(1);return i.saveForm(),y(o.form.markAsPristine())}),f(5,"translate"),c()()}if(2&t){const e=p(),n=B(1);a(2),d("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0&&!n.dirty),a(1),I("label",g(5,4,"common.save")),d("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let Eae=(()=>{class t{constructor(e,n,i){this.setupService=e,this.translate=n,this.mythService=i,this.successCount=0,this.errorCount=0,this.MasterBackendOverride=!1,this.DeletesFollowLinks=!1,this.TruncateDeletesSlowly=!1,this.HDRingbufferSize=9400,this.StorageScheduler="BalancedFreeSpace",this.UPNPWmpSource="0",this.MiscStatusScript="",this.DisableAutomaticBackup=!1,this.DisableFirewireReset=!1,this.hostName="",this.soptions=[{name:"settings.misc.sg_balfree",code:"BalancedFreeSpace"},{name:"settings.misc.sg_balpercent",code:"BalancedPercFreeSpace"},{name:"settings.misc.bal_io",code:"BalancedDiskIO"},{name:"settings.misc.sg_combination",code:"Combination"}],this.uoptions=[{name:"settings.misc.upnp_recs",code:"0"},{name:"settings.misc.upnp_videos",code:"1"}],this.miscObserver={next:o=>{o.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:o=>{console.error(o),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},n.get(this.soptions[0].name).subscribe(o=>this.soptions[0].name=o),n.get(this.soptions[1].name).subscribe(o=>this.soptions[1].name=o),n.get(this.soptions[2].name).subscribe(o=>this.soptions[2].name=o),n.get(this.soptions[3].name).subscribe(o=>this.soptions[3].name=o),n.get(this.uoptions[0].name).subscribe(o=>this.uoptions[0].name=o),n.get(this.uoptions[1].name).subscribe(o=>this.uoptions[1].name=o),this.mythService.GetHostName().subscribe({next:o=>{this.hostName=o.String,this.getMiscellaneousData()},error:()=>this.errorCount++})}getMiscellaneousData(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"MasterBackendOverride",Default:"0"}).subscribe({next:e=>this.MasterBackendOverride="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"DeletesFollowLinks",Default:"0"}).subscribe({next:e=>this.DeletesFollowLinks="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"TruncateDeletesSlowly",Default:"0"}).subscribe({next:e=>this.TruncateDeletesSlowly="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"HDRingbufferSize",Default:"9400"}).subscribe({next:e=>this.HDRingbufferSize=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"StorageScheduler",Default:"BalancedFreeSpace"}).subscribe({next:e=>this.StorageScheduler=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"UPNPWmpSource",Default:"0"}).subscribe({next:e=>this.UPNPWmpSource=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"MiscStatusScript",Default:""}).subscribe({next:e=>this.MiscStatusScript=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"DisableAutomaticBackup",Default:"0"}).subscribe({next:e=>this.DisableAutomaticBackup="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"DisableFirewireReset",Default:"0"}).subscribe({next:e=>this.DisableFirewireReset="1"==e.String,error:()=>this.errorCount++})}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"MasterBackendOverride",Value:this.MasterBackendOverride?"1":"0"}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"DeletesFollowLinks",Value:this.DeletesFollowLinks?"1":"0"}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"TruncateDeletesSlowly",Value:this.TruncateDeletesSlowly?"1":"0"}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"HDRingbufferSize",Value:String(this.HDRingbufferSize)}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"StorageScheduler",Value:this.StorageScheduler}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"UPNPWmpSource",Value:this.UPNPWmpSource}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"MiscStatusScript",Value:this.MiscStatusScript}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"DisableAutomaticBackup",Value:this.DisableAutomaticBackup?"1":"0"}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"DisableFirewireReset",Value:this.DisableFirewireReset?"1":"0"}).subscribe(this.miscObserver)}static#e=this.\u0275fac=function(n){return new(n||t)(M(Re),M(Le),M(Wt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-misc-settings"]],viewQuery:function(n,i){if(1&n&&K(wae,5),2&n){let o;H(o=G())&&(i.currentForm=o.first)}},decls:7,vars:0,consts:[["name","miscsettings",1,"ml-3","mr-3"],["miscsettings","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],[1,"form-group","field"],["name","MasterBackendOverride",1,"mb-2","w-full","label",3,"ngModel","binary","label","ngModelChange"],[1,"block"],["name","DeletesFollowLinks",1,"mb-2","w-full","label",3,"ngModel","binary","label","ngModelChange"],["name","TruncateDeletesSlowly",1,"mb-2","w-full","label",3,"ngModel","binary","label","ngModelChange"],["for","HDRingbufferSize",1,"label","block"],["name","HDRingbufferSize","id","HDRingbufferSize",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","StorageScheduler",1,"label","block"],["appendTo","body","optionLabel","name","optionValue","code","name","StorageScheduler",1,"block","w-15rem","mb-2",3,"options","ngModel","ngModelChange"],["for","UPNPWmpSource",1,"label","block"],["appendTo","body","optionLabel","name","optionValue","code","name","UPNPWmpSource",1,"block","w-15rem","mb-2",3,"options","ngModel","ngModelChange"],[1,"mb-4","w-full"],["for","MiscStatusScript",1,"label","block"],["pInputText","","id","MiscStatusScript","name","MiscStatusScript",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["href","http://www.mythtv.org/wiki/Miscellaneous_Status_Information","target","_blank"],["name","DisableAutomaticBackup",1,"mb-2","w-full","label",3,"ngModel","binary","label","ngModelChange"],["name","DisableFirewireReset",1,"mb-2","w-full","label",3,"ngModel","binary","label","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(n,i){1&n&&(l(0,"form",0,1)(2,"p-card",2),m(3,Iae,2,3,"ng-template",3),m(4,Sae,2,3,"ng-template",4),m(5,xae,70,84,"ng-template",5),m(6,kae,6,6,"ng-template",6),c()())},dependencies:[ne,We,Xe,xe,$e,Ce,He,ae,Te,Ge,ln,Gt,Xi,vt,qe,pe],styles:["a[_ngcontent-%COMP%]:link, a[_ngcontent-%COMP%]:visited, a[_ngcontent-%COMP%]:active{background-color:#fff}"]})}return t})();const Lae=["eitscanopt"];function Rae(t,s){1&t&&(_(0),f(1,"translate")),2&t&&x(" ",g(1,1,"settings.eit.title")," ")}function Oae(t,s){1&t&&(_(0),f(1,"translate")),2&t&&x(" ",g(1,1,"settings.eit.subtitle")," ")}function Aae(t,s){if(1&t){const e=E();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"label",10),_(4),f(5,"translate"),c(),l(6,"p-inputNumber",11),v("ngModelChange",function(i){return C(e),y(p().EITTransportTimeout=i)}),c(),l(7,"small",12),_(8),f(9,"translate"),c()(),l(10,"div",9)(11,"label",13),_(12),f(13,"translate"),c(),l(14,"p-inputNumber",14),v("ngModelChange",function(i){return C(e),y(p().EITCrawIdleStart=i)}),c(),l(15,"small",12),_(16),f(17,"translate"),c()(),l(18,"div",9)(19,"label",15),_(20),f(21,"translate"),c(),l(22,"p-inputNumber",16),v("ngModelChange",function(i){return C(e),y(p().EITScanPeriod=i)}),c(),l(23,"small",12),_(24),f(25,"translate"),c()()()()}if(2&t){const e=p();a(4),S(g(5,21,"settings.eit.timeout_label")),a(2),d("ngModel",e.EITTransportTimeout)("showButtons",!0)("min",1)("max",15)("step",1),a(2),x(" ",g(9,23,"settings.eit.timeout_desc")," "),a(4),S(g(13,25,"settings.eit.crawl_label")),a(2),d("ngModel",e.EITCrawIdleStart)("showButtons",!0)("min",30)("max",7200)("step",30),a(2),x(" ",g(17,27,"settings.eit.crawl_desc")," "),a(4),S(g(21,29,"settings.eit.scan_label")),a(2),d("ngModel",e.EITScanPeriod)("showButtons",!0)("min",5)("max",60)("step",5),a(2),x(" ",g(25,31,"settings.eit.scan_desc")," ")}}function Pae(t,s){1&t&&(D(0,"p-message",22),f(1,"translate")),2&t&&I("text",g(1,1,"common.savesuccess"))}function Fae(t,s){1&t&&(D(0,"p-message",23),f(1,"translate")),2&t&&I("text",g(1,1,"common.networkfail"))}function Nae(t,s){if(1&t){const e=E();l(0,"div",17)(1,"div",18),m(2,Pae,2,3,"p-message",19),m(3,Fae,2,3,"p-message",20),c(),l(4,"p-button",21),v("onClick",function(){C(e);const i=p(),o=B(1);return i.saveForm(),y(o.form.markAsPristine())}),f(5,"translate"),c()()}if(2&t){const e=p(),n=B(1);a(2),d("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0),a(1),I("label",g(5,4,"common.save")),d("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let Vae=(()=>{class t{constructor(e,n){this.setupService=e,this.mythService=n,this.successCount=0,this.errorCount=0,this.EITTransportTimeout=5,this.EITCrawIdleStart=60,this.EITScanPeriod=15,this.eitObserver={next:i=>{i.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:i=>{console.error(i),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.getEITScanner()}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getEITScanner(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"EITTransportTimeout",Default:"5"}).subscribe({next:e=>this.EITTransportTimeout=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"EITCrawIdleStart",Default:"60"}).subscribe({next:e=>this.EITCrawIdleStart=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"EITScanPeriod",Default:"15"}).subscribe({next:e=>this.EITScanPeriod=Number(e.String),error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"EITTransportTimeout",Value:String(this.EITTransportTimeout)}).subscribe(this.eitObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"EITCrawIdleStart",Value:String(this.EITCrawIdleStart)}).subscribe(this.eitObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"EITScanPeriod",Value:String(this.EITScanPeriod)}).subscribe(this.eitObserver)}static#e=this.\u0275fac=function(n){return new(n||t)(M(Re),M(Wt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-eit-scanner"]],viewQuery:function(n,i){if(1&n&&K(Lae,5),2&n){let o;H(o=G())&&(i.currentForm=o.first)}},decls:7,vars:0,consts:[["name","eitscanopt",1,"ml-3","mr-3"],["eitscanopt","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","EITTransportTimeout",1,"label","block"],["name","EITTransportTimeout","id","EITTransportTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"block"],["for","EITCrawIdleStart",1,"label","block"],["name","EITCrawIdleStart","id","EITCrawIdleStart",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","EITScanPeriod",1,"label","block"],["name","EITScanPeriod","id","EITScanPeriod",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(n,i){1&n&&(l(0,"form",0,1)(2,"p-card",2),m(3,Rae,2,3,"ng-template",3),m(4,Oae,2,3,"ng-template",4),m(5,Aae,26,33,"ng-template",5),m(6,Nae,6,6,"ng-template",6),c()())},dependencies:[ne,We,xe,$e,Ce,He,ae,Te,Ge,vt,qe,pe]})}return t})();const Bae=["shutwakeopt"];function Hae(t,s){1&t&&(_(0),f(1,"translate")),2&t&&x(" ",g(1,1,"settings.shutwake.title")," ")}function Gae(t,s){1&t&&(_(0),f(1,"translate")),2&t&&x(" ",g(1,1,"settings.shutwake.subtitle")," ")}function qae(t,s){if(1&t){const e=E();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"label",10),_(4),f(5,"translate"),c(),l(6,"input",11),v("ngModelChange",function(i){return C(e),y(p().startupCommand=i)}),c(),l(7,"small",12),_(8),f(9,"translate"),c()(),l(10,"div",9)(11,"p-checkbox",13),v("ngModelChange",function(i){return C(e),y(p().blockSDWUwithoutClient=i)}),f(12,"translate"),c(),l(13,"small",12),_(14),f(15,"translate"),c()(),l(16,"div",9)(17,"label",14),_(18),f(19,"translate"),c(),l(20,"p-inputNumber",15),v("ngModelChange",function(i){return C(e),y(p().idleTimeoutSecs=i)}),c(),l(21,"small",12),_(22),f(23,"translate"),c()(),l(24,"div",9)(25,"label",16),_(26),f(27,"translate"),c(),l(28,"p-inputNumber",17),v("ngModelChange",function(i){return C(e),y(p().idleWaitForRecordingTime=i)}),c(),l(29,"small",12),_(30),f(31,"translate"),c()(),l(32,"div",9)(33,"label",18),_(34),f(35,"translate"),c(),l(36,"p-inputNumber",19),v("ngModelChange",function(i){return C(e),y(p().StartupSecsBeforeRecording=i)}),c(),l(37,"small",12),_(38),f(39,"translate"),c()(),l(40,"div",9)(41,"label",20),_(42),f(43,"translate"),c(),l(44,"input",21),v("ngModelChange",function(i){return C(e),y(p().WakeupTimeFormat=i)}),c(),l(45,"small",12),_(46),f(47,"translate"),c()(),l(48,"div",9)(49,"label",22),_(50),f(51,"translate"),c(),l(52,"input",23),v("ngModelChange",function(i){return C(e),y(p().SetWakeuptimeCommand=i)}),c(),l(53,"small",12),_(54),f(55,"translate"),c()(),l(56,"div",9)(57,"label",24),_(58),f(59,"translate"),c(),l(60,"input",25),v("ngModelChange",function(i){return C(e),y(p().ServerHaltCommand=i)}),c(),l(61,"small",12),_(62),f(63,"translate"),c()(),l(64,"div",9)(65,"label",26),_(66),f(67,"translate"),c(),l(68,"input",27),v("ngModelChange",function(i){return C(e),y(p().preSDWUCheckCommand=i)}),c(),l(69,"small",12),_(70),f(71,"translate"),c()()()()}if(2&t){const e=p();a(4),S(g(5,40,"settings.shutwake.startcmd_label")),a(2),d("ngModel",e.startupCommand),a(2),x(" ",g(9,42,"settings.shutwake.startcmd_desc")," "),a(3),I("label",g(12,44,"settings.shutwake.block_label")),d("ngModel",e.blockSDWUwithoutClient)("binary",!0),a(3),x(" ",g(15,46,"settings.shutwake.block_desc")," "),a(4),x("",g(19,48,"settings.shutwake.idletime_label"),"}"),a(2),d("ngModel",e.idleTimeoutSecs)("showButtons",!0)("min",0)("max",1200)("step",5),a(2),x(" ",g(23,50,"settings.shutwake.idletime_desc")," "),a(4),S(g(27,52,"settings.shutwake.maxwait_label")),a(2),d("ngModel",e.idleWaitForRecordingTime)("showButtons",!0)("min",0)("max",300)("step",1),a(2),x(" ",g(31,54,"settings.shutwake.maxwait_desc")," "),a(4),S(g(35,56,"settings.shutwake.startbefore_label")),a(2),d("ngModel",e.StartupSecsBeforeRecording)("showButtons",!0)("min",0)("max",300)("step",1),a(2),x(" ",g(39,58,"settings.shutwake.startbefore_desc")," "),a(4),S(g(43,60,"settings.shutwake.timeformat_label")),a(2),d("ngModel",e.WakeupTimeFormat),a(2),x(" ",g(47,62,"settings.shutwake.timeformat_desc")," "),a(4),S(g(51,64,"settings.shutwake.timecmd_label")),a(2),d("ngModel",e.SetWakeuptimeCommand),a(2),x(" ",g(55,66,"settings.shutwake.timecmd_desc")," "),a(4),S(g(59,68,"settings.shutwake.serverhalt_label")),a(2),d("ngModel",e.ServerHaltCommand),a(2),x(" ",g(63,70,"settings.shutwake.serverhalt_desc")," "),a(4),S(g(67,72,"settings.shutwake.preshut_label")),a(2),d("ngModel",e.preSDWUCheckCommand),a(2),x(" ",g(71,74,"settings.shutwake.preshut_desc")," ")}}function zae(t,s){1&t&&(D(0,"p-message",33),f(1,"translate")),2&t&&I("text",g(1,1,"common.savesuccess"))}function Uae(t,s){1&t&&(D(0,"p-message",34),f(1,"translate")),2&t&&I("text",g(1,1,"common.networkfail"))}function jae(t,s){if(1&t){const e=E();l(0,"div",28)(1,"div",29),m(2,zae,2,3,"p-message",30),m(3,Uae,2,3,"p-message",31),c(),l(4,"p-button",32),v("onClick",function(){C(e);const i=p(),o=B(1);return i.saveForm(),y(o.form.markAsPristine())}),f(5,"translate"),c()()}if(2&t){const e=p(),n=B(1);a(2),d("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0),a(1),I("label",g(5,4,"common.save")),d("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let $ae=(()=>{class t{constructor(e,n){this.setupService=e,this.mythService=n,this.successCount=0,this.errorCount=0,this.startupCommand="",this.blockSDWUwithoutClient=!0,this.idleTimeoutSecs=0,this.idleWaitForRecordingTime=15,this.StartupSecsBeforeRecording=120,this.WakeupTimeFormat="hh =mm yyyy-MM-dd",this.SetWakeuptimeCommand="",this.ServerHaltCommand="sudo /sbin/halt -p",this.preSDWUCheckCommand="",this.swObserver={next:i=>{i.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:i=>{console.error(i),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.getShutWake()}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getShutWake(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"startupCommand",Default:""}).subscribe({next:e=>this.startupCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"blockSDWUwithoutClient",Default:"1"}).subscribe({next:e=>this.blockSDWUwithoutClient="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"idleTimeoutSecs",Default:"0"}).subscribe({next:e=>this.idleTimeoutSecs=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"idleWaitForRecordingTime",Default:""}).subscribe({next:e=>this.idleWaitForRecordingTime=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"StartupSecsBeforeRecording",Default:"120"}).subscribe({next:e=>this.StartupSecsBeforeRecording=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"WakeupTimeFormat",Default:"hh:mm yyyy-MM-dd"}).subscribe({next:e=>this.WakeupTimeFormat=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"SetWakeuptimeCommand",Default:""}).subscribe({next:e=>this.SetWakeuptimeCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"ServerHaltCommand",Default:"sudo /sbin/halt -p"}).subscribe({next:e=>this.ServerHaltCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"preSDWUCheckCommand",Default:""}).subscribe({next:e=>this.preSDWUCheckCommand=e.String,error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"startupCommand",Value:this.startupCommand}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"blockSDWUwithoutClient",Value:this.blockSDWUwithoutClient?"1":"0"}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"idleTimeoutSecs",Value:String(this.idleTimeoutSecs)}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"idleWaitForRecordingTime",Value:String(this.idleWaitForRecordingTime)}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"StartupSecsBeforeRecording",Value:String(this.StartupSecsBeforeRecording)}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"WakeupTimeFormat",Value:this.WakeupTimeFormat}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"SetWakeuptimeCommand",Value:this.SetWakeuptimeCommand}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"ServerHaltCommand",Value:this.ServerHaltCommand}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"preSDWUCheckCommand",Value:this.preSDWUCheckCommand}).subscribe(this.swObserver)}static#e=this.\u0275fac=function(n){return new(n||t)(M(Re),M(Wt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-shutdown-wakeup"]],viewQuery:function(n,i){if(1&n&&K(Bae,5),2&n){let o;H(o=G())&&(i.currentForm=o.first)}},decls:7,vars:0,consts:[["name","shutwakeopt",1,"ml-3","mr-3"],["shutwakeopt","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","startupCommand",1,"label","block"],["pInputText","","id","startupCommand","name","startupCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],[1,"block"],["inputId","blockSDWUwithoutClient","name","blockSDWUwithoutClient",1,"mb-2","w-full","label",3,"ngModel","binary","label","ngModelChange"],["for","idleTimeoutSecs",1,"label","block"],["name","idleTimeoutSecs","id","idleTimeoutSecs",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","idleWaitForRecordingTime",1,"label","block"],["name","idleWaitForRecordingTime","id","idleWaitForRecordingTime",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","StartupSecsBeforeRecording",1,"label","block"],["name","StartupSecsBeforeRecording","id","StartupSecsBeforeRecording",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","WakeupTimeFormat",1,"label","block"],["pInputText","","id","WakeupTimeFormat","name","WakeupTimeFormat",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","SetWakeuptimeCommand",1,"label","block"],["pInputText","","id","SetWakeuptimeCommand","name","SetWakeuptimeCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","ServerHaltCommand",1,"label","block"],["pInputText","","id","ServerHaltCommand","name","ServerHaltCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","preSDWUCheckCommand",1,"label","block"],["pInputText","","id","preSDWUCheckCommand","name","preSDWUCheckCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(n,i){1&n&&(l(0,"form",0,1)(2,"p-card",2),m(3,Hae,2,3,"ng-template",3),m(4,Gae,2,3,"ng-template",4),m(5,qae,72,76,"ng-template",5),m(6,jae,6,6,"ng-template",6),c()())},dependencies:[ne,We,Xe,xe,$e,Ce,He,ae,Te,Ge,ln,vt,qe,pe]})}return t})();const Wae=["backendwakeup"];function Kae(t,s){1&t&&(_(0),f(1,"translate")),2&t&&x(" ",g(1,1,"settings.backendwake.title")," ")}function Qae(t,s){1&t&&(_(0),f(1,"translate")),2&t&&x(" ",g(1,1,"settings.backendwake.subtitle")," ")}function Jae(t,s){if(1&t){const e=E();l(0,"div",7)(1,"p-fieldset",8),f(2,"translate"),l(3,"div",9)(4,"label",10),_(5),f(6,"translate"),c(),l(7,"p-inputNumber",11),v("ngModelChange",function(i){return C(e),y(p().WOLbackendReconnectWaitTime=i)}),c(),l(8,"small",12),_(9),f(10,"translate"),c()(),l(11,"div",9)(12,"label",13),_(13),f(14,"translate"),c(),l(15,"p-inputNumber",14),v("ngModelChange",function(i){return C(e),y(p().WOLbackendConnectRetry=i)}),c(),l(16,"small",12),_(17),f(18,"translate"),c()(),l(19,"div",9)(20,"label",15),_(21),f(22,"translate"),c(),l(23,"input",16),v("ngModelChange",function(i){return C(e),y(p().WOLbackendCommand=i)}),c(),l(24,"small",12),_(25),f(26,"translate"),c()()(),l(27,"p-fieldset",8),f(28,"translate"),l(29,"div",9)(30,"label",17),_(31),f(32,"translate"),c(),l(33,"input",18),v("ngModelChange",function(i){return C(e),y(p().SleepCommand=i)}),c(),l(34,"small",12),_(35),f(36,"translate"),c()(),l(37,"div",9)(38,"label",19),_(39),f(40,"translate"),c(),l(41,"input",20),v("ngModelChange",function(i){return C(e),y(p().WakeUpCommand=i)}),c(),l(42,"small",12),_(43),f(44,"translate"),c()()()()}if(2&t){const e=p();a(1),I("legend",g(2,29,"settings.backendwake.master.title")),d("toggleable",!0)("collapsed",!0),a(4),S(g(6,31,"settings.backendwake.master.delay_label")),a(2),d("ngModel",e.WOLbackendReconnectWaitTime)("showButtons",!0)("min",0)("max",1200)("step",5),a(2),x(" ",g(10,33,"settings.backendwake.master.delay_desc")," "),a(4),S(g(14,35,"settings.backendwake.master.attempts_label")),a(2),d("ngModel",e.WOLbackendConnectRetry)("showButtons",!0)("min",1)("max",60)("step",1),a(2),x(" ",g(18,37,"settings.backendwake.master.attempts_desc")," "),a(4),S(g(22,39,"settings.backendwake.master.cmd_label")),a(2),d("ngModel",e.WOLbackendCommand),a(2),x(" ",g(26,41,"settings.backendwake.master.cmd_desc")," "),a(2),I("legend",g(28,43,"settings.backendwake.slave.title")),d("toggleable",!0)("collapsed",!0),a(4),S(g(32,45,"settings.backendwake.slave.sleep_label")),a(2),d("ngModel",e.SleepCommand),a(2),x(" ",g(36,47,"settings.backendwake.slave.sleep_desc")," "),a(4),S(g(40,49,"settings.backendwake.slave.wake_label")),a(2),d("ngModel",e.WakeUpCommand),a(2),x(" ",g(44,51,"settings.backendwake.slave.wake_desc")," ")}}function Zae(t,s){1&t&&(D(0,"p-message",26),f(1,"translate")),2&t&&I("text",g(1,1,"common.savesuccess"))}function Yae(t,s){1&t&&(D(0,"p-message",27),f(1,"translate")),2&t&&I("text",g(1,1,"common.networkfail"))}function Xae(t,s){if(1&t){const e=E();l(0,"div",21)(1,"div",22),m(2,Zae,2,3,"p-message",23),m(3,Yae,2,3,"p-message",24),c(),l(4,"p-button",25),v("onClick",function(){C(e);const i=p(),o=B(1);return i.saveForm(),y(o.form.markAsPristine())}),f(5,"translate"),c()()}if(2&t){const e=p(),n=B(1);a(2),d("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0),a(1),I("label",g(5,4,"common.save")),d("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let ele=(()=>{class t{constructor(e,n){this.setupService=e,this.mythService=n,this.hostName="",this.successCount=0,this.errorCount=0,this.WOLbackendReconnectWaitTime=0,this.WOLbackendConnectRetry=5,this.WOLbackendCommand="",this.SleepCommand="",this.WakeUpCommand="",this.bewObserver={next:i=>{i.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:i=>{console.error(i),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getBackendWake(){this.mythService.GetHostName().subscribe({next:e=>{this.hostName=e.String,this.getSettings()},error:()=>this.errorCount++})}getSettings(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"WOLbackendReconnectWaitTime",Default:"0"}).subscribe({next:e=>this.WOLbackendReconnectWaitTime=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"WOLbackendConnectRetry",Default:"5"}).subscribe({next:e=>this.WOLbackendConnectRetry=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"WOLbackendCommand",Default:""}).subscribe({next:e=>this.WOLbackendCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"SleepCommand",Default:""}).subscribe({next:e=>this.SleepCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"WakeUpCommand",Default:""}).subscribe({next:e=>this.WakeUpCommand=e.String,error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"WOLbackendReconnectWaitTime",Value:String(this.WOLbackendReconnectWaitTime)}).subscribe(this.bewObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"WOLbackendConnectRetry",Value:String(this.WOLbackendConnectRetry)}).subscribe(this.bewObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"WOLbackendCommand",Value:this.WOLbackendCommand}).subscribe(this.bewObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"SleepCommand",Value:this.SleepCommand}).subscribe(this.bewObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"WakeUpCommand",Value:this.WakeUpCommand}).subscribe(this.bewObserver)}static#e=this.\u0275fac=function(n){return new(n||t)(M(Re),M(Wt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-backend-wakeup"]],viewQuery:function(n,i){if(1&n&&K(Wae,5),2&n){let o;H(o=G())&&(i.currentForm=o.first)}},decls:7,vars:0,consts:[["name","backendwakeup",1,"ml-3","mr-3"],["backendwakeup","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],[1,"form-group","field"],["for","WOLbackendReconnectWaitTime",1,"label","block"],["name","WOLbackendReconnectWaitTime","id","WOLbackendReconnectWaitTime",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"block"],["for","WOLbackendConnectRetry",1,"label","block"],["name","WOLbackendConnectRetry","id","WOLbackendConnectRetry",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","WOLbackendCommand",1,"label","block"],["pInputText","","id","WOLbackendCommand","name","WOLbackendCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","SleepCommand",1,"label","block"],["pInputText","","id","SleepCommand","name","SleepCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","WakeUpCommand",1,"label","block"],["pInputText","","id","WakeUpCommand","name","WakeUpCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(n,i){1&n&&(l(0,"form",0,1)(2,"p-card",2),m(3,Kae,2,3,"ng-template",3),m(4,Qae,2,3,"ng-template",4),m(5,Jae,45,53,"ng-template",5),m(6,Xae,6,6,"ng-template",6),c()())},dependencies:[ne,We,Xe,xe,$e,Ce,He,ae,Te,Ge,Xi,vt,qe,pe]})}return t})();const tle=["backendcontrol"];function nle(t,s){1&t&&(_(0),f(1,"translate")),2&t&&x(" ",g(1,1,"settings.backendctrl.title")," ")}function ile(t,s){1&t&&(_(0),f(1,"translate")),2&t&&x(" ",g(1,1,"settings.backendctrl.subtitle")," ")}function sle(t,s){if(1&t){const e=E();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"label",10),_(4),f(5,"translate"),c(),l(6,"input",11,12),v("ngModelChange",function(i){return C(e),y(p().BackendStopCommand=i)}),c(),l(8,"small",13),_(9),f(10,"translate"),c()(),l(11,"div",9)(12,"label",14),_(13),f(14,"translate"),c(),l(15,"input",15,12),v("ngModelChange",function(i){return C(e),y(p().BackendStartCommand=i)}),c(),l(17,"small",13),_(18),f(19,"translate"),c()()()()}if(2&t){const e=p();a(4),S(g(5,6,"settings.backendctrl.stop_label")),a(2),d("ngModel",e.BackendStopCommand),a(3),x(" ",g(10,8,"settings.backendctrl.stop_desc")," "),a(4),S(g(14,10,"settings.backendctrl.start_label")),a(2),d("ngModel",e.BackendStartCommand),a(3),x(" ",g(19,12,"settings.backendctrl.start_desc")," ")}}function ole(t,s){1&t&&(D(0,"p-message",21),f(1,"translate")),2&t&&I("text",g(1,1,"common.savesuccess"))}function rle(t,s){1&t&&(D(0,"p-message",22),f(1,"translate")),2&t&&I("text",g(1,1,"common.networkfail"))}function ale(t,s){if(1&t){const e=E();l(0,"div",16)(1,"div",17),m(2,ole,2,3,"p-message",18),m(3,rle,2,3,"p-message",19),c(),l(4,"p-button",20),v("onClick",function(){C(e);const i=p(),o=B(1);return i.saveForm(),y(o.form.markAsPristine())}),f(5,"translate"),c()()}if(2&t){const e=p(),n=B(1);a(2),d("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0),a(1),I("label",g(5,4,"common.save")),d("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let lle=(()=>{class t{constructor(e,n){this.setupService=e,this.mythService=n,this.successCount=0,this.errorCount=0,this.BackendStopCommand="killall mythbackend",this.BackendStartCommand="mythbackend",this.becObserver={next:i=>{i.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:i=>{console.error(i),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getBackendControl(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"BackendStopCommand",Default:"killall mythbackend"}).subscribe({next:e=>this.BackendStopCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"BackendStartCommand",Default:"mythbackend"}).subscribe({next:e=>this.BackendStartCommand=e.String,error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"BackendStopCommand",Value:this.BackendStopCommand}).subscribe(this.becObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"BackendStartCommand",Value:this.BackendStartCommand}).subscribe(this.becObserver)}static#e=this.\u0275fac=function(n){return new(n||t)(M(Re),M(Wt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-backend-control"]],viewQuery:function(n,i){if(1&n&&K(tle,5),2&n){let o;H(o=G())&&(i.currentForm=o.first)}},decls:7,vars:0,consts:[["name","backendcontrol",1,"ml-3","mr-3"],["backendcontrol","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","BackendStopCommand",1,"label","block"],["pInputText","","id","BackendStopCommand","name","BackendStopCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["MiscStatusScript","ngModel"],[1,"block"],["for","BackendStartCommand",1,"label","block"],["pInputText","","id","BackendStartCommand","name","BackendStartCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(n,i){1&n&&(l(0,"form",0,1)(2,"p-card",2),m(3,nle,2,3,"ng-template",3),m(4,ile,2,3,"ng-template",4),m(5,sle,20,14,"ng-template",5),m(6,ale,6,6,"ng-template",6),c()())},dependencies:[ne,We,Xe,xe,$e,Ce,He,ae,Te,Ge,qe,pe]})}return t})();const cle=["jobqbackend"],ule=["JobQueueWindowStartHT"],dle=["JobQueueWindowEndHT"];function ple(t,s){1&t&&(_(0),f(1,"translate")),2&t&&x(" ",g(1,1,"settings.jobqbackend.title")," ")}function hle(t,s){1&t&&(_(0),f(1,"translate")),2&t&&x(" ",g(1,1,"settings.jobqbackend.subtitle")," ")}function mle(t,s){if(1&t){const e=E();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"label",10),_(4),f(5,"translate"),c(),l(6,"p-inputNumber",11),v("ngModelChange",function(i){return C(e),y(p().JobQueueMaxSimultaneousJobs=i)}),c(),l(7,"small",12),_(8),f(9,"translate"),c()(),l(10,"div",9)(11,"label",13),_(12),f(13,"translate"),c(),l(14,"p-inputNumber",14),v("ngModelChange",function(i){return C(e),y(p().JobQueueCheckFrequency=i)}),c(),l(15,"small",12),_(16),f(17,"translate"),c()(),l(18,"div",9)(19,"label",15),_(20),f(21,"translate"),c(),l(22,"p-calendar",16,17),v("ngModelChange",function(i){return C(e),y(p().JobQueueWindowStart=i)}),c(),l(24,"small",12),_(25),f(26,"translate"),c()(),l(27,"div",9)(28,"label",18),_(29),f(30,"translate"),c(),l(31,"p-calendar",19,20),v("ngModelChange",function(i){return C(e),y(p().JobQueueWindowEnd=i)}),c(),l(33,"small",12),_(34),f(35,"translate"),c()(),l(36,"div",9)(37,"label",21),_(38),f(39,"translate"),c(),l(40,"p-dropdown",22),v("ngModelChange",function(i){return C(e),y(p().JobQueueCPU=i)}),c(),l(41,"small",12),_(42),f(43,"translate"),c()(),l(44,"div",9)(45,"p-checkbox",23),v("ngModelChange",function(i){return C(e),y(p().JobAllowMetadata=i)}),f(46,"translate"),c(),l(47,"small",12),_(48),f(49,"translate"),c()(),l(50,"div",9)(51,"p-checkbox",24),v("ngModelChange",function(i){return C(e),y(p().JobAllowCommFlag=i)}),f(52,"translate"),c(),l(53,"small",12),_(54),f(55,"translate"),c()(),l(56,"div",9)(57,"p-checkbox",25),v("ngModelChange",function(i){return C(e),y(p().JobAllowTranscode=i)}),f(58,"translate"),c(),l(59,"small",12),_(60),f(61,"translate"),c()(),l(62,"div",9)(63,"p-checkbox",26),v("ngModelChange",function(i){return C(e),y(p().JobAllowPreview=i)}),f(64,"translate"),c(),l(65,"small",12),_(66),f(67,"translate"),c()(),l(68,"div",9)(69,"p-checkbox",27),v("ngModelChange",function(i){return C(e),y(p().JobAllowUserJob1=i)}),c(),l(70,"small",12),_(71),f(72,"translate"),c()(),l(73,"div",9)(74,"p-checkbox",28),v("ngModelChange",function(i){return C(e),y(p().JobAllowUserJob2=i)}),c(),l(75,"small",12),_(76),f(77,"translate"),c()(),l(78,"div",9)(79,"p-checkbox",29),v("ngModelChange",function(i){return C(e),y(p().JobAllowUserJob3=i)}),c(),l(80,"small",12),_(81),f(82,"translate"),c()(),l(83,"div",9)(84,"p-checkbox",30),v("ngModelChange",function(i){return C(e),y(p().JobAllowUserJob4=i)}),c(),l(85,"small",12),_(86),f(87,"translate"),c()()()()}if(2&t){const e=p();a(4),S(g(5,60,"settings.jobqbackend.maxjobs_label")),a(2),d("ngModel",e.JobQueueMaxSimultaneousJobs)("showButtons",!0)("min",1)("max",10)("step",1),a(2),x(" ",g(9,62,"settings.jobqbackend.maxjobs_desc")," "),a(4),S(g(13,64,"settings.jobqbackend.freq_label")),a(2),d("ngModel",e.JobQueueCheckFrequency)("showButtons",!0)("min",5)("max",300)("step",5),a(2),x(" ",g(17,66,"settings.jobqbackend.freq_desc")," "),a(4),S(g(21,68,"settings.jobqbackend.start_label")),a(2),d("ngModel",e.JobQueueWindowStart)("timeOnly",!0)("readonlyInput",!0),a(3),x(" ",g(26,70,"settings.jobqbackend.start_desc")," "),a(4),S(g(30,72,"settings.jobqbackend.end_label")),a(2),d("ngModel",e.JobQueueWindowEnd)("timeOnly",!0)("readonlyInput",!0),a(3),x(" ",g(35,74,"settings.jobqbackend.end_desc")," "),a(4),S(g(39,76,"settings.jobqbackend.cpu_label")),a(2),d("options",e.cpuOptions)("ngModel",e.JobQueueCPU),a(2),x(" ",g(43,78,"settings.jobqbackend.cpu_desc")," "),a(3),I("label",g(46,80,"settings.jobqbackend.meta_label")),d("ngModel",e.JobAllowMetadata)("binary",!0),a(3),x(" ",g(49,82,"settings.jobqbackend.allow_desc")," "),a(3),I("label",g(52,84,"settings.jobqbackend.comm_label")),d("ngModel",e.JobAllowCommFlag)("binary",!0),a(3),x(" ",g(55,86,"settings.jobqbackend.allow_desc")," "),a(3),I("label",g(58,88,"settings.jobqbackend.trans_label")),d("ngModel",e.JobAllowTranscode)("binary",!0),a(3),x(" ",g(61,90,"settings.jobqbackend.allow_desc")," "),a(3),I("label",g(64,92,"settings.jobqbackend.preview_label")),d("ngModel",e.JobAllowPreview)("binary",!0),a(3),x(" ",g(67,94,"settings.jobqbackend.allow_desc")," "),a(3),I("label",e.JobQCmds.UserJobDesc[0]),d("ngModel",e.JobAllowUserJob1)("binary",!0),a(2),x(" ",g(72,96,"settings.jobqbackend.allow_desc")," "),a(3),I("label",e.JobQCmds.UserJobDesc[1]),d("ngModel",e.JobAllowUserJob2)("binary",!0),a(2),x(" ",g(77,98,"settings.jobqbackend.allow_desc")," "),a(3),I("label",e.JobQCmds.UserJobDesc[2]),d("ngModel",e.JobAllowUserJob3)("binary",!0),a(2),x(" ",g(82,100,"settings.jobqbackend.allow_desc")," "),a(3),I("label",e.JobQCmds.UserJobDesc[3]),d("ngModel",e.JobAllowUserJob4)("binary",!0),a(2),x(" ",g(87,102,"settings.jobqbackend.allow_desc")," ")}}function fle(t,s){1&t&&(D(0,"p-message",36),f(1,"translate")),2&t&&I("text",g(1,1,"common.savesuccess"))}function gle(t,s){1&t&&(D(0,"p-message",37),f(1,"translate")),2&t&&I("text",g(1,1,"common.networkfail"))}function _le(t,s){if(1&t){const e=E();l(0,"div",31)(1,"div",32),m(2,fle,2,3,"p-message",33),m(3,gle,2,3,"p-message",34),c(),l(4,"p-button",35),v("onClick",function(){C(e);const i=p(),o=B(1);return i.saveForm(),y(o.form.markAsPristine())}),f(5,"translate"),c()()}if(2&t){const e=p(),n=B(1);a(2),d("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0),a(1),I("label",g(5,4,"common.save")),d("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let ble=(()=>{class t{constructor(e,n,i){this.setupService=e,this.translate=n,this.mythService=i,this.successCount=0,this.errorCount=0,this.hostName="",this.JobQueueMaxSimultaneousJobs=1,this.JobQueueCheckFrequency=60,this.JobQueueWindowStart=new Date(0),this.JobQueueWindowStartHT$=new It,this.JobQueueWindowEnd=new Date(0),this.JobQueueWindowEndHT$=new It,this.JobQueueCPU="0",this.JobAllowMetadata=!0,this.JobAllowCommFlag=!0,this.JobAllowTranscode=!0,this.JobAllowPreview=!0,this.JobAllowUserJob1=!1,this.JobAllowUserJob2=!1,this.JobAllowUserJob3=!1,this.JobAllowUserJob4=!1,this.cpuOptions=[{name:"settings.jobqbackend.cpu_low",code:"0"},{name:"settings.jobqbackend.cpu_med",code:"1"},{name:"settings.jobqbackend.cpu_high",code:"2"}],this.jqbObserver={next:o=>{o.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:o=>{console.error(o),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.getJobQBackend(),this.JobQueueWindowStartHT$.subscribe({complete:()=>this.JobQueueWindowStartHT.updateInputfield()}),this.JobQueueWindowEndHT$.subscribe({complete:()=>this.JobQueueWindowEndHT.updateInputfield()}),this.JobQCmds=this.setupService.getJobQCommands(),n.get(this.cpuOptions[0].name).subscribe(o=>this.cpuOptions[0].name=o),n.get(this.cpuOptions[1].name).subscribe(o=>this.cpuOptions[1].name=o),n.get(this.cpuOptions[2].name).subscribe(o=>this.cpuOptions[2].name=o)}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getJobQBackend(){this.successCount=0,this.errorCount=0,this.setupService.parseTime(this.JobQueueWindowStart,"00:00"),this.setupService.parseTime(this.JobQueueWindowEnd,"23:59"),this.mythService.GetHostName().subscribe({next:e=>{this.hostName=e.String,this.getSettings()},error:()=>this.errorCount++})}getSettings(){this.mythService.GetSetting({HostName:this.hostName,Key:"JobQueueMaxSimultaneousJobs",Default:"1"}).subscribe({next:e=>this.JobQueueMaxSimultaneousJobs=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobQueueCheckFrequency",Default:"60"}).subscribe({next:e=>this.JobQueueCheckFrequency=Number(e.String),error:()=>this.errorCount++}),this.JobQueueWindowStartHT$=this.mythService.GetSetting({HostName:this.hostName,Key:"JobQueueWindowStart",Default:"00:00"}),this.JobQueueWindowStartHT$.subscribe({next:e=>{this.setupService.parseTime(this.JobQueueWindowStart,e.String),this.JobQueueWindowStartHT.updateInputfield()},error:()=>this.errorCount++}),this.JobQueueWindowEndHT$=this.mythService.GetSetting({HostName:this.hostName,Key:"JobQueueWindowEnd",Default:"23:59"}),this.JobQueueWindowEndHT$.subscribe({next:e=>{this.setupService.parseTime(this.JobQueueWindowEnd,e.String),this.JobQueueWindowEndHT.updateInputfield()},error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobQueueCPU",Default:"0"}).subscribe({next:e=>this.JobQueueCPU=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowMetadata",Default:"1"}).subscribe({next:e=>this.JobAllowMetadata="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowCommFlag",Default:"1"}).subscribe({next:e=>this.JobAllowCommFlag="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowTranscode",Default:"1"}).subscribe({next:e=>this.JobAllowTranscode="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowPreview",Default:"1"}).subscribe({next:e=>this.JobAllowPreview="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowUserJob1",Default:"0"}).subscribe({next:e=>this.JobAllowUserJob1="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowUserJob2",Default:"0"}).subscribe({next:e=>this.JobAllowUserJob2="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowUserJob3",Default:"0"}).subscribe({next:e=>this.JobAllowUserJob3="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowUserJob4",Default:"0"}).subscribe({next:e=>this.JobAllowUserJob4="1"==e.String,error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:this.hostName,Key:"JobQueueMaxSimultaneousJobs",Value:String(this.JobQueueMaxSimultaneousJobs)}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobQueueCheckFrequency",Value:String(this.JobQueueCheckFrequency)}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobQueueWindowStart",Value:this.setupService.formatTime(this.JobQueueWindowStart)}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobQueueWindowEnd",Value:this.setupService.formatTime(this.JobQueueWindowEnd)}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobQueueCPU",Value:this.JobQueueCPU}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowMetadata",Value:this.JobAllowMetadata?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowCommFlag",Value:this.JobAllowCommFlag?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowTranscode",Value:this.JobAllowTranscode?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowPreview",Value:this.JobAllowPreview?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowUserJob1",Value:this.JobAllowUserJob1?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowUserJob2",Value:this.JobAllowUserJob2?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowUserJob3",Value:this.JobAllowUserJob3?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowUserJob4",Value:this.JobAllowUserJob4?"1":"0"}).subscribe(this.jqbObserver)}static#e=this.\u0275fac=function(n){return new(n||t)(M(Re),M(Le),M(Wt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-jobqueue-backend"]],viewQuery:function(n,i){if(1&n&&(K(cle,5),K(ule,5),K(dle,5)),2&n){let o;H(o=G())&&(i.currentForm=o.first),H(o=G())&&(i.JobQueueWindowStartHT=o.first),H(o=G())&&(i.JobQueueWindowEndHT=o.first)}},decls:7,vars:0,consts:[["name","jobqbackend",1,"ml-3","mr-3"],["jobqbackend","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","JobQueueMaxSimultaneousJobs",1,"label","block"],["name","JobQueueMaxSimultaneousJobs","id","JobQueueMaxSimultaneousJobs",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"block"],["for","JobQueueCheckFrequency",1,"label","block"],["name","JobQueueCheckFrequency","id","JobQueueCheckFrequency",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","JobQueueWindowStart",1,"label","block"],["name","JobQueueWindowStart","id","JobQueueWindowStart","ngControl","JobQueueWindowStart",3,"ngModel","timeOnly","readonlyInput","ngModelChange"],["JobQueueWindowStartHT",""],["for","JobQueueWindowEnd",1,"label","block"],["name","JobQueueWindowEnd","id","JobQueueWindowEnd","ngControl","JobQueueWindowEnd",3,"ngModel","timeOnly","readonlyInput","ngModelChange"],["JobQueueWindowEndHT",""],["for","JobQueueCPU",1,"label","block"],["optionLabel","name","optionValue","code","name","JobQueueCPU",1,"block","w-15rem","mb-2",3,"options","ngModel","ngModelChange"],["inputId","JobAllowMetadata","name","JobAllowMetadata",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowCommFlag","name","JobAllowCommFlag",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowTranscode","name","JobAllowTranscode",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowPreview","name","JobAllowPreview",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowUserJob1","name","JobAllowUserJob1",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowUserJob2","name","JobAllowUserJob2",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowUserJob3","name","JobAllowUserJob3",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowUserJob4","name","JobAllowUserJob4",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(n,i){1&n&&(l(0,"form",0,1)(2,"p-card",2),m(3,ple,2,3,"ng-template",3),m(4,hle,2,3,"ng-template",4),m(5,mle,88,104,"ng-template",5),m(6,_le,6,6,"ng-template",6),c()())},dependencies:[ne,We,xe,$e,Ce,He,ae,Te,Zo,Ge,ln,Gt,vt,qe,pe]})}return t})();const vle=["jobqglobal"];function Cle(t,s){1&t&&(_(0),f(1,"translate")),2&t&&x(" ",g(1,1,"settings.jobqglobal.title")," ")}function yle(t,s){}function Tle(t,s){if(1&t){const e=E();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"p-checkbox",10),v("ngModelChange",function(i){return C(e),y(p().JobsRunOnRecordHost=i)}),f(4,"translate"),c(),l(5,"small",11),_(6),f(7,"translate"),c()(),l(8,"div",9)(9,"p-checkbox",12),v("ngModelChange",function(i){return C(e),y(p().AutoCommflagWhileRecording=i)}),f(10,"translate"),c(),l(11,"small",11),_(12),f(13,"translate"),c()(),l(14,"div",9)(15,"label",13),_(16),f(17,"translate"),c(),l(18,"input",14),v("ngModelChange",function(i){return C(e),y(p().JobQueueCommFlagCommand=i)}),c(),l(19,"small",11),_(20),f(21,"translate"),c()(),l(22,"div",9)(23,"label",15),_(24),f(25,"translate"),c(),l(26,"input",16),v("ngModelChange",function(i){return C(e),y(p().JobQueueTranscodeCommand=i)}),c(),l(27,"small",11),_(28),f(29,"translate"),c()(),l(30,"div",9)(31,"p-checkbox",17),v("ngModelChange",function(i){return C(e),y(p().AutoTranscodeBeforeAutoCommflag=i)}),f(32,"translate"),c(),l(33,"small",11),_(34),f(35,"translate"),c()(),l(36,"div",9)(37,"p-checkbox",18),v("ngModelChange",function(i){return C(e),y(p().SaveTranscoding=i)}),f(38,"translate"),c(),l(39,"small",11),_(40),f(41,"translate"),c()()()()}if(2&t){const e=p();a(3),I("label",g(4,22,"settings.jobqglobal.runonrechost_label")),d("ngModel",e.JobsRunOnRecordHost)("binary",!0),a(3),x(" ",g(7,24,"settings.jobqglobal.runonrechost_desc")," "),a(3),I("label",g(10,26,"settings.jobqglobal.startcomm_label")),d("ngModel",e.AutoCommflagWhileRecording)("binary",!0),a(3),x(" ",g(13,28,"settings.jobqglobal.startcomm_desc")," "),a(4),S(g(17,30,"settings.jobqglobal.commcmd_label")),a(2),d("ngModel",e.JobQueueCommFlagCommand),a(2),x(" ",g(21,32,"settings.jobqglobal.commcmd_desc")," "),a(4),S(g(25,34,"settings.jobqglobal.transcmd_label")),a(2),d("ngModel",e.JobQueueTranscodeCommand),a(2),x(" ",g(29,36,"settings.jobqglobal.transcmd_desc")," "),a(3),I("label",g(32,38,"settings.jobqglobal.transfirst_label")),d("ngModel",e.AutoTranscodeBeforeAutoCommflag)("binary",!0),a(3),x(" ",g(35,40,"settings.jobqglobal.transfirst_desc")," "),a(3),I("label",g(38,42,"settings.jobqglobal.transsave_label")),d("ngModel",e.SaveTranscoding)("binary",!0),a(3),x(" ",g(41,44,"settings.jobqglobal.transsave_desc")," ")}}function wle(t,s){1&t&&(D(0,"p-message",24),f(1,"translate")),2&t&&I("text",g(1,1,"common.savesuccess"))}function Ile(t,s){1&t&&(D(0,"p-message",25),f(1,"translate")),2&t&&I("text",g(1,1,"common.networkfail"))}function Sle(t,s){if(1&t){const e=E();l(0,"div",19)(1,"div",20),m(2,wle,2,3,"p-message",21),m(3,Ile,2,3,"p-message",22),c(),l(4,"p-button",23),v("onClick",function(){C(e);const i=p(),o=B(1);return i.saveForm(),y(o.form.markAsPristine())}),f(5,"translate"),c()()}if(2&t){const e=p(),n=B(1);a(2),d("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0),a(1),I("label",g(5,4,"common.save")),d("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let xle=(()=>{class t{constructor(e,n){this.setupService=e,this.mythService=n,this.successCount=0,this.errorCount=0,this.JobsRunOnRecordHost=!1,this.AutoCommflagWhileRecording=!1,this.JobQueueCommFlagCommand="mythcommflag",this.JobQueueTranscodeCommand="mythtranscode",this.AutoTranscodeBeforeAutoCommflag=!1,this.SaveTranscoding=!1,this.JobQGlobalObs={next:i=>{i.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:i=>{console.error(i),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.getJobQGlobal()}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getJobQGlobal(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"JobsRunOnRecordHost",Default:"0"}).subscribe({next:e=>this.JobsRunOnRecordHost="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"AutoCommflagWhileRecording",Default:"0"}).subscribe({next:e=>this.AutoCommflagWhileRecording="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"JobQueueCommFlagCommand",Default:"mythcommflag"}).subscribe({next:e=>this.JobQueueCommFlagCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"JobQueueTranscodeCommand",Default:"mythtranscode"}).subscribe({next:e=>this.JobQueueTranscodeCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"AutoTranscodeBeforeAutoCommflag",Default:"0"}).subscribe({next:e=>this.AutoTranscodeBeforeAutoCommflag="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"SaveTranscoding",Default:"0"}).subscribe({next:e=>this.SaveTranscoding="1"==e.String,error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"JobsRunOnRecordHost",Value:this.JobsRunOnRecordHost?"1":"0"}).subscribe(this.JobQGlobalObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"AutoCommflagWhileRecording",Value:this.AutoCommflagWhileRecording?"1":"0"}).subscribe(this.JobQGlobalObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"JobQueueCommFlagCommand",Value:this.JobQueueCommFlagCommand}).subscribe(this.JobQGlobalObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"JobQueueTranscodeCommand",Value:this.JobQueueTranscodeCommand}).subscribe(this.JobQGlobalObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"AutoTranscodeBeforeAutoCommflag",Value:this.AutoTranscodeBeforeAutoCommflag?"1":"0"}).subscribe(this.JobQGlobalObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"SaveTranscoding",Value:this.SaveTranscoding?"1":"0"}).subscribe(this.JobQGlobalObs)}static#e=this.\u0275fac=function(n){return new(n||t)(M(Re),M(Wt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-jobqueue-global"]],viewQuery:function(n,i){if(1&n&&K(vle,5),2&n){let o;H(o=G())&&(i.currentForm=o.first)}},decls:7,vars:0,consts:[["name","jobqglobal",1,"ml-3","mr-3"],["jobqglobal","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["inputId","JobsRunOnRecordHost","name","JobsRunOnRecordHost",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],[1,"block"],["inputId","AutoCommflagWhileRecording","name","AutoCommflagWhileRecording",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["for","JobQueueCommFlagCommand",1,"label","block"],["pInputText","","id","JobQueueCommFlagCommand","name","JobQueueCommFlagCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","JobQueueTranscodeCommand",1,"label","block"],["pInputText","","id","JobQueueTranscodeCommand","name","JobQueueTranscodeCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["inputId","AutoTranscodeBeforeAutoCommflag","name","AutoTranscodeBeforeAutoCommflag",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","SaveTranscoding","name","SaveTranscoding",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(n,i){1&n&&(l(0,"form",0,1)(2,"p-card",2),m(3,Cle,2,3,"ng-template",3),m(4,yle,0,0,"ng-template",4),m(5,Tle,42,46,"ng-template",5),m(6,Sle,6,6,"ng-template",6),c()())},dependencies:[ne,We,Xe,xe,$e,Ce,He,ae,Te,Ge,ln,qe,pe]})}return t})();const Dle=["jobqcommands"];function Mle(t,s){1&t&&(_(0),f(1,"translate")),2&t&&x(" ",g(1,1,"settings.jobqcommands.title")," ")}function kle(t,s){1&t&&(_(0),f(1,"translate")),2&t&&x(" ",g(1,1,"settings.jobqcommands.subtitle")," ")}const jx=function(t){return{num:t}};function Ele(t,s){if(1&t){const e=E();l(0,"div")(1,"div",10)(2,"label",11),D(3,"div",12),c(),l(4,"input",13,14),v("ngModelChange",function(i){const r=C(e).$implicit;return y(p(2).JobQCommandsData.UserJobDesc[r]=i)}),c(),l(6,"small",15),_(7),f(8,"translate"),c()(),l(9,"div",10)(10,"label",11),D(11,"div",12),c(),l(12,"input",13,16),v("ngModelChange",function(i){const r=C(e).$implicit;return y(p(2).JobQCommandsData.UserJob[r]=i)}),c(),l(14,"small",15),_(15),f(16,"translate"),c()()()}if(2&t){const e=s.$implicit,n=p(2);a(2),ai("for","UserJobDesc",e,""),a(1),d("translate","settings.jobqcommands.job_label")("translateParams",W(18,jx,e+1)),a(1),ai("id","UserJobDesc",e,"")("name","UserJobDesc",e,""),d("ngModel",n.JobQCommandsData.UserJobDesc[e]),a(3),x(" ",g(8,14,"settings.jobqcommands.job_desc")," "),a(3),ai("for","UserJob",e,""),a(1),d("translate","settings.jobqcommands.command_label")("translateParams",W(20,jx,e+1)),a(1),ai("id","UserJob",e,"")("name","UserJob",e,""),d("ngModel",n.JobQCommandsData.UserJob[e]),a(3),x(" ",g(16,16,"settings.jobqcommands.command_desc")," ")}}function Lle(t,s){if(1&t&&(l(0,"div",7)(1,"div",8),m(2,Ele,17,22,"div",9),c()()),2&t){const e=p();a(2),d("ngForOf",e.items)}}function Rle(t,s){1&t&&(D(0,"p-message",22),f(1,"translate")),2&t&&I("text",g(1,1,"common.savesuccess"))}function Ole(t,s){1&t&&(D(0,"p-message",23),f(1,"translate")),2&t&&I("text",g(1,1,"common.networkfail"))}function Ale(t,s){if(1&t){const e=E();l(0,"div",17)(1,"div",18),m(2,Rle,2,3,"p-message",19),m(3,Ole,2,3,"p-message",20),c(),l(4,"p-button",21),v("onClick",function(){C(e);const i=p(),o=B(1);return i.saveForm(),y(o.form.markAsPristine())}),f(5,"translate"),c()()}if(2&t){const e=p(),n=B(1);a(2),d("ngIf",e.JobQCommandsData.successCount>0&&0==e.JobQCommandsData.errorCount&&!n.dirty),a(1),d("ngIf",e.JobQCommandsData.errorCount>0),a(1),I("label",g(5,4,"common.save")),d("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let Ple=(()=>{class t{constructor(e){this.setupService=e,this.items=[0,1,2,3],this.JobQCommandsData=this.setupService.getJobQCommands()}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}saveForm(){this.setupService.saveJobQCommands(this.currentForm)}static#e=this.\u0275fac=function(n){return new(n||t)(M(Re))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-jobqueue-commands"]],viewQuery:function(n,i){if(1&n&&K(Dle,5),2&n){let o;H(o=G())&&(i.currentForm=o.first)}},decls:7,vars:0,consts:[["name","jobqcommands",1,"ml-3","mr-3"],["jobqcommands","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[4,"ngFor","ngForOf"],[1,"form-group","field"],[1,"label","block",3,"for"],[3,"translate","translateParams"],["pInputText","",1,"mb-2","form-control","w-full",3,"id","ngModel","name","ngModelChange"],["UserJobDesc{{item}}","ngModel"],[1,"block"],["UserJob{{item}}","ngModel"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(n,i){1&n&&(l(0,"form",0,1)(2,"p-card",2),m(3,Mle,2,3,"ng-template",3),m(4,kle,2,3,"ng-template",4),m(5,Lle,3,1,"ng-template",5),m(6,Ale,6,6,"ng-template",6),c()())},dependencies:[ut,ne,We,Xe,xe,$e,Ce,He,Bd,ae,Te,Ge,qe,pe]})}return t})();const Fle=["epgdownload"];function Nle(t,s){1&t&&(_(0),f(1,"translate")),2&t&&x(" ",g(1,1,"settings.epgdownload.title")," ")}function Vle(t,s){}function Ble(t,s){if(1&t){const e=E();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"p-checkbox",10),v("ngModelChange",function(i){return C(e),y(p().MythFillEnabled=i)}),f(4,"translate"),c(),l(5,"small",11),_(6),f(7,"translate"),c()()()()}if(2&t){const e=p();a(3),I("label",g(4,4,"settings.epgdownload.enabled_label")),d("ngModel",e.MythFillEnabled)("binary",!0),a(3),x(" ",g(7,6,"settings.epgdownload.enabled_desc")," ")}}function Hle(t,s){1&t&&(D(0,"p-message",17),f(1,"translate")),2&t&&I("text",g(1,1,"common.savesuccess"))}function Gle(t,s){1&t&&(D(0,"p-message",18),f(1,"translate")),2&t&&I("text",g(1,1,"common.networkfail"))}function qle(t,s){if(1&t){const e=E();l(0,"div",12)(1,"div",13),m(2,Hle,2,3,"p-message",14),m(3,Gle,2,3,"p-message",15),c(),l(4,"p-button",16),v("onClick",function(){C(e);const i=p(),o=B(1);return i.saveForm(),y(o.form.markAsPristine())}),f(5,"translate"),c()()}if(2&t){const e=p(),n=B(1);a(2),d("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0),a(1),I("label",g(5,4,"common.save")),d("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let zle=(()=>{class t{constructor(e,n){this.setupService=e,this.mythService=n,this.successCount=0,this.errorCount=0,this.MythFillEnabled=!0,this.EpgDownloadObs={next:i=>{i.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:i=>{console.error(i),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.getEpgDownload()}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getEpgDownload(){this.successCount=0,this.errorCount=0,this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"MythFillEnabled",Default:"1"}).subscribe({next:e=>this.MythFillEnabled="1"==e.String,error:()=>this.errorCount++})}saveForm(){console.log("save form clicked"),this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"MythFillEnabled",Value:this.MythFillEnabled?"1":"0"}).subscribe(this.EpgDownloadObs)}static#e=this.\u0275fac=function(n){return new(n||t)(M(Re),M(Wt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-epg-downloading"]],viewQuery:function(n,i){if(1&n&&K(Fle,5),2&n){let o;H(o=G())&&(i.currentForm=o.first)}},decls:7,vars:0,consts:[["name","epgdownload",1,"ml-3","mr-3"],["epgdownload","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["inputId","MythFillEnabled","name","MythFillEnabled",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],[1,"block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(n,i){1&n&&(l(0,"form",0,1)(2,"p-card",2),m(3,Nle,2,3,"ng-template",3),m(4,Vle,0,0,"ng-template",4),m(5,Ble,8,8,"ng-template",5),m(6,qle,6,6,"ng-template",6),c()())},dependencies:[ne,We,xe,$e,Ce,He,ae,Te,Ge,ln,qe,pe]})}return t})();function Ule(t,s){if(1&t&&(l(0,"b"),_(1),c()),2&t){const e=p();a(1),x("\xa0",e.dirtyMessages[0],"")}}function jle(t,s){1&t&&D(0,"app-host-address")}function $le(t,s){if(1&t&&(l(0,"b"),_(1),c()),2&t){const e=p();a(1),x("\xa0",e.dirtyMessages[1],"")}}function Wle(t,s){1&t&&D(0,"app-locale")}function Kle(t,s){if(1&t&&(l(0,"b"),_(1),c()),2&t){const e=p();a(1),x("\xa0",e.dirtyMessages[2],"")}}function Qle(t,s){1&t&&D(0,"app-misc-settings")}function Jle(t,s){if(1&t&&(l(0,"b"),_(1),c()),2&t){const e=p();a(1),x("\xa0",e.dirtyMessages[3],"")}}function Zle(t,s){1&t&&D(0,"app-eit-scanner")}function Yle(t,s){if(1&t&&(l(0,"b"),_(1),c()),2&t){const e=p();a(1),x("\xa0",e.dirtyMessages[4],"")}}function Xle(t,s){1&t&&D(0,"app-shutdown-wakeup")}function ece(t,s){if(1&t&&(l(0,"b"),_(1),c()),2&t){const e=p();a(1),x("\xa0",e.dirtyMessages[5],"")}}function tce(t,s){1&t&&D(0,"app-backend-wakeup")}function nce(t,s){if(1&t&&(l(0,"b"),_(1),c()),2&t){const e=p();a(1),x("\xa0",e.dirtyMessages[6],"")}}function ice(t,s){1&t&&D(0,"app-backend-control")}function sce(t,s){if(1&t&&(l(0,"b"),_(1),c()),2&t){const e=p();a(1),x("\xa0",e.dirtyMessages[7],"")}}function oce(t,s){1&t&&D(0,"app-jobqueue-backend")}function rce(t,s){if(1&t&&(l(0,"b"),_(1),c()),2&t){const e=p();a(1),x("\xa0",e.dirtyMessages[8],"")}}function ace(t,s){1&t&&D(0,"app-jobqueue-global")}function lce(t,s){if(1&t&&(l(0,"b"),_(1),c()),2&t){const e=p();a(1),x("\xa0",e.dirtyMessages[9],"")}}function cce(t,s){1&t&&D(0,"app-jobqueue-commands")}function uce(t,s){if(1&t&&(l(0,"b"),_(1),c()),2&t){const e=p();a(1),x("\xa0",e.dirtyMessages[10],"")}}function dce(t,s){1&t&&D(0,"app-epg-downloading")}let pce=(()=>{class t{constructor(e,n,i){this.setupService=e,this.translate=n,this.router=i,this.m_showHelp=!1,this.currentTab=-1,this.dirtyMessages=["","","","","","","","","","","","","","","",""],this.forms=[,,,,,,,,,,,,,,,,],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.setupService.setCurrentForm(null),n.get(this.dirtyText).subscribe(o=>this.dirtyText=o),n.get(this.warningText).subscribe(o=>this.warningText=o)}ngOnInit(){}onTabOpen(e){this.showDirty(),typeof this.forms[e.index]>"u"&&(this.forms[e.index]=this.setupService.getCurrentForm()),this.currentTab=e.index,console.log("onTabOpen"),console.log(e),this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty()}showDirty(){-1!=this.currentTab&&(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab].dirty?this.dirtyText:"")}showHelp(){this.m_showHelp=!0}confirm(e){return ue(window.confirm(e))}canDeactivate(){return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(e=>e.length>0))||this.confirm(this.warningText)}onWindowClose(e){(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n.length>0))&&(e.preventDefault(),e.returnValue=!1)}static#e=this.\u0275fac=function(n){return new(n||t)(M(Re),M(Le),M(Nt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-general-settings"]],hostBindings:function(n,i){1&n&&v("beforeunload",function(r){return i.onWindowClose(r)},0,Nn)},decls:54,vars:42,consts:[[1,"col-12","w-full","p-0",3,"onClose","onOpen"],[3,"header"],["pTemplate","header"],["pTemplate","content"],[1,"flex","justify-content-end"],["icon","pi pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"]],template:function(n,i){1&n&&(l(0,"p-card")(1,"h2"),_(2),f(3,"translate"),c(),l(4,"p-accordion",0),v("onClose",function(r){return i.onTabClose(r)})("onOpen",function(r){return i.onTabOpen(r)}),l(5,"p-accordionTab",1),f(6,"translate"),m(7,Ule,2,1,"ng-template",2),m(8,jle,1,0,"ng-template",3),c(),l(9,"p-accordionTab",1),f(10,"translate"),m(11,$le,2,1,"ng-template",2),m(12,Wle,1,0,"ng-template",3),c(),l(13,"p-accordionTab",1),f(14,"translate"),m(15,Kle,2,1,"ng-template",2),m(16,Qle,1,0,"ng-template",3),c(),l(17,"p-accordionTab",1),f(18,"translate"),m(19,Jle,2,1,"ng-template",2),m(20,Zle,1,0,"ng-template",3),c(),l(21,"p-accordionTab",1),f(22,"translate"),m(23,Yle,2,1,"ng-template",2),m(24,Xle,1,0,"ng-template",3),c(),l(25,"p-accordionTab",1),f(26,"translate"),m(27,ece,2,1,"ng-template",2),m(28,tce,1,0,"ng-template",3),c(),l(29,"p-accordionTab",1),f(30,"translate"),m(31,nce,2,1,"ng-template",2),m(32,ice,1,0,"ng-template",3),c(),l(33,"p-accordionTab",1),f(34,"translate"),m(35,sce,2,1,"ng-template",2),m(36,oce,1,0,"ng-template",3),c(),l(37,"p-accordionTab",1),f(38,"translate"),m(39,rce,2,1,"ng-template",2),m(40,ace,1,0,"ng-template",3),c(),l(41,"p-accordionTab",1),f(42,"translate"),m(43,lce,2,1,"ng-template",2),m(44,cce,1,0,"ng-template",3),c(),l(45,"p-accordionTab",1),f(46,"translate"),m(47,uce,2,1,"ng-template",2),m(48,dce,1,0,"ng-template",3),c()(),l(49,"div",4)(50,"p-button",5),v("onClick",function(){return i.router.navigate(["setupwizard/selectlanguage"])}),f(51,"translate"),c(),l(52,"p-button",6),v("onClick",function(){return i.router.navigate(["setupwizard/capture-cards"])}),f(53,"translate"),c()()()),2&n&&(a(2),S(g(3,14,"settings.general.title")),a(3),I("header",g(6,16,"settings.hostaddress.title")),a(4),I("header",g(10,18,"settings.locale.title")),a(4),I("header",g(14,20,"settings.misc.title")),a(4),I("header",g(18,22,"settings.eit.title")),a(4),I("header",g(22,24,"settings.shutwake.title")),a(4),I("header",g(26,26,"settings.backendwake.title")),a(4),I("header",g(30,28,"settings.backendctrl.title")),a(4),I("header",g(34,30,"settings.jobqbackend.title")),a(4),I("header",g(38,32,"settings.jobqglobal.title")),a(4),I("header",g(42,34,"settings.jobqcommands.title")),a(4),I("header",g(46,36,"settings.epgdownload.title")),a(5),I("label",g(51,38,"common.back")),a(2),I("label",g(53,40,"common.next")))},dependencies:[vs,bs,ae,Te,Ge,hae,Tae,Eae,Vae,$ae,ele,lle,ble,xle,Ple,zle,pe],styles:["@media screen and (max-width: 48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2})}return t})(),Kt=(()=>{class t{constructor(e){this.httpClient=e,this.diseqcTypes=[{description:"Switch",type:"switch",inactive:!1},{description:"Rotor",type:"rotor",inactive:!1},{description:"Unicable",type:"scr",inactive:!1},{description:"LNB",type:"lnb",inactive:!1}]}GetCaptureCardList(e,n){let i=(new Ie).set("HostName",e).set("CardType",n);return this.httpClient.get("/Capture/GetCaptureCardList",{params:i})}GetCardTypeList(){return this.httpClient.get("/Capture/GetCardTypeList",{})}UpdateCaptureCard(e,n,i){return this.httpClient.post("/Capture/UpdateCaptureCard",{Cardid:e,Setting:n,Value:i})}DeleteCaptureCard(e){return this.httpClient.post("/Capture/RemoveCardInput",{CardInputId:e})}AddCaptureCard(e){return this.httpClient.post("/Capture/AddCaptureCard",e)}GetCaptureDeviceList(e){let n=(new Ie).set("CardType",e);return this.httpClient.get("/Capture/GetCaptureDeviceList",{params:n})}GetDiseqcTreeList(){return this.httpClient.get("/Capture/GetDiseqcTreeList",{})}AddDiseqcTree(e){return this.httpClient.post("/Capture/AddDiseqcTree",e)}UpdateDiseqcTree(e){return this.httpClient.post("/Capture/UpdateDiseqcTree",e)}DeleteDiseqcTree(e){return this.httpClient.post("/Capture/RemoveDiseqcTree",{DiseqcId:e})}GetDiseqcConfigList(){return this.httpClient.get("/Capture/GetDiseqcConfigList",{})}AddDiseqcConfig(e){return this.httpClient.post("/Capture/AddDiseqcConfig",e)}DeleteDiseqcConfig(e){return console.log(e),this.httpClient.post("/Capture/RemoveDiseqcConfig",{CardId:e})}GetInputGroupList(){return this.httpClient.get("/Capture/GetUserInputGroupList",{})}SetInputMaxRecordings(e,n){return this.httpClient.post("/Capture/SetInputMaxRecordings",{InputId:e,Max:n})}AddUserInputGroup(e){return this.httpClient.post("/Capture/AddUserInputGroup",{Name:e})}LinkInputGroup(e,n){return this.httpClient.post("/Capture/LinkInputGroup",{InputId:e,InputGroupId:n})}UnlinkInputGroup(e,n){return this.httpClient.post("/Capture/UnlinkInputGroup",{InputId:e,InputGroupId:n})}GetRecProfileGroupList(e,n,i){let o=(new Ie).set("GroupId",e).set("ProfileId",n).set("OnlyInUse",i);return this.httpClient.get("/Capture/GetRecProfileGroupList",{params:o})}AddRecProfile(e,n,i,o){return this.httpClient.post("/Capture/AddRecProfile",{GroupId:e,ProfileName:n,VideoCodec:i,AudioCodec:o})}DeleteRecProfile(e){return this.httpClient.post("/Capture/DeleteRecProfile",{ProfileId:e})}UpdateRecProfile(e,n,i){return this.httpClient.post("/Capture/UpdateRecProfile",{ProfileId:e,VideoCodec:n,AudioCodec:i})}UpdateRecProfileParam(e,n,i){return this.httpClient.post("/Capture/UpdateRecProfileParam",{ProfileId:e,Name:n,Value:i})}GetCardSubType(e){let n=(new Ie).set("cardid",e);return this.httpClient.get("/Capture/GetCardSubType",{params:n})}static#e=this.\u0275fac=function(n){return new(n||t)(ie(Ki))};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function hce(t,s){if(1&t){const e=E();l(0,"p-button",14),v("onClick",function(){return C(e),y(p().displayModal=!1)}),f(1,"translate"),c(),l(2,"p-button",15),v("onClick",function(){return C(e),y(p().newCard())}),f(3,"translate"),c()}if(2&t){const e=p();I("label",g(1,3,"common.cancel")),a(2),I("label",g(3,5,"common.ok")),d("disabled",""==e.selectedCardType.CardType)}}function mce(t,s){if(1&t){const e=E();l(0,"p-button",16),v("click",function(){return C(e),y(p().displayDeleteAllonHost=!1)}),f(1,"translate"),c(),l(2,"p-button",17),v("click",function(){return C(e),y(p().deleteAllOnHost())}),f(3,"translate"),c()}2&t&&(I("label",g(1,2,"common.no")),a(2),I("label",g(3,4,"common.yes")))}function fce(t,s){if(1&t){const e=E();l(0,"p-button",16),v("click",function(){return C(e),y(p().displayDeleteAll=!1)}),f(1,"translate"),c(),l(2,"p-button",17),v("click",function(){return C(e),y(p().deleteAllOnAllHosts())}),f(3,"translate"),c()}2&t&&(I("label",g(1,2,"common.no")),a(2),I("label",g(3,4,"common.yes")))}function gce(t,s){1&t&&(l(0,"div",18),D(1,"br")(2,"p-message",19),f(3,"translate"),D(4,"br"),c()),2&t&&(a(2),I("text",g(3,1,"settings.common.successful_delete")))}function _ce(t,s){1&t&&(l(0,"div",18),D(1,"br")(2,"p-message",20),f(3,"translate"),D(4,"br"),c()),2&t&&(a(2),I("text",g(3,1,"common.networkfail")))}function bce(t,s){if(1&t&&(l(0,"div",24)(1,"div",25),_(2),l(3,"b"),_(4),c()()()),2&t){const e=p().index,n=p();a(2),Xr(" ",n.m_CaptureCardsFiltered[e].CardType," ",n.m_CaptureCardsFiltered[e].VideoDevice," (",n.m_CaptureCardsFiltered[e].DisplayName,") "),a(2),x("\xa0",n.dirtyMessages[e],"")}}function vce(t,s){if(1&t){const e=E();l(0,"p-button",16),v("click",function(){C(e);const i=p(2).index;return y(p().displayDeleteThis[i]=!1)}),f(1,"translate"),c(),l(2,"p-button",17),v("click",function(){C(e);const i=p(2).index;return y(p().deleteThis(i))}),f(3,"translate"),c()}2&t&&(I("label",g(1,2,"common.no")),a(2),I("label",g(3,4,"common.yes")))}function Cce(t,s){if(1&t&&D(0,"app-ceton",31),2&t){const e=p(2).index,n=p();d("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function yce(t,s){if(1&t&&D(0,"app-dvb",32),2&t){const e=p(2).index,n=p();d("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)("diseqcTreeList",n.diseqcTreeList)("parent",n)}}function Tce(t,s){if(1&t&&D(0,"app-external",31),2&t){const e=p(2).index,n=p();d("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function wce(t,s){if(1&t&&D(0,"app-hdhomerun",31),2&t){const e=p(2).index,n=p();d("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function Ice(t,s){if(1&t&&D(0,"app-iptv",31),2&t){const e=p(2).index,n=p();d("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function Sce(t,s){if(1&t&&D(0,"app-import",31),2&t){const e=p(2).index,n=p();d("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function xce(t,s){if(1&t&&D(0,"app-demo",31),2&t){const e=p(2).index,n=p();d("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function Dce(t,s){if(1&t&&D(0,"app-v4l2",31),2&t){const e=p(2).index,n=p();d("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function Mce(t,s){if(1&t&&D(0,"app-hdpvr",31),2&t){const e=p(2).index,n=p();d("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function kce(t,s){if(1&t&&D(0,"app-satip",31),2&t){const e=p(2).index,n=p();d("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function Ece(t,s){if(1&t&&D(0,"app-vbox",31),2&t){const e=p(2).index,n=p();d("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function Lce(t,s){if(1&t&&D(0,"app-firewire",31),2&t){const e=p(2).index,n=p();d("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function Rce(t,s){1&t&&(l(0,"div"),D(1,"br"),_(2,"Not Supported "),c())}const zp=function(){return{width:"50vw"}},Oce=function(t,s,e){return{CardType:t,VideoDevice:s,DisplayName:e}};function Ace(t,s){if(1&t){const e=E();l(0,"p-button",26),v("onClick",function(){C(e);const i=p().index;return y(p().displayDeleteThis[i]=!0)}),f(1,"translate"),c(),l(2,"p-dialog",2),v("visibleChange",function(i){C(e);const o=p().index;return y(p().displayDeleteThis[o]=i)}),f(3,"translate"),l(4,"h2"),_(5),f(6,"translate"),c(),l(7,"p"),_(8),f(9,"translate"),c(),m(10,vce,4,6,"ng-template",4),c(),l(11,"div",27),m(12,Cce,1,2,"app-ceton",28),m(13,yce,1,4,"app-dvb",29),m(14,Tce,1,2,"app-external",28),m(15,wce,1,2,"app-hdhomerun",28),m(16,Ice,1,2,"app-iptv",28),m(17,Sce,1,2,"app-import",28),m(18,xce,1,2,"app-demo",28),m(19,Dce,1,2,"app-v4l2",28),m(20,Mce,1,2,"app-hdpvr",28),m(21,kce,1,2,"app-satip",28),m(22,Ece,1,2,"app-vbox",28),m(23,Lce,1,2,"app-firewire",28),m(24,Rce,3,0,"div",30),c()}if(2&t){const e=p().index,n=p();I("label",g(1,24,"settings.capture.delete_this")),d("disabled",!n.m_CaptureCardsFiltered[e].CardId||n.setupService.schedulingEnabled),a(2),j(V(33,zp)),I("header",g(3,26,"settings.capture.delete_this")),d("visible",n.displayDeleteThis[e])("modal",!0)("draggable",!1)("resizable",!1),a(3),S(g(6,28,"settings.common.ru_sure")),a(3),S(mt(9,30,"settings.capture.delete_details",Bt(34,Oce,n.m_CaptureCardsFiltered[e].CardType,n.m_CaptureCardsFiltered[e].VideoDevice,n.m_CaptureCardsFiltered[e].DisplayName))),a(3),d("ngSwitch",n.m_CaptureCardsFiltered[e].CardType),a(1),d("ngSwitchCase","CETON"),a(1),d("ngSwitchCase","DVB"),a(1),d("ngSwitchCase","EXTERNAL"),a(1),d("ngSwitchCase","HDHOMERUN"),a(1),d("ngSwitchCase","FREEBOX"),a(1),d("ngSwitchCase","IMPORT"),a(1),d("ngSwitchCase","DEMO"),a(1),d("ngSwitchCase","V4L2ENC"),a(1),d("ngSwitchCase","HDPVR"),a(1),d("ngSwitchCase","SATIP"),a(1),d("ngSwitchCase","VBOX"),a(1),d("ngSwitchCase","FIREWIRE")}}function Pce(t,s){if(1&t){const e=E();l(0,"p-accordionTab",21),v("selectedChange",function(i){const r=C(e).index;return y(p().activeTab[r]=i)}),m(1,bce,5,4,"ng-template",22),m(2,Ace,25,38,"ng-template",23),c()}if(2&t){const e=s.index,n=p();d("disabled",n.disabledTab[e])("selected",n.activeTab[e])}}const Fce=function(){return{height:"50vh"}},$x=function(t){return{host:t}};let Wx=(()=>{class t{static#e=this.supportedCardTypes=["CETON","DVB","EXTERNAL","HDHOMERUN","FREEBOX","IMPORT","DEMO","V4L2ENC","HDPVR","SATIP","VBOX","FIREWIRE"];constructor(e,n,i,o,r){this.mythService=e,this.router=n,this.captureCardService=i,this.setupService=o,this.translate=r,this.currentTab=-1,this.deletedTab=-1,this.dirtyMessages=[],this.forms=[],this.disabledTab=[],this.activeTab=[],this.displayDeleteThis=[],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.deletedText="settings.common.deleted",this.newText="settings.common.new",this.m_hostName="",this.displayModal=!1,this.selectedCardType={CardType:"",Description:""},this.displayDeleteAllonHost=!1,this.displayDeleteAll=!1,this.successCount=0,this.expectedCount=0,this.errorCount=0,this.deleteAll=!1,this.delObserver={next:u=>{u.bool?(this.successCount++,this.successCount==this.expectedCount&&(this.deleteAll?(this.loadCards(!0),this.deleteAll=!1):this.deletedTab>-1&&(this.dirtyMessages[this.deletedTab]=this.deletedText,this.disabledTab[this.deletedTab]=!0,this.activeTab[this.deletedTab]=!1,this.deletedTab=-1))):(this.errorCount++,this.deletedTab=-1,this.deleteAll=!1)},error:u=>{console.error(u),this.errorCount++,this.deleteAll=!1}},this.setupService.setCurrentForm(null),this.mythService.GetHostName().subscribe(u=>{this.m_hostName=u.String,this.loadCards(!0)}),r.get(this.dirtyText).subscribe(u=>this.dirtyText=u),r.get(this.warningText).subscribe(u=>this.warningText=u),r.get(this.deletedText).subscribe(u=>this.deletedText=u),r.get(this.newText).subscribe(u=>this.newText=u),this.captureCardService.GetCardTypeList().subscribe(u=>{this.cardTypes=u.CardTypeList.CardTypes,this.cardTypes.forEach(h=>{h.Inactive=t.supportedCardTypes.indexOf(h.CardType)<0})})}loadCards(e){this.m_CaptureCardList$=this.captureCardService.GetCaptureCardList("",""),this.m_CaptureCardList$.subscribe(n=>{this.m_CaptureCardList=n,e&&this.filterCards()})}filterCards(){this.m_CaptureCardsFiltered=this.m_CaptureCardList.CaptureCardList.CaptureCards.filter(e=>0==e.ParentId&&e.HostName==this.m_hostName),this.dirtyMessages=[],this.forms=[],this.disabledTab=[],this.activeTab=[],this.displayDeleteThis=[];for(let e=0;e{this.diseqcTreeList=e},error:e=>{console.log("GetDiseqcTreeList",e),this.errorCount++}})}onTabOpen(e){this.successCount+this.errorCount>=this.expectedCount&&(this.errorCount=0,this.successCount=0,this.expectedCount=0),this.showDirty();let n=this.setupService.getCurrentForm();null!=n&&(this.forms[e.index]=n),this.setupService.setCurrentForm(null),this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.currentTab||!this.forms[this.currentTab]||this.disabledTab[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab].dirty?this.dirtyText:this.m_CaptureCardsFiltered[this.currentTab].CardId?"":this.newText)}newCard(){this.displayModal=!1;let e={CardType:this.selectedCardType.CardType,HostName:this.m_hostName,ChannelTimeout:3e3,SignalTimeout:1e3};switch(e.CardType){case"EXTERNAL":e.ChannelTimeout=2e4;break;case"FREEBOX":e.VideoDevice="http://mafreebox.freebox.fr/freeboxtv/playlist.m3u",e.ChannelTimeout=3e4;break;case"SATIP":e.DVBDiSEqCType=1}for(let n=0;n{i.ParentId==n&&(console.log("DeleteThis (parent):",i.CardId),this.expectedCount++,this.captureCardService.DeleteCaptureCard(i.CardId).subscribe(this.delObserver))}),this.m_CaptureCardsFiltered[e].DiSEqCId=0,console.log("DeleteThis:",n),this.expectedCount++,this.captureCardService.DeleteCaptureCard(n).subscribe(this.delObserver)}deleteAllOnHost(){if(!(this.successCount+this.errorCount{e.HostName!=this.m_hostName&&(e.DiSEqCId=0,console.log("DeleteThis (other host):",e.CardId),this.expectedCount++,this.captureCardService.DeleteCaptureCard(e.CardId).subscribe(this.delObserver))}))}confirm(e){return ue(window.confirm(e))}canDeactivate(){let e=this.setupService.getCurrentForm();return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n==this.dirtyText)||e&&e.dirty)||this.confirm(this.warningText)}onWindowClose(e){let n=this.setupService.getCurrentForm();(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(i=>i==this.dirtyText)||n&&n.dirty)&&(e.preventDefault(),e.returnValue=!1)}static#t=this.\u0275fac=function(n){return new(n||t)(M(Wt),M(Nt),M(Kt),M(Re),M(Le))};static#n=this.\u0275cmp=U({type:t,selectors:[["app-capture-cards"]],hostBindings:function(n,i){1&n&&v("beforeunload",function(r){return i.onWindowClose(r)},0,Nn)},decls:42,vars:72,consts:[[1,"m-5"],["icon","pi pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["optionLabel","Description","optionDisabled","Inactive",3,"options","ngModel","listStyle","ngModelChange","onDblClick"],["pTemplate","footer"],["styleClass","p-button-warning","icon","pi pi-trash",3,"label","disabled","click"],["styleClass","p-button-danger","icon","pi pi-trash","iconPos","left",3,"label","disabled","click"],[1,"grid","nogutter"],["class","col-12",4,"ngIf"],[1,"col-12","w-full",3,"onClose","onOpen"],[3,"disabled","selected","selectedChange",4,"ngFor","ngForOf"],[1,"flex","justify-content-end"],["icon","pi pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"],["icon","pi pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],["icon","pi pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi pi-check-circle","styleClass","p-button-plain",3,"label","click"],[1,"col-12"],["severity","success",3,"text"],["severity","error",3,"text"],[3,"disabled","selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],[1,"grid","w-full"],[1,"col-11","pr-1"],["styleClass","p-button-warning","icon","pi pi-trash",3,"label","disabled","onClick"],[3,"ngSwitch"],[3,"card","cardList",4,"ngSwitchCase"],[3,"card","cardList","diseqcTreeList","parent",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"card","cardList"],[3,"card","cardList","diseqcTreeList","parent"]],template:function(n,i){1&n&&(l(0,"p-card",0)(1,"h2"),_(2),f(3,"translate"),c(),l(4,"p-button",1),v("onClick",function(){return i.displayModal=!0}),f(5,"translate"),c(),l(6,"p-dialog",2),v("visibleChange",function(r){return i.displayModal=r}),f(7,"translate"),l(8,"p"),_(9),f(10,"translate"),c(),l(11,"p-listbox",3),v("ngModelChange",function(r){return i.selectedCardType=r})("onDblClick",function(){return i.newCard()}),c(),m(12,hce,4,7,"ng-template",4),c(),_(13," \xa0 "),l(14,"p-button",5),v("click",function(){return i.displayDeleteAllonHost=!0}),f(15,"translate"),c(),l(16,"p-dialog",2),v("visibleChange",function(r){return i.displayDeleteAllonHost=r}),f(17,"translate"),l(18,"h2"),_(19),f(20,"translate"),c(),m(21,mce,4,6,"ng-template",4),c(),_(22," \xa0 "),l(23,"p-button",6),v("click",function(){return i.displayDeleteAll=!0}),f(24,"translate"),c(),l(25,"p-dialog",2),v("visibleChange",function(r){return i.displayDeleteAll=r}),f(26,"translate"),l(27,"h2"),_(28),f(29,"translate"),c(),m(30,fce,4,6,"ng-template",4),c(),D(31,"br"),l(32,"div",7),m(33,gce,5,3,"div",8),m(34,_ce,5,3,"div",8),c(),l(35,"p-accordion",9),v("onClose",function(r){return i.onTabClose(r)})("onOpen",function(r){return i.onTabOpen(r)}),m(36,Pce,3,2,"p-accordionTab",10),c(),l(37,"div",11)(38,"p-button",12),v("onClick",function(){return i.router.navigate(["setupwizard/general"])}),f(39,"translate"),c(),l(40,"p-button",13),v("onClick",function(){return i.router.navigate(["setupwizard/recording-profiles"])}),f(41,"translate"),c()()()),2&n&&(a(2),S(g(3,38,"settings.capture.title")),a(2),I("label",g(5,40,"settings.capture.new_capture_card")),a(2),j(V(64,zp)),I("header",g(7,42,"settings.capture.new_capture_card")),d("visible",i.displayModal)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(g(10,44,"settings.capture.select_type")),a(2),d("options",i.cardTypes)("ngModel",i.selectedCardType)("listStyle",V(65,Fce)),a(3),I("label",mt(15,46,"settings.capture.delete_on_host",W(66,$x,i.m_hostName))),d("disabled",i.setupService.schedulingEnabled),a(2),j(V(68,zp)),I("header",mt(17,49,"settings.capture.delete_on_host",W(69,$x,i.m_hostName))),d("visible",i.displayDeleteAllonHost)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(g(20,52,"settings.common.ru_sure")),a(4),I("label",g(24,54,"settings.capture.delete_all")),d("disabled",i.setupService.schedulingEnabled),a(2),j(V(71,zp)),I("header",g(26,56,"settings.capture.delete_all_all")),d("visible",i.displayDeleteAll)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(g(29,58,"settings.common.ru_sure")),a(5),d("ngIf",i.expectedCount&&i.successCount==i.expectedCount),a(1),d("ngIf",i.errorCount>0),a(2),d("ngForOf",i.m_CaptureCardsFiltered),a(2),I("label",g(39,60,"common.back")),a(2),I("label",g(41,62,"common.next")))},styles:["@media screen and (max-width: 48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2})}return t})();function Nce(t,s){if(1&t&&(l(0,"div",10)(1,"div",11),_(2),l(3,"b"),_(4),c()()()),2&t){const e=p(2),n=e.$implicit,i=e.index,o=p();a(2),x(" ",n.Name," "),a(2),x("\xa0",o.dirtyMessages[i],"")}}function Vce(t,s){1&t&&m(0,Nce,5,2,"div",9),2&t&&d("ngIf",p(2).readyCount>0)}function Bce(t,s){if(1&t&&D(0,"app-profile-group",12),2&t){const e=p().$implicit,n=p();d("group",e)("parentComponent",n)}}function Hce(t,s){if(1&t){const e=E();l(0,"p-accordionTab",6),v("selectedChange",function(i){const r=C(e).index;return y(p().activeTab[r]=i)}),m(1,Vce,1,1,"ng-template",7),m(2,Bce,1,2,"ng-template",8),c()}if(2&t){const e=s.index;d("selected",p().activeTab[e])}}let Kx=(()=>{class t{constructor(e,n,i,o){this.captureCardService=e,this.router=n,this.translate=i,this.setupService=o,this.currentTab=-1,this.deletedTab=-1,this.dirtyMessages=[],this.activeTab=[],this.readyCount=0,this.profileGroups=[],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.groups=[],this.setupService.setCurrentForm(null),this.loadGroups(),i.get(this.dirtyText).subscribe(r=>this.dirtyText=r),i.get(this.warningText).subscribe(r=>this.warningText=r)}loadGroups(){this.captureCardService.GetRecProfileGroupList(0,0,!0).subscribe(n=>{this.groups=n.RecProfileGroupList.RecProfileGroups,this.readyCount++})}ngOnInit(){}onTabOpen(e){this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.currentTab||!this.profileGroups[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.profileGroups[this.currentTab].allClean()?"":this.dirtyText)}confirm(e){return ue(window.confirm(e))}canDeactivate(){let e=!0;return this.profileGroups.forEach(n=>{n.allClean()||(e=!1)}),!!e||this.confirm(this.warningText)}onWindowClose(e){let n=!0;this.profileGroups.forEach(i=>{i.allClean()||(n=!1)}),n||(e.preventDefault(),e.returnValue=!1)}static#e=this.\u0275fac=function(n){return new(n||t)(M(Kt),M(Nt),M(Le),M(Re))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-recording-profiles"]],hostBindings:function(n,i){1&n&&v("beforeunload",function(r){return i.onWindowClose(r)},0,Nn)},decls:11,vars:10,consts:[[1,"md:m-5"],[1,"col-12","w-full",3,"onOpen","onClose"],[3,"selected","selectedChange",4,"ngFor","ngForOf"],[1,"flex","justify-content-end"],["icon","pi pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"],[3,"selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],["class","grid w-full",4,"ngIf"],[1,"grid","w-full"],[1,"col-9","pr-1"],[3,"group","parentComponent"]],template:function(n,i){1&n&&(l(0,"p-card",0)(1,"h2"),_(2),f(3,"translate"),c(),l(4,"p-accordion",1),v("onOpen",function(r){return i.onTabOpen(r)})("onClose",function(r){return i.onTabClose(r)}),m(5,Hce,3,1,"p-accordionTab",2),c(),l(6,"div",3)(7,"p-button",4),v("onClick",function(){return i.router.navigate(["setupwizard/capture-cards"])}),f(8,"translate"),c(),l(9,"p-button",5),v("onClick",function(){return i.router.navigate(["setupwizard/video-sources"])}),f(10,"translate"),c()()()),2&n&&(a(2),S(g(3,4,"settings.rprofiles.title")),a(3),d("ngForOf",i.groups),a(2),I("label",g(8,6,"common.back")),a(2),I("label",g(10,8,"common.next")))},styles:["@media screen and (max-width: 48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2})}return t})(),Co=(()=>{class t{constructor(e){this.httpClient=e}AddDBChannel(e){return this.httpClient.post("/Channel/AddDBChannel",e)}UpdateDBChannel(e){return this.httpClient.post("/Channel/UpdateDBChannel",e)}AddVideoSource(e){return this.httpClient.post("/Channel/AddVideoSource",e)}FetchChannelsFromSource(e){let n=(new Ie).set("SourceId",e.SourceId).set("CardId",e.CardId).set("WaitForFinish",e.WaitForFinish);return this.httpClient.get("/Channel/FetchChannelsFromSource",{params:n})}GetChannelInfo(e){let n=(new Ie).set("ChanID",e);return this.httpClient.get("/Channel/GetChannelInfo",{params:n})}GetChannelInfoList(e){let n=new Ie;return void 0!==e.SourceID&&(n=n.set("SourceID",e.SourceID)),void 0!==e.ChannelGroupID&&(n=n.set("ChannelGroupID",e.ChannelGroupID)),void 0!==e.StartIndex&&(n=n.set("StartIndex",e.StartIndex)),void 0!==e.Count&&(n=n.set("Count",e.Count)),void 0!==e.OnlyVisible&&(n=n.set("OnlyVisible",e.OnlyVisible)),void 0!==e.Details&&(n=n.set("Details",e.Details)),void 0!==e.OrderByName&&(n=n.set("OrderByName",e.OrderByName)),void 0!==e.GroupByCallsign&&(n=n.set("GroupByCallsign",e.GroupByCallsign)),void 0!==e.OnlyTunable&&(n=n.set("OnlyTunable",e.OnlyTunable)),this.httpClient.get("/Channel/GetChannelInfoList",{params:n})}GetDDLineupList(e){let n=(new Ie).set("Source",e.Source).set("UserId",e.UserId).set("Password",e.Password);return this.httpClient.get("/Channel/GetDDLineupList",{params:n})}GetVideoMultiplex(e){let n=(new Ie).set("MplexID",e);return this.httpClient.get("/Channel/GetVideoMultiplex",{params:n})}GetVideoMultiplexList(e){let n=(new Ie).set("SourceID",e.SourceID);return e.StartIndex&&(n=n.set("StartIndex",e.StartIndex)),e.Count&&(n=n.set("Count",e.Count)),this.httpClient.get("/Channel/GetVideoMultiplexList",{params:n})}GetVideoSource(e){let n=(new Ie).set("SourceID",e);return this.httpClient.get("/Channel/GetVideoSource",{params:n})}GetVideoSourceList(){return this.httpClient.get("/Channel/GetVideoSourceList")}GetXMLTVIdList(e){let n=(new Ie).set("SourceID",e);return this.httpClient.get("/Channel/GetXMLTVIdList",{params:n})}GetAvailableChanid(){return this.httpClient.get("/Channel/GetAvailableChanid",{})}RemoveDBChannel(e){return this.httpClient.post("/Channel/RemoveDBChannel",{ChannelID:e})}RemoveVideoSource(e){return this.httpClient.post("/Channel/RemoveVideoSource",{SourceId:e})}UpdateVideoSource(e){return this.httpClient.post("/Channel/UpdateVideoSource",e)}GetGrabberList(){return this.httpClient.get("/Channel/GetGrabberList")}GetFreqTableList(){return this.httpClient.get("/Channel/GetFreqTableList")}GetCommMethodList(){return this.httpClient.get("/Channel/GetCommMethodList")}StartScan(e){return this.httpClient.post("/Channel/StartScan",e)}GetScanStatus(){return this.httpClient.get("/Channel/GetScanStatus")}StopScan(e){return this.httpClient.post("/Channel/StopScan",{Cardid:e})}GetScanList(e){let n=(new Ie).set("SourceID",e);return this.httpClient.get("/Channel/GetScanList",{params:n})}SendScanDialogResponse(e){return this.httpClient.post("/Channel/SendScanDialogResponse",e)}GetRestoreData(e,n,i,o){let r=(new Ie).set("SourceId",e).set("XmltvId",n).set("Icon",i).set("Visible",o);return this.httpClient.get("/Channel/GetRestoreData",{params:r})}SaveRestoreData(e){return this.httpClient.post("/Channel/SaveRestoreData",{SourceId:e})}CopyIconToBackend(e,n){return this.httpClient.post("/Channel/CopyIconToBackend",{ChanId:e,Url:n})}static#e=this.\u0275fac=function(n){return new(n||t)(ie(Ki))};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Gce=["vsourceform"],qce=["top"];function zce(t,s){1&t&&(_(0),f(1,"translate")),2&t&&x(" ",g(1,1,"settings.vsource.item_title")," ")}function Uce(t,s){}function jce(t,s){if(1&t&&(l(0,"div")(1,"small",34),_(2),c()()),2&t){const e=p(2);a(2),x(" ",e.work.errorMessage," ")}}const Qx=function(){return{minWidth:"80%"}};function $ce(t,s){if(1&t){const e=E();l(0,"p-dropdown",35,36),v("ngModelChange",function(i){return C(e),y(p(2).videoSource.Grabber=i)})("onChange",function(){return C(e),y(p(2).checkName())}),c()}if(2&t){const e=p(2);j(V(5,Qx)),d("options",e.grabberList.GrabberList.Grabbers)("ngModel",e.videoSource.Grabber)("editable",!1)}}function Wce(t,s){if(1&t){const e=E();l(0,"div",10)(1,"label",37),_(2),f(3,"translate"),c(),l(4,"p"),_(5),f(6,"translate"),l(7,"a",38),_(8,"XMLTV"),c()(),l(9,"table")(10,"tr")(11,"td",39),_(12),c(),l(13,"td",40)(14,"button",41),v("click",function(){return C(e),y(p(2).copyConfigure())}),f(15,"translate"),c()()()()()}if(2&t){const e=p(2);a(2),x(" ",g(3,4,"settings.vsource.grabberconfig_label")," "),a(3),x(" ",g(6,6,"settings.vsource.grabberconfig_desc")," "),a(7),x(" ",e.configCommand," "),a(2),I("pTooltip",g(15,8,"settings.common.clipboard_tooltip"))}}function Kce(t,s){if(1&t){const e=E();l(0,"p-dropdown",42,43),v("ngModelChange",function(i){return C(e),y(p(2).videoSource.FreqTable=i)}),c()}if(2&t){const e=p(2);j(V(5,Qx)),d("options",e.freqTableList.FreqTableList)("ngModel",e.videoSource.FreqTable)("editable",!1)}}function Qce(t,s){if(1&t){const e=E();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),_(4),f(5,"translate"),c(),l(6,"input",12,13),v("ngModelChange",function(i){return C(e),y(p().videoSource.SourceName=i)})("change",function(){return C(e),y(p().checkName())}),c(),m(8,jce,3,1,"div",14),l(9,"small",15),_(10),f(11,"translate"),c()(),l(12,"div",10)(13,"label",16),_(14),f(15,"translate"),c(),m(16,$ce,2,6,"p-dropdown",17),l(17,"small",15),_(18),f(19,"translate"),c()(),m(20,Wce,16,10,"div",18),l(21,"div",10)(22,"p-checkbox",19,20),v("ngModelChange",function(i){return C(e),y(p().videoSource.UseEIT=i)}),f(24,"translate"),c(),l(25,"small",15),_(26),f(27,"translate"),c()(),l(28,"div",10)(29,"label",21),_(30),f(31,"translate"),c(),m(32,Kce,2,6,"p-dropdown",22),l(33,"small",15),_(34),f(35,"translate"),c()(),l(36,"div",10)(37,"label",23),_(38),f(39,"translate"),c(),l(40,"p-inputNumber",24),v("ngModelChange",function(i){return C(e),y(p().videoSource.ScanFrequency=i)}),c(),l(41,"small",15),_(42),f(43,"translate"),c()(),l(44,"div",10)(45,"label",25),_(46),f(47,"translate"),c(),l(48,"p-inputNumber",26),v("ngModelChange",function(i){return C(e),y(p().videoSource.NITId=i)}),c(),l(49,"small",15),_(50),f(51,"translate"),c()(),l(52,"div",10)(53,"label",27),_(54),f(55,"translate"),c(),l(56,"p-inputNumber",28),v("ngModelChange",function(i){return C(e),y(p().videoSource.BouquetId=i)}),c(),l(57,"small",15),_(58),f(59,"translate"),l(60,"a",29),_(61,"DVB UK"),c()()(),l(62,"div",10)(63,"label",30),_(64),f(65,"translate"),c(),l(66,"p-inputNumber",31),v("ngModelChange",function(i){return C(e),y(p().videoSource.RegionId=i)}),c(),l(67,"small",15),_(68),f(69,"translate"),l(70,"a",29),_(71,"DVB UK"),c()()(),l(72,"div",10)(73,"label",32),_(74),f(75,"translate"),c(),l(76,"p-inputNumber",33),v("ngModelChange",function(i){return C(e),y(p().videoSource.LCNOffset=i)}),c(),l(77,"small",15),_(78),f(79,"translate"),c()()()()}if(2&t){const e=p();a(4),S(g(5,54,"settings.vsource.source_label")),a(2),d("ngModel",e.videoSource.SourceName)("disabled",e.videoSource.Id>0)("maxlength",50),a(2),d("ngIf",e.work.errorMessage),a(2),x(" ",g(11,56,"settings.vsource.source_desc")," "),a(4),x(" ",g(15,58,"settings.vsource.grabber_label")," "),a(2),d("ngIf",e.grabberList.GrabberList.Grabbers.length>0),a(2),x(" ",g(19,60,"settings.vsource.grabber_desc")," "),a(2),d("ngIf",e.configCommand.length>0),a(2),I("label",g(24,62,"settings.vsource.eit_label")),d("ngModel",e.videoSource.UseEIT)("binary",!0),a(4),x(" ",g(27,64,"settings.vsource.eit_desc")," "),a(4),x(" ",g(31,66,"settings.vsource.freqtable_label")," "),a(2),d("ngIf",e.freqTableList.FreqTableList.length>0),a(2),x(" ",g(35,68,"settings.vsource.freqtable_desc")," "),a(4),x(" ",g(39,70,"settings.vsource.scanfreq_label")," "),a(2),d("ngModel",e.videoSource.ScanFrequency)("min",0)("max",999999999),a(2),x(" ",g(43,72,"settings.vsource.scanfreq_desc")," "),a(4),x(" ",g(47,74,"settings.vsource.netid_label")," "),a(2),d("ngModel",e.videoSource.NITId)("showButtons",!0)("min",-1)("max",65535)("step",1)("useGrouping",!1),a(2),x(" ",g(51,76,"settings.vsource.netid_desc")," "),a(4),x(" ",g(55,78,"settings.vsource.bouquet_label")," "),a(2),d("ngModel",e.videoSource.BouquetId)("showButtons",!0)("min",0)("max",65535)("step",1)("useGrouping",!1),a(2),x(" ",g(59,80,"settings.vsource.bouquet_desc")," "),a(6),x(" ",g(65,82,"settings.vsource.region_label")," "),a(2),d("ngModel",e.videoSource.RegionId)("showButtons",!0)("min",0)("max",100)("step",1)("useGrouping",!1),a(2),x(" ",g(69,84,"settings.vsource.region_desc")," "),a(6),x(" ",g(75,86,"settings.vsource.lcnoffset_label")," "),a(2),d("ngModel",e.videoSource.LCNOffset)("showButtons",!0)("min",0)("max",2e4)("step",100)("useGrouping",!1),a(2),x(" ",g(79,88,"settings.vsource.lcnoffset_desc")," ")}}function Jce(t,s){1&t&&(D(0,"p-message",49),f(1,"translate")),2&t&&I("text",g(1,1,"common.savesuccess"))}function Zce(t,s){1&t&&(D(0,"p-message",50),f(1,"translate")),2&t&&I("text",g(1,1,"common.networkfail"))}function Yce(t,s){if(1&t){const e=E();l(0,"div",44)(1,"div",45),m(2,Jce,2,3,"p-message",46),m(3,Zce,2,3,"p-message",47),c(),l(4,"p-button",48),v("onClick",function(){C(e);const i=p(),o=B(1);return i.saveForm(),y(o.form.markAsPristine())}),f(5,"translate"),c()()}if(2&t){const e=p(),n=B(1);a(2),d("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),d("ngIf",e.work.errorCount>0),a(1),I("label",g(5,4,"common.save")),d("disabled",!n.dirty||!e.videoSource.SourceName||e.work.validateError||e.setupService.schedulingEnabled)}}let Xce=(()=>{class t{constructor(e,n,i,o,r){this.channelService=e,this.translate=n,this.setupService=i,this.clipboard=o,this.mythService=r,this.grabberList={GrabberList:{Grabbers:[]}},this.freqTableList={FreqTableList:[]},this.work={successCount:0,errorCount:0,errorMessage:"",validateError:!1},this.messages={nameInUse:"settings.vsource.nameInUse",nameRequired:"settings.vsource.nameRequired"},this.configCommand="",this.saveObserver={next:u=>{u.bool?this.work.successCount++:!this.videoSource.Id&&u.int?(this.work.successCount++,this.videoSource.Id||(this.videoSource.Id=u.int)):(console.log("saveObserver error",u),this.work.errorCount++,this.currentForm.form.markAsDirty())},error:u=>{console.log("saveObserver error",u),this.work.errorCount++,this.currentForm.form.markAsDirty()}},n.get(this.messages.nameInUse).subscribe(u=>this.messages.nameInUse=u),n.get(this.messages.nameRequired).subscribe(u=>this.messages.nameRequired=u)}ngOnInit(){this.channelService.GetGrabberList().subscribe(e=>{this.grabberList=e}),this.channelService.GetFreqTableList().subscribe(e=>{this.freqTableList=e}),this.mythService.GetBackendInfo().subscribe(e=>{this.backendInfo=e,this.setupConf()})}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}copyConfigure(){this.clipboard.copy(this.configCommand)}checkName(){this.work.errorMessage="",this.work.validateError=!1,this.videoSource.SourceName=this.videoSource.SourceName.trim(),this.videoSourceList.VideoSourceList.VideoSources.find(n=>n.SourceName==this.videoSource.SourceName&&n.Id!=this.videoSource.Id)&&(this.work.errorMessage=this.messages.nameInUse,this.work.validateError=!0),""==this.videoSource.SourceName&&(this.work.errorMessage=this.messages.nameRequired,this.work.validateError=!0),this.setupConf()}setupConf(){if("eitonly"==this.videoSource.Grabber||"/bin/true"==this.videoSource.Grabber||""==this.videoSource.Grabber||""==this.videoSource.SourceName||this.work.validateError)this.configCommand="";else{let e=this.backendInfo.BackendInfo.Env.MYTHCONFDIR;e||(e=this.backendInfo.BackendInfo.Env.HOME+"/.mythtv"),this.configCommand="sudo -u "+this.backendInfo.BackendInfo.Env.USER+" "+this.videoSource.Grabber+' --configure --config-file "'+e+"/"+this.videoSource.SourceName+'.xmltv"'}}saveForm(){if(this.work.successCount=0,this.work.errorCount=0,this.videoSource.Id){let e=this.videoSource;e.SourceID=this.videoSource.Id,this.channelService.UpdateVideoSource(e).subscribe(this.saveObserver)}else this.channelService.AddVideoSource(this.videoSource).subscribe(this.saveObserver)}static#e=this.\u0275fac=function(n){return new(n||t)(M(Co),M(Le),M(Re),M(qx),M(Wt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-vsource"]],viewQuery:function(n,i){if(1&n&&(K(Gce,5),K(qce,5)),2&n){let o;H(o=G())&&(i.currentForm=o.first),H(o=G())&&(i.topElement=o.first)}},inputs:{videoSource:"videoSource",videoSourceList:"videoSourceList"},decls:9,vars:0,consts:[["name","vsourceform",1,"ml-3","mr-3"],["vsourceform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","SourceName",1,"label","block"],["pInputText","","id","SourceName","name","SourceName",1,"mb-2","form-control","w-full",3,"ngModel","disabled","maxlength","ngModelChange","change"],["SourceName","ngModel"],[4,"ngIf"],[1,"block"],["for","Grabber",1,"label","block"],["optionLabel","DisplayName","optionValue","Program","name","Grabber",3,"options","ngModel","editable","style","ngModelChange","onChange",4,"ngIf"],["class","form-group field",4,"ngIf"],["inputId","UseEIT","name","UseEIT",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["UseEIT","ngModel"],["for","FreqTable",1,"label","block"],["name","FreqTable",3,"options","ngModel","editable","style","ngModelChange",4,"ngIf"],["for","ScanFrequency",1,"label","block"],["name","ScanFrequency","id","ScanFrequency",3,"ngModel","min","max","ngModelChange"],["for","NITId",1,"label","block"],["name","NITId","id","NITId",3,"ngModel","showButtons","min","max","step","useGrouping","ngModelChange"],["for","BouquetId",1,"label","block"],["name","BouquetId","id","BouquetId",3,"ngModel","showButtons","min","max","step","useGrouping","ngModelChange"],["href","https://www.mythtv.org/wiki/DVB_UK","target","_blank"],["for","RegionId",1,"label","block"],["name","RegionId","id","RegionId",3,"ngModel","showButtons","min","max","step","useGrouping","ngModelChange"],["for","LCNOffset",1,"label","block"],["name","LCNOffset","id","LCNOffset",3,"ngModel","showButtons","min","max","step","useGrouping","ngModelChange"],[1,"p-error","block"],["optionLabel","DisplayName","optionValue","Program","name","Grabber",3,"options","ngModel","editable","ngModelChange","onChange"],["Grabber","ngModel"],["for","configure",1,"label","block"],["href","http://www.mythtv.org/wiki/XMLTV","target","_blank"],[1,"align-items-center","bg-blue-100","text-gray-900",2,"font-family","monospace"],[1,"align-items-center"],["pButton","","pRipple","","type","button","icon","pi pi-copy",1,"p-button-rounded","p-button-text",3,"pTooltip","click"],["name","FreqTable",3,"options","ngModel","editable","ngModelChange"],["FreqTable","ngModel"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(n,i){1&n&&(l(0,"form",0,1),D(2,"span",null,2),l(4,"p-card",3),m(5,zce,2,3,"ng-template",4),m(6,Uce,0,0,"ng-template",5),m(7,Qce,80,90,"ng-template",6),m(8,Yce,6,6,"ng-template",7),c()())},dependencies:[ne,We,Xe,xe,$e,In,Ce,He,$t,ae,Sn,Te,Ge,ln,Gt,vt,qe,bt,pe],styles:["a[_ngcontent-%COMP%]:link, a[_ngcontent-%COMP%]:visited, a[_ngcontent-%COMP%]:active{background-color:#fff}"]})}return t})();function eue(t,s){if(1&t){const e=E();l(0,"p-button",12),v("click",function(){return C(e),y(p().displayDeleteAll=!1)}),f(1,"translate"),c(),l(2,"p-button",13),v("click",function(){return C(e),y(p().deleteAllSources())}),f(3,"translate"),c()}2&t&&(I("label",g(1,2,"common.no")),a(2),I("label",g(3,4,"common.yes")))}function tue(t,s){1&t&&(l(0,"div",14),D(1,"br")(2,"p-message",15),f(3,"translate"),D(4,"br"),c()),2&t&&(a(2),I("text",g(3,1,"settings.common.successful_delete")))}function nue(t,s){1&t&&(l(0,"div",14),D(1,"br")(2,"p-message",16),f(3,"translate"),D(4,"br"),c()),2&t&&(a(2),I("text",g(3,1,"common.networkfail")))}function iue(t,s){if(1&t&&(l(0,"div",20)(1,"div",21),_(2),l(3,"b"),_(4),c()()()),2&t){const e=p().index,n=p();a(2),Ke(" ",n.videoSourceList.VideoSourceList.VideoSources[e].SourceName," (",n.videoSourceList.VideoSourceList.VideoSources[e].Grabber,") "),a(2),x("\xa0",n.dirtyMessages[e],"")}}function sue(t,s){if(1&t){const e=E();l(0,"p-button",12),v("click",function(){C(e);const i=p(2).index;return y(p().displayDeleteThis[i]=!1)}),f(1,"translate"),c(),l(2,"p-button",13),v("click",function(){C(e);const i=p(2).index;return y(p().deleteThis(i))}),f(3,"translate"),c()}2&t&&(I("label",g(1,2,"common.no")),a(2),I("label",g(3,4,"common.yes")))}const Jx=function(){return{width:"50vw"}},oue=function(t,s){return{Grabber:t,DisplayName:s}};function rue(t,s){if(1&t){const e=E();l(0,"p-button",22),v("onClick",function(){C(e);const i=p().index;return y(p().displayDeleteThis[i]=!0)}),f(1,"translate"),c(),l(2,"p-dialog",3),v("visibleChange",function(i){C(e);const o=p().index;return y(p().displayDeleteThis[o]=i)}),f(3,"translate"),l(4,"h2"),_(5),f(6,"translate"),c(),l(7,"p"),_(8),f(9,"translate"),c(),m(10,sue,4,6,"ng-template",4),c(),D(11,"app-vsource",23)}if(2&t){const e=p().index,n=p();I("label",g(1,13,"settings.vsource.delete_this")),d("disabled",!n.videoSourceList.VideoSourceList.VideoSources[e].Id||n.setupService.schedulingEnabled),a(2),j(V(22,Jx)),I("header",g(3,15,"settings.vsource.delete_this")),d("visible",n.displayDeleteThis[e])("modal",!0)("draggable",!1)("resizable",!1),a(3),S(g(6,17,"settings.common.ru_sure")),a(3),S(mt(9,19,"settings.vsource.delete_details",Se(23,oue,n.videoSourceList.VideoSourceList.VideoSources[e].Grabber,n.videoSourceList.VideoSourceList.VideoSources[e].SourceName))),a(3),d("videoSource",n.videoSourceList.VideoSourceList.VideoSources[e])("videoSourceList",n.videoSourceList)}}function aue(t,s){if(1&t){const e=E();l(0,"p-accordionTab",17),v("selectedChange",function(i){const r=C(e).index;return y(p().activeTab[r]=i)}),m(1,iue,5,3,"ng-template",18),m(2,rue,12,26,"ng-template",19),c()}if(2&t){const e=s.index,n=p();d("disabled",n.disabledTab[e])("selected",n.activeTab[e])}}let lue=(()=>{class t{constructor(e,n,i,o){this.setupService=e,this.translate=n,this.channelService=i,this.router=o,this.currentTab=-1,this.deletedTab=-1,this.dirtyMessages=[],this.forms=[],this.disabledTab=[],this.activeTab=[],this.displayDeleteThis=[],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.deletedText="settings.common.deleted",this.newText="settings.common.new",this.successCount=0,this.expectedCount=0,this.errorCount=0,this.displayDeleteAll=!1,this.deleteAll=!1,this.videoSourceList={VideoSourceList:{VideoSources:[],AsOf:"",Version:"",ProtoVer:""}},this.delObserver={next:r=>{r.bool?(this.successCount++,this.successCount==this.expectedCount&&(this.deleteAll?(this.loadSources(),this.deleteAll=!1):this.deletedTab>-1&&(this.dirtyMessages[this.deletedTab]=this.deletedText,this.disabledTab[this.deletedTab]=!0,this.activeTab[this.deletedTab]=!1,this.deletedTab=-1))):(this.errorCount++,this.deletedTab=-1,this.deleteAll=!1)},error:r=>{console.error(r),this.errorCount++,this.deleteAll=!1}},this.setupService.setCurrentForm(null),this.loadSources(),n.get(this.dirtyText).subscribe(r=>this.dirtyText=r),n.get(this.warningText).subscribe(r=>this.warningText=r),n.get(this.deletedText).subscribe(r=>this.deletedText=r),n.get(this.newText).subscribe(r=>this.newText=r)}loadSources(){this.channelService.GetVideoSourceList().subscribe(e=>{this.videoSourceList=e,this.dirtyMessages=[],this.forms=[],this.disabledTab=[],this.activeTab=[],this.displayDeleteThis=[];for(let n=0;n=this.expectedCount&&(this.errorCount=0,this.successCount=0,this.expectedCount=0),this.showDirty();let n=this.setupService.getCurrentForm();null!=n&&(this.forms[e.index]=n),this.setupService.setCurrentForm(null),this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.currentTab||!this.forms[this.currentTab]||this.disabledTab[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab].dirty?this.dirtyText:this.videoSourceList.VideoSourceList.VideoSources[this.currentTab].Id?"":this.newText)}newSource(){for(let n=0;nn==this.dirtyText)||e&&e.dirty)||this.confirm(this.warningText)}onWindowClose(e){let n=this.setupService.getCurrentForm();(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(i=>i==this.dirtyText)||n&&n.dirty)&&(e.preventDefault(),e.returnValue=!1)}static#e=this.\u0275fac=function(n){return new(n||t)(M(Re),M(Le),M(Co),M(Nt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-video-sources"]],hostBindings:function(n,i){1&n&&v("beforeunload",function(r){return i.onWindowClose(r)},0,Nn)},decls:26,vars:32,consts:[[1,"m-5"],["icon","pi pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],["styleClass","p-button-danger","icon","pi pi-trash","iconPos","left",3,"label","disabled","click"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["pTemplate","footer"],[1,"grid","nogutter"],["class","col-12",4,"ngIf"],[1,"col-12","w-full",3,"onClose","onOpen"],[3,"disabled","selected","selectedChange",4,"ngFor","ngForOf"],[1,"flex","justify-content-end"],["icon","pi pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"],["icon","pi pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi pi-check-circle","styleClass","p-button-plain",3,"label","click"],[1,"col-12"],["severity","success",3,"text"],["severity","error",3,"text"],[3,"disabled","selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],[1,"grid","w-full"],[1,"col-9","pr-1"],["styleClass","p-button-warning","icon","pi pi-trash",3,"label","disabled","onClick"],[3,"videoSource","videoSourceList"]],template:function(n,i){1&n&&(l(0,"p-card",0)(1,"h2"),_(2),f(3,"translate"),c(),l(4,"p-button",1),v("onClick",function(){return i.newSource()}),f(5,"translate"),c(),_(6," \xa0 "),l(7,"p-button",2),v("click",function(){return i.displayDeleteAll=!0}),f(8,"translate"),c(),l(9,"p-dialog",3),v("visibleChange",function(r){return i.displayDeleteAll=r}),f(10,"translate"),l(11,"h2"),_(12),f(13,"translate"),c(),m(14,eue,4,6,"ng-template",4),c(),D(15,"br"),l(16,"div",5),m(17,tue,5,3,"div",6),m(18,nue,5,3,"div",6),c(),l(19,"p-accordion",7),v("onClose",function(r){return i.onTabClose(r)})("onOpen",function(r){return i.onTabOpen(r)}),m(20,aue,3,2,"p-accordionTab",8),c(),l(21,"div",9)(22,"p-button",10),v("onClick",function(){return i.router.navigate(["setupwizard/recording-profiles"])}),f(23,"translate"),c(),l(24,"p-button",11),v("onClick",function(){return i.router.navigate(["setupwizard/input-connections"])}),f(25,"translate"),c()()()),2&n&&(a(2),S(g(3,17,"settings.vsource.title")),a(2),I("label",g(5,19,"settings.vsource.new_video_source")),a(3),I("label",g(8,21,"settings.vsource.delete_all")),d("disabled",i.setupService.schedulingEnabled),a(2),j(V(31,Jx)),I("header",g(10,23,"settings.vsource.delete_all")),d("visible",i.displayDeleteAll)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(g(13,25,"settings.common.ru_sure")),a(5),d("ngIf",i.expectedCount&&i.successCount==i.expectedCount),a(1),d("ngIf",i.errorCount>0),a(2),d("ngForOf",i.videoSourceList.VideoSourceList.VideoSources),a(2),I("label",g(23,27,"common.back")),a(2),I("label",g(25,29,"common.next")))},dependencies:[ut,ne,vs,bs,ae,Te,Ge,pn,qe,Xce,pe],styles:["@media screen and (max-width: 48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2})}return t})();function cue(t,s){if(1&t&&(l(0,"div",10)(1,"div",11),_(2),l(3,"b"),_(4),c()()()),2&t){const e=p(2),n=e.$implicit,i=e.index,o=p();a(2),td(" ",n.CardType," ",n.VideoDevice," (",n.DisplayName,") => ",o.videoSourceLookup[n.SourceId].SourceName," "),a(2),x("\xa0",o.dirtyMessages[i],"")}}function uue(t,s){1&t&&m(0,cue,5,5,"div",9),2&t&&d("ngIf",p(2).readyCount>1)}function due(t,s){if(1&t&&D(0,"app-iconnection",12),2&t){const e=p().index,n=p();d("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)("videoSourceLookup",n.videoSourceLookup)("videoSourceList",n.videoSourceList)("parentComponent",n)}}function pue(t,s){if(1&t){const e=E();l(0,"p-accordionTab",6),v("selectedChange",function(i){const r=C(e).index;return y(p().activeTab[r]=i)}),m(1,uue,1,1,"ng-template",7),m(2,due,1,5,"ng-template",8),c()}if(2&t){const e=s.index;d("selected",p().activeTab[e])}}let Zx=(()=>{class t{constructor(e,n,i,o,r,u){this.mythService=e,this.router=n,this.captureCardService=i,this.setupService=o,this.translate=r,this.channelService=u,this.currentTab=-1,this.deletedTab=-1,this.dirtyMessages=[],this.forms=[],this.activeTab=[],this.readyCount=0,this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.m_hostName="",this.m_CaptureCardsFiltered=[],this.videoSourceList={VideoSourceList:{VideoSources:[],AsOf:"",Version:"",ProtoVer:""}},this.videoSourceLookup=[],this.setupService.setCurrentForm(null),this.mythService.GetHostName().subscribe(h=>{this.m_hostName=h.String,this.loadCards(!0)}),this.loadSources(),r.get(this.dirtyText).subscribe(h=>this.dirtyText=h),r.get(this.warningText).subscribe(h=>this.warningText=h)}loadCards(e){this.m_CaptureCardList$=this.captureCardService.GetCaptureCardList("",""),this.m_CaptureCardList$.subscribe(n=>{this.m_CaptureCardList=n,e&&this.filterCards(),this.readyCount++})}filterCards(){this.m_CaptureCardsFiltered=this.m_CaptureCardList.CaptureCardList.CaptureCards.filter(e=>0==e.ParentId&&e.HostName==this.m_hostName),this.dirtyMessages=[],this.forms=[],this.activeTab=[];for(let e=0;e{this.videoSourceList=e,this.videoSourceList.VideoSourceList.VideoSources.unshift({Id:0,SourceName:"(None)",ScanFrequency:0}),this.videoSourceLookup=[],this.videoSourceList.VideoSourceList.VideoSources.forEach(n=>{this.videoSourceLookup[n.Id]=n}),this.readyCount++})}ngOnInit(){}onTabOpen(e){this.showDirty();let n=this.setupService.getCurrentForm();null!=n&&(this.forms[e.index]=n),this.setupService.setCurrentForm(null),this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.currentTab||!this.forms[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab].dirty?this.dirtyText:"")}confirm(e){return ue(window.confirm(e))}canDeactivate(){let e=this.setupService.getCurrentForm();return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n==this.dirtyText)||e&&e.dirty)||this.confirm(this.warningText)}onWindowClose(e){let n=this.setupService.getCurrentForm();(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(i=>i==this.dirtyText)||n&&n.dirty)&&(e.preventDefault(),e.returnValue=!1)}static#e=this.\u0275fac=function(n){return new(n||t)(M(Wt),M(Nt),M(Kt),M(Re),M(Le),M(Co))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-input-connections"]],hostBindings:function(n,i){1&n&&v("beforeunload",function(r){return i.onWindowClose(r)},0,Nn)},decls:11,vars:10,consts:[[1,"m-5"],[1,"col-12","w-full",3,"onClose","onOpen"],[3,"selected","selectedChange",4,"ngFor","ngForOf"],[1,"flex","justify-content-end"],["icon","pi pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"],[3,"selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],["class","grid w-full",4,"ngIf"],[1,"grid","w-full"],[1,"col-9","pr-1"],[3,"card","cardList","videoSourceLookup","videoSourceList","parentComponent"]],template:function(n,i){1&n&&(l(0,"p-card",0)(1,"h2"),_(2),f(3,"translate"),c(),l(4,"p-accordion",1),v("onClose",function(r){return i.onTabClose(r)})("onOpen",function(r){return i.onTabOpen(r)}),m(5,pue,3,1,"p-accordionTab",2),c(),l(6,"div",3)(7,"p-button",4),v("onClick",function(){return i.router.navigate(["setupwizard/video-sources"])}),f(8,"translate"),c(),l(9,"p-button",5),v("onClick",function(){return i.router.navigate(["setupwizard/channel-editor"])}),f(10,"translate"),c()()()),2&n&&(a(2),S(g(3,4,"settings.iconnections.title")),a(3),d("ngForOf",i.m_CaptureCardsFiltered),a(2),I("label",g(8,6,"common.back")),a(2),I("label",g(10,8,"common.next")))},styles:["@media screen and (max-width: 48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2})}return t})();const hue=["sgroupform"],mue=function(t){return{name:t}};function fue(t,s){if(1&t&&D(0,"span",8),2&t){const e=p();d("translate","settings.sgroups.sgroup_title")("translateParams",W(2,mue,e.sgroup.LocalizedName))}}function gue(t,s){}function _ue(t,s){1&t&&(l(0,"div")(1,"b"),_(2),f(3,"translate"),c()()),2&t&&(a(2),S(g(3,1,"settings.sgroups.deleted_label")))}function bue(t,s){if(1&t){const e=E();l(0,"tr")(1,"td",20),_(2),c(),l(3,"td",21)(4,"button",22),v("click",function(){const o=C(e).index;return y(p(2).editDirectory(o))}),c()(),l(5,"td",21)(6,"button",23),v("click",function(){const o=C(e).index;return y(p(2).deleteDirectory(o))}),c()(),l(7,"td"),m(8,_ue,4,3,"div",24),c()()}if(2&t){const e=s.index,n=p(2);a(2),x(" ",n.editDirs[e]," "),a(2),d("disabled",!n.editDirs[e]),a(2),d("disabled",!n.editDirs[e]),a(2),d("ngIf",!n.editDirs[e])}}function vue(t,s){if(1&t){const e=E();l(0,"p-button",25),v("onClick",function(){return C(e),y(p(2).showEditDlg=!1)}),f(1,"translate"),c(),l(2,"p-button",26),v("onClick",function(){C(e);const i=p(2);return i.editDirs[i.editDlgNum]=i.editDirName,y(i.showEditDlg=!1)}),f(3,"translate"),c()}2&t&&(I("label",g(1,2,"common.cancel")),a(2),I("label",g(3,4,"common.ok")))}const Cue=function(){return{width:"50vw"}},yue=function(){return{height:"50vh"}};function Tue(t,s){if(1&t){const e=E();l(0,"div",9)(1,"div",10)(2,"table"),m(3,bue,9,4,"tr",11),c(),l(4,"p-dialog",12),v("visibleChange",function(i){return C(e),y(p().showEditDlg=i)}),f(5,"translate"),l(6,"div",13)(7,"label",14),_(8),f(9,"translate"),c(),l(10,"input",15,16),v("ngModelChange",function(i){return C(e),y(p().editDirName=i)})("change",function(){return C(e),y(p().textChange())}),c()(),l(12,"p-listbox",17,18),v("ngModelChange",function(i){return C(e),y(p().selectedDir=i)})("onClick",function(){return C(e),y(p().selectDir())}),c(),m(14,vue,4,6,"ng-template",7),c(),D(15,"br"),l(16,"p-button",19),v("onClick",function(){return C(e),y(p().addDirectory())}),f(17,"translate"),c()()()}if(2&t){const e=p();a(3),d("ngForOf",e.editDirs),a(1),j(V(20,Cue)),I("header",g(5,14,"settings.sgroups.seldir_title")),d("visible",e.showEditDlg)("modal",!0)("draggable",!1)("resizable",!1),a(4),S(g(9,16,"settings.sgroups.dirname_label")),a(2),d("ngModel",e.editDirName),a(2),d("options",e.dirSelect)("ngModel",e.selectedDir)("listStyle",V(21,yue)),a(4),I("label",g(17,18,"settings.sgroups.adddir_button"))}}function wue(t,s){1&t&&(D(0,"p-message",32),f(1,"translate")),2&t&&I("text",g(1,1,"common.savesuccess"))}function Iue(t,s){1&t&&(D(0,"p-message",33),f(1,"translate")),2&t&&I("text",g(1,1,"common.networkfail"))}function Sue(t,s){if(1&t){const e=E();l(0,"div",27)(1,"div",28),m(2,wue,2,3,"p-message",29),m(3,Iue,2,3,"p-message",30),c(),l(4,"p-button",31),v("onClick",function(){C(e);const i=p(),o=B(1);return i.saveForm(),y(o.form.markAsPristine())}),f(5,"translate"),c()()}if(2&t){const e=p(),n=B(1);a(2),d("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0),a(1),I("label",g(5,4,"common.save")),d("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let xue=(()=>{class t{constructor(e,n,i){this.mythService=e,this.setupService=n,this.translate=i,this.successCount=0,this.errorCount=0,this.expectCount=0,this.showEditDlg=!1,this.editDlgNum=-1,this.editDirName="",this.editDirs=[],this.dirSelect=[],this.selectedDir="",this.upString="UP 1 LEVEL",this.saveObserver={next:o=>{o.bool?(this.successCount++,this.successCount==this.expectCount&&(this.sgroup.DirNames=this.editDirs.filter(r=>r.length>1))):(this.errorCount++,this.currentForm.form.markAsDirty())},error:o=>{console.error(o),this.errorCount++,this.currentForm.form.markAsDirty()}},i.get("settings.sgroups.updir").subscribe(o=>this.upString="// ** "+o+" **")}ngOnInit(){this.editDirs=this.sgroup.DirNames.slice()}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}selectDir(){for(;"/"==this.editDirName.charAt(this.editDirName.length-1);)this.editDirName=this.editDirName.substring(0,this.editDirName.length-1);if(this.selectedDir.startsWith("//")){let e=this.editDirName.lastIndexOf("/");this.editDirName=this.editDirName.substring(0,e),0==this.editDirName.length&&(this.editDirName="/")}else this.editDirName=this.editDirName+"/"+this.selectedDir;this.fillDirList()}textChange(){this.fillDirList()}fillDirList(){0!=this.editDirName.indexOf("/")&&(this.editDirName="/"+this.editDirName),this.mythService.GetDirListing(this.editDirName).subscribe(e=>{"/"!=this.editDirName&&e.DirListing.unshift(this.upString),this.dirSelect=e.DirListing})}addDirectory(){this.editDirs.push("/"),this.editDirectory(this.editDirs.length-1)}editDirectory(e){this.editDirName=this.editDirs[e],this.editDlgNum=e,this.showEditDlg=!0,this.fillDirList()}deleteDirectory(e){this.editDirs[e]="",this.currentForm.form.markAsDirty()}saveForm(){this.successCount=0,this.errorCount=0,this.expectCount=0;for(let e=0;e{""!=e&&-1==this.sgroup.DirNames.indexOf(e)&&(this.mythService.AddStorageGroupDir({GroupName:this.sgroup.GroupName,DirName:e,HostName:this.hostName}).subscribe(this.saveObserver),this.expectCount++)}),this.sgroup.DirNames.forEach(e=>{-1==this.editDirs.indexOf(e)&&(this.mythService.RemoveStorageGroupDir({GroupName:this.sgroup.GroupName,DirName:e,HostName:this.hostName}).subscribe(this.saveObserver),this.expectCount++)})}static#e=this.\u0275fac=function(n){return new(n||t)(M(Wt),M(Re),M(Le))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-sgroup"]],viewQuery:function(n,i){if(1&n&&K(hue,5),2&n){let o;H(o=G())&&(i.currentForm=o.first)}},inputs:{sgroup:"sgroup",hostName:"hostName"},decls:9,vars:0,consts:[["name","sgroupform",1,"ml-3","mr-3"],["sgroupform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[3,"translate","translateParams"],[1,"grid"],[1,"mb-4","w-full"],[4,"ngFor","ngForOf"],[3,"header","visible","modal","draggable","resizable","visibleChange"],[1,"form-group","field"],["for","DirName",1,"label","block"],["pInputText","","id","DirName","name","DirName",1,"mb-2","form-control","w-full",2,"font-family","monospace",3,"ngModel","ngModelChange","change"],["DirName","ngModel"],["name","ListDirs",3,"options","ngModel","listStyle","ngModelChange","onClick"],["ListDirs","ngModel"],["icon","pi pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],[1,"align-items-center","bg-blue-100","text-gray-900",2,"font-family","monospace"],[1,"align-items-center"],["pButton","","pRipple","","type","button","icon","pi pi-pencil","pTooltip","Edit",1,"p-button-rounded","p-button-text",3,"disabled","click"],["pButton","","pRipple","","type","button","icon","pi pi-trash","pTooltip","Delete",1,"p-button-rounded","p-button-text",3,"disabled","click"],[4,"ngIf"],["icon","pi pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi pi-check-circle","styleClass","p-button-plain",3,"label","onClick"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(n,i){1&n&&(l(0,"form",0,1),D(2,"span",null,2),l(4,"p-card",3),m(5,fue,1,4,"ng-template",4),m(6,gue,0,0,"ng-template",5),m(7,Tue,18,22,"ng-template",6),m(8,Sue,6,6,"ng-template",7),c()())},dependencies:[ut,ne,We,Xe,xe,$e,Ce,He,$t,Bd,ae,Sn,Te,Ge,pn,es,qe,bt,pe]})}return t})();function Due(t,s){if(1&t){const e=E();l(0,"p-button",14),v("onClick",function(){return C(e),y(p().displayNewDlg=!1)}),f(1,"translate"),c(),l(2,"p-button",15),v("onClick",function(){return C(e),y(p().newGroup())}),f(3,"translate"),c()}if(2&t){const e=p();I("label",g(1,3,"common.cancel")),a(2),I("label",g(3,5,"common.ok")),d("disabled",""==e.newGroupName)}}const Mue=function(t){return{name:t}};function kue(t,s){if(1&t&&D(0,"span",23),2&t){const e=p(2).index,n=p();d("translate","settings.sgroups.tab_create_title")("translateParams",W(2,Mue,n.storageGroups[e].LocalizedName))}}function Eue(t,s){if(1&t&&_(0),2&t){const e=p(2).index;x(" ",p().storageGroups[e].LocalizedName," ")}}function Lue(t,s){if(1&t&&(l(0,"div",19)(1,"div",20),m(2,kue,1,4,"span",21),m(3,Eue,1,1,"ng-template",null,22,ve),l(5,"b"),_(6),c()()()),2&t){const e=B(4),n=p().index,i=p();a(2),d("ngIf",0==i.storageGroups[n].DirNames.length)("ngIfElse",e),a(4),x("\xa0",i.dirtyMessages[n],"")}}function Rue(t,s){if(1&t&&D(0,"app-sgroup",24),2&t){const e=p().index,n=p();d("sgroup",n.storageGroups[e])("hostName",n.hostName)}}function Oue(t,s){if(1&t){const e=E();l(0,"p-accordionTab",16),v("selectedChange",function(i){const r=C(e).index;return y(p().activeTab[r]=i)}),m(1,Lue,7,3,"ng-template",17),m(2,Rue,1,2,"ng-template",18),c()}if(2&t){const e=s.index;d("selected",p().activeTab[e])}}const Aue=function(){return{width:"50vw"}};let Pue=(()=>{class t{constructor(e,n,i,o){this.setupService=e,this.translate=n,this.mythService=i,this.router=o,this.forms=[],this.dirtyMessages=[],this.currentTab=-1,this.activeTab=[],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.deletedText="settings.common.deleted",this.newText="settings.common.new",this.hostName="",this.storageGroupDirs=[],this.storageGroups=[{GroupName:"Default",LocalizedName:"",DirNames:[]},{GroupName:"LiveTV",LocalizedName:"",DirNames:[]},{GroupName:"DB Backups",LocalizedName:"",DirNames:[]},{GroupName:"Videos",LocalizedName:"",DirNames:[]},{GroupName:"Trailers",LocalizedName:"",DirNames:[]},{GroupName:"Coverart",LocalizedName:"",DirNames:[]},{GroupName:"Fanart",LocalizedName:"",DirNames:[]},{GroupName:"Screenshots",LocalizedName:"",DirNames:[]},{GroupName:"Banners",LocalizedName:"",DirNames:[]},{GroupName:"Photographs",LocalizedName:"",DirNames:[]},{GroupName:"Music",LocalizedName:"",DirNames:[]},{GroupName:"MusicArt",LocalizedName:"",DirNames:[]}],this.displayNewDlg=!1,this.newGroupName="",this.setupService.setCurrentForm(null),this.mythService.GetHostName().subscribe(r=>{this.hostName=r.String,this.loadGroups()}),n.get(this.dirtyText).subscribe(r=>this.dirtyText=r),n.get(this.warningText).subscribe(r=>this.warningText=r),n.get(this.deletedText).subscribe(r=>this.deletedText=r),n.get(this.newText).subscribe(r=>this.newText=r),this.storageGroups.forEach(r=>n.get("settings.sgroups.special."+r.GroupName).subscribe(u=>r.LocalizedName=u))}loadGroups(){this.mythService.GetStorageGroupDirs({HostName:this.hostName}).subscribe(e=>{this.storageGroupDirs=e.StorageGroupDirList.StorageGroupDirs,this.storageGroupDirs.forEach(n=>{let i=this.storageGroups.find(o=>o.GroupName==n.GroupName);i?i.DirNames.push(n.DirName):this.storageGroups.push({GroupName:n.GroupName,LocalizedName:n.GroupName,DirNames:[n.DirName]})})})}ngOnInit(){}onTabOpen(e){this.showDirty();let n=this.setupService.getCurrentForm();null!=n&&(this.forms[e.index]=n),this.setupService.setCurrentForm(null),this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.currentTab||!this.forms[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab].dirty?this.dirtyText:"")}newGroup(){this.displayNewDlg=!1,!this.storageGroups.find(n=>n.GroupName==this.newGroupName)&&(this.storageGroups.push({GroupName:this.newGroupName,LocalizedName:this.newGroupName,DirNames:[]}),this.newGroupName="")}confirm(e){return ue(window.confirm(e))}canDeactivate(){let e=this.setupService.getCurrentForm();return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n==this.dirtyText)||e&&e.dirty)||this.confirm(this.warningText)}onWindowClose(e){let n=this.setupService.getCurrentForm();(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(i=>i==this.dirtyText)||n&&n.dirty)&&(e.preventDefault(),e.returnValue=!1)}static#e=this.\u0275fac=function(n){return new(n||t)(M(Re),M(Le),M(Wt),M(Nt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-storage-groups"]],hostBindings:function(n,i){1&n&&v("beforeunload",function(r){return i.onWindowClose(r)},0,Nn)},decls:25,vars:24,consts:[[1,"m-5"],["label","New Storage Group","icon","pi pi-plus-circle","styleClass","p-button-plain",3,"onClick"],["header","New Storage Group",3,"visible","modal","draggable","resizable","visibleChange"],[1,"form-group","field"],["for","GroupName",1,"block"],["pInputText","","id","GroupName","name","GroupName",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["GroupName","ngModel"],[1,"block"],["pTemplate","footer"],[1,"col-12","w-full",3,"onClose","onOpen"],[3,"selected","selectedChange",4,"ngFor","ngForOf"],[1,"flex","justify-content-end"],["icon","pi pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"],["icon","pi pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],[3,"selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],[1,"grid","w-full"],[1,"col-9","pr-1"],[3,"translate","translateParams",4,"ngIf","ngIfElse"],["onlyName",""],[3,"translate","translateParams"],[3,"sgroup","hostName"]],template:function(n,i){1&n&&(l(0,"p-card",0)(1,"h2"),_(2),f(3,"translate"),c(),l(4,"p-button",1),v("onClick",function(){return i.displayNewDlg=!0}),c(),l(5,"p-dialog",2),v("visibleChange",function(r){return i.displayNewDlg=r}),l(6,"p"),_(7),f(8,"translate"),c(),l(9,"div",3)(10,"label",4),_(11),f(12,"translate"),c(),l(13,"input",5,6),v("ngModelChange",function(r){return i.newGroupName=r}),c(),D(15,"small",7),c(),m(16,Due,4,7,"ng-template",8),c(),D(17,"br"),l(18,"p-accordion",9),v("onClose",function(r){return i.onTabClose(r)})("onOpen",function(r){return i.onTabOpen(r)}),m(19,Oue,3,1,"p-accordionTab",10),c(),l(20,"div",11)(21,"p-button",12),v("onClick",function(){return i.router.navigate(["setupwizard/channel-editor"])}),f(22,"translate"),c(),l(23,"p-button",13),v("onClick",function(){return i.router.navigate(["setupwizard/system-events"])}),f(24,"translate"),c()()()),2&n&&(a(2),S(g(3,13,"settings.sgroups.title")),a(3),j(V(23,Aue)),d("visible",i.displayNewDlg)("modal",!0)("draggable",!1)("resizable",!1),a(2),S(g(8,15,"settings.sgroups.name_prompt")),a(4),S(g(12,17,"settings.sgroups.name_label")),a(2),d("ngModel",i.newGroupName),a(6),d("ngForOf",i.storageGroups),a(2),I("label",g(22,19,"common.back")),a(2),I("label",g(24,21,"common.next")))},dependencies:[ut,ne,Xe,xe,Ce,Bd,vs,bs,ae,Te,Ge,pn,xue,pe],styles:["@media screen and (max-width: 48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2})}return t})();const Fue=["eventsform"];function Nue(t,s){if(1&t){const e=E();l(0,"div",9)(1,"div",10)(2,"label",11),_(3),c(),l(4,"input",12),v("ngModelChange",function(i){return y(C(e).$implicit.Value=i)}),c()()()}if(2&t){const e=s.$implicit;a(2),I("for",e.Key),a(1),S(e.LocalizedName),a(1),I("id",e.Key),I("name",e.Key),d("ngModel",e.Value)}}function Vue(t,s){if(1&t&&(l(0,"div",7),m(1,Nue,5,5,"div",8),c()),2&t){const e=p();a(1),d("ngForOf",e.events)}}function Bue(t,s){1&t&&(D(0,"p-message",18),f(1,"translate")),2&t&&I("text",g(1,1,"common.savesuccess"))}function Hue(t,s){1&t&&(D(0,"p-message",19),f(1,"translate")),2&t&&I("text",g(1,1,"common.networkfail"))}function Gue(t,s){if(1&t){const e=E();l(0,"div",13)(1,"div",14),m(2,Bue,2,3,"p-message",15),m(3,Hue,2,3,"p-message",16),c(),l(4,"p-button",17),v("onClick",function(){C(e);const i=p(),o=B(1);return i.saveForm(),y(o.form.markAsPristine())}),f(5,"translate"),c()()}if(2&t){const e=p(),n=B(1);a(2),d("ngIf",e.successCount>0&&e.successCount==e.expectedCount&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0),a(1),I("label",g(5,4,"common.save")),d("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let que=(()=>{class t{constructor(e,n,i,o,r){this.configService=e,this.translate=n,this.setupService=i,this.mythService=o,this.router=r,this.hostName="",this.events=[],this.successCount=0,this.errorCount=0,this.expectedCount=0,this.warningText="settings.common.warning",this.kClearSettingValue="",this.jqbObserver={next:u=>{u.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:u=>{console.error(u),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.mythService.GetHostName().subscribe({next:u=>{this.hostName=u.String,this.configService.GetSystemEvents().subscribe(h=>{this.eventList=h,this.events=h.SystemEventList.SystemEvents})},error:()=>this.errorCount++}),this.translate.get(this.warningText).subscribe(u=>{this.warningText=u})}ngOnInit(){}saveForm(){this.successCount=0,this.errorCount=0,this.expectedCount=0,this.events.forEach(e=>{let n=e.Value.trim();n?this.mythService.PutSetting({HostName:this.hostName,Key:e.Key,Value:n}).subscribe(this.jqbObserver):this.mythService.DeleteSetting({HostName:this.hostName,Key:e.Key}).subscribe(this.jqbObserver),this.expectedCount++})}confirm(e){return ue(window.confirm(e))}canDeactivate(){return!this.currentForm||!this.currentForm.dirty||this.confirm(this.warningText)}onWindowClose(e){this.currentForm&&this.currentForm.dirty&&(e.preventDefault(),e.returnValue=!1)}static#e=this.\u0275fac=function(n){return new(n||t)(M(Da),M(Le),M(Re),M(Wt),M(Nt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-system-events"]],viewQuery:function(n,i){if(1&n&&K(Fue,5),2&n){let o;H(o=G())&&(i.currentForm=o.first)}},hostBindings:function(n,i){1&n&&v("beforeunload",function(r){return i.onWindowClose(r)},0,Nn)},decls:11,vars:6,consts:[["name","eventsform",1,"ml-3","mr-3"],["eventsform","ngForm"],[1,"m-5"],["pTemplate","content"],["pTemplate","footer"],[1,"flex","justify-content-end"],["icon","pi pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],[1,"grid"],["class","mb-4 w-full",4,"ngFor","ngForOf"],[1,"mb-4","w-full"],[1,"form-group","field"],[1,"label","block",3,"for"],["pInputText","",1,"mb-2","form-control","w-full",3,"id","ngModel","name","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(n,i){1&n&&(l(0,"form",0,1)(2,"h2"),_(3),f(4,"translate"),c(),l(5,"p-card",2),m(6,Vue,2,1,"ng-template",3),m(7,Gue,6,6,"ng-template",4),c(),l(8,"div",5)(9,"p-button",6),v("onClick",function(){return i.router.navigate(["setupwizard/storage-groups"])}),f(10,"translate"),c()()()),2&n&&(a(3),S(g(4,2,"settings.sysevents.title")),a(6),I("label",g(10,4,"common.back")))},dependencies:[ut,ne,We,Xe,xe,$e,Ce,He,ae,Te,Ge,qe,pe],styles:["@media screen and (max-width: 48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2})}return t})();const zue=["chanform"];function Uue(t,s){if(1&t){const e=E();l(0,"p-button",83),v("onClick",function(){return C(e),y(p(3).deleteSourceRequest())}),f(1,"translate"),f(2,"translate"),c()}if(2&t){const e=p(3);I("pTooltip",g(1,3,"settings.chanedit.delete_source")),I("label",g(2,5,"common.delete")),d("disabled",e.setupService.schedulingEnabled)}}function jue(t,s){1&t&&(l(0,"div",84),_(1),f(2,"translate"),c()),2&t&&(a(1),x(" ",g(2,1,"settings.chanedit.delete_message")," "))}function $ue(t,s){if(1&t){const e=E();l(0,"button",78),v("click",function(){return C(e),y(p(2).openNew())}),f(1,"translate"),c(),m(2,Uue,3,7,"p-button",79),l(3,"p-button",80),v("onClick",function(){return C(e),y(p(2).restoreDataRequest())}),f(4,"translate"),f(5,"translate"),c(),l(6,"p-button",81),v("onClick",function(){return C(e),y(p(2).downloadIconsRequest())}),f(7,"translate"),f(8,"translate"),c(),m(9,jue,3,3,"div",82)}if(2&t){const e=p(2);I("label",g(1,10,"settings.chanedit.new_channel")),d("disabled","S"==e.setupService.pageType&&e.setupService.schedulingEnabled),a(2),d("ngIf","S"==e.setupService.pageType),a(1),I("pTooltip",g(4,12,"settings.chanedit.res_tooltip")),I("label",g(5,14,"settings.chanedit.res_title")),d("disabled",0==e.videoSources.length),a(3),I("pTooltip",g(7,16,"settings.chanedit.icondld_tooltip")),I("label",g(8,18,"settings.chanedit.icondld_title")),d("disabled",0==e.videoSources.length),a(3),d("ngIf","S"!=e.setupService.pageType)}}function Wue(t,s){1&t&&D(0,"button",100)}function Kue(t,s){1&t&&_(0),2&t&&x(" ",s.$implicit," ")}function Que(t,s){if(1&t){const e=E();l(0,"p-dropdown",101),v("onChange",function(i){return y((0,C(e).filterCallback)(i.value))}),f(1,"translate"),m(2,Kue,1,1,"ng-template",22),c()}if(2&t){const e=s.$implicit,n=p(3);I("placeholder",g(1,4,"settings.chanedit.all")),d("ngModel",e)("options",n.sourceNames)("showClear",!0)}}function Jue(t,s){if(1&t&&(l(0,"tr")(1,"th",85),_(2),f(3,"translate"),c(),l(4,"th",86),_(5),f(6,"translate"),D(7,"p-sortIcon",87),c(),l(8,"th",88),_(9),f(10,"translate"),c(),l(11,"th",89),_(12),f(13,"translate"),c(),l(14,"th",90),_(15),f(16,"translate"),c(),l(17,"th",91),_(18),f(19,"translate"),D(20,"p-sortIcon",92),c(),l(21,"th",88),_(22),f(23,"translate"),c(),l(24,"th",89),_(25),f(26,"translate"),c(),l(27,"th",88),_(28),f(29,"translate"),c(),l(30,"th",93),D(31,"button",94),m(32,Wue,1,0,"button",95),c()(),l(33,"tr"),D(34,"th")(35,"th")(36,"th"),l(37,"th"),D(38,"p-columnFilter",96),c(),l(39,"th"),D(40,"p-columnFilter",97),c(),l(41,"th")(42,"p-columnFilter",98),m(43,Que,3,6,"ng-template",99),c()(),D(44,"th")(45,"th")(46,"th")(47,"th"),c()),2&t){const e=p(2);a(2),S(g(3,11,"settings.chanedit.col_icon")),a(3),x(" ",g(6,13,"settings.chanedit.col_channum")," "),a(4),S(g(10,15,"settings.chanedit.col_freqid")),a(3),S(g(13,17,"settings.chanedit.col_callsign")),a(3),S(g(16,19,"settings.chanedit.col_name")),a(3),x(" ",g(19,21,"settings.chanedit.col_source")," "),a(4),S(g(23,23,"settings.chanedit.col_priority")),a(3),S(g(26,25,"settings.chanedit.col_visibility")),a(3),S(g(29,27,"settings.chanedit.col_useeit")),a(4),d("ngIf","S"==e.setupService.pageType),a(10),d("showMenu",!1)}}function Zue(t,s){1&t&&D(0,"img",109),2&t&&I("src","/Guide/GetChannelIcon?Filename="+p().$implicit.Icon,tn)}function Yue(t,s){1&t&&D(0,"img",110)}function Xue(t,s){if(1&t){const e=E();l(0,"button",111),v("click",function(){C(e);const i=p().$implicit;return y(p(2).deleteRequest(i))}),f(1,"translate"),c()}if(2&t){const e=p().$implicit,n=p(2);I("pTooltip",g(1,2,"settings.chanedit.deletechan")),d("disabled",e.ChanId<0||n.setupService.schedulingEnabled)}}const ede=function(t){return{"line-through":t}};function tde(t,s){if(1&t){const e=E();l(0,"tr",102)(1,"td",103),m(2,Zue,1,1,"img",104),m(3,Yue,1,0,"ng-template",null,105,ve),c(),l(5,"td"),_(6),c(),l(7,"td"),_(8),c(),l(9,"td"),_(10),c(),l(11,"td"),_(12),c(),l(13,"td"),_(14),c(),l(15,"td"),_(16),c(),l(17,"td"),_(18),c(),l(19,"td"),_(20),c(),l(21,"td",106)(22,"button",107),v("click",function(){const o=C(e).$implicit;return y(p(2).editChannel(o))}),f(23,"translate"),c(),m(24,Xue,2,4,"button",108),c()()}if(2&t){const e=s.$implicit,n=B(4),i=p(2);d("ngClass",W(16,ede,e.ChanId<0)),a(2),d("ngIf",e.Icon)("ngIfElse",n),a(4),S(e.ChanNum),a(2),S(e.FrequencyId),a(2),S(e.CallSign),a(2),S(e.ChannelName),a(2),S(e.Source),a(2),S(e.RecPriority),a(2),S(i.getVisibility(e)),a(2),S(e.UseEIT?"Y":"N"),a(2),I("pTooltip",g(23,14,"settings.chanedit.editchan")),d("disabled",e.ChanId<0||"S"==i.setupService.pageType&&i.setupService.schedulingEnabled),a(2),d("ngIf","S"==i.setupService.pageType)}}function nde(t,s){if(1&t){const e=E();l(0,"div",73)(1,"p-table",74),v("onFilter",function(i){return C(e),y(p().onFilter(i))}),m(2,$ue,10,20,"ng-template",75),m(3,Jue,48,29,"ng-template",76),m(4,tde,25,18,"ng-template",77),c()()}if(2&t){const e=p();a(1),d("value",e.allChannels)("scrollable",!0)("rowHover",!0)}}function ide(t,s){1&t&&D(0,"p-progressSpinner")}function sde(t,s){1&t&&D(0,"img",113),2&t&&I("src","/Guide/GetChannelIcon?Filename="+p(3).channel.Icon,tn)}function ode(t,s){if(1&t&&(l(0,"div"),m(1,sde,1,1,"img",112),_(2),c()),2&t){const e=p(2);a(1),d("ngIf",!e.channel.Icon.endsWith("\t")),a(1),x(" \xa0\xa0",e.channel.Icon," ")}}function rde(t,s){1&t&&m(0,ode,3,2,"div",57),2&t&&d("ngIf",p().channel.Icon)}function ade(t,s){1&t&&D(0,"img",113),2&t&&I("src","/Guide/GetChannelIcon?Filename="+p().$implicit,tn)}function lde(t,s){if(1&t&&(l(0,"div"),m(1,ade,1,1,"img",112),_(2),c()),2&t){const e=s.$implicit;a(1),d("ngIf",!e.endsWith("\t")),a(1),x(" \xa0\xa0",e," ")}}function cde(t,s){1&t&&(D(0,"p-message",119),f(1,"translate")),2&t&&I("text",g(1,1,"common.savesuccess"))}function ude(t,s){1&t&&(D(0,"p-message",120),f(1,"translate")),2&t&&I("text",g(1,1,"common.networkfail"))}function dde(t,s){if(1&t){const e=E();l(0,"div",114),m(1,cde,2,3,"p-message",115),m(2,ude,2,3,"p-message",116),c(),l(3,"p-button",117),v("onClick",function(){return C(e),y(p().closeDialog())}),f(4,"translate"),c(),l(5,"p-button",118),v("onClick",function(){return C(e),y(p().saveChannel())}),f(6,"translate"),c()}if(2&t){const e=p(),n=B(7);a(1),d("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0),a(1),I("label",g(4,5,"common.close")),a(2),I("label",g(6,7,"common.save")),d("disabled",!n.dirty||""==e.channel.ChannelName.trim()||""==e.channel.ChanNum.trim()||""==e.channel.CallSign.trim())}}function pde(t,s){if(1&t){const e=E();l(0,"p-button",121),v("onClick",function(){return C(e),y(p().closeDialog())}),f(1,"translate"),c(),l(2,"p-button",122),v("onClick",function(){return C(e),y(p().displayUnsaved=!1)}),f(3,"translate"),c()}2&t&&(I("label",g(1,2,"common.nosave")),a(2),I("label",g(3,4,"common.continue")))}function hde(t,s){1&t&&(D(0,"p-message",120),f(1,"translate")),2&t&&I("text",g(1,1,"common.networkfail"))}function mde(t,s){if(1&t){const e=E();l(0,"div",114),m(1,hde,2,3,"p-message",116),c(),l(2,"p-button",117),v("onClick",function(){C(e);const i=p(),o=B(7);return i.displayDelete=!1,y(o.form.markAsPristine())}),f(3,"translate"),c(),l(4,"p-button",123),v("onClick",function(){C(e);const i=p();return y(i.deleteChannel(i.channel))}),f(5,"translate"),c()}if(2&t){const e=p();a(1),d("ngIf",e.errorCount>0),a(1),I("label",g(3,3,"common.close")),a(2),I("label",g(5,5,"common.delete"))}}const fde=function(t){return{Source:t}};function gde(t,s){if(1&t&&(l(0,"p")(1,"b"),_(2),f(3,"translate"),c()()),2&t){const e=p();a(2),S(mt(3,1,"settings.chanedit.delete_source_details",W(4,fde,e.filterEvent.filters.Source.value)))}}function _de(t,s){1&t&&(l(0,"p")(1,"b"),_(2),f(3,"translate"),c()()),2&t&&(a(2),S(g(3,1,"settings.chanedit.delete_all_details")))}function bde(t,s){if(1&t&&(l(0,"div")(1,"p"),_(2),f(3,"translate"),c()()),2&t){const e=p();a(2),Xr(" ",g(3,3,"common.delete")," ",e.channel.ChanNum," ",e.channel.ChannelName,"")}}function vde(t,s){1&t&&(D(0,"p-message",120),f(1,"translate")),2&t&&I("text",g(1,1,"common.networkfail"))}function Cde(t,s){if(1&t){const e=E();l(0,"div",114),m(1,vde,2,3,"p-message",116),c(),l(2,"p-button",117),v("onClick",function(){C(e);const i=p(),o=B(7);return i.displayDeleteSource=!1,i.channelOperation=-1,y(o.form.markAsPristine())}),f(3,"translate"),c(),l(4,"p-button",124),v("onClick",function(){return C(e),y(p().deleteSource())}),f(5,"translate"),c()}if(2&t){const e=p();a(1),d("ngIf",e.errorCount>0),a(1),I("label",g(3,4,"common.cancel")),a(2),I("label",g(5,6,"common.delete")),d("disabled",e.working)}}const yde=function(t,s,e,n){return{NumChannels:t,NumXLMTVID:s,NumVisible:e,NumIcon:n}};function Tde(t,s){if(1&t&&(D(0,"p-message",127),f(1,"translate")),2&t){const e=p(2);I("text",mt(1,1,"settings.chanedit.restore_details",Li(4,yde,e.resResult.NumChannels,e.resResult.NumXLMTVID,e.resResult.NumVisible,e.resResult.NumIcon)))}}function wde(t,s){1&t&&(D(0,"p-message",119),f(1,"translate")),2&t&&I("text",g(1,1,"common.savesuccess"))}function Ide(t,s){1&t&&(D(0,"p-message",120),f(1,"translate")),2&t&&I("text",g(1,1,"common.networkfail"))}function Sde(t,s){if(1&t){const e=E();l(0,"div",114),m(1,Tde,2,9,"p-message",125),c(),l(2,"div",114),m(3,wde,2,3,"p-message",115),c(),l(4,"div",114),m(5,Ide,2,3,"p-message",116),c(),l(6,"p-button",117),v("onClick",function(){return C(e),y(p().closeDialog())}),f(7,"translate"),c(),l(8,"p-button",126),v("onClick",function(){return C(e),y(p().restoreSearch())}),f(9,"translate"),c(),l(10,"p-button",118),v("onClick",function(){return C(e),y(p().restoreSave())}),f(11,"translate"),c()}if(2&t){const e=p(),n=B(7);a(1),d("ngIf",e.resSearchDone&&!n.dirty),a(2),d("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(2),d("ngIf",e.errorCount>0),a(1),I("label",g(7,8,"common.close")),a(2),I("label",g(9,10,"common.search")),d("disabled",!e.resSourceId||!e.resXMLTV&&!e.resIcon&&!e.resVisible),a(2),I("label",g(11,12,"common.save")),d("disabled",!e.resSearchDone||!e.resResult.NumChannels||!n.pristine)}}const xde=function(t,s){return{Count:t,Max:s}};function Dde(t,s){if(1&t&&(l(0,"div",114),_(1),f(2,"translate"),l(3,"table")(4,"tr")(5,"td"),_(6),f(7,"translate"),c(),l(8,"td"),_(9),c()(),l(10,"tr")(11,"td"),_(12),f(13,"translate"),c(),l(14,"td"),_(15),c()(),l(16,"tr")(17,"td"),_(18),f(19,"translate"),c(),l(20,"td"),_(21),c()()()()),2&t){const e=p(2);a(1),x(" ",mt(2,7,"settings.chanedit.icondld_details",Se(16,xde,e.icondldCount,e.icondldMax))," "),a(5),x(" ",g(7,10,"settings.chanedit.icondld_found")," "),a(3),S(e.icondldFound),a(3),x(" ",g(13,12,"settings.chanedit.icondld_success")," "),a(3),S(e.successCount),a(3),x(" ",g(19,14,"settings.chanedit.icondld_failed")," "),a(3),S(e.errorCount)}}function Mde(t,s){1&t&&(D(0,"p-message",119),f(1,"translate")),2&t&&I("text",g(1,1,"settings.chanedit.icondld_complete"))}function kde(t,s){if(1&t){const e=E();m(0,Dde,22,19,"div",128),l(1,"div",114),m(2,Mde,2,3,"p-message",115),c(),l(3,"p-button",129),v("onClick",function(){return C(e),y(p().closeDialog())}),f(4,"translate"),c(),l(5,"p-button",130),v("onClick",function(){return C(e),y(p().startIcondld())}),f(6,"translate"),c(),l(7,"p-button",131),v("onClick",function(){return C(e),y(p().stopIcondld())}),f(8,"translate"),c()}if(2&t){const e=p();d("ngIf",e.icondldStatus>0),a(2),d("ngIf",2==e.icondldStatus),a(1),I("label",g(4,8,"common.close")),d("disabled",1==e.icondldStatus),a(2),I("label",g(6,10,"common.start")),d("disabled",!e.icondldType||1==e.icondldStatus||2==e.icondldStatus),a(2),I("label",g(8,12,"common.stop")),d("disabled",!e.icondldType||1!=e.icondldStatus)}}function Ede(t,s){1&t&&(l(0,"label",132),_(1),f(2,"translate"),c()),2&t&&(a(1),S(g(2,1,"settings.chanedit.iconsrch_select")))}function Lde(t,s){1&t&&(l(0,"label",132),_(1),f(2,"translate"),c()),2&t&&(a(1),S(g(2,1,"primeng.emptyMessage")))}function Rde(t,s){if(1&t&&(l(0,"div"),D(1,"img",113),_(2),c()),2&t){const e=s.$implicit;a(1),I("src",e.url,tn),a(1),x(" \xa0\xa0",e.name," ")}}function Ode(t,s){1&t&&D(0,"p-message",134)}function Ade(t,s){if(1&t){const e=E();l(0,"div",114),m(1,Ode,1,0,"p-message",133),c(),l(2,"p-button",117),v("onClick",function(){return C(e),y(p().iconsrchShowDialog=!1)}),f(3,"translate"),c(),l(4,"p-button",118),v("onClick",function(){return C(e),y(p().iconsrchSave())}),f(5,"translate"),c()}if(2&t){const e=p();a(1),d("ngIf",e.errorCount>0),a(1),I("label",g(3,4,"common.cancel")),a(2),I("label",g(5,6,"common.save")),d("disabled",!e.iconsrchSelect)}}const Pde=function(){return{height:"75vw",width:"50vw"}},Fde=function(t){return{iconDir:t}},Ma=function(){return{minWidth:"400px"}},Nde=function(t,s,e){return{ChanNum:t,ChannelName:s,Source:e}},Vde=function(){return{height:"65vw",width:"40vw"}},Bde=function(){return{"max-height":"18rem"}};let Yx=(()=>{class t{constructor(e,n,i,o,r){this.channelService=e,this.translate=n,this.setupService=i,this.router=o,this.mythService=r,this.allChannels=[],this.videoSources=[],this.commMethods=[],this.sourceNames=[],this.multiplexes=[],this.resSources=[],this.icons=[],this.iconDir="",this.tvFormats=[{value:"Default",prompt:"common.default"},{value:"NTSC",prompt:"NTSC"},{value:"NTSC-JP",prompt:"NTSC-JP"},{value:"PAL",prompt:"PAL"},{value:"PAL-60",prompt:"PAL-60"},{value:"PAL-BG",prompt:"PAL-BG"},{value:"PAL-DK",prompt:"PAL-DK"},{value:"PAL-D",prompt:"PAL-D"},{value:"PAL-I",prompt:"PAL-I"},{value:"PAL-M",prompt:"PAL-M"},{value:"PAL-N",prompt:"PAL-N"},{value:"PAL-NC",prompt:"PAL-NC"},{value:"SECAM",prompt:"SECAM"},{value:"SECAM-D",prompt:"SECAM-D"},{value:"SECAM-DK",prompt:"SECAM-DK"}],this.visibilities=[{value:"Always Visible",prompt:"settings.chanedit.always-visible"},{value:"Visible",prompt:"settings.chanedit.visible"},{value:"Not Visible",prompt:"settings.chanedit.not-visible"},{value:"Never Visible",prompt:"settings.chanedit.never-visible"}],this.headingNew="settings.chanedit.new_channel",this.headingEdit="settings.chanedit.title",this.warningText="settings.common.warning",this.deleteText="settings.common.ru_sure",this.unassignedText="settings.chanedit.unassigned",this.noneSelected="common.none",this.transDone=0,this.visDone=0,this.numTranslations=11,this.successCount=0,this.errorCount=0,this.selectedAdvanced=!1,this.displayChannelDlg=!1,this.dialogHeader="",this.displayUnsaved=!1,this.displayDelete=!1,this.displayDeleteSource=!1,this.working=!1,this.chansLoaded=!1,this.filterEvent={filters:{Source:{matchMode:"",value:""}}},this.resSourceId=0,this.resXMLTV=!1,this.resVisible=!1,this.resIcon=!1,this.resSearchDone=!1,this.resShowDialog=!1,this.icondldShowDialog=!1,this.icondldType="",this.icondldMax=0,this.icondldCount=0,this.icondldPos=-1,this.icondldFound=0,this.icondldStatus=0,this.iconsrchShowDialog=!1,this.iconsrchTerm="",this.iconsrchResult=[],this.resResult={NumChannels:0,NumXLMTVID:0,NumIcon:0,NumVisible:0},this.channel=this.resetChannel(),this.channelOperation=0,this.saveObserver={next:u=>{if(u.bool)switch(this.successCount++,this.currentForm.form.markAsPristine(),this.channelOperation){case 0:this.editingChannel&&(Object.assign(this.editingChannel,this.channel),this.editingChannel.Source=this.getSource(this.editingChannel));break;case 1:this.channel.Source=this.getSource(this.channel),this.allChannels.push(this.channel),this.allChannels=[...this.allChannels];break;case-1:this.channel.ChanId=-99,this.displayDelete=!1,this.displayDeleteSource=!1,this.currentForm.form.markAsPristine();break;case-2:this.channel.ChanId=-99,this.deleteSource();break;case 2:this.resSearchDone=!1,this.loadLists()}else console.log("saveObserver error",u),this.errorCount++,this.working=!1},error:u=>{console.log("saveObserver error",u),this.errorCount++,this.working=!1}},this.translate.get(this.unassignedText).subscribe(u=>{this.unassignedText=u,this.transDone++,this.loadLists()}),this.loadTranslations()}ngOnInit(){this.markPristine()}resetChannel(){return{ATSCMajorChan:0,ATSCMinorChan:0,CallSign:"",ChanFilters:"",ChanId:0,ChanNum:"",ChannelGroups:"",ChannelName:"",CommFree:!1,CommMethod:-1,DefaultAuth:"",ExtendedVisible:"Visible",FineTune:0,Format:"Default",FrequencyId:"",IconURL:"",Icon:"",InputId:0,Inputs:"",MplexId:0,Programs:[],RecPriority:0,ServiceId:0,ServiceType:0,SourceId:0,TimeOffset:0,UseEIT:!1,Visible:!0,XMLTVID:"",ChanSeq:0}}loadLists(){this.channelService.GetChannelInfoList({Details:!0}).subscribe(e=>{this.allChannels=e.ChannelInfoList.ChannelInfos,this.chansLoaded=!0,this.channelService.GetVideoSourceList().subscribe(n=>{this.videoSources=n.VideoSourceList.VideoSources,this.videoSources.unshift({Id:0,SourceName:this.unassignedText}),this.videoSources.forEach(i=>this.sourceNames.push(i.SourceName)),this.allChannels.forEach((i,o)=>{i.ChanSeq=o,i.Source=this.getSource(i)})})}),this.channelService.GetCommMethodList().subscribe(e=>this.commMethods=e.CommMethodList.CommMethods)}loadMultiplexes(e){this.channelService.GetVideoMultiplexList({SourceID:e}).subscribe(n=>{this.multiplexes=n.VideoMultiplexList.VideoMultiplexes})}loadIcons(e){this.mythService.GetBackendInfo().subscribe(n=>{this.iconDir=n.BackendInfo.Env.MYTHCONFDIR+"/channels",this.mythService.GetDirListing(this.iconDir,!0).subscribe(i=>{this.icons=i.DirListing.filter(o=>!o.match(/\.[0-9]*x[0-9]*\./)),this.icons.unshift(this.noneSelected+"\t"),e&&(this.editingChannel.Icon=e,this.channel.Icon=e)})})}loadTranslations(){this.visibilities.forEach(e=>{this.translate.get(e.prompt).subscribe(n=>{e.prompt=n,this.transDone++,this.visDone++,this.visDone>=this.visibilities.length&&(this.visibilities=[...this.visibilities])})}),this.translate.get(this.headingNew).subscribe(e=>{this.headingNew=e,this.transDone++}),this.translate.get(this.headingEdit).subscribe(e=>{this.headingEdit=e,this.transDone++}),this.translate.get(this.warningText).subscribe(e=>{this.warningText=e,this.transDone++}),this.translate.get(this.deleteText).subscribe(e=>{this.deleteText=e,this.transDone++}),this.translate.get(this.tvFormats[0].prompt).subscribe(e=>{this.tvFormats[0].prompt=e,this.tvFormats=[...this.tvFormats],this.transDone++}),this.translate.get(this.noneSelected).subscribe(e=>{this.noneSelected=e,this.transDone++})}getSource(e){const n=this.videoSources.find(i=>e.SourceId==i.Id);return null!=n?n.SourceName:this.unassignedText}getVisibility(e){const n=this.visibilities.find(i=>e.ExtendedVisible==i.value);return null!=n?n.prompt:""}openNew(){this.successCount=0,this.errorCount=0,this.dialogHeader=this.headingNew,this.channel=this.resetChannel(),this.displayChannelDlg=!0,this.markPristine(),this.loadIcons()}editChannel(e){this.editingChannel=e,this.successCount=0,this.errorCount=0,this.dialogHeader=this.headingEdit,this.channel=Object.assign({},e),this.displayChannelDlg=!0,this.markPristine(),this.loadMultiplexes(e.SourceId),this.loadIcons(),this.selectedAdvanced=!1}saveChannel(){this.successCount=0,this.errorCount=0,this.displayUnsaved=!1;let e=this.channel.Icon;e.endsWith("\t")&&(e=""),this.channel.Icon=e;let n={CallSign:this.channel.CallSign,ChannelID:this.channel.ChanId,ChannelNumber:this.channel.ChanNum,ChannelName:this.channel.ChannelName,CommMethod:this.channel.CommMethod,ExtendedVisible:this.channel.ExtendedVisible,Format:this.channel.Format,FrequencyID:this.channel.FrequencyId,Icon:e,MplexID:this.channel.MplexId,RecPriority:this.channel.RecPriority,ServiceID:this.channel.ServiceId,SourceID:this.channel.SourceId,TimeOffset:this.channel.TimeOffset,UseEIT:this.channel.UseEIT,XMLTVID:this.channel.XMLTVID};0==this.channel.ChanId?(this.channelOperation=1,this.channelService.GetAvailableChanid().subscribe(i=>{this.channel.ChanId=i.int,n.ChannelID=i.int,this.channelService.AddDBChannel(n).subscribe(this.saveObserver)})):(this.channelOperation=0,this.channelService.UpdateDBChannel(n).subscribe(this.saveObserver))}closeDialog(){if(this.currentForm.dirty){if(this.displayUnsaved)return this.displayUnsaved=!1,this.displayChannelDlg=!1,this.resShowDialog=!1,this.editingChannel=void 0,void this.currentForm.form.markAsPristine();if(this.displayChannelDlg)return void(this.displayUnsaved=!0)}this.currentForm.form.markAsPristine(),this.displayChannelDlg=!1,this.resShowDialog=!1,this.displayUnsaved=!1,this.icondldShowDialog=!1,this.editingChannel=void 0}deleteRequest(e){this.channel=e,this.displayDelete=!0}deleteChannel(e,n){this.successCount=0,this.errorCount=0,this.channel=e,this.channelOperation=n?-2:-1,this.channelService.RemoveDBChannel(e.ChanId).subscribe(this.saveObserver)}deleteSourceRequest(){this.channel=this.resetChannel(),this.displayDeleteSource=!0}deleteSource(){this.working=!0;const e=this.allChannels.find(n=>n.ChanId>0&&(!this.filterEvent.filters.Source.value||this.filterEvent.filters.Source.value==n.Source));e?this.deleteChannel(e,!0):(this.displayDelete=!1,this.displayDeleteSource=!1,this.currentForm.form.markAsPristine(),this.working=!1)}restoreDataRequest(){this.resSources=[],this.resSearchDone=!1,this.allChannels.forEach(e=>{if(e.MplexId&&!this.resSources.find(n=>n.Id==e.SourceId)){const n=this.videoSources.find(i=>i.Id==e.SourceId);n&&this.resSources.push(n)}}),this.resShowDialog=!0,this.markPristine()}restoreSearch(){this.successCount=0,this.errorCount=0,this.resSearchDone=!1,this.channelService.GetRestoreData(this.resSourceId,this.resXMLTV,this.resIcon,this.resVisible).subscribe(e=>{this.resResult=e.ChannelRestore,this.resSearchDone=!0}),this.markPristine()}restoreSave(){this.errorCount=0,this.successCount=0,this.channelOperation=2,this.channelService.SaveRestoreData(this.resSourceId).subscribe(this.saveObserver)}onFilter(e){this.filterEvent=e}downloadIconsRequest(){this.icondldStatus=0,this.icondldShowDialog=!0,this.loadMultiplexes(0)}startIcondld(){0==this.icondldStatus&&(this.icondldCount=0,this.icondldPos=-1,this.errorCount=0,this.successCount=0,this.icondldFound=0,"all"==this.icondldType?this.icondldMax=this.allChannels.length:(this.icondldMax=0,this.allChannels.forEach(e=>{e.Icon||this.icondldMax++}))),this.icondldStatus=1,this.nextIconDld()}nextIconDld(){if(this.icondldPos++,this.icondldPos>=this.allChannels.length)return void(this.icondldStatus=2);if("all"!=this.icondldType)for(;this.allChannels[this.icondldPos].Icon;)if(this.icondldPos++,this.icondldPos>=this.allChannels.length)return void(this.icondldStatus=2);const n=this.allChannels[this.icondldPos],i=this.multiplexes.find(h=>h.MplexId==n.MplexId);let o=0,r=0;i&&(o=i.TransportId,r=i.NetworkId),this.mythService.Proxy(`http://services.mythtv.org/channel-icon/findmissing?csv="${n.ChanId}","${n.ChannelName}","${n.XMLTVID}","${n.CallSign}","${o}","${n.ATSCMajorChan}","${n.ATSCMinorChan}","${r}","${n.ServiceId}"`).subscribe({next:h=>{let b=h.String;if(this.icondldCount++,b&&b.length>0&&'"'==b.charAt(0)){let T=b.split("\n"),w=JSON.parse("["+T[0]+"]");this.icondldFound++,this.channelService.CopyIconToBackend(n.ChanId,w[4]).subscribe({next:k=>{k.bool?this.successCount++:this.errorCount++},error:k=>{console.log("channelService.CopyIconToBackend error",k),this.errorCount++,1==this.icondldStatus&&this.nextIconDld()}})}1==this.icondldStatus&&this.nextIconDld()},error:h=>{console.log("mythService.Proxy error",h),this.errorCount++,1==this.icondldStatus&&this.nextIconDld()}})}stopIcondld(){this.icondldStatus=3}searchIconRequest(){this.iconsrchShowDialog=!0,this.iconsrchResult=[]}iconSearch(){this.successCount=0,this.errorCount=0,this.iconsrchResult=[],this.mythService.Proxy("http://services.mythtv.org/channel-icon/search?s="+this.iconsrchTerm).subscribe({next:n=>{let i=n.String;this.successCount++,i.split("\n").forEach(r=>{if(r.length>1){let u=JSON.parse("["+r+"]");this.iconsrchResult.push({name:u[1],url:u[2]})}}),this.iconsrchResult=[...this.iconsrchResult]},error:n=>{console.log("mythService.Proxy error",n),this.errorCount++}})}iconsrchSave(){if(!this.iconsrchSelect)return;const e=this.iconsrchSelect.url;this.channelService.CopyIconToBackend(this.channel.ChanId,e).subscribe({next:n=>{if(n.bool){this.successCount++;const i=e.split("/");this.loadIcons(i[i.length-1]),this.iconsrchShowDialog=!1}else this.errorCount++},error:n=>{console.log("channelService.CopyIconToBackend error",n),this.errorCount++}})}markPristine(){setTimeout(()=>this.currentForm.form.markAsPristine(),200)}confirm(e){return ue(window.confirm(e))}canDeactivate(){return!this.currentForm||!this.currentForm.dirty||this.confirm(this.warningText)}onWindowClose(e){this.currentForm&&this.currentForm.dirty&&(e.preventDefault(),e.returnValue=!1)}static#e=this.\u0275fac=function(n){return new(n||t)(M(Co),M(Le),M(Re),M(Nt),M(Wt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-channel-editor"]],viewQuery:function(n,i){if(1&n&&K(zue,5),2&n){let o;H(o=G())&&(i.currentForm=o.first)}},hostBindings:function(n,i){1&n&&v("beforeunload",function(r){return i.onWindowClose(r)},0,Nn)},decls:245,vars:301,consts:[["class","block card w-full","style","height: 90vh",4,"ngIf","ngIfElse"],["loading",""],["name","chanform",1,"ml-3","mr-3"],["chanform","ngForm"],[3,"header","visible","modal","closable","closeOnEscape","visibleChange"],[1,"form-group","field"],["for","ChannelName",1,"label","block"],["pInputText","","id","ChannelName","name","ChannelName",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["ChannelName","ngModel"],[1,"block"],["for","ChanNum",1,"label","block"],["pInputText","","id","ChanNum","name","ChanNum",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["ChanNum","ngModel"],["for","FrequencyId",1,"label","block"],["pInputText","","id","FrequencyId","name","FrequencyId",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["FrequencyId","ngModel"],["for","CallSign",1,"label","block"],["pInputText","","id","CallSign","name","CallSign",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["CallSign","ngModel"],["for","icon",1,"label","block"],["name","icon",3,"options","ngModel","ngModelChange"],["pTemplate","selectedItem"],["pTemplate","item"],[3,"innerHTML"],["icon","pi pi-search","styleClass","p-button-success",3,"label","onClick"],["for","ExtendedVisible",1,"label","block"],["optionLabel","prompt","optionValue","value","name","ExtendedVisible",3,"options","ngModel","editable","maxlength","ngModelChange"],["ExtendedVisible","ngModel"],["for","SourceId",1,"label","block"],["optionLabel","SourceName","optionValue","Id","name","SourceId",3,"options","ngModel","editable","maxlength","ngModelChange"],["SourceId","ngModel"],["for","Format",1,"label","block"],["optionLabel","prompt","optionValue","value","name","Format",3,"options","ngModel","editable","maxlength","ngModelChange"],["Format","ngModel"],["for","RecPriority",1,"label","block"],["name","RecPriority","id","RecPriority",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","UseEIT","name","UseEIT",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["UseEIT","ngModel"],["for","XMLTVID",1,"label","block"],["pInputText","","id","XMLTVID","name","XMLTVID",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["XMLTVID","ngModel"],["for","TimeOffset",1,"label","block"],["name","TimeOffset","id","TimeOffset",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","CommMethod",1,"label","block"],["optionLabel","LocalizedName","optionValue","CommMethod","name","CommMethod",3,"options","ngModel","editable","maxlength","ngModelChange"],["CommMethod","ngModel"],[3,"header","selected","selectedChange"],["for","MplexId",1,"label","block"],["optionLabel","Description","optionValue","MplexId","name","MplexId",3,"options","ngModel","editable","maxlength","ngModelChange"],["MplexId","ngModel"],["for","ServiceId",1,"label","block"],["name","ServiceId","id","ServiceId",3,"ngModel","showButtons","min","max","step","ngModelChange"],["pTemplate","footer"],[3,"header","visible","modal","visibleChange"],[3,"header","visible","modal","draggable","resizable","visibleChange"],[4,"ngIf","ngIfElse"],["all",""],[4,"ngIf"],["for","resSourceId",1,"label","block"],["optionLabel","SourceName","optionValue","Id","name","resSourceId",3,"options","ngModel","editable","maxlength","ngModelChange"],["inputId","resXMLTV","name","resXMLTV",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","resVisible","name","resVisible",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","resIcon","name","resIcon",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],[1,"field-radiobutton"],["name","dldtype","value","all","inputId","dldAll",3,"ngModel","disabled","ngModelChange"],["for","dldAll",1,"label","block"],["name","dldtype","value","missing","inputId","dldMissing",3,"ngModel","disabled","ngModelChange"],["for","dldMissing",1,"label","block"],["for","iconsrchTerm",1,"label","block"],["pInputText","","id","iconsrchTerm","name","iconsrchTerm",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["srchTerm","ngModel"],["for","srchicon","class","label block",4,"ngIf"],["name","srchicon","optionlabel","name",3,"options","ngModel","listStyle","ngModelChange"],[1,"block","card","w-full",2,"height","90vh"],["scrollHeight","flex","styleClass","p-datatable-sm p-datatable-striped","responsiveLayout","scroll","sortField","ChanSeq",3,"value","scrollable","rowHover","onFilter"],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],["pButton","","pRipple","","icon","pi pi-plus",1,"p-button-success","mr-2",3,"label","disabled","click"],["icon","pi pi-trash","tooltipPosition","top","styleClass","p-button-danger","class","p-2",3,"pTooltip","label","disabled","onClick",4,"ngIf"],["icon","pi pi-history","tooltipPosition","top","styleClass","p-button-success",1,"p-2",3,"pTooltip","label","disabled","onClick"],["icon","pi pi-download","tooltipPosition","top","styleClass","p-button-success",1,"p-2",3,"pTooltip","label","disabled","onClick"],["class","p-2",4,"ngIf"],["icon","pi pi-trash","tooltipPosition","top","styleClass","p-button-danger",1,"p-2",3,"pTooltip","label","disabled","onClick"],[1,"p-2"],[2,"width","8%"],["pSortableColumn","ChanSeq",2,"width","8%"],["field","ChanSeq"],[2,"width","6%"],[2,"width","10%"],[2,"width","23%"],["pSortableColumn","Source",2,"width","16%"],["field","Source"],[2,"width","7%","white-space","nowrap"],["pButton","","pRipple","","icon","pi pi-pencil","disabled","true",1,"p-button-text"],["pButton","","pRipple","","icon","pi pi-trash","class","p-button-text p-button-danger","disabled","true",4,"ngIf"],["type","text","field","CallSign"],["type","text","field","ChannelName"],["field","Source","matchMode","equals",3,"showMenu"],["pTemplate","filter"],["pButton","","pRipple","","icon","pi pi-trash","disabled","true",1,"p-button-text","p-button-danger"],["name","filter",3,"ngModel","options","placeholder","showClear","onChange"],[3,"ngClass"],[1,"pt-1","pb-0"],["height","32","width","42","style","background-color:#000000","onerror","this.height='0'",3,"src",4,"ngIf","ngIfElse"],["nullIcon",""],[1,"pt-1","pb-0",2,"white-space","nowrap"],["pButton","","pRipple","","icon","pi pi-pencil","tooltipPosition","left",1,"p-button-text",3,"disabled","pTooltip","click"],["pButton","","pRipple","","icon","pi pi-trash","class","p-button-text p-button-danger","tooltipPosition","left",3,"pTooltip","disabled","click",4,"ngIf"],["height","32","width","42","onerror","this.height='0'",2,"background-color","#000000",3,"src"],["height","32","width","42"],["pButton","","pRipple","","icon","pi pi-trash","tooltipPosition","left",1,"p-button-text","p-button-danger",3,"pTooltip","disabled","click"],["class","vertical-align-middle h-2rem",3,"src",4,"ngIf"],[1,"vertical-align-middle","h-2rem",3,"src"],[1,"col-12",2,"text-align","left"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi pi-save","styleClass","p-button-success",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"],["icon","pi pi-times-circle","styleClass","p-button-danger",3,"label","onClick"],["icon","pi pi-check-circle","styleClass","p-button-success",3,"label","onClick"],["icon","pi pi-check-circle","styleClass","p-button-danger",3,"label","onClick"],["icon","pi pi-check-circle","styleClass","p-button-danger",3,"disabled","label","onClick"],["severity","info",3,"text",4,"ngIf"],["icon","pi pi-search","styleClass","p-button-success",3,"label","disabled","onClick"],["severity","info",3,"text"],["class","col-12","style","text-align: left;",4,"ngIf"],["icon","pi pi-times-circle","styleClass","p-button-warning",3,"label","disabled","onClick"],["icon","pi pi-play","styleClass","p-button-success",3,"label","disabled","onClick"],["icon","pi pi-stop","styleClass","p-button-danger",3,"label","disabled","onClick"],["for","srchicon",1,"label","block"],["severity","error","text","Icon Download Failed",4,"ngIf"],["severity","error","text","Icon Download Failed"]],template:function(n,i){if(1&n&&(l(0,"h2"),_(1),f(2,"translate"),c(),m(3,nde,5,3,"div",0),m(4,ide,1,0,"ng-template",null,1,ve),l(6,"form",2,3)(8,"p-dialog",4),v("visibleChange",function(r){return i.displayChannelDlg=r}),l(9,"div",5)(10,"label",6),_(11),f(12,"translate"),c(),l(13,"input",7,8),v("ngModelChange",function(r){return i.channel.ChannelName=r}),c(),l(15,"small",9),_(16),f(17,"translate"),c()(),l(18,"div",5)(19,"label",10),_(20),f(21,"translate"),c(),l(22,"input",11,12),v("ngModelChange",function(r){return i.channel.ChanNum=r}),c(),l(24,"small",9),_(25),f(26,"translate"),c()(),l(27,"div",5)(28,"label",13),_(29),f(30,"translate"),c(),l(31,"input",14,15),v("ngModelChange",function(r){return i.channel.FrequencyId=r}),c(),l(33,"small",9),_(34),f(35,"translate"),c()(),l(36,"div",5)(37,"label",16),_(38),f(39,"translate"),c(),l(40,"input",17,18),v("ngModelChange",function(r){return i.channel.CallSign=r}),c(),l(42,"small",9),_(43),f(44,"translate"),c()(),l(45,"div",5)(46,"label",19),_(47),f(48,"translate"),c(),l(49,"p-dropdown",20),v("ngModelChange",function(r){return i.channel.Icon=r}),m(50,rde,1,1,"ng-template",21),m(51,lde,3,2,"ng-template",22),c(),l(52,"small",9),D(53,"div",23),f(54,"translate"),c()(),l(55,"div",5)(56,"p-button",24),v("onClick",function(){return i.searchIconRequest()}),f(57,"translate"),c(),l(58,"small",9),_(59),f(60,"translate"),c()(),l(61,"div",5)(62,"label",25),_(63),f(64,"translate"),c(),l(65,"p-dropdown",26,27),v("ngModelChange",function(r){return i.channel.ExtendedVisible=r}),c(),l(67,"small",9),_(68),f(69,"translate"),c()(),l(70,"div",5)(71,"label",28),_(72),f(73,"translate"),c(),l(74,"p-dropdown",29,30),v("ngModelChange",function(r){return i.channel.SourceId=r}),c(),l(76,"small",9),_(77),f(78,"translate"),c()(),l(79,"div",5)(80,"label",31),_(81),f(82,"translate"),c(),l(83,"p-dropdown",32,33),v("ngModelChange",function(r){return i.channel.Format=r}),c(),l(85,"small",9),_(86),f(87,"translate"),c()(),l(88,"div",5)(89,"label",34),_(90),f(91,"translate"),c(),l(92,"p-inputNumber",35),v("ngModelChange",function(r){return i.channel.RecPriority=r}),c(),l(93,"small",9),_(94),f(95,"translate"),c()(),l(96,"div",5)(97,"p-checkbox",36,37),v("ngModelChange",function(r){return i.channel.UseEIT=r}),f(99,"translate"),c(),l(100,"small",9),_(101),f(102,"translate"),c()(),l(103,"div",5)(104,"label",38),_(105),f(106,"translate"),c(),l(107,"input",39,40),v("ngModelChange",function(r){return i.channel.XMLTVID=r}),c(),l(109,"small",9),_(110),f(111,"translate"),c()(),l(112,"div",5)(113,"label",41),_(114),f(115,"translate"),c(),l(116,"p-inputNumber",42),v("ngModelChange",function(r){return i.channel.TimeOffset=r}),c(),l(117,"small",9),_(118),f(119,"translate"),c()(),l(120,"div",5)(121,"label",43),_(122),f(123,"translate"),c(),l(124,"p-dropdown",44,45),v("ngModelChange",function(r){return i.channel.CommMethod=r}),c(),l(126,"small",9),_(127),f(128,"translate"),c()(),l(129,"p-accordion")(130,"p-accordionTab",46),v("selectedChange",function(r){return i.selectedAdvanced=r}),f(131,"translate"),l(132,"div",5)(133,"label",47),_(134),f(135,"translate"),c(),l(136,"p-dropdown",48,49),v("ngModelChange",function(r){return i.channel.MplexId=r}),c(),l(138,"small",9),_(139),f(140,"translate"),c()(),l(141,"div",5)(142,"label",50),_(143),f(144,"translate"),c(),l(145,"p-inputNumber",51),v("ngModelChange",function(r){return i.channel.ServiceId=r}),c(),l(146,"small",9),_(147),f(148,"translate"),c()()()(),D(149,"br")(150,"br")(151,"br")(152,"br")(153,"br")(154,"br")(155,"br")(156,"br"),m(157,dde,7,9,"ng-template",52),c(),l(158,"p-dialog",53),v("visibleChange",function(r){return i.displayUnsaved=r}),f(159,"translate"),l(160,"p"),_(161),f(162,"translate"),c(),m(163,pde,4,6,"ng-template",52),c(),l(164,"p-dialog",54),v("visibleChange",function(r){return i.displayDelete=r}),f(165,"translate"),l(166,"h2"),_(167),f(168,"translate"),c(),l(169,"p"),_(170),f(171,"translate"),c(),m(172,mde,6,7,"ng-template",52),c(),l(173,"p-dialog",54),v("visibleChange",function(r){return i.displayDeleteSource=r}),f(174,"translate"),l(175,"h2"),_(176),f(177,"translate"),c(),m(178,gde,4,6,"p",55),m(179,_de,4,3,"ng-template",null,56,ve),m(181,bde,4,5,"div",57),m(182,Cde,6,8,"ng-template",52),c(),l(183,"p-dialog",4),v("visibleChange",function(r){return i.resShowDialog=r}),f(184,"translate"),l(185,"div",5)(186,"label",58),_(187),f(188,"translate"),c(),l(189,"p-dropdown",59),v("ngModelChange",function(r){return i.resSourceId=r}),c(),l(190,"small",9),_(191),f(192,"translate"),c()(),l(193,"div",5)(194,"p-checkbox",60),v("ngModelChange",function(r){return i.resXMLTV=r}),f(195,"translate"),c(),l(196,"small",9),_(197),f(198,"translate"),c()(),l(199,"div",5)(200,"p-checkbox",61),v("ngModelChange",function(r){return i.resVisible=r}),f(201,"translate"),c(),l(202,"small",9),_(203),f(204,"translate"),c()(),l(205,"div",5)(206,"p-checkbox",62),v("ngModelChange",function(r){return i.resIcon=r}),f(207,"translate"),c(),l(208,"small",9),_(209),f(210,"translate"),c()(),m(211,Sde,12,14,"ng-template",52),c(),l(212,"p-dialog",4),v("visibleChange",function(r){return i.icondldShowDialog=r}),f(213,"translate"),l(214,"div",63)(215,"p-radioButton",64),v("ngModelChange",function(r){return i.icondldType=r}),c(),l(216,"label",65),_(217),f(218,"translate"),c()(),l(219,"div",63)(220,"p-radioButton",66),v("ngModelChange",function(r){return i.icondldType=r}),c(),l(221,"label",67),_(222),f(223,"translate"),c()(),m(224,kde,9,14,"ng-template",52),c(),l(225,"p-dialog",4),v("visibleChange",function(r){return i.iconsrchShowDialog=r}),f(226,"translate"),l(227,"div",5)(228,"label",68),_(229),f(230,"translate"),c(),l(231,"input",69,70),v("ngModelChange",function(r){return i.iconsrchTerm=r}),c(),l(233,"small",9),_(234),f(235,"translate"),c()(),l(236,"div",5)(237,"p-button",24),v("onClick",function(){return i.iconSearch()}),f(238,"translate"),c()(),l(239,"div",5),m(240,Ede,3,3,"label",71),m(241,Lde,3,3,"label",71),l(242,"p-listbox",72),v("ngModelChange",function(r){return i.iconsrchSelect=r}),m(243,Rde,3,2,"ng-template",22),c()(),m(244,Ade,6,8,"ng-template",52),c()()),2&n){const o=B(5),r=B(180);a(1),S(g(2,170,"settings.chanedit.title")),a(2),d("ngIf",i.chansLoaded&&i.transDone>=i.numTranslations)("ngIfElse",o),a(5),j(V(286,Pde)),I("header",i.dialogHeader),d("visible",i.displayChannelDlg)("modal",!0)("closable",!1)("closeOnEscape",!1),a(3),S(g(12,172,"settings.chanedit.channame")),a(2),d("ngModel",i.channel.ChannelName),a(3),x(" ",g(17,174,"settings.chanedit.channame_desc")," "),a(4),S(g(21,176,"settings.chanedit.channum")),a(2),d("ngModel",i.channel.ChanNum),a(3),x(" ",g(26,178,"settings.chanedit.channum_desc")," "),a(4),S(g(30,180,"settings.chanedit.freqid")),a(2),d("ngModel",i.channel.FrequencyId),a(3),x(" ",g(35,182,"settings.chanedit.freqid_desc")," "),a(4),S(g(39,184,"settings.chanedit.callsign")),a(2),d("ngModel",i.channel.CallSign),a(3),x(" ",g(44,186,"settings.chanedit.callsign_desc")," "),a(4),S(g(48,188,"settings.chanedit.icon_label")),a(2),d("options",i.icons)("ngModel",i.channel.Icon),a(4),d("innerHTML",mt(54,190,"settings.chanedit.icon_desc",W(287,Fde,'"'+i.iconDir+'"
')),Zt),a(3),I("label",g(57,193,"settings.chanedit.iconsrch_title")),a(3),x(" ",g(60,195,"settings.chanedit.iconsearch_desc")," "),a(4),S(g(64,197,"settings.chanedit.visible_label")),a(2),j(V(289,Ma)),d("options",i.visibilities)("ngModel",i.channel.ExtendedVisible)("editable",!1)("maxlength",0),a(3),x(" ",g(69,199,"settings.chanedit.visible_desc")," "),a(4),S(g(73,201,"settings.chanedit.source_label")),a(2),j(V(290,Ma)),d("options",i.videoSources)("ngModel",i.channel.SourceId)("editable",!1)("maxlength",0),a(3),x(" ",g(78,203,"settings.chanedit.source_desc")," "),a(4),S(g(82,205,"settings.chanedit.format_label")),a(2),j(V(291,Ma)),d("options",i.tvFormats)("ngModel",i.channel.Format)("editable",!1)("maxlength",0),a(3),x(" ",g(87,207,"settings.chanedit.format_desc")," "),a(4),S(g(91,209,"settings.chanedit.priority_label")),a(2),d("ngModel",i.channel.RecPriority)("showButtons",!0)("min",-99)("max",99)("step",1),a(2),x(" ",g(95,211,"settings.chanedit.priority_desc")," "),a(3),I("label",g(99,213,"settings.chanedit.eit_label")),d("ngModel",i.channel.UseEIT)("binary",!0),a(4),x(" ",g(102,215,"settings.chanedit.eit_desc")," "),a(4),S(g(106,217,"settings.chanedit.xmltvid_label")),a(2),d("ngModel",i.channel.XMLTVID),a(3),x(" ",g(111,219,"settings.chanedit.xmltvid_desc")," "),a(4),S(g(115,221,"settings.chanedit.timeoffset_label")),a(2),d("ngModel",i.channel.TimeOffset)("showButtons",!0)("min",-1440)("max",1440)("step",30),a(2),x(" ",g(119,223,"settings.chanedit.timeoffset_desc")," "),a(4),S(g(123,225,"settings.chanedit.commmethod_label")),a(2),j(V(292,Ma)),d("options",i.commMethods)("ngModel",i.channel.CommMethod)("editable",!1)("maxlength",0),a(3),x(" ",g(128,227,"settings.chanedit.commmethod_desc")," "),a(3),I("header",g(131,229,"settings.chanedit_advanced")),d("selected",i.selectedAdvanced),a(4),S(g(135,231,"settings.chanedit.mplex_label")),a(2),j(V(293,Ma)),d("options",i.multiplexes)("ngModel",i.channel.MplexId)("editable",!1)("maxlength",0),a(3),x(" ",g(140,233,"settings.chanedit.mplex_desc")," "),a(4),S(g(144,235,"settings.chanedit.serviceid_label")),a(2),d("ngModel",i.channel.ServiceId)("showButtons",!0)("min",-1)("max",65535)("step",1),a(2),x(" ",g(148,237,"settings.chanedit.serviceid_desc")," "),a(11),I("header",g(159,239,"common.unsaved_heading")),d("visible",i.displayUnsaved)("modal",!0),a(3),S(g(162,241,"common.unsaved_message")),a(3),I("header",g(165,243,"settings.chanedit.delete_this")),d("visible",i.displayDelete)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(g(168,245,"settings.common.ru_sure")),a(3),S(mt(171,247,"settings.chanedit.delete_details",Bt(294,Nde,i.channel.ChanNum,i.channel.ChannelName,i.getSource(i.channel)))),a(3),I("header",g(174,250,"settings.chanedit.delete_source")),d("visible",i.displayDeleteSource)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(g(177,252,"settings.common.ru_sure")),a(2),d("ngIf",i.filterEvent.filters.Source.value)("ngIfElse",r),a(3),d("ngIf",0!=i.channel.ChanId),a(2),I("header",g(184,254,"settings.chanedit.res_title")),d("visible",i.resShowDialog)("modal",!0)("closable",!1)("closeOnEscape",!1),a(4),S(g(188,256,"settings.chanedit.source_label")),a(2),j(V(298,Ma)),d("options",i.resSources)("ngModel",i.resSourceId)("editable",!1)("maxlength",0),a(2),x(" ",g(192,258,"settings.chanedit.res_source_desc")," "),a(3),I("label",g(195,260,"settings.chanedit.res_xmltv_label")),d("ngModel",i.resXMLTV)("binary",!0),a(3),x(" ",g(198,262,"settings.chanedit.res_xmltv_desc")," "),a(3),I("label",g(201,264,"settings.chanedit.res_visible_label")),d("ngModel",i.resVisible)("binary",!0),a(3),x(" ",g(204,266,"settings.chanedit.res_visible_desc")," "),a(3),I("label",g(207,268,"settings.chanedit.res_icon_label")),d("ngModel",i.resIcon)("binary",!0),a(3),x(" ",g(210,270,"settings.chanedit.res_icon_desc")," "),a(3),I("header",g(213,272,"settings.chanedit.icondld_title")),d("visible",i.icondldShowDialog)("modal",!0)("closable",!1)("closeOnEscape",!1),a(3),d("ngModel",i.icondldType)("disabled",i.icondldStatus>0),a(2),S(g(218,274,"settings.chanedit.iconall_title")),a(3),d("ngModel",i.icondldType)("disabled",i.icondldStatus>0),a(2),S(g(223,276,"settings.chanedit.iconmissing_title")),a(3),j(V(299,Vde)),I("header",g(226,278,"settings.chanedit.iconsrch_title")),d("visible",i.iconsrchShowDialog)("modal",!0)("closable",!1)("closeOnEscape",!1),a(4),S(g(230,280,"settings.chanedit.iconsrchterm_title")),a(2),d("ngModel",i.iconsrchTerm),a(3),x(" ",g(235,282,"settings.chanedit.iconsrchterm_desc")," "),a(3),I("label",g(238,284,"common.search")),a(3),d("ngIf",i.iconsrchResult.length>0),a(1),d("ngIf",0==i.iconsrchResult.length&&(i.successCount>0||i.errorCount>0)),a(1),d("options",i.iconsrchResult)("ngModel",i.iconsrchSelect)("listStyle",V(300,Bde))}},dependencies:[Fe,ne,We,Xe,xe,$e,In,Ce,He,$t,vs,bs,ae,Sn,Te,ln,pn,Gt,vt,es,qe,Ia,bt,yn,Sa,xa,Ix,Ic,pe]})}return t})(),Hde=(()=>{class t{constructor(e){this.router=e}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)(M(Nt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-wiz-channeledit"]],decls:11,vars:6,consts:[[1,"m-5"],[1,"flex","justify-content-end"],["icon","pi pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"]],template:function(n,i){1&n&&(l(0,"p-card",0),D(1,"app-channel-editor")(2,"br")(3,"br")(4,"br")(5,"br"),l(6,"div",1)(7,"p-button",2),v("onClick",function(){return i.router.navigate(["setupwizard/input-connections"])}),f(8,"translate"),c(),l(9,"p-button",3),v("onClick",function(){return i.router.navigate(["setupwizard/storage-groups"])}),f(10,"translate"),c()()()),2&n&&(a(7),I("label",g(8,2,"common.back")),a(2),I("label",g(10,4,"common.next")))},dependencies:[Te,Ge,Yx,pe]})}return t})(),Gde=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=ge({type:t});static#n=this.\u0275inj=me({imports:[zn.forChild([{path:"setupwizard",component:Bx,children:[{path:"selectlanguage",component:yre,canDeactivate:[ns]},{path:"dbsetup",component:Jre,canDeactivate:[ns]},{path:"general",component:pce,canDeactivate:[ns]},{path:"capture-cards",component:Wx,canDeactivate:[ns]},{path:"recording-profiles",component:Kx,canDeactivate:[ns]},{path:"video-sources",component:lue,canDeactivate:[ns]},{path:"input-connections",component:Zx,canDeactivate:[ns]},{path:"channel-editor",component:Hde,canDeactivate:[ns]},{path:"storage-groups",component:Pue,canDeactivate:[ns]},{path:"system-events",component:que,canDeactivate:[ns]}]}]),zn]})}return t})(),u1=(()=>{class t{toTime(e){return new Date(e).toISOString()}toStartTime(e){return this.toTime(e)}toEndTime(e){let n=new Date(e),i=new Date(n.getTime()+this.guide_millisecs);return this.toTime(i.toISOString())}toHalfHour(e){let n=new Date(e);return n.setMinutes(n.getMinutes()<30?0:30),n.setSeconds(0),n}constructor(e){this.httpClient=e,this.guide_hours=3,this.guide_millisecs=60*this.guide_hours*60*1e3,this.startDate=new Date}AddToChannelGroup(e){return this.httpClient.post("/Guide/AddToChannelGroup",e)}GetCategoryList(){return this.httpClient.get("/Guide/GetCategoryList")}GetChannelGroupList(e){let n=(new Ie).set("IncludeEmpty",e);return this.httpClient.get("/Guide/GetChannelGroupList",{params:n})}GetChannelIcon(e){let n=(new Ie).set("ChanId",e.ChanId).set("Width",e.Width).set("Height",e.Height);return this.httpClient.get("/Guide/GetChannelIcon",{params:n})}GetProgramDetails(e){let n=(new Ie).set("ChanId",e.ChanId).set("StartTime",e.StartTime);return this.httpClient.get("/Guide/GetProgramDetails",{params:n})}GetProgramGuide(e,n){e&&(this.startDate=e);let i=this.toHalfHour(this.startDate).toISOString(),o={StartTime:this.toStartTime(i),EndTime:this.toEndTime(i),Details:!0,ChannelGroupId:n};return this.httpClient.post("/Guide/GetProgramGuide",o)}GetProgramList(e){let n=new Ie;for(const[i,o]of Object.entries(e))n=n.set(i,o);return this.httpClient.get("/Guide/GetProgramList",{params:n})}GetStoredSearches(e){let n=(new Ie).set("Type",e);return this.httpClient.get("/Guide/GetStoredSearches",{params:n})}RemoveFromChannelGroup(e){return this.httpClient.post("/Guide/RemoveFromChannelGroup",e)}AddChannelGroup(e){return this.httpClient.post("/Guide/AddChannelGroup",{Name:e})}UpdateChannelGroup(e,n){return this.httpClient.post("/Guide/UpdateChannelGroup",{OldName:e,newName:n})}RemoveChannelGroup(e){return this.httpClient.post("/Guide/RemoveChannelGroup",{Name:e})}static#e=this.\u0275fac=function(n){return new(n||t)(ie(Ki))};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function qde(t,s){if(1&t){const e=E();l(0,"div",19)(1,"p-dropdown",20),v("ngModelChange",function(i){return C(e),y(p(2).channelGroup=i)})("onChange",function(){return C(e),y(p(2).refresh())}),f(2,"translate"),c()()}if(2&t){const e=p(2);a(1),I("pTooltip",g(2,3,"dashboard.guide.channel_group")),d("ngModel",e.channelGroup)("options",e.channelGroups)}}function zde(t,s){if(1&t&&(l(0,"div",21)(1,"b"),_(2),f(3,"translate"),c()()),2&t){const e=p(2);a(2),td(" ",g(3,4,"dashboard.guide.channel")," ",e.channel.ChanNum," ",e.channel.CallSign," ",e.channel.ChannelName,"")}}function Ude(t,s){1&t&&(l(0,"div",21)(1,"b"),_(2),f(3,"translate"),c()()),2&t&&(a(2),x(" ",g(3,1,"dashboard.guide.people_search")," "))}function jde(t,s){1&t&&(l(0,"div",21)(1,"b"),_(2),f(3,"translate"),c()()),2&t&&(a(2),x(" ",g(3,1,"dashboard.guide.title_search")," "))}function $de(t,s){1&t&&(l(0,"div",21)(1,"b"),_(2),f(3,"translate"),c()()),2&t&&(a(2),x(" ",g(3,1,"dashboard.guide.full_search")," "))}function Wde(t,s){1&t&&(l(0,"div",21)(1,"b"),_(2),f(3,"translate"),c()()),2&t&&(a(2),x(" ",g(3,1,"dashboard.guide.cat_search")," "))}function Kde(t,s){if(1&t){const e=E();l(0,"button",32),v("click",function(){return C(e),y(p(3).newSearch())}),f(1,"translate"),c()}2&t&&I("pTooltip",g(1,1,"dashboard.guide.new_search"))}function Qde(t,s){if(1&t){const e=E();l(0,"button",33),v("click",function(){return C(e),y(p(3).movieSearch())}),f(1,"translate"),c()}2&t&&I("pTooltip",g(1,1,"dashboard.guide.movies"))}function Jde(t,s){if(1&t){const e=E();l(0,"p-checkbox",34,35),v("ngModelChange",function(i){return C(e),y(p(3).onlyNew=i)})("onChange",function(){return C(e),y(p(3).newSearch())}),f(2,"translate"),f(3,"translate"),c()}if(2&t){const e=p(3);I("label",g(2,4,"dashboard.guide.new")),I("pTooltip",g(3,6,"dashboard.guide.new_search")),d("ngModel",e.onlyNew)("binary",!0)}}function Zde(t,s){if(1&t){const e=E();l(0,"p-checkbox",36,37),v("ngModelChange",function(i){return C(e),y(p(3).onlyMovies=i)})("onChange",function(){return C(e),y(p(3).newSearch())}),f(2,"translate"),f(3,"translate"),c()}if(2&t){const e=p(3);I("label",g(2,4,"dashboard.guide.movies")),I("pTooltip",g(3,6,"dashboard.guide.movies")),d("ngModel",e.onlyMovies)("binary",!0)}}function Yde(t,s){if(1&t){const e=E();l(0,"div",22)(1,"input",23),v("ngModelChange",function(i){return C(e),y(p(2).searchValue=i)}),f(2,"translate"),c(),l(3,"button",24),v("click",function(){return C(e),y(p(2).titleSearch())}),f(4,"translate"),c(),l(5,"button",25),v("click",function(){return C(e),y(p(2).peopleSearch())}),f(6,"translate"),c(),l(7,"button",26),v("click",function(){return C(e),y(p(2).fullSearch())}),f(8,"translate"),c(),l(9,"button",27),v("click",function(){return C(e),y(p(2).catSearch())}),f(10,"translate"),c(),m(11,Kde,2,3,"button",28),m(12,Qde,2,3,"button",29),m(13,Jde,4,8,"p-checkbox",30),m(14,Zde,4,8,"p-checkbox",31),c()}if(2&t){const e=p(2);a(1),I("placeholder",g(2,10,"common.search_placeholder")),d("ngModel",e.searchValue),a(2),I("pTooltip",g(4,12,"dashboard.guide.title_search")),a(2),I("pTooltip",g(6,14,"dashboard.guide.people_search")),a(2),I("pTooltip",g(8,16,"dashboard.guide.full_search")),a(2),I("pTooltip",g(10,18,"dashboard.guide.cat_search")),a(2),d("ngIf",e.displayType==e.GRID),a(1),d("ngIf",e.displayType==e.GRID),a(1),d("ngIf",e.displayType!=e.GRID),a(1),d("ngIf",e.displayType!=e.GRID)}}function Xde(t,s){if(1&t){const e=E();l(0,"div",8)(1,"button",38),v("click",function(){return C(e),y(p(2).onGrid())}),f(2,"translate"),c()()}2&t&&(a(1),I("pTooltip",g(2,1,"dashboard.guide.retgrid")))}const epe=function(){return{width:"30px",height:"30px"}};function tpe(t,s){1&t&&(l(0,"div"),D(1,"p-progressSpinner"),c()),2&t&&(a(1),j(V(2,epe)))}function npe(t,s){if(1&t){const e=E();l(0,"div")(1,"button",39),v("click",function(){C(e);const i=p(3);return i.refreshing=!0,y(i.refresh())}),f(2,"translate"),c()()}2&t&&(a(1),I("pTooltip",g(2,1,"common.refresh")))}const ipe=function(t,s){return[t,s]};function spe(t,s){if(1&t&&m(0,npe,3,3,"div",18),2&t){const e=p(2);d("ngIf",Se(1,ipe,e.CHANNEL,e.GRID).indexOf(e.displayType)>-1)}}function ope(t,s){}function rpe(t,s){if(1&t&&(Q(0),l(1,"div",49),D(2,"app-guide-timebar",50),c(),J()),2&t){const e=p(4);a(2),d("guide",e)}}function ape(t,s){if(1&t&&(Q(0),D(1,"app-guide-programentry",51),J()),2&t){const e=p().$implicit,n=p().$implicit,i=p(3);a(1),d("program",e)("guideStartTime",i.m_programGuide.ProgramGuide.StartTime)("guideEndTime",i.m_programGuide.ProgramGuide.EndTime)("guideComponent",i)("channel",n)}}function lpe(t,s){if(1&t&&(Q(0),m(1,ape,2,5,"ng-container",18),J()),2&t){const e=s.$implicit,n=p(4);a(1),d("ngIf",!n.timeChange&&n.inDisplayWindow(e.StartTime,e.EndTime))}}function cpe(t,s){if(1&t&&(l(0,"div",43),m(1,rpe,3,1,"ng-container",18),l(2,"div",44)(3,"div",45),D(4,"app-guide-channelicon",46),c(),l(5,"div",47),m(6,lpe,2,1,"ng-container",48),c()()()),2&t){const e=s.$implicit,n=s.rowIndex,i=p(3);a(1),d("ngIf",n%5==0),a(3),d("channel",e)("guideComponent",i),a(2),d("ngForOf",e.Programs)}}const upe=function(){return{width:"100%",height:"90vh"}};function dpe(t,s){if(1&t&&(l(0,"div")(1,"p-scrollPanel")(2,"p-dataView",40),m(3,ope,0,0,"ng-template",41),m(4,cpe,7,4,"ng-template",42),c()()()),2&t){const e=p(2);a(1),j(V(4,upe)),a(1),d("value",e.m_programGuide.ProgramGuide.Channels)("totalRecords",e.m_programGuide.ProgramGuide.TotalAvailable)}}function ppe(t,s){if(1&t&&(l(0,"div"),D(1,"app-programs",52),c()),2&t){const e=p(2);a(1),d("inter",e.inter)("programs",e.listPrograms)}}const d1=function(t,s,e,n,i,o){return[t,s,e,n,i,o]};function hpe(t,s){if(1&t){const e=E();l(0,"div",5)(1,"div",6),m(2,qde,3,5,"div",7),l(3,"div",8)(4,"p-calendar",9),v("ngModelChange",function(i){return C(e),y(p().m_pickerDate=i)})("onClose",function(){return C(e),y(p().onDateChange())})("keyup.enter",function(){return C(e),y(p().onDateChange())})("onBlur",function(){return C(e),y(p().onDateChange())}),f(5,"translate"),c()(),m(6,zde,4,6,"div",10),m(7,Ude,4,3,"div",10),m(8,jde,4,3,"div",10),m(9,$de,4,3,"div",10),m(10,Wde,4,3,"div",10),m(11,Yde,15,20,"div",11),m(12,Xde,3,3,"div",12),l(13,"div",8),m(14,tpe,2,3,"div",13),m(15,spe,1,4,"ng-template",null,14,ve),c(),l(17,"div",8)(18,"button",15),v("click",function(){return C(e),y(p().showLegend=!0)}),f(19,"translate"),c()(),l(20,"div",8)(21,"a",16),D(22,"button",17),f(23,"translate"),c()()(),m(24,dpe,5,5,"div",18),m(25,ppe,2,2,"div",18),c()}if(2&t){const e=B(16),n=p();a(2),d("ngIf",n.displayType==n.GRID),a(2),I("pTooltip",g(5,24,"dashboard.guide.calendar_tip")),d("ngModel",n.m_pickerDate)("showTime",!0)("stepMinute",30)("dateFormat","yy/mm/dd")("selectOtherMonths",!0)("showIcon",!0)("showOnFocus",!0)("showButtonBar",!0)("clearButtonStyleClass","hidden"),a(2),d("ngIf",n.displayType==n.CHANNEL),a(1),d("ngIf",n.displayType==n.PEOPLESEARCH),a(1),d("ngIf",n.displayType==n.TITLESEARCH),a(1),d("ngIf",n.displayType==n.FULLSEARCH),a(1),d("ngIf",n.displayType==n.CATSEARCH),a(1),d("ngIf",As(30,d1,n.GRID,n.TITLESEARCH,n.PEOPLESEARCH,n.FULLSEARCH,n.CATSEARCH,n.ANYSEARCH).indexOf(n.displayType)>-1),a(1),d("ngIf",As(37,d1,n.CHANNEL,n.TITLESEARCH,n.PEOPLESEARCH,n.FULLSEARCH,n.CATSEARCH,n.ANYSEARCH).indexOf(n.displayType)>-1),a(2),d("ngIf",n.refreshing)("ngIfElse",e),a(4),I("label",g(19,26,"dashboard.guide.colors")),a(4),I("pTooltip",g(23,28,"common.help")),a(2),d("ngIf",n.displayType==n.GRID),a(1),d("ngIf",As(44,d1,n.CHANNEL,n.TITLESEARCH,n.PEOPLESEARCH,n.FULLSEARCH,n.CATSEARCH,n.ANYSEARCH).indexOf(n.displayType)>-1)}}function mpe(t,s){1&t&&D(0,"p-progressSpinner")}function fpe(t,s){if(1&t&&D(0,"app-legend",53),2&t){const e=p();d("programGuide",e.displayType==e.GRID?e.m_programGuide:null)("listPrograms",e.displayType==e.GRID?null:e.listPrograms)}}const gpe=function(){return{width:"80vw"}};let Xx=(()=>{class t{constructor(e,n,i){this.guideService=e,this.route=n,this.translate=i,this.m_startDate=new Date,this.m_pickerDate=new Date,this.m_endDate=new Date,this.channelGroups=[],this.m_channelData=[],this.m_channelTotal=10,this.m_rows=10,this.listPrograms=[],this.allGroup={GroupId:0,Name:this.translate.instant("settings.chanedit.all"),Password:""},this.channelGroup=this.allGroup,this.loaded=!1,this.refreshing=!1,this.timeChange=!1,this.inter={summaryComponent:this},this.GRID=1,this.CHANNEL=2,this.TITLESEARCH=3,this.PEOPLESEARCH=4,this.FULLSEARCH=5,this.CATSEARCH=6,this.ANYSEARCH=7,this.displayType=this.GRID,this.searchValue="",this.showLegend=!1,this.onlyNew=!1,this.onlyMovies=!1,this.translate.onLangChange.subscribe(o=>{console.log("Event: language change, new language ("+o.lang+")"),this.switchLanguage(o.lang)})}ngOnInit(){let e;this.startChanid=this.route.snapshot.queryParams.Chanid,e=new Date(this.route.snapshot.queryParams.StartTime),Number.isNaN(e.valueOf())&&(e=new Date(Number(this.route.snapshot.queryParams.StartTime))),Number.isNaN(e.valueOf())&&(e=void 0),this.startTime=e||void 0,this.startSchedule=this.route.snapshot.queryParams.Schedule,this.fetchData(this.startTime)}switchLanguage(e){this.translate.use(e)}fetchData(e){0==this.channelGroups.length?this.guideService.GetChannelGroupList(!1).subscribe(n=>{this.channelGroups=n.ChannelGroupList.ChannelGroups,this.channelGroups.unshift(this.allGroup);let i=localStorage.getItem("ChannelGroup");i||(i=this.allGroup.Name),this.route.snapshot.queryParams.ChannelGroup&&(i=this.route.snapshot.queryParams.ChannelGroup);let o=this.channelGroups.find(r=>r.Name==i);o&&(this.channelGroup=o),localStorage.setItem("ChannelGroup",this.channelGroup.Name),this.fetchGuide(e)}):this.fetchGuide(e)}fetchGuide(e){this.guideService.GetProgramGuide(e,this.channelGroup.GroupId).subscribe(n=>{this.m_programGuide=n,this.m_startDate=new Date(n.ProgramGuide.StartTime),this.m_pickerDate=new Date(this.m_startDate),this.m_endDate=new Date(n.ProgramGuide.EndTime),this.m_channelData=n.ProgramGuide.Channels,this.m_channelTotal=n.ProgramGuide.TotalAvailable,this.loaded=!0,this.refreshing=!1,this.timeChange=!1,this.startChanid&&setTimeout(()=>{if(document.getElementById("Chan"+this.startChanid)?.scrollIntoView(),this.startSchedule){let o=this.m_programGuide.ProgramGuide.Channels.find(r=>r.ChanId==this.startChanid);if(o){let r=o.Programs.find(u=>this.startTime?.valueOf()==new Date(u.StartTime).valueOf());r&&this.inter.sched?.open(r,o)}}this.startChanid=void 0},100)})}fetchDetails(){let e=this.m_startDate.getTime(),i={Details:!0,StartTime:new Date(e+1e3).toISOString()};switch(""==this.searchValue&&(this.onlyMovies||this.onlyNew)&&(this.displayType=this.ANYSEARCH),this.displayType){case this.CHANNEL:i.ChanId=this.channel.ChanId;break;case this.TITLESEARCH:i.TitleFilter=this.searchValue;break;case this.PEOPLESEARCH:i.PersonFilter=this.searchValue;break;case this.FULLSEARCH:i.KeywordFilter=this.searchValue;break;case this.CATSEARCH:i.CategoryFilter=this.searchValue}i.OnlyNew=this.onlyNew,this.onlyMovies&&(i.CatType="movie"),i.Count=1e4,this.listPrograms=[],this.guideService.GetProgramList(i).subscribe(o=>{this.listPrograms=o.ProgramList.Programs,this.loaded=!0,this.refreshing=!1})}inDisplayWindow(e,n){let i=new Date(e),o=new Date(n),r=new Date(this.m_startDate),u=new Date(this.m_endDate);return!(o<=r||i>=u)&&i1?(this.displayType=this.TITLESEARCH,this.refresh()):this.anySearch()}peopleSearch(){this.searchValue=this.searchValue.trim(),this.searchValue.length>1?(this.displayType=this.PEOPLESEARCH,this.refresh()):this.anySearch()}fullSearch(){this.searchValue=this.searchValue.trim(),this.searchValue.length>1?(this.displayType=this.FULLSEARCH,this.refresh()):this.anySearch()}anySearch(){this.onlyMovies||this.onlyNew||this.searchValue?this.refresh():this.onGrid()}catSearch(){this.searchValue=this.searchValue.trim(),this.searchValue.length>1?(this.displayType=this.CATSEARCH,this.refresh()):this.anySearch()}newSearch(){this.displayType==this.GRID?(this.displayType=this.ANYSEARCH,this.onlyNew=!0,this.refresh()):this.anySearch()}movieSearch(){this.displayType==this.GRID?(this.displayType=this.ANYSEARCH,this.onlyMovies=!0,this.refresh()):this.anySearch()}static#e=this.\u0275fac=function(n){return new(n||t)(M(u1),M(bo),M(Le))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-guide"]],decls:10,vars:14,consts:[["style","min-width: 960px;",4,"ngIf","ngIfElse"],[3,"inter"],["loading",""],[3,"header","visible","modal","visibleChange"],["pTemplate",""],[2,"min-width","960px"],[1,"flex"],["class","flex align-items-center pr-5",4,"ngIf"],[1,"flex","align-items-center"],["tooltipPosition","top",3,"ngModel","showTime","stepMinute","dateFormat","selectOtherMonths","showIcon","showOnFocus","showButtonBar","clearButtonStyleClass","pTooltip","ngModelChange","onClose","keyup.enter","onBlur"],["class","flex align-items-center p-5",4,"ngIf"],["class","flex align-items-center pl-5",4,"ngIf"],["class","flex align-items-center",4,"ngIf"],[4,"ngIf","ngIfElse"],["refreshBn",""],["type","text","pButton","",3,"label","click"],["href","https://www.mythtv.org/wiki/Web_Application:Program_Guide","target","mythtv_wiki"],["pButton","","pRipple","","icon","pi pi-question-circle","tooltipPosition","top",1,"p-button-text",3,"pTooltip"],[4,"ngIf"],[1,"flex","align-items-center","pr-5"],["name","channelGroup","optionLabel","Name","tooltipPosition","top",3,"ngModel","options","pTooltip","ngModelChange","onChange"],[1,"flex","align-items-center","p-5"],[1,"flex","align-items-center","pl-5"],["type","text","pInputText","","id","searchValue","name","searchValue",1,"text-xl",3,"ngModel","placeholder","ngModelChange"],["pButton","","pRipple","","icon","pi pi-search","tooltipPosition","top",1,"p-button-text","w-2rem",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi pi-user","tooltipPosition","top",1,"p-button-text","w-2rem",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi pi-search-plus","tooltipPosition","top",1,"p-button-text","w-2rem",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi pi-bell","tooltipPosition","top",1,"p-button-text","w-2rem",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi pi-sun","class","p-button-text w-2rem","tooltipPosition","top",3,"pTooltip","click",4,"ngIf"],["pButton","","pRipple","","icon","pi pi-video","class","p-button-text w-2rem","tooltipPosition","top",3,"pTooltip","click",4,"ngIf"],["inputId","OnlyNew","name","OnlyNew","class","mx-1","checkboxIcon","pi pi-check","tooltipPosition","top",3,"ngModel","binary","label","pTooltip","ngModelChange","onChange",4,"ngIf"],["inputId","Movies","name","OnlyMovies","class","mx-1","checkboxIcon","pi pi-check","tooltipPosition","top",3,"ngModel","binary","label","pTooltip","ngModelChange","onChange",4,"ngIf"],["pButton","","pRipple","","icon","pi pi-sun","tooltipPosition","top",1,"p-button-text","w-2rem",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi pi-video","tooltipPosition","top",1,"p-button-text","w-2rem",3,"pTooltip","click"],["inputId","OnlyNew","name","OnlyNew","checkboxIcon","pi pi-check","tooltipPosition","top",1,"mx-1",3,"ngModel","binary","label","pTooltip","ngModelChange","onChange"],["OnlyNew","ngModel"],["inputId","Movies","name","OnlyMovies","checkboxIcon","pi pi-check","tooltipPosition","top",1,"mx-1",3,"ngModel","binary","label","pTooltip","ngModelChange","onChange"],["OnlyMovies","ngModel"],["pButton","","pRipple","","icon","pi pi-table","tooltipPosition","top",1,"p-button-text",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi pi-refresh","tooltipPosition","top",1,"p-button-text",3,"pTooltip","click"],[3,"value","totalRecords"],["pTemplate","header","styleClass","timeHeader"],["pTemplate","listItem"],[1,"grid","col-12","p-3"],[1,"grid","flex-grow-1"],[1,"col-1"],[3,"channel","guideComponent"],[1,"col"],[4,"ngFor","ngForOf"],[1,"col-12"],[3,"guide"],[3,"program","guideStartTime","guideEndTime","guideComponent","channel"],[3,"inter","programs"],[3,"programGuide","listPrograms"]],template:function(n,i){if(1&n&&(l(0,"h2"),_(1),f(2,"translate"),c(),m(3,hpe,26,51,"div",0),D(4,"app-schedule",1),m(5,mpe,1,0,"ng-template",null,2,ve),l(7,"p-dialog",3),v("visibleChange",function(r){return i.showLegend=r}),f(8,"translate"),m(9,fpe,1,2,"ng-template",4),c()),2&n){const o=B(6);a(1),x("",g(2,9,"dashboard.programguide")," "),a(2),d("ngIf",i.loaded)("ngIfElse",o),a(1),d("inter",i.inter),a(3),j(V(13,gpe)),I("header",g(8,11,"dashboard.guide.colors")),d("visible",i.showLegend)("modal",!0)}},styles:[".channelRow[_ngcontent-%COMP%]{display:block;grid-template-columns:90px auto;width:100%;height:82px;padding-bottom:2px}.programsBox[_ngcontent-%COMP%], .timebarbox[_ngcontent-%COMP%]{grid-template-columns:90px auto;grid-template-rows:28px;width:100%}"]})}return t})();function _pe(t,s){1&t&&D(0,"img",5),2&t&&I("src",p().channel.IconURL,tn)}function bpe(t,s){1&t&&D(0,"img",6)}let vpe=(()=>{class t{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=U({type:t,selectors:[["app-guide-channelicon"]],inputs:{channel:"channel",guideComponent:"guideComponent"},decls:8,vars:5,consts:[[1,"flex","flex-column","align-items-center","channelBox","cursor-pointer",3,"id","click"],[1,"channelIcon"],["height","57",3,"src",4,"ngIf","ngIfElse"],["nullIcon",""],[1,"channelText"],["height","57",3,"src"],["height","0","width","0"]],template:function(n,i){if(1&n&&(l(0,"div",0),v("click",function(){return i.guideComponent.onChannel(i.channel)}),l(1,"div",1),m(2,_pe,1,1,"img",2),m(3,bpe,1,0,"ng-template",null,3,ve),c(),l(5,"div",4)(6,"span"),_(7),c()()()),2&n){const o=B(4);I("id","Chan"+i.channel.ChanId),a(2),d("ngIf",i.channel.IconURL)("ngIfElse",o),a(5),Ke("",i.channel.ChanNum," ",i.channel.CallSign,"")}},dependencies:[ne],styles:[".channelBox[_ngcontent-%COMP%]{border-radius:10px;background:var(--surface-200);height:120px}.channelIcon[_ngcontent-%COMP%]{height:57px;max-width:86px;margin-top:10px;margin-bottom:3px;overflow:hidden;float:right}.channelText[_ngcontent-%COMP%]{clear:both;font-weight:700;text-align:-webkit-center;overflow:hidden;text-overflow:ellipsis;padding:0 3px}"]})}return t})();const Cpe=function(){return["WillRecord","Recording"]};function ype(t,s){if(1&t&&(l(0,"div")(1,"div",5),_(2),c()()),2&t){const e=p();a(1),d("ngClass",V(2,Cpe).indexOf(e.program.Recording.StatusName)>-1?"bg-green-500":"bg-pink-400"),a(1),x(" ",e.dataService.recStatusText[e.program.Recording.StatusName],"")}}function Tpe(t,s){if(1&t&&(l(0,"div")(1,"div",6),_(2),c()()),2&t){const e=p();a(2),S((e.program.Season>0?"S"+e.program.Season+"E"+e.program.Episode:"")+" "+e.program.SubTitle)}}const wpe=function(t,s){return[t,s,"guide_type_default"]};let Ipe=(()=>{class t{constructor(e){this.dataService=e,this.editSchedule=!1,this.typeclass="",this.catclass="",this.regex=/[^a-z0-9]/g}ngOnInit(){this.typeclass="guide_type_"+this.program.CatType,this.catclass="guide_cat_"+this.program.Category.toLowerCase().replace(this.regex,"_")}durationToWidth(){let e=new Date(this.program.StartTime),n=new Date(this.program.EndTime),i=new Date(this.guideStartTime),o=new Date(this.guideEndTime),h=eo?o:n,T=o.getTime()-i.getTime();return(b.getTime()-h.getTime())/T*100}openDialog(){this.guideComponent.inter.sched&&this.guideComponent.inter.sched.open(this.program,this.channel)}static#e=this.\u0275fac=function(n){return new(n||t)(M(xc))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-guide-programentry"]],inputs:{program:"program",channel:"channel",guideStartTime:"guideStartTime",guideEndTime:"guideEndTime",guideComponent:"guideComponent"},decls:8,vars:11,consts:[["tooltipPosition","top",1,"programBox","cursor-pointer",3,"ngClass","pTooltip","click"],[1,"programTitle"],[1,"programBody"],[1,"programCatType"],[4,"ngIf"],[1,"programCatType",3,"ngClass"],[1,"programSubtitle"]],template:function(n,i){1&n&&(l(0,"div",0),v("click",function(){return i.openDialog()}),l(1,"div",1),_(2),c(),l(3,"div",2)(4,"div",3),_(5),c(),m(6,ype,3,3,"div",4),m(7,Tpe,3,1,"div",4),c()()),2&n&&(qi("width",i.durationToWidth(),"%"),I("pTooltip",i.program.Description),d("ngClass",Se(8,wpe,i.typeclass,i.catclass)),a(2),S(i.program.Title),a(3),S(i.program.Category),a(1),d("ngIf",i.program.Recording),a(1),d("ngIf",0!=i.program.SubTitle.length))},dependencies:[Fe,ne,$t],styles:[".programBox[_ngcontent-%COMP%]{float:left;height:120px;padding:0 0 0 2px;color:var(--primary-color-text);background:var(--surface-200);border-radius:10px;overflow:hidden;text-overflow:ellipsis}.programTitle[_ngcontent-%COMP%]{padding:5px 8px 4px 7px;width:100%;height:28px;color:var(--primary-color-text);background:linear-gradient(to bottom,var(--surface-800) 1%,var(--surface-500) 90%,var(--surface-200) 99%);border-radius:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;z-index:4;position:relative;float:left;font-size:1.1em;white-space:nowrap;font-weight:700;overflow:hidden;text-overflow:ellipsis}.programBody[_ngcontent-%COMP%]{margin:3px 5px 4px;padding:0 0 0 2px;height:45px;z-index:5}.programCatType[_ngcontent-%COMP%]{position:relative;font-weight:700;margin-right:5px;line-height:15px;padding-top:2px;padding-bottom:3px}.programSubtitle[_ngcontent-%COMP%]{position:relative;z-index:1;line-height:15px}"]})}return t})(),Spe=(()=>{class t{constructor(e){this.guideService=e}ngOnInit(){}segmentToStartTime(e){const n=18e5*e;return(new Date(this.guide.m_startDate.getTime()+n).toLocaleTimeString()+" ").replace(/:.. /," ")}pageLeft(){this.guide.m_pickerDate=new Date(this.guide.m_startDate.getTime()-this.guideService.guide_millisecs),this.guide.onDateChange()}pageRight(){this.guide.m_pickerDate=new Date(this.guide.m_startDate.getTime()+this.guideService.guide_millisecs),this.guide.onDateChange()}static#e=this.\u0275fac=function(n){return new(n||t)(M(u1))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-guide-timebar"]],inputs:{guide:"guide"},decls:25,vars:7,consts:[[1,"grid"],[1,"col-1","datebox"],[1,"col","segmentbox"],[1,"flex"],[1,"flex-none","cursor-pointer",3,"click"],[1,"flex-none"],[1,"flex-grow-1"]],template:function(n,i){1&n&&(l(0,"div",0)(1,"div",1),_(2),c(),l(3,"div",2)(4,"div",3)(5,"div",4),v("click",function(){return i.pageLeft()}),_(6,"<<"),c(),l(7,"div",5),_(8),c()()(),l(9,"div",2),_(10),c(),l(11,"div",2),_(12),c(),l(13,"div",2),_(14),c(),l(15,"div",2),_(16),c(),l(17,"div",2)(18,"div",3)(19,"div",5),_(20),c(),l(21,"div",6),_(22,"\xa0"),c(),l(23,"div",4),v("click",function(){return i.pageRight()}),_(24,">>"),c()()()()),2&n&&(a(2),S(i.guide.m_startDate.toLocaleDateString()),a(6),x("\xa0",i.segmentToStartTime(0),""),a(2),S(i.segmentToStartTime(1)),a(2),S(i.segmentToStartTime(2)),a(2),S(i.segmentToStartTime(3)),a(2),S(i.segmentToStartTime(4)),a(4),S(i.segmentToStartTime(5)))},styles:[".timebarbox[_ngcontent-%COMP%]{grid-template-columns:90px auto;grid-template-rows:28px;width:100%}.datebox[_ngcontent-%COMP%]{padding:5px 8px 4px 7px;color:var(--primary-color-text);background:linear-gradient(to bottom,var(--surface-800) 1%,var(--surface-500) 90%,var(--surface-200) 99%);border-radius:10px}.segmentsbox[_ngcontent-%COMP%]{display:block;float:left;position:relative;height:100%;width:calc(100% - 91px)}.segmentbox[_ngcontent-%COMP%]{width:25%;padding:5px 8px 4px 7px;color:var(--primary-color-text);background:linear-gradient(to bottom,var(--surface-800) 1%,var(--surface-500) 90%,var(--surface-200) 99%);height:auto;border-radius:10px}"]})}return t})();class xpe extends ti{constructor(s,e){super()}schedule(s,e=0){return this}}const Up={setInterval(t,s,...e){const{delegate:n}=Up;return n?.setInterval?n.setInterval(t,s,...e):setInterval(t,s,...e)},clearInterval(t){const{delegate:s}=Up;return(s?.clearInterval||clearInterval)(t)},delegate:void 0};class Dc{constructor(s,e=Dc.now){this.schedulerActionCtor=s,this.now=e}schedule(s,e=0,n){return new this.schedulerActionCtor(this,s).schedule(n,e)}}Dc.now=Lg.now;const eD=new class Mpe extends Dc{constructor(s,e=Dc.now){super(s,e),this.actions=[],this._active=!1}flush(s){const{actions:e}=this;if(this._active)return void e.push(s);let n;this._active=!0;do{if(n=s.execute(s.state,s.delay))break}while(s=e.shift());if(this._active=!1,n){for(;s=e.shift();)s.unsubscribe();throw n}}}(class Dpe extends xpe{constructor(s,e){super(s,e),this.scheduler=s,this.work=e,this.pending=!1}schedule(s,e=0){var n;if(this.closed)return this;this.state=s;const i=this.id,o=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(o,i,e)),this.pending=!0,this.delay=e,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(o,this.id,e),this}requestAsyncId(s,e,n=0){return Up.setInterval(s.flush.bind(s,this),n)}recycleAsyncId(s,e,n=0){if(null!=n&&this.delay===n&&!1===this.pending)return e;null!=e&&Up.clearInterval(e)}execute(s,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(s,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(s,e){let i,n=!1;try{this.work(s)}catch(o){n=!0,i=o||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){const{id:s,scheduler:e}=this,{actions:n}=e;this.work=this.state=this.scheduler=null,this.pending=!1,lr(n,this),null!=s&&(this.id=this.recycleAsyncId(e,s,null)),this.delay=null,super.unsubscribe()}}}),kpe=eD;function tD(t,s){return s?e=>la(s.pipe(Pi(1),function Epe(){return cn((t,s)=>{t.subscribe(sn(s,Oc))})}()),e.pipe(tD(t))):Tn((e,n)=>ni(t(e,n)).pipe(Pi(1),lS(e)))}function nD(t,s=eD){const e=function Rpe(t=0,s,e=kpe){let n=-1;return null!=s&&(B1(s)?e=s:n=s),new It(i=>{let o=function Lpe(t){return t instanceof Date&&!isNaN(t)}(t)?+t-e.now():t;o<0&&(o=0);let r=0;return e.schedule(function(){i.closed||(i.next(r++),0<=n?this.schedule(void 0,n):i.complete())},o)})}(t,s);return tD(()=>e)}const Ope=["cetonform"],Ape=["top"];function Ppe(t,s){1&t&&(_(0),f(1,"translate")),2&t&&x(" ",g(1,1,"settings.capture.ceton.title")," ")}function Fpe(t,s){}function Npe(t,s){if(1&t){const e=E();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),_(4),f(5,"translate"),c(),l(6,"input",12,13),v("ngModelChange",function(i){return C(e),y(p().work.ipAddress=i)}),c(),l(8,"small",14),_(9),f(10,"translate"),c()(),l(11,"div",10)(12,"label",15),_(13),f(14,"translate"),c(),l(15,"input",16,13),v("ngModelChange",function(i){return C(e),y(p().work.tuner=i)}),c(),l(17,"small",14),_(18),f(19,"translate"),c()(),l(20,"div",10)(21,"label",17),_(22),f(23,"translate"),c(),l(24,"input",18,19),v("ngModelChange",function(i){return C(e),y(p().card.VideoDevice=i)}),c(),l(26,"small",14),_(27),f(28,"translate"),c()(),l(29,"div",10)(30,"label",20),_(31),f(32,"translate"),c(),l(33,"p-inputNumber",21),v("ngModelChange",function(i){return C(e),y(p().card.SignalTimeout=i)}),c(),l(34,"small",14),_(35),f(36,"translate"),c()(),l(37,"div",10)(38,"label",22),_(39),f(40,"translate"),c(),l(41,"p-inputNumber",23),v("ngModelChange",function(i){return C(e),y(p().card.ChannelTimeout=i)}),c(),l(42,"small",14),_(43),f(44,"translate"),c()()()()}if(2&t){const e=p();a(4),S(g(5,23,"settings.capture.ceton.ipaddress_label")),a(2),d("ngModel",e.work.ipAddress),a(3),x(" ",g(10,25,"settings.capture.ceton.ipaddress_desc")," "),a(4),S(g(14,27,"settings.capture.ceton.tuner_label")),a(2),d("ngModel",e.work.tuner),a(3),x(" ",g(19,29,"settings.capture.ceton.tuner_desc")," "),a(4),S(g(23,31,"settings.capture.ceton.deviceid_label")),a(2),d("ngModel",e.card.VideoDevice),a(3),x(" ",g(28,33,"settings.capture.ceton.deviceid_desc")," "),a(4),S(g(32,35,"settings.capture.sigtimeout_label")),a(2),d("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("step",250),a(2),x(" ",g(36,37,"settings.capture.sigtimeout_desc")," "),a(4),S(g(40,39,"settings.capture.tunetimeout_label")),a(2),d("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",1750)("max",65e3)("step",250),a(2),x(" ",g(44,41,"settings.capture.tunetimeout_desc")," ")}}function Vpe(t,s){1&t&&(D(0,"p-message",29),f(1,"translate")),2&t&&I("text",g(1,1,"common.savesuccess"))}function Bpe(t,s){1&t&&(D(0,"p-message",30),f(1,"translate")),2&t&&I("text",g(1,1,"common.networkfail"))}function Hpe(t,s){if(1&t){const e=E();l(0,"div",24)(1,"div",25),m(2,Vpe,2,3,"p-message",26),m(3,Bpe,2,3,"p-message",27),c(),l(4,"p-button",28),v("onClick",function(){C(e);const i=p(),o=B(1);return i.saveForm(),y(o.form.markAsPristine())}),f(5,"translate"),c()()}if(2&t){const e=p(),n=B(1);a(2),d("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),d("ngIf",e.work.errorCount>0),a(1),I("label",g(5,4,"common.save")),d("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let Gpe=(()=>{class t{constructor(e,n){this.captureCardService=e,this.setupService=n,this.work={ipAddress:"",tuner:"",successCount:0,errorCount:0},this.saveObserver={next:i=>{this.card.CardId&&i.bool?this.work.successCount++:!this.card.CardId&&i.int?(this.work.successCount++,this.card.CardId=i.int):(this.work.errorCount++,this.currentForm.form.markAsDirty())},error:i=>{console.error(i),this.work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){if(this.card.VideoDevice){const e=this.card.VideoDevice.split("-");if(2==e.length){this.work.ipAddress=e[0];const n=e[1].split(".");2==n.length&&(this.work.tuner=n[1])}}}ngAfterViewInit(){this.currentForm.valueChanges.pipe(nD(50)).subscribe(()=>this.card.VideoDevice=this.work.ipAddress+"-RTP."+this.work.tuner),this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}saveForm(){console.log("save form clicked"),this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}static#e=this.\u0275fac=function(n){return new(n||t)(M(Kt),M(Re))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-ceton"]],viewQuery:function(n,i){if(1&n&&(K(Ope,5),K(Ape,5)),2&n){let o;H(o=G())&&(i.currentForm=o.first),H(o=G())&&(i.topElement=o.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","cetonform",1,"ml-3","mr-3"],["cetonform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","ip",1,"label","block"],["pInputText","","id","ip","name","ip",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["ipAddress","ngModel"],[1,"block"],["for","tuner",1,"label","block"],["pInputText","","id","tuner","name","tuner",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","VideoDevice",1,"label","block"],["pInputText","","id","VideoDevice","name","VideoDevice","disabled","true",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["VideoDevice","ngModel"],["for","SignalTimeout",1,"label","block"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(n,i){1&n&&(l(0,"form",0,1),D(2,"span",null,2),l(4,"p-card",3),m(5,Ppe,2,3,"ng-template",4),m(6,Fpe,0,0,"ng-template",5),m(7,Npe,45,43,"ng-template",6),m(8,Hpe,6,6,"ng-template",7),c()())},dependencies:[ne,We,Xe,xe,$e,Ce,He,ae,Te,Ge,vt,qe,pe]})}return t})();const qpe=["dvbform"],zpe=["top"];function Upe(t,s){1&t&&(_(0),f(1,"translate")),2&t&&x(" ",g(1,1,"settings.capture.dvb.title")," ")}function jpe(t,s){}const $pe=function(){return{minWidth:"80%"}};function Wpe(t,s){if(1&t){const e=E();l(0,"p-dropdown",43,44),v("ngModelChange",function(i){return C(e),y(p(2).currentDevice=i)})("onChange",function(){return C(e),y(p(2).updateDevice())}),c()}if(2&t){const e=p(2);j(V(6,$pe)),d("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function Kpe(t,s){if(1&t&&(l(0,"div")(1,"small",45),_(2),c()()),2&t){const e=p(2);a(2),x(" ",e.work.warningMessage," ")}}function Qpe(t,s){if(1&t){const e=E();l(0,"input",46,47),v("ngModelChange",function(i){return C(e),y(p(2).currentDevice.FrontendName=i)}),c()}2&t&&d("ngModel",p(2).currentDevice.FrontendName)}function Jpe(t,s){if(1&t){const e=E();l(0,"p-dropdown",48,49),v("ngModelChange",function(i){return C(e),y(p(2).card.InputName=i)}),c()}if(2&t){const e=p(2);d("options",e.currentDevice.InputNames)("ngModel",e.card.InputName)}}function Zpe(t,s){if(1&t){const e=E();l(0,"p-button",50),v("onClick",function(){return C(e),y(p(2).work.displayNewDiseqc=!0)}),f(1,"translate"),c()}2&t&&I("label",g(1,1,"settings.capture.dvb.newsatellite_button"))}function Ype(t,s){if(1&t){const e=E();l(0,"p-button",51),v("onClick",function(){return C(e),y(p(2).work.displayNewDiseqc=!1)}),f(1,"translate"),c(),l(2,"p-button",52),v("onClick",function(){return C(e),y(p(2).newDiseqc())}),f(3,"translate"),c()}if(2&t){const e=p(2);I("label",g(1,3,"common.cancel")),a(2),I("label",g(3,5,"common.ok")),d("disabled",e.selectedDiseqcType.inactive)}}function Xpe(t,s){if(1&t){const e=E();l(0,"p-button",53),v("onClick",function(){C(e);const i=p(2);return i.setupRootTrees(),y(i.work.displayConnectDevice=!0)}),f(1,"translate"),f(2,"translate"),c()}2&t&&(I("label",g(1,2,"settings.capture.dvb.satellite_connect")),I("pTooltip",g(2,4,"settings.capture.dvb.satellite_connect_tooltip")))}function ehe(t,s){if(1&t){const e=E();l(0,"p-button",51),v("onClick",function(){return C(e),y(p(2).work.displayConnectDevice=!1)}),f(1,"translate"),c(),l(2,"p-button",52),v("onClick",function(){return C(e),y(p(2).selectDiseqc())}),f(3,"translate"),c()}if(2&t){const e=p(2);I("label",g(1,3,"common.cancel")),a(2),I("label",g(3,5,"common.ok")),d("disabled",!e.work.selectedDiseqcTree)}}function the(t,s){if(1&t){const e=E();l(0,"p-button",54),v("onClick",function(){return C(e),y(p(2).canDeleteDiseqc())}),c()}}function nhe(t,s){if(1&t){const e=E();l(0,"p-button",55),v("click",function(){return C(e),y(p(2).work.displayDeleteDiseqc=!1)}),f(1,"translate"),c(),l(2,"p-button",56),v("click",function(){return C(e),y(p(2).deleteDiseqc())}),f(3,"translate"),c()}2&t&&(I("label",g(1,2,"common.no")),a(2),I("label",g(3,4,"common.yes")))}function ihe(t,s){if(1&t){const e=E();l(0,"p-button",57),v("onClick",function(){return C(e),y(p(2).work.displayDisconnect=!0)}),f(1,"translate"),c()}2&t&&I("label",g(1,1,"settings.capture.dvb.satellite_disconnect"))}function she(t,s){if(1&t){const e=E();l(0,"p-button",55),v("click",function(){return C(e),y(p(2).work.displayDisconnect=!1)}),f(1,"translate"),c(),l(2,"p-button",56),v("click",function(){return C(e),y(p(2).unSelectDiseqc())}),f(3,"translate"),c()}2&t&&(I("label",g(1,2,"common.no")),a(2),I("label",g(3,4,"common.yes")))}function ohe(t,s){1&t&&(D(0,"p-message",58),f(1,"translate")),2&t&&I("text",g(1,1,"settings.capture.dvb.satellite_disconnect_error"))}function rhe(t,s){if(1&t){const e=E();l(0,"app-lnb",59),v("baseEvent",function(i){return C(e),y(p(2).setDiseqcObject(i))}),c()}if(2&t){const e=p(2);d("diseqcTree",e.diseqcTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e)}}function ahe(t,s){if(1&t){const e=E();l(0,"app-rotor",59),v("baseEvent",function(i){return C(e),y(p(2).setDiseqcObject(i))}),c()}if(2&t){const e=p(2);d("diseqcTree",e.diseqcTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e)}}function lhe(t,s){if(1&t){const e=E();l(0,"app-switch",59),v("baseEvent",function(i){return C(e),y(p(2).setDiseqcObject(i))}),c()}if(2&t){const e=p(2);d("diseqcTree",e.diseqcTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e)}}function che(t,s){if(1&t){const e=E();l(0,"app-unicable",59),v("baseEvent",function(i){return C(e),y(p(2).setDiseqcObject(i))}),c()}if(2&t){const e=p(2);d("diseqcTree",e.diseqcTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e)}}const jp=function(){return{width:"50vw"}};function uhe(t,s){if(1&t){const e=E();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),_(4),f(5,"translate"),c(),m(6,Wpe,2,7,"p-dropdown",12),m(7,Kpe,3,1,"div",13),l(8,"small",14),_(9),f(10,"translate"),c()(),l(11,"div",10)(12,"label",15),_(13),f(14,"translate"),c(),m(15,Qpe,2,1,"input",16),l(16,"small",14),_(17),f(18,"translate"),c()(),l(19,"div",10)(20,"label",17),_(21),f(22,"translate"),c(),m(23,Jpe,2,2,"p-dropdown",18),l(24,"small",14),_(25),f(26,"translate"),c()(),l(27,"div",10)(28,"label",19),_(29),f(30,"translate"),c(),l(31,"p-inputNumber",20),v("ngModelChange",function(i){return C(e),y(p().card.SignalTimeout=i)}),c(),l(32,"small",14),_(33),f(34,"translate"),c()(),l(35,"div",10)(36,"label",21),_(37),f(38,"translate"),c(),l(39,"p-inputNumber",22),v("ngModelChange",function(i){return C(e),y(p().card.ChannelTimeout=i)}),c(),l(40,"small",14),_(41),f(42,"translate"),c()(),l(43,"div",10)(44,"p-checkbox",23,24),v("ngModelChange",function(i){return C(e),y(p().card.DVBWaitForSeqStart=i)}),f(46,"translate"),c(),l(47,"small",14),_(48),f(49,"translate"),c()(),l(50,"div",10)(51,"p-checkbox",25,26),v("ngModelChange",function(i){return C(e),y(p().card.DVBOnDemand=i)}),f(53,"translate"),c(),l(54,"small",14),_(55),f(56,"translate"),c()(),l(57,"div",10)(58,"p-checkbox",27,28),v("ngModelChange",function(i){return C(e),y(p().card.DVBEITScan=i)}),f(60,"translate"),c(),l(61,"small",14),_(62),f(63,"translate"),c()(),l(64,"div",10)(65,"label",29),_(66),f(67,"translate"),c(),l(68,"p-inputNumber",30),v("ngModelChange",function(i){return C(e),y(p().card.DVBTuningDelay=i)}),c(),l(69,"small",14),_(70),f(71,"translate"),c()()(),l(72,"p-fieldset",31),f(73,"translate"),m(74,Zpe,2,3,"p-button",32),l(75,"p-dialog",33),v("visibleChange",function(i){return C(e),y(p().work.displayNewDiseqc=i)}),f(76,"translate"),l(77,"label",34),_(78),f(79,"translate"),c(),l(80,"p-listbox",35),v("ngModelChange",function(i){return C(e),y(p().selectedDiseqcType=i)})("onDblClick",function(){return C(e),y(p().newDiseqc())}),c(),m(81,Ype,4,7,"ng-template",7),c(),_(82," \xa0 "),m(83,Xpe,3,6,"p-button",36),l(84,"p-dialog",33),v("visibleChange",function(i){return C(e),y(p().work.displayConnectDevice=i)}),f(85,"translate"),l(86,"label",37),_(87),f(88,"translate"),c(),l(89,"p-listbox",38),v("ngModelChange",function(i){return C(e),y(p().work.selectedDiseqcTree=i)})("onDblClick",function(){return C(e),y(p().selectDiseqc())}),c(),m(90,ehe,4,7,"ng-template",7),c(),m(91,the,1,0,"p-button",39),l(92,"p-dialog",33),v("visibleChange",function(i){return C(e),y(p().work.displayDeleteDiseqc=i)}),f(93,"translate"),l(94,"h2"),_(95),f(96,"translate"),c(),l(97,"p"),_(98),f(99,"translate"),c(),m(100,nhe,4,6,"ng-template",7),c(),_(101," \xa0 "),m(102,ihe,2,3,"p-button",40),l(103,"p-dialog",33),v("visibleChange",function(i){return C(e),y(p().work.displayDisconnect=i)}),f(104,"translate"),l(105,"h2"),_(106),f(107,"translate"),c(),l(108,"p"),_(109),f(110,"translate"),c(),m(111,she,4,6,"ng-template",7),c(),m(112,ohe,2,3,"p-message",41),m(113,rhe,1,3,"app-lnb",42),m(114,ahe,1,3,"app-rotor",42),m(115,lhe,1,3,"app-switch",42),m(116,che,1,3,"app-unicable",42),c()()}if(2&t){const e=p();a(4),S(g(5,93,"settings.capture.dvb.device_label")),a(2),d("ngIf",e.work.isReady),a(1),d("ngIf",e.work.warningMessage),a(2),x(" ",g(10,95,"settings.capture.device_desc")," "),a(4),S(g(14,97,"settings.capture.dvb.frontend_label")),a(2),d("ngIf",e.work.isReady),a(2),x(" ",g(18,99,"settings.capture.frontend_desc")," "),a(4),S(g(22,101,"settings.capture.dvb.inputname_label")),a(2),d("ngIf",e.work.isReady),a(2),x(" ",g(26,103,"settings.capture.inputname_desc")," "),a(4),S(g(30,105,"settings.capture.sigtimeout_label")),a(2),d("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("step",250),a(2),x(" ",g(34,107,"settings.capture.sigtimeout_desc")," "),a(4),S(g(38,109,"settings.capture.tunetimeout_label")),a(2),d("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",1750)("max",65e3)("step",250),a(2),x(" ",g(42,111,"settings.capture.tunetimeout_desc")," "),a(3),I("label",g(46,113,"settings.capture.dvb.wait_label")),d("ngModel",e.card.DVBWaitForSeqStart)("binary",!0),a(4),x(" ",g(49,115,"settings.capture.dvb.wait_desc")," "),a(3),I("label",g(53,117,"settings.capture.dvb.ondemand_label")),d("ngModel",e.card.DVBOnDemand)("binary",!0),a(4),x(" ",g(56,119,"settings.capture.dvb.ondemand_desc")," "),a(3),I("label",g(60,121,"settings.capture.dvb.eitscan_label")),d("ngModel",e.card.DVBEITScan)("binary",!0),a(4),x(" ",g(63,123,"settings.capture.dvb.eitscan_desc")," "),a(4),S(g(67,125,"settings.capture.dvb.tuningdelay_label")),a(2),d("ngModel",e.card.DVBTuningDelay)("showButtons",!0)("min",0)("max",2e3)("step",25),a(2),x(" ",g(71,127,"settings.capture.dvb.tuningdelay_desc")," "),a(2),I("legend",g(73,129,"settings.capture.dvb.satellite_heading")),d("toggleable",!0)("collapsed",!0),a(2),d("ngIf",!e.diseqcTree),a(1),j(V(151,jp)),I("header",g(76,131,"settings.capture.dvb.newsatellite_heading")),d("visible",e.work.displayNewDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(g(79,133,"settings.capture.dvb.newsatellite_devtype")),a(2),d("options",e.captureCardService.diseqcTypes)("ngModel",e.selectedDiseqcType),a(3),d("ngIf",!e.diseqcTree),a(1),j(V(152,jp)),I("header",g(85,135,"settings.capture.dvb.satellite_connect")),d("visible",e.work.displayConnectDevice)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(g(88,137,"settings.capture.dvb.satellite_select")),a(2),d("options",e.diseqcRootTrees)("ngModel",e.work.selectedDiseqcTree),a(2),d("ngIf",e.diseqcTree),a(1),j(V(153,jp)),I("header",g(93,139,"settings.capture.dvb.satellite_delete_header")),d("visible",e.work.displayDeleteDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(g(96,141,"settings.common.ru_sure")),a(3),S(g(99,143,"settings.capture.dvb.satellite_delete_desc")),a(4),d("ngIf",e.diseqcTree),a(1),j(V(154,jp)),I("header",g(104,145,"settings.capture.dvb.satellite_disconnect")),d("visible",e.work.displayDisconnect)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(g(107,147,"settings.common.ru_sure")),a(3),S(g(110,149,"settings.capture.dvb.satellite_disconnect_warning")),a(3),d("ngIf",e.work.diseqcError),a(1),d("ngIf",e.diseqcTree&&"lnb"==e.diseqcTree.Type),a(1),d("ngIf",e.diseqcTree&&"rotor"==e.diseqcTree.Type),a(1),d("ngIf",e.diseqcTree&&"switch"==e.diseqcTree.Type),a(1),d("ngIf",e.diseqcTree&&"scr"==e.diseqcTree.Type)}}function dhe(t,s){1&t&&(D(0,"p-message",64),f(1,"translate")),2&t&&I("text",g(1,1,"common.savesuccess"))}function phe(t,s){1&t&&(D(0,"p-message",58),f(1,"translate")),2&t&&I("text",g(1,1,"common.networkfail"))}function hhe(t,s){if(1&t){const e=E();l(0,"div",60)(1,"div",61),m(2,dhe,2,3,"p-message",62),m(3,phe,2,3,"p-message",41),c(),l(4,"p-button",63),v("onClick",function(){C(e);const i=p(),o=B(1);return i.saveForm(),y(o.form.markAsPristine())}),f(5,"translate"),c()()}if(2&t){const e=p(),n=B(1);a(2),d("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),d("ngIf",e.work.errorCount>0),a(1),I("label",g(5,4,"common.save")),d("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let iD=(()=>{class t{constructor(e,n,i){this.captureCardService=e,this.setupService=n,this.translate=i,this.work={InputName:"",successCount:0,errorCount:0,inputNames:[""],isReady:!1,warningMessage:"",displayNewDiseqc:!1,displayDeleteDiseqc:!1,displayConnectDevice:!1,displayDisconnect:!1,selectedDiseqcTree:0,diseqcError:!1},this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.diseqcRootTrees=[],this.diseqcTree=void 0,this.messages={devNotExist:"settings.capture.dvb.devNotExist",unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSelected:"settings.capture.dvb.noDevSelected"},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.selectedDiseqcType={description:"",type:"",inactive:!0},this.saveObserver={next:o=>{o.bool?(console.log("saveObserver success",o),this.work.successCount++):!this.card.CardId&&o.int?(console.log("saveObserver success",o),this.work.successCount++,this.card.CardId||(this.card.CardId=o.int,this.cardList.CaptureCardList.CaptureCards.push(this.card),this.captureCardService.UpdateCaptureCard(this.card.CardId,"inputname",this.card.InputName).subscribe(this.saveObserver))):(console.log("saveObserver error",o),this.work.errorCount++,this.currentForm.form.markAsDirty())},error:o=>{console.log("saveObserver error",o),this.work.errorCount++,this.currentForm.form.markAsDirty()}},i.get(this.messages.devNotExist).subscribe(o=>this.messages.devNotExist=o),i.get(this.messages.unknownName).subscribe(o=>this.messages.unknownName=o),i.get(this.messages.devInUse).subscribe(o=>this.messages.devInUse=o),i.get(this.messages.noDevSelected).subscribe(o=>this.messages.noDevSelected=o)}ngOnInit(){null==this.card.DVBWaitForSeqStart&&(this.card.DVBWaitForSeqStart=!0),null==this.card.DVBOnDemand&&(this.card.DVBOnDemand=!0),null==this.card.DVBEITScan&&(this.card.DVBEITScan=!0),null==this.card.CardId&&(this.card.CardId=0),null==this.card.VideoDevice&&(this.card.VideoDevice=""),null==this.card.DiSEqCId&&(this.card.DiSEqCId=0),this.captureCardService.GetCaptureDeviceList("DVB").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.log("GetCaptureDeviceList",e),this.work.errorCount++}}),this.setupDiseqc()}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDiseqc(){this.diseqcTree=this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.find(e=>e.DiSEqCId==this.card.DiSEqCId),this.work.diseqcError=!1}newDiseqc(){this.work.displayNewDiseqc=!1,this.work.diseqcError=!1,this.diseqcTree={Type:this.selectedDiseqcType.type,Description:this.selectedDiseqcType.description}}setupRootTrees(){this.diseqcRootTrees=this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.filter(e=>!e.ParentId)}selectDiseqc(){this.work.displayConnectDevice=!1,this.work.diseqcError=!1,this.card.DiSEqCId=this.work.selectedDiseqcTree,this.currentForm.form.markAsDirty(),this.setupDiseqc()}unSelectDiseqc(){this.work.displayDisconnect=!1,this.work.diseqcError=!1,this.card.DiSEqCId=0,this.currentForm.form.markAsDirty(),this.diseqcTree=void 0,this.captureCardService.DeleteDiseqcConfig(this.card.CardId).subscribe()}canDeleteDiseqc(){this.work.diseqcError=!1,this.cardList.CaptureCardList.CaptureCards.filter(n=>n.DiSEqCId==this.card.DiSEqCId).length>1?this.work.diseqcError=!0:this.work.displayDeleteDiseqc=!0}deleteDiseqc(){this.work.displayDeleteDiseqc=!1,this.work.successCount=0,this.work.errorCount=0,this.diseqcTree&&this.diseqcTree.DiSEqCId&&(this.captureCardService.DeleteDiseqcTree(this.diseqcTree.DiSEqCId).subscribe({next:e=>{e.bool?this.work.successCount++:(this.work.errorCount++,console.log("DeleteDiseqcTree",e)),this.parent.loadDiseqc()},error:e=>{console.log("DeleteDiseqcTree",e),this.work.errorCount++}}),this.card.DiSEqCId=0,this.card.CardId&&(this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&this.captureCardService.UpdateCaptureCard(e.CardId,"DiSEqCId",String(this.card.DiSEqCId)).subscribe(this.saveObserver)}),this.captureCardService.DeleteDiseqcConfig(this.card.CardId).subscribe())),this.diseqcTree=void 0}setDiseqcObject(e){this.diseqcComponent=e}setupDevice(){if(this.card.VideoDevice||this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift({VideoDevice:"",FrontendName:this.messages.noDevSelected,InputNames:[""]}),this.card.VideoDevice){let e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:this.messages.devNotExist,InputNames:[""]},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.currentDevice&&this.card.InputName&&(this.currentDevice.InputNames.includes(this.card.InputName)||this.currentDevice.InputNames.push(this.card.InputName)),this.work.isReady=!0}updateDevice(){this.card.VideoDevice=this.currentDevice.VideoDevice,this.card.InputName=this.currentDevice.DefaultInputName,this.card.SignalTimeout=this.currentDevice.SignalTimeout,this.card.ChannelTimeout=this.currentDevice.ChannelTimeout,this.checkInUse()}checkInUse(){this.work.warningMessage=this.cardList.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardId!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.work.successCount=0,this.work.errorCount=0,this.work.diseqcError=!1,this.diseqcTree&&this.diseqcComponent?this.diseqcComponent.saveForm(0,{next:e=>{this.card.DiSEqCId&&e.bool&&this.card.DiSEqCId==this.diseqcTree?.DiSEqCId?(this.work.successCount++,this.saveCard()):e.int&&this.diseqcTree?(this.card.DiSEqCId=e.int,this.diseqcTree.DiSEqCId=e.int,this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.push(this.diseqcTree),this.saveCard()):(console.log("saveForm",e),this.work.errorCount++,this.currentForm.form.markAsDirty())},error:e=>{console.log("saveForm",e),this.work.errorCount++,this.currentForm.form.markAsDirty()},complete:()=>{}}):this.saveCard()}saveCard(){this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_wait_for_seqstart",this.card.DVBWaitForSeqStart?"1":"0").subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_on_demand",this.card.DVBOnDemand?"1":"0").subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_tuning_delay",String(this.card.DVBTuningDelay)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_eitscan",this.card.DVBEITScan?"1":"0").subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"inputname",this.card.InputName).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"DiSEqCId",String(this.card.DiSEqCId)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}static#e=this.\u0275fac=function(n){return new(n||t)(M(Kt),M(Re),M(Le))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-dvb"]],viewQuery:function(n,i){if(1&n&&(K(qpe,5),K(zpe,5)),2&n){let o;H(o=G())&&(i.currentForm=o.first),H(o=G())&&(i.topElement=o.first)}},inputs:{card:"card",cardList:"cardList",diseqcTreeList:"diseqcTreeList",parent:"parent"},decls:9,vars:0,consts:[["name","dvbform",1,"ml-3","mr-3"],["dvbform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],["for","FrontendName",1,"label","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true","class","mb-2 form-control w-full",3,"ngModel","ngModelChange",4,"ngIf"],["for","InputName",1,"label","block"],["name","InputName",3,"options","ngModel","ngModelChange",4,"ngIf"],["for","SignalTimeout",1,"label","block"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","DVBWaitForSeqStart","name","DVBWaitForSeqStart",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DVBWaitForSeqStart","ngModel"],["inputId","DVBOnDemand","name","DVBOnDemand",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DVBOnDemand","ngModel"],["inputId","DVBEITScan","name","DVBEITScan",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DVBEITScan","ngModel"],["for","DVBTuningDelay",1,"label","block"],["name","DVBTuningDelay","id","DVBTuningDelay",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["icon","pi pi-plus-circle","styleClass","p-button-plain",3,"label","onClick",4,"ngIf"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["for","disenqcTypes",1,"label","block"],["optionLabel","description","name","disenqcTypes","optionDisabled","inactive",3,"options","ngModel","ngModelChange","onDblClick"],["icon","pi pi-plus-circle","styleClass","p-button-plain",3,"label","pTooltip","onClick",4,"ngIf"],["for","diseqcRootTrees",1,"label","block"],["optionLabel","Description","name","diseqcRootTrees","optionValue","DiSEqCId",3,"options","ngModel","ngModelChange","onDblClick"],["styleClass","p-button-warning","label","Delete Satellite Devices","icon","pi pi-trash",3,"onClick",4,"ngIf"],["icon","pi pi-minus-circle","styleClass","p-button-warning",3,"label","onClick",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent",4,"ngIf"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"p-error","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["FrontendName","ngModel"],["name","InputName",3,"options","ngModel","ngModelChange"],["InputName","ngModel"],["icon","pi pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],["icon","pi pi-plus-circle","styleClass","p-button-plain",3,"label","pTooltip","onClick"],["styleClass","p-button-warning","label","Delete Satellite Devices","icon","pi pi-trash",3,"onClick"],["icon","pi pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi pi-check-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi pi-minus-circle","styleClass","p-button-warning",3,"label","onClick"],["severity","error",3,"text"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"]],template:function(n,i){1&n&&(l(0,"form",0,1),D(2,"span",null,2),l(4,"p-card",3),m(5,Upe,2,3,"ng-template",4),m(6,jpe,0,0,"ng-template",5),m(7,uhe,117,155,"ng-template",6),m(8,hhe,6,6,"ng-template",7),c()())}})}return t})();const mhe=["lnbform"];function fhe(t,s){1&t&&(_(0),f(1,"translate")),2&t&&x(" ",g(1,1,"settings.capture.diseqc.lnb.title")," ")}function ghe(t,s){}const sD=function(){return{minWidth:"80%"}};function _he(t,s){if(1&t){const e=E();l(0,"div",6)(1,"div",7)(2,"div",8)(3,"label",9),_(4),f(5,"translate"),c(),l(6,"input",10,11),v("ngModelChange",function(i){return C(e),y(p().diseqcTree.Description=i)}),c(),l(8,"small",12),_(9),f(10,"translate"),c()(),l(11,"div",8)(12,"label",13),_(13),f(14,"translate"),c(),l(15,"p-dropdown",14,15),v("ngModelChange",function(i){return C(e),y(p().currentPreset=i)})("onChange",function(){return C(e),y(p().updatePreset())}),c(),l(17,"small",12),_(18),f(19,"translate"),c()(),l(20,"div",8)(21,"label",16),_(22),f(23,"translate"),c(),l(24,"p-dropdown",17,18),v("ngModelChange",function(i){return C(e),y(p().currentSubType=i)})("onChange",function(){return C(e),y(p().updateSubType())}),c(),l(26,"small",12),_(27),f(28,"translate"),c()(),l(29,"div",8)(30,"label",19),_(31),f(32,"translate"),c(),l(33,"p-inputNumber",20),v("ngModelChange",function(i){return C(e),y(p().work.LnbLofSwitch=i)}),c(),l(34,"small",12),_(35),f(36,"translate"),c()(),l(37,"div",8)(38,"label",21),_(39),f(40,"translate"),c(),l(41,"p-inputNumber",22),v("ngModelChange",function(i){return C(e),y(p().work.LnbLofLo=i)}),c(),l(42,"small",12),_(43),f(44,"translate"),c()(),l(45,"div",8)(46,"label",23),_(47),f(48,"translate"),c(),l(49,"p-inputNumber",24),v("ngModelChange",function(i){return C(e),y(p().work.LnbLofHi=i)}),c(),l(50,"small",12),_(51),f(52,"translate"),c()(),l(53,"div",8)(54,"p-checkbox",25,26),v("ngModelChange",function(i){return C(e),y(p().diseqcTree.LnbPolInv=i)}),f(56,"translate"),c(),l(57,"small",12),_(58),f(59,"translate"),c()()()()}if(2&t){const e=p();a(4),S(g(5,41,"settings.capture.diseqc.description_label")),a(2),d("ngModel",e.diseqcTree.Description),a(3),x(" ",g(10,43,"settings.capture.diseqc.description_desc")," "),a(4),S(g(14,45,"settings.capture.diseqc.lnb.preset_label")),a(2),j(V(69,sD)),d("options",e.lnbPresetList)("ngModel",e.currentPreset)("editable",!1)("maxlength",0)("scrollHeight","400px"),a(3),x(" ",g(19,47,"settings.capture.diseqc.lnb.preset_desc")," "),a(4),S(g(23,49,"settings.capture.diseqc.lnb.type_label")),a(2),j(V(70,sD)),d("options",e.lnbSubTypes)("ngModel",e.currentSubType)("editable",!1)("maxlength",0)("disabled","custom"!=e.currentPreset.SubType),a(3),x(" ",g(28,51,"settings.capture.diseqc.lnb.type_desc")," "),a(4),S(g(32,53,"settings.capture.diseqc.lnb.lofswitch_label")),a(2),d("ngModel",e.work.LnbLofSwitch)("useGrouping",!1)("disabled","custom"!=e.currentPreset.SubType||"voltage_tone"!=e.diseqcTree.SubType),a(2),x(" ",g(36,55,"settings.capture.diseqc.lnb.lofswitch_desc")," "),a(4),S(g(40,57,"settings.capture.diseqc.lnb.loflow_label")),a(2),d("ngModel",e.work.LnbLofLo)("useGrouping",!1)("disabled","custom"!=e.currentPreset.SubType),a(2),x(" ",g(44,59,"settings.capture.diseqc.lnb.loflow_desc")," "),a(4),S(g(48,61,"settings.capture.diseqc.lnb.lofhigh_label")),a(2),d("ngModel",e.work.LnbLofHi)("useGrouping",!1)("disabled","custom"!=e.currentPreset.SubType||!("voltage_tone"==e.diseqcTree.SubType||"bandstacked"==e.diseqcTree.SubType)),a(2),x(" ",g(52,63,"settings.capture.diseqc.lnb.lofhigh_desc")," "),a(3),I("label",g(56,65,"settings.capture.diseqc.lnb.reversed_label")),d("ngModel",e.diseqcTree.LnbPolInv)("binary",!0)("disabled","custom"!=e.currentPreset.SubType),a(4),x(" ",g(59,67,"settings.capture.diseqc.lnb.reversed_desc")," ")}}let $p=(()=>{class t{constructor(e,n,i){this.captureCardService=e,this.setupService=n,this.translate=i,this.baseEvent=new q,this.work={LnbLofSwitch:0,LnbLofLo:0,LnbLofHi:0},this.lnbSubTypes=[{Name:"settings.capture.diseqc.subtype_legacy",SubType:"fixed"},{Name:"settings.capture.diseqc.subtype_standard",SubType:"voltage"},{Name:"settings.capture.diseqc.subtype_universal",SubType:"voltage_tone"},{Name:"settings.capture.diseqc.subtype_backstacked",SubType:"bandstacked"}],this.lnbPresetList=[{Name:"settings.capture.diseqc.lnbpreset_universal",SubType:"voltage_tone",LnbLofSwitch:11700,LnbLofLo:9750,LnbLofHi:10600,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_single",SubType:"voltage",LnbLofSwitch:0,LnbLofLo:9750,LnbLofHi:0,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_circular",SubType:"voltage",LnbLofSwitch:0,LnbLofLo:11250,LnbLofHi:0,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_Linear",SubType:"voltage",LnbLofSwitch:0,LnbLofLo:10750,LnbLofHi:0,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_cband",SubType:"voltage",LnbLofSwitch:0,LnbLofLo:5150,LnbLofHi:0,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_dishpro",SubType:"bandstacked",LnbLofSwitch:0,LnbLofLo:11250,LnbLofHi:14350,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_custom",SubType:"custom",LnbLofSwitch:0,LnbLofLo:0,LnbLofHi:0,LnbPolInv:!1}],this.setupDone=!1,this.lnbSubTypes.forEach(o=>i.get(o.Name).subscribe(r=>o.Name=r)),this.lnbPresetList.forEach(o=>i.get(o.Name).subscribe(r=>o.Name=r))}ngOnInit(){if(this.diseqcTree.DiSEqCId){let e;this.work.LnbLofSwitch=this.diseqcTree.LnbLofSwitch/1e3,this.work.LnbLofLo=this.diseqcTree.LnbLofLo/1e3,this.work.LnbLofHi=this.diseqcTree.LnbLofHi/1e3,e=this.lnbPresetList.find(n=>n.SubType==this.diseqcTree.SubType&&n.LnbLofSwitch==this.work.LnbLofSwitch&&n.LnbLofLo==this.work.LnbLofLo&&n.LnbLofHi==this.work.LnbLofHi&&n.LnbPolInv==this.diseqcTree.LnbPolInv),this.currentPreset=null==e?this.lnbPresetList[this.lnbPresetList.length-1]:e}else this.currentPreset=this.lnbPresetList[0],this.updatePreset()}ngAfterViewInit(){this.baseEvent.emit(this),this.currentForm.valueChanges.subscribe(n=>{this.setupDone&&this.currentForm.dirty&&this.dvbComponent.currentForm.form.markAsDirty()}),new It(n=>{setTimeout(()=>{n.next(1),n.complete()},100)}).subscribe(n=>{this.setupDone=!0,this.diseqcTree.DiSEqCId?this.currentForm.form.markAsPristine():(this.currentForm.form.markAsDirty(),this.dvbComponent.currentForm.form.markAsDirty())})}updatePreset(){if("custom"!=this.currentPreset.SubType){let e=this.lnbSubTypes.find(n=>n.SubType==this.currentPreset.SubType);e&&(this.currentSubType=e,this.updateSubType()),this.work.LnbLofSwitch=this.currentPreset.LnbLofSwitch,this.work.LnbLofLo=this.currentPreset.LnbLofLo,this.work.LnbLofHi=this.currentPreset.LnbLofHi,this.diseqcTree.LnbPolInv=this.currentPreset.LnbPolInv}}updateSubType(){this.diseqcTree.SubType=this.currentSubType.SubType}saveForm(e,n){this.diseqcTree.ParentId=e,this.diseqcTree.LnbLofSwitch=1e3*this.work.LnbLofSwitch,this.diseqcTree.LnbLofLo=1e3*this.work.LnbLofLo,this.diseqcTree.LnbLofHi=1e3*this.work.LnbLofHi,this.diseqcTree.DiSEqCId?this.captureCardService.UpdateDiseqcTree(this.diseqcTree).subscribe(n):this.captureCardService.AddDiseqcTree(this.diseqcTree).subscribe({next:i=>{i.int&&i.int>0?(this.diseqcTree.DiSEqCId=i.int,n.next&&n.next(i)):(console.log("UpdateDiseqcTree",i),n.error(i))},error:i=>{console.log("UpdateDiseqcTree",i),n.error(i)}})}static#e=this.\u0275fac=function(n){return new(n||t)(M(Kt),M(Re),M(Le))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-lnb"]],viewQuery:function(n,i){if(1&n&&K(mhe,5),2&n){let o;H(o=G())&&(i.currentForm=o.first)}},inputs:{diseqcTree:"diseqcTree",diseqcTreeList:"diseqcTreeList",dvbComponent:"dvbComponent"},outputs:{baseEvent:"baseEvent"},decls:6,vars:0,consts:[["name","lnbform",1,"ml-3","mr-3"],["lnbform","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","Description",1,"label","block"],["pInputText","","id","ip","name","Description",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Description","ngModel"],[1,"block"],["for","LnbPreset",1,"label","block"],["optionLabel","Name","name","LnbPreset",3,"options","ngModel","editable","maxlength","scrollHeight","ngModelChange","onChange"],["LnbPreset","ngModel"],["for","SubType",1,"label","block"],["optionLabel","Name","name","SubType",3,"options","ngModel","editable","maxlength","disabled","ngModelChange","onChange"],["SubType","ngModel"],["for","LnbLofSwitch",1,"label","block"],["name","LnbLofSwitch","id","LnbLofSwitch","mode","decimal","inputId","withoutgrouping",3,"ngModel","useGrouping","disabled","ngModelChange"],["for","LnbLofLo",1,"label","block"],["name","LnbLofLo","id","LnbLofLo","mode","decimal","inputId","withoutgrouping",3,"ngModel","useGrouping","disabled","ngModelChange"],["for","LnbLofHi",1,"label","block"],["name","LnbLofHi","id","LnbLofHi","mode","decimal","inputId","withoutgrouping",3,"ngModel","useGrouping","disabled","ngModelChange"],["inputId","LnbPolInv","name","LnbPolInv",1,"label","mb-2","w-full",3,"ngModel","binary","label","disabled","ngModelChange"],["LnbPolInv","ngModel"]],template:function(n,i){1&n&&(l(0,"form",0,1)(2,"p-card",2),m(3,fhe,2,3,"ng-template",3),m(4,ghe,0,0,"ng-template",4),m(5,_he,60,71,"ng-template",5),c()())},dependencies:[We,Xe,xe,$e,In,Ce,He,ae,Ge,ln,Gt,vt,pe]})}return t})();const bhe=["rotorform"];function vhe(t,s){1&t&&(_(0),f(1,"translate")),2&t&&x(" ",g(1,1,"settings.capture.diseqc.rotor.title")," ")}function Che(t,s){}function yhe(t,s){1&t&&(l(0,"tr")(1,"th"),_(2,"Position #"),c(),l(3,"th"),_(4,"Angle (Degrees)"),c()())}function The(t,s){if(1&t){const e=E();l(0,"p-inputNumber",43),v("ngModelChange",function(i){return C(e),y(p().$implicit.Angle=i)}),c()}2&t&&d("ngModel",p().$implicit.Angle)("min",-180)("max",180)("maxFractionDigits",5)}function whe(t,s){if(1&t&&(l(0,"div"),_(1),c()),2&t){const e=p(2).$implicit;a(1),x("",e.Angle," (W)")}}function Ihe(t,s){if(1&t&&(l(0,"div"),_(1),c()),2&t){const e=p(2).$implicit;a(1),x(" ",e.Angle," (E)")}}function She(t,s){if(1&t&&(m(0,whe,2,1,"div",44),m(1,Ihe,2,1,"div",44)),2&t){const e=p().$implicit;d("ngIf",e.Angle<0),a(1),d("ngIf",null!=e.Angle&&e.Angle>=0)}}function xhe(t,s){if(1&t&&(l(0,"tr")(1,"td"),_(2),c(),l(3,"td",40)(4,"p-cellEditor"),m(5,The,1,4,"ng-template",41),m(6,She,2,2,"ng-template",42),c()()()),2&t){const e=s.$implicit;a(2),x(" ",e.Num," ")}}const oD=function(){return{width:"25rem"}};function Dhe(t,s){if(1&t&&(l(0,"div",8)(1,"label",36),_(2),f(3,"translate"),c(),l(4,"div")(5,"p-table",37),m(6,yhe,5,0,"ng-template",38),m(7,xhe,7,1,"ng-template",39),c()(),l(8,"small",12),_(9),f(10,"translate"),c()()),2&t){const e=p(2);a(2),S(g(3,6,"settings.capture.diseqc.rotor.positions_label")),a(2),j(V(10,oD)),a(1),d("value",e.rotorPositions)("scrollable",!0),a(4),x(" ",g(10,8,"settings.capture.diseqc.rotor.positions_desc")," ")}}function Mhe(t,s){if(1&t){const e=E();l(0,"p-button",45),v("onClick",function(){return C(e),y(p(2).work.displayNewDiseqc=!0)}),f(1,"translate"),c()}2&t&&I("label",g(1,1,"settings.capture.dvb.newsatellite_button"))}function khe(t,s){if(1&t){const e=E();l(0,"p-button",46),v("onClick",function(){return C(e),y(p(2).work.displayNewDiseqc=!1)}),f(1,"translate"),c(),l(2,"p-button",47),v("onClick",function(){return C(e),y(p(2).newDiseqc())}),f(3,"translate"),c()}if(2&t){const e=p(2);I("label",g(1,3,"common.cancel")),a(2),I("label",g(3,5,"common.ok")),d("disabled",e.selectedDiseqcType.inactive)}}function Ehe(t,s){if(1&t){const e=E();l(0,"p-button",48),v("onClick",function(){return C(e),y(p(2).work.displayDeleteDiseqc=!0)}),c()}2&t&&d("disabled",!p(2).diseqcSubTree)}function Lhe(t,s){if(1&t){const e=E();l(0,"p-button",49),v("click",function(){return C(e),y(p(2).work.displayDeleteDiseqc=!1)}),f(1,"translate"),c(),l(2,"p-button",50),v("click",function(){return C(e),y(p(2).deleteDiseqc())}),f(3,"translate"),c()}2&t&&(I("label",g(1,2,"common.no")),a(2),I("label",g(3,4,"common.yes")))}function Rhe(t,s){if(1&t){const e=E();l(0,"app-lnb",51),v("baseEvent",function(i){return C(e),y(p(2).setDiseqcObject(i))}),c()}if(2&t){const e=p(2);d("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function Ohe(t,s){if(1&t){const e=E();l(0,"app-rotor",51),v("baseEvent",function(i){return C(e),y(p(2).setDiseqcObject(i))}),c()}if(2&t){const e=p(2);d("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function Ahe(t,s){if(1&t){const e=E();l(0,"app-switch",51),v("baseEvent",function(i){return C(e),y(p(2).setDiseqcObject(i))}),c()}if(2&t){const e=p(2);d("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function Phe(t,s){if(1&t){const e=E();l(0,"app-unicable",51),v("baseEvent",function(i){return C(e),y(p(2).setDiseqcObject(i))}),c()}if(2&t){const e=p(2);d("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}const Fhe=function(){return{minWidth:"80%"}},rD=function(){return{width:"50vw"}};function Nhe(t,s){if(1&t){const e=E();l(0,"div",6)(1,"div",7)(2,"div",8)(3,"label",9),_(4),f(5,"translate"),c(),l(6,"input",10,11),v("ngModelChange",function(i){return C(e),y(p().diseqcTree.Description=i)}),c(),l(8,"small",12),_(9),f(10,"translate"),c()(),l(11,"div",8)(12,"label",13),_(13),f(14,"translate"),c(),l(15,"p-inputNumber",14),v("ngModelChange",function(i){return C(e),y(p().diseqcTree.CmdRepeat=i)}),c(),l(16,"small",12),D(17,"div",15),f(18,"translate"),c()(),l(19,"div",8)(20,"label",16),_(21),f(22,"translate"),c(),l(23,"p-dropdown",17,18),v("ngModelChange",function(i){return C(e),y(p().currentSubType=i)})("onChange",function(){return C(e),y(p().updateSubType())}),c(),l(25,"small",12),_(26),f(27,"translate"),c()(),m(28,Dhe,11,11,"div",19),l(29,"div",8)(30,"label",20),_(31),f(32,"translate"),c(),l(33,"p-inputNumber",21),v("ngModelChange",function(i){return C(e),y(p().diseqcTree.RotorLoSpeed=i)}),c(),l(34,"small",12),_(35),f(36,"translate"),c()(),l(37,"div",8)(38,"label",22),_(39),f(40,"translate"),c(),l(41,"p-inputNumber",23),v("ngModelChange",function(i){return C(e),y(p().diseqcTree.RotorHiSpeed=i)}),c(),l(42,"small",12),_(43),f(44,"translate"),c()(),l(45,"div",8)(46,"label",24),_(47),f(48,"translate"),c(),l(49,"p-inputNumber",25),v("ngModelChange",function(i){return C(e),y(p().fields.Latitude=i)}),c(),l(50,"small",12),_(51),f(52,"translate"),c()(),l(53,"div",8)(54,"label",26),_(55),f(56,"translate"),c(),l(57,"p-inputNumber",27),v("ngModelChange",function(i){return C(e),y(p().fields.Longitude=i)}),c(),l(58,"small",12),_(59),f(60,"translate"),c()(),l(61,"p-fieldset",28),f(62,"translate"),m(63,Mhe,2,3,"p-button",29),l(64,"p-dialog",30),v("visibleChange",function(i){return C(e),y(p().work.displayNewDiseqc=i)}),f(65,"translate"),l(66,"label",31),_(67),f(68,"translate"),c(),l(69,"p-listbox",32),v("ngModelChange",function(i){return C(e),y(p().selectedDiseqcType=i)})("onDblClick",function(){return C(e),y(p().newDiseqc())}),c(),m(70,khe,4,7,"ng-template",33),c(),m(71,Ehe,1,1,"p-button",34),l(72,"p-dialog",30),v("visibleChange",function(i){return C(e),y(p().work.displayDeleteDiseqc=i)}),f(73,"translate"),l(74,"h2"),_(75),f(76,"translate"),c(),l(77,"p"),_(78),f(79,"translate"),c(),m(80,Lhe,4,6,"ng-template",33),c(),m(81,Rhe,1,3,"app-lnb",35),m(82,Ohe,1,3,"app-rotor",35),m(83,Ahe,1,3,"app-switch",35),m(84,Phe,1,3,"app-unicable",35),c()()()}if(2&t){const e=p();a(4),S(g(5,65,"settings.capture.diseqc.description_label")),a(2),d("ngModel",e.diseqcTree.Description),a(3),x(" ",g(10,67,"settings.capture.diseqc.description_desc")," "),a(4),S(g(14,69,"settings.capture.diseqc.cmdrepeat_label")),a(2),d("ngModel",e.diseqcTree.CmdRepeat)("showButtons",!0)("min",0)("max",15)("step",1),a(2),d("innerHTML",g(18,71,"settings.capture.diseqc.cmdrepeat_desc"),Zt),a(2),j(V(105,oD)),a(2),S(g(22,73,"settings.capture.diseqc.rotor.type_label")),a(2),j(V(106,Fhe)),d("options",e.rotorSubTypes)("ngModel",e.currentSubType)("editable",!1)("maxlength",0),a(3),x(" ",g(27,75,"settings.capture.diseqc.rotor.type_desc")," "),a(2),d("ngIf","diseqc_1_2"==e.diseqcTree.SubType),a(3),S(g(32,77,"settings.capture.diseqc.rotor.lospeed_label")),a(2),d("ngModel",e.diseqcTree.RotorLoSpeed)("maxFractionDigits",5),a(2),x(" ",g(36,79,"settings.capture.diseqc.rotor.lospeed_desc")," "),a(4),S(g(40,81,"settings.capture.diseqc.rotor.hispeed_label")),a(2),d("ngModel",e.diseqcTree.RotorHiSpeed)("maxFractionDigits",5),a(2),x(" ",g(44,83,"settings.capture.diseqc.rotor.hispeed_desc")," "),a(4),S(g(48,85,"settings.capture.diseqc.rotor.latitude_label")),a(2),d("ngModel",e.fields.Latitude)("maxFractionDigits",5),a(2),x(" ",g(52,87,"settings.capture.diseqc.rotor.latitude_desc")," "),a(4),S(g(56,89,"settings.capture.diseqc.rotor.longitude_label")),a(2),d("ngModel",e.fields.Longitude)("maxFractionDigits",5),a(2),x(" ",g(60,91,"settings.capture.diseqc.rotor.longitude_desc")," "),a(2),I("legend",g(62,93,"settings.capture.dvb.satellite_heading")),d("toggleable",!0)("collapsed",!0),a(2),d("ngIf",!e.diseqcSubTree),a(1),j(V(107,rD)),I("header",g(65,95,"settings.capture.dvb.newsatellite_heading")),d("visible",e.work.displayNewDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(g(68,97,"settings.capture.dvb.newsatellite_devtype")),a(2),d("options",e.captureCardService.diseqcTypes)("ngModel",e.selectedDiseqcType),a(2),d("ngIf",e.diseqcSubTree),a(1),j(V(108,rD)),I("header",g(73,99,"settings.capture.dvb.satellite_delete_header")),d("visible",e.work.displayDeleteDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(g(76,101,"settings.common.ru_sure")),a(3),S(g(79,103,"settings.capture.dvb.satellite_delete_desc")),a(3),d("ngIf",e.diseqcSubTree&&"lnb"==e.diseqcSubTree.Type),a(1),d("ngIf",e.diseqcSubTree&&"rotor"==e.diseqcSubTree.Type),a(1),d("ngIf",e.diseqcSubTree&&"switch"==e.diseqcSubTree.Type),a(1),d("ngIf",e.diseqcSubTree&&"scr"==e.diseqcSubTree.Type)}}let Mc=(()=>{class t{constructor(e,n,i,o){this.captureCardService=e,this.setupService=n,this.translate=i,this.mythService=o,this.baseEvent=new q,this.rotorSubTypes=[{Name:"settings.capture.diseqc.subtype_diseqc_1_2",SubType:"diseqc_1_2"},{Name:"settings.capture.diseqc.subtype_diseqc_1_3",SubType:"diseqc_1_3"}],this.selectedDiseqcType={description:"",type:"",inactive:!0},this.rotorPositions=[],this.fields={Latitude:null,Longitude:null},this.work={displayNewDiseqc:!1,displayDeleteDiseqc:!1},this.setupDone=!1,this.rotorSubTypes.forEach(r=>i.get(r.Name).subscribe(u=>r.Name=u))}ngOnInit(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"latitude"}).subscribe({next:e=>{e.String.length>0&&(this.fields.Latitude=Number(e.String))},error:()=>this.dvbComponent.work.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"longitude"}).subscribe({next:e=>{e.String.length>0&&(this.fields.Longitude=Number(e.String))},error:()=>this.dvbComponent.work.errorCount++});for(let e=0;e<48;e++)this.rotorPositions.push({Num:e+1,Angle:null});if(this.diseqcTree.DiSEqCId?this.diseqcTree.RotorPositions.split(":").forEach(n=>{let i=n.split("=");if(2==i.length&&i[0].length>0&&i[1].length>0){let o=Number.parseInt(i[1])-1,r=Number.parseFloat(i[0]);o>-1&&o<48&&(this.rotorPositions[o].Angle=r)}}):(this.diseqcTree.RotorHiSpeed=2.5,this.diseqcTree.RotorLoSpeed=1.9,this.diseqcTree.SubType="diseqc_1_3",this.diseqcTree.CmdRepeat=1),this.diseqcTree.SubType){let e=this.rotorSubTypes.find(n=>n.SubType==this.diseqcTree.SubType);e&&(this.currentSubType=e)}this.diseqcSubTree=this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.find(e=>e.ParentId==this.diseqcTree.DiSEqCId)}ngAfterViewInit(){this.baseEvent.emit(this),this.currentForm.valueChanges.subscribe(n=>{this.setupDone&&this.currentForm.dirty&&this.dvbComponent.currentForm.form.markAsDirty()}),new It(n=>{setTimeout(()=>{n.next(1),n.complete()},100)}).subscribe(n=>{this.setupDone=!0,this.diseqcTree.DiSEqCId?this.currentForm.form.markAsPristine():(this.currentForm.form.markAsDirty(),this.dvbComponent.currentForm.form.markAsDirty())})}updateSubType(){this.diseqcTree.SubType=this.currentSubType.SubType}newDiseqc(){this.work.displayNewDiseqc=!1,this.diseqcSubTree={Type:this.selectedDiseqcType.type,Description:this.selectedDiseqcType.description}}setDiseqcObject(e){this.diseqcSubComponent=e}deleteDiseqc(){this.work.displayDeleteDiseqc=!1,this.dvbComponent.work.errorCount=0,this.diseqcSubTree&&this.diseqcSubTree.DiSEqCId&&this.captureCardService.DeleteDiseqcTree(this.diseqcSubTree.DiSEqCId).subscribe({next:e=>{e.bool||(console.log("DeleteDiseqcTree",e),this.dvbComponent.work.errorCount++)},error:e=>{console.log("DeleteDiseqcTree",e),this.dvbComponent.work.errorCount++}}),0==this.dvbComponent.work.errorCount&&(this.diseqcSubTree=void 0)}saveForm(e,n){this.diseqcTree.ParentId=e,null!=this.fields.Latitude&&this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"latitude",Value:String(this.fields.Latitude)}).subscribe(this.dvbComponent.saveObserver),null!=this.fields.Longitude&&this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"longitude",Value:String(this.fields.Longitude)}).subscribe(this.dvbComponent.saveObserver),this.diseqcTree.RotorPositions="",this.rotorPositions.forEach(i=>{null!=i.Angle&&(this.diseqcTree.RotorPositions.length>0&&(this.diseqcTree.RotorPositions=this.diseqcTree.RotorPositions+":"),this.diseqcTree.RotorPositions=this.diseqcTree.RotorPositions+i.Angle+"="+i.Num)}),this.diseqcTree.DiSEqCId?(this.captureCardService.UpdateDiseqcTree(this.diseqcTree).subscribe(n),this.diseqcSubComponent&&this.diseqcSubComponent.saveForm(this.diseqcTree.DiSEqCId,{error:i=>{n.error(i)}})):this.captureCardService.AddDiseqcTree(this.diseqcTree).subscribe({next:i=>{i.int&&i.int>0?(this.diseqcTree.DiSEqCId=i.int,n.next(i),this.diseqcSubComponent&&this.diseqcSubComponent.saveForm(this.diseqcTree.DiSEqCId,{next:o=>{},error:o=>{n.error(o)}})):(console.log("UpdateDiseqcTree",i),n.error(i))},error:i=>{console.log("UpdateDiseqcTree",i),n.error(i)}})}static#e=this.\u0275fac=function(n){return new(n||t)(M(Kt),M(Re),M(Le),M(Wt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-rotor"]],viewQuery:function(n,i){if(1&n&&K(bhe,5),2&n){let o;H(o=G())&&(i.currentForm=o.first)}},inputs:{diseqcTree:"diseqcTree",diseqcTreeList:"diseqcTreeList",dvbComponent:"dvbComponent"},outputs:{baseEvent:"baseEvent"},decls:6,vars:0,consts:[["name","rotorform",1,"ml-3","mr-3"],["rotorform","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","Description",1,"label","block"],["pInputText","","id","ip","name","Description",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Description","ngModel"],[1,"block"],["for","CmdRepeat",1,"label","block"],["name","CmdRepeat","id","CmdRepeat",3,"ngModel","showButtons","min","max","step","ngModelChange"],[3,"innerHTML"],["for","SubType",1,"label","block"],["optionLabel","Name","name","SubType",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["SubType","ngModel"],["class","form-group field",4,"ngIf"],["for","RotorLoSpeed",1,"label","block"],["name","RotorLoSpeed","id","RotorLoSpeed","mode","decimal",3,"ngModel","maxFractionDigits","ngModelChange"],["for","RotorHiSpeed",1,"label","block"],["name","RotorHiSpeed","id","RotorHiSpeed","mode","decimal",3,"ngModel","maxFractionDigits","ngModelChange"],["for","Latitude",1,"label","block"],["name","Latitude","id","Latitude","mode","decimal",3,"ngModel","maxFractionDigits","ngModelChange"],["for","Longitude",1,"label","block"],["name","Longitude","id","Longitude","mode","decimal",3,"ngModel","maxFractionDigits","ngModelChange"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["icon","pi pi-plus-circle","styleClass","p-button-plain",3,"label","onClick",4,"ngIf"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["for","disenqcTypes",1,"label","block"],["optionLabel","description","name","disenqcTypes","optionDisabled","inactive",3,"options","ngModel","ngModelChange","onDblClick"],["pTemplate","footer"],["styleClass","p-button-warning","label","Delete Satellite Devices","icon","pi pi-trash",3,"disabled","onClick",4,"ngIf"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent",4,"ngIf"],["for","RotorPositions",1,"label","block"],["dataKey","Num","responsiveLayout","scroll","name","RotorPositions","styleClass","p-datatable-gridlines","scrollHeight","20rem",3,"value","scrollable"],["pTemplate","header"],["pTemplate","body"],["pEditableColumn",""],["pTemplate","input"],["pTemplate","output"],["name","Angle",3,"ngModel","min","max","maxFractionDigits","ngModelChange"],[4,"ngIf"],["icon","pi pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],["styleClass","p-button-warning","label","Delete Satellite Devices","icon","pi pi-trash",3,"disabled","onClick"],["icon","pi pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi pi-check-circle","styleClass","p-button-plain",3,"label","click"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent"]],template:function(n,i){1&n&&(l(0,"form",0,1)(2,"p-card",2),m(3,vhe,2,3,"ng-template",3),m(4,Che,0,0,"ng-template",4),m(5,Nhe,85,109,"ng-template",5),c()())}})}return t})();const Vhe=["unicableform"];function Bhe(t,s){1&t&&(_(0),f(1,"translate")),2&t&&x(" ",g(1,1,"settings.capture.diseqc.unicable.title")," ")}function Hhe(t,s){}function Ghe(t,s){if(1&t){const e=E();l(0,"p-button",30),v("onClick",function(){return C(e),y(p(2).work.displayNewDiseqc=!0)}),f(1,"translate"),c()}2&t&&I("label",g(1,1,"settings.capture.dvb.newsatellite_button"))}function qhe(t,s){if(1&t){const e=E();l(0,"p-button",31),v("onClick",function(){return C(e),y(p(2).work.displayNewDiseqc=!1)}),f(1,"translate"),c(),l(2,"p-button",32),v("onClick",function(){return C(e),y(p(2).newDiseqc())}),f(3,"translate"),c()}if(2&t){const e=p(2);I("label",g(1,3,"common.cancel")),a(2),I("label",g(3,5,"common.ok")),d("disabled",e.selectedDiseqcType.inactive)}}function zhe(t,s){if(1&t){const e=E();l(0,"p-button",33),v("onClick",function(){return C(e),y(p(2).work.displayDeleteDiseqc=!0)}),c()}2&t&&d("disabled",!p(2).diseqcSubTree)}function Uhe(t,s){if(1&t){const e=E();l(0,"p-button",34),v("click",function(){return C(e),y(p(2).work.displayDeleteDiseqc=!1)}),f(1,"translate"),c(),l(2,"p-button",35),v("click",function(){return C(e),y(p(2).deleteDiseqc())}),f(3,"translate"),c()}2&t&&(I("label",g(1,2,"common.no")),a(2),I("label",g(3,4,"common.yes")))}function jhe(t,s){if(1&t){const e=E();l(0,"app-lnb",36),v("baseEvent",function(i){return C(e),y(p(2).setDiseqcObject(i))}),c()}if(2&t){const e=p(2);d("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function $he(t,s){if(1&t){const e=E();l(0,"app-rotor",36),v("baseEvent",function(i){return C(e),y(p(2).setDiseqcObject(i))}),c()}if(2&t){const e=p(2);d("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function Whe(t,s){if(1&t){const e=E();l(0,"app-switch",36),v("baseEvent",function(i){return C(e),y(p(2).setDiseqcObject(i))}),c()}if(2&t){const e=p(2);d("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function Khe(t,s){if(1&t){const e=E();l(0,"app-unicable",36),v("baseEvent",function(i){return C(e),y(p(2).setDiseqcObject(i))}),c()}if(2&t){const e=p(2);d("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}const aD=function(){return{width:"50vw"}};function Qhe(t,s){if(1&t){const e=E();l(0,"div",6)(1,"div",7)(2,"div",8)(3,"label",9),_(4),f(5,"translate"),c(),l(6,"input",10,11),v("ngModelChange",function(i){return C(e),y(p().diseqcTree.Description=i)}),c(),l(8,"small",12),_(9),f(10,"translate"),c()(),l(11,"div",8)(12,"label",13),_(13),f(14,"translate"),c(),l(15,"p-inputNumber",14),v("ngModelChange",function(i){return C(e),y(p().diseqcTree.ScrUserband=i)}),c(),l(16,"small",12),D(17,"div",15),f(18,"translate"),c()(),l(19,"div",8)(20,"label",16),_(21),f(22,"translate"),c(),l(23,"p-inputNumber",17),v("ngModelChange",function(i){return C(e),y(p().diseqcTree.ScrFrequency=i)}),c(),l(24,"small",12),_(25),f(26,"translate"),c()(),l(27,"div",8)(28,"label",18),_(29),f(30,"translate"),c(),l(31,"p-inputNumber",19),v("ngModelChange",function(i){return C(e),y(p().diseqcTree.ScrPin=i)}),c(),l(32,"small",12),_(33),f(34,"translate"),c()(),l(35,"div",8)(36,"label",20),_(37),f(38,"translate"),c(),l(39,"p-inputNumber",21),v("ngModelChange",function(i){return C(e),y(p().diseqcTree.CmdRepeat=i)}),c(),l(40,"small",12),D(41,"div",15),f(42,"translate"),c()(),l(43,"p-fieldset",22),f(44,"translate"),m(45,Ghe,2,3,"p-button",23),l(46,"p-dialog",24),v("visibleChange",function(i){return C(e),y(p().work.displayNewDiseqc=i)}),f(47,"translate"),l(48,"label",25),_(49),f(50,"translate"),c(),l(51,"p-listbox",26),v("ngModelChange",function(i){return C(e),y(p().selectedDiseqcType=i)})("onDblClick",function(){return C(e),y(p().newDiseqc())}),c(),m(52,qhe,4,7,"ng-template",27),c(),m(53,zhe,1,1,"p-button",28),l(54,"p-dialog",24),v("visibleChange",function(i){return C(e),y(p().work.displayDeleteDiseqc=i)}),f(55,"translate"),l(56,"h2"),_(57),f(58,"translate"),c(),l(59,"p"),_(60),f(61,"translate"),c(),m(62,Uhe,4,6,"ng-template",27),c(),m(63,jhe,1,3,"app-lnb",29),m(64,$he,1,3,"app-rotor",29),m(65,Whe,1,3,"app-switch",29),m(66,Khe,1,3,"app-unicable",29),c()()()}if(2&t){const e=p();a(4),S(g(5,55,"settings.capture.diseqc.description_label")),a(2),d("ngModel",e.diseqcTree.Description),a(3),x(" ",g(10,57,"settings.capture.diseqc.description_desc")," "),a(4),S(g(14,59,"settings.capture.diseqc.unicable.userband_label")),a(2),d("ngModel",e.diseqcTree.ScrUserband)("showButtons",!0)("min",0)("max",7)("step",1),a(2),d("innerHTML",g(18,61,"settings.capture.diseqc.userband_desc"),Zt),a(4),S(g(22,63,"settings.capture.diseqc.unicable.frequency_label")),a(2),d("ngModel",e.diseqcTree.ScrFrequency)("useGrouping",!1),a(2),x(" ",g(26,65,"settings.capture.diseqc.unicable.frequency_desc")," "),a(4),S(g(30,67,"settings.capture.diseqc.unicable.pin_label")),a(2),d("ngModel",e.diseqcTree.ScrPin)("useGrouping",!1)("min",-1)("max",255),a(2),x(" ",g(34,69,"settings.capture.diseqc.unicable.pin_desc")," "),a(4),S(g(38,71,"settings.capture.diseqc.cmdrepeat_label")),a(2),d("ngModel",e.diseqcTree.CmdRepeat)("showButtons",!0)("min",0)("max",15)("step",1),a(2),d("innerHTML",g(42,73,"settings.capture.diseqc.cmdrepeat_desc"),Zt),a(2),I("legend",g(44,75,"settings.capture.dvb.satellite_heading")),d("toggleable",!0)("collapsed",!0),a(2),d("ngIf",!e.diseqcSubTree),a(1),j(V(87,aD)),I("header",g(47,77,"settings.capture.dvb.newsatellite_heading")),d("visible",e.work.displayNewDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(g(50,79,"settings.capture.dvb.newsatellite_devtype")),a(2),d("options",e.captureCardService.diseqcTypes)("ngModel",e.selectedDiseqcType),a(2),d("ngIf",e.diseqcSubTree),a(1),j(V(88,aD)),I("header",g(55,81,"settings.capture.dvb.satellite_delete_header")),d("visible",e.work.displayDeleteDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(g(58,83,"settings.common.ru_sure")),a(3),S(g(61,85,"settings.capture.dvb.satellite_delete_desc")),a(3),d("ngIf",e.diseqcSubTree&&"lnb"==e.diseqcSubTree.Type),a(1),d("ngIf",e.diseqcSubTree&&"rotor"==e.diseqcSubTree.Type),a(1),d("ngIf",e.diseqcSubTree&&"switch"==e.diseqcSubTree.Type),a(1),d("ngIf",e.diseqcSubTree&&"scr"==e.diseqcSubTree.Type)}}let kc=(()=>{class t{constructor(e){this.captureCardService=e,this.selectedDiseqcType={description:"",type:"",inactive:!0},this.baseEvent=new q,this.work={displayNewDiseqc:!1,displayDeleteDiseqc:!1},this.setupDone=!1}ngOnInit(){this.diseqcTree.DiSEqCId||(this.diseqcTree.ScrUserband=0,this.diseqcTree.ScrFrequency=1210,this.diseqcTree.ScrPin=-1,this.diseqcTree.CmdRepeat=1),this.diseqcSubTree=this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.find(e=>e.ParentId==this.diseqcTree.DiSEqCId)}ngAfterViewInit(){this.baseEvent.emit(this),this.currentForm.valueChanges.subscribe(n=>{this.setupDone&&this.currentForm.dirty&&this.dvbComponent.currentForm.form.markAsDirty()}),new It(n=>{setTimeout(()=>{n.next(1),n.complete()},100)}).subscribe(n=>{this.setupDone=!0,this.diseqcTree.DiSEqCId?this.currentForm.form.markAsPristine():(this.currentForm.form.markAsDirty(),this.dvbComponent.currentForm.form.markAsDirty())})}newDiseqc(){this.work.displayNewDiseqc=!1,this.diseqcSubTree={Type:this.selectedDiseqcType.type,Description:this.selectedDiseqcType.description}}setDiseqcObject(e){this.diseqcSubComponent=e}deleteDiseqc(){this.work.displayDeleteDiseqc=!1,this.dvbComponent.work.errorCount=0,this.diseqcSubTree&&this.diseqcSubTree.DiSEqCId&&this.captureCardService.DeleteDiseqcTree(this.diseqcSubTree.DiSEqCId).subscribe({next:e=>{e.bool||(console.log("DeleteDiseqcTree",e),this.dvbComponent.work.errorCount++)},error:e=>{console.log("DeleteDiseqcTree",e),this.dvbComponent.work.errorCount++}}),0==this.dvbComponent.work.errorCount&&(this.diseqcSubTree=void 0)}saveForm(e,n){this.diseqcTree.ParentId=e,this.diseqcTree.DiSEqCId?(this.captureCardService.UpdateDiseqcTree(this.diseqcTree).subscribe(n),this.diseqcSubComponent&&this.diseqcSubComponent.saveForm(this.diseqcTree.DiSEqCId,{error:i=>{n.error(i)}})):this.captureCardService.AddDiseqcTree(this.diseqcTree).subscribe({next:i=>{i.int&&i.int>0?(this.diseqcTree.DiSEqCId=i.int,n.next&&n.next(i),this.diseqcSubComponent&&this.diseqcSubComponent.saveForm(this.diseqcTree.DiSEqCId,{next:o=>{},error:o=>{n.error(o)}})):(console.log("UpdateDiseqcTree",i),n.error(i))},error:i=>{console.log("UpdateDiseqcTree",i),n.error(i)}})}static#e=this.\u0275fac=function(n){return new(n||t)(M(Kt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-unicable"]],viewQuery:function(n,i){if(1&n&&K(Vhe,5),2&n){let o;H(o=G())&&(i.currentForm=o.first)}},inputs:{diseqcTree:"diseqcTree",diseqcTreeList:"diseqcTreeList",dvbComponent:"dvbComponent"},outputs:{baseEvent:"baseEvent"},decls:6,vars:0,consts:[["name","unicableform",1,"ml-3","mr-3"],["unicableform","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","Description",1,"label","block"],["pInputText","","id","ip","name","Description",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Description","ngModel"],[1,"block"],["for","ScrUserband",1,"label","block"],["name","ScrUserband","id","ScrUserband",3,"ngModel","showButtons","min","max","step","ngModelChange"],[3,"innerHTML"],["for","ScrFrequency",1,"label","block"],["name","ScrFrequency","id","ScrFrequency","mode","decimal","inputId","withoutgrouping",3,"ngModel","useGrouping","ngModelChange"],["for","ScrPin",1,"label","block"],["name","ScrPin","id","ScrPin","mode","decimal","inputId","withoutgrouping",3,"ngModel","useGrouping","min","max","ngModelChange"],["for","CmdRepeat",1,"label","block"],["name","CmdRepeat","id","CmdRepeat",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["icon","pi pi-plus-circle","styleClass","p-button-plain",3,"label","onClick",4,"ngIf"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["for","disenqcTypes",1,"label","block"],["optionLabel","description","name","disenqcTypes","optionDisabled","inactive",3,"options","ngModel","ngModelChange","onDblClick"],["pTemplate","footer"],["styleClass","p-button-warning","label","Delete Satellite Devices","icon","pi pi-trash",3,"disabled","onClick",4,"ngIf"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent",4,"ngIf"],["icon","pi pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],["styleClass","p-button-warning","label","Delete Satellite Devices","icon","pi pi-trash",3,"disabled","onClick"],["icon","pi pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi pi-check-circle","styleClass","p-button-plain",3,"label","click"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent"]],template:function(n,i){1&n&&(l(0,"form",0,1)(2,"p-card",2),m(3,Bhe,2,3,"ng-template",3),m(4,Hhe,0,0,"ng-template",4),m(5,Qhe,67,89,"ng-template",5),c()())}})}return t})();const Jhe=["switchform"];function Zhe(t,s){1&t&&(_(0),f(1,"translate")),2&t&&x(" ",g(1,1,"settings.capture.diseqc.switch.title")," ")}function Yhe(t,s){}function Xhe(t,s){1&t&&(l(0,"div")(1,"small",27),_(2),f(3,"translate"),c()()),2&t&&(a(2),S(g(3,1,"settings.capture.diseqc.switchports_error")))}function eme(t,s){if(1&t){const e=E();l(0,"p-button",33),v("onClick",function(){C(e);const i=p(2).index;return y(p(2).displayDeleteThis[i]=!0)}),c()}2&t&&d("disabled",!p(2).$implicit)}function tme(t,s){if(1&t){const e=E();l(0,"p-button",34),v("click",function(){C(e);const i=p(2).index;return y(p(2).displayDeleteThis[i]=!1)}),f(1,"translate"),c(),l(2,"p-button",35),v("click",function(){C(e);const i=p(2).index;return y(p(2).deleteDiseqc(i))}),f(3,"translate"),c()}2&t&&(I("label",g(1,2,"common.no")),a(2),I("label",g(3,4,"common.yes")))}function nme(t,s){if(1&t){const e=E();l(0,"app-lnb",36),v("baseEvent",function(i){return C(e),y(p(4).setDiseqcObject(i))}),c()}if(2&t){const e=p(2).$implicit,n=p(2);d("diseqcTree",e)("diseqcTreeList",n.diseqcTreeList)("dvbComponent",n.dvbComponent)}}function ime(t,s){if(1&t){const e=E();l(0,"app-rotor",36),v("baseEvent",function(i){return C(e),y(p(4).setDiseqcObject(i))}),c()}if(2&t){const e=p(2).$implicit,n=p(2);d("diseqcTree",e)("diseqcTreeList",n.diseqcTreeList)("dvbComponent",n.dvbComponent)}}function sme(t,s){if(1&t){const e=E();l(0,"app-switch",36),v("baseEvent",function(i){return C(e),y(p(4).setDiseqcObject(i))}),c()}if(2&t){const e=p(2).$implicit,n=p(2);d("diseqcTree",e)("diseqcTreeList",n.diseqcTreeList)("dvbComponent",n.dvbComponent)}}function ome(t,s){if(1&t){const e=E();l(0,"app-unicable",36),v("baseEvent",function(i){return C(e),y(p(4).setDiseqcObject(i))}),c()}if(2&t){const e=p(2).$implicit,n=p(2);d("diseqcTree",e)("diseqcTreeList",n.diseqcTreeList)("dvbComponent",n.dvbComponent)}}const lD=function(){return{width:"50vw"}};function rme(t,s){if(1&t){const e=E();l(0,"p-fieldset",28),f(1,"translate"),m(2,eme,1,1,"p-button",29),l(3,"p-dialog",30),v("visibleChange",function(i){C(e);const o=p().index;return y(p(2).displayDeleteThis[o]=i)}),f(4,"translate"),l(5,"h2"),_(6),f(7,"translate"),c(),l(8,"p"),_(9),f(10,"translate"),c(),m(11,tme,4,6,"ng-template",31),c(),m(12,nme,1,3,"app-lnb",32),m(13,ime,1,3,"app-rotor",32),m(14,sme,1,3,"app-switch",32),m(15,ome,1,3,"app-unicable",32),c()}if(2&t){const e=p(),n=e.$implicit,i=e.index,o=p(2);I("legend",g(1,17,"settings.capture.dvb.satellite_heading")),d("toggleable",!0)("collapsed",!0),a(2),d("ngIf",n),a(1),j(V(25,lD)),I("header",g(4,19,"settings.capture.dvb.satellite_delete_header")),d("visible",o.displayDeleteThis[i])("modal",!0)("draggable",!1)("resizable",!1),a(3),S(g(7,21,"settings.common.ru_sure")),a(3),S(g(10,23,"settings.capture.dvb.satellite_delete_desc")),a(3),d("ngIf",n&&"lnb"==n.Type),a(1),d("ngIf",n&&"rotor"==n.Type),a(1),d("ngIf",n&&"switch"==n.Type),a(1),d("ngIf",n&&"scr"==n.Type)}}function ame(t,s){if(1&t&&(l(0,"div"),m(1,rme,16,26,"p-fieldset",26),c()),2&t){const e=s.$implicit;a(1),d("ngIf",e)}}function lme(t,s){if(1&t){const e=E();l(0,"p-button",40),v("onClick",function(){return C(e),y(p(3).work.displayNewDiseqc=!1)}),f(1,"translate"),c(),l(2,"p-button",41),v("onClick",function(){return C(e),y(p(3).newDiseqc())}),f(3,"translate"),c()}if(2&t){const e=p(3);I("label",g(1,3,"common.cancel")),a(2),I("label",g(3,5,"common.ok")),d("disabled",e.selectedDiseqcType.inactive)}}function cme(t,s){if(1&t){const e=E();l(0,"p-fieldset",28),f(1,"translate"),l(2,"p-button",37),v("onClick",function(){return C(e),y(p(2).work.displayNewDiseqc=!0)}),f(3,"translate"),c(),l(4,"p-dialog",30),v("visibleChange",function(i){return C(e),y(p(2).work.displayNewDiseqc=i)}),f(5,"translate"),l(6,"label",38),_(7),f(8,"translate"),c(),l(9,"p-listbox",39),v("ngModelChange",function(i){return C(e),y(p(2).selectedDiseqcType=i)})("onDblClick",function(){return C(e),y(p(2).newDiseqc())}),c(),m(10,lme,4,7,"ng-template",31),c()()}if(2&t){const e=p(2);I("legend",g(1,14,"settings.capture.dvb.satellite_heading")),d("toggleable",!0)("collapsed",!1),a(2),I("label",g(3,16,"settings.capture.dvb.newsatellite_button")),a(2),j(V(22,lD)),I("header",g(5,18,"settings.capture.dvb.newsatellite_heading")),d("visible",e.work.displayNewDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),x(" ",g(8,20,"settings.capture.dvb.newsatellite_devtype")," "),a(2),d("options",e.captureCardService.diseqcTypes)("ngModel",e.selectedDiseqcType)}}const ume=function(){return{width:"25rem"}},dme=function(){return{minWidth:"80%"}};function pme(t,s){if(1&t){const e=E();l(0,"div",6)(1,"div",7)(2,"div",8)(3,"label",9),_(4),f(5,"translate"),c(),l(6,"input",10,11),v("ngModelChange",function(i){return C(e),y(p().diseqcTree.Description=i)}),c(),l(8,"small",12),_(9),f(10,"translate"),c()(),l(11,"div",8)(12,"label",13),_(13),f(14,"translate"),c(),l(15,"p-inputNumber",14),v("ngModelChange",function(i){return C(e),y(p().diseqcTree.CmdRepeat=i)}),c(),l(16,"small",12),D(17,"div",15),f(18,"translate"),c()(),l(19,"div",8)(20,"label",16),_(21),f(22,"translate"),c(),l(23,"p-dropdown",17,18),v("ngModelChange",function(i){return C(e),y(p().currentSubType=i)})("onChange",function(){return C(e),y(p().updateSubType())}),c(),l(25,"small",12),_(26),f(27,"translate"),c()(),l(28,"div",8)(29,"label",19),_(30),f(31,"translate"),c(),l(32,"input",20,21),v("ngModelChange",function(i){return C(e),y(p().work.addressText=i)}),c(),l(34,"small",12),_(35),f(36,"translate"),c()(),l(37,"div",8)(38,"label",22),_(39),f(40,"translate"),c(),l(41,"p-inputNumber",23),v("ngModelChange",function(i){return C(e),y(p().diseqcTree.SwitchPorts=i)}),c(),l(42,"small",12),D(43,"div",15),f(44,"translate"),c(),m(45,Xhe,4,3,"div",24),c(),m(46,ame,2,1,"div",25),m(47,cme,11,23,"p-fieldset",26),c()()}if(2&t){const e=p();a(4),S(g(5,35,"settings.capture.diseqc.description_label")),a(2),d("ngModel",e.diseqcTree.Description),a(3),x(" ",g(10,37,"settings.capture.diseqc.description_desc")," "),a(4),S(g(14,39,"settings.capture.diseqc.cmdrepeat_label")),a(2),d("ngModel",e.diseqcTree.CmdRepeat)("showButtons",!0)("min",0)("max",15)("step",1),a(2),d("innerHTML",g(18,41,"settings.capture.diseqc.cmdrepeat_desc"),Zt),a(2),j(V(55,ume)),a(2),S(g(22,43,"settings.capture.diseqc.switch.type_label")),a(2),j(V(56,dme)),d("options",e.switchSubTypes)("ngModel",e.currentSubType)("editable",!1)("maxlength",0),a(3),x(" ",g(27,45,"settings.capture.diseqc.switch.type_desc")," "),a(4),S(g(31,47,"settings.capture.diseqc.address_label")),a(2),d("ngModel",e.work.addressText)("disabled",!e.work.enableAddrAndPorts),a(3),x(" ",g(36,49,"settings.capture.diseqc.address_desc")," "),a(4),x(" ",g(40,51,"settings.capture.diseqc.switchports_label")," "),a(2),d("ngModel",e.diseqcTree.SwitchPorts)("showButtons",!0)("min",0)("max",255)("step",1)("disabled",!e.work.enableAddrAndPorts),a(2),d("innerHTML",g(44,53,"settings.capture.diseqc.switchports_desc"),Zt),a(2),d("ngIf",e.diseqcSubTreeCount>e.diseqcTree.SwitchPorts),a(1),d("ngForOf",e.diseqcSubTree),a(1),d("ngIf",e.diseqcSubTreeCount{class t{constructor(e,n){this.captureCardService=e,this.translate=n,this.diseqcSubComponent=[],this.baseEvent=new q,this.switchSubTypes=[{Name:"settings.capture.diseqc.switch.tone",SubType:"tone"},{Name:"settings.capture.diseqc.switch.voltage",SubType:"voltage"},{Name:"settings.capture.diseqc.switch.mini_diseqc",SubType:"mini_diseqc"},{Name:"settings.capture.diseqc.switch.diseqc",SubType:"diseqc"},{Name:"settings.capture.diseqc.switch.diseqc_uncom",SubType:"diseqc_uncom"},{Name:"settings.capture.diseqc.switch.legacy_sw21",SubType:"legacy_sw21"},{Name:"settings.capture.diseqc.switch.legacy_sw42",SubType:"legacy_sw42"},{Name:"settings.capture.diseqc.switch.legacy_sw64",SubType:"legacy_sw64"}],this.diseqcSubTree=[],this.diseqcSubTreeCount=0,this.work={addressText:"",displayNewDiseqc:!1,enableAddrAndPorts:!1},this.displayDeleteThis=[],this.selectedDiseqcType={description:"",type:"",inactive:!0},this.setupDone=!1,this.switchSubTypes.forEach(i=>n.get(i.Name).subscribe(o=>i.Name=o))}ngOnInit(){if(this.diseqcTree.DiSEqCId?this.work.addressText="0x"+this.diseqcTree.Address.toString(16):(this.diseqcTree.Address=16,this.work.addressText="0x10",this.diseqcTree.SwitchPorts=2,this.diseqcTree.SubType="tone",this.diseqcTree.CmdRepeat=1),this.diseqcTree.SubType){let e=this.switchSubTypes.find(n=>n.SubType==this.diseqcTree.SubType);e&&(this.currentSubType=e)}this.updateSubType(),this.displayDeleteThis=[],this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.forEach(e=>{e.ParentId==this.diseqcTree.DiSEqCId&&(this.diseqcSubTree.push(e),this.displayDeleteThis.push(!1),this.diseqcSubTreeCount++)})}ngAfterViewInit(){this.baseEvent.emit(this),this.currentForm.valueChanges.subscribe(n=>{this.setupDone&&this.currentForm.dirty&&this.dvbComponent.currentForm.form.markAsDirty()}),new It(n=>{setTimeout(()=>{n.next(1),n.complete()},100)}).subscribe(n=>{this.setupDone=!0,this.diseqcTree.DiSEqCId?this.currentForm.form.markAsPristine():(this.currentForm.form.markAsDirty(),this.dvbComponent.currentForm.form.markAsDirty())})}newDiseqc(){this.work.displayNewDiseqc=!1,this.diseqcSubTree.push({Type:this.selectedDiseqcType.type,Description:this.selectedDiseqcType.description}),this.displayDeleteThis.push(!1),this.diseqcSubTreeCount++}setDiseqcObject(e){this.diseqcSubComponent.findIndex(i=>i===e)<0&&this.diseqcSubComponent.push(e),console.log("setDiseqcObject",this.diseqcSubComponent.length)}deleteDiseqc(e){this.displayDeleteThis[e]=!1,this.dvbComponent.work.errorCount=0,console.log("Delete",e),null!=this.diseqcSubTree[e]&&(this.diseqcSubTree[e].DiSEqCId&&this.captureCardService.DeleteDiseqcTree(this.diseqcSubTree[e].DiSEqCId).subscribe({next:n=>{n.bool||(console.log("DeleteDiseqcTree",n),this.dvbComponent.work.errorCount++)},error:n=>{console.log("DeleteDiseqcTree",n),this.dvbComponent.work.errorCount++}}),0==this.dvbComponent.work.errorCount&&(this.diseqcSubTree[e]=null,this.diseqcSubTreeCount--))}updateSubType(){switch(this.diseqcTree.SubType=this.currentSubType.SubType,this.diseqcTree.SubType){case"tone":case"voltage":case"mini_diseqc":case"legacy_sw21":case"legacy_sw42":this.work.addressText="0x10",this.diseqcTree.SwitchPorts=2,this.work.enableAddrAndPorts=!1;break;case"legacy_sw64":this.work.addressText="0x10",this.diseqcTree.SwitchPorts=3,this.work.enableAddrAndPorts=!1;break;case"diseqc_uncom":case"diseqc":this.work.enableAddrAndPorts=!0}}saveForm(e,n){this.diseqcTree.ParentId=e,this.diseqcTree.Address=Number.parseInt(this.work.addressText),this.diseqcTree.DiSEqCId?(this.captureCardService.UpdateDiseqcTree(this.diseqcTree).subscribe(n),this.diseqcSubComponent.forEach(i=>{i&&i.saveForm(this.diseqcTree.DiSEqCId,{error:o=>{n.error(o)}})})):this.captureCardService.AddDiseqcTree(this.diseqcTree).subscribe({next:i=>{i.int&&i.int>0?(this.diseqcTree.DiSEqCId=i.int,n.next&&n.next(i),this.diseqcSubComponent.forEach(o=>{o&&o.saveForm(this.diseqcTree.DiSEqCId,{next:r=>{},error:r=>{n.error(r)}})})):(console.log("UpdateDiseqcTree",i),n.error(i))},error:i=>{console.log("UpdateDiseqcTree",i),n.error(i)}})}static#e=this.\u0275fac=function(n){return new(n||t)(M(Kt),M(Le))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-switch"]],viewQuery:function(n,i){if(1&n&&K(Jhe,5),2&n){let o;H(o=G())&&(i.currentForm=o.first)}},inputs:{diseqcTree:"diseqcTree",diseqcTreeList:"diseqcTreeList",dvbComponent:"dvbComponent"},outputs:{baseEvent:"baseEvent"},decls:6,vars:0,consts:[["name","switchform",1,"ml-3","mr-3"],["switchform","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","Description",1,"label","block"],["pInputText","","id","ip","name","Description",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Description","ngModel"],[1,"block"],["for","CmdRepeat",1,"label","block"],["name","CmdRepeat","id","CmdRepeat",3,"ngModel","showButtons","min","max","step","ngModelChange"],[3,"innerHTML"],["for","SubType",1,"label","block"],["optionLabel","Name","name","SubType",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["SubType","ngModel"],["for","Address",1,"label","block"],["pInputText","","id","Address","name","Address",1,"mb-2","form-control","w-full",3,"ngModel","disabled","ngModelChange"],["Address","ngModel"],["for","SwitchPorts",1,"label","block"],["name","SwitchPorts","id","SwitchPorts",3,"ngModel","showButtons","min","max","step","disabled","ngModelChange"],[4,"ngIf"],[4,"ngFor","ngForOf"],["class","mb-4 w-full",3,"legend","toggleable","collapsed",4,"ngIf"],[1,"p-error","block"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["styleClass","p-button-warning","label","Delete Satellite Devices","icon","pi pi-trash",3,"disabled","onClick",4,"ngIf"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["pTemplate","footer"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent",4,"ngIf"],["styleClass","p-button-warning","label","Delete Satellite Devices","icon","pi pi-trash",3,"disabled","onClick"],["icon","pi pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi pi-check-circle","styleClass","p-button-plain",3,"label","click"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent"],["icon","pi pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],["for","disenqcTypes",1,"label","block"],["optionLabel","description","name","disenqcTypes","optionDisabled","inactive",3,"options","ngModel","ngModelChange","onDblClick"],["icon","pi pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"]],template:function(n,i){1&n&&(l(0,"form",0,1)(2,"p-card",2),m(3,Zhe,2,3,"ng-template",3),m(4,Yhe,0,0,"ng-template",4),m(5,pme,48,57,"ng-template",5),c()())},dependencies:[ut,ne,We,Xe,xe,$e,In,Ce,He,ae,Te,Ge,pn,Gt,Xi,vt,es,$p,t,Mc,kc,pe]})}return t})();const hme=["externalform"],mme=["top"];function fme(t,s){1&t&&(_(0),f(1,"translate")),2&t&&x(" ",g(1,1,"settings.capture.external.title")," ")}function gme(t,s){}function _me(t,s){if(1&t){const e=E();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),_(4),f(5,"translate"),c(),l(6,"input",12,13),v("ngModelChange",function(i){return C(e),y(p().card.VideoDevice=i)}),c(),l(8,"small",14),_(9),f(10,"translate"),c()(),l(11,"div",10)(12,"label",15),_(13),f(14,"translate"),c(),l(15,"p-inputNumber",16),v("ngModelChange",function(i){return C(e),y(p().card.ChannelTimeout=i)}),c(),l(16,"small",14),_(17),f(18,"translate"),c()()()()}if(2&t){const e=p();a(4),S(g(5,10,"settings.capture.external.command_label")),a(2),d("ngModel",e.card.VideoDevice),a(3),x(" ",g(10,12,"settings.capture.external.command_desc")," "),a(4),S(g(14,14,"settings.capture.tunetimeout_label")),a(2),d("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",1750)("max",65e3)("step",250),a(2),x(" ",g(18,16,"settings.capture.tunetimeout_desc")," ")}}function bme(t,s){1&t&&(D(0,"p-message",22),f(1,"translate")),2&t&&I("text",g(1,1,"common.savesuccess"))}function vme(t,s){1&t&&(D(0,"p-message",23),f(1,"translate")),2&t&&I("text",g(1,1,"common.networkfail"))}function Cme(t,s){if(1&t){const e=E();l(0,"div",17)(1,"div",18),m(2,bme,2,3,"p-message",19),m(3,vme,2,3,"p-message",20),c(),l(4,"p-button",21),v("onClick",function(){C(e);const i=p(),o=B(1);return i.saveForm(),y(o.form.markAsPristine())}),f(5,"translate"),c()()}if(2&t){const e=p(),n=B(1);a(2),d("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),d("ngIf",e.work.errorCount>0),a(1),I("label",g(5,4,"common.save")),d("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let yme=(()=>{class t{constructor(e,n){this.captureCardService=e,this.setupService=n,this.work={successCount:0,errorCount:0},this.saveObserver={next:i=>{this.card.CardId&&i.bool?this.work.successCount++:!this.card.CardId&&i.int?(this.work.successCount++,this.card.CardId=i.int):(this.work.errorCount++,this.currentForm.form.markAsDirty())},error:i=>{console.error(i),this.work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}saveForm(){this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}static#e=this.\u0275fac=function(n){return new(n||t)(M(Kt),M(Re))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-external"]],viewQuery:function(n,i){if(1&n&&(K(hme,5),K(mme,5)),2&n){let o;H(o=G())&&(i.currentForm=o.first),H(o=G())&&(i.topElement=o.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","externalform",1,"ml-3","mr-3"],["externalform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["pInputText","","id","VideoDevice","name","VideoDevice",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["VideoDevice","ngModel"],[1,"block"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(n,i){1&n&&(l(0,"form",0,1),D(2,"span",null,2),l(4,"p-card",3),m(5,fme,2,3,"ng-template",4),m(6,gme,0,0,"ng-template",5),m(7,_me,19,18,"ng-template",6),m(8,Cme,6,6,"ng-template",7),c()())},dependencies:[ne,We,Xe,xe,$e,Ce,He,ae,Te,Ge,vt,qe,pe]})}return t})();const Tme=["hdhomerunform"],wme=["top"];function Ime(t,s){1&t&&(_(0),f(1,"translate")),2&t&&x(" ",g(1,1,"settings.capture.hdhomerun.title")," ")}function Sme(t,s){}function xme(t,s){if(1&t){const e=E();l(0,"p-listbox",20,21),v("ngModelChange",function(i){return C(e),y(p(2).selectedDevices=i)})("onChange",function(){return C(e),y(p(2).updateDevices())}),c()}if(2&t){const e=p(2);d("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.selectedDevices)("checkbox",!0)("showToggleAll",!1)("multiple",!0)}}const Dme=function(){return{width:"30rem"}};function Mme(t,s){if(1&t){const e=E();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),_(4),f(5,"translate"),c(),l(6,"div"),m(7,xme,2,5,"p-listbox",12),l(8,"small",13),_(9),f(10,"translate"),c()()(),l(11,"div",10)(12,"label",14),_(13),f(14,"translate"),c(),l(15,"p-inputNumber",15),v("ngModelChange",function(i){return C(e),y(p().card.SignalTimeout=i)}),c(),l(16,"small",13),_(17),f(18,"translate"),c()(),l(19,"div",10)(20,"label",16),_(21),f(22,"translate"),c(),l(23,"p-inputNumber",17),v("ngModelChange",function(i){return C(e),y(p().card.ChannelTimeout=i)}),c(),l(24,"small",13),_(25),f(26,"translate"),c()(),l(27,"div",10)(28,"p-checkbox",18,19),v("ngModelChange",function(i){return C(e),y(p().card.DVBEITScan=i)}),f(30,"translate"),c(),l(31,"small",13),_(32),f(33,"translate"),c()()()()}if(2&t){const e=p();a(4),S(g(5,23,"settings.capture.hdhomerun.device_label")),a(2),j(V(39,Dme)),a(1),d("ngIf",e.work.isReady),a(2),x(" ",g(10,25,"settings.capture.hdhomerun.device_desc")," "),a(4),S(g(14,27,"settings.capture.sigtimeout_label")),a(2),d("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("step",250),a(2),x(" ",g(18,29,"settings.capture.sigtimeout_desc")," "),a(4),S(g(22,31,"settings.capture.tunetimeout_label")),a(2),d("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",1750)("max",65e3)("step",250),a(2),x(" ",g(26,33,"settings.capture.tunetimeout_desc")," "),a(3),I("label",g(30,35,"settings.capture.hdhomerun.eitscan_label")),d("ngModel",e.card.DVBEITScan)("binary",!0),a(4),x(" ",g(33,37,"settings.capture.dvb.eitscan_ldesc")," ")}}function kme(t,s){1&t&&(D(0,"p-message",27),f(1,"translate")),2&t&&I("text",g(1,1,"common.savesuccess"))}function Eme(t,s){1&t&&(D(0,"p-message",28),f(1,"translate")),2&t&&I("text",g(1,1,"common.networkfail"))}function Lme(t,s){if(1&t){const e=E();l(0,"div",22)(1,"div",23),m(2,kme,2,3,"p-message",24),m(3,Eme,2,3,"p-message",25),c(),l(4,"p-button",26),v("onClick",function(){C(e);const i=p(),o=B(1);return i.saveForm(),y(o.form.markAsPristine())}),f(5,"translate"),c()()}if(2&t){const e=p(),n=B(1);a(2),d("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),d("ngIf",e.work.errorCount>0),a(1),I("label",g(5,4,"common.save")),d("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let Rme=(()=>{class t{constructor(e,n){this.captureCardService=e,this.setupService=n,this.work={isReady:!1,successCount:0,errorCount:0},this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.selectedDevices=[],this.saveObserver={next:i=>{this.card.CardId&&i.bool?this.work.successCount++:!this.card.CardId&&i.int?(this.work.successCount++,this.card.CardId=i.int):(this.work.errorCount++,this.currentForm.form.markAsDirty())},error:i=>{console.error(i),this.work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){this.captureCardService.GetCaptureDeviceList("HDHOMERUN").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevices()},error:e=>{console.log("GetCaptureDeviceList",e),this.work.errorCount++}})}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDevices(){this.card.VideoDevice&&this.card.VideoDevice.split(",").forEach(n=>{const i=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(o=>n==o.VideoDevice.split(" ")[0]);i&&this.selectedDevices.push(i)}),this.work.isReady=!0}updateDevices(){let e="",n=[];this.selectedDevices.forEach(i=>{n.push(i.VideoDevice.split(" ")[0]),this.card.SignalTimeout=i.SignalTimeout,this.card.ChannelTimeout=i.ChannelTimeout}),n.sort(),console.log(n),n.forEach(i=>{e&&(e+=","),e+=i}),this.card.VideoDevice=e}saveForm(){console.log("save form clicked"),this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_eitscan",this.card.DVBEITScan?"1":"0").subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}static#e=this.\u0275fac=function(n){return new(n||t)(M(Kt),M(Re))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-hdhomerun"]],viewQuery:function(n,i){if(1&n&&(K(Tme,5),K(wme,5)),2&n){let o;H(o=G())&&(i.currentForm=o.first),H(o=G())&&(i.topElement=o.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","hdhomerunform",1,"ml-3","mr-3"],["hdhomerunform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","checkbox","showToggleAll","multiple","ngModelChange","onChange",4,"ngIf"],[1,"block"],["for","SignalTimeout",1,"label","block"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","DVBEITScan","name","DVBEITScan",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DVBEITScan","ngModel"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","checkbox","showToggleAll","multiple","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(n,i){1&n&&(l(0,"form",0,1),D(2,"span",null,2),l(4,"p-card",3),m(5,Ime,2,3,"ng-template",4),m(6,Sme,0,0,"ng-template",5),m(7,Mme,34,40,"ng-template",6),m(8,Lme,6,6,"ng-template",7),c()())},dependencies:[ne,We,xe,$e,Ce,He,ae,Te,Ge,ln,vt,es,qe,pe]})}return t})();const Ome=["iptvform"],Ame=["top"];function Pme(t,s){1&t&&(_(0),f(1,"translate")),2&t&&x(" ",g(1,1,"settings.capture.iptv.title")," ")}function Fme(t,s){}function Nme(t,s){if(1&t){const e=E();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),_(4),f(5,"translate"),c(),l(6,"input",12,13),v("ngModelChange",function(i){return C(e),y(p().card.VideoDevice=i)}),c(),l(8,"small",14),_(9),f(10,"translate"),c()(),l(11,"div",10)(12,"label",15),_(13),f(14,"translate"),c(),l(15,"p-inputNumber",16),v("ngModelChange",function(i){return C(e),y(p().card.ChannelTimeout=i)}),c(),l(16,"small",14),_(17),f(18,"translate"),c()()()()}if(2&t){const e=p();a(4),S(g(5,10,"settings.capture.iptv.url_label")),a(2),d("ngModel",e.card.VideoDevice),a(3),x(" ",g(10,12,"settings.capture.iptv.url_desc")," "),a(4),S(g(14,14,"settings.capture.tunetimeout_label")),a(2),d("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",1750)("max",65e3)("step",250),a(2),x(" ",g(18,16,"settings.capture.tunetimeout_desc")," ")}}function Vme(t,s){1&t&&(D(0,"p-message",22),f(1,"translate")),2&t&&I("text",g(1,1,"common.savesuccess"))}function Bme(t,s){1&t&&(D(0,"p-message",23),f(1,"translate")),2&t&&I("text",g(1,1,"common.networkfail"))}function Hme(t,s){if(1&t){const e=E();l(0,"div",17)(1,"div",18),m(2,Vme,2,3,"p-message",19),m(3,Bme,2,3,"p-message",20),c(),l(4,"p-button",21),v("onClick",function(){C(e);const i=p(),o=B(1);return i.saveForm(),y(o.form.markAsPristine())}),f(5,"translate"),c()()}if(2&t){const e=p(),n=B(1);a(2),d("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),d("ngIf",e.work.errorCount>0),a(1),I("label",g(5,4,"common.save")),d("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let Gme=(()=>{class t{constructor(e,n){this.captureCardService=e,this.setupService=n,this.work={successCount:0,errorCount:0},this.saveObserver={next:i=>{this.card.CardId&&i.bool?this.work.successCount++:!this.card.CardId&&i.int?(this.work.successCount++,this.card.CardId=i.int):(this.work.errorCount++,this.currentForm.form.markAsDirty())},error:i=>{console.error(i),this.work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"}),this.card.CardId||new It(n=>{setTimeout(()=>{n.next(1),n.complete()},100)}).subscribe(n=>{this.currentForm.form.markAsDirty()})}saveForm(){console.log("save form clicked"),this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}static#e=this.\u0275fac=function(n){return new(n||t)(M(Kt),M(Re))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-iptv"]],viewQuery:function(n,i){if(1&n&&(K(Ome,5),K(Ame,5)),2&n){let o;H(o=G())&&(i.currentForm=o.first),H(o=G())&&(i.topElement=o.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","iptvform",1,"ml-3","mr-3"],["iptvform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["pInputText","","id","VideoDevice","name","VideoDevice",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["VideoDevice","ngModel"],[1,"block"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(n,i){1&n&&(l(0,"form",0,1),D(2,"span",null,2),l(4,"p-card",3),m(5,Pme,2,3,"ng-template",4),m(6,Fme,0,0,"ng-template",5),m(7,Nme,19,18,"ng-template",6),m(8,Hme,6,6,"ng-template",7),c()())},dependencies:[ne,We,Xe,xe,$e,Ce,He,ae,Te,Ge,vt,qe,pe]})}return t})();const qme=["importform"],zme=["top"];function Ume(t,s){1&t&&(_(0),f(1,"translate")),2&t&&x(" ",g(1,1,"settings.capture.import.title")," ")}function jme(t,s){}function $me(t,s){if(1&t){const e=E();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),_(4),f(5,"translate"),c(),l(6,"input",12,13),v("ngModelChange",function(i){return C(e),y(p().card.VideoDevice=i)}),c(),l(8,"small",14),_(9),f(10,"translate"),c()()()()}if(2&t){const e=p();a(4),S(g(5,3,"settings.capture.import.file_label")),a(2),d("ngModel",e.card.VideoDevice),a(3),x(" ",g(10,5,"settings.capture.import.file_desc")," ")}}function Wme(t,s){1&t&&(D(0,"p-message",20),f(1,"translate")),2&t&&I("text",g(1,1,"common.savesuccess"))}function Kme(t,s){1&t&&(D(0,"p-message",21),f(1,"translate")),2&t&&I("text",g(1,1,"common.networkfail"))}function Qme(t,s){if(1&t){const e=E();l(0,"div",15)(1,"div",16),m(2,Wme,2,3,"p-message",17),m(3,Kme,2,3,"p-message",18),c(),l(4,"p-button",19),v("onClick",function(){C(e);const i=p(),o=B(1);return i.saveForm(),y(o.form.markAsPristine())}),f(5,"translate"),c()()}if(2&t){const e=p(),n=B(1);a(2),d("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),d("ngIf",e.work.errorCount>0),a(1),I("label",g(5,4,"common.save")),d("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let Jme=(()=>{class t{constructor(e,n){this.captureCardService=e,this.setupService=n,this.work={successCount:0,errorCount:0},this.saveObserver={next:i=>{this.card.CardId&&i.bool?this.work.successCount++:!this.card.CardId&&i.int?(this.work.successCount++,this.card.CardId=i.int):(this.work.errorCount++,this.currentForm.form.markAsDirty())},error:i=>{console.error(i),this.work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}saveForm(){console.log("save form clicked"),this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver)}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}static#e=this.\u0275fac=function(n){return new(n||t)(M(Kt),M(Re))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-import"]],viewQuery:function(n,i){if(1&n&&(K(qme,5),K(zme,5)),2&n){let o;H(o=G())&&(i.currentForm=o.first),H(o=G())&&(i.topElement=o.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","importform",1,"ml-3","mr-3"],["importform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["pInputText","","id","VideoDevice","name","VideoDevice",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["VideoDevice","ngModel"],[1,"block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(n,i){1&n&&(l(0,"form",0,1),D(2,"span",null,2),l(4,"p-card",3),m(5,Ume,2,3,"ng-template",4),m(6,jme,0,0,"ng-template",5),m(7,$me,11,7,"ng-template",6),m(8,Qme,6,6,"ng-template",7),c()())},dependencies:[ne,We,Xe,xe,$e,Ce,He,ae,Te,Ge,qe,pe]})}return t})();const Zme=["demoform"],Yme=["top"];function Xme(t,s){1&t&&(_(0),f(1,"translate")),2&t&&x(" ",g(1,1,"settings.capture.demo.title")," ")}function efe(t,s){}function tfe(t,s){if(1&t){const e=E();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),_(4),f(5,"translate"),c(),l(6,"input",12,13),v("ngModelChange",function(i){return C(e),y(p().card.VideoDevice=i)}),c(),l(8,"small",14),_(9),f(10,"translate"),c()()()()}if(2&t){const e=p();a(4),S(g(5,3,"settings.capture.import.file_label")),a(2),d("ngModel",e.card.VideoDevice),a(3),x(" ",g(10,5,"settings.capture.demo.file_desc")," ")}}function nfe(t,s){1&t&&(D(0,"p-message",20),f(1,"translate")),2&t&&I("text",g(1,1,"common.savesuccess"))}function ife(t,s){1&t&&(D(0,"p-message",21),f(1,"translate")),2&t&&I("text",g(1,1,"common.networkfail"))}function sfe(t,s){if(1&t){const e=E();l(0,"div",15)(1,"div",16),m(2,nfe,2,3,"p-message",17),m(3,ife,2,3,"p-message",18),c(),l(4,"p-button",19),v("onClick",function(){C(e);const i=p(),o=B(1);return i.saveForm(),y(o.form.markAsPristine())}),f(5,"translate"),c()()}if(2&t){const e=p(),n=B(1);a(2),d("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),d("ngIf",e.work.errorCount>0),a(1),I("label",g(5,4,"common.save")),d("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let ofe=(()=>{class t{constructor(e,n){this.captureCardService=e,this.setupService=n,this.work={successCount:0,errorCount:0},this.saveObserver={next:i=>{this.card.CardId&&i.bool?this.work.successCount++:!this.card.CardId&&i.int?(this.work.successCount++,this.card.CardId=i.int):(this.work.errorCount++,this.currentForm.form.markAsDirty())},error:i=>{console.error(i),this.work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}saveForm(){console.log("save form clicked"),this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver)}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}static#e=this.\u0275fac=function(n){return new(n||t)(M(Kt),M(Re))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-demo"]],viewQuery:function(n,i){if(1&n&&(K(Zme,5),K(Yme,5)),2&n){let o;H(o=G())&&(i.currentForm=o.first),H(o=G())&&(i.topElement=o.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","demoform",1,"ml-3","mr-3"],["demoform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["pInputText","","id","VideoDevice","name","VideoDevice",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["VideoDevice","ngModel"],[1,"block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(n,i){1&n&&(l(0,"form",0,1),D(2,"span",null,2),l(4,"p-card",3),m(5,Xme,2,3,"ng-template",4),m(6,efe,0,0,"ng-template",5),m(7,tfe,11,7,"ng-template",6),m(8,sfe,6,6,"ng-template",7),c()())},dependencies:[ne,We,Xe,xe,$e,Ce,He,ae,Te,Ge,qe,pe]})}return t})();const rfe=["connform"];function afe(t,s){1&t&&(_(0),f(1,"translate")),2&t&&x(" ",g(1,1,"settings.iconnection.title")," ")}function lfe(t,s){}function cfe(t,s){if(1&t){const e=E();l(0,"div",12)(1,"label",44),_(2),f(3,"translate"),c(),l(4,"p-inputNumber",45),v("ngModelChange",function(i){return C(e),y(p(3).work.switchPort=i)}),c(),l(5,"small",16),_(6),f(7,"translate"),c()()}if(2&t){const e=p(3);a(2),S(g(3,7,"settings.iconnection.switchport_label")),a(2),d("ngModel",e.work.switchPort)("showButtons",!0)("min",1)("max",e.diseqcTree.SwitchPorts)("step",1),a(2),x(" ",g(7,9,"settings.iconnection.switchport_desc")," ")}}function ufe(t,s){if(1&t){const e=E();l(0,"div")(1,"div",12)(2,"label",46),_(3),f(4,"translate"),c(),l(5,"p-inputNumber",47),v("ngModelChange",function(i){return C(e),y(p(3).work.rotorDegrees=i)}),c(),D(6,"br")(7,"br"),l(8,"div",48)(9,"p-radioButton",49),v("ngModelChange",function(i){return C(e),y(p(3).work.hemisphere=i)}),c(),l(10,"label",50),_(11),f(12,"translate"),c()(),l(13,"div",48)(14,"p-radioButton",51),v("ngModelChange",function(i){return C(e),y(p(3).work.hemisphere=i)}),c(),l(15,"label",52),_(16),f(17,"translate"),c()(),l(18,"small",16),_(19),f(20,"translate"),c()()()}if(2&t){const e=p(3);a(3),S(g(4,10,"settings.iconnection.longitude_label")),a(2),d("ngModel",e.work.rotorDegrees)("min",0)("max",180)("maxFractionDigits",4),a(4),d("ngModel",e.work.hemisphere),a(2),S(g(12,12,"settings.iconnection.longitude_east")),a(3),d("ngModel",e.work.hemisphere),a(2),S(g(17,14,"settings.iconnection.longitude_west")),a(3),x(" ",g(20,16,"settings.iconnection.longitude_desc")," ")}}function dfe(t,s){if(1&t){const e=E();l(0,"div",12)(1,"label",53),_(2),f(3,"translate"),c(),l(4,"div",48)(5,"p-radioButton",54),v("ngModelChange",function(i){return C(e),y(p(3).work.scrPort=i)}),c(),l(6,"label",55),_(7),f(8,"translate"),c()(),l(9,"div",48)(10,"p-radioButton",56),v("ngModelChange",function(i){return C(e),y(p(3).work.scrPort=i)}),c(),l(11,"label",57),_(12),f(13,"translate"),c()(),l(14,"small",16),_(15),f(16,"translate"),c()()}if(2&t){const e=p(3);a(2),S(g(3,6,"settings.iconnection.unicablepos_label")),a(3),d("ngModel",e.work.scrPort),a(2),S(g(8,8,"settings.iconnection.unicablepos_porta")),a(3),d("ngModel",e.work.scrPort),a(2),S(g(13,10,"settings.iconnection.unicablepos_portb")),a(3),x(" ",g(16,12,"settings.iconnection.unicablepos_desc")," ")}}function pfe(t,s){1&t&&(l(0,"div",41),m(1,cfe,8,11,"div",42),m(2,ufe,21,18,"div",43),m(3,dfe,17,14,"div",42),c()),2&t&&(d("ngSwitch",p(2).diseqcTree.Type),a(1),d("ngSwitchCase","switch"),a(1),d("ngSwitchCase","rotor"),a(1),d("ngSwitchCase","scr"))}function hfe(t,s){if(1&t){const e=E();l(0,"div",12)(1,"label",58),_(2),f(3,"translate"),c(),l(4,"input",59,60),v("ngModelChange",function(i){return C(e),y(p(2).card.InputName=i)}),c(),l(6,"small",16),_(7),f(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(g(3,3,"settings.iconnection.delivery_label")),a(2),d("ngModel",e.card.InputName),a(3),x(" ",g(8,5,"settings.iconnection.delivery_desc")," ")}}function mfe(t,s){if(1&t){const e=E();l(0,"p-dropdown",63,60),v("ngModelChange",function(i){return C(e),y(p(3).card.InputName=i)}),c()}if(2&t){const e=p(3);d("options",e.currentDevice.InputNames)("ngModel",e.card.InputName)}}function ffe(t,s){if(1&t&&(l(0,"div",12)(1,"label",61),_(2),f(3,"translate"),c(),m(4,mfe,2,2,"p-dropdown",62),l(5,"small",16),_(6),f(7,"translate"),c()()),2&t){const e=p(2);a(2),S(g(3,3,"settings.iconnection.input_label")),a(2),d("ngIf",e.work.isReady),a(2),x(" ",g(7,5,"settings.capture.inputname_desc")," ")}}function gfe(t,s){if(1&t){const e=E();l(0,"div",12)(1,"label",64),_(2),f(3,"translate"),c(),l(4,"input",65,66),v("ngModelChange",function(i){return C(e),y(p(2).card.ExternalCommand=i)}),c(),l(6,"small",16),_(7),f(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(g(3,3,"settings.iconnection.externalcmd_label")),a(2),d("ngModel",e.card.ExternalCommand),a(3),x(" ",g(8,5,"settings.iconnection.externalcmd_desc")," ")}}function _fe(t,s){if(1&t){const e=E();l(0,"div",12)(1,"label",67),_(2),f(3,"translate"),c(),l(4,"input",68,69),v("ngModelChange",function(i){return C(e),y(p(2).card.TuneChan=i)}),c(),l(6,"small",16),_(7),f(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(g(3,3,"settings.iconnection.tunechan_label")),a(2),d("ngModel",e.card.TuneChan),a(3),x(" ",g(8,5,"settings.iconnection.tunechan_desc")," ")}}const Wp=function(){return{minWidth:"400px"}};function bfe(t,s){if(1&t){const e=E();l(0,"div",12)(1,"label",70),_(2),f(3,"translate"),c(),l(4,"p-dropdown",71,72),v("ngModelChange",function(i){return C(e),y(p(2).card.Quicktune=i)}),c(),l(6,"small",16),_(7),f(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(g(3,8,"settings.iconnection.quicktune_label")),a(2),j(V(12,Wp)),d("options",e.quickTuneValues)("ngModel",e.card.Quicktune)("editable",!1)("maxlength",0),a(3),x(" ",g(8,10,"settings.iconnection.quicktune_desc")," ")}}function vfe(t,s){if(1&t){const e=E();l(0,"div",12)(1,"p-checkbox",73,74),v("ngModelChange",function(i){return C(e),y(p(2).card.DishnetEIT=i)}),f(3,"translate"),c(),l(4,"small",16),_(5),f(6,"translate"),c()()}if(2&t){const e=p(2);a(1),I("label",g(3,4,"settings.iconnection.dishneteit_label")),d("ngModel",e.card.DishnetEIT)("binary",!0),a(4),x(" ",g(6,6,"settings.iconnection.dishneteit_desc")," ")}}function Cfe(t,s){if(1&t&&(l(0,"p-fieldset",75),f(1,"translate"),D(2,"app-channelscan",76),c()),2&t){const e=p(2);I("legend",g(1,7,"settings.iconnection.scan_title")),d("collapsed",!0)("toggleable",!0),a(2),d("card",e.card)("cardList",e.cardList)("iconnection",e)("videoSourceLookup",e.videoSourceLookup)}}function yfe(t,s){if(1&t){const e=E();l(0,"p-button",77),v("click",function(){return C(e),y(p(2).work.fetchChannelsDialog=!1)}),f(1,"translate"),c(),l(2,"p-button",78),v("click",function(){return C(e),y(p(2).fetchChannels())}),f(3,"translate"),c()}2&t&&(I("label",g(1,2,"common.no")),a(2),I("label",g(3,4,"common.yes")))}const Tfe=function(t){return{num:t}},wfe=function(){return{width:"50vw"}};function Ife(t,s){if(1&t){const e=E();l(0,"div",8)(1,"div",9),m(2,pfe,4,4,"div",10),m(3,hfe,9,7,"div",11),m(4,ffe,8,7,"div",11),l(5,"div",12)(6,"label",13),_(7),f(8,"translate"),c(),l(9,"input",14,15),v("ngModelChange",function(i){return C(e),y(p().card.DisplayName=i)}),c(),l(11,"small",16),_(12),f(13,"translate"),c()(),l(14,"div",12)(15,"label",17),_(16),f(17,"translate"),c(),l(18,"p-dropdown",18,19),v("ngModelChange",function(i){return C(e),y(p().card.SourceId=i)})("onChange",function(){return C(e),y(p().fillChannelList())}),c(),l(20,"small",16),_(21),f(22,"translate"),c()(),m(23,gfe,9,7,"div",11),m(24,_fe,9,7,"div",11),m(25,bfe,9,13,"div",11),m(26,vfe,7,8,"div",11),m(27,Cfe,3,9,"p-fieldset",20),D(28,"br")(29,"br"),l(30,"div",12)(31,"div",8)(32,"div",21)(33,"p-button",22),v("onClick",function(){return C(e),y(p().work.fetchChannelsDialog=!0)}),f(34,"translate"),c()(),l(35,"div",21),_(36),f(37,"translate"),c()(),l(38,"small",16),_(39),f(40,"translate"),c()(),l(41,"p-dialog",23),v("visibleChange",function(i){return C(e),y(p().work.fetchChannelsDialog=i)}),l(42,"p"),_(43),f(44,"translate"),c(),l(45,"p"),_(46),f(47,"translate"),c(),m(48,yfe,4,6,"ng-template",7),c(),l(49,"div",12)(50,"label",24),_(51),f(52,"translate"),c(),l(53,"p-dropdown",25,26),v("ngModelChange",function(i){return C(e),y(p().card.StartChannel=i)}),c(),l(55,"small",16),_(56),f(57,"translate"),c()(),l(58,"p-fieldset",27),f(59,"translate"),l(60,"div",12)(61,"label",28),_(62),f(63,"translate"),c(),l(64,"p-inputNumber",29),v("ngModelChange",function(i){return C(e),y(p().card.RecLimit=i)}),c(),l(65,"small",16),_(66),f(67,"translate"),c()(),l(68,"div",12)(69,"p-checkbox",30,31),v("ngModelChange",function(i){return C(e),y(p().card.SchedGroup=i)}),f(71,"translate"),c(),l(72,"small",16),_(73),f(74,"translate"),c()(),l(75,"div",12)(76,"label",32),_(77),f(78,"translate"),c(),l(79,"p-inputNumber",33),v("ngModelChange",function(i){return C(e),y(p().card.RecPriority=i)}),c(),l(80,"small",16),_(81),f(82,"translate"),c()(),l(83,"div",12)(84,"label",34),_(85),f(86,"translate"),c(),l(87,"p-inputNumber",35),v("ngModelChange",function(i){return C(e),y(p().card.SchedOrder=i)}),c(),l(88,"small",16),_(89),f(90,"translate"),c()(),l(91,"div",12)(92,"label",36),_(93),f(94,"translate"),c(),l(95,"p-inputNumber",37),v("ngModelChange",function(i){return C(e),y(p().card.LiveTVOrder=i)}),c(),l(96,"small",16),_(97),f(98,"translate"),c()(),l(99,"div",12)(100,"label",38),_(101),f(102,"translate"),c(),l(103,"p-dropdown",39,40),v("ngModelChange",function(i){return C(e),y(p().work.inputGroupName=i)}),c(),l(105,"small",16),_(106),f(107,"translate"),c()()()()()}if(2&t){const e=p(),n=B(1);a(2),d("ngIf",e.diseqcTree),a(1),d("ngIf","DVB"==e.card.CardType),a(1),d("ngIf","DVB"!=e.card.CardType),a(3),S(g(8,80,"settings.iconnection.displayname_label")),a(2),d("ngModel",e.card.DisplayName),a(3),x(" ",g(13,82,"settings.iconnection.displayname_desc")," "),a(4),S(g(17,84,"settings.iconnection.sourceid_label")),a(2),j(V(129,Wp)),d("options",e.videoSourceList.VideoSourceList.VideoSources)("ngModel",e.card.SourceId)("editable",!1)("maxlength",0),a(3),x(" ",g(22,86,"settings.iconnection.sourceid_desc")," "),a(2),d("ngIf",e.work.isEncoder||e.work.isUnscanable),a(1),d("ngIf",e.work.showPresetTuner),a(1),d("ngIf",!e.work.isEncoder&&!e.work.isUnscanable),a(1),d("ngIf","DVB"==e.card.CardType),a(1),d("ngIf",!e.work.isUnscanable),a(6),I("label",g(34,88,"settings.iconnection.fetch.label")),d("disabled",!e.card.SourceId||n.dirty||1==e.work.fetchStatus||e.setupService.schedulingEnabled),a(3),x(" \xa0\xa0",mt(37,90,e.fetchMessages[e.work.fetchStatus],W(130,Tfe,e.work.fetchCount))," "),a(3),x(" ",g(40,93,"settings.iconnection.fetch.desc")," "),a(2),j(V(132,wfe)),d("visible",e.work.fetchChannelsDialog)("modal",!0)("draggable",!1)("resizable",!1),a(2),S(g(44,95,"settings.iconnection.fetch.warning")),a(3),S(g(47,97,"settings.common.ru_sure")),a(5),S(g(52,99,"settings.iconnection.startchan_label")),a(2),j(V(133,Wp)),d("options",e.sourceChannels)("ngModel",e.card.StartChannel)("editable",!1),a(3),x(" ",g(57,101,"settings.iconnection.startchan_desc")," "),a(2),I("legend",g(59,103,"settings.iconnection.interact_title")),d("toggleable",!0)("collapsed",!0),a(4),S(g(63,105,"settings.iconnection.maxrec_label")),a(2),d("ngModel",e.card.RecLimit)("showButtons",!0)("min",1)("max",10)("step",1),a(2),x(" ",g(67,107,"settings.iconnection.maxrec_desc")," "),a(3),I("label",g(71,109,"settings.iconnection.schedgrp_label")),d("ngModel",e.card.SchedGroup)("binary",!0),a(4),x(" ",g(74,111,"settings.iconnection.schedgrp_desc")," "),a(4),S(g(78,113,"settings.iconnection.recpri_label")),a(2),d("ngModel",e.card.RecPriority)("showButtons",!0)("min",-99)("max",99)("step",1),a(2),x(" ",g(82,115,"settings.iconnection.recpri_desc")," "),a(4),S(g(86,117,"settings.iconnection.schedorder_label")),a(2),d("ngModel",e.card.SchedOrder)("showButtons",!0)("min",0)("max",99)("step",1),a(2),x(" ",g(90,119,"settings.iconnection.schedorder_desc")," "),a(4),S(g(94,121,"settings.iconnection.liveorder_label")),a(2),d("ngModel",e.card.LiveTVOrder)("showButtons",!0)("min",0)("max",99)("step",1),a(2),x(" ",g(98,123,"settings.iconnection.liveorder_desc")," "),a(4),S(g(102,125,"settings.iconnection.inpgroup_label")),a(2),j(V(134,Wp)),d("options",e.selectGroups)("ngModel",e.work.inputGroupName)("editable",!0),a(3),x(" ",g(107,127,"settings.iconnection.inpgroup_desc")," ")}}function Sfe(t,s){1&t&&(D(0,"p-message",84),f(1,"translate")),2&t&&I("text",g(1,1,"common.savesuccess"))}function xfe(t,s){1&t&&(D(0,"p-message",85),f(1,"translate")),2&t&&I("text",g(1,1,"common.networkfail"))}function Dfe(t,s){if(1&t){const e=E();l(0,"div",79)(1,"div",80),m(2,Sfe,2,3,"p-message",81),m(3,xfe,2,3,"p-message",82),c(),l(4,"p-button",83),v("onClick",function(){C(e);const i=p(),o=B(1);return i.saveForm(),y(o.form.markAsPristine())}),f(5,"translate"),c()()}if(2&t){const e=p(),n=B(1);a(2),d("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),d("ngIf",e.work.errorCount>0),a(1),I("label",g(5,4,"common.save")),d("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let cD=(()=>{class t{constructor(e,n,i,o){this.translate=e,this.channelService=n,this.captureCardService=i,this.setupService=o,this.allChannels=[],this.sourceChannels=[],this.inputGroups=[],this.selectGroups=[],this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:["MPEG2TS"]},this.work={successCount:0,errorCount:0,expectedCount:0,recLimitUpd:!1,reloadGroups:!1,isEncoder:!1,isUnscanable:!1,hasTuner:!1,showPresetTuner:!1,inputGroupName:"",orgInputGroupName:"",fetchChannelsDialog:!1,fetchStatus:0,fetchCount:0,switchPort:0,rotorDegrees:0,scrPort:"",hemisphere:1,isReady:!1,startScan:!1},this.deviceFree=new Qt,this.orgInputGroupIds=[],this.fetchMessages=["","settings.iconnection.fetch.inprog","settings.iconnection.fetch.complete","settings.iconnection.fetch.failed"],this.messages={devNotExist:"settings.capture.dvb.devNotExist"},this.preEncodedTypes=["DVB","FIREWIRE","HDHOMERUN","FREEBOX","IMPORT","DEMO","ASI","CETON","VBOX","SATIP"],this.unscanableTypes=["FIREWIRE","HDPVR","IMPORT","DEMO","GO7007","MJPEG"],this.hasTunerTypes=["DVB","HDHOMERUN","FREEBOX","CETON","VBOX","SATIP"],this.quickTuneValues=[{prompt:"settings.iconnection.quicktune.never",value:0},{prompt:"settings.iconnection.quicktune.livetv",value:1},{prompt:"settings.iconnection.quicktune.always",value:2}],this.saveObserver={next:r=>{r.bool?(this.work.successCount++,this.work.recLimitUpd&&(this.work.successCount==this.work.expectedCount?this.captureCardService.SetInputMaxRecordings(this.card.CardId,this.card.RecLimit).subscribe(this.saveObserver):this.work.successCount==this.work.expectedCount+1&&(this.parentComponent.loadCards(!1),this.work.recLimitUpd=!1)),this.work.successCount==this.work.expectedCount&&this.work.reloadGroups&&(this.loadInputGroups(),this.work.reloadGroups=!1),this.work.successCount==this.work.expectedCount&&this.work.startScan&&this.scanComponent&&(this.work.startScan=!1,this.currentForm.form.markAsPristine(),this.scanComponent.startScan())):(console.log("saveObserver error",r),this.work.startScan=!1,this.work.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.log("saveObserver error",r),this.work.startScan=!1,this.work.errorCount++,this.currentForm.form.markAsDirty()}},this.quickTuneValues.forEach(r=>e.get(r.prompt).subscribe(u=>r.prompt=u)),this.loadChannels(),this.loadInputGroups()}loadChannels(){this.channelService.GetChannelInfoList({Details:!0}).subscribe(n=>{this.allChannels=n.ChannelInfoList.ChannelInfos,this.fillChannelList()})}fillChannelList(){this.sourceChannels=this.allChannels.filter(e=>e.SourceId==this.card.SourceId),this.sourceChannels.find(e=>e.ChanNum==this.card.StartChannel)||(this.card.StartChannel="")}loadInputGroups(){this.captureCardService.GetInputGroupList().subscribe(e=>{this.inputGroups=e.InputGroupList.InputGroups,this.inputGroups.forEach(n=>{if(rS("user:")){const i=n.InputGroupName.substring(5);-1==this.selectGroups.findIndex(o=>i==o.InputGroupName)&&this.selectGroups.push({CardInputId:0,InputGroupId:n.InputGroupId,InputGroupName:i}),n.CardInputId==this.card.CardId&&(this.work.inputGroupName||(this.work.inputGroupName=i,this.work.orgInputGroupName=i),this.orgInputGroupIds.push(n.InputGroupId))}})})}ngOnInit(){this.work.isEncoder=this.preEncodedTypes.indexOf(this.card.CardType)<0,this.work.isUnscanable=this.unscanableTypes.indexOf(this.card.CardType)>=0,this.work.hasTuner=this.hasTunerTypes.indexOf(this.card.CardType)>=0,(this.work.isEncoder||this.work.isUnscanable)&&(this.work.hasTuner||"EXTERNAL"==this.card.CardType)&&(this.work.showPresetTuner=!0),"DVB"==this.card.CardType&&this.loadDiseqc(),this.card.DisplayName||(this.card.DisplayName="Input "+this.card.CardId),this.captureCardService.GetCaptureDeviceList(this.card.CardType).subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice(),this.deviceFree.next(!0)},error:e=>{console.log("GetCaptureDeviceList",e),this.work.errorCount++}})}setupDevice(){if(this.card.VideoDevice){let e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:this.messages.devNotExist,InputNames:["MPEG2TS"]},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.currentDevice&&this.card.InputName&&(this.currentDevice.InputNames.includes(this.card.InputName)||this.currentDevice.InputNames.push(this.card.InputName),this.currentDevice.InputNames.includes("MPEG2TS")||this.currentDevice.InputNames.push("MPEG2TS")),this.work.isReady=!0}loadDiseqc(){this.captureCardService.GetDiseqcTreeList().subscribe({next:e=>{this.diseqcTreeList=e,this.setupDiseqc()},error:e=>{console.log("GetDiseqcTreeList",e),this.work.errorCount++}})}setupDiseqc(){let e=this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.find(n=>n.DiSEqCId==this.card.DiSEqCId);if(e)switch(this.diseqcTree=e,this.diseqcTree.Type){case"switch":case"rotor":case"scr":this.captureCardService.GetDiseqcConfigList().subscribe({next:n=>{let i=n.DiseqcConfigList.DiseqcConfigs.find(o=>o.CardId==this.card.CardId&&o.DiSEqCId==this.card.DiSEqCId);if(this.diseqcConfig=i||{CardId:this.card.CardId,DiSEqCId:this.card.DiSEqCId,Value:""},"switch"==this.diseqcTree.Type)this.work.switchPort=Number.parseInt(this.diseqcConfig.Value)-1,Number.isNaN(this.work.switchPort)&&(this.work.switchPort=0);else if("rotor"==this.diseqcTree.Type)this.work.rotorDegrees=Number.parseFloat(this.diseqcConfig.Value),Number.isNaN(this.work.rotorDegrees)&&(this.work.rotorDegrees=0),this.work.rotorDegrees<0?(this.work.hemisphere=-1,this.work.rotorDegrees=-this.work.rotorDegrees):this.work.hemisphere=1;else if("scr"==this.diseqcTree.Type)switch(this.diseqcConfig.Value){case"0":this.work.scrPort="A";break;case"1":this.work.scrPort="B";break;default:this.work.scrPort=""}},error:n=>{console.log("GetDiseqcTreeList",n),this.work.errorCount++}})}}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.currentForm.form.markAsDirty(),setTimeout(()=>{this.currentForm.form.markAsPristine()},0)}fetchChannels(){this.work.fetchChannelsDialog=!1;let e={SourceId:this.card.SourceId,CardId:this.card.CardId,WaitForFinish:!0};this.work.fetchStatus=1,this.channelService.FetchChannelsFromSource(e).subscribe({next:n=>{this.work.fetchStatus=n.int>0?2:3,this.work.fetchCount=n.int,this.loadChannels()},error:n=>{console.log("fetchChannels",n),this.work.fetchStatus=3,this.work.fetchCount=0}})}saveForm(){this.work.successCount=0,this.work.errorCount=0,this.work.expectedCount=0,this.work.inputGroupName!=this.work.orgInputGroupName?this.work.inputGroupName?this.captureCardService.AddUserInputGroup(this.work.inputGroupName).subscribe({next:n=>{this.saveCard(n.int)},error:n=>{console.log("saveForm error",n),this.work.errorCount++,this.currentForm.form.markAsDirty()}}):this.saveCard(-1):this.saveCard(0)}saveCard(e){0!=e&&(this.work.reloadGroups=!0);let n=0;if(this.work.recLimitUpd=!1,this.cardList.CaptureCardList.CaptureCards.forEach(i=>{(i.CardId==this.card.CardId||i.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(i.CardId,"inputname",i.InputName=this.card.InputName).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(i.CardId,"displayname",i.DisplayName=this.card.DisplayName).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(i.CardId,"sourceid",String(i.SourceId=this.card.SourceId)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(i.CardId,"quicktune",String(i.Quicktune=this.card.Quicktune)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(i.CardId,"dishnet_eit",(i.DishnetEIT=this.card.DishnetEIT)?"1":"0").subscribe(this.saveObserver),this.card.StartChannel&&(this.captureCardService.UpdateCaptureCard(i.CardId,"startchan",i.StartChannel=this.card.StartChannel).subscribe(this.saveObserver),this.work.expectedCount++),this.captureCardService.UpdateCaptureCard(i.CardId,"recpriority",String(i.RecPriority=this.card.RecPriority)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(i.CardId,"livetvorder",String(i.LiveTVOrder=this.card.LiveTVOrder)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(i.CardId,"reclimit",String(i.RecLimit=this.card.RecLimit)).subscribe(this.saveObserver),this.card.SchedGroup&&this.card.CardId!=i.CardId?(i.SchedGroup=!1,i.SchedOrder=0):(i.SchedGroup=this.card.SchedGroup,i.SchedOrder=this.card.SchedOrder),this.captureCardService.UpdateCaptureCard(i.CardId,"schedgroup",i.SchedGroup?"1":"0").subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(i.CardId,"schedorder",String(i.SchedOrder)).subscribe(this.saveObserver),this.work.expectedCount+=10,0!=e&&this.orgInputGroupIds.forEach(o=>{this.captureCardService.UnlinkInputGroup(i.CardId,o).subscribe(this.saveObserver),this.work.expectedCount++}),e>0&&(this.captureCardService.LinkInputGroup(i.CardId,e).subscribe(this.saveObserver),this.work.expectedCount++),n++)}),n!=this.card.RecLimit&&(this.work.recLimitUpd=!0),this.diseqcConfig){let i="";if("switch"==this.diseqcTree.Type)i=(this.work.switchPort-1).toString();else if("rotor"==this.diseqcTree.Type)i=(this.work.rotorDegrees*this.work.hemisphere).toString();else if("scr"==this.diseqcTree.Type)switch(this.work.scrPort){case"A":default:i="0";break;case"B":i="1"}i!=this.diseqcConfig.Value&&(this.diseqcConfig.Value=i,this.captureCardService.DeleteDiseqcConfig(this.card.CardId).subscribe(o=>{this.captureCardService.AddDiseqcConfig(this.diseqcConfig).subscribe(this.saveObserver)}))}}static#e=this.\u0275fac=function(n){return new(n||t)(M(Le),M(Co),M(Kt),M(Re))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-iconnection"]],viewQuery:function(n,i){if(1&n&&K(rfe,5),2&n){let o;H(o=G())&&(i.currentForm=o.first)}},inputs:{card:"card",cardList:"cardList",videoSourceLookup:"videoSourceLookup",videoSourceList:"videoSourceList",parentComponent:"parentComponent"},decls:9,vars:0,consts:[["name","connform",1,"ml-3","mr-3"],["connform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[3,"ngSwitch",4,"ngIf"],["class","form-group field",4,"ngIf"],[1,"form-group","field"],["for","DisplayName",1,"label","block"],["pInputText","","id","DisplayName","name","DisplayName",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["DisplayName","ngModel"],[1,"block"],["for","SourceId",1,"label","block"],["optionLabel","SourceName","optionValue","Id","name","SourceId",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["SourceId","ngModel"],["class","mb-4 w-full",3,"legend","collapsed","toggleable",4,"ngIf"],[2,"display","flex","align-items","center"],["icon","pi pi-download","iconPos","left",3,"label","disabled","onClick"],["header","Fetch Channels",3,"visible","modal","draggable","resizable","visibleChange"],["for","StartChannel",1,"label","block"],["placeholder","Select Item","optionLabel","ChanNum","optionValue","ChanNum","scrollHeight","400px","name","StartChannel",3,"options","ngModel","editable","ngModelChange"],["StartChannel","ngModel"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["for","RecLimit",1,"label","block"],["name","RecLimit","id","RecLimit",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","SchedGroup","name","SchedGroup",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DVBWaitForSeqStart","ngModel"],["for","RecPriority",1,"label","block"],["name","RecPriority","id","RecPriority",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","SchedOrder",1,"label","block"],["name","SchedOrder","id","SchedOrder",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","LiveTVOrder",1,"label","block"],["name","LiveTVOrder","id","LiveTVOrder",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","inputGroupName",1,"label","block"],["appendTo","body","placeholder","Optional Group Name","optionLabel","InputGroupName","optionValue","InputGroupName","scrollHeight","400px","name","inputGroupName",3,"options","ngModel","editable","ngModelChange"],["inputGroupName","ngModel"],[3,"ngSwitch"],["class","form-group field",4,"ngSwitchCase"],[4,"ngSwitchCase"],["for","Port",1,"label","block"],["name","Port","id","Port",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","Degrees",1,"label","block"],["name","Degrees","id","Degrees",3,"ngModel","min","max","maxFractionDigits","ngModelChange"],[1,"field-radiobutton"],["name","hemisphere","value","1","inputId","east",3,"ngModel","ngModelChange"],["for","east",1,"label","block"],["name","hemisphere","value","-1","inputId","west",3,"ngModel","ngModelChange"],["for","west",1,"label","block"],[1,"label","block"],["name","scrPort","value","A","inputId","portA",3,"ngModel","ngModelChange"],["for","portA",1,"label","block"],["name","scrPort","value","B","inputId","portB",3,"ngModel","ngModelChange"],["for","portB",1,"label","block"],["for","Delivery",1,"label","block"],["pInputText","","id","Delivery","name","Delivery","disabled","true",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["InputName","ngModel"],["for","InputName",1,"label","block"],["name","InputName",3,"options","ngModel","ngModelChange",4,"ngIf"],["name","InputName",3,"options","ngModel","ngModelChange"],["for","ExternalCommand",1,"label","block"],["pInputText","","id","ExternalCommand","name","ExternalCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["ExternalCommand","ngModel"],["for","TuneChan",1,"label","block"],["pInputText","","id","TuneChan","name","TuneChan",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["TuneChan","ngModel"],["for","Quicktune",1,"label","block"],["optionLabel","prompt","optionValue","value","name","Quicktune",3,"options","ngModel","editable","maxlength","ngModelChange"],["Quicktune","ngModel"],["inputId","DishnetEIT","name","DishnetEIT",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DishnetEIT","ngModel"],[1,"mb-4","w-full",3,"legend","collapsed","toggleable"],[3,"card","cardList","iconnection","videoSourceLookup"],["icon","pi pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi pi-check-circle","styleClass","p-button-plain",3,"label","click"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(n,i){1&n&&(l(0,"form",0,1),D(2,"span",null,2),l(4,"p-card",3),m(5,afe,2,3,"ng-template",4),m(6,lfe,0,0,"ng-template",5),m(7,Ife,108,135,"ng-template",6),m(8,Dfe,6,6,"ng-template",7),c()())}})}return t})();function Mfe(t,s){if(1&t){const e=E();l(0,"p-button",10),v("onClick",function(){return C(e),y(p().displayNewDialog=!1)}),f(1,"translate"),c(),l(2,"p-button",11),v("onClick",function(){return C(e),y(p().newProfile())}),f(3,"translate"),c()}if(2&t){const e=p();I("label",g(1,3,"common.cancel")),a(2),I("label",g(3,5,"common.ok")),d("disabled",e.rejectName())}}function kfe(t,s){1&t&&(l(0,"div",12),D(1,"br")(2,"p-message",13),f(3,"translate"),D(4,"br"),c()),2&t&&(a(2),I("text",g(3,1,"settings.common.successful_delete")))}function Efe(t,s){1&t&&(l(0,"div",12),D(1,"br")(2,"p-message",14),f(3,"translate"),D(4,"br"),c()),2&t&&(a(2),I("text",g(3,1,"common.networkfail")))}function Lfe(t,s){if(1&t&&(l(0,"div",18)(1,"div",19),_(2),l(3,"b"),_(4),c()()()),2&t){const e=p(),n=e.$implicit,i=e.index,o=p();a(2),x(" ",n.Name," "),a(2),x("\xa0",o.dirtyMessages[i],"")}}function Rfe(t,s){if(1&t){const e=E();l(0,"p-button",22),v("click",function(){C(e);const i=p(2).index;return y(p().displayDeleteThis[i]=!1)}),f(1,"translate"),c(),l(2,"p-button",23),v("click",function(){C(e);const i=p(2).index;return y(p().deleteThis(i))}),f(3,"translate"),c()}2&t&&(I("label",g(1,2,"common.no")),a(2),I("label",g(3,4,"common.yes")))}const uD=function(){return{width:"50vw"}},Ofe=function(t,s){return{ProfileName:t,GroupName:s}};function Afe(t,s){if(1&t){const e=E();l(0,"p-button",20),v("onClick",function(){C(e);const i=p().index;return y(p().displayDeleteThis[i]=!0)}),f(1,"translate"),c(),l(2,"p-dialog",2),v("visibleChange",function(i){C(e);const o=p().index;return y(p().displayDeleteThis[o]=i)}),f(3,"translate"),l(4,"h2"),_(5),f(6,"translate"),c(),l(7,"p"),_(8),f(9,"translate"),c(),m(10,Rfe,4,6,"ng-template",5),c(),D(11,"app-recprofile",21)}if(2&t){const e=p(),n=e.index,i=e.$implicit,o=p();I("label",g(1,14,"settings.rprofiles.delete_this")),d("disabled",!o.group.RecProfiles[n].Id||o.setupService.schedulingEnabled),a(2),j(V(23,uD)),I("header",g(3,16,"settings.rprofiles.delete_this")),d("visible",o.displayDeleteThis[n])("modal",!0)("draggable",!1)("resizable",!1),a(3),S(g(6,18,"settings.common.ru_sure")),a(3),S(mt(9,20,"settings.rprofiles.delete_details",Se(24,Ofe,o.group.RecProfiles[n].Name,o.group.Name))),a(3),d("profile",i)("group",o.group)("parentComponent",o)}}function Pfe(t,s){if(1&t){const e=E();l(0,"p-accordionTab",15),v("selectedChange",function(i){const r=C(e).index;return y(p().activeTab[r]=i)}),m(1,Lfe,5,2,"ng-template",16),m(2,Afe,12,27,"ng-template",17),c()}if(2&t){const e=s.index,n=p();d("disabled",n.disabledTab[e])("selected",n.activeTab[e])}}let dD=(()=>{class t{constructor(e,n,i){this.captureCardService=e,this.setupService=n,this.translate=i,this.currentTab=-1,this.deletedTab=-1,this.dirtyMessages=[],this.forms=[],this.disabledTab=[],this.activeTab=[],this.readyCount=0,this.displayNewDialog=!1,this.newProfileName="",this.successCount=0,this.expectedCount=0,this.errorCount=0,this.displayDeleteThis=[],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.deletedText="settings.common.deleted",this.newText="settings.common.new",this.delObserver={next:o=>{o.bool?(this.successCount++,this.deletedTab>-1&&(this.dirtyMessages[this.deletedTab]=this.deletedText,this.disabledTab[this.deletedTab]=!0,this.activeTab[this.deletedTab]=!1,this.deletedTab=-1)):(this.errorCount++,this.deletedTab=-1)},error:o=>{console.error(o),this.errorCount++}},i.get(this.dirtyText).subscribe(o=>this.dirtyText=o),i.get(this.warningText).subscribe(o=>this.warningText=o),i.get(this.deletedText).subscribe(o=>this.deletedText=o),i.get(this.newText).subscribe(o=>this.newText=o)}ngOnInit(){let e=this.parentComponent.groups.findIndex(n=>n===this.group);this.parentComponent.profileGroups[e]=this}onTabOpen(e){this.showDirty();let n=this.setupService.getCurrentForm();null!=n&&(this.forms[e.index]=n),this.setupService.setCurrentForm(null),this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.currentTab||this.disabledTab[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab]&&this.forms[this.currentTab].dirty?this.dirtyText:this.group.RecProfiles[this.currentTab].Id?"":this.newText)}newProfile(){this.displayNewDialog=!1;for(let n=0;nn.Name==e)}confirm(e){return ue(window.confirm(e))}canDeactivate(){let e=this.setupService.getCurrentForm();return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n==this.dirtyText)||e&&e.dirty)||this.confirm(this.warningText)}allClean(){let e=this.setupService.getCurrentForm();return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n==this.dirtyText)||e&&e.dirty)}onWindowClose(e){let n=this.setupService.getCurrentForm();(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(i=>i==this.dirtyText)||n&&n.dirty)&&(e.preventDefault(),e.returnValue=!1)}static#e=this.\u0275fac=function(n){return new(n||t)(M(Kt),M(Re),M(Le))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-profile-group"]],hostBindings:function(n,i){1&n&&v("beforeunload",function(r){return i.onWindowClose(r)},0,Nn)},inputs:{group:"group",parentComponent:"parentComponent"},decls:19,vars:24,consts:[[1,"block","card","w-full"],["icon","pi pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["pInputText","","id","Name","name","Name","autofocus","",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Name","ngModel"],["pTemplate","footer"],[1,"grid","nogutter"],["class","col-12",4,"ngIf"],[1,"col-12","w-full",3,"onClose","onOpen"],[3,"disabled","selected","selectedChange",4,"ngFor","ngForOf"],["icon","pi pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],[1,"col-12"],["severity","success",3,"text"],["severity","error",3,"text"],[3,"disabled","selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],[1,"grid","w-full"],[1,"col-9","pr-1"],["styleClass","p-button-warning","icon","pi pi-trash",3,"label","disabled","onClick"],[3,"profile","group","parentComponent"],["icon","pi pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi pi-check-circle","styleClass","p-button-plain",3,"label","click"]],template:function(n,i){1&n&&(l(0,"div",0)(1,"h3"),_(2),f(3,"translate"),c(),l(4,"p-button",1),v("onClick",function(){return i.displayNewDialog=!0}),f(5,"translate"),c(),l(6,"p-dialog",2),v("visibleChange",function(r){return i.displayNewDialog=r}),f(7,"translate"),l(8,"p"),_(9),f(10,"translate"),c(),l(11,"input",3,4),v("ngModelChange",function(r){return i.newProfileName=r}),c(),m(13,Mfe,4,7,"ng-template",5),c(),l(14,"div",6),m(15,kfe,5,3,"div",7),m(16,Efe,5,3,"div",7),c(),l(17,"p-accordion",8),v("onClose",function(r){return i.onTabClose(r)})("onOpen",function(r){return i.onTabOpen(r)}),m(18,Pfe,3,2,"p-accordionTab",9),c()()),2&n&&(a(2),Ke("",g(3,15,"settings.rprofiles.grouptitle")," ",i.group.Name,""),a(2),I("label",g(5,17,"settings.rprofiles.new_profile")),a(2),j(V(23,uD)),I("header",g(7,19,"settings.rprofiles.new_profile")),d("visible",i.displayNewDialog)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(g(10,21,"settings.rprofiles.enter_profile_name")),a(2),d("ngModel",i.newProfileName),a(4),d("ngIf",i.expectedCount&&i.successCount==i.expectedCount),a(1),d("ngIf",i.errorCount>0),a(2),d("ngForOf",i.group.RecProfiles))}})}return t})();const Ffe=["recprofform"],Nfe=["top"];function Vfe(t,s){if(1&t&&(_(0),f(1,"translate")),2&t){const e=p();Ke(" ",g(1,2,"settings.rprofiles.proftitle")," ",e.profile.Name," ")}}function Bfe(t,s){}function Hfe(t,s){if(1&t){const e=E();l(0,"div",12)(1,"p-checkbox",13,14),v("ngModelChange",function(i){C(e);const o=p(2);return y(o.profile.RecProfParams[o.findIx("autotranscode",!1)].Value=i)}),f(3,"translate"),c(),l(4,"small",15),_(5),f(6,"translate"),c()()}if(2&t){const e=p(2);a(1),I("label",g(3,4,"settings.rprofiles.autotranscode_label")),d("ngModel",e.profile.RecProfParams[e.findIx("autotranscode",!1)].Value)("binary",!0),a(4),x(" ",g(6,6,"settings.rprofiles.autotranscode_desc")," ")}}function Gfe(t,s){if(1&t){const e=E();l(0,"div",12)(1,"label",16),_(2),f(3,"translate"),c(),l(4,"p-inputNumber",17),v("ngModelChange",function(i){C(e);const o=p(2);return y(o.profile.RecProfParams[o.findIx("width","480")].Value=i)}),c(),l(5,"small",15),_(6),f(7,"translate"),c()()}if(2&t){const e=p(2);a(2),S(g(3,7,"settings.rprofiles.width_label")),a(2),d("ngModel",e.profile.RecProfParams[e.findIx("width","480")].Value)("showButtons",!0)("min",160)("max",720)("step",16),a(2),x(" ",g(7,9,"settings.rprofiles.width_desc")," ")}}function qfe(t,s){if(1&t){const e=E();l(0,"div",12)(1,"label",18),_(2),f(3,"translate"),c(),l(4,"p-inputNumber",19),v("ngModelChange",function(i){C(e);const o=p(2);return y(o.profile.RecProfParams[o.findIx("height","480")].Value=i)}),c(),l(5,"small",15),_(6),f(7,"translate"),c()()}if(2&t){const e=p(2);a(2),S(g(3,7,"settings.rprofiles.height_label")),a(2),d("ngModel",e.profile.RecProfParams[e.findIx("height","480")].Value)("showButtons",!0)("min",160)("max",480)("step",16),a(2),x(" ",g(7,9,"settings.rprofiles.height_desc")," ")}}const $s=function(){return{minWidth:"400px"}};function zfe(t,s){if(1&t){const e=E();l(0,"div",12)(1,"label",20),_(2),f(3,"translate"),c(),l(4,"p-dropdown",21,22),v("ngModelChange",function(i){C(e);const o=p(2);return y(o.profile.RecProfParams[o.findIx("recordingtype","all")].Value=i)}),c(),l(6,"small",15),_(7),f(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(g(3,8,"settings.rprofiles.recordingtype_label")),a(2),j(V(12,$s)),d("options",e.recordingtypeOptions)("ngModel",e.profile.RecProfParams[e.findIx("recordingtype","all")].Value)("editable",!1)("maxlength",0),a(3),x(" ",g(8,10,"settings.rprofiles.recordingtype_desc")," ")}}function Ufe(t,s){if(1&t){const e=E();l(0,"div",12)(1,"p-checkbox",23,24),v("ngModelChange",function(i){C(e);const o=p(2);return y(o.profile.RecProfParams[o.findIx("recordmpts",!1)].Value=i)}),f(3,"translate"),c(),l(4,"small",15),_(5),f(6,"translate"),c()()}if(2&t){const e=p(2);a(1),I("label",g(3,4,"settings.rprofiles.recordmpts_label")),d("ngModel",e.profile.RecProfParams[e.findIx("recordmpts",!1)].Value)("binary",!0),a(4),x(" ",g(6,6,"settings.rprofiles.recordmpts_desc")," ")}}function jfe(t,s){if(1&t){const e=E();l(0,"div",12)(1,"label",26),_(2),f(3,"translate"),c(),l(4,"p-dropdown",27,28),v("ngModelChange",function(i){return C(e),y(p(3).profile.VideoCodec=i)}),c(),D(6,"small",15),c()}if(2&t){const e=p(3);a(2),S(g(3,7,"settings.rprofiles.videocodec_label")),a(2),j(V(9,$s)),d("options",e.params.Video)("ngModel",e.profile.VideoCodec)("editable",!1)("maxlength",0)}}function $fe(t,s){if(1&t){const e=E();l(0,"div",12)(1,"label",29),_(2),f(3,"translate"),c(),l(4,"p-inputNumber",30),v("ngModelChange",function(i){C(e);const o=p(3);return y(o.profile.RecProfParams[o.findIx("rtjpegquality","170")].Value=i)}),c(),l(5,"small",15),_(6),f(7,"translate"),c()()}if(2&t){const e=p(3);a(2),S(g(3,7,"settings.rprofiles.rtjpegquality_label")),a(2),d("ngModel",e.profile.RecProfParams[e.findIx("rtjpegquality","170")].Value)("showButtons",!0)("min",1)("max",255)("step",1),a(2),x(" ",g(7,9,"settings.rprofiles.rtjpegquality_desc")," ")}}function Wfe(t,s){if(1&t){const e=E();l(0,"div",12)(1,"label",31),_(2),f(3,"translate"),c(),l(4,"p-inputNumber",32),v("ngModelChange",function(i){C(e);const o=p(3);return y(o.profile.RecProfParams[o.findIx("rtjpeglumafilter","0")].Value=i)}),c(),l(5,"small",15),_(6),f(7,"translate"),c()()}if(2&t){const e=p(3);a(2),S(g(3,7,"settings.rprofiles.rtjpeglumafilter_label")),a(2),d("ngModel",e.profile.RecProfParams[e.findIx("rtjpeglumafilter","0")].Value)("showButtons",!0)("min",0)("max",31)("step",1),a(2),x(" ",g(7,9,"settings.rprofiles.rtjpegfilter_desc")," ")}}function Kfe(t,s){if(1&t){const e=E();l(0,"div",12)(1,"label",33),_(2),f(3,"translate"),c(),l(4,"p-inputNumber",34),v("ngModelChange",function(i){C(e);const o=p(3);return y(o.profile.RecProfParams[o.findIx("rtjpegchromafilter","0")].Value=i)}),c(),l(5,"small",15),_(6),f(7,"translate"),c()()}if(2&t){const e=p(3);a(2),S(g(3,7,"settings.rprofiles.rtjpegchromafilter_label")),a(2),d("ngModel",e.profile.RecProfParams[e.findIx("rtjpegchromafilter","0")].Value)("showButtons",!0)("min",0)("max",31)("step",1),a(2),x(" ",g(7,9,"settings.rprofiles.rtjpegfilter_desc")," ")}}function Qfe(t,s){if(1&t){const e=E();l(0,"div",12)(1,"label",35),_(2),f(3,"translate"),c(),l(4,"p-inputNumber",36),v("ngModelChange",function(i){C(e);const o=p(3);return y(o.profile.RecProfParams[o.findIx("mpeg4bitrate","2200")].Value=i)}),c(),l(5,"small",15),_(6),f(7,"translate"),c()()}if(2&t){const e=p(3);a(2),S(g(3,7,"settings.rprofiles.mpeg4bitrate_label")),a(2),d("ngModel",e.profile.RecProfParams[e.findIx("mpeg4bitrate","2200")].Value)("showButtons",!0)("min",100)("max",8e3)("step",100),a(2),x(" ",g(7,9,"settings.rprofiles.mpeg4bitrate_desc")," ")}}function Jfe(t,s){if(1&t){const e=E();l(0,"div",12)(1,"label",37),_(2),f(3,"translate"),c(),l(4,"p-inputNumber",38),v("ngModelChange",function(i){C(e);const o=p(3);return y(o.profile.RecProfParams[o.findIx("mpeg4maxquality","2")].Value=i)}),c(),l(5,"small",15),_(6),f(7,"translate"),c()()}if(2&t){const e=p(3);a(2),S(g(3,7,"settings.rprofiles.mpeg4maxquality_label")),a(2),d("ngModel",e.profile.RecProfParams[e.findIx("mpeg4maxquality","2")].Value)("showButtons",!0)("min",1)("max",31)("step",1),a(2),x(" ",g(7,9,"settings.rprofiles.mpeg4quality_desc")," ")}}function Zfe(t,s){if(1&t){const e=E();l(0,"div",12)(1,"label",39),_(2),f(3,"translate"),c(),l(4,"p-inputNumber",40),v("ngModelChange",function(i){C(e);const o=p(3);return y(o.profile.RecProfParams[o.findIx("mpeg4minquality","15")].Value=i)}),c(),l(5,"small",15),_(6),f(7,"translate"),c()()}if(2&t){const e=p(3);a(2),S(g(3,7,"settings.rprofiles.mpeg4minquality_label")),a(2),d("ngModel",e.profile.RecProfParams[e.findIx("mpeg4minquality","15")].Value)("showButtons",!0)("min",1)("max",31)("step",1),a(2),x(" ",g(7,9,"settings.rprofiles.mpeg4quality_desc")," ")}}function Yfe(t,s){if(1&t){const e=E();l(0,"div",12)(1,"label",41),_(2),f(3,"translate"),c(),l(4,"p-inputNumber",42),v("ngModelChange",function(i){C(e);const o=p(3);return y(o.profile.RecProfParams[o.findIx("hardwaremjpegquality","100")].Value=i)}),c(),D(5,"small",15),c()}if(2&t){const e=p(3);a(2),S(g(3,6,"settings.rprofiles.hardwaremjpegquality_label")),a(2),d("ngModel",e.profile.RecProfParams[e.findIx("hardwaremjpegquality","100")].Value)("showButtons",!0)("min",0)("max",100)("step",1)}}const pD=function(){return["1","2","4"]};function Xfe(t,s){if(1&t){const e=E();l(0,"div",12)(1,"label",43),_(2),f(3,"translate"),c(),l(4,"p-dropdown",44,45),v("ngModelChange",function(i){C(e);const o=p(3);return y(o.profile.RecProfParams[o.findIx("hardwaremjpeghdecimation","2")].Value=i)}),c(),D(6,"small",15),c()}if(2&t){const e=p(3);a(2),S(g(3,7,"settings.rprofiles.hardwaremjpeghdecimation_label")),a(2),j(V(9,$s)),d("options",V(10,pD))("ngModel",e.profile.RecProfParams[e.findIx("hardwaremjpeghdecimation","2")].Value)("editable",!1)("maxlength",0)}}function ege(t,s){if(1&t){const e=E();l(0,"div",12)(1,"label",46),_(2),f(3,"translate"),c(),l(4,"p-dropdown",47,48),v("ngModelChange",function(i){C(e);const o=p(3);return y(o.profile.RecProfParams[o.findIx("hardwaremjpegvdecimation","2")].Value=i)}),c(),D(6,"small",15),c()}if(2&t){const e=p(3);a(2),S(g(3,7,"settings.rprofiles.hardwaremjpegvdecimation_label")),a(2),j(V(9,$s)),d("options",V(10,pD))("ngModel",e.profile.RecProfParams[e.findIx("hardwaremjpegvdecimation","2")].Value)("editable",!1)("maxlength",0)}}function tge(t,s){if(1&t){const e=E();l(0,"div",12)(1,"label",49),_(2),f(3,"translate"),c(),l(4,"p-inputNumber",50),v("ngModelChange",function(i){C(e);const o=p(3);return y(o.profile.RecProfParams[o.findIx("mpeg4qualdiff","3")].Value=i)}),c(),l(5,"small",15),_(6),f(7,"translate"),c()()}if(2&t){const e=p(3);a(2),S(g(3,7,"settings.rprofiles.mpeg4qualdiff_label")),a(2),d("ngModel",e.profile.RecProfParams[e.findIx("mpeg4qualdiff","3")].Value)("showButtons",!0)("min",1)("max",31)("step",1),a(2),x(" ",g(7,9,"settings.rprofiles.mpeg4quality_desc")," ")}}function nge(t,s){if(1&t){const e=E();l(0,"div",12)(1,"label",51),_(2),f(3,"translate"),c(),l(4,"p-dropdown",52,53),v("ngModelChange",function(i){C(e);const o=p(3);return y(o.profile.RecProfParams[o.findIx("mpeg2streamtype","2")].Value=i)}),c(),l(6,"small",15),_(7),f(8,"translate"),c()()}if(2&t){const e=p(3);a(2),S(g(3,8,"settings.rprofiles.mpeg2streamtype_label")),a(2),j(V(12,$s)),d("options",e.streamTypeOptions)("ngModel",e.profile.RecProfParams[e.findIx("mpeg2streamtype","2")].Value)("editable",!1)("maxlength",0),a(3),x(" ",g(8,10,"settings.rprofiles.mpeg2streamtype_desc")," ")}}const ige=function(){return["Square","4:3","16:9","2.21:1"]};function sge(t,s){if(1&t){const e=E();l(0,"div",12)(1,"label",54),_(2),f(3,"translate"),c(),l(4,"p-dropdown",55,56),v("ngModelChange",function(i){C(e);const o=p(3);return y(o.profile.RecProfParams[o.findIx("mpeg2aspectratio","Square")].Value=i)}),c(),l(6,"small",15),_(7),f(8,"translate"),c()()}if(2&t){const e=p(3);a(2),S(g(3,8,"settings.rprofiles.mpeg2aspectratio_label")),a(2),j(V(12,$s)),d("options",V(13,ige))("ngModel",e.profile.RecProfParams[e.findIx("mpeg2aspectratio","Square")].Value)("editable",!1)("maxlength",0),a(3),x(" ",g(8,10,"settings.rprofiles.mpeg2aspectratio_desc")," ")}}function oge(t,s){if(1&t){const e=E();l(0,"div",12)(1,"label",57),_(2),f(3,"translate"),c(),l(4,"p-inputNumber",58),v("ngModelChange",function(i){C(e);const o=p(3);return y(o.profile.RecProfParams[o.findIx("mpeg2bitrate","6000")].Value=i)}),c(),l(5,"small",15),_(6),f(7,"translate"),c()()}if(2&t){const e=p(3);a(2),S(g(3,7,"settings.rprofiles.mpeg2bitrate_label")),a(2),d("ngModel",e.profile.RecProfParams[e.findIx("mpeg2bitrate","6000")].Value)("showButtons",!0)("min",1e3)("max",16e3)("step",100),a(2),x(" ",g(7,9,"settings.rprofiles.mpeg2bitrate_desc")," ")}}function rge(t,s){if(1&t){const e=E();l(0,"div",12)(1,"label",59),_(2),f(3,"translate"),c(),l(4,"p-inputNumber",60),v("ngModelChange",function(i){C(e);const o=p(3);return y(o.profile.RecProfParams[o.findIx("mpeg2maxbitrate","4500")].Value=i)}),c(),l(5,"small",15),_(6),f(7,"translate"),c()()}if(2&t){const e=p(3);a(2),S(g(3,7,"settings.rprofiles.mpeg2maxbitrate_label")),a(2),d("ngModel",e.profile.RecProfParams[e.findIx("mpeg2maxbitrate","4500")].Value)("showButtons",!0)("min",1e3)("max",16e3)("step",100),a(2),x(" ",g(7,9,"settings.rprofiles.mpeg2maxbitrate_desc")," ")}}function age(t,s){if(1&t){const e=E();l(0,"p-fieldset",25),f(1,"translate"),l(2,"div",12)(3,"label",61),_(4),f(5,"translate"),c(),l(6,"p-inputNumber",62),v("ngModelChange",function(i){C(e);const o=p(3);return y(o.profile.RecProfParams[o.findIx("low_mpeg4avgbitrate","4500")].Value=i)}),c(),l(7,"small",15),_(8),f(9,"translate"),c()(),l(10,"div",12)(11,"label",63),_(12),f(13,"translate"),c(),l(14,"p-inputNumber",64),v("ngModelChange",function(i){C(e);const o=p(3);return y(o.profile.RecProfParams[o.findIx("low_mpeg4peakbitrate","6000")].Value=i)}),c(),l(15,"small",15),_(16),f(17,"translate"),c()()()}if(2&t){const e=p(3);I("legend",g(1,17,"settings.rprofiles.lowres_label")),d("toggleable",!0)("collapsed",!0),a(4),S(g(5,19,"settings.rprofiles.mpeg2bitrate_label")),a(2),d("ngModel",e.profile.RecProfParams[e.findIx("low_mpeg4avgbitrate","4500")].Value)("showButtons",!0)("min",1e3)("max",13500)("step",500),a(2),x(" ",g(9,21,"settings.rprofiles.mpeg2bitrate_desc")," "),a(4),S(g(13,23,"settings.rprofiles.mpeg2maxbitrate_label")),a(2),d("ngModel",e.profile.RecProfParams[e.findIx("low_mpeg4peakbitrate","6000")].Value)("showButtons",!0)("min",1100)("max",20200)("step",500),a(2),x(" ",g(17,25,"settings.rprofiles.mpeg2maxbitrate_desc")," ")}}function lge(t,s){if(1&t){const e=E();l(0,"p-fieldset",25),f(1,"translate"),l(2,"div",12)(3,"label",65),_(4),f(5,"translate"),c(),l(6,"p-inputNumber",66),v("ngModelChange",function(i){C(e);const o=p(3);return y(o.profile.RecProfParams[o.findIx("medium_mpeg4avgbitrate","9000")].Value=i)}),c(),l(7,"small",15),_(8),f(9,"translate"),c()(),l(10,"div",12)(11,"label",67),_(12),f(13,"translate"),c(),l(14,"p-inputNumber",68),v("ngModelChange",function(i){C(e);const o=p(3);return y(o.profile.RecProfParams[o.findIx("medium_mpeg4peakbitrate","11000")].Value=i)}),c(),l(15,"small",15),_(16),f(17,"translate"),c()()()}if(2&t){const e=p(3);I("legend",g(1,17,"settings.rprofiles.medres_label")),d("toggleable",!0)("collapsed",!0),a(4),S(g(5,19,"settings.rprofiles.mpeg2bitrate_label")),a(2),d("ngModel",e.profile.RecProfParams[e.findIx("medium_mpeg4avgbitrate","9000")].Value)("showButtons",!0)("min",1e3)("max",13500)("step",500),a(2),x(" ",g(9,21,"settings.rprofiles.mpeg2bitrate_desc")," "),a(4),S(g(13,23,"settings.rprofiles.mpeg2maxbitrate_label")),a(2),d("ngModel",e.profile.RecProfParams[e.findIx("medium_mpeg4peakbitrate","11000")].Value)("showButtons",!0)("min",1100)("max",20200)("step",500),a(2),x(" ",g(17,25,"settings.rprofiles.mpeg2maxbitrate_desc")," ")}}function cge(t,s){if(1&t){const e=E();l(0,"p-fieldset",25),f(1,"translate"),l(2,"div",12)(3,"label",69),_(4),f(5,"translate"),c(),l(6,"p-inputNumber",70),v("ngModelChange",function(i){C(e);const o=p(3);return y(o.profile.RecProfParams[o.findIx("high_mpeg4avgbitrate","13500")].Value=i)}),c(),l(7,"small",15),_(8),f(9,"translate"),c()(),l(10,"div",12)(11,"label",71),_(12),f(13,"translate"),c(),l(14,"p-inputNumber",72),v("ngModelChange",function(i){C(e);const o=p(3);return y(o.profile.RecProfParams[o.findIx("high_mpeg4peakbitrate","20200")].Value=i)}),c(),l(15,"small",15),_(16),f(17,"translate"),c()()()}if(2&t){const e=p(3);I("legend",g(1,17,"settings.rprofiles.highres_label")),d("toggleable",!0)("collapsed",!0),a(4),S(g(5,19,"settings.rprofiles.mpeg2bitrate_label")),a(2),d("ngModel",e.profile.RecProfParams[e.findIx("high_mpeg4avgbitrate","13500")].Value)("showButtons",!0)("min",1e3)("max",13500)("step",500),a(2),x(" ",g(9,21,"settings.rprofiles.mpeg2bitrate_desc")," "),a(4),S(g(13,23,"settings.rprofiles.mpeg2maxbitrate_label")),a(2),d("ngModel",e.profile.RecProfParams[e.findIx("high_mpeg4peakbitrate","20200")].Value)("showButtons",!0)("min",1100)("max",20200)("step",500),a(2),x(" ",g(17,25,"settings.rprofiles.mpeg2maxbitrate_desc")," ")}}function uge(t,s){if(1&t){const e=E();l(0,"div",12)(1,"p-checkbox",73,74),v("ngModelChange",function(i){C(e);const o=p(3);return y(o.profile.RecProfParams[o.findIx("scalebitrate",!0)].Value=i)}),f(3,"translate"),c(),l(4,"small",15),_(5),f(6,"translate"),c()()}if(2&t){const e=p(3);a(1),I("label",g(3,4,"settings.rprofiles.scalebitrate_label")),d("ngModel",e.profile.RecProfParams[e.findIx("scalebitrate",!0)].Value)("binary",!0),a(4),x(" ",g(6,6,"settings.rprofiles.scalebitrate_desc")," ")}}function dge(t,s){if(1&t){const e=E();l(0,"div",12)(1,"p-checkbox",75,76),v("ngModelChange",function(i){C(e);const o=p(3);return y(o.profile.RecProfParams[o.findIx("mpeg4optionvhq",!1)].Value=i)}),f(3,"translate"),c(),l(4,"small",15),_(5),f(6,"translate"),c()()}if(2&t){const e=p(3);a(1),I("label",g(3,4,"settings.rprofiles.mpeg4optionvhq_label")),d("ngModel",e.profile.RecProfParams[e.findIx("mpeg4optionvhq",!1)].Value)("binary",!0),a(4),x(" ",g(6,6,"settings.rprofiles.mpeg4optionvhq_desc")," ")}}function pge(t,s){if(1&t){const e=E();l(0,"div",12)(1,"p-checkbox",77,78),v("ngModelChange",function(i){C(e);const o=p(3);return y(o.profile.RecProfParams[o.findIx("mpeg4option4mv",!1)].Value=i)}),f(3,"translate"),c(),l(4,"small",15),_(5),f(6,"translate"),c()()}if(2&t){const e=p(3);a(1),I("label",g(3,4,"settings.rprofiles.mpeg4option4mv_label")),d("ngModel",e.profile.RecProfParams[e.findIx("mpeg4option4mv",!1)].Value)("binary",!0),a(4),x(" ",g(6,6,"settings.rprofiles.mpeg4option4mv_desc")," ")}}function hge(t,s){if(1&t){const e=E();l(0,"div",12)(1,"p-checkbox",79,80),v("ngModelChange",function(i){C(e);const o=p(3);return y(o.profile.RecProfParams[o.findIx("mpeg4optionidct",!1)].Value=i)}),f(3,"translate"),c(),l(4,"small",15),_(5),f(6,"translate"),c()()}if(2&t){const e=p(3);a(1),I("label",g(3,4,"settings.rprofiles.mpeg4optionidct_label")),d("ngModel",e.profile.RecProfParams[e.findIx("mpeg4optionidct",!1)].Value)("binary",!0),a(4),x(" ",g(6,6,"settings.rprofiles.mpeg4optionidct_desc")," ")}}function mge(t,s){if(1&t){const e=E();l(0,"div",12)(1,"p-checkbox",81,82),v("ngModelChange",function(i){C(e);const o=p(3);return y(o.profile.RecProfParams[o.findIx("mpeg4optionime",!1)].Value=i)}),f(3,"translate"),c(),l(4,"small",15),_(5),f(6,"translate"),c()()}if(2&t){const e=p(3);a(1),I("label",g(3,4,"settings.rprofiles.mpeg4optionime_label")),d("ngModel",e.profile.RecProfParams[e.findIx("mpeg4optionime",!1)].Value)("binary",!0),a(4),x(" ",g(6,6,"settings.rprofiles.mpeg4optionime_desc")," ")}}function fge(t,s){if(1&t){const e=E();l(0,"div",12)(1,"label",83),_(2),f(3,"translate"),c(),l(4,"p-inputNumber",84),v("ngModelChange",function(i){C(e);const o=p(3);return y(o.profile.RecProfParams[o.findIx("encodingthreadcount","1")].Value=i)}),c(),l(5,"small",15),_(6),f(7,"translate"),c()()}if(2&t){const e=p(3);a(2),S(g(3,7,"settings.rprofiles.encodingthreadcount_label")),a(2),d("ngModel",e.profile.RecProfParams[e.findIx("encodingthreadcount","1")].Value)("showButtons",!0)("min",1)("max",8)("step",1),a(2),x(" ",g(7,9,"settings.rprofiles.encodingthreadcount_desc")," ")}}function gge(t,s){if(1&t&&(l(0,"p-fieldset",25),f(1,"translate"),m(2,jfe,7,10,"div",10),m(3,$fe,8,11,"div",10),m(4,Wfe,8,11,"div",10),m(5,Kfe,8,11,"div",10),m(6,Qfe,8,11,"div",10),m(7,Jfe,8,11,"div",10),m(8,Zfe,8,11,"div",10),m(9,Yfe,6,8,"div",10),m(10,Xfe,7,11,"div",10),m(11,ege,7,11,"div",10),m(12,tge,8,11,"div",10),m(13,nge,9,13,"div",10),m(14,sge,9,14,"div",10),m(15,oge,8,11,"div",10),m(16,rge,8,11,"div",10),m(17,age,18,27,"p-fieldset",11),m(18,lge,18,27,"p-fieldset",11),m(19,cge,18,27,"p-fieldset",11),m(20,uge,7,8,"div",10),m(21,dge,7,8,"div",10),m(22,pge,7,8,"div",10),m(23,hge,7,8,"div",10),m(24,mge,7,8,"div",10),m(25,fge,8,11,"div",10),c()),2&t){const e=p(2);I("legend",g(1,27,"settings.rprofiles.video_label")),d("toggleable",!0)("collapsed",!0),a(2),d("ngIf",e.params.Video.length>0),a(1),d("ngIf","RTjpeg"==e.profile.VideoCodec),a(1),d("ngIf","RTjpeg"==e.profile.VideoCodec),a(1),d("ngIf","RTjpeg"==e.profile.VideoCodec),a(1),d("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),d("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),d("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),d("ngIf","Hardware MJPEG"==e.profile.VideoCodec),a(1),d("ngIf","Hardware MJPEG"==e.profile.VideoCodec),a(1),d("ngIf","Hardware MJPEG"==e.profile.VideoCodec),a(1),d("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),d("ngIf","MPEG-2 Hardware Encoder"==e.profile.VideoCodec),a(1),d("ngIf","MPEG-2 Hardware Encoder"==e.profile.VideoCodec),a(1),d("ngIf","MPEG-2"==e.profile.VideoCodec||"MPEG-2 Hardware Encoder"==e.profile.VideoCodec),a(1),d("ngIf","MPEG-2 Hardware Encoder"==e.profile.VideoCodec),a(1),d("ngIf","MPEG-4 AVC Hardware Encoder"==e.profile.VideoCodec),a(1),d("ngIf","MPEG-4 AVC Hardware Encoder"==e.profile.VideoCodec),a(1),d("ngIf","MPEG-4 AVC Hardware Encoder"==e.profile.VideoCodec),a(1),d("ngIf","MPEG-4"==e.profile.VideoCodec||"MPEG-2"==e.profile.VideoCodec),a(1),d("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),d("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),d("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),d("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),d("ngIf","MPEG-4"==e.profile.VideoCodec||"MPEG-2"==e.profile.VideoCodec)}}function _ge(t,s){if(1&t){const e=E();l(0,"div",12)(1,"label",85),_(2),f(3,"translate"),c(),l(4,"p-dropdown",86,87),v("ngModelChange",function(i){return C(e),y(p(3).profile.AudioCodec=i)}),c(),D(6,"small",15),c()}if(2&t){const e=p(3);a(2),S(g(3,7,"settings.rprofiles.audiocodec_label")),a(2),j(V(9,$s)),d("options",e.params.Audio)("ngModel",e.profile.AudioCodec)("editable",!1)("maxlength",0)}}function bge(t,s){if(1&t){const e=E();l(0,"div",12)(1,"label",88),_(2),f(3,"translate"),c(),l(4,"p-dropdown",89,90),v("ngModelChange",function(i){C(e);const o=p(3);return y(o.profile.RecProfParams[o.findIx("samplerate","32000")].Value=i)}),c(),l(6,"small",15),_(7),f(8,"translate"),c()()}if(2&t){const e=p(3);a(2),S(g(3,8,"settings.rprofiles.samplerate_label")),a(2),j(V(12,$s)),d("options",e.samplerateOptions)("ngModel",e.profile.RecProfParams[e.findIx("samplerate","32000")].Value)("editable",!1)("maxlength",0),a(3),x(" ",g(8,10,"settings.rprofiles.samplerate_desc")," ")}}function vge(t,s){if(1&t){const e=E();l(0,"div",12)(1,"label",91),_(2),f(3,"translate"),c(),l(4,"p-dropdown",92,93),v("ngModelChange",function(i){C(e);const o=p(3);return y(o.profile.RecProfParams[o.findIx("mpeg2language","32000")].Value=i)}),c(),l(6,"small",15),_(7),f(8,"translate"),c()()}if(2&t){const e=p(3);a(2),S(g(3,8,"settings.rprofiles.mpeg2language_label")),a(2),j(V(12,$s)),d("options",e.mpeg2languageOptions)("ngModel",e.profile.RecProfParams[e.findIx("mpeg2language","32000")].Value)("editable",!1)("maxlength",0),a(3),x(" ",g(8,10,"settings.rprofiles.mpeg2language_desc")," ")}}function Cge(t,s){if(1&t){const e=E();l(0,"div",12)(1,"label",94),_(2),f(3,"translate"),c(),l(4,"p-inputNumber",95),v("ngModelChange",function(i){C(e);const o=p(3);return y(o.profile.RecProfParams[o.findIx("mp3quality","1")].Value=i)}),c(),l(5,"small",15),_(6),f(7,"translate"),c()()}if(2&t){const e=p(3);a(2),S(g(3,7,"settings.rprofiles.mp3quality_label")),a(2),d("ngModel",e.profile.RecProfParams[e.findIx("mp3quality","1")].Value)("showButtons",!0)("min",1)("max",9)("step",1),a(2),x(" ",g(7,9,"settings.rprofiles.mp3quality_desc")," ")}}function yge(t,s){if(1&t){const e=E();l(0,"div",12)(1,"label",96),_(2),f(3,"translate"),c(),l(4,"p-inputNumber",97),v("ngModelChange",function(i){C(e);const o=p(3);return y(o.profile.RecProfParams[o.findIx("volume","90")].Value=i)}),c(),l(5,"small",15),_(6),f(7,"translate"),c()()}if(2&t){const e=p(3);a(2),S(g(3,7,"settings.rprofiles.volume_label")),a(2),d("ngModel",e.profile.RecProfParams[e.findIx("volume","90")].Value)("showButtons",!0)("min",0)("max",100)("step",1),a(2),x(" ",g(7,9,"settings.rprofiles.volume_desc")," ")}}function Tge(t,s){if(1&t){const e=E();l(0,"div",12)(1,"label",98),_(2),f(3,"translate"),c(),l(4,"p-inputNumber",99),v("ngModelChange",function(i){C(e);const o=p(3);return y(o.profile.RecProfParams[o.findIx("mpeg2audvolume","90")].Value=i)}),c(),l(5,"small",15),_(6),f(7,"translate"),c()()}if(2&t){const e=p(3);a(2),S(g(3,7,"settings.rprofiles.volume_label")),a(2),d("ngModel",e.profile.RecProfParams[e.findIx("mpeg2audvolume","90")].Value)("showButtons",!0)("min",0)("max",100)("step",1),a(2),x(" ",g(7,9,"settings.rprofiles.mpeg2audvolume_desc")," ")}}function wge(t,s){if(1&t&&(l(0,"p-fieldset",25),f(1,"translate"),m(2,_ge,7,10,"div",10),m(3,bge,9,13,"div",10),m(4,vge,9,13,"div",10),m(5,Cge,8,11,"div",10),m(6,yge,8,11,"div",10),m(7,Tge,8,11,"div",10),c()),2&t){const e=p(2);I("legend",g(1,9,"settings.rprofiles.audio_label")),d("toggleable",!0)("collapsed",!0),a(2),d("ngIf",e.params.Audio.length>0),a(1),d("ngIf","MP3"==e.profile.AudioCodec||"MPEG-2 Hardware Encoder"==e.profile.AudioCodec||"Uncompressed"==e.profile.AudioCodec),a(1),d("ngIf","MPEG-2 Hardware Encoder"==e.profile.AudioCodec),a(1),d("ngIf","MP3"==e.profile.AudioCodec),a(1),d("ngIf","MP3"==e.profile.AudioCodec||"Uncompressed"==e.profile.AudioCodec),a(1),d("ngIf","MPEG-2 Hardware Encoder"==e.profile.AudioCodec)}}function Ige(t,s){if(1&t&&(l(0,"div",8)(1,"div",9),m(2,Hfe,7,8,"div",10),m(3,Gfe,8,11,"div",10),m(4,qfe,8,11,"div",10),m(5,zfe,9,13,"div",10),m(6,Ufe,7,8,"div",10),m(7,gge,26,29,"p-fieldset",11),m(8,wge,8,11,"p-fieldset",11),c()()),2&t){const e=p();a(2),d("ngIf",e.params.Param.includes("autotranscode")),a(1),d("ngIf",e.params.Param.includes("width")),a(1),d("ngIf",e.params.Param.includes("height")),a(1),d("ngIf",e.params.Param.includes("recordingtype")),a(1),d("ngIf",e.params.Param.includes("recordmpts")),a(1),d("ngIf",e.params.Video.length>0),a(1),d("ngIf",e.params.Audio.length>0)}}function Sge(t,s){1&t&&(D(0,"p-message",105),f(1,"translate")),2&t&&I("text",g(1,1,"common.savesuccess"))}function xge(t,s){1&t&&(D(0,"p-message",106),f(1,"translate")),2&t&&I("text",g(1,1,"common.networkfail"))}function Dge(t,s){if(1&t){const e=E();l(0,"div",100)(1,"div",101),m(2,Sge,2,3,"p-message",102),m(3,xge,2,3,"p-message",103),c(),l(4,"p-button",104),v("onClick",function(){C(e);const i=p(),o=B(1);return i.saveForm(1),y(o.form.markAsPristine())}),f(5,"translate"),c()()}if(2&t){const e=p(),n=B(1);a(2),d("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0),a(1),I("label",g(5,4,"common.save")),d("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let Mge=(()=>{class t{constructor(e,n,i){this.translate=e,this.captureCardService=n,this.setupService=i,this.successCount=0,this.errorCount=0,this.expectedCount=0,this.paramList=[{CardType:"V4L",Param:["autotranscode","height","width"],Video:["RTjpeg","MPEG-4"],Audio:["MP3","Uncompressed"]},{CardType:"MPEG",Param:["autotranscode","height","width"],Video:["MPEG-2 Hardware Encoder"],Audio:["MPEG-2 Hardware Encoder"]},{CardType:"MJPEG",Param:["autotranscode","height","width"],Video:["Hardware MJPEG"],Audio:["MP3","Uncompressed"]},{CardType:"HDTV",Param:["autotranscode","height","width"],Video:["RTjpeg","MPEG-4"],Audio:["MP3","Uncompressed"]},{CardType:"DVB",Param:["autotranscode","recordingtype","recordmpts"],Video:[],Audio:[]},{CardType:"FIREWIRE",Param:["autotranscode"],Video:[],Audio:[]},{CardType:"GO7007",Param:["autotranscode","height","width"],Video:["MPEG-4","MPEG-2"],Audio:["MP3","Uncompressed"]},{CardType:"IMPORT",Param:["autotranscode"],Video:[],Audio:[]},{CardType:"FREEBOX",Param:["autotranscode","recordmpts"],Video:[],Audio:[]},{CardType:"HDHOMERUN",Param:["autotranscode","recordingtype","recordmpts"],Video:[],Audio:[]},{CardType:"CRC_IP",Param:["autotranscode","height","width"],Video:["RTjpeg","MPEG-4"],Audio:["MP3","Uncompressed"]},{CardType:"HDPVR",Param:["autotranscode"],Video:["MPEG-4 AVC Hardware Encoder"],Audio:["AC3 Hardware Encoder","AAC Hardware Encoder"]},{CardType:"ASI",Param:["autotranscode","recordmpts"],Video:[],Audio:[]},{CardType:"OCUR",Param:["autotranscode","height","width"],Video:["RTjpeg","MPEG-4"],Audio:["MP3","Uncompressed"]},{CardType:"CETON",Param:["autotranscode","recordmpts"],Video:[],Audio:[]},{CardType:"VBOX",Param:["autotranscode","recordmpts"],Video:[],Audio:[]},{CardType:"SATIP",Param:["autotranscode","recordingtype","recordmpts"],Video:[],Audio:[]},{CardType:"V4L2:uvcvideo",Param:["autotranscode","height","width"],Video:["V4L2:MPEG-2 Video"],Audio:["V4L2:MPEG-1/2 Layer II encoding"]},{CardType:"TRANSCODE",Param:["autotranscode","height","width"],Video:["RTjpeg","MPEG-4"],Audio:["MP3","Uncompressed"]}],this.params={CardType:"",Param:[""],Video:[""],Audio:[""]},this.videoParamList=[{Codec:"RTjpeg",Param:["rtjpegquality","rtjpeglumafilter","rtjpegchromafilter"]},{Codec:"MPEG-4",Param:["mpeg4bitrate","mpeg4maxquality","mpeg4minquality","mpeg4qualdiff","scalebitrate","mpeg4optionvhq","mpeg4option4mv","mpeg4optionidct","mpeg4optionime","encodingthreadcount"]},{Codec:"MPEG-2",Param:["mpeg2bitrate","scalebitrate","encodingthreadcount"]},{Codec:"Hardware MJPEG",Param:["hardwaremjpegquality","hardwaremjpeghdecimation","hardwaremjpegvdecimation"]},{Codec:"MPEG-2 Hardware Encoder",Param:["mpeg2streamtype","mpeg2aspectratio","mpeg2bitrate","mpeg2maxbitrate"]},{Codec:"MPEG-4 AVC Hardware Encoder",Param:["low_mpeg4avgbitrate","low_mpeg4peakbitrate","medium_mpeg4avgbitrate","medium_mpeg4peakbitrate","high_mpeg4avgbitrate","high_mpeg4peakbitrate"]},{Codec:"V4L2:MPEG-2 Video",Param:[]}],this.audioParamList=[{Codec:"MP3",Param:["samplerate","mp3quality","volume"]},{Codec:"MPEG-2 Hardware Encoder",Param:["samplerate","mpeg2language","mpeg2audvolume"]},{Codec:"Uncompressed",Param:["samplerate","volume"]}],this.recordingtypeOptions=[{Name:"settings.rprofiles.rectype_normal",Value:"all"},{Name:"settings.rprofiles.rectype_tv",Value:"tv"},{Name:"settings.rprofiles.rectype_audio",Value:"audio"}],this.samplerateOptions=["32000","44100","48000"],this.streamTypeOptions=["MPEG-2 PS","MPEG-2 TS","MPEG-1 VCD","PES AV","PES V","PES A","DVD","DVD-Special 1","DVD-Special 2"],this.mpeg2languageOptions=[{Name:"settings.rprofiles.lang_main",Value:"0"},{Name:"settings.rprofiles.lang_sap",Value:"1"},{Name:"settings.rprofiles.lang_dual",Value:"2"}],this.saveObserver={next:o=>{this.profile.Id&&o.bool?this.successCount++:!this.profile.Id&&o.int?(this.successCount++,this.profile.Id=o.int,this.saveForm(2)):(console.log("saveObserver error",o),this.errorCount++,this.currentForm.form.markAsDirty())},error:o=>{console.log("saveObserver error",o),this.errorCount++,this.currentForm.form.markAsDirty()}},this.recordingtypeOptions.forEach(o=>{e.get(o.Name).subscribe(r=>o.Name=r)}),this.mpeg2languageOptions.forEach(o=>{e.get(o.Name).subscribe(r=>o.Name=r)})}ngOnInit(){let e=this.paramList.find(n=>n.CardType==this.group.CardType);e&&(this.params=e)}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}findIx(e,n){let i=this.profile.RecProfParams.findIndex(o=>o.Name==e);return-1==i?i=this.profile.RecProfParams.push({Name:e,Value:n})-1:"boolean"==typeof n&&"string"==typeof this.profile.RecProfParams[i].Value&&(this.profile.RecProfParams[i].Value="1"==this.profile.RecProfParams[i].Value),i}saveForm(e){switch(e){case 1:if(this.successCount=0,this.errorCount=0,this.expectedCount=0,this.profile.Id<=0)return this.captureCardService.AddRecProfile(this.group.Id,this.profile.Name,this.profile.VideoCodec,this.profile.AudioCodec).subscribe(this.saveObserver),void this.expectedCount++;this.captureCardService.UpdateRecProfile(this.profile.Id,this.profile.VideoCodec,this.profile.AudioCodec).subscribe(this.saveObserver),this.expectedCount++;case 2:this.saveParams(this.params.Param);let n=this.videoParamList.find(o=>o.Codec==this.profile.VideoCodec);n?this.saveParams(n.Param):(console.log("ERROR videoparams not found"),this.errorCount++,this.currentForm.form.markAsDirty());let i=this.audioParamList.find(o=>o.Codec==this.profile.AudioCodec);i?this.saveParams(i.Param):(console.log("ERROR audioparams not found"),this.errorCount++,this.currentForm.form.markAsDirty())}}saveParams(e){e.forEach(n=>{let i=this.profile.RecProfParams[this.findIx(n,"0")].Value;i="boolean"==typeof i?i?"1":"0":i.toString(),this.captureCardService.UpdateRecProfileParam(this.profile.Id,n,i).subscribe(this.saveObserver),this.expectedCount++})}static#e=this.\u0275fac=function(n){return new(n||t)(M(Le),M(Kt),M(Re))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-recprofile"]],viewQuery:function(n,i){if(1&n&&(K(Ffe,5),K(Nfe,5)),2&n){let o;H(o=G())&&(i.currentForm=o.first),H(o=G())&&(i.topElement=o.first)}},inputs:{profile:"profile",group:"group",parentComponent:"parentComponent"},decls:9,vars:0,consts:[["name","recprofform",1,"ml-3","mr-3"],["recprofform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],["class","form-group field",4,"ngIf"],["class","mb-4 w-full",3,"legend","toggleable","collapsed",4,"ngIf"],[1,"form-group","field"],["inputId","autotranscode","name","autotranscode",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["autotranscode","ngModel"],[1,"block"],["for","width",1,"label","block"],["name","width","id","width",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","height",1,"label","block"],["name","height","id","height",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","recordingtype",1,"label","block"],["optionLabel","Name","optionValue","Value","name","recordingtype",3,"options","ngModel","editable","maxlength","ngModelChange"],["recordingtype","ngModel"],["inputId","recordmpts","name","recordmpts",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["recordmpts","ngModel"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["for","VideoCodec",1,"label","block"],["name","VideoCodec",3,"options","ngModel","editable","maxlength","ngModelChange"],["VideoCodec","ngModel"],["for","rtjpegquality",1,"label","block"],["name","rtjpegquality","id","rtjpegquality",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","rtjpeglumafilter",1,"label","block"],["name","rtjpeglumafilter","id","rtjpeglumafilter",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","rtjpegchromafilter",1,"label","block"],["name","rtjpegchromafilter","id","rtjpegchromafilter",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg4bitrate",1,"label","block"],["name","mpeg4bitrate","id","mpeg4bitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg4maxquality",1,"label","block"],["name","mpeg4maxquality","id","mpeg4maxquality",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg4minquality",1,"label","block"],["name","mpeg4minquality","id","mpeg4minquality",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","hardwaremjpegquality",1,"label","block"],["name","hardwaremjpegquality","id","hardwaremjpegquality",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","hardwaremjpeghdecimation",1,"label","block"],["name","hardwaremjpeghdecimation",3,"options","ngModel","editable","maxlength","ngModelChange"],["hardwaremjpeghdecimation","ngModel"],["for","hardwaremjpegvdecimation",1,"label","block"],["name","hardwaremjpegvdecimation",3,"options","ngModel","editable","maxlength","ngModelChange"],["hardwaremjpegvdecimation","ngModel"],["for","mpeg4qualdiff",1,"label","block"],["name","mpeg4qualdiff","id","mpeg4qualdiff",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg2streamtype",1,"label","block"],["name","mpeg2streamtype",3,"options","ngModel","editable","maxlength","ngModelChange"],["mpeg2streamtype","ngModel"],["for","mpeg2aspectratio",1,"label","block"],["name","mpeg2aspectratio",3,"options","ngModel","editable","maxlength","ngModelChange"],["mpeg2aspectratio","ngModel"],["for","mpeg2bitrate",1,"label","block"],["name","mpeg2bitrate","id","mpeg2bitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg2maxbitrate",1,"label","block"],["name","mpeg2maxbitrate","id","mpeg2maxbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","low_mpeg4avgbitrate",1,"label","block"],["name","low_mpeg4avgbitrate","id","low_mpeg4avgbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","low_mpeg4peakbitrate",1,"label","block"],["name","low_mpeg4peakbitrate","id","low_mpeg4peakbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","medium_mpeg4avgbitrate",1,"label","block"],["name","medium_mpeg4avgbitrate","id","medium_mpeg4avgbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","medium_mpeg4peakbitrate",1,"label","block"],["name","medium_mpeg4peakbitrate","id","medium_mpeg4peakbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","high_mpeg4avgbitrate",1,"label","block"],["name","high_mpeg4avgbitrate","id","high_mpeg4avgbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","high_mpeg4peakbitrate",1,"label","block"],["name","high_mpeg4peakbitrate","id","high_mpeg4peakbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","scalebitrate","name","scalebitrate",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["scalebitrate","ngModel"],["inputId","mpeg4optionvhq","name","mpeg4optionvhq",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["mpeg4optionvhq","ngModel"],["inputId","mpeg4option4mv","name","mpeg4option4mv",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["mpeg4option4mv","ngModel"],["inputId","mpeg4optionidct","name","mpeg4optionidct",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["mpeg4optionidct","ngModel"],["inputId","mpeg4optionime","name","mpeg4optionime",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["mpeg4optionime","ngModel"],["for","encodingthreadcount",1,"label","block"],["name","encodingthreadcount","id","encodingthreadcount",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","AudioCodec",1,"label","block"],["name","AudioCodec",3,"options","ngModel","editable","maxlength","ngModelChange"],["AudioCodec","ngModel"],["for","samplerate",1,"label","block"],["name","samplerate",3,"options","ngModel","editable","maxlength","ngModelChange"],["samplerate","ngModel"],["for","mpeg2language",1,"label","block"],["optionLabel","Name","optionValue","Value","name","mpeg2language",3,"options","ngModel","editable","maxlength","ngModelChange"],["mpeg2language","ngModel"],["for","mp3quality",1,"label","block"],["name","mp3quality","id","mp3quality",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","volume",1,"label","block"],["name","volume","id","volume",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg2audvolume",1,"label","block"],["name","mpeg2audvolume","id","mpeg2audvolume",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(n,i){1&n&&(l(0,"form",0,1),D(2,"span",null,2),l(4,"p-card",3),m(5,Vfe,2,4,"ng-template",4),m(6,Bfe,0,0,"ng-template",5),m(7,Ige,9,7,"ng-template",6),m(8,Dge,6,6,"ng-template",7),c()())},dependencies:[ne,We,xe,$e,In,Ce,He,ae,Te,Ge,ln,Gt,Xi,vt,qe,pe]})}return t})();const kge=["v4l2form"],Ege=["top"];function Lge(t,s){1&t&&(_(0),f(1,"translate")),2&t&&x(" ",g(1,1,"settings.capture.v4l2.title")," ")}function Rge(t,s){}const Oge=function(){return{minWidth:"80%"}};function Age(t,s){if(1&t){const e=E();l(0,"p-dropdown",17,18),v("ngModelChange",function(i){return C(e),y(p(2).currentDevice=i)})("onChange",function(){return C(e),y(p(2).updateDevice())}),c()}if(2&t){const e=p(2);j(V(6,Oge)),d("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function Pge(t,s){if(1&t&&(l(0,"div")(1,"small",19),_(2),c()()),2&t){const e=p(2);a(2),x(" ",e.warningMessage," ")}}function Fge(t,s){if(1&t){const e=E();l(0,"input",20,21),v("ngModelChange",function(i){return C(e),y(p(2).currentDevice.FrontendName=i)}),c()}2&t&&d("ngModel",p(2).currentDevice.FrontendName)}function Nge(t,s){if(1&t&&(l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),_(4),f(5,"translate"),c(),m(6,Age,2,7,"p-dropdown",12),m(7,Pge,3,1,"div",13),l(8,"small",14),_(9),f(10,"translate"),c()(),l(11,"div",10)(12,"label",15),_(13),f(14,"translate"),c(),m(15,Fge,2,1,"input",16),l(16,"small",14),_(17),f(18,"translate"),c()()()()),2&t){const e=p();a(4),S(g(5,7,"settings.capture.v4l2.device_label")),a(2),d("ngIf",e.isReady),a(1),d("ngIf",e.warningMessage),a(2),x(" ",g(10,9,"settings.capture.device_desc")," "),a(4),S(g(14,11,"settings.capture.v4l2.frontend_label")),a(2),d("ngIf",e.isReady),a(2),x(" ",g(18,13,"settings.capture.frontend_desc")," ")}}function Vge(t,s){1&t&&(D(0,"p-message",27),f(1,"translate")),2&t&&I("text",g(1,1,"common.savesuccess"))}function Bge(t,s){1&t&&(D(0,"p-message",28),f(1,"translate")),2&t&&I("text",g(1,1,"common.networkfail"))}function Hge(t,s){if(1&t){const e=E();l(0,"div",22)(1,"div",23),m(2,Vge,2,3,"p-message",24),m(3,Bge,2,3,"p-message",25),c(),l(4,"p-button",26),v("onClick",function(){C(e);const i=p(),o=B(1);return i.saveForm(),y(o.form.markAsPristine())}),f(5,"translate"),c()()}if(2&t){const e=p(),n=B(1);a(2),d("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0),a(1),I("label",g(5,4,"common.save")),d("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let Gge=(()=>{class t{constructor(e,n,i){this.captureCardService=e,this.setupService=n,this.translate=i,this.messages={devNotExist:"settings.capture.dvb.devNotExist",unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSelected:"settings.capture.dvb.noDevSelected"},this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.isReady=!1,this.warningMessage="",this.errorCount=0,this.successCount=0,this.saveObserver={next:o=>{this.card.CardId&&o.bool?this.successCount++:!this.card.CardId&&o.int?(this.successCount++,this.card.CardId=o.int):(this.errorCount++,this.currentForm.form.markAsDirty())},error:o=>{console.error(o),this.errorCount++,this.currentForm.form.markAsDirty()}},i.get(this.messages.devNotExist).subscribe(o=>this.messages.devNotExist=o),i.get(this.messages.unknownName).subscribe(o=>this.messages.unknownName=o),i.get(this.messages.devInUse).subscribe(o=>this.messages.devInUse=o),i.get(this.messages.noDevSelected).subscribe(o=>this.messages.noDevSelected=o)}ngOnInit(){this.captureCardService.GetCaptureDeviceList("V4L2ENC").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.log("GetCaptureDeviceList",e),this.errorCount++}})}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDevice(){if(this.card.VideoDevice||this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift({VideoDevice:"",FrontendName:this.messages.noDevSelected,InputNames:[""]}),this.card.VideoDevice){let e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:this.messages.devNotExist,InputNames:[""]},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.currentDevice&&this.card.InputName&&(this.currentDevice.InputNames.includes(this.card.InputName)||this.currentDevice.InputNames.push(this.card.InputName)),this.isReady=!0}updateDevice(){this.card.VideoDevice=this.currentDevice.VideoDevice,this.card.InputName=this.currentDevice.DefaultInputName,this.card.SignalTimeout=this.currentDevice.SignalTimeout,this.card.ChannelTimeout=this.currentDevice.ChannelTimeout,this.checkInUse()}checkInUse(){this.warningMessage=this.cardList.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardId!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.successCount=0,this.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver)}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}static#e=this.\u0275fac=function(n){return new(n||t)(M(Kt),M(Re),M(Le))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-v4l2"]],viewQuery:function(n,i){if(1&n&&(K(kge,5),K(Ege,5)),2&n){let o;H(o=G())&&(i.currentForm=o.first),H(o=G())&&(i.topElement=o.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","v4l2form",1,"ml-3","mr-3"],["v4l2form","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["appendTo","body","optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],["for","FrontendName",1,"label","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true","class","mb-2 form-control w-full",3,"ngModel","ngModelChange",4,"ngIf"],["appendTo","body","optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"p-error","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["FrontendName","ngModel"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(n,i){1&n&&(l(0,"form",0,1),D(2,"span",null,2),l(4,"p-card",3),m(5,Lge,2,3,"ng-template",4),m(6,Rge,0,0,"ng-template",5),m(7,Nge,19,15,"ng-template",6),m(8,Hge,6,6,"ng-template",7),c()())},dependencies:[ne,We,Xe,xe,$e,In,Ce,He,ae,Te,Ge,Gt,qe,pe]})}return t})();const qge=["hdpvrform"],zge=["top"];function Uge(t,s){1&t&&(_(0),f(1,"translate")),2&t&&x(" ",g(1,1,"settings.capture.hdpvr.title")," ")}function jge(t,s){}const hD=function(){return{minWidth:"80%"}};function $ge(t,s){if(1&t){const e=E();l(0,"p-dropdown",21,22),v("ngModelChange",function(i){return C(e),y(p(2).currentDevice=i)})("onChange",function(){return C(e),y(p(2).updateDevice())}),c()}if(2&t){const e=p(2);j(V(6,hD)),d("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function Wge(t,s){if(1&t&&(l(0,"div")(1,"small",23),_(2),c()()),2&t){const e=p(2);a(2),x(" ",e.warningMessage," ")}}function Kge(t,s){if(1&t){const e=E();l(0,"input",24,25),v("ngModelChange",function(i){return C(e),y(p(2).currentDevice.FrontendName=i)}),c()}2&t&&d("ngModel",p(2).currentDevice.FrontendName)}function Qge(t,s){if(1&t){const e=E();l(0,"p-dropdown",26,27),v("ngModelChange",function(i){return C(e),y(p(2).card.AudioDevice=i)}),c()}if(2&t){const e=p(2);j(V(6,hD)),d("options",e.currentDevice.AudioDevices)("ngModel",e.card.AudioDevice)("editable",!1)("maxlength",0)}}function Jge(t,s){if(1&t){const e=E();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),_(4),f(5,"translate"),c(),m(6,$ge,2,7,"p-dropdown",12),m(7,Wge,3,1,"div",13),l(8,"small",14),_(9),f(10,"translate"),c()(),l(11,"div",10)(12,"label",15),_(13),f(14,"translate"),c(),m(15,Kge,2,1,"input",16),l(16,"small",14),_(17),f(18,"translate"),c()(),l(19,"div",10)(20,"label",17),_(21),f(22,"translate"),c(),m(23,Qge,2,7,"p-dropdown",18),l(24,"small",14),_(25),f(26,"translate"),c()(),l(27,"div",10)(28,"label",19),_(29),f(30,"translate"),c(),l(31,"p-inputNumber",20),v("ngModelChange",function(i){return C(e),y(p().card.ChannelTimeout=i)}),c(),l(32,"small",14),_(33),f(34,"translate"),c()()()()}if(2&t){const e=p();a(4),S(g(5,17,"settings.capture.v4l2.device_label")),a(2),d("ngIf",e.isReady),a(1),d("ngIf",e.warningMessage),a(2),x(" ",g(10,19,"settings.capture.device_desc")," "),a(4),S(g(14,21,"settings.capture.v4l2.frontend_label")),a(2),d("ngIf",e.isReady),a(2),x(" ",g(18,23,"settings.capture.frontend_desc")," "),a(4),S(g(22,25,"settings.capture.hdpvr.audiodevice_label")),a(2),d("ngIf",e.isReady),a(2),x(" ",g(26,27,"settings.capture.hdpvr.audiodevice_desc")," "),a(4),S(g(30,29,"settings.capture.tunetimeout_label")),a(2),d("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",2e3)("max",65e3)("step",250),a(2),x(" ",g(34,31,"settings.capture.tunetimeout_desc")," ")}}function Zge(t,s){1&t&&(D(0,"p-message",33),f(1,"translate")),2&t&&I("text",g(1,1,"common.savesuccess"))}function Yge(t,s){1&t&&(D(0,"p-message",34),f(1,"translate")),2&t&&I("text",g(1,1,"common.networkfail"))}function Xge(t,s){if(1&t){const e=E();l(0,"div",28)(1,"div",29),m(2,Zge,2,3,"p-message",30),m(3,Yge,2,3,"p-message",31),c(),l(4,"p-button",32),v("onClick",function(){C(e);const i=p(),o=B(1);return i.saveForm(),y(o.form.markAsPristine())}),f(5,"translate"),c()()}if(2&t){const e=p(),n=B(1);a(2),d("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0),a(1),I("label",g(5,4,"common.save")),d("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let e_e=(()=>{class t{constructor(e,n,i){this.captureCardService=e,this.setupService=n,this.translate=i,this.messages={devNotExist:"settings.capture.dvb.devNotExist",unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSelected:"settings.capture.dvb.noDevSelected"},this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.isReady=!1,this.warningMessage="",this.errorCount=0,this.successCount=0,this.saveObserver={next:o=>{this.card.CardId&&o.bool?this.successCount++:!this.card.CardId&&o.int?(this.successCount++,this.card.CardId=o.int):(this.errorCount++,this.currentForm.form.markAsDirty())},error:o=>{console.error(o),this.errorCount++,this.currentForm.form.markAsDirty()}},i.get(this.messages.devNotExist).subscribe(o=>this.messages.devNotExist=o),i.get(this.messages.unknownName).subscribe(o=>this.messages.unknownName=o),i.get(this.messages.devInUse).subscribe(o=>this.messages.devInUse=o),i.get(this.messages.noDevSelected).subscribe(o=>this.messages.noDevSelected=o)}ngOnInit(){this.captureCardService.GetCaptureDeviceList("HDPVR").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.log("GetCaptureDeviceList",e),this.errorCount++}})}setupDevice(){if(this.card.VideoDevice||this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift({VideoDevice:"",FrontendName:this.messages.noDevSelected,InputNames:[""]}),this.card.VideoDevice){let e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:this.messages.devNotExist,InputNames:[""]},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.currentDevice&&this.card.InputName&&(this.currentDevice.InputNames.includes(this.card.InputName)||this.currentDevice.InputNames.push(this.card.InputName)),this.isReady=!0}updateDevice(){this.card.VideoDevice=this.currentDevice.VideoDevice,this.card.InputName=this.currentDevice.DefaultInputName,this.card.AudioDevice="",this.card.ChannelTimeout=this.currentDevice.ChannelTimeout,this.checkInUse()}checkInUse(){this.warningMessage=this.cardList.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardId!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.successCount=0,this.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"audiodevice",String(this.card.AudioDevice)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}static#e=this.\u0275fac=function(n){return new(n||t)(M(Kt),M(Re),M(Le))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-hdpvr"]],viewQuery:function(n,i){if(1&n&&(K(qge,5),K(zge,5)),2&n){let o;H(o=G())&&(i.currentForm=o.first),H(o=G())&&(i.topElement=o.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","hdpvrform",1,"ml-3","mr-3"],["dvbform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],["for","FrontendName",1,"label","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true","class","mb-2 form-control w-full",3,"ngModel","ngModelChange",4,"ngIf"],["for","AudioDevice",1,"label","block"],["name","AudioDevice",3,"options","ngModel","editable","maxlength","style","ngModelChange",4,"ngIf"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"p-error","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["FrontendName","ngModel"],["name","AudioDevice",3,"options","ngModel","editable","maxlength","ngModelChange"],["AudioDevice","ngModel"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(n,i){1&n&&(l(0,"form",0,1),D(2,"span",null,2),l(4,"p-card",3),m(5,Uge,2,3,"ng-template",4),m(6,jge,0,0,"ng-template",5),m(7,Jge,35,33,"ng-template",6),m(8,Xge,6,6,"ng-template",7),c()())},dependencies:[ne,We,Xe,xe,$e,In,Ce,He,ae,Te,Ge,Gt,vt,qe,pe]})}return t})();const t_e=["satipform"],n_e=["top"];function i_e(t,s){1&t&&(_(0),f(1,"translate")),2&t&&x(" ",g(1,1,"settings.capture.satip.title")," ")}function s_e(t,s){}const o_e=function(){return{minWidth:"83%"}};function r_e(t,s){if(1&t){const e=E();l(0,"p-dropdown",25,26),v("ngModelChange",function(i){return C(e),y(p(2).currentDevice=i)})("onChange",function(){return C(e),y(p(2).updateDevice())}),c()}if(2&t){const e=p(2);j(V(6,o_e)),d("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function a_e(t,s){if(1&t&&(l(0,"div")(1,"small",27),_(2),c()()),2&t){const e=p(2);a(2),x(" ",e.warningMessage," ")}}function l_e(t,s){if(1&t){const e=E();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),_(4),f(5,"translate"),c(),m(6,r_e,2,7,"p-dropdown",12),m(7,a_e,3,1,"div",13),l(8,"small",14),_(9),f(10,"translate"),c()(),l(11,"div",10)(12,"label",15),_(13),f(14,"translate"),c(),l(15,"div",16),_(16),c(),l(17,"small",14),_(18),f(19,"translate"),c()(),l(20,"div",10)(21,"label",15),_(22),f(23,"translate"),c(),l(24,"div",16),_(25),c(),l(26,"small",14),_(27),f(28,"translate"),c()(),l(29,"div",10)(30,"label",15),_(31),f(32,"translate"),c(),l(33,"div",16),_(34),c(),l(35,"small",14),_(36),f(37,"translate"),c()(),l(38,"div",10)(39,"label",15),_(40),f(41,"translate"),c(),l(42,"div",16),_(43),c(),l(44,"small",14),_(45),f(46,"translate"),c()(),l(47,"div",10)(48,"label",17),_(49),f(50,"translate"),c(),l(51,"p-inputNumber",18),v("ngModelChange",function(i){return C(e),y(p().card.SignalTimeout=i)}),c(),l(52,"small",14),_(53),f(54,"translate"),c()(),l(55,"div",10)(56,"label",19),_(57),f(58,"translate"),c(),l(59,"p-inputNumber",20),v("ngModelChange",function(i){return C(e),y(p().card.ChannelTimeout=i)}),c(),l(60,"small",14),_(61),f(62,"translate"),c()(),l(63,"div",10)(64,"p-checkbox",21,22),v("ngModelChange",function(i){return C(e),y(p().card.DVBEITScan=i)}),f(66,"translate"),c(),l(67,"small",14),_(68),f(69,"translate"),c()(),l(70,"div",10)(71,"label",23),_(72),f(73,"translate"),c(),l(74,"p-inputNumber",24),v("ngModelChange",function(i){return C(e),y(p().card.DVBDiSEqCType=i)}),c(),l(75,"small",14),_(76),f(77,"translate"),c()()()()}if(2&t){const e=p();a(4),S(g(5,41,"settings.capture.satip.device_label")),a(2),d("ngIf",e.isReady),a(1),d("ngIf",e.warningMessage),a(2),x(" ",g(10,43,"settings.capture.satip.device_desc")," "),a(4),S(g(14,45,"settings.capture.satip.friendly_label")),a(3),x(" ",e.currentDevice.Description," \xa0 "),a(2),x(" ",g(19,47,"settings.capture.satip.friendly_desc")," "),a(4),S(g(23,49,"settings.capture.satip.tunertype_label")),a(3),x(" ",e.currentDevice.TunerType," \xa0 "),a(2),x(" ",g(28,51,"settings.capture.tunertype_desc")," "),a(4),S(g(32,53,"settings.capture.satip.tunerindex_label")),a(3),x(" ",e.currentDevice.TunerNumber," \xa0 "),a(2),x(" ",g(37,55,"settings.capture.tunerindex_desc")," "),a(4),S(g(41,57,"settings.capture.satip.deviceid_label")),a(3),x(" ",e.card.VideoDevice," \xa0 "),a(2),x(" ",g(46,59,"settings.capture.deviceid_desc")," "),a(4),S(g(50,61,"settings.capture.sigtimeout_label")),a(2),d("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("step",250),a(2),x(" ",g(54,63,"settings.capture.sigtimeout_desc")," "),a(4),S(g(58,65,"settings.capture.tunetimeout_label")),a(2),d("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",2e3)("max",65e3)("step",250),a(2),x(" ",g(62,67,"settings.capture.tunetimeout_desc")," "),a(3),I("label",g(66,69,"settings.capture.dvb.eitscan_label")),d("ngModel",e.card.DVBEITScan)("binary",!0),a(4),x(" ",g(69,71,"settings.capture.dvb.eitscan_desc")," "),a(4),S(g(73,73,"settings.capture.satip.diseqcpos_label")),a(2),d("ngModel",e.card.DVBDiSEqCType)("showButtons",!0)("min",1)("max",255)("step",1),a(2),x(" ",g(77,75,"settings.capture.satip.diseqcpos_desc")," ")}}function c_e(t,s){1&t&&(D(0,"p-message",33),f(1,"translate")),2&t&&I("text",g(1,1,"common.savesuccess"))}function u_e(t,s){1&t&&(D(0,"p-message",34),f(1,"translate")),2&t&&I("text",g(1,1,"common.networkfail"))}function d_e(t,s){if(1&t){const e=E();l(0,"div",28)(1,"div",29),m(2,c_e,2,3,"p-message",30),m(3,u_e,2,3,"p-message",31),c(),l(4,"p-button",32),v("onClick",function(){C(e);const i=p(),o=B(1);return i.saveForm(),y(o.form.markAsPristine())}),f(5,"translate"),c()()}if(2&t){const e=p(),n=B(1);a(2),d("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0),a(1),I("label",g(5,4,"common.save")),d("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let p_e=(()=>{class t{constructor(e,n,i){this.captureCardService=e,this.setupService=n,this.translate=i,this.messages={devNotExist:"settings.capture.dvb.devNotExist",unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSelected:"settings.capture.dvb.noDevSelected"},this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.isReady=!1,this.warningMessage="",this.errorCount=0,this.successCount=0,this.saveObserver={next:o=>{this.card.CardId&&o.bool?this.successCount++:!this.card.CardId&&o.int?(this.successCount++,this.card.CardId=o.int,this.cardList.CaptureCardList.CaptureCards.push(this.card)):(this.errorCount++,this.currentForm.form.markAsDirty())},error:o=>{console.error(o),this.errorCount++,this.currentForm.form.markAsDirty()}},i.get(this.messages.devNotExist).subscribe(o=>this.messages.devNotExist=o),i.get(this.messages.unknownName).subscribe(o=>this.messages.unknownName=o),i.get(this.messages.devInUse).subscribe(o=>this.messages.devInUse=o),i.get(this.messages.noDevSelected).subscribe(o=>this.messages.noDevSelected=o)}ngOnInit(){this.captureCardService.GetCaptureDeviceList("SATIP").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.log("GetCaptureDeviceList",e),this.errorCount++}})}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDevice(){if(this.card.VideoDevice||this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift({VideoDevice:"",VideoDevicePrompt:this.messages.noDevSelected}),this.card.VideoDevice){let e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,Description:this.messages.devNotExist},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.isReady=!0}updateDevice(){this.card.VideoDevice=this.currentDevice.VideoDevice,this.card.ChannelTimeout=this.currentDevice.ChannelTimeout,this.card.SignalTimeout=this.currentDevice.SignalTimeout,this.checkInUse()}checkInUse(){this.warningMessage=this.cardList.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardId!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.successCount=0,this.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_eitscan",this.card.DVBEITScan?"1":"0").subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_diseqc_type",String(this.card.DVBDiSEqCType)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}static#e=this.\u0275fac=function(n){return new(n||t)(M(Kt),M(Re),M(Le))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-satip"]],viewQuery:function(n,i){if(1&n&&(K(t_e,5),K(n_e,5)),2&n){let o;H(o=G())&&(i.currentForm=o.first),H(o=G())&&(i.topElement=o.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","satipform",1,"ml-3","mr-3"],["satipform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["optionLabel","VideoDevicePrompt","name","VideoDevice",3,"options","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],[1,"label","block"],[1,"col-10","bg-blue-100","text-gray-900"],["for","SignalTimeout",1,"label","block"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","DVBEITScan","name","DVBEITScan",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DVBEITScan","ngModel"],["for","DVBDiSEqCType",1,"label","block"],["name","DVBDiSEqCType","id","DVBDiSEqCType",3,"ngModel","showButtons","min","max","step","ngModelChange"],["optionLabel","VideoDevicePrompt","name","VideoDevice",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"p-error","block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(n,i){1&n&&(l(0,"form",0,1),D(2,"span",null,2),l(4,"p-card",3),m(5,i_e,2,3,"ng-template",4),m(6,s_e,0,0,"ng-template",5),m(7,l_e,78,77,"ng-template",6),m(8,d_e,6,6,"ng-template",7),c()())},dependencies:[ne,We,xe,$e,In,Ce,He,ae,Te,Ge,ln,Gt,vt,qe,pe]})}return t})();const h_e=["vboxform"],m_e=["top"];function f_e(t,s){1&t&&(_(0),f(1,"translate")),2&t&&x(" ",g(1,1,"settings.capture.vbox.title")," ")}function g_e(t,s){}const __e=function(){return{minWidth:"83%"}};function b_e(t,s){if(1&t){const e=E();l(0,"p-dropdown",26,27),v("ngModelChange",function(i){return C(e),y(p(2).currentDevice=i)})("onChange",function(){return C(e),y(p(2).updateDevice())}),c()}if(2&t){const e=p(2);j(V(6,__e)),d("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function v_e(t,s){if(1&t&&(l(0,"div")(1,"small",28),_(2),c()()),2&t){const e=p(2);a(2),x(" ",e.warningMessage," ")}}function C_e(t,s){if(1&t){const e=E();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),_(4),f(5,"translate"),c(),m(6,b_e,2,7,"p-dropdown",12),m(7,v_e,3,1,"div",13),l(8,"small",14),_(9),f(10,"translate"),c()(),l(11,"div",10)(12,"label",15),_(13),f(14,"translate"),c(),l(15,"div",16),_(16),c(),l(17,"small",14),_(18),f(19,"translate"),c()(),l(20,"div",10)(21,"label",15),_(22),f(23,"translate"),c(),l(24,"div",16),_(25),c(),D(26,"small",14),c(),l(27,"div",10)(28,"label",17),_(29),f(30,"translate"),c(),l(31,"input",18,19),v("ngModelChange",function(i){return C(e),y(p().currentDevice.IPAddress=i)}),c(),l(33,"small",14),_(34),f(35,"translate"),c()(),l(36,"div",10)(37,"label",20),_(38),f(39,"translate"),c(),l(40,"input",21,19),v("ngModelChange",function(i){return C(e),y(p().currentDevice.TunerNumber=i)}),c(),l(42,"small",14),_(43),f(44,"translate"),c()(),l(45,"div",10)(46,"label",22),_(47),f(48,"translate"),c(),l(49,"p-inputNumber",23),v("ngModelChange",function(i){return C(e),y(p().card.SignalTimeout=i)}),c(),l(50,"small",14),_(51),f(52,"translate"),c()(),l(53,"div",10)(54,"label",24),_(55),f(56,"translate"),c(),l(57,"p-inputNumber",25),v("ngModelChange",function(i){return C(e),y(p().card.ChannelTimeout=i)}),c(),l(58,"small",14),_(59),f(60,"translate"),c()()()()}if(2&t){const e=p();a(4),S(g(5,31,"settings.capture.satip.device_label")),a(2),d("ngIf",e.isReady),a(1),d("ngIf",e.warningMessage),a(2),x(" ",g(10,33,"settings.capture.vbox.device_desc")," "),a(4),S(g(14,35,"settings.capture.vbox.deviceid_label")),a(3),x(" ",e.card.VideoDevice," \xa0 "),a(2),x(" ",g(19,37,"settings.capture.vbox.deviceid_desc")," "),a(4),S(g(23,39,"settings.capture.vbox.description_label")),a(3),x(" ",e.currentDevice.Description," \xa0 "),a(4),S(g(30,41,"settings.capture.ceton.ipaddress_label")),a(2),d("ngModel",e.currentDevice.IPAddress)("disabled",e.currentDevice!==e.manualDevice),a(3),x(" ",g(35,43,"settings.capture.vbox.ipaddress_desc")," "),a(4),S(g(39,45,"settings.capture.ceton.tuner_label")),a(2),d("ngModel",e.currentDevice.TunerNumber)("disabled",e.currentDevice!==e.manualDevice),a(3),x(" ",g(44,47,"settings.capture.vbox.tuner_desc")," "),a(4),S(g(48,49,"settings.capture.sigtimeout_label")),a(2),d("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("step",250),a(2),x(" ",g(52,51,"settings.capture.sigtimeout_desc")," "),a(4),S(g(56,53,"settings.capture.tunetimeout_label")),a(2),d("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",2e3)("max",65e3)("step",250),a(2),x(" ",g(60,55,"settings.capture.tunetimeout_desc")," ")}}function y_e(t,s){1&t&&(D(0,"p-message",34),f(1,"translate")),2&t&&I("text",g(1,1,"common.savesuccess"))}function T_e(t,s){1&t&&(D(0,"p-message",35),f(1,"translate")),2&t&&I("text",g(1,1,"common.networkfail"))}function w_e(t,s){if(1&t){const e=E();l(0,"div",29)(1,"div",30),m(2,y_e,2,3,"p-message",31),m(3,T_e,2,3,"p-message",32),c(),l(4,"p-button",33),v("onClick",function(){C(e);const i=p(),o=B(1);return i.saveForm(),y(o.form.markAsPristine())}),f(5,"translate"),c()()}if(2&t){const e=p(),n=B(1);a(2),d("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0),a(1),I("label",g(5,4,"common.save")),d("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let I_e=(()=>{class t{constructor(e,n,i){this.captureCardService=e,this.setupService=n,this.translate=i,this.messages={devNotExist:"settings.capture.dvb.devNotExist",unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSelected:"settings.capture.dvb.noDevSelected",manuallyEnter:"settings.capture.vbox.manuallyenter"},this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.isReady=!1,this.warningMessage="",this.errorCount=0,this.successCount=0,this.saveObserver={next:o=>{this.card.CardId&&o.bool?this.successCount++:!this.card.CardId&&o.int?(this.successCount++,this.card.CardId=o.int,this.cardList.CaptureCardList.CaptureCards.push(this.card)):(this.errorCount++,this.currentForm.form.markAsDirty())},error:o=>{console.error(o),this.errorCount++,this.currentForm.form.markAsDirty()}},i.get(this.messages.devNotExist).subscribe(o=>this.messages.devNotExist=o),i.get(this.messages.unknownName).subscribe(o=>this.messages.unknownName=o),i.get(this.messages.devInUse).subscribe(o=>this.messages.devInUse=o),i.get(this.messages.noDevSelected).subscribe(o=>this.messages.noDevSelected=o),i.get(this.messages.manuallyEnter).subscribe(o=>this.messages.manuallyEnter=o)}ngOnInit(){this.captureCardService.GetCaptureDeviceList("VBOX").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.log("GetCaptureDeviceList",e),this.errorCount++}})}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDevice(){if(this.manualDevice={VideoDevicePrompt:this.messages.manuallyEnter,VideoDevice:"",Description:"",IPAddress:"",TunerNumber:0,SignalTimeout:7e3,ChannelTimeout:1e4},this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift(this.manualDevice),this.card.VideoDevice||this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift({VideoDevice:"",FrontendName:this.messages.noDevSelected}),this.card.VideoDevice){let e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:this.messages.devNotExist},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.isReady=!0}updateDevice(){this.currentDevice===this.manualDevice?this.subscription=this.currentForm.valueChanges.pipe(nD(50)).subscribe(()=>this.card.VideoDevice=this.manualDevice.IPAddress+"-"+this.manualDevice.TunerNumber):this.subscription&&(this.subscription.unsubscribe(),this.subscription=void 0),this.card.VideoDevice=this.currentDevice.VideoDevice,this.card.ChannelTimeout=this.currentDevice.ChannelTimeout,this.card.SignalTimeout=this.currentDevice.SignalTimeout,this.checkInUse()}checkInUse(){this.warningMessage=this.cardList.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardId!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.successCount=0,this.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}static#e=this.\u0275fac=function(n){return new(n||t)(M(Kt),M(Re),M(Le))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-vbox"]],viewQuery:function(n,i){if(1&n&&(K(h_e,5),K(m_e,5)),2&n){let o;H(o=G())&&(i.currentForm=o.first),H(o=G())&&(i.topElement=o.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","vboxform",1,"ml-3","mr-3"],["vboxform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],["u","",1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevicePrompt",1,"label","block"],["optionLabel","VideoDevicePrompt","name","VideoDevicePrompt",3,"options","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],[1,"label","block"],[1,"col-10","bg-blue-100","text-gray-900"],["for","ip",1,"label","block"],["pInputText","","id","ip","name","ip",1,"mb-2","form-control","w-full",3,"ngModel","disabled","ngModelChange"],["ipAddress","ngModel"],["for","tuner",1,"label","block"],["pInputText","","id","tuner","name","tuner",1,"mb-2","form-control","w-full",3,"ngModel","disabled","ngModelChange"],["for","SignalTimeout",1,"label","block"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["optionLabel","VideoDevicePrompt","name","VideoDevicePrompt",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["VideoDevicePrompt","ngModel"],[1,"p-error","block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(n,i){1&n&&(l(0,"form",0,1),D(2,"span",null,2),l(4,"p-card",3),m(5,f_e,2,3,"ng-template",4),m(6,g_e,0,0,"ng-template",5),m(7,C_e,61,57,"ng-template",6),m(8,w_e,6,6,"ng-template",7),c()())},dependencies:[ne,We,Xe,xe,$e,In,Ce,He,ae,Te,Ge,Gt,vt,qe,pe]})}return t})();const S_e=["firewireform"],x_e=["top"];function D_e(t,s){1&t&&(_(0),f(1,"translate")),2&t&&x(" ",g(1,1,"settings.capture.firewire.title")," ")}function M_e(t,s){}const Kp=function(){return{minWidth:"83%"}};function k_e(t,s){if(1&t){const e=E();l(0,"p-dropdown",30,31),v("ngModelChange",function(i){return C(e),y(p(2).currentDevice=i)})("onChange",function(){return C(e),y(p(2).updateDevice())}),c()}if(2&t){const e=p(2);j(V(6,Kp)),d("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function E_e(t,s){if(1&t&&(l(0,"div")(1,"small",32),_(2),c()()),2&t){const e=p(2);a(2),x(" ",e.warningMessage," ")}}function L_e(t,s){if(1&t){const e=E();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),_(4),f(5,"translate"),c(),m(6,k_e,2,7,"p-dropdown",12),m(7,E_e,3,1,"div",13),D(8,"small",14),c(),l(9,"div",10)(10,"label",15),_(11),f(12,"translate"),c(),l(13,"div",16),_(14),c(),D(15,"small",14),c(),l(16,"div",10)(17,"label",17),_(18),f(19,"translate"),c(),l(20,"p-dropdown",18,19),v("ngModelChange",function(i){return C(e),y(p().card.FirewireModel=i)}),c(),l(22,"small",14),_(23),f(24,"translate"),c()(),l(25,"div",10)(26,"label",20),_(27),f(28,"translate"),c(),l(29,"p-dropdown",21,22),v("ngModelChange",function(i){return C(e),y(p().card.FirewireConnection=i)}),c(),D(31,"small",14),c(),l(32,"div",10)(33,"label",23),_(34),f(35,"translate"),c(),l(36,"p-dropdown",24,25),v("ngModelChange",function(i){return C(e),y(p().card.FirewireSpeed=i)}),c(),D(38,"small",14),c(),l(39,"div",10)(40,"label",26),_(41),f(42,"translate"),c(),l(43,"p-inputNumber",27),v("ngModelChange",function(i){return C(e),y(p().card.SignalTimeout=i)}),c(),l(44,"small",14),_(45),f(46,"translate"),c()(),l(47,"div",10)(48,"label",28),_(49),f(50,"translate"),c(),l(51,"p-inputNumber",29),v("ngModelChange",function(i){return C(e),y(p().card.ChannelTimeout=i)}),c(),l(52,"small",14),_(53),f(54,"translate"),c()()()()}if(2&t){const e=p();a(4),S(g(5,41,"settings.capture.firewire.device_label")),a(2),d("ngIf",e.isReady),a(1),d("ngIf",e.warningMessage),a(4),S(g(12,43,"settings.capture.vbox.description_label")),a(3),x(" ",e.currentDevice.Description," \xa0 "),a(4),S(g(19,45,"settings.capture.firewire.model_label")),a(2),j(V(61,Kp)),d("options",e.models)("ngModel",e.card.FirewireModel)("editable",!1)("maxlength",0),a(3),x(" ",g(24,47,"settings.capture.firewire.model_desc")," "),a(4),S(g(28,49,"settings.capture.firewire.connection_label")),a(2),j(V(62,Kp)),d("options",e.connectionTypes)("ngModel",e.card.FirewireConnection)("editable",!1)("maxlength",0),a(5),S(g(35,51,"settings.capture.firewire.speed_label")),a(2),j(V(63,Kp)),d("options",e.speeds)("ngModel",e.card.FirewireSpeed)("editable",!1)("maxlength",0),a(5),S(g(42,53,"settings.capture.sigtimeout_label")),a(2),d("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("step",250),a(2),x(" ",g(46,55,"settings.capture.sigtimeout_desc")," "),a(4),S(g(50,57,"settings.capture.tunetimeout_label")),a(2),d("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",2e3)("max",65e3)("step",250),a(2),x(" ",g(54,59,"settings.capture.tunetimeout_desc")," ")}}function R_e(t,s){1&t&&(D(0,"p-message",38),f(1,"translate")),2&t&&I("text",g(1,1,"common.savesuccess"))}function O_e(t,s){1&t&&(D(0,"p-message",39),f(1,"translate")),2&t&&I("text",g(1,1,"common.networkfail"))}function A_e(t,s){if(1&t){const e=E();l(0,"div",33)(1,"div",34),m(2,R_e,2,3,"p-message",35),m(3,O_e,2,3,"p-message",36),c(),l(4,"p-button",37),v("onClick",function(){C(e);const i=p(),o=B(1);return i.saveForm(),y(o.form.markAsPristine())}),f(5,"translate"),c()()}if(2&t){const e=p(),n=B(1);a(2),d("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0),a(1),I("label",g(5,4,"common.save")),d("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let P_e=(()=>{class t{constructor(e,n,i){this.captureCardService=e,this.setupService=n,this.translate=i,this.messages={devNotExist:"settings.capture.dvb.devNotExist",unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSelected:"settings.capture.dvb.noDevSelected",manuallyEnter:"settings.capture.vbox.manuallyenter"},this.models=[{name:"settings.capture.firewire.motogeneric",value:"MOTO GENERIC"},{name:"settings.capture.firewire.sageneric",value:"SA GENERIC"},{name:"DCH-3200",value:"DCH-3200"},{name:"DCX-3200",value:"DCX-3200"},{name:"DCT-3412",value:"DCT-3412"},{name:"DCT-3416",value:"DCT-3416"},{name:"DCT-6200",value:"DCT-6200"},{name:"DCT-6212",value:"DCT-6212"},{name:"DCT-6216",value:"DCT-6216"},{name:"QIP-6200",value:"QIP-6200"},{name:"QIP-7100",value:"QIP-7100"},{name:"PACE-550",value:"PACE-550"},{name:"PACE-779",value:"PACE-779"},{name:"SA3250HD",value:"SA3250HD"},{name:"SA4200HD",value:"SA4200HD"},{name:"SA4250HDC",value:"SA4250HDC"},{name:"SA8300HD",value:"SA8300HD"}],this.connectionTypes=[{name:"settings.capture.firewire.pointtopoint",value:0},{name:"settings.capture.firewire.broadcast",value:1}],this.speeds=[{name:"100Mbps",value:0},{name:"200Mbps",value:1},{name:"400Mbps",value:2},{name:"800Mbps",value:3}],this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.isReady=!1,this.warningMessage="",this.errorCount=0,this.successCount=0,this.saveObserver={next:o=>{this.card.CardId&&o.bool?this.successCount++:!this.card.CardId&&o.int?(this.successCount++,this.card.CardId=o.int,this.cardList.CaptureCardList.CaptureCards.push(this.card)):(this.errorCount++,this.currentForm.form.markAsDirty())},error:o=>{console.error(o),this.errorCount++,this.currentForm.form.markAsDirty()}},i.get(this.messages.devNotExist).subscribe(o=>this.messages.devNotExist=o),i.get(this.messages.unknownName).subscribe(o=>this.messages.unknownName=o),i.get(this.messages.devInUse).subscribe(o=>this.messages.devInUse=o),i.get(this.messages.noDevSelected).subscribe(o=>this.messages.noDevSelected=o),i.get(this.messages.manuallyEnter).subscribe(o=>this.messages.manuallyEnter=o),i.get(this.models[0].name).subscribe(o=>this.models[0].name=o),i.get(this.models[1].name).subscribe(o=>this.models[1].name=o),i.get(this.connectionTypes[0].name).subscribe(o=>this.connectionTypes[0].name=o),i.get(this.connectionTypes[1].name).subscribe(o=>this.connectionTypes[1].name=o)}ngOnInit(){this.captureCardService.GetCaptureDeviceList("FIREWIRE").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.log("GetCaptureDeviceList",e),this.errorCount++}})}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDevice(){if(this.card.VideoDevice||this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift({VideoDevice:"",FrontendName:this.messages.noDevSelected}),this.card.VideoDevice){let e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:this.messages.devNotExist},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.isReady=!0}updateDevice(){this.card.VideoDevice=this.currentDevice.VideoDevice,this.card.ChannelTimeout=this.currentDevice.ChannelTimeout,this.card.SignalTimeout=this.currentDevice.SignalTimeout,this.card.FirewireModel=this.currentDevice.FirewireModel,this.checkInUse()}checkInUse(){this.warningMessage=this.cardList.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardId!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.successCount=0,this.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"firewire_model",this.card.FirewireModel).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"firewire_connection",String(this.card.FirewireConnection)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"firewire_speed",String(this.card.FirewireSpeed)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}static#e=this.\u0275fac=function(n){return new(n||t)(M(Kt),M(Re),M(Le))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-firewire"]],viewQuery:function(n,i){if(1&n&&(K(S_e,5),K(x_e,5)),2&n){let o;H(o=G())&&(i.currentForm=o.first),H(o=G())&&(i.topElement=o.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","firewireform",1,"ml-3","mr-3"],["firewireform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],[1,"label","block"],[1,"col-10","bg-blue-100","text-gray-900"],["for","FirewireModel",1,"label","block"],["optionLabel","name","optionValue","value","name","FirewireModel",3,"options","ngModel","editable","maxlength","ngModelChange"],["FirewireModel","ngModel"],["for","FirewireConnection",1,"label","block"],["optionLabel","name","optionValue","value","name","FirewireConnection",3,"options","ngModel","editable","maxlength","ngModelChange"],["FirewireConnection","ngModel"],["for","FirewireSpeed",1,"label","block"],["optionLabel","name","optionValue","value","name","FirewireSpeed",3,"options","ngModel","editable","maxlength","ngModelChange"],["FirewireSpeed","ngModel"],["for","SignalTimeout",1,"label","block"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"p-error","block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(n,i){1&n&&(l(0,"form",0,1),D(2,"span",null,2),l(4,"p-card",3),m(5,D_e,2,3,"ng-template",4),m(6,M_e,0,0,"ng-template",5),m(7,L_e,55,64,"ng-template",6),m(8,A_e,6,6,"ng-template",7),c()())},dependencies:[ne,We,xe,$e,In,Ce,He,ae,Te,Ge,Gt,vt,qe,pe]})}return t})();const F_e=["scroll"],wt=function(){return{minWidth:"400px"}};function N_e(t,s){if(1&t){const e=E();l(0,"div",0)(1,"label",38),_(2),f(3,"translate"),c(),l(4,"p-dropdown",39,40),v("ngModelChange",function(i){return C(e),y(p(2).scanRequest.FreqTable=i)})("onChange",function(){return C(e),y(p(2).onFreqTableChange(!1))}),c(),l(6,"small",4),_(7),f(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(g(3,8,"settings.channelscan.freqtable_label")),a(2),j(V(12,wt)),d("options",e.freqTableSelect)("ngModel",e.scanRequest.FreqTable)("editable",!1)("maxlength",0),a(3),x(" ",g(8,10,"settings.channelscan.freqtable_desc")," ")}}function V_e(t,s){if(1&t){const e=E();l(0,"div",0)(1,"label",41),_(2),f(3,"translate"),c(),l(4,"p-dropdown",42,43),v("ngModelChange",function(i){return C(e),y(p(2).scanRequest.FreqTable=i)}),c(),l(6,"small",4),_(7),f(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(g(3,8,"settings.channelscan.country_label")),a(2),j(V(12,wt)),d("options",e.countryTable)("ngModel",e.scanRequest.FreqTable)("editable",!1)("maxlength",0),a(3),x(" ",g(8,10,"settings.channelscan.scantype_dvbt_desc")," ")}}function B_e(t,s){if(1&t){const e=E();l(0,"div",0)(1,"label",41),_(2),f(3,"translate"),c(),l(4,"p-dropdown",42,43),v("ngModelChange",function(i){return C(e),y(p(2).scanRequest.FreqTable=i)}),c(),D(6,"small",4),c()}if(2&t){const e=p(2);a(2),S(g(3,7,"settings.channelscan.country_label")),a(2),j(V(9,wt)),d("options",e.networkTable)("ngModel",e.scanRequest.FreqTable)("editable",!1)("maxlength",0)}}function H_e(t,s){if(1&t){const e=E();l(0,"div",0)(1,"label",44),_(2),f(3,"translate"),c(),l(4,"p-dropdown",45,46),v("ngModelChange",function(i){return C(e),y(p(2).scanRequest.Modulation=i)})("onChange",function(){return C(e),y(p(2).onFreqTableChange(!0))}),c(),l(6,"small",4),_(7),f(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(g(3,8,"settings.channelscan.modulation_label")),a(2),j(V(12,wt)),d("options",e.atscModulationTable)("ngModel",e.scanRequest.Modulation)("editable",!1)("maxlength",0),a(3),x(" ",g(8,10,"settings.channelscan.atscmodulation_desc")," ")}}function G_e(t,s){1&t&&(l(0,"div")(1,"small",51),_(2),f(3,"translate"),c()()),2&t&&(a(2),S(g(3,1,"settings.channelscan.invalid_range")))}function q_e(t,s){if(1&t){const e=E();l(0,"div",0)(1,"label",47),_(2),f(3,"translate"),c(),l(4,"p-dropdown",48,49),v("ngModelChange",function(i){return C(e),y(p(2).scanRequest.FirstChan=i)}),c(),l(6,"small",4),_(7),f(8,"translate"),c(),m(9,G_e,4,3,"div",50),c()}if(2&t){const e=p(2);a(2),S(g(3,9,"settings.channelscan.firstchan_label")),a(2),j(V(13,wt)),d("options",e.channels)("ngModel",e.scanRequest.FirstChan)("editable",!1)("maxlength",0),a(3),x(" ",g(8,11,"settings.channelscan.firstchan_desc")," "),a(2),d("ngIf",e.channelCount<1)}}function z_e(t,s){1&t&&(l(0,"div")(1,"small",51),_(2),f(3,"translate"),c()()),2&t&&(a(2),S(g(3,1,"settings.channelscan.invalid_range")))}function U_e(t,s){if(1&t){const e=E();l(0,"div",0)(1,"label",52),_(2),f(3,"translate"),c(),l(4,"p-dropdown",53,54),v("ngModelChange",function(i){return C(e),y(p(2).scanRequest.LastChan=i)}),c(),l(6,"small",4),_(7),f(8,"translate"),c(),m(9,z_e,4,3,"div",50),c()}if(2&t){const e=p(2);a(2),S(g(3,9,"settings.channelscan.lastchan_label")),a(2),j(V(13,wt)),d("options",e.channels)("ngModel",e.scanRequest.LastChan)("editable",!1)("maxlength",0),a(3),x(" ",g(8,11,"settings.channelscan.lastchan_desc")," "),a(2),d("ngIf",e.channelCount<1)}}function j_e(t,s){if(1&t&&(l(0,"div",0)(1,"label",30),_(2),f(3,"translate"),c(),l(4,"div",29),_(5),c(),l(6,"small",4),_(7),f(8,"translate"),c()()),2&t){const e=p(2);a(2),S(g(3,3,"settings.channelscan.chancount_label")),a(3),x(" ",e.calcCount()," \xa0 "),a(2),x(" ",g(8,5,"settings.channelscan.chancount_desc")," ")}}const yo=function(){return["DVBT","DVBT2"]};function $_e(t,s){if(1&t&&(l(0,"p-fieldset",37),f(1,"translate"),m(2,N_e,9,13,"div",33),m(3,V_e,9,13,"div",33),m(4,B_e,7,10,"div",33),m(5,H_e,9,13,"div",33),m(6,q_e,10,14,"div",33),m(7,U_e,10,14,"div",33),m(8,j_e,9,7,"div",33),c()),2&t){const e=p();I("legend",g(1,10,"settings.channelscan.type.full")),d("toggleable",!1)("collapsed",!1),a(2),d("ngIf","ATSC"==e.scanSubType),a(1),d("ngIf",V(12,yo).includes(e.scanSubType)),a(1),d("ngIf","DVBC"==e.scanSubType),a(1),d("ngIf","ATSC"==e.scanSubType),a(1),d("ngIf","ATSC"==e.scanSubType),a(1),d("ngIf","ATSC"==e.scanSubType),a(1),d("ngIf","ATSC"==e.scanSubType)}}function W_e(t,s){if(1&t){const e=E();l(0,"div",0)(1,"label",61),_(2),f(3,"translate"),c(),l(4,"p-dropdown",62,63),v("ngModelChange",function(i){return C(e),y(p(2).satTuning=i)})("onChange",function(){return C(e),y(p(2).onSatTuningChange())}),c(),l(6,"small",4),_(7),f(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(g(3,8,"settings.channelscan.sattuning_label")),a(2),j(V(12,wt)),d("options",e.satTuningTable)("ngModel",e.satTuning)("editable",!1)("maxlength",0),a(3),x(" ",g(8,10,"settings.channelscan.sattuning_desc")," ")}}function K_e(t,s){if(1&t){const e=E();l(0,"div",0)(1,"label",64),_(2),f(3,"translate"),c(),l(4,"p-dropdown",65,66),v("ngModelChange",function(i){return C(e),y(p(2).scanRequest.Bandwidth=i)}),c(),l(6,"small",4),_(7),f(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(g(3,8,"settings.channelscan.bandwidth_label")),a(2),j(V(12,wt)),d("options",e.bandwidthTable)("ngModel",e.scanRequest.Bandwidth)("editable",!1)("maxlength",0),a(3),x(" ",g(8,10,"settings.channelscan.bandwidth_desc")," ")}}function Q_e(t,s){if(1&t){const e=E();l(0,"div",0)(1,"label",67),_(2),f(3,"translate"),c(),l(4,"p-dropdown",68,69),v("ngModelChange",function(i){return C(e),y(p(2).scanRequest.Polarity=i)}),c(),l(6,"small",4),_(7),f(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(g(3,8,"settings.channelscan.polarity_label")),a(2),j(V(12,wt)),d("options",e.polarityTable)("ngModel",e.scanRequest.Polarity)("editable",!1)("maxlength",0),a(3),x(" ",g(8,10,"settings.channelscan.polarity_desc")," ")}}function J_e(t,s){if(1&t){const e=E();l(0,"div",0)(1,"label",70),_(2),f(3,"translate"),c(),l(4,"p-dropdown",71,72),v("ngModelChange",function(i){return C(e),y(p(2).scanRequest.SymbolRate=i)}),c(),l(6,"small",4),_(7),f(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(g(3,8,"settings.channelscan.symbolrate_label")),a(2),j(V(12,wt)),d("options",e.dvbcSymbolRateTable)("ngModel",e.scanRequest.SymbolRate)("editable",!0)("maxlength",8),a(3),x(" ",g(8,10,"settings.channelscan.dvbcsymbolrate_desc")," ")}}function Z_e(t,s){if(1&t){const e=E();l(0,"div",0)(1,"label",73),_(2),f(3,"translate"),c(),l(4,"p-dropdown",74,75),v("ngModelChange",function(i){return C(e),y(p(2).scanRequest.SymbolRate=i)}),c(),l(6,"small",4),_(7),f(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(g(3,8,"settings.channelscan.symbolrate_label")),a(2),j(V(12,wt)),d("options",e.dvbsSymbolRateTable)("ngModel",e.scanRequest.SymbolRate)("editable",!0)("maxlength",8),a(3),x(" ",g(8,10,"settings.channelscan.dvbssymbolrate_desc")," ")}}function Y_e(t,s){if(1&t){const e=E();l(0,"div",0)(1,"label",76),_(2),f(3,"translate"),c(),l(4,"p-dropdown",77,78),v("ngModelChange",function(i){return C(e),y(p(2).scanRequest.Constellation=i)}),c(),l(6,"small",4),_(7),f(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(g(3,8,"settings.channelscan.constellation_label")),a(2),j(V(12,wt)),d("options",e.modulationTable)("ngModel",e.scanRequest.Constellation)("editable",!1)("maxlength",0),a(3),x(" ",g(8,10,"settings.channelscan.constellation_desc")," ")}}function X_e(t,s){if(1&t){const e=E();l(0,"div",0)(1,"label",79),_(2),f(3,"translate"),c(),l(4,"p-dropdown",80,81),v("ngModelChange",function(i){return C(e),y(p(2).scanRequest.Modulation=i)}),c(),l(6,"small",4),_(7),f(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(g(3,8,"settings.channelscan.modulation_label")),a(2),j(V(12,wt)),d("options",e.modulationTable)("ngModel",e.scanRequest.Modulation)("editable",!1)("maxlength",0),a(3),x(" ",g(8,10,"settings.channelscan.Modulation_desc")," ")}}function e1e(t,s){if(1&t){const e=E();l(0,"div",0)(1,"label",82),_(2),f(3,"translate"),c(),l(4,"p-dropdown",83,84),v("ngModelChange",function(i){return C(e),y(p(2).scanRequest.Modulation=i)}),c(),l(6,"small",4),_(7),f(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(g(3,8,"settings.channelscan.modulation_label")),a(2),j(V(12,wt)),d("options",e.dvbsModulationTable)("ngModel",e.scanRequest.Modulation)("editable",!1)("maxlength",0),a(3),x(" ",g(8,10,"settings.channelscan.dvbsmodulation_desc")," ")}}function t1e(t,s){if(1&t){const e=E();l(0,"div",0)(1,"label",85),_(2),f(3,"translate"),c(),l(4,"p-dropdown",86,87),v("ngModelChange",function(i){return C(e),y(p(2).scanRequest.ModSys=i)}),c(),l(6,"small",4),_(7),f(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(g(3,8,"settings.channelscan.modsys_label")),a(2),j(V(12,wt)),d("options",e.dvbtModSysTable)("ngModel",e.scanRequest.ModSys)("editable",!1)("maxlength",0),a(3),x(" ",g(8,10,"settings.channelscan.dvbtmodsys_desc")," ")}}function n1e(t,s){if(1&t){const e=E();l(0,"div",0)(1,"label",88),_(2),f(3,"translate"),c(),l(4,"p-dropdown",89,90),v("ngModelChange",function(i){return C(e),y(p(2).scanRequest.ModSys=i)}),c(),l(6,"small",4),_(7),f(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(g(3,8,"settings.channelscan.modsys_label")),a(2),j(V(12,wt)),d("options",e.dvbcModSysTable)("ngModel",e.scanRequest.ModSys)("editable",!1)("maxlength",0),a(3),x(" ",g(8,10,"settings.channelscan.dvbcmodsys_desc")," ")}}function i1e(t,s){if(1&t){const e=E();l(0,"div",0)(1,"label",91),_(2),f(3,"translate"),c(),l(4,"p-dropdown",92,93),v("ngModelChange",function(i){return C(e),y(p(2).scanRequest.ModSys=i)}),c(),l(6,"small",4),_(7),f(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(g(3,8,"settings.channelscan.modsys_label")),a(2),j(V(12,wt)),d("options",e.dvbsModSysTable)("ngModel",e.scanRequest.ModSys)("editable",!1)("maxlength",0),a(3),x(" ",g(8,10,"settings.channelscan.dvbsmodsys_desc")," ")}}function s1e(t,s){if(1&t){const e=E();l(0,"div",0)(1,"label",94),_(2),f(3,"translate"),c(),l(4,"p-dropdown",95,96),v("ngModelChange",function(i){return C(e),y(p(2).scanRequest.CodeRateLP=i)}),c(),l(6,"small",4),_(7),f(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(g(3,8,"settings.channelscan.coderatelp_label")),a(2),j(V(12,wt)),d("options",e.fecTable)("ngModel",e.scanRequest.CodeRateLP)("editable",!1)("maxlength",0),a(3),x(" ",g(8,10,"settings.channelscan.coderatelp_desc")," ")}}function o1e(t,s){if(1&t){const e=E();l(0,"div",0)(1,"label",97),_(2),f(3,"translate"),c(),l(4,"p-dropdown",98,99),v("ngModelChange",function(i){return C(e),y(p(2).scanRequest.CodeRateHP=i)}),c(),l(6,"small",4),_(7),f(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(g(3,8,"settings.channelscan.coderatehp_label")),a(2),j(V(12,wt)),d("options",e.fecTable)("ngModel",e.scanRequest.CodeRateHP)("editable",!1)("maxlength",0),a(3),x(" ",g(8,10,"settings.channelscan.coderatehp_desc")," ")}}function r1e(t,s){if(1&t){const e=E();l(0,"div",0)(1,"label",100),_(2),f(3,"translate"),c(),l(4,"p-dropdown",101,102),v("ngModelChange",function(i){return C(e),y(p(2).scanRequest.FEC=i)}),c(),l(6,"small",4),_(7),f(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(g(3,8,"settings.channelscan.FEC_label")),a(2),j(V(12,wt)),d("options",e.fecTable)("ngModel",e.scanRequest.FEC)("editable",!1)("maxlength",0),a(3),x(" ",g(8,10,"settings.channelscan.FEC_desc")," ")}}function a1e(t,s){if(1&t){const e=E();l(0,"div",0)(1,"label",103),_(2),f(3,"translate"),c(),l(4,"p-dropdown",104,105),v("ngModelChange",function(i){return C(e),y(p(2).scanRequest.TransmissionMode=i)}),c(),l(6,"small",4),_(7),f(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(g(3,8,"settings.channelscan.transmissionmode_label")),a(2),j(V(12,wt)),d("options",e.transmissionModeTable)("ngModel",e.scanRequest.TransmissionMode)("editable",!1)("maxlength",0),a(3),x(" ",g(8,10,"settings.channelscan.transmissionmode_desc")," ")}}function l1e(t,s){if(1&t){const e=E();l(0,"div",0)(1,"label",106),_(2),f(3,"translate"),c(),l(4,"p-dropdown",107,108),v("ngModelChange",function(i){return C(e),y(p(2).scanRequest.GuardInterval=i)}),c(),l(6,"small",4),_(7),f(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(g(3,8,"settings.channelscan.guardinterval_label")),a(2),j(V(12,wt)),d("options",e.guardIntervalTable)("ngModel",e.scanRequest.GuardInterval)("editable",!1)("maxlength",0),a(3),x(" ",g(8,10,"settings.channelscan.guardinterval_desc")," ")}}function c1e(t,s){if(1&t){const e=E();l(0,"div",0)(1,"label",109),_(2),f(3,"translate"),c(),l(4,"p-dropdown",110,111),v("ngModelChange",function(i){return C(e),y(p(2).scanRequest.Hierarchy=i)}),c(),l(6,"small",4),_(7),f(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(g(3,8,"settings.channelscan.hierarchy_label")),a(2),j(V(12,wt)),d("options",e.hierarchyTable)("ngModel",e.scanRequest.Hierarchy)("editable",!1)("maxlength",0),a(3),x(" ",g(8,10,"settings.channelscan.hierarchy_desc")," ")}}function u1e(t,s){if(1&t){const e=E();l(0,"div",0)(1,"label",112),_(2),f(3,"translate"),c(),l(4,"p-dropdown",113,114),v("ngModelChange",function(i){return C(e),y(p(2).scanRequest.RollOff=i)}),c(),l(6,"small",4),_(7),f(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(g(3,8,"settings.channelscan.rolloff_label")),a(2),j(V(12,wt)),d("options",e.rollOffTable)("ngModel",e.scanRequest.RollOff)("editable",!1)("maxlength",0),a(3),x(" ",g(8,10,"settings.channelscan.rolloff_desc")," ")}}const h1=function(){return["DVBS","DVBS2"]},d1e=function(t){return{unit:t}},p1e=function(){return["DVBC","DVBS","DVBS2"]};function h1e(t,s){if(1&t){const e=E();l(0,"p-fieldset",37),f(1,"translate"),m(2,W_e,9,13,"div",33),l(3,"div",0)(4,"label",55),_(5),f(6,"translate"),c(),l(7,"p-inputNumber",56),v("ngModelChange",function(i){return C(e),y(p().scanRequest.Frequency=i)}),c(),l(8,"small",4),D(9,"div",57),c()(),m(10,K_e,9,13,"div",33),m(11,Q_e,9,13,"div",33),m(12,J_e,9,13,"div",33),m(13,Z_e,9,13,"div",33),l(14,"div",0)(15,"label",58),_(16),f(17,"translate"),c(),l(18,"p-dropdown",59,60),v("ngModelChange",function(i){return C(e),y(p().scanRequest.Inversion=i)}),c(),l(20,"small",4),_(21),f(22,"translate"),c()(),m(23,Y_e,9,13,"div",33),m(24,X_e,9,13,"div",33),m(25,e1e,9,13,"div",33),m(26,t1e,9,13,"div",33),m(27,n1e,9,13,"div",33),m(28,i1e,9,13,"div",33),m(29,s1e,9,13,"div",33),m(30,o1e,9,13,"div",33),m(31,r1e,9,13,"div",33),m(32,a1e,9,13,"div",33),m(33,l1e,9,13,"div",33),m(34,c1e,9,13,"div",33),m(35,u1e,9,13,"div",33),c()}if(2&t){const e=p();I("legend",g(1,35,"settings.channelscan.type.fulltuned")),d("toggleable",!1)("collapsed",!1),a(2),d("ngIf","DVBS2"==e.scanSubType),a(3),S(g(6,37,"settings.channelscan.frequency_label")),a(2),d("ngModel",e.scanRequest.Frequency)("min",0)("max",999999999),a(2),d("translate","settings.channelscan.frequency_desc")("translateParams",W(44,d1e,V(43,h1).includes(e.scanSubType)?"kHZ":"Hz")),a(1),d("ngIf",V(46,yo).includes(e.scanSubType)),a(1),d("ngIf",V(47,h1).includes(e.scanSubType)),a(1),d("ngIf","DVBC"==e.scanSubType),a(1),d("ngIf",V(48,h1).includes(e.scanSubType)),a(3),S(g(17,39,"settings.channelscan.inversion_label")),a(2),j(V(49,wt)),d("options",e.inversionTable)("ngModel",e.scanRequest.Inversion)("editable",!1)("maxlength",0),a(3),x(" ",g(22,41,"settings.channelscan.inversion_desc")," "),a(2),d("ngIf",V(50,yo).includes(e.scanSubType)),a(1),d("ngIf","DVBC"==e.scanSubType),a(1),d("ngIf","DVBS2"==e.scanSubType),a(1),d("ngIf","DVBT2"==e.scanSubType),a(1),d("ngIf","DVBC"==e.scanSubType),a(1),d("ngIf","DVBS2"==e.scanSubType),a(1),d("ngIf",V(51,yo).includes(e.scanSubType)),a(1),d("ngIf",V(52,yo).includes(e.scanSubType)),a(1),d("ngIf",V(53,p1e).includes(e.scanSubType)),a(1),d("ngIf",V(54,yo).includes(e.scanSubType)),a(1),d("ngIf",V(55,yo).includes(e.scanSubType)),a(1),d("ngIf",V(56,yo).includes(e.scanSubType)),a(1),d("ngIf","DVBS2"==e.scanSubType)}}function m1e(t,s){if(1&t){const e=E();l(0,"p-fieldset",37),f(1,"translate"),l(2,"div",0)(3,"label",115),_(4),f(5,"translate"),c(),l(6,"p-dropdown",116,117),v("ngModelChange",function(i){return C(e),y(p().scanRequest.ScanId=i)}),c(),D(8,"small",4),c()()}if(2&t){const e=p();I("legend",g(1,10,"settings.channelscan.type.import")),d("toggleable",!1)("collapsed",!1),a(4),S(g(5,12,"settings.channelscan.scanimport_label")),a(2),j(V(14,wt)),d("options",e.scans)("ngModel",e.scanRequest.ScanId)("editable",!1)("maxlength",0)}}function f1e(t,s){if(1&t){const e=E();l(0,"div",0)(1,"label",122),_(2),f(3,"translate"),c(),l(4,"p-dropdown",123,124),v("ngModelChange",function(i){return C(e),y(p(2).scanRequest.MplexId=i)}),c(),D(6,"small",4),c()}if(2&t){const e=p(2);a(2),S(g(3,7,"settings.channelscan.transport_label")),a(2),j(V(9,wt)),d("options",e.multiplex)("ngModel",e.scanRequest.MplexId)("editable",!1)("maxlength",0)}}function g1e(t,s){if(1&t){const e=E();l(0,"p-fieldset",37),f(1,"translate"),m(2,f1e,7,10,"div",33),l(3,"div",0)(4,"p-checkbox",118,119),v("ngModelChange",function(i){return C(e),y(p().scanRequest.IgnoreSignalTimeout=i)}),f(6,"translate"),c(),l(7,"small",4),_(8),f(9,"translate"),c()(),l(10,"div",0)(11,"p-checkbox",120,121),v("ngModelChange",function(i){return C(e),y(p().scanRequest.FollowNITSetting=i)}),f(13,"translate"),c(),l(14,"small",4),_(15),f(16,"translate"),c()()()}if(2&t){const e=p();I("legend",g(1,12,"settings.channelscan.type.transports")),d("toggleable",!1)("collapsed",!1),a(2),d("ngIf","ONETRANSPORT"==e.scanRequest.ScanType),a(2),I("label",g(6,14,"settings.channelscan.ignoresignaltimeout_label")),d("ngModel",e.scanRequest.IgnoreSignalTimeout)("binary",!0),a(4),x(" ",g(9,16,"settings.channelscan.ignoresignaltimeout_desc")," "),a(3),I("label",g(13,18,"settings.channelscan.follownitsetting_label")),d("ngModel",e.scanRequest.FollowNITSetting)("binary",!0),a(4),x(" ",g(16,20,"settings.channelscan.follownitsetting_desc")," ")}}function _1e(t,s){1&t&&(l(0,"small",4),_(1),f(2,"translate"),c()),2&t&&(a(1),x(" ",g(2,1,"settings.channelscan.scan_desc")," "))}function b1e(t,s){if(1&t&&(l(0,"div",0)(1,"div",125)(2,"b"),_(3),c(),_(4," \xa0 "),c(),D(5,"br"),c()),2&t){const e=p();a(3),S(e.scanStatus.DialogMsg)}}function v1e(t,s){if(1&t){const e=E();l(0,"div",0)(1,"input",126,127),v("ngModelChange",function(i){return C(e),y(p().dialogResponse.DialogString=i)}),c()()}if(2&t){const e=p();a(1),d("ngModel",e.dialogResponse.DialogString)}}function C1e(t,s){if(1&t){const e=E();l(0,"div",0)(1,"label",128),_(2),f(3,"translate"),c(),l(4,"p-dropdown",129,3),v("ngModelChange",function(i){return C(e),y(p().buttonText=i)}),c()()}if(2&t){const e=p();a(2),S(g(3,7,"settings.channelscan.scanimport_option")),a(2),j(V(9,wt)),d("options",e.scanStatus.DialogButtons)("ngModel",e.buttonText)("editable",!1)("maxlength",0)}}function y1e(t,s){if(1&t){const e=E();l(0,"div",0)(1,"p-button",130),v("onClick",function(){return C(e),y(p().respondDialog())}),f(2,"translate"),c()()}2&t&&(a(1),I("label",g(2,1,"common.submit")))}const m1=function(){return{height:"20px"}},T1e=function(){return{width:"100%",height:"400px"}};class te{constructor(s,e){this.label=s,this.value=e}}class or{constructor(s,e,n,i,o,r,u){this.label=s,this.Frequency=e,this.Polarity=n,this.SymbolRate=i,this.Modulation=o,this.ModSys=r,this.FEC=u}}let w1e=(()=>{class t{constructor(e,n,i,o){this.translate=e,this.channelService=n,this.captureCardService=i,this.setupService=o,this.serviceValues=[new te("settings.channelscan.tv","tv"),new te("settings.channelscan.tvradio","audio"),new te("settings.channelscan.all","all")],this.scanSubType="",this.scanTypes=[],this.freqTableSelect=[new te("settings.channelscan.freq.usa.broadcast","us"),new te("settings.channelscan.freq.usa.cablehi","uscablehigh"),new te("settings.channelscan.freq.usa.cablehrchi","ushrchigh"),new te("settings.channelscan.freq.usa.cableirchi","usirchigh"),new te("settings.channelscan.freq.usa.cable","uscable"),new te("settings.channelscan.freq.usa.cablehrc","ushrc"),new te("settings.channelscan.freq.usa.cableirc","usirc")],this.countryTable=[new te("settings.channelscan.country.au","au"),new te("settings.channelscan.country.cl","cl"),new te("settings.channelscan.country.cz","cz"),new te("settings.channelscan.country.dk","dk"),new te("settings.channelscan.country.fi","fi"),new te("settings.channelscan.country.fr","fr"),new te("settings.channelscan.country.de","de"),new te("settings.channelscan.country.gr","gr"),new te("settings.channelscan.country.il","il"),new te("settings.channelscan.country.it","it"),new te("settings.channelscan.country.nl","nl"),new te("settings.channelscan.country.nz","nz"),new te("settings.channelscan.country.es","es"),new te("settings.channelscan.country.se","se"),new te("settings.channelscan.country.gb","gb")],this.networkTable=[new te("settings.channelscan.country.de","de"),new te("settings.channelscan.country.nl","nl"),new te("settings.channelscan.country.gb","gb")],this.satTuningTable=[new or("(Select Satellite)",0,"h","27500000","qpsk","DVB-S2","auto"),new or("Thor 5/6/7 0.8W",10872e3,"h","25000000","8psk","DVB-S2","3/4"),new or("Eutelsat 7.0E",10721e3,"h","22000000","qpsk","DVB-S","3/4"),new or("Hotbird 13.0E",12015e3,"h","27500000","8psk","DVB-S2","3/4"),new or("Astra-1 19.2E",11229e3,"v","22000000","8psk","DVB-S2","2/3"),new or("Astra-3 23.5E",12031500,"h","27500000","qpsk","DVB-S2","auto"),new or("Astra-2 28.2E",10714e3,"h","22000000","qpsk","DVB-S","5/6")],this.atscModulationTable=[new te("settings.channelscan.modulation.atsc.vsb8","vsb8"),new te("settings.channelscan.modulation.atsc.qam256","qam256"),new te("settings.channelscan.modulation.atsc.qam128","qam128"),new te("settings.channelscan.modulation.atsc.qam64","qam64")],this.bandwidthTable=[new te("settings.channelscan.auto","a"),new te("6 MHz","6"),new te("7 MHz","7"),new te("8 MHz","8")],this.inversionTable=[new te("settings.channelscan.auto","a"),new te("settings.channelscan.on","1"),new te("settings.channelscan.off","0")],this.modulationTable=[new te("settings.channelscan.auto","auto"),new te("QPSK","qpsk"),new te("QAM-16","qam_16"),new te("QAM-32","qam_32"),new te("QAM-64","qam_64"),new te("QAM-128","qam_128"),new te("QAM-256","qam_256")],this.dvbsModulationTable=[new te("QPSK","qpsk"),new te("8PSK","8psk"),new te("QAM-16","qam_16"),new te("16PSK","16psk"),new te("32PSK","32psk")],this.dvbtModSysTable=[new te("DVB-T","DVB-T"),new te("DVB-T2","DVB-T2")],this.dvbcModSysTable=[new te("DVB-C/A","DVB-C/A"),new te("DVB-C/B","DVB-C/B"),new te("DVB-C/C","DVB-C/C")],this.dvbsModSysTable=[new te("DVB-S","DVB-S"),new te("DVB-S2","DVB-S2")],this.polarityTable=[new te("settings.channelscan.polarity.horizontal","h"),new te("settings.channelscan.polarity.vertical","v"),new te("settings.channelscan.polarity.right","r"),new te("settings.channelscan.polarity.left","l")],this.fecTable=[new te("settings.channelscan.auto","auto"),new te("settings.channelscan.none","none"),new te("1/2","1/2"),new te("2/3","2/3"),new te("3/4","3/4"),new te("4/5","4/5"),new te("5/6","5/6"),new te("6/2","6/2"),new te("7/8","7/8"),new te("8/9","8/9"),new te("3/5","3/5"),new te("9/10","9/10")],this.transmissionModeTable=[new te("settings.channelscan.auto","a"),new te("2K","2"),new te("8K","8")],this.guardIntervalTable=[new te("settings.channelscan.auto","auto"),new te("1/4","1/4"),new te("1/8","1/8"),new te("1/16","1/16"),new te("1/32","1/32")],this.hierarchyTable=[new te("settings.channelscan.auto","a"),new te("settings.channelscan.none","n"),new te("1","1"),new te("2","2"),new te("4","4")],this.dvbcSymbolRateTable=[new te("3450000","3450000"),new te("5000000","5000000"),new te("5900000","5900000"),new te("6875000","6875000"),new te("6900000","6900000"),new te("6950000","6950000")],this.dvbsSymbolRateTable=[new te("3333000","3333000"),new te("22000000","22000000"),new te("22500000","22500000"),new te("23000000","23000000"),new te("27500000","27500000"),new te("28000000","28000000"),new te("28500000","28500000"),new te("29500000","29500000"),new te("29700000","29700000"),new te("29900000","29900000")],this.rollOffTable=[new te("0.35","0.35"),new te("0.20","0.20"),new te("0.25","0.25"),new te("Auto","auto")],this.lockDesc="settings.channelscan.lock_value",this.nolockDesc="settings.channelscan.nolock_value",this.procDesc="processed",this.unprocDesc="unprocessed",this.satTuning=this.satTuningTable[0],this.scanRequest={CardId:0,DesiredServices:"tv",FreeToAirOnly:!0,ChannelNumbersOnly:!1,CompleteChannelsOnly:!0,FullChannelSearch:!0,RemoveDuplicates:!0,AddFullTS:!1,TestDecryptable:!1,ScanType:"",FreqTable:"",Modulation:"",FirstChan:"",LastChan:"",ScanId:0,IgnoreSignalTimeout:!1,FollowNITSetting:!1,MplexId:0,Frequency:0,Bandwidth:"",Polarity:"",SymbolRate:"",Inversion:"",Constellation:"",ModSys:"",CodeRateLP:"",CodeRateHP:"",FEC:"",TransmissionMode:"",GuardInterval:"",Hierarchy:"",RollOff:""},this.emptyScanStatus={CardId:0,Status:"",SignalLock:!1,Progress:0,SignalNoise:0,SignalStrength:0,StatusLog:"",StatusText:"",StatusTitle:"",DialogMsg:"",DialogInputReq:!1,DialogButtons:[]},this.dialogResponse={CardId:0,DialogString:"",DialogButton:0},this.buttonText="",this.scanStatus=Object.assign({},this.emptyScanStatus),this.channels=[],this.channelCount=1,this.refreshCount=0,this.helpText="",this.scans=[],this.multiplex=[],this.tableTranslate(this.serviceValues),this.tableTranslate(this.freqTableSelect),this.tableTranslate(this.countryTable),this.tableTranslate(this.networkTable),this.tableTranslate(this.atscModulationTable),this.tableTranslate(this.bandwidthTable),this.tableTranslate(this.inversionTable),this.tableTranslate(this.modulationTable),this.tableTranslate(this.fecTable),this.tableTranslate(this.transmissionModeTable),this.tableTranslate(this.guardIntervalTable),this.tableTranslate(this.hierarchyTable),this.tableTranslate(this.polarityTable),e.get(this.lockDesc).subscribe(r=>this.lockDesc=r),e.get(this.nolockDesc).subscribe(r=>this.nolockDesc=r)}tableTranslate(e){e.forEach(n=>{n.label.startsWith("settings.")&&this.translate.get(n.label).subscribe(i=>n.label=i)})}ngAfterViewInit(){this.refreshStatus(!1),this.getScanList(),this.getmultiplexList(),this.iconnection.scanComponent=this}ngOnInit(){this.iconnection.deviceFree.subscribe(e=>{this.captureCardService.GetCardSubType(this.card.CardId).subscribe(n=>{this.cardSubType=n.CardSubType,this.buildScanTypeList(),this.onFreqTableChange(!1),"DVBT2"==this.cardSubType.InputType&&(this.scanRequest.ModSys="DVB-T2"),"DVBS2"==this.cardSubType.InputType&&(this.scanRequest.ModSys="DVB-S2"),"DVBC"==this.cardSubType.InputType&&(this.scanRequest.SymbolRate="6900000"),["DVBS","DVBS2"].includes(this.cardSubType.InputType)&&(this.scanRequest.SymbolRate="27500000")})}),this.iconnection.captureDeviceList.CaptureDeviceList.CaptureDevices.length>0&&!this.cardSubType&&this.iconnection.deviceFree.next(!0)}buildScanTypeList(){let e=!1;switch(this.helpText="",this.scanSubType=this.cardSubType.InputType,this.cardSubType.InputType){case"V4L":case"MPEG":this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"});break;case"DVBT":case"DVBT2":this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.fulltuned",value:"FULLTUNED"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"}),this.helpText="settings.channelscan.scantype_dvbt_desc",e=!0;break;case"DVBC":this.scanTypes.push({label:"settings.channelscan.type.fulltuned",value:"FULLTUNED"}),this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"}),e=!0;break;case"DVBS":case"DVBS2":this.scanTypes.push({label:"settings.channelscan.type.fulltuned",value:"FULLTUNED"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"}),e=!0;break;case"ATSC":this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"}),e=!0;break;case"HDHOMERUN":this.cardSubType.HDHRdoesDVBC?(this.scanSubType="DVBC",this.scanTypes.push({label:"settings.channelscan.type.fulltuned",value:"FULLTUNED"}),this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"})):this.cardSubType.HDHRdoesDVB?(this.scanSubType="DVBT",this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.fulltuned",value:"FULLTUNED"}),this.helpText="settings.channelscan.scantype_dvbt_desc"):(this.scanSubType="ATSC",this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"})),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"}),this.scanTypes.push({label:"settings.channelscan.type.hdhrimport",value:"HDHRIMPORT"}),e=!0;break;case"VBOX":this.scanTypes.push({label:"settings.channelscan.type.vboximport",value:"VBOXIMPORT"});break;case"FREEBOX":this.scanTypes.push({label:"settings.channelscan.type.m3umpts",value:"MPTSIMPORT"}),this.scanTypes.push({label:"settings.channelscan.type.m3u",value:"M3UIMPORT"});break;case"ASI":this.scanTypes.push({label:"settings.channelscan.type.asi",value:"ASI"});break;case"EXTERNAL":this.scanTypes.push({label:"settings.channelscan.type.mpts",value:"MPTS"}),this.scanTypes.push({label:"settings.channelscan.type.externimport",value:"EXTIMPORT"});break;case"ERROR_PROBE":this.scanTypes.push({label:"settings.channelscan.type.errorprobe",value:"ERROR"});break;default:this.scanTypes.push({label:"settings.channelscan.type.erroropen",value:"ERROR"})}e&&(this.scanTypes.push({label:"settings.channelscan.type.alltransport",value:"ALLTRANSPORT"}),this.scanTypes.push({label:"settings.channelscan.type.onetransport",value:"ONETRANSPORT"})),this.scanTypes.forEach(n=>this.translate.get(n.label).subscribe(i=>n.label=i)),this.helpText&&this.translate.get(this.helpText).subscribe(n=>this.helpText=n)}onScanTypeChange(){this.scanRequest.Frequency="FULLTUNED"==this.scanRequest.ScanType?this.videoSourceLookup[this.card.SourceId].ScanFrequency:0,setTimeout(()=>this.onFreqTableChange(!1),100)}onFreqTableChange(e){this.channels=[];let n="";if(this.scanRequest.FreqTable.startsWith("us")){if(e||("us"==this.scanRequest.FreqTable?this.scanRequest.Modulation="vsb8":"vsb8"==this.scanRequest.Modulation&&(this.scanRequest.Modulation="qam256")),"vsb8"==this.scanRequest.Modulation?n="ATSC Channel ":"qam256"==this.scanRequest.Modulation?n="QAM-256 Channel ":"qam128"==this.scanRequest.Modulation?n="QAM-128 Channel ":"qam64"==this.scanRequest.Modulation&&(n="QAM-64 Channel "),"us"==this.scanRequest.FreqTable){if("vsb8"==this.scanRequest.Modulation)for(let i=2;i<=36;i++)this.channels.push(n+i)}else if(this.scanRequest.FreqTable.match(/us.*high/))for(let i=78;i<=158;i++)this.channels.push(n+i);else if(this.scanRequest.FreqTable.match(/^us/)){this.channels.push(n+"T-13"),this.channels.push(n+"T-14");for(let i=2;i<=158;i++)this.channels.push(n+i)}this.channels.length>0?setTimeout(()=>{this.scanRequest.FirstChan=this.channels[0],this.scanRequest.LastChan=this.channels[this.channels.length-1]},100):(this.scanRequest.FirstChan="",this.scanRequest.LastChan="")}}onSatTuningChange(){Object.assign(this.scanRequest,this.satTuning)}calcCount(){return this.channelCount=this.channels.findIndex(e=>e==this.scanRequest.LastChan)-this.channels.findIndex(e=>e==this.scanRequest.FirstChan)+1}getScanList(){this.channelService.GetScanList(this.card.SourceId).subscribe(e=>{this.scans=e.ScanList.Scans,this.scans.forEach(n=>{var i=new Date(n.ScanDate);n.label=i.toLocaleDateString()+" "+i.toLocaleTimeString()+" "+(n.Processed?this.procDesc:this.unprocDesc)})})}getmultiplexList(){this.channelService.GetVideoMultiplexList({SourceID:this.card.SourceId}).subscribe(e=>{this.multiplex=e.VideoMultiplexList.VideoMultiplexes})}startScan(){if(this.iconnection.currentForm&&this.iconnection.currentForm.form.dirty)return this.iconnection.work.startScan=!0,void this.iconnection.saveForm();this.scanRequest.CardId=this.card.CardId,this.channelService.StartScan(this.scanRequest).subscribe(e=>{setTimeout(()=>this.refreshStatus(!0),500)})}stopScan(){this.channelService.StopScan(this.card.CardId).subscribe()}respondDialog(){this.dialogResponse.CardId=this.card.CardId,this.dialogResponse.DialogButton=this.scanStatus.DialogButtons.indexOf(this.buttonText),this.channelService.SendScanDialogResponse(this.dialogResponse).subscribe(e=>this.iconnection.loadChannels())}refreshStatus(e){this.channelService.GetScanStatus().subscribe(n=>{this.scanStatus=n.ScanStatus,this.scrollpanel.scrollTop(1e5),"RUNNING"==this.scanStatus.Status?this.refreshCount=5:this.refreshCount--,this.refreshCount>0?setTimeout(()=>this.refreshStatus(!0),500):e&&this.iconnection.loadChannels()})}static#e=this.\u0275fac=function(n){return new(n||t)(M(Le),M(Co),M(Kt),M(Re))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-channelscan"]],viewQuery:function(n,i){if(1&n&&K(F_e,5),2&n){let o;H(o=G())&&(i.scrollpanel=o.first)}},inputs:{card:"card",cardList:"cardList",iconnection:"iconnection",videoSourceLookup:"videoSourceLookup"},decls:131,vars:137,consts:[[1,"form-group","field"],["for","DesiredServices",1,"label","block"],["optionLabel","label","optionValue","value","name","DesiredServices",3,"options","ngModel","editable","maxlength","ngModelChange"],["DesiredServices","ngModel"],[1,"block"],["inputId","FreeToAirOnly","name","FreeToAirOnly",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["FreeToAirOnly","ngModel"],["inputId","ChannelNumbersOnly","name","ChannelNumbersOnly",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["ChannelNumbersOnly","ngModel"],["inputId","CompleteChannelsOnly","name","CompleteChannelsOnly",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["CompleteChannelsOnly","ngModel"],["inputId","FullChannelSearch","name","FullChannelSearch",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["FullChannelSearch","ngModel"],["inputId","RemoveDuplicates","name","RemoveDuplicates",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["RemoveDuplicates","ngModel"],["inputId","AddFullTS","name","AddFullTS",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["AddFullTS","ngModel"],["inputId","TestDecryptable","name","TestDecryptable",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["TestDecryptable","ngModel"],["for","ScanType",1,"label","block"],["optionLabel","label","optionValue","value","name","ScanType",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["ScanType","ngModel"],["class","mb-4 w-full",3,"legend","toggleable","collapsed",4,"ngIf"],[1,"grid"],[2,"display","flex","align-items","center"],["icon","pi pi-play","iconPos","left",3,"label","disabled","onClick"],["class","block",4,"ngIf"],[1,"mb-4","w-full",3,"legend","collapsed","toggleable"],[1,"col-6"],[1,"col-10","bg-blue-100","text-gray-900"],[1,"label","block"],[1,"col-10"],[3,"value"],["class","form-group field",4,"ngIf"],["icon","pi pi-times-circle","iconPos","left","styleClass","p-button-danger",3,"label","disabled","onClick"],[1,"col-6",2,"white-space","'pre-line'"],["scroll",""],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["for","FreqTable",1,"label","block"],["optionLabel","label","optionValue","value","name","FreqTable",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["FreqTable","ngModel"],["for","Country",1,"label","block"],["optionLabel","label","optionValue","value","name","Country",3,"options","ngModel","editable","maxlength","ngModelChange"],["Country","ngModel"],["for","atscModulation",1,"label","block"],["optionLabel","label","optionValue","value","name","atscModulation",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["atscModulation","ngModel"],["for","FirstChan",1,"label","block"],["name","FirstChan",3,"options","ngModel","editable","maxlength","ngModelChange"],["FirstChan","ngModel"],[4,"ngIf"],[1,"p-error","block"],["for","LastChan",1,"label","block"],["name","LastChan",3,"options","ngModel","editable","maxlength","ngModelChange"],["LastChan","ngModel"],["for","Frequency",1,"label","block"],["name","Frequency","id","Frequency",3,"ngModel","min","max","ngModelChange"],[3,"translate","translateParams"],["for","Inversion",1,"label","block"],["name","Inversion","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Inversion","ngModel"],["for","SatTuning",1,"label","block"],["name","SatTuning","optionLabel","label",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["SatTuning","ngModel"],["for","Bandwidth",1,"label","block"],["name","Bandwidth","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Bandwidth","ngModel"],["for","Polarity",1,"label","block"],["name","Polarity","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Polarity","ngModel"],["for","dvbcSymbolRate",1,"label","block"],["name","dvbcSymbolRate","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["dvbcSymbolRate","ngModel"],["for","dvbsSymbolRate",1,"label","block"],["name","dvbsSymbolRate","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["dvbsSymbolRate","ngModel"],["for","Constellation",1,"label","block"],["name","Constellation","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Constellation","ngModel"],["for","Modulation",1,"label","block"],["name","Modulation","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Modulation","ngModel"],["for","DVBSModulation",1,"label","block"],["name","DVBSModulation","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["DVBSModulation","ngModel"],["for","DVBTModSys",1,"label","block"],["name","DVBTModSys","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["DVBTModSys","ngModel"],["for","DVBCModSys",1,"label","block"],["name","DVBCModSys","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["DVBCModSys","ngModel"],["for","DVBSModSys",1,"label","block"],["name","DVBSModSys","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["DVBSModSys","ngModel"],["for","CodeRateLP",1,"label","block"],["name","CodeRateLP","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["CodeRateLP","ngModel"],["for","CodeRateHP",1,"label","block"],["name","CodeRateHP","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["CodeRateHP","ngModel"],["for","FEC",1,"label","block"],["name","FEC","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["FEC","ngModel"],["for","TransmissionMode",1,"label","block"],["name","TransmissionMode","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["TransmissionMode","ngModel"],["for","GuardInterval",1,"label","block"],["name","GuardInterval","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["GuardInterval","ngModel"],["for","Hierarchy",1,"label","block"],["name","Hierarchy","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Hierarchy","ngModel"],["for","RollOff",1,"label","block"],["name","RollOff","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["RollOff","ngModel"],["for","ScanId",1,"label","block"],["optionLabel","label","optionValue","ScanId","name","ScanId",3,"options","ngModel","editable","maxlength","ngModelChange"],["ScanId","ngModel"],["inputId","IgnoreSignalTimeout","name","IgnoreSignalTimeout",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["IgnoreSignalTimeout","ngModel"],["inputId","FollowNITSetting","name","FollowNITSetting",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["FollowNITSetting","ngModel"],["for","MplexId",1,"label","block"],["optionLabel","Description","optionValue","MplexId","name","MplexId",3,"options","ngModel","editable","maxlength","ngModelChange"],["MplexId","ngModel"],[1,"col-10",2,"color","black","background-color","pink"],["pInputText","","id","DialogString","name","DialogString",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["InputName","ngModel"],["for","DialogButtons",1,"label","block"],["name","DialogButtons",3,"options","ngModel","editable","maxlength","ngModelChange"],["styleClass","p-button-info",1,"gap-3",3,"label","onClick"]],template:function(n,i){1&n&&(l(0,"div",0)(1,"label",1),_(2),f(3,"translate"),c(),l(4,"p-dropdown",2,3),v("ngModelChange",function(r){return i.scanRequest.DesiredServices=r}),c(),l(6,"small",4),_(7),f(8,"translate"),c()(),l(9,"div",0)(10,"p-checkbox",5,6),v("ngModelChange",function(r){return i.scanRequest.FreeToAirOnly=r}),f(12,"translate"),c(),l(13,"small",4),_(14),f(15,"translate"),c()(),l(16,"div",0)(17,"p-checkbox",7,8),v("ngModelChange",function(r){return i.scanRequest.ChannelNumbersOnly=r}),f(19,"translate"),c(),l(20,"small",4),_(21),f(22,"translate"),c()(),l(23,"div",0)(24,"p-checkbox",9,10),v("ngModelChange",function(r){return i.scanRequest.CompleteChannelsOnly=r}),f(26,"translate"),c(),l(27,"small",4),_(28),f(29,"translate"),c()(),l(30,"div",0)(31,"p-checkbox",11,12),v("ngModelChange",function(r){return i.scanRequest.FullChannelSearch=r}),f(33,"translate"),c(),l(34,"small",4),_(35),f(36,"translate"),c()(),l(37,"div",0)(38,"p-checkbox",13,14),v("ngModelChange",function(r){return i.scanRequest.RemoveDuplicates=r}),f(40,"translate"),c(),l(41,"small",4),_(42),f(43,"translate"),c()(),l(44,"div",0)(45,"p-checkbox",15,16),v("ngModelChange",function(r){return i.scanRequest.AddFullTS=r}),f(47,"translate"),c(),l(48,"small",4),_(49),f(50,"translate"),c()(),l(51,"div",0)(52,"p-checkbox",17,18),v("ngModelChange",function(r){return i.scanRequest.TestDecryptable=r}),f(54,"translate"),c(),l(55,"small",4),_(56),f(57,"translate"),c()(),l(58,"div",0)(59,"label",19),_(60),f(61,"translate"),c(),l(62,"p-dropdown",20,21),v("ngModelChange",function(r){return i.scanRequest.ScanType=r})("onChange",function(){return i.onScanTypeChange()}),c(),l(64,"small",4),_(65),c()(),m(66,$_e,9,13,"p-fieldset",22),m(67,h1e,36,57,"p-fieldset",22),m(68,m1e,9,15,"p-fieldset",22),m(69,g1e,17,22,"p-fieldset",22),D(70,"br")(71,"br"),l(72,"div",0)(73,"div",23)(74,"div",24)(75,"p-button",25),v("onClick",function(){return i.startScan()}),f(76,"translate"),c()()(),m(77,_1e,3,3,"small",26),c(),l(78,"p-fieldset",27),f(79,"translate"),l(80,"div",23)(81,"div",28)(82,"div",0)(83,"div",29)(84,"b"),_(85),c()()(),l(86,"div",0)(87,"label",30),_(88),f(89,"translate"),c(),l(90,"div",29),_(91),c()(),l(92,"div",0)(93,"label",30),_(94),f(95,"translate"),c(),l(96,"div",29),_(97),c()(),l(98,"div",0)(99,"label",30),_(100),f(101,"translate"),c(),l(102,"div",31),D(103,"p-progressBar",32),c()(),l(104,"div",0)(105,"label",30),_(106),f(107,"translate"),c(),l(108,"div",31),D(109,"p-progressBar",32),c()(),l(110,"div",0)(111,"label",30),_(112),f(113,"translate"),c(),l(114,"div",31),D(115,"p-progressBar",32),c()(),D(116,"br"),m(117,b1e,6,1,"div",33),m(118,v1e,3,1,"div",33),m(119,C1e,6,10,"div",33),m(120,y1e,3,3,"div",33),D(121,"br"),l(122,"div",0)(123,"div",24)(124,"p-button",34),v("onClick",function(){return i.stopScan()}),f(125,"translate"),c()(),D(126,"small",4),c()(),l(127,"div",35)(128,"p-scrollPanel",null,36),_(130),c()()()()),2&n&&(a(2),S(g(3,81,"settings.channelscan.services_label")),a(2),j(V(131,wt)),d("options",i.serviceValues)("ngModel",i.scanRequest.DesiredServices)("editable",!1)("maxlength",0),a(3),x(" ",g(8,83,"settings.channelscan.services_desc")," "),a(3),I("label",g(12,85,"settings.channelscan.ftaonly_label")),d("ngModel",i.scanRequest.FreeToAirOnly)("binary",!0),a(4),x(" ",g(15,87,"settings.channelscan.ftaonly_desc")," "),a(3),I("label",g(19,89,"settings.channelscan.channelnumbersonly_label")),d("ngModel",i.scanRequest.ChannelNumbersOnly)("binary",!0),a(4),x(" ",g(22,91,"settings.channelscan.channelnumbersonly_desc")," "),a(3),I("label",g(26,93,"settings.channelscan.completeonly_label")),d("ngModel",i.scanRequest.CompleteChannelsOnly)("binary",!0),a(4),x(" ",g(29,95,"settings.channelscan.completeonly_desc")," "),a(3),I("label",g(33,97,"settings.channelscan.fullsearch_label")),d("ngModel",i.scanRequest.FullChannelSearch)("binary",!0),a(4),x(" ",g(36,99,"settings.channelscan.fullsearch_desc")," "),a(3),I("label",g(40,101,"settings.channelscan.removeduplicates_label")),d("ngModel",i.scanRequest.RemoveDuplicates)("binary",!0),a(4),x(" ",g(43,103,"settings.channelscan.removeduplicates_desc")," "),a(3),I("label",g(47,105,"settings.channelscan.addfullts_label")),d("ngModel",i.scanRequest.AddFullTS)("binary",!0),a(4),x(" ",g(50,107,"settings.channelscan.addfullts_desc")," "),a(3),I("label",g(54,109,"settings.channelscan.testdecryptable_label")),d("ngModel",i.scanRequest.TestDecryptable)("binary",!0),a(4),x(" ",g(57,111,"settings.channelscan.testdecryptable_desc")," "),a(4),S(g(61,113,"settings.channelscan.scantype_label")),a(2),j(V(132,wt)),d("options",i.scanTypes)("ngModel",i.scanRequest.ScanType)("editable",!1)("maxlength",0),a(3),x(" ",i.helpText," "),a(1),d("ngIf","FULL"==i.scanRequest.ScanType),a(1),d("ngIf","FULLTUNED"==i.scanRequest.ScanType),a(1),d("ngIf","IMPORT"==i.scanRequest.ScanType),a(1),d("ngIf","ALLTRANSPORT"==i.scanRequest.ScanType||"ONETRANSPORT"==i.scanRequest.ScanType),a(6),I("label",g(76,115,"settings.channelscan.scan_label")),d("disabled",i.setupService.schedulingEnabled||"RUNNING"==i.scanStatus.Status||!i.card.SourceId),a(2),d("ngIf",i.iconnection.currentForm&&i.iconnection.currentForm.form.dirty||!i.card.SourceId),a(1),I("legend",g(79,117,"settings.channelscan.status_title")),d("collapsed",!0)("toggleable",!1)("collapsed",!1),a(7),x("",i.scanStatus.StatusTitle," \xa0"),a(3),S(g(89,119,"settings.channelscan.status_label")),a(3),x(" ",i.scanStatus.StatusText," \xa0 "),a(3),S(g(95,121,"settings.channelscan.lock_label")),a(3),x(" ",i.scanStatus.SignalLock?i.lockDesc:i.nolockDesc," \xa0 "),a(3),S(g(101,123,"settings.channelscan.progress_label")),a(3),j(V(133,m1)),d("value",i.scanStatus.Progress),a(3),S(g(107,125,"settings.channelscan.noise_label")),a(3),j(V(134,m1)),d("value",i.scanStatus.SignalNoise),a(3),S(g(113,127,"settings.channelscan.strength_label")),a(3),j(V(135,m1)),d("value",i.scanStatus.SignalStrength),a(2),d("ngIf",i.scanStatus.DialogMsg),a(1),d("ngIf",i.scanStatus.DialogInputReq),a(1),d("ngIf",i.scanStatus.DialogButtons.length>0),a(1),d("ngIf",i.scanStatus.DialogButtons.length>0||i.scanStatus.DialogInputReq),a(4),I("label",g(125,129,"settings.channelscan.stop_label")),d("disabled","RUNNING"!=i.scanStatus.Status||i.scanStatus.DialogButtons.length>0),a(4),j(V(136,T1e)),a(2),x(" ",i.scanStatus.StatusLog," "))},dependencies:[ne,Xe,xe,In,Ce,Bd,Te,ln,Gt,Xi,vt,Ote,xx,pe]})}return t})(),I1e=(()=>{class t{constructor(e){this.httpClient=e}GetBackendStatus(){return this.httpClient.get("/Status/GetBackendStatus")}static#e=this.\u0275fac=function(n){return new(n||t)(ie(Ki))};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var is=function(t){return t[t.kState_Error=-1]="kState_Error",t[t.kState_None=0]="kState_None",t[t.kState_WatchingLiveTV=1]="kState_WatchingLiveTV",t[t.kState_WatchingPreRecorded=2]="kState_WatchingPreRecorded",t[t.kState_WatchingVideo=3]="kState_WatchingVideo",t[t.kState_WatchingDVD=4]="kState_WatchingDVD",t[t.kState_WatchingBD=5]="kState_WatchingBD",t[t.kState_WatchingRecording=6]="kState_WatchingRecording",t[t.kState_RecordingOnly=7]="kState_RecordingOnly",t[t.kState_ChangingState=8]="kState_ChangingState",t}(is||{});let Ts=(()=>{class t{constructor(e){this.translate=e,this.allSlashes=new RegExp(/\//g),this.deSpacer=new RegExp(/ /g),this.recTypeTrans={"Single Record":"","Record All":"","Record One":"","Record Daily":"","Record Weekly":"","Override Recording":"","Do not Record":"","Recording Template":"","Not Recording":""},this.dayFormatter=new Intl.DateTimeFormat(void 0,{weekday:"short"});for(const[n,i]of Object.entries(this.recTypeTrans)){const o="recrule."+n.replace(this.deSpacer,"");this.translate.get(o).subscribe(r=>{Object.defineProperty(this.recTypeTrans,n,{value:r})})}}formatDate(e,n,i){if(!e)return"";10==e.length&&(e+=" 00:00");const o=new Date(e);let r="";return i&&(r=this.dayFormatter.format(o)+" "),r+=o.toLocaleDateString(),n?r.replace(this.allSlashes,"/"):r}formatTime(e){return e?(new Date(e).toLocaleTimeString()+" ").replace(/:.. /,""):""}formatDateTime(e,n){return this.formatDate(e,n)+" "+this.formatTime(e)}static#e=this.\u0275fac=function(n){return new(n||t)(ie(Le))};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const S1e=function(t){return{EndTime:t}};function x1e(t,s){if(1&t&&(Q(0),_(1),f(2,"translate"),J()),2&t){const e=p().$implicit,n=p(2);a(1),Xr(" '",e.Recording.Title,"' on ",e.Recording.Channel.CallSign,". ",mt(2,3,"dashboard.status.endtime_text",W(6,S1e,n.utility.formatTime(e.Recording.EndTime)))," ")}}const D1e=function(t,s,e,n){return{CardId:t,Id:s,InputName:e,DisplayName:n}};function M1e(t,s){if(1&t&&(l(0,"div")(1,"ul")(2,"li"),_(3),f(4,"translate"),c()()()),2&t){const e=s.$implicit;a(3),x("",mt(4,1,"dashboard.status.card_text",Li(4,D1e,e.CardId,e.Id,e.InputName,e.DisplayName))," ")}}const k1e=function(t,s,e,n){return{Id:t,CardDetails:s,HostName:e,State:n}};function E1e(t,s){if(1&t&&(l(0,"div")(1,"ul")(2,"li"),_(3),f(4,"translate"),m(5,x1e,3,8,"ng-container",4),c(),m(6,M1e,5,9,"div",3),c()()),2&t){const e=s.$implicit,n=p(2);a(3),x(" ",mt(4,3,"dashboard.status.encoder_text",Li(6,k1e,e.Id,n.cardDetails(e.Id),e.HostName,n.EncoderStatusText(e.State)))," "),a(2),d("ngIf",7==e.State),a(1),d("ngForOf",e.Inputs)}}function L1e(t,s){if(1&t&&(l(0,"div"),m(1,E1e,7,11,"div",3),c()),2&t){const e=p();a(1),d("ngForOf",e.encoders)}}function R1e(t,s){1&t&&(l(0,"div"),_(1),f(2,"translate"),c()),2&t&&(a(1),S(g(2,1,"dashboard.status.no_encoders")))}let O1e=(()=>{class t{constructor(e,n){this.utility=e,this.captureCardService=n,this.m_Cards=[]}ngOnInit(){this.captureCardService.GetCaptureCardList("","").subscribe(e=>{this.m_Cards=e.CaptureCardList.CaptureCards})}cardDetails(e){let n=this.m_Cards.find(i=>i.CardId==e);return n?n.CardType+": "+n.VideoDevice:" "}EncoderStatusText(e){switch(e){case is.kState_Error:return"Error";case is.kState_None:return"Idle";case is.kState_WatchingLiveTV:return"Watching Live TV";case is.kState_WatchingPreRecorded:return"Watching Pre Recorded";case is.kState_WatchingVideo:return"Watching Video";case is.kState_WatchingDVD:return"Watching DVD";case is.kState_WatchingBD:return"Watching BD";case is.kState_WatchingRecording:return"Watching Recording";case is.kState_RecordingOnly:return"Recording";case is.kState_ChangingState:return"Changing State";default:return"unknown"}}static#e=this.\u0275fac=function(n){return new(n||t)(M(Ts),M(Kt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-status-encoders"]],inputs:{encoders:"encoders"},decls:7,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noEncoders",""],[4,"ngFor","ngForOf"],[4,"ngIf"]],template:function(n,i){if(1&n&&(l(0,"div",0)(1,"h2"),_(2),f(3,"translate"),c(),m(4,L1e,2,1,"div",1),c(),m(5,R1e,3,3,"ng-template",null,2,ve)),2&n){const o=B(6);a(2),S(g(3,3,"dashboard.status.encoder_title")),a(2),d("ngIf",0!=(null==i.encoders?null:i.encoders.length))("ngIfElse",o)}},dependencies:[ut,ne,pe],styles:["div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px 0 0 8px;margin:20px}"]})}return t})();const A1e=function(t,s,e){return{Name:t,Type:s,IP:e}};function P1e(t,s){if(1&t&&(l(0,"div")(1,"li"),_(2),f(3,"translate"),c()()),2&t){const e=s.$implicit;a(2),x("",mt(3,1,"dashboard.status.backends_detail",Bt(4,A1e,e.Name,e.Type,e.IP))," ")}}function F1e(t,s){if(1&t&&(l(0,"div")(1,"ul"),m(2,P1e,4,8,"div",3),c()()),2&t){const e=p();a(2),d("ngForOf",e.backends)}}function N1e(t,s){1&t&&(l(0,"p"),_(1),f(2,"translate"),c()),2&t&&(a(1),S(g(2,1,"dashboard.status.backends_none")))}let V1e=(()=>{class t{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=U({type:t,selectors:[["app-status-backends"]],inputs:{backends:"backends"},decls:7,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noBackends",""],[4,"ngFor","ngForOf"]],template:function(n,i){if(1&n&&(l(0,"div",0)(1,"h2"),_(2),f(3,"translate"),c(),m(4,F1e,3,1,"div",1),c(),m(5,N1e,3,3,"ng-template",null,2,ve)),2&n){const o=B(6);a(2),S(g(3,3,"dashboard.status.backends_title")),a(2),d("ngIf",0!=(null==i.backends?null:i.backends.length))("ngIfElse",o)}},dependencies:[ut,ne,pe],styles:["div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px 0 0 8px;margin:20px}"]})}return t})();const B1e=function(t,s,e,n){return{Name:t,IP:s,Port:e,OnLine:n}};function H1e(t,s){if(1&t&&(l(0,"div")(1,"li"),_(2),f(3,"translate"),c()()),2&t){const e=s.$implicit;a(2),x("",mt(3,1,"dashboard.status.frontends_detail",Li(4,B1e,e.Name,e.IP,e.Port,e.OnLine))," ")}}function G1e(t,s){if(1&t&&(l(0,"div")(1,"ul"),m(2,H1e,4,9,"div",3),c()()),2&t){const e=p();a(2),d("ngForOf",e.frontends)}}function q1e(t,s){1&t&&(l(0,"p"),_(1),f(2,"translate"),c()),2&t&&(a(1),S(g(2,1,"dashboard.status.frontends_none")))}let z1e=(()=>{class t{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=U({type:t,selectors:[["app-status-frontends"]],inputs:{frontends:"frontends"},decls:7,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noFrontends",""],[4,"ngFor","ngForOf"]],template:function(n,i){if(1&n&&(l(0,"div",0)(1,"h2"),_(2),f(3,"translate"),c(),m(4,G1e,3,1,"div",1),c(),m(5,q1e,3,3,"ng-template",null,2,ve)),2&n){const o=B(6);a(2),S(g(3,3,"dashboard.status.frontends_title")),a(2),d("ngIf",0!=(null==i.frontends?null:i.frontends.length))("ngIfElse",o)}},dependencies:[ut,ne,pe],styles:["div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px 0 0 8px;margin:20px}"]})}return t})();function U1e(t,s){if(1&t&&(l(0,"li",4)(1,"div",5),_(2),c()()),2&t){const e=s.$implicit,n=p(2);a(1),I("pTooltip",e.Description),a(1),hf(" ",n.utility.formatDate(e.StartTime)," ",n.utility.formatTime(e.StartTime)," - ",e.Recording.EncoderId," - ",e.Channel.CallSign," - ",e.Title," ")}}const j1e=function(t){return{length:t}};function $1e(t,s){if(1&t&&(l(0,"div")(1,"p"),_(2),f(3,"translate"),c(),l(4,"ul"),m(5,U1e,3,6,"li",3),c()()),2&t){const e=p();a(2),S(mt(3,2,"dashboard.status.schedule_text",W(5,j1e,null==e.scheduled?null:e.scheduled.length))),a(3),d("ngForOf",e.scheduled)}}function W1e(t,s){1&t&&(l(0,"p"),_(1),f(2,"translate"),c()),2&t&&(a(1),S(g(2,1,"dashboard.status.schedule_none")))}let K1e=(()=>{class t{constructor(e){this.utility=e}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)(M(Ts))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-status-scheduled"]],inputs:{scheduled:"scheduled"},decls:7,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noSchedule",""],["class","flex",4,"ngFor","ngForOf"],[1,"flex"],["tooltipPosition","bottom",3,"pTooltip"]],template:function(n,i){if(1&n&&(l(0,"div",0)(1,"h2"),_(2),f(3,"translate"),c(),m(4,$1e,6,7,"div",1),c(),m(5,W1e,3,3,"ng-template",null,2,ve)),2&n){const o=B(6);a(2),S(g(3,3,"dashboard.status.schedule_title")),a(2),d("ngIf",0!=(null==i.scheduled?null:i.scheduled.length))("ngIfElse",o)}},dependencies:[ut,ne,$t,pe],styles:["div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px 0 0 8px;margin:20px}"]})}return t})();function Q1e(t,s){if(1&t&&(l(0,"div")(1,"p"),_(2),f(3,"translate"),c()()),2&t){const e=s.$implicit,n=p(2);a(2),mf("",n.utility.formatDate(e.StatusTime)," ",n.utility.formatTime(e.StatusTime)," - ",e.Program.Title," - ",e.LocalizedJobName," - ",g(3,6,"dashboard.status.jobs_status"),": ",e.LocalizedStatus," ")}}function J1e(t,s){if(1&t&&(l(0,"div")(1,"p"),_(2),f(3,"translate"),c(),l(4,"ul"),m(5,Q1e,4,8,"div",3),c()()),2&t){const e=p();a(2),x("",g(3,2,"dashboard.status.jobs_text"),":"),a(3),d("ngForOf",e.jobqueue)}}function Z1e(t,s){1&t&&(l(0,"p"),_(1),f(2,"translate"),c()),2&t&&(a(1),S(g(2,1,"dashboard.status.jobs_none")))}let Y1e=(()=>{class t{constructor(e){this.utility=e}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)(M(Ts))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-status-jobqueue"]],inputs:{jobqueue:"jobqueue"},decls:7,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noJobs",""],[4,"ngFor","ngForOf"]],template:function(n,i){if(1&n&&(l(0,"div",0)(1,"h2"),_(2),f(3,"translate"),c(),m(4,J1e,6,4,"div",1),c(),m(5,Z1e,3,3,"ng-template",null,2,ve)),2&n){const o=B(6);a(2),S(g(3,3,"dashboard.status.jobs_title")),a(2),d("ngIf",0!=(null==i.jobqueue?null:i.jobqueue.length))("ngIfElse",o)}},dependencies:[ut,ne,pe],styles:["div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px 0 0 8px;margin:20px}"]})}return t})();function X1e(t,s){if(1&t&&(l(0,"div")(1,"p"),_(2),f(3,"translate"),c(),l(4,"ul")(5,"li"),_(6),f(7,"translate"),c(),l(8,"ul")(9,"li"),_(10),f(11,"translate"),c(),l(12,"li"),_(13),f(14,"translate"),c(),l(15,"li"),_(16),f(17,"translate"),c(),l(18,"li"),_(19),f(20,"translate"),c(),l(21,"ul")(22,"li"),_(23),f(24,"translate"),c(),l(25,"li"),_(26),f(27,"translate"),c(),l(28,"li"),_(29),f(30,"translate"),c()()()()()),2&t){const e=s.ngIf;a(2),x("",g(3,16,"dashboard.status.mach.disk_summ"),":"),a(4),x("",g(7,18,"dashboard.status.mach.disk_total"),":"),a(4),Ke("",g(11,20,"dashboard.status.mach.total_space"),": ",e.Total.toLocaleString()," MiB"),a(3),Ke("",g(14,22,"dashboard.status.mach.space_used"),": ",e.Used.toLocaleString()," MiB"),a(3),Ke("",g(17,24,"dashboard.status.mach.space_free"),": ",e.Free.toLocaleString()," MiB"),a(3),Ke("",g(20,26,"dashboard.status.mach.space_after_expire"),": ",(e.Free+e.Expirable).toLocaleString(),""),a(4),Ke("",g(24,28,"dashboard.status.mach.space_livetv"),": ",e.LiveTV.toLocaleString()," MiB"),a(3),Ke("",g(27,30,"dashboard.status.mach.space_deleted"),": ",e.Deleted.toLocaleString()," MiB"),a(3),Ke("",g(30,32,"dashboard.status.mach.space_expirable"),": ",e.Expirable.toLocaleString()," MiB")}}function ebe(t,s){1&t&&Z(0)}function tbe(t,s){if(1&t&&(l(0,"div"),m(1,ebe,1,0,"ng-container",6),c()),2&t){const e=s.$implicit;p(2);const n=B(10);a(1),d("ngTemplateOutlet",n)("ngTemplateOutletContext",e)}}const nbe=function(t,s,e){return{GuideStart:t,GuideEnd:s,GuideStatus:e}},ibe=function(t){return{GuideNext:t}},sbe=function(t,s){return{GuideThru:t,GuideDays:s}};function obe(t,s){if(1&t&&(l(0,"div")(1,"div")(2,"p"),_(3),f(4,"translate"),c(),l(5,"ul")(6,"li"),_(7),f(8,"translate"),c(),l(9,"li"),_(10),f(11,"translate"),c(),l(12,"li"),_(13),f(14,"translate"),c()()(),m(15,X1e,31,34,"div",1),l(16,"div")(17,"p"),_(18),f(19,"translate"),c(),m(20,tbe,2,2,"div",5),c(),l(21,"div")(22,"p"),_(23),f(24,"translate"),D(25,"br"),_(26),f(27,"translate"),D(28,"br"),_(29),f(30,"translate"),c()()()),2&t){const e=p(),n=B(8);a(3),S(g(4,14,"dashboard.status.mach.load")),a(4),Ke("1 ",g(8,16,"dashboard.status.mach.minute"),": ",e.machineinfo.LoadAvg1.toLocaleString(),""),a(3),Ke("5 ",g(11,18,"dashboard.status.mach.minutes"),": ",e.machineinfo.LoadAvg2.toLocaleString(),""),a(3),Ke("15 ",g(14,20,"dashboard.status.mach.minutes"),": ",e.machineinfo.LoadAvg3.toLocaleString(),""),a(2),d("ngIf",e.getStorageGroupTotal(e.machineinfo.StorageGroups))("ngIfElse",n),a(3),x("",g(19,22,"dashboard.status.mach.disk_details"),":"),a(2),d("ngForOf",e.getStorageGroupDetails(e.machineinfo.StorageGroups)),a(3),S(mt(24,24,"dashboard.status.mach.mythfill_last",Bt(33,nbe,e.utility.formatDateTime(e.machineinfo.GuideStart),e.utility.formatDateTime(e.machineinfo.GuideEnd),e.machineinfo.GuideStatus))),a(3),x(" ",mt(27,27,"dashboard.status.mach.mythfill_next",W(37,ibe,e.utility.formatDateTime(e.machineinfo.GuideNext))),""),a(3),x(" ",mt(30,30,"dashboard.status.mach.mythfill_until",Se(39,sbe,e.utility.formatDateTime(e.machineinfo.GuideThru),e.machineinfo.GuideDays))," ")}}function rbe(t,s){1&t&&(l(0,"p"),_(1),f(2,"translate"),c()),2&t&&(a(1),S(g(2,1,"dashboard.status.mach.none")))}function abe(t,s){1&t&&(l(0,"p"),_(1),f(2,"translate"),c()),2&t&&(a(1),S(g(2,1,"dashboard.status.mach.disk_none")))}function lbe(t,s){if(1&t&&(l(0,"ul")(1,"li"),_(2),f(3,"translate"),c(),l(4,"ul")(5,"li"),_(6),f(7,"translate"),c(),l(8,"li"),_(9),f(10,"translate"),c(),l(11,"li"),_(12),f(13,"translate"),c(),l(14,"li"),_(15),f(16,"translate"),c()()()),2&t){const e=s.Id,n=s.Directory,i=s.Total,o=s.Used,r=s.Free;a(2),Ke("",g(3,10,"dashboard.status.mach.myth_drive")," #",e,""),a(4),Ke("",g(7,12,"dashboard.status.mach.disk_dirs"),": ",n,""),a(3),Ke("",g(10,14,"dashboard.status.mach.total_space"),": ",i.toLocaleString()," MiB"),a(3),Ke("",g(13,16,"dashboard.status.mach.space_used"),": ",o.toLocaleString()," MiB"),a(3),Ke("",g(16,18,"dashboard.status.mach.space_free"),": ",r.toLocaleString()," MiB")}}let cbe=(()=>{class t{constructor(e){this.utility=e}ngOnInit(){}getStorageGroupTotal(e){return e.filter(n=>"total"==n.Id)[0]}getStorageGroupDetails(e){return e.filter(n=>"total"!=n.Id)}static#e=this.\u0275fac=function(n){return new(n||t)(M(Ts))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-status-machineinfo"]],inputs:{machineinfo:"machineinfo"},decls:11,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noMachineInfo",""],["noDiskInfo",""],["printStorageGroup",""],[4,"ngFor","ngForOf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,i){if(1&n&&(l(0,"div",0)(1,"h2"),_(2),f(3,"translate"),c(),m(4,obe,31,42,"div",1),c(),m(5,rbe,3,3,"ng-template",null,2,ve),m(7,abe,3,3,"ng-template",null,3,ve),m(9,lbe,17,20,"ng-template",null,4,ve)),2&n){const o=B(6);a(2),S(g(3,3,"dashboard.status.mach.title")),a(2),d("ngIf",i.machineinfo)("ngIfElse",o)}},dependencies:[ut,ne,dt,pe],styles:["div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px 0 0 8px;margin:20px}"]})}return t})();function ube(t,s){if(1&t&&(l(0,"div",9)(1,"h2"),_(2),f(3,"translate"),c(),l(4,"div"),_(5),c()()),2&t){const e=p().ngIf;a(2),S(g(3,2,"dashboard.status.misc_title")),a(3),x(" ",e.Miscellaneous," ")}}function dbe(t,s){if(1&t&&(l(0,"div"),D(1,"app-status-encoders",2)(2,"app-status-scheduled",3)(3,"app-status-jobqueue",4)(4,"app-status-machineinfo",5)(5,"app-status-backends",6)(6,"app-status-frontends",7),m(7,ube,6,4,"div",8),c()),2&t){const e=s.ngIf;a(1),d("encoders",e.Encoders),a(1),d("scheduled",e.Scheduled),a(1),d("jobqueue",e.JobQueue),a(1),d("machineinfo",e.MachineInfo),a(1),d("backends",e.Backends),a(1),d("frontends",e.Frontends),a(1),d("ngIf",e.Miscellaneous)}}function pbe(t,s){1&t&&(l(0,"div"),_(1,"Loading..."),c())}let hbe=(()=>{class t{constructor(e){this.statusService=e}ngOnInit(){this.m_status$=this.statusService.GetBackendStatus()}static#e=this.\u0275fac=function(n){return new(n||t)(M(I1e))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-status"]],decls:7,vars:7,consts:[[4,"ngIf","ngIfElse"],["loading",""],[3,"encoders"],[3,"scheduled"],[3,"jobqueue"],[3,"machineinfo"],[3,"backends"],[3,"frontends"],["class","statusBox",4,"ngIf"],[1,"statusBox"]],template:function(n,i){if(1&n&&(l(0,"h2"),_(1),f(2,"translate"),c(),m(3,dbe,8,7,"div",0),f(4,"async"),m(5,pbe,2,0,"ng-template",null,1,ve)),2&n){const o=B(6);let r;a(1),x("",g(2,3,"dashboard.backendStatus")," "),a(2),d("ngIf",null==(r=g(4,5,i.m_status$))?null:r.BackendStatus)("ngIfElse",o)}},dependencies:[ne,O1e,V1e,z1e,K1e,Y1e,cbe,KT,pe],styles:["div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px 0 0 8px;margin:20px}"]})}return t})();const mbe=["recsform"],fbe=["menu"],gbe=["table"],_be=["row"];function bbe(t,s){if(1&t){const e=E();l(0,"i",48),v("click",function(){return C(e),y(p().resetSearch())}),c()}}function vbe(t,s){}function Cbe(t,s){1&t&&(l(0,"tr")(1,"th",54),_(2),f(3,"translate"),D(4,"p-sortIcon",55),c(),D(5,"th",56),l(6,"th",57),_(7),f(8,"translate"),c(),l(9,"th",58),_(10),f(11,"translate"),c(),l(12,"th",59),_(13),f(14,"translate"),D(15,"p-sortIcon",60),c(),l(16,"th",61),_(17),f(18,"translate"),D(19,"p-sortIcon",62),c(),l(20,"th",63),_(21),f(22,"translate"),c(),l(23,"th",64),_(24),f(25,"translate"),D(26,"p-sortIcon",65),c(),l(27,"th",66),_(28),f(29,"translate"),c(),l(30,"th",67),_(31),f(32,"translate"),c(),l(33,"th",68)(34,"a",69),D(35,"i",70),c(),D(36,"button",71),c()()),2&t&&(a(2),x(" ",g(3,10,"dashboard.recordings.title")," "),a(5),S(g(8,12,"dashboard.recordings.subtitle")),a(3),S(g(11,14,"dashboard.recordings.seas_ep")),a(3),x(" ",g(14,16,"dashboard.recordings.orig_airdate")," "),a(4),x(" ",g(18,18,"dashboard.recordings.airdate")," "),a(4),S(g(22,20,"dashboard.recordings.channel")),a(3),x(" ",g(25,22,"dashboard.recordings.recgrp")," "),a(4),x(" ",g(29,24,"dashboard.recordings.duration")," "),a(3),S(g(32,26,"dashboard.recordings.file_size")),a(5),d("disabled",!0))}function ybe(t,s){1&t&&(D(0,"i",89),f(1,"translate")),2&t&&I("pTooltip",g(1,1,"dashboard.recordings.damaged"))}function Tbe(t,s){1&t&&(D(0,"i",90),f(1,"translate")),2&t&&I("pTooltip",g(1,1,"dashboard.recordings.watched"))}function wbe(t,s){if(1&t&&(l(0,"div"),_(1),c()),2&t){const e=p().$implicit;a(1),Ke(" ",e.Season,"x",e.Episode," ")}}const To=function(t){return{"line-through":t}};function Ibe(t,s){if(1&t){const e=E();l(0,"tr",72,73),v("contextmenu",function(i){const r=C(e).$implicit;return y(p(2).onContextMenu(r,i))}),l(2,"td",74)(3,"div",75)(4,"div",76),m(5,ybe,2,3,"i",77),_(6),c()()(),l(7,"td",78),m(8,Tbe,2,3,"i",79),c(),l(9,"td",80)(10,"div",75)(11,"div",76),_(12),c()()(),l(13,"td",78),m(14,wbe,2,2,"div",81),c(),l(15,"td",82)(16,"div",75),D(17,"div",83),c()(),l(18,"td",82)(19,"div",75),D(20,"div",83),c()(),l(21,"td",78)(22,"div",75)(23,"div",76),_(24),c()()(),l(25,"td",78),_(26),c(),l(27,"td",84)(28,"div",75)(29,"div",76),_(30),f(31,"number"),c()()(),l(32,"td",84)(33,"div",75)(34,"div",76),_(35),f(36,"number"),c()()(),l(37,"td",85)(38,"a",86),f(39,"translate"),D(40,"i",87),c(),l(41,"button",88),v("click",function(i){const r=C(e).$implicit;return y(p(2).showContextMenu(r,i))}),c()()()}if(2&t){const e=s.$implicit,n=s.rowIndex,i=p(2);d("ngClass",W(34,To,"Deleted"==e.Recording.RecGroup))("pSelectableRow",e)("pSelectableRowIndex",n),a(4),d("ngClass",W(36,To,"Deleted"==e.Recording.RecGroup)),a(1),d("ngIf",e.VideoPropNames.indexOf("DAMAGED")>-1),a(1),x(" ",e.Title," "),a(2),d("ngIf",e.ProgramFlagNames.indexOf("WATCHED")>-1),a(1),I("pTooltip",e.Description),a(2),d("ngClass",W(38,To,"Deleted"==e.Recording.RecGroup)),a(1),x(" ",e.SubTitle,""),a(2),d("ngIf",e.Season>0||e.Episode>0),a(3),d("ngClass",W(40,To,"Deleted"==e.Recording.RecGroup))("innerHTML",i.utility.formatDate(e.Airdate,!0),Zt),a(3),d("ngClass",W(42,To,"Deleted"==e.Recording.RecGroup))("innerHTML",i.utility.formatDate(e.StartTime,!0),Zt),a(3),d("ngClass",W(44,To,"Deleted"==e.Recording.RecGroup)),a(1),Ke(" ",e.Channel.ChanNum," ",e.Channel.CallSign," "),a(2),S(e.Recording.RecGroup),a(3),d("ngClass",W(46,To,"Deleted"==e.Recording.RecGroup)),a(1),x(" ",mt(31,26,i.getDuration(e),"1.0-0")," min "),a(4),d("ngClass",W(48,To,"Deleted"==e.Recording.RecGroup)),a(1),x(" ",mt(36,29,e.Recording.FileSize/1e6,"1.0-0")," MB"),a(3),I("href",i.URLencode("/Content/GetRecording?RecordedId="+e.Recording.RecordedId)+"&Download="+i.getDownload(e),tn),I("pTooltip",g(39,32,"dashboard.recordings.download")),a(2),d("id","download_"+n)}}function Sbe(t,s){if(1&t){const e=E();l(0,"p-table",49,50),v("onLazyLoad",function(i){return C(e),y(p().loadLazy(i))})("selectionChange",function(i){return C(e),y(p().selection=i)})("onRowSelect",function(){return C(e),y(p().onSelectChange())})("onRowUnselect",function(){return C(e),y(p().onSelectChange())}),m(2,vbe,0,0,"ng-template",51),m(3,Cbe,37,28,"ng-template",52),m(4,Ibe,42,50,"ng-template",53),c()}if(2&t){const e=p();d("value",e.programs)("totalRecords",e.totalRecords)("rows",100)("lazy",!0)("rowHover",!0)("selection",e.selection)("metaKeySelection",!0)("virtualScroll",!0)("scrollable",!0)}}function xbe(t,s){1&t&&(D(0,"p-message",96),f(1,"translate")),2&t&&I("text",g(1,1,"common.savesuccess"))}function Dbe(t,s){1&t&&(D(0,"p-message",97),f(1,"translate")),2&t&&I("text",g(1,1,"common.networkfail"))}function Mbe(t,s){if(1&t){const e=E();l(0,"div",91),m(1,xbe,2,3,"p-message",92),m(2,Dbe,2,3,"p-message",93),c(),l(3,"p-button",94),v("onClick",function(){return C(e),y(p().closeDialog())}),f(4,"translate"),c(),l(5,"p-button",95),v("onClick",function(){return C(e),y(p().saveProgram())}),f(6,"translate"),c()}if(2&t){const e=p(),n=B(1);a(1),d("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0),a(1),I("label",g(4,5,"common.close")),a(2),I("label",g(6,7,"common.save")),d("disabled",!n.dirty||""==e.program.Title.trim())}}function kbe(t,s){if(1&t){const e=E();l(0,"p-button",98),v("onClick",function(){return C(e),y(p().displayRecGrpDlg=!1)}),f(1,"translate"),c(),l(2,"p-button",99),v("onClick",function(){return C(e),y(p().updaterecgrp())}),f(3,"translate"),c()}if(2&t){const e=p();I("label",g(1,3,"common.cancel")),a(2),I("label",g(3,5,"common.ok")),d("disabled",!e.newRecGroup.trim())}}function Ebe(t,s){if(1&t){const e=E();l(0,"p-button",100),v("onClick",function(){return C(e),y(p().closeDialog())}),f(1,"translate"),c(),l(2,"p-button",101),v("onClick",function(){return C(e),y(p().displayUnsaved=!1)}),f(3,"translate"),c()}2&t&&(I("label",g(1,2,"common.nosave")),a(2),I("label",g(3,4,"common.continue")))}const Lbe=function(){return{height:"75vw",width:"50vw"}},Rbe=function(){return{minWidth:"400px"}};let Obe=(()=>{class t{constructor(e,n,i,o,r){this.dvrService=e,this.messageService=n,this.translate=i,this.setupService=o,this.utility=r,this.programs=[],this.selection=[],this.actionList=[],this.recGroups=[],this.newRecGroup="",this.program={Title:"",Recording:{}},this.displayMetadataDlg=!1,this.displayRecGrpDlg=!1,this.displayRunJobs=!1,this.displayUnsaved=!1,this.successCount=0,this.errorCount=0,this.refreshing=!1,this.priorRequest={},this.totalRecords=0,this.showTable=!1,this.virtualScrollItemSize=0,this.searchValue="",this.selectedRecGroup=null,this.msg={Success:"common.success",Failed:"common.failed",NetFail:"common.networkfail",CanUndo:"dashboard.recordings.canundel",AlreadyDel:"dashboard.recordings.alreadydel",NonReRec:"dashboard.recordings.nonrerec",ActionsSelected:"dashboard.recordings.actionsselected",JobsSelected:"dashboard.recordings.jobsselected",UndefSelection:"dashboard.undefselection"},this.jobsoffset=3,this.jobs=[{id:"Transcode",label:"dashboard.recordings.job_Transcode",command:h=>this.runjob(h)},{id:"Commflag",label:"dashboard.recordings.job_Commflag",command:h=>this.runjob(h)},{id:"Metadata",label:"dashboard.recordings.job_Metadata",command:h=>this.runjob(h)},{id:"UserJob1",visible:!1,command:h=>this.runjob(h)},{id:"UserJob2",visible:!1,command:h=>this.runjob(h)},{id:"UserJob3",visible:!1,command:h=>this.runjob(h)},{id:"UserJob4",visible:!1,command:h=>this.runjob(h)}],this.mnu_delete={label:"dashboard.recordings.mnu_delete",command:h=>this.delete(h,!1)},this.mnu_delete_rerec={label:"dashboard.recordings.mnu_delete_rerec",command:h=>this.delete(h,!0)},this.mnu_undelete={label:"dashboard.recordings.mnu_undelete",command:h=>this.undelete(h)},this.mnu_rerec={label:"dashboard.recordings.mnu_rerec",command:h=>this.rerec(h)},this.mnu_markwatched={label:"dashboard.recordings.mnu_markwatched",command:h=>this.markwatched(h,!0)},this.mnu_markunwatched={label:"dashboard.recordings.mnu_markunwatched",command:h=>this.markwatched(h,!1)},this.mnu_markdamaged={label:"dashboard.recordings.mnu_markdamaged",command:h=>this.markdamaged(h,!0)},this.mnu_markundamaged={label:"dashboard.recordings.mnu_markundamaged",command:h=>this.markdamaged(h,!1)},this.mnu_updaterecgrp={label:"dashboard.recordings.mnu_updaterecgrp",command:h=>this.promptrecgrp(h)},this.mnu_updatemeta={label:"dashboard.recordings.mnu_updatemeta",command:h=>this.updatemeta(h)},this.mnu_updaterecrule={label:"dashboard.recordings.mnu_updaterecrule",command:h=>this.updaterecrule(h)},this.mnu_stoprec={label:"dashboard.recordings.mnu_stoprec",command:h=>this.stoprec(h)},this.mnu_runjobs={label:"dashboard.recordings.mnu_runjobs",items:this.jobs},this.menuToShow=[],this.matchModeRecGrp=[{value:Ht.EQUALS,label:"common.filter.equals"}],this.matchModeTitle=[{value:Ht.STARTS_WITH,label:"common.filter.startswith"},{value:Ht.CONTAINS,label:"common.filter.contains"},{value:Ht.EQUALS,label:"common.filter.equals"}],this.saveObserver={next:h=>{h.bool?(this.successCount++,this.currentForm.form.markAsPristine(),this.editingProgram&&Object.assign(this.editingProgram,this.program)):(console.log("saveObserver error",h),this.errorCount++)},error:h=>{console.log("saveObserver error",h),this.errorCount++}},this.JobQCmds=this.setupService.getJobQCommands(),this.dvrService.GetRecGroupList().subscribe(h=>{this.recGroups=h.RecGroupList,this.recGroups.push("Deleted")});for(const[h,b]of Object.entries(this.msg))this.translate.get(b).subscribe(T=>{Object.defineProperty(this.msg,h,{value:T})});[this.mnu_delete,this.mnu_delete_rerec,this.mnu_undelete,this.mnu_rerec,this.mnu_markwatched,this.mnu_markunwatched,this.mnu_markdamaged,this.mnu_markundamaged,this.mnu_updatemeta,this.mnu_updaterecrule,this.mnu_stoprec,this.mnu_updaterecgrp,this.mnu_runjobs,this.jobs[0],this.jobs[1],this.jobs[2],...this.matchModeRecGrp,...this.matchModeTitle].forEach(h=>{h.label&&this.translate.get(h.label).subscribe(b=>h.label=b)})}ngOnInit(){this.loadLazy({first:0,rows:1})}loadLazy(e){this.lazyLoadEvent=e;let n={StartIndex:0,Count:1};null!=e.first&&(n.StartIndex=e.first,e.last?n.Count=e.last-e.first:e.rows&&(n.Count=e.rows));let i="";Array.isArray(e.sortField)?i=e.sortField[0]:e.sortField&&(i=e.sortField),i||(i="Title"),n.Sort=i,n.Sort="Airdate"==i?"originalairdate":"Recording.RecGroup"==i?"recgroup":i;let o=" asc";e.sortOrder&&e.sortOrder<0&&(o=" desc"),n.Sort=n.Sort+o,n.Sort+=`,title${o},originalairdate${o},season${o},episode${o}`,this.searchValue&&(n.TitleRegEx=this.searchValue),null!=this.selectedRecGroup&&(n.RecGroup=this.selectedRecGroup),(n.TitleRegEx!=this.priorRequest.TitleRegEx||n.RecGroup!=this.priorRequest.RecGroup)&&(this.selection=[],this.menu.hide(),this.priorRequest=n,this.showTable=!1),this.dvrService.GetRecordedList(n).subscribe(r=>{let u=r.ProgramList;this.totalRecords=r.ProgramList.TotalAvailable,this.programs.length=r.ProgramList.TotalAvailable,this.programs.splice(u.StartIndex,u.Programs.length,...u.Programs),this.programs=[...this.programs],this.refreshing=!1,this.showTable=!0;let h=this.rows.get(0);h&&h.nativeElement.offsetHeight&&(this.virtualScrollItemSize=h.nativeElement.offsetHeight),this.table&&(this.table.totalRecords=this.totalRecords,this.table.virtualScrollItemSize=this.virtualScrollItemSize)})}onFilter(){this.reload()}resetSearch(){this.searchValue="",this.reload()}reload(){this.showTable=!1,this.programs.length=0,this.refreshing=!0,this.loadLazy({first:0,rows:1})}refresh(){this.selection=[],this.menu.hide(),this.loadLazy(this.lazyLoadEvent)}URLencode(e){return encodeURI(e)}getDuration(e){const n=new Date(e.Recording.StartTs).getTime();return(new Date(e.Recording.EndTs).getTime()-n)/6e4}getDownload(e){let n=e.Title;return e.Season&&e.Episode&&(n=n+" - S"+e.Season+"E"+e.Episode),e.SubTitle&&(n=n+" - "+e.SubTitle),n}onContextMenu(e,n){return!(!(0==this.selection.length||n.target&&n.target.id&&n.target.id.startsWith("download_"))&&(this.selection.some(i=>!i)?(this.sendMessage("error",null,"",this.msg.UndefSelection),1):this.selection.some(i=>i.Recording.RecordedId==e.Recording.RecordedId)&&(this.showContextMenu(null,n),1)))}onSelectChange(){this.menu.hide()}showContextMenu(e,n){if(this.actionList.length=0,e&&e.Title?this.actionList.push(e):this.actionList.push(...this.selection),0==this.actionList.length)return;if(this.actionList.some(o=>!o))return void this.sendMessage("error",null,"",this.msg.UndefSelection);this.menuToShow.length=0;let i=[];if(this.actionList.some(o=>"Deleted"==o.Recording.RecGroup)&&i.push(this.mnu_undelete),this.actionList.some(o=>"Deleted"!=o.Recording.RecGroup)&&(i.push(this.mnu_delete),i.push(this.mnu_delete_rerec)),i.push(this.mnu_rerec),this.actionList.some(o=>o.ProgramFlagNames.indexOf("WATCHED")>-1)&&i.push(this.mnu_markunwatched),this.actionList.some(o=>o.ProgramFlagNames.indexOf("WATCHED")<0)&&i.push(this.mnu_markwatched),this.actionList.some(o=>o.VideoPropNames.indexOf("DAMAGED")>-1)&&i.push(this.mnu_markundamaged),this.actionList.some(o=>o.VideoPropNames.indexOf("DAMAGED")<0)&&i.push(this.mnu_markdamaged),i.push(this.mnu_updaterecgrp),1==this.actionList.length?(i.push(this.mnu_updatemeta),this.menuToShow.push({label:this.actionList[0].Title+" - "+this.actionList[0].SubTitle,items:i})):this.menuToShow.push({label:this.msg.ActionsSelected.replace(/{{ *num *}}/,this.actionList.length.toString()),items:i}),this.actionList.every(o=>"Deleted"!=o.Recording.RecGroup)){this.menuToShow.push(1==this.actionList.length?this.mnu_runjobs:{label:this.msg.JobsSelected.replace(/{{ *num *}}/,this.actionList.length.toString()),items:this.jobs});for(let o=0;o<4;o++)this.JobQCmds.UserJob[o]?(this.jobs[o+this.jobsoffset].visible=!0,this.jobs[o+this.jobsoffset].label=this.JobQCmds.UserJobDesc[o]):this.jobs[o+this.jobsoffset].visible=!1}this.menuToShow=[...this.menuToShow],this.menu.toggle(n)}delete(e,n){let i=this.actionList.shift();i&&this.dvrService.GetRecorded({RecordedId:i.Recording.RecordedId}).subscribe({next:o=>{"Deleted"==o.Program.Recording.RecGroup?(this.sendMessage("error",i,e.item.label,this.msg.AlreadyDel),i.Recording.RecGroup="Deleted"):this.dvrService.DeleteRecording({RecordedId:i.Recording.RecordedId,AllowRerecord:n}).subscribe({next:r=>{r.bool?(this.sendMessage("success",i,e.item.label,this.msg.Success,this.msg.CanUndo),i.Recording.RecGroup="Deleted"):this.sendMessage("error",i,e.item.label,this.msg.Failed)},error:r=>this.networkError(i,r)}),this.delete(e,n)},error:o=>{this.networkError(i,o),this.delete(e,n)}})}undelete(e){let n=this.actionList.shift();n&&this.dvrService.UnDeleteRecording({RecordedId:n.Recording.RecordedId}).subscribe({next:i=>{i.bool?(n.Recording.RecGroup="Default",this.sendMessage("success",n,e.item.label,this.msg.Success)):this.sendMessage("error",n,e.item.label,this.msg.Failed),this.undelete(e)},error:i=>{this.networkError(n,i),this.undelete(e)}})}networkError(e,n){console.log("network error",n),this.sendMessage("error",e,"",this.msg.NetFail)}sendMessage(e,n,i,o,r){r=r?"\n"+r:"";let u=i;null!=n&&(u=i+" "+n.Title+" "+n.SubTitle+r),this.messageService.add({severity:e,summary:o,detail:u,life:5e3,sticky:"error"==e})}rerec(e){let n=this.actionList.shift();n&&this.dvrService.AllowReRecord(n.Recording.RecordedId).subscribe({next:i=>{i.bool?this.sendMessage("success",n,e.item.label,this.msg.Success):this.sendMessage("error",n,e.item.label,this.msg.Failed),this.rerec(e)},error:i=>{this.networkError(n,i),this.rerec(e)}})}markwatched(e,n){let i=this.actionList.shift();i&&this.dvrService.UpdateRecordedMetadata({RecordedId:i.Recording.RecordedId,Watched:n}).subscribe({next:o=>{o.bool?(this.sendMessage("success",i,e.item.label,this.msg.Success),i.ProgramFlagNames=n?i.ProgramFlagNames+"|WATCHED|":i.ProgramFlagNames.replace(/WATCHED/g,"")):this.sendMessage("error",i,e.item.label,this.msg.Failed),this.markwatched(e,n)},error:o=>{this.networkError(i,o),this.markwatched(e,n)}})}markdamaged(e,n){let i=this.actionList.shift();i&&this.dvrService.UpdateRecordedMetadata({RecordedId:i.Recording.RecordedId,Damaged:n}).subscribe({next:o=>{o.bool?n?(this.sendMessage("success",i,e.item.label,this.msg.Success,this.msg.NonReRec),i.VideoPropNames=i.VideoPropNames+"|DAMAGED|"):(this.sendMessage("success",i,e.item.label,this.msg.Success),i.VideoPropNames=i.VideoPropNames.replace(/DAMAGED/g,"")):this.sendMessage("error",i,e.item.label,this.msg.Failed),this.markdamaged(e,n)},error:o=>{this.networkError(i,o),this.markdamaged(e,n)}})}promptrecgrp(e){this.newRecGroup=1==this.actionList.length?this.actionList[0].Recording.RecGroup:"",this.displayRecGrpDlg=!0}updaterecgrp(){this.displayRecGrpDlg=!1,this.newRecGroup=this.newRecGroup.trim();let e=this.actionList.shift();e&&this.newRecGroup&&this.dvrService.UpdateRecordedMetadata({RecordedId:e.Recording.RecordedId,RecGroup:this.newRecGroup}).subscribe({next:n=>{n.bool?(this.sendMessage("success",e,this.mnu_updaterecgrp.label,this.msg.Success),e.Recording.RecGroup=this.newRecGroup):this.sendMessage("error",e,this.mnu_updaterecgrp.label,this.msg.Failed),this.updaterecgrp()},error:n=>{this.networkError(e,n),this.updaterecgrp()}})}updaterecrule(e){}stoprec(e){}runjob(e){let n=this.actionList.shift();n&&this.dvrService.ManageJobQueue({Action:"Add",JobName:e.item.id,RecordedId:n.Recording.RecordedId}).subscribe({next:i=>{i.int>0?this.sendMessage("success",n,e.item.label,this.msg.Success):this.sendMessage("error",n,e.item.label,this.msg.Failed),this.runjob(e)},error:i=>{this.networkError(n,i),this.runjob(e)}})}updatemeta(e){this.program=this.actionList.shift(),this.program&&(this.editingProgram=this.program,this.program=Object.assign({},this.program),this.program.Airdate=this.program.Airdate?new Date(this.program.Airdate+" 00:00"):null,this.displayMetadataDlg=!0,this.currentForm.form.markAsPristine())}saveProgram(){this.successCount=0,this.errorCount=0,this.displayUnsaved=!1,this.dvrService.UpdateRecordedMetadata({RecordedId:this.program.Recording.RecordedId,Description:this.program.Description,Episode:this.program.Episode,Inetref:this.program.Inetref,OriginalAirDate:this.program.Airdate,Season:this.program.Season,SubTitle:this.program.SubTitle,Title:this.program.Title,RecGroup:this.program.Recording.RecGroup}).subscribe(this.saveObserver)}closeDialog(){this.currentForm.dirty?this.displayUnsaved?(this.displayUnsaved=!1,this.displayMetadataDlg=!1,this.editingProgram=void 0,this.currentForm.form.markAsPristine()):this.displayUnsaved=!0:(this.displayMetadataDlg=!1,this.displayUnsaved=!1,this.editingProgram=void 0)}static#e=this.\u0275fac=function(n){return new(n||t)(M(sr),M(Yi),M(Le),M(Re),M(Ts))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-recordings"]],viewQuery:function(n,i){if(1&n&&(K(mbe,5),K(fbe,5),K(gbe,5),K(_be,5)),2&n){let o;H(o=G())&&(i.currentForm=o.first),H(o=G())&&(i.menu=o.first),H(o=G())&&(i.table=o.first),H(o=G())&&(i.rows=o)}},features:[Qe([Yi])],decls:101,vars:119,consts:[["name","recsform",2,"min-width","960px"],["recsform","ngForm"],[2,"white-space","'pre-line'"],["position","center"],[1,"block","card","w-full",2,"height","90vh"],[1,"font-bold",3,"popup","model"],["menu",""],[1,"flex","align-items-center","p-1","font-bold"],["pButton","","pRipple","","icon","pi pi-bars","tooltipPosition","top",1,"p-button-text",".p-button-success",3,"pTooltip","click"],[1,"p-input-icon-right"],["class","pi pi-times",3,"click",4,"ngIf"],["type","text","pInputText","","id","searchValue","name","searchValue","tooltipPosition","top",1,"text-xl",3,"ngModel","placeholder","pTooltip","ngModelChange"],["pButton","","pRipple","","icon","pi pi-search","tooltipPosition","top",1,"p-button-text","w-2rem",3,"pTooltip","click"],["name","filter",1,"'px-3",3,"ngModel","options","placeholder","showClear","ngModelChange","onChange"],["pButton","","pRipple","","icon","pi pi-refresh","tooltipPosition","top",1,"p-button-text",".p-button-success",3,"pTooltip","click"],["styleClass","p-datatable-sm p-datatable-striped","selectionMode","multiple","dataKey","Recording.RecordedId","sortField","Title","scrollHeight","flex",3,"value","totalRecords","rows","lazy","rowHover","selection","metaKeySelection","virtualScroll","scrollable","onLazyLoad","selectionChange","onRowSelect","onRowUnselect",4,"ngIf"],[3,"header","visible","modal","closable","closeOnEscape","visibleChange"],[1,"form-group","field"],["for","Title",1,"label","block"],["pInputText","","id","Title","name","Title",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Title","ngModel"],["for","SubTitle",1,"label","block"],["pInputText","","id","SubTitle","name","SubTitle",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["SubTitle","ngModel"],["for","Inetref",1,"label","block"],["pInputText","","id","Inetref","name","Inetref",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Inetref","ngModel"],["for","Description",1,"label","block"],["pInputTextarea","","id","Description","name","Description",1,"mb-2","form-control","w-full",3,"rows","cols","ngModel","ngModelChange"],["Description","ngModel"],["for","Season",1,"label","block"],["name","Season","id","Season",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","Episode",1,"label","block"],["name","Episode","id","Episode",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","Airdate",1,"label","block"],["dateFormat","yy-mm-dd","name","Airdate","id","Airdate",3,"ngModel","ngModelChange"],["for","RecGroup",1,"label","block"],["appendTo","body","name","RecGroup",3,"options","ngModel","editable","maxlength","ngModelChange"],["RecGroup","ngModel"],["for","FileName",1,"label","block"],["pTemplate","footer"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["for","newrecgroup",1,"label","block"],["pInputText","","id","newrecgroup","name","newrecgroup",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["newrecgroup","ngModel"],["name","recgrplist",3,"options","ngModel","ngModelChange"],["recgrplist","ngModel"],[3,"header","visible","modal","visibleChange"],[1,"pi","pi-times",3,"click"],["styleClass","p-datatable-sm p-datatable-striped","selectionMode","multiple","dataKey","Recording.RecordedId","sortField","Title","scrollHeight","flex",3,"value","totalRecords","rows","lazy","rowHover","selection","metaKeySelection","virtualScroll","scrollable","onLazyLoad","selectionChange","onRowSelect","onRowUnselect"],["table",""],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],["pSortableColumn","Title",1,"p-1",2,"width","14%"],["field","Title"],[1,"p-1",2,"width","2%"],[1,"p-1",2,"width","20%"],[1,"p-1",2,"width","5%"],["pSortableColumn","Airdate",1,"justify-content-end","p-1",2,"width","9%"],["field","Airdate"],["pSortableColumn","StartTime",1,"justify-content-end","p-1",2,"width","9%"],["field","StartTime"],[1,"p-1",2,"width","11%"],["pSortableColumn","Recording.RecGroup",1,"p-1",2,"width","9%"],["field","Recording.RecGroup"],[1,"justify-content-end","p-1",2,"width","7%"],[1,"justify-content-end","p-1",2,"width","9%"],[1,"p-1",2,"width","5%","white-space","nowrap","background","var(--surface-card)"],["target","_blank"],[1,"pi","pi-download"],["pButton","","pRipple","","icon","pi pi-ellipsis-v",1,"p-button-text","p-button-primary",3,"disabled"],[3,"ngClass","pSelectableRow","pSelectableRowIndex","contextmenu"],["row",""],[1,"p-1","overflow-hidden"],[1,"mycell"],[1,"mytext",3,"ngClass"],["class","pi pi-exclamation-triangle p-1","tooltipPosition","top",3,"pTooltip",4,"ngIf"],[1,"p-1"],["class","pi pi-eye","tooltipPosition","top",3,"pTooltip",4,"ngIf"],["tooltipPosition","top",1,"p-1","overflow-hidden",3,"pTooltip"],[4,"ngIf"],[1,"justify-content-end","p-1","overflow-hidden"],[1,"mytext",3,"ngClass","innerHTML"],[1,"justify-content-end","p-1"],[1,"pt-1","pb-0",2,"background","var(--surface-card)","white-space","nowrap"],["tooltipPosition","left",3,"href","pTooltip"],[1,"pi","pi-download","text-primary",3,"id"],["pButton","","pRipple","","icon","pi pi-ellipsis-v",1,"p-button-text","p-button-primary",3,"click"],["tooltipPosition","top",1,"pi","pi-exclamation-triangle","p-1",3,"pTooltip"],["tooltipPosition","top",1,"pi","pi-eye",3,"pTooltip"],[1,"col-12",2,"text-align","left"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi pi-check-circle","styleClass","p-button-success",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"],["icon","pi pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],["icon","pi pi-times-circle","styleClass","p-button-danger",3,"label","onClick"],["icon","pi pi-check-circle","styleClass","p-button-success",3,"label","onClick"]],template:function(n,i){1&n&&(l(0,"form",0,1)(2,"div",2),D(3,"p-toast",3),c(),l(4,"h2"),_(5),f(6,"translate"),c(),l(7,"div",4),D(8,"p-tieredMenu",5,6),l(10,"div",7)(11,"button",8),v("click",function(r){return i.showContextMenu(null,r)}),f(12,"translate"),c(),_(13," \xa0\xa0\xa0\xa0\xa0 "),l(14,"span",9),m(15,bbe,1,0,"i",10),l(16,"input",11),v("ngModelChange",function(r){return i.searchValue=r}),f(17,"translate"),f(18,"translate"),c()(),l(19,"button",12),v("click",function(){return i.onFilter()}),f(20,"translate"),c(),_(21),f(22,"translate"),l(23,"p-dropdown",13),v("ngModelChange",function(r){return i.selectedRecGroup=r})("onChange",function(){return i.onFilter()}),f(24,"translate"),c(),l(25,"button",14),v("click",function(){return i.refreshing=!0,i.refresh()}),f(26,"translate"),c(),_(27),f(28,"translate"),c(),m(29,Sbe,5,9,"p-table",15),l(30,"p-dialog",16),v("visibleChange",function(r){return i.displayMetadataDlg=r}),f(31,"translate"),l(32,"div",17)(33,"label",18),_(34),f(35,"translate"),c(),l(36,"input",19,20),v("ngModelChange",function(r){return i.program.Title=r}),c()(),l(38,"div",17)(39,"label",21),_(40),f(41,"translate"),c(),l(42,"input",22,23),v("ngModelChange",function(r){return i.program.SubTitle=r}),c()(),l(44,"div",17)(45,"label",24),_(46),f(47,"translate"),c(),l(48,"input",25,26),v("ngModelChange",function(r){return i.program.Inetref=r}),c()(),l(50,"div",17)(51,"label",27),_(52),f(53,"translate"),c(),l(54,"textarea",28,29),v("ngModelChange",function(r){return i.program.Description=r}),c()(),l(56,"div",17)(57,"label",30),_(58),f(59,"translate"),c(),l(60,"p-inputNumber",31),v("ngModelChange",function(r){return i.program.Season=r}),c()(),l(61,"div",17)(62,"label",32),_(63),f(64,"translate"),c(),l(65,"p-inputNumber",33),v("ngModelChange",function(r){return i.program.Episode=r}),c()(),l(66,"div",17)(67,"label",34),_(68),f(69,"translate"),c(),l(70,"p-calendar",35),v("ngModelChange",function(r){return i.program.Airdate=r}),c()(),l(71,"div",17)(72,"label",36),_(73),f(74,"translate"),c(),l(75,"p-dropdown",37,38),v("ngModelChange",function(r){return i.program.Recording.RecGroup=r}),c()(),l(77,"div",17)(78,"label",39),_(79),f(80,"translate"),c(),l(81,"pre"),_(82),c()(),m(83,Mbe,7,9,"ng-template",40),c(),l(84,"p-dialog",41),v("visibleChange",function(r){return i.displayRecGrpDlg=r}),f(85,"translate"),l(86,"div",17)(87,"label",42),_(88),f(89,"translate"),c(),l(90,"input",43,44),v("ngModelChange",function(r){return i.newRecGroup=r}),c()(),l(92,"p-listbox",45,46),v("ngModelChange",function(r){return i.newRecGroup=r}),c(),m(94,kbe,4,7,"ng-template",40),c(),l(95,"p-dialog",47),v("visibleChange",function(r){return i.displayUnsaved=r}),f(96,"translate"),l(97,"p"),_(98),f(99,"translate"),c(),m(100,Ebe,4,6,"ng-template",40),c()()()),2&n&&(a(5),S(g(6,71,"dashboard.recordings.heading")),a(3),d("popup",!0)("model",i.menuToShow),a(3),I("pTooltip",g(12,73,"common.selected_menu")),a(4),d("ngIf",i.searchValue),a(1),I("placeholder",g(17,75,"common.search_placeholder")),I("pTooltip",g(18,77,"dashboard.recordings.regex")),d("ngModel",i.searchValue),a(3),I("pTooltip",g(20,79,"dashboard.guide.title_search")),a(2),x(" \xa0\xa0\xa0 ",g(22,81,"dashboard.recordings.recgrp"),": \xa0 "),a(2),I("placeholder",g(24,83,"settings.chanedit.all")),d("ngModel",i.selectedRecGroup)("options",i.recGroups)("showClear",!0),a(2),I("pTooltip",g(26,85,"common.refresh")),a(2),Ke(" \xa0\xa0\xa0",i.programs.length," ",g(28,87,"common.rows")," "),a(2),d("ngIf",i.showTable),a(1),j(V(117,Lbe)),I("header",g(31,89,"dashboard.recordings.edit_metadata")),d("visible",i.displayMetadataDlg)("modal",!0)("closable",!1)("closeOnEscape",!1),a(4),S(g(35,91,"dashboard.recordings.title")),a(2),d("ngModel",i.program.Title),a(4),S(g(41,93,"dashboard.recordings.subtitle")),a(2),d("ngModel",i.program.SubTitle),a(4),S(g(47,95,"dashboard.recordings.inetref")),a(2),d("ngModel",i.program.Inetref),a(4),S(g(53,97,"dashboard.recordings.description")),a(2),d("rows",5)("cols",30)("ngModel",i.program.Description),a(4),S(g(59,99,"dashboard.recordings.season")),a(2),d("ngModel",i.program.Season)("showButtons",!0)("min",1)("max",99)("step",1),a(3),S(g(64,101,"dashboard.recordings.episode")),a(2),d("ngModel",i.program.Episode)("showButtons",!0)("min",1)("max",99)("step",1),a(3),S(g(69,103,"dashboard.recordings.orig_airdate")),a(2),d("ngModel",i.program.Airdate),a(3),S(g(74,105,"dashboard.sched.recgroup_label")),a(2),j(V(118,Rbe)),d("options",i.recGroups)("ngModel",i.program.Recording.RecGroup)("editable",!0)("maxlength",64),a(4),S(g(80,107,"dashboard.recordings.filename_label")),a(3),S(i.program.FileName),a(2),I("header",g(85,109,"dashboard.recordings.selrecgroup")),d("visible",i.displayRecGrpDlg)("modal",!0)("draggable",!1)("resizable",!1),a(4),S(g(89,111,"dashboard.sched.recgroup_label")),a(2),d("ngModel",i.newRecGroup),a(2),d("options",i.recGroups)("ngModel",i.newRecGroup),a(3),I("header",g(96,113,"common.unsaved_heading")),d("visible",i.displayUnsaved)("modal",!0),a(3),S(g(99,115,"common.unsaved_message")))},dependencies:[Fe,ne,We,Xe,xe,$e,In,Ce,He,$t,ae,Sn,Te,Zo,pn,Gt,vt,es,qe,bt,yn,Sa,Tx,xa,Hp,Rx,Ax,Md,pe],styles:["[_nghost-%COMP%] .p-tieredmenu{border:2px solid}[_nghost-%COMP%] .p-tieredmenu .p-submenu-list{border:2px solid;left:10%;top:2em}.mycell[_ngcontent-%COMP%]{position:relative}.mytext[_ngcontent-%COMP%]{position:absolute;top:50%;transform:translateY(-50%)}"]})}return t})();const Abe=["schedform"],Ni=function(){return{minWidth:"400px"}};function Pbe(t,s){if(1&t){const e=E();l(0,"div",5)(1,"label",63),_(2),f(3,"translate"),c(),l(4,"p-dropdown",64,65),v("ngModelChange",function(i){return C(e),y(p(2).templateId=i)})("onClick",function(){C(e);const i=p(2);return y(i.templateChange(i.recRule))})("onChange",function(){C(e);const i=p(2);return y(i.templateChange(i.recRule))}),c()()}if(2&t){const e=p(2);a(2),S(g(3,7,"dashboard.sched.template_label")),a(2),j(V(9,Ni)),d("options",e.templates)("ngModel",e.templateId)("editable",!1)("maxlength",0)}}function Fbe(t,s){1&t&&(l(0,"label",68),_(1),f(2,"translate"),c()),2&t&&(a(1),x(" ",g(2,1,"dashboard.sched.subtitle_label"),""))}function Nbe(t,s){1&t&&(l(0,"label",68),_(1),f(2,"translate"),c()),2&t&&(a(1),x(" ",g(2,1,"dashboard.sched.add_tables_label"),""))}function Vbe(t,s){if(1&t){const e=E();l(0,"textarea",69),v("ngModelChange",function(i){return C(e),y(p(3).recRule.SubTitle=i)}),_(1," "),c()}if(2&t){const e=p(3);d("ngModel",e.recRule.SubTitle)("disabled","Power Search"!=e.recRule.SearchType)("rows",e.subTitleRows)}}const Bbe=function(){return["None","Power Search"]};function Hbe(t,s){if(1&t&&(l(0,"div",5),m(1,Fbe,3,3,"label",66),m(2,Nbe,3,3,"label",66),m(3,Vbe,2,3,"textarea",67),c()),2&t){const e=p(2);a(1),d("ngIf","None"==e.recRule.SearchType),a(1),d("ngIf","Power Search"==e.recRule.SearchType),a(1),d("ngIf",V(3,Bbe).indexOf(e.recRule.SearchType)>-1)}}function Gbe(t,s){if(1&t&&(l(0,"span"),_(1),c()),2&t){const e=p(2);a(1),Ke("S",e.recRule.Season," E",e.recRule.Episode,"")}}function qbe(t,s){1&t&&(l(0,"label",74),_(1),f(2,"translate"),c()),2&t&&(a(1),x(" ",g(2,1,"dashboard.sched.description_label"),""))}function zbe(t,s){1&t&&(l(0,"label",74),_(1),f(2,"translate"),c()),2&t&&(a(1),x(" ",g(2,1,"dashboard.sched.sqlwhere_label"),""))}function Ube(t,s){1&t&&(l(0,"label",74),_(1),f(2,"translate"),c()),2&t&&(a(1),x(" ",g(2,1,"dashboard.sched.description_label"),""))}function jbe(t,s){1&t&&(l(0,"label",74),_(1),f(2,"translate"),c()),2&t&&(a(1),x(" ",g(2,1,"dashboard.sched.srchValue_label"),""))}const $be=function(){return["None","Manual Search"]};function Wbe(t,s){if(1&t){const e=E();l(0,"div",5)(1,"div",70),m(2,qbe,3,3,"label",71),m(3,zbe,3,3,"label",71),m(4,Ube,3,3,"label",71),m(5,jbe,3,3,"label",72),c(),l(6,"textarea",73),v("ngModelChange",function(i){return C(e),y(p(2).recRule.Description=i)})("focusout",function(){return C(e),y(p(2).onDescriptionBlur())}),_(7," "),c()()}if(2&t){const e=p(2);a(1),d("ngSwitch",e.recRule.SearchType),a(1),d("ngSwitchCase","None"),a(1),d("ngSwitchCase","Power Search"),a(1),d("ngSwitchCase","Manual Search"),a(2),d("ngModel",e.recRule.Description)("disabled",V(7,$be).indexOf(e.recRule.SearchType)>-1)("rows",e.descriptionRows)}}function Kbe(t,s){1&t&&(l(0,"div"),_(1," Examples of SQL Additional Tables and Where Conditions are in the MythTV wiki at"),D(2,"br"),l(3,"a",75),_(4,"Power Search"),c()())}function Qbe(t,s){if(1&t){const e=E();l(0,"div"),D(1,"p-divider"),l(2,"div",5)(3,"label",76),_(4),f(5,"translate"),c(),l(6,"p-dropdown",77),v("ngModelChange",function(i){return C(e),y(p(2).channel=i)})("onChange",function(){return C(e),y(p(2).onChannelChange())}),c()(),l(7,"div",5)(8,"label",78),_(9),f(10,"translate"),c(),l(11,"p-calendar",79),v("ngModelChange",function(i){return C(e),y(p(2).reqDate=i)})("onClose",function(){return C(e),y(p(2).onDateChange())})("keyup.enter",function(){return C(e),y(p(2).onDateChange())})("onBlur",function(){return C(e),y(p(2).onDateChange())}),c()(),l(12,"div",5)(13,"label",80),_(14),f(15,"translate"),c(),l(16,"p-inputNumber",81),v("ngModelChange",function(i){return C(e),y(p(2).reqDuration=i)})("ngModelChange",function(){return C(e),y(p(2).onDurationChange())}),c()()()}if(2&t){const e=p(2);a(4),S(g(5,23,"dashboard.sched.channel_label")),a(2),j(V(29,Ni)),d("options",e.allChannels)("ngModel",e.channel)("editable",!1)("maxlength",0),a(3),S(g(10,25,"dashboard.sched.starttime_label")),a(2),d("ngModel",e.reqDate)("showTime",!0)("stepMinute",5)("dateFormat","yy/mm/dd")("selectOtherMonths",!0)("showIcon",!0)("showOnFocus",!1)("showButtonBar",!0)("clearButtonStyleClass","hidden"),a(3),S(g(15,27,"dashboard.sched.duration_label")),a(2),d("ngModel",e.reqDuration)("showButtons",!0)("min",5)("max",360)("step",5)}}function Jbe(t,s){if(1&t){const e=E();l(0,"div",5)(1,"label",82),_(2),f(3,"translate"),c(),l(4,"div",83)(5,"div",84)(6,"p-radioButton",85),v("ngModelChange",function(i){return C(e),y(p(2).metaPrefix=i)})("ngModelChange",function(){C(e);const i=p(2);return y(i.iCheckbox(i.recRule))}),c(),l(7,"label",86),D(8,"img",87),c()(),l(9,"div",88)(10,"a",89),_(11),f(12,"translate"),c(),D(13,"br"),c(),l(14,"div",84)(15,"p-radioButton",90),v("ngModelChange",function(i){return C(e),y(p(2).metaPrefix=i)})("ngModelChange",function(){C(e);const i=p(2);return y(i.iCheckbox(i.recRule))}),c(),l(16,"label",91),D(17,"img",92),c()(),l(18,"div",88)(19,"a",89),_(20),f(21,"translate"),c(),D(22,"br"),c(),l(23,"div",84)(24,"p-radioButton",93),v("ngModelChange",function(i){return C(e),y(p(2).metaPrefix=i)})("ngModelChange",function(){C(e);const i=p(2);return y(i.iCheckbox(i.recRule))}),c(),l(25,"label",94),D(26,"img",95),c()(),l(27,"div",88)(28,"a",89),_(29),f(30,"translate"),c(),D(31,"br"),c()(),_(32),l(33,"input",96,97),v("ngModelChange",function(i){return C(e),y(p(2).recRule.Inetref=i)})("ngModelChange",function(){C(e);const i=p(2);return y(i.iText(i.recRule))}),c(),l(35,"small",55),_(36),f(37,"translate"),D(38,"br"),c()()}if(2&t){const e=p(2);a(2),S(g(3,13,"dashboard.sched.inetref_label")),a(4),d("ngModel",e.metaPrefix),a(4),I("href",e.URLencode("https://thetvdb.com/search?query="+e.recRule.Title),tn),a(1),x(" ",g(12,15,"dashboard.sched.isearch")," thetvdb.com"),a(4),d("ngModel",e.metaPrefix),a(4),I("href",e.URLencode("https://www.tvmaze.com/search?q="+e.recRule.Title),tn),a(1),x(" ",g(21,17,"dashboard.sched.isearch")," tvmaze.com"),a(4),d("ngModel",e.metaPrefix),a(4),I("href",e.URLencode("https://www.themoviedb.org/search?query="+e.recRule.Title),tn),a(1),x(" ",g(30,19,"dashboard.sched.isearch")," themoviedb.org"),a(3),x(" ",e.metaPrefix," \xa0 "),a(1),d("ngModel",e.recRule.Inetref),a(3),x(" ",g(37,21,"dashboard.sched.inetref_desc"),"")}}function Zbe(t,s){1&t&&(D(0,"p-message",103),f(1,"translate")),2&t&&I("text",g(1,1,"common.savesuccess"))}function Ybe(t,s){if(1&t&&(D(0,"p-message",104),f(1,"translate")),2&t){const e=p(3);vl("text","",g(1,2,"common.backenderror"),": ",e.errortext,"")}}function Xbe(t,s){if(1&t){const e=E();l(0,"div",98),m(1,Zbe,2,3,"p-message",99),m(2,Ybe,2,4,"p-message",100),c(),l(3,"p-button",101),v("onClick",function(){return C(e),y(p(2).close())}),f(4,"translate"),c(),l(5,"p-button",102),v("onClick",function(){return C(e),y(p(2).save())}),f(6,"translate"),c()}if(2&t){const e=p(2),n=B(1);a(1),d("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0),a(1),I("label",g(4,5,"common.close")),a(2),I("label",g(6,7,"common.save")),d("disabled",!n.dirty||0==e.recRule.Id&&"Not Recording"==e.recRule.Type||!e.recRule.Title||e.schedTypeDisabled)}}function eve(t,s){if(1&t){const e=E();l(0,"p-button",105),v("onClick",function(){return C(e),y(p(2).close())}),f(1,"translate"),c(),l(2,"p-button",106),v("onClick",function(){return C(e),y(p(2).displayUnsaved=!1)}),f(3,"translate"),c()}2&t&&(I("label",g(1,2,"common.nosave")),a(2),I("label",g(3,4,"common.continue")))}const tve=function(){return{height:"90vw",width:"700px"}},nve=function(){return["Power Search","Manual Search"]},mD=function(){return{minWidth:"400px",maxHeight:"400px",maxWidth:"640px"}};function ive(t,s){if(1&t){const e=E();l(0,"div")(1,"p-dialog",3),v("visibleChange",function(i){return C(e),y(p().displayDlg=i)}),f(2,"translate"),l(3,"p"),_(4),c(),l(5,"p"),_(6),c(),m(7,Pbe,6,10,"div",4),l(8,"div",5)(9,"label",6),_(10),f(11,"translate"),c(),l(12,"p-dropdown",7,8),v("ngModelChange",function(i){return C(e),y(p().recRule.SearchType=i)})("onChange",function(){return C(e),y(p().onSearchTypeChange())}),c()(),l(14,"div",5)(15,"label",9),_(16),f(17,"translate"),c(),l(18,"textarea",10),v("ngModelChange",function(i){return C(e),y(p().recRule.Title=i)})("focusout",function(){return C(e),y(p().onTitleBlur())}),_(19," "),c()(),m(20,Hbe,4,4,"div",4),l(21,"p"),m(22,Gbe,2,2,"span",2),c(),m(23,Wbe,8,8,"div",4),m(24,Kbe,5,0,"div",2),m(25,Qbe,17,30,"div",2),D(26,"p-divider"),l(27,"div",5)(28,"label",11),_(29),f(30,"translate"),c(),l(31,"p-dropdown",12,13),v("ngModelChange",function(i){return C(e),y(p().recRule.Type=i)}),c()(),l(33,"div",5)(34,"label",14),_(35),f(36,"translate"),c(),l(37,"p-dropdown",15,16),v("ngModelChange",function(i){return C(e),y(p().recRule.RecGroup=i)}),c()(),l(39,"div",5)(40,"p-checkbox",17,18),v("ngModelChange",function(i){return C(e),y(p().recRule.Inactive=i)}),f(42,"translate"),c()(),l(43,"div",5)(44,"label",19),_(45),f(46,"translate"),c(),l(47,"p-dropdown",20,21),v("ngModelChange",function(i){return C(e),y(p().recRule.PlayGroup=i)}),c()(),l(49,"div",5)(50,"label",22),_(51),f(52,"translate"),c(),l(53,"p-inputNumber",23),v("ngModelChange",function(i){return C(e),y(p().recRule.StartOffset=i)}),c()(),l(54,"div",5)(55,"label",24),_(56),f(57,"translate"),c(),l(58,"p-inputNumber",25),v("ngModelChange",function(i){return C(e),y(p().recRule.EndOffset=i)}),c()(),l(59,"div",5)(60,"p-checkbox",26,27),v("ngModelChange",function(i){return C(e),y(p().recRule.NewEpisOnly=i)}),f(62,"translate"),c()(),l(63,"div",5)(64,"label",28),_(65),f(66,"translate"),c(),l(67,"p-inputNumber",29),v("ngModelChange",function(i){return C(e),y(p().recRule.RecPriority=i)}),c()(),l(68,"div",5)(69,"label",30),_(70),f(71,"translate"),c(),l(72,"p-dropdown",31,32),v("ngModelChange",function(i){return C(e),y(p().recRule.PreferredInput=i)}),c()(),l(74,"div",5)(75,"label",33),_(76),f(77,"translate"),c(),l(78,"p-dropdown",34,35),v("ngModelChange",function(i){return C(e),y(p().recRule.DupMethod=i)}),c()(),l(80,"div",5)(81,"label",36),_(82),f(83,"translate"),c(),l(84,"p-dropdown",37,38),v("ngModelChange",function(i){return C(e),y(p().recRule.DupIn=i)}),c()(),l(86,"div",5)(87,"label",39),_(88),f(89,"translate"),c(),l(90,"p-dropdown",40,41),v("ngModelChange",function(i){return C(e),y(p().recRule.AutoExtend=i)}),c()(),l(92,"div",5)(93,"label",42),_(94),f(95,"translate"),c(),l(96,"p-multiSelect",43,44),v("ngModelChange",function(i){return C(e),y(p().selectedFilters=i)})("onChange",function(){C(e);const i=p();return y(i.filterToRec(i.recRule))}),c()(),l(98,"div",5)(99,"label",45),_(100),f(101,"translate"),c(),l(102,"p-dropdown",46,47),v("ngModelChange",function(i){return C(e),y(p().recRule.RecProfile=i)}),c()(),l(104,"div",5)(105,"label",48),_(106),f(107,"translate"),c(),l(108,"p-dropdown",49,50),v("ngModelChange",function(i){return C(e),y(p().recRule.StorageGroup=i)}),c()(),l(110,"div",5)(111,"label",51),_(112),f(113,"translate"),c(),l(114,"p-inputNumber",52),v("ngModelChange",function(i){return C(e),y(p().recRule.MaxEpisodes=i)}),c()(),l(115,"div",5)(116,"p-checkbox",53,54),v("ngModelChange",function(i){return C(e),y(p().recRule.MaxNewest=i)}),f(118,"translate"),c(),l(119,"small",55),_(120),f(121,"translate"),c()(),l(122,"div",5)(123,"p-checkbox",56,57),v("ngModelChange",function(i){return C(e),y(p().recRule.AutoExpire=i)}),f(125,"translate"),c()(),l(126,"div",5)(127,"label",58),_(128),f(129,"translate"),c(),l(130,"p-multiSelect",59,60),v("ngModelChange",function(i){return C(e),y(p().selectedPostProc=i)})("onChange",function(){C(e);const i=p();return y(i.postProcToRec(i.recRule))}),c()(),m(132,Jbe,39,23,"div",4),D(133,"br")(134,"br")(135,"br")(136,"br")(137,"br")(138,"br")(139,"br")(140,"br")(141,"br")(142,"br")(143,"br")(144,"br")(145,"br")(146,"br"),m(147,Xbe,7,9,"ng-template",61),c(),l(148,"p-dialog",62),v("visibleChange",function(i){return C(e),y(p().displayUnsaved=i)}),f(149,"translate"),l(150,"p"),_(151),f(152,"translate"),c(),m(153,eve,4,6,"ng-template",61),c()()}if(2&t){const e=p();a(1),j(V(199,tve)),I("header",g(2,149,"dashboard.sched.heading")),d("visible",e.displayDlg)("modal",!0)("closable",!1)("closeOnEscape",!1),a(3),x(" ",e.recRule.CallSign,""),a(2),Xr(" ",e.utility.formatDate(e.recRule.StartTime)," ",e.utility.formatTime(e.recRule.StartTime)," - ",e.utility.formatTime(e.recRule.EndTime)," "),a(1),d("ngIf","Recording Template"!=e.recRule.Type),a(3),S(g(11,151,"dashboard.sched.srchtype_label")),a(2),j(V(200,Ni)),d("options",e.srchTypeList)("ngModel",e.recRule.SearchType)("editable",!1)("maxlength",0)("disabled",e.srchTypeDisabled),a(4),S(g(17,153,"dashboard.sched.title_label")),a(2),d("ngModel",e.recRule.Title)("disabled",-1==V(201,nve).indexOf(e.recRule.SearchType)&&"Recording Template"!=e.recRule.Type||e.recRule.Id==(null==e.defaultTemplate?null:e.defaultTemplate.Id))("rows",e.titleRows),a(2),d("ngIf","Recording Template"!=e.recRule.Type),a(2),d("ngIf",e.recRule.Season&&e.recRule.Episode),a(1),d("ngIf","Recording Template"!=e.recRule.Type),a(1),d("ngIf","Power Search"==e.recRule.SearchType),a(1),d("ngIf","Manual Search"==e.recRule.SearchType),a(4),S(g(30,155,"dashboard.sched.type_label")),a(2),j(V(202,Ni)),d("options",e.typeList)("ngModel",e.recRule.Type)("editable",!1)("maxlength",0)("disabled",e.schedTypeDisabled),a(4),S(g(36,157,"dashboard.sched.recgroup_label")),a(2),j(V(203,Ni)),d("options",e.recGroups)("ngModel",e.recRule.RecGroup)("editable",!0)("maxlength",64),a(3),I("label",g(42,159,"dashboard.sched.active_label")),d("ngModel",e.recRule.Inactive)("binary",!0)("trueValue",!1)("falseValue",!0)("disabled",e.override),a(5),S(g(46,161,"dashboard.sched.playgroup_label")),a(2),j(V(204,Ni)),d("options",e.playGroups)("ngModel",e.recRule.PlayGroup)("editable",!1)("maxlength",0),a(4),S(g(52,163,"dashboard.sched.startoffset_label")),a(2),d("ngModel",e.recRule.StartOffset)("showButtons",!0)("min",-480)("max",480)("step",1),a(3),S(g(57,165,"dashboard.sched.endoffset_label")),a(2),d("ngModel",e.recRule.EndOffset)("showButtons",!0)("min",-480)("max",480)("step",1),a(2),I("label",g(62,167,"dashboard.sched.newepis_label")),d("ngModel",e.recRule.NewEpisOnly)("binary",!0),a(5),S(g(66,169,"dashboard.sched.priority_label")),a(2),d("ngModel",e.recRule.RecPriority)("showButtons",!0)("min",-100)("max",100)("step",1),a(3),S(g(71,171,"dashboard.sched.prefinput_label")),a(2),j(V(205,Ni)),d("options",e.inputList.Inputs)("ngModel",e.recRule.PreferredInput)("editable",!1)("maxlength",0),a(4),S(g(77,173,"dashboard.sched.dupmethod_label")),a(2),j(V(206,Ni)),d("options",e.dupMethodList)("ngModel",e.recRule.DupMethod)("editable",!1)("maxlength",0),a(4),S(g(83,175,"dashboard.sched.dupin_label")),a(2),j(V(207,Ni)),d("options",e.dupInList)("ngModel",e.recRule.DupIn)("editable",!1)("maxlength",0),a(4),S(g(89,177,"dashboard.sched.autoextend_label")),a(2),j(V(208,Ni)),d("options",e.autoExtendList)("ngModel",e.recRule.AutoExtend)("editable",!1)("maxlength",0),a(4),S(g(95,179,"dashboard.sched.filters_label")),a(2),j(V(209,mD)),d("options",e.recRuleFilters)("ngModel",e.selectedFilters),a(4),S(g(101,181,"dashboard.sched.recprofile_label")),a(2),j(V(210,Ni)),d("options",e.recProfileList)("ngModel",e.recRule.RecProfile)("editable",!1)("maxlength",0),a(4),S(g(107,183,"dashboard.sched.sgroup_label")),a(2),j(V(211,Ni)),d("options",e.recStorageGroups)("ngModel",e.recRule.StorageGroup)("editable",!1)("maxlength",0),a(4),S(g(113,185,"dashboard.sched.maxeps_label")),a(2),d("ngModel",e.recRule.MaxEpisodes)("showButtons",!0)("min",0)("max",100)("step",1),a(2),I("label",g(118,187,"dashboard.sched.maxnewest_label")),d("ngModel",e.recRule.MaxNewest)("binary",!0),a(4),x(" ",g(121,189,"dashboard.sched.maxnewest_desc")," "),a(3),I("label",g(125,191,"dashboard.sched.autoexpire_label")),d("ngModel",e.recRule.AutoExpire)("binary",!0),a(5),S(g(129,193,"dashboard.sched.postproc_label")),a(2),j(V(212,mD)),d("options",e.postProcList)("ngModel",e.selectedPostProc)("filter",!0),a(2),d("ngIf","Recording Template"!=e.recRule.Type),a(16),I("header",g(149,195,"common.unsaved_heading")),d("visible",e.displayUnsaved)("modal",!0),a(3),S(g(152,197,"common.unsaved_message"))}}let f1=(()=>{class t{constructor(e,n,i,o,r){this.dvrService=e,this.translate=n,this.mythService=i,this.utility=o,this.channelService=r,this.displayDlg=!1,this.displayUnsaved=!1,this.loadCount=0,this.successCount=0,this.errorCount=0,this.errortext="",this.srchTypeDisabled=!0,this.titleRows=1,this.subTitleRows=1,this.descriptionRows=5,this.override=!1,this.reqDate=new Date,this.reqDuration=60,this.metaPrefix="",this.templateId=0,this.neverRecord=!1,this.schedTypeDisabled=!1,this.htmlRegex=new RegExp("|"),this.recRules=[],this.playGroups=[],this.recGroups=[],this.recStorageGroups=[],this.inputList={Inputs:[]},this.recRuleFilters=[],this.selectedFilters=[],this.templates=[],this.typeList=[],this.allChannels=[],this.srchTypeList=[{prompt:this.translate.instant("recrule.srch_None"),value:"None"},{prompt:this.translate.instant("recrule.srch_PowerSearch"),value:"Power Search"},{prompt:this.translate.instant("recrule.srch_TitleSearch"),value:"Title Search"},{prompt:this.translate.instant("recrule.srch_KeywordSearch"),value:"Keyword Search"},{prompt:this.translate.instant("recrule.srch_PeopleSearch"),value:"People Search"},{prompt:this.translate.instant("recrule.srch_ManualSearch"),value:"Manual Search"}],this.dupMethodList=[{prompt:this.translate.instant("dashboard.sched.dupmethod.none"),value:"None"},{prompt:this.translate.instant("dashboard.sched.dupmethod.s_and_d"),value:"Subtitle and Description"},{prompt:this.translate.instant("dashboard.sched.dupmethod.s_then_d"),value:"Subtitle then Description"},{prompt:this.translate.instant("dashboard.sched.dupmethod.s"),value:"Subtitle"},{prompt:this.translate.instant("dashboard.sched.dupmethod.d"),value:"Description"}],this.dupInList=[{prompt:this.translate.instant("dashboard.sched.dupin.both"),value:"All Recordings"},{prompt:this.translate.instant("dashboard.sched.dupin.curr"),value:"Current Recordings"},{prompt:this.translate.instant("dashboard.sched.dupin.prev"),value:"Previous Recordings"}],this.autoExtendList=[{prompt:this.translate.instant("dashboard.sched.extend_none"),value:"None"},{prompt:"ESPN",value:"ESPN"},{prompt:"MLB",value:"MLB"}],this.recProfileList=[{prompt:this.translate.instant("dashboard.sched.recprof.default"),value:"Default"},{prompt:this.translate.instant("dashboard.sched.recprof.livetv"),value:"Live TV"},{prompt:this.translate.instant("dashboard.sched.recprof.highq"),value:"High Quality"},{prompt:this.translate.instant("dashboard.sched.recprof.lowq"),value:"Low Quality"}],this.postProcList=[{prompt:this.translate.instant("dashboard.sched.postproc.autocommflag"),value:"AutoCommflag"},{prompt:this.translate.instant("dashboard.sched.postproc.autometalookup"),value:"AutoMetaLookup"},{prompt:this.translate.instant("dashboard.sched.postproc.autotranscode"),value:"AutoTranscode"},{prompt:"1",value:"AutoUserJob1"},{prompt:"2",value:"AutoUserJob2"},{prompt:"3",value:"AutoUserJob3"},{prompt:"4",value:"AutoUserJob4"}],this.selectedPostProc=[],this.saveObserver={next:u=>{this.recRule?(this.recRule.Id||"Never Record"==this.recRule.Type||"Forget History"==this.recRule.Type)&&u.bool?(this.successCount++,this.currentForm.form.markAsPristine(),("Never Record"==this.recRule.Type||this.neverRecord)&&(this.schedTypeDisabled=!0),setTimeout(()=>this.inter.summaryComponent.refresh(),3e3),"Not Recording"==this.recRule.Type&&(this.recRule.Id=0)):!this.recRule.Id&&u.uint?(this.successCount++,this.currentForm.form.markAsPristine(),setTimeout(()=>this.inter.summaryComponent.refresh(),3e3),this.recRule.Id=u.uint):(this.errorCount++,this.currentForm.form.markAsDirty()):(console.log("ERROR: recRule is undefined"),this.errorCount++)},error:u=>{if(console.error(u),400==u.status){let h=u.error.split(this.htmlRegex);h.length>1&&(this.errortext=h[1])}this.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){this.inter.sched=this}loadLists(){let e;this.recRules=[],this.playGroups=[],this.recGroups=[],this.recStorageGroups=[],this.inputList.Inputs=[],this.recRuleFilters=[],this.loadCount=0,this.errorCount=0,this.dvrService.GetRecordScheduleList({}).subscribe({next:n=>{this.recRules=n.RecRuleList.RecRules,this.loadSuccess()},error:n=>this.loadFail()}),this.dvrService.GetPlayGroupList().subscribe({next:n=>{this.playGroups=n.PlayGroupList,this.playGroups.unshift("Default"),this.loadSuccess()},error:n=>this.loadFail()}),this.dvrService.GetRecGroupList().subscribe({next:n=>{this.recGroups=n.RecGroupList,this.loadSuccess()},error:n=>this.loadFail()}),this.dvrService.GetRecStorageGroupList().subscribe({next:n=>{this.recStorageGroups=n.RecStorageGroupList,this.loadSuccess()},error:n=>this.loadFail()}),this.dvrService.GetInputList().subscribe({next:n=>{this.inputList=n.InputList,this.inputList.Inputs.unshift({Id:0,CardId:0,SourceId:0,InputName:"",DisplayName:this.translate.instant("dashboard.sched.input_any"),QuickTune:!1,RecPriority:0,ScheduleOrder:0,LiveTVOrder:0}),this.loadSuccess()},error:n=>this.loadFail()}),this.dvrService.GetRecRuleFilterList().subscribe({next:n=>{this.recRuleFilters=n.RecRuleFilterList.RecRuleFilters,this.loadSuccess()},error:n=>this.loadFail()});for(let n=1;n<5;n++)e=this.translate.instant("settings.services.job_default",{num:n}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"UserJobDesc"+n,Default:e}).subscribe({next:i=>{this.postProcList[n+2].prompt=i.String,this.loadSuccess()},error:()=>this.loadFail()});this.channelService.GetChannelInfoList({Details:!0}).subscribe(n=>{this.allChannels=n.ChannelInfoList.ChannelInfos,this.allChannels.forEach(i=>i.Description=i.ChanNum+" "+i.ChannelName+" ("+i.CallSign+")"),this.loadSuccess()})}loadSuccess(){this.loadCount++,11==this.loadCount&&(this.loadCount=0,this.setupData(),this.displayDlg=!0,this.currentForm.form.markAsPristine())}loadFail(){this.errorCount++}open(e,n,i){this.templateId=0,this.reqProgram=e,this.reqChannel=n,this.reqRecRule=i,this.titleRows=1,this.neverRecord=!1,this.successCount=0,this.errorCount=0,this.errortext="",this.metaPrefix="",e||i?(this.srchTypeDisabled=!0,this.srchTypeList[0].inactive=!1):(this.srchTypeDisabled=!1,this.srchTypeList[0].inactive=!0),this.schedTypeDisabled=!1,this.loadLists()}setupData(){let e=!1;this.program=this.reqProgram;let n="";this.reqRecRule&&(n=this.reqRecRule.Type),this.reqRecRule?["Override Recording","Do not Record"].indexOf(n)>-1&&!this.reqRecRule.Id?(e=!0,this.recRule=void 0):this.recRule=Object.assign({},this.reqRecRule):this.recRule=void 0,this.channel=void 0,this.reqChannel?this.channel=this.reqChannel:this.reqRecRule&&(this.channel=this.allChannels.find(o=>o.ChanId==this.reqRecRule?.ChanId)),this.program&&!this.channel&&this.program.Channel&&(this.channel=this.program.Channel);var i=0;if(this.typeList=[],this.templates=[{Id:0,Title:""}],this.defaultTemplate=void 0,this.program&&this.program.Recording&&(i=this.program.Recording.RecordId),this.recRules.forEach((o,r)=>{o.Id==i&&(this.recRule=o,n=this.recRule.Type),"Recording Template"==o.Type&&(this.templates.push(o),"Default"==o.Category&&(this.defaultTemplate=o))}),e&&(this.recRule=Object.assign({},this.recRule),this.recRule.ParentId=this.recRule.Id,this.recRule.Id=0,this.recRule.SearchType="None",n="Override Recording"),this.recRule||(this.recRule={Id:0}),this.recRule.Title||(this.recRule.Title="",this.recRule.SubTitle="",this.recRule.Description="",this.defaultTemplate&&this.mergeTemplate(this.recRule,this.defaultTemplate)),this.recRule.SearchType||(this.recRule.SearchType="None"),this.program&&this.channel&&"None"==this.recRule.SearchType&&this.mergeProgram(this.recRule,this.program,this.channel),"NeverRecord"==this.reqProgram?.Recording?.StatusName&&(this.neverRecord=!0,n="Never Record"),n||(n="Not Recording"),!this.recRule.StartTime){let o=new Date;this.recRule.StartTime=o.toISOString(),this.recRule.FindDay=(o.getDay()+1)%7,this.recRule.FindTime=o.toTimeString().slice(0,8)}this.filterFromRec(this.recRule),this.postProcFromRec(this.recRule),this.recRule.Type=n,this.setupTypeList(this.recRule),this.srchTypeDisabled||this.onSearchTypeChange(),this.override&&(this.recRule.Inactive=!1),setTimeout(()=>{e&&(n="Not Recording"),this.recRule&&(this.recRule.Type=n),this.currentForm.form.markAsPristine()},10)}setupTypeList(e){let n=e.Type;if(this.typeList.length=0,this.override=!1,"Recording Template"==n)this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.mod_template"),value:"Recording Template"}),"Default"!=e.Category&&e.Id>0&&this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.del_template"),value:"Not Recording"});else if(["Override Recording","Do not Record"].indexOf(n)>-1||this.neverRecord)this.override=!0,this.neverRecord?this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.forget_history"),value:"Forget History"}):this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.del_override"),value:"Not Recording"},{prompt:this.translate.instant("dashboard.sched.type.rec_override"),value:"Override Recording"},{prompt:this.translate.instant("dashboard.sched.type.dont_rec_override"),value:"Do not Record"}),this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.never_rec_override"),value:"Never Record"}),("CurrentRecording"==this.reqProgram?.Recording?.StatusName||"PreviousRecording"==this.reqProgram?.Recording?.StatusName)&&this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.forget_history"),value:"Forget History"});else{const i="Manual Search"==e.SearchType,o="None"!=e.SearchType;this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.not"),value:"Not Recording"}),(e.CallSign&&!o||i)&&this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.this"),value:"Single Record"}),i||this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.one"),value:"Record One"}),(!e.CallSign||o)&&this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.weekly"),value:"Record Weekly"},{prompt:this.translate.instant("dashboard.sched.type.daily"),value:"Record Daily"}),i||this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.all"),value:"Record All"})}-1==this.typeList.findIndex(i=>i.value==e.Type)&&(e.Type=this.typeList[0].value)}mergeProgram(e,n,i){e.Title=n.Title,e.SubTitle=n.SubTitle,e.Description=n.Description,e.Category=n.Category,e.StartTime=n.StartTime,e.EndTime=n.EndTime,e.SeriesId=n.SeriesId,e.ProgramId=n.ProgramId,e.ChanId=i.ChanId,e.CallSign=i.CallSign,e.Season=n.Season,e.Episode=n.Episode;let o=new Date(e.StartTime);e.FindDay=(o.getDay()+1)%7,e.FindTime=o.toTimeString().slice(0,8)}filterFromRec(e){this.selectedFilters=[],this.recRuleFilters.forEach(n=>{e.Filter&1<{e.Filter|=1<{n[i.value]&&this.selectedPostProc.push(i.value)})}postProcToRec(e){let n=e;this.postProcList.forEach(i=>n[i.value]=!1),this.selectedPostProc.forEach(i=>n[i]=!0)}iCheckbox(e){e.Inetref||(e.Inetref=""),e.Inetref=e.Inetref.includes(".py_")?e.Inetref.replace(/^.*\.py_/,this.metaPrefix):this.metaPrefix+e.Inetref}iText(e){this.metaPrefix=e.Inetref.replace(/_.*/,"_"),this.metaPrefix.endsWith(".py_")||(this.metaPrefix="")}templateChange(e){if(this.templateId){const n=this.templates.find(i=>i.Id==this.templateId);n&&this.mergeTemplate(e,n)}}onSearchTypeChange(){this.recRule&&(this.recRule.Title="",this.reqDate=new Date,this.reqDate.setMinutes(0),this.reqDate.setSeconds(0,0),this.reqDuration=60,this.onDateChange(),"Manual Search"==this.recRule.SearchType&&(this.recRule.Description="",setTimeout(()=>this.onChannelChange(),100)),this.subTitleRows="Power Search"==this.recRule.SearchType?5:1,this.descriptionRows=["None","Power Search"].indexOf(this.recRule.SearchType)>-1?5:1,this.recRule.SubTitle="",this.recRule.Description="",this.setupTypeList(this.recRule)),this.onTitleBlur(),this.onDescriptionBlur()}onTitleBlur(){if(this.recRule){if(this.recRule.Title=this.recRule.Title.trim(),this.recRule.Title.length>0){let e;["Manual Search","Power Search"].indexOf(this.recRule.SearchType)>-1&&this.recRule.Title.length>0&&(e="("+this.trSearch(this.recRule.SearchType)+")"),"Recording Template"==this.recRule.Type&&this.recRule.Title.length>0&&(e="("+this.translate.instant("recrule.template")+")"),e&&-1==this.recRule.Title.indexOf(e)&&(this.recRule.Title=this.recRule.Title+" "+e)}"Manual Search"==this.recRule.SearchType&&(this.recRule.Description=this.recRule.Title)}}onDescriptionBlur(){this.recRule&&(this.recRule.Description=this.recRule.Description.trim(),["Title Search","Keyword Search","People Search"].indexOf(this.recRule.SearchType)>-1&&(this.recRule.Title=this.recRule.Description.length>0?this.recRule.Description+" ("+this.trSearch(this.recRule.SearchType)+")":""))}onChannelChange(){this.recRule&&this.channel&&(this.recRule.ChanId=this.channel.ChanId,this.recRule.CallSign=this.channel.CallSign)}onDateChange(){this.recRule&&(this.recRule.StartTime=this.reqDate.toISOString(),this.recRule.FindDay=(this.reqDate.getDay()+1)%7,this.recRule.FindTime=this.reqDate.toTimeString().slice(0,8),this.onDurationChange())}onDurationChange(){if(this.recRule){let e=new Date(this.recRule.StartTime),n=new Date(e.getTime()+6e4*this.reqDuration);this.recRule.EndTime=n.toISOString()}}trSearch(e){return this.translate.instant("recrule.srch_"+e.replace(" ",""))}mergeTemplate(e,n){e.Inactive=n.Inactive,e.RecPriority=n.RecPriority,e.PreferredInput=n.PreferredInput,e.StartOffset=n.StartOffset,e.EndOffset=n.EndOffset,e.DupMethod=n.DupMethod,e.DupIn=n.DupIn,e.NewEpisOnly=n.NewEpisOnly,e.Filter=n.Filter,e.RecProfile=n.RecProfile,e.RecGroup=n.RecGroup,e.StorageGroup=n.StorageGroup,e.PlayGroup=n.PlayGroup,e.AutoExpire=n.AutoExpire,e.MaxEpisodes=n.MaxEpisodes,e.MaxNewest=n.MaxNewest,e.AutoCommflag=n.AutoCommflag,e.AutoMetaLookup=n.AutoMetaLookup,e.AutoTranscode=n.AutoTranscode,e.AutoUserJob1=n.AutoUserJob1,e.AutoUserJob2=n.AutoUserJob2,e.AutoUserJob3=n.AutoUserJob3,e.AutoUserJob4=n.AutoUserJob4,e.Transcoder=n.Transcoder,this.postProcFromRec(e),this.filterFromRec(e)}close(){!this.recRule||0==this.recRule.Id&&"Not Recording"==this.recRule.Type?this.displayDlg=!1:this.currentForm.dirty&&!this.schedTypeDisabled?this.displayUnsaved?(this.displayUnsaved=!1,this.displayDlg=!1,this.currentForm.form.markAsPristine()):this.displayUnsaved=!0:(this.displayDlg=!1,this.displayUnsaved=!1)}save(){if(this.errortext="",this.recRule){if("Forget History"==this.recRule.Type)return void(this.program&&this.channel&&this.dvrService.AllowReRecord(void 0,this.channel.ChanId,this.program.StartTime).subscribe(this.saveObserver));if(this.neverRecord)return void this.currentForm.form.markAsPristine();if("Never Record"==this.recRule.Type)return void this.dvrService.AddDontRecordSchedule({ChanId:this.recRule.ChanId,StartTime:this.recRule.StartTime,NeverRecord:!0}).subscribe(this.saveObserver);if(0!=this.recRule.Id||"Not Recording"!=this.recRule.Type)if(this.errorCount=0,this.successCount=0,this.recRule.Id>0&&"Not Recording"==this.recRule.Type)this.dvrService.RemoveRecordSchedule(this.recRule.Id).subscribe(this.saveObserver);else if(this.recRule.Id>0){const e=this.createRequest(this.recRule);e.RecordId=this.recRule.Id,this.dvrService.UpdateRecordSchedule(e).subscribe(this.saveObserver)}else{const e=this.createRequest(this.recRule);this.dvrService.AddRecordSchedule(e).subscribe(this.saveObserver)}}}createRequest(e){return{Title:e.Title,Subtitle:e.SubTitle,Description:e.Description,Category:e.Category,StartTime:e.StartTime,EndTime:e.EndTime,SeriesId:e.SeriesId,ProgramId:e.ProgramId,ChanId:e.ChanId,Station:e.CallSign,FindDay:e.FindDay,FindTime:e.FindTime,ParentId:e.ParentId,Inactive:e.Inactive,Season:e.Season,Episode:e.Episode,Inetref:e.Inetref,Type:e.Type,SearchType:e.SearchType,RecPriority:e.RecPriority,PreferredInput:e.PreferredInput,StartOffset:e.StartOffset,EndOffset:e.EndOffset,LastRecorded:e.LastRecorded,DupMethod:e.DupMethod,DupIn:e.DupIn,NewEpisOnly:e.NewEpisOnly,Filter:e.Filter,RecProfile:e.RecProfile,RecGroup:e.RecGroup,StorageGroup:e.StorageGroup,PlayGroup:e.PlayGroup,AutoExpire:e.AutoExpire,MaxEpisodes:e.MaxEpisodes,MaxNewest:e.MaxNewest,AutoCommflag:e.AutoCommflag,AutoTranscode:e.AutoTranscode,AutoMetaLookup:e.AutoMetaLookup,AutoUserJob1:e.AutoUserJob1,AutoUserJob2:e.AutoUserJob2,AutoUserJob3:e.AutoUserJob3,AutoUserJob4:e.AutoUserJob4,Transcoder:e.Transcoder,AutoExtend:e.AutoExtend}}URLencode(e){return encodeURI(e)}confirm(e){return ue(window.confirm(e))}canDeactivate(){return!this.currentForm||!this.currentForm.dirty||this.confirm(this.translate.instant("settings.common.warning"))}onWindowClose(e){this.currentForm&&this.currentForm.dirty&&(e.preventDefault(),e.returnValue=!1)}static#e=this.\u0275fac=function(n){return new(n||t)(M(sr),M(Le),M(Wt),M(Ts),M(Co))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-schedule"]],viewQuery:function(n,i){if(1&n&&K(Abe,5),2&n){let o;H(o=G())&&(i.currentForm=o.first)}},hostBindings:function(n,i){1&n&&v("beforeunload",function(r){return i.onWindowClose(r)},0,Nn)},inputs:{inter:"inter"},decls:3,vars:1,consts:[["name","schedform",1,"ml-3","mr-3"],["schedform","ngForm"],[4,"ngIf"],[3,"header","visible","modal","closable","closeOnEscape","visibleChange"],["class","form-group field",4,"ngIf"],[1,"form-group","field"],["for","SearchType",1,"label","block"],["optionLabel","prompt","optionValue","value","name","SearchType","optionDisabled","inactive",3,"options","ngModel","editable","maxlength","disabled","ngModelChange","onChange"],["SearchType","ngModel"],["for","Title",1,"label","block"],["pInputTextArea","","id","Title","name","Title",1,"text-lg","mb-2","form-control","w-full",3,"ngModel","disabled","rows","ngModelChange","focusout"],["for","Type",1,"label","block"],["optionLabel","prompt","optionValue","value","name","Type",3,"options","ngModel","editable","maxlength","disabled","ngModelChange"],["Type","ngModel"],["for","RecGroup",1,"label","block"],["name","RecGroup",3,"options","ngModel","editable","maxlength","ngModelChange"],["RecGroup","ngModel"],["inputId","Active","name","Active",1,"label","mb-2","w-full",3,"ngModel","binary","label","trueValue","falseValue","disabled","ngModelChange"],["Active","ngModel"],["for","PlayGroup",1,"label","block"],["PlayGroup","Type","name","PlayGroup",3,"options","ngModel","editable","maxlength","ngModelChange"],["PlayGroup","ngModel"],["for","StartOffset",1,"label","block"],["name","StartOffset","id","StartOffset",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","EndOffset",1,"label","block"],["name","EndOffset","id","EndOffset",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","NewEpisOnly","name","NewEpisOnly",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["UseEIT","ngModel"],["for","RecPriority",1,"label","block"],["name","RecPriority","id","RecPriority",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","PreferredInput",1,"label","block"],["optionLabel","DisplayName","optionValue","Id","name","PreferredInput",3,"options","ngModel","editable","maxlength","ngModelChange"],["PreferredInput","ngModel"],["for","DupMethod",1,"label","block"],["optionLabel","prompt","optionValue","value","name","DupMethod",3,"options","ngModel","editable","maxlength","ngModelChange"],["DupMethod","ngModel"],["for","DupIn",1,"label","block"],["optionLabel","prompt","optionValue","value","name","DupIn",3,"options","ngModel","editable","maxlength","ngModelChange"],["DupIn","ngModel"],["for","AutoExtend",1,"label","block"],["optionLabel","prompt","optionValue","value","name","AutoExtend",3,"options","ngModel","editable","maxlength","ngModelChange"],["AutoExtend","ngModel"],["for","Filters",1,"label","block"],["optionLabel","Description","optionValue","Id","name","Filters",3,"options","ngModel","ngModelChange","onChange"],["Filters","ngModel"],["for","RecProfile",1,"label","block"],["optionLabel","prompt","optionValue","value","name","RecProfile",3,"options","ngModel","editable","maxlength","ngModelChange"],["RecProfile","ngModel"],["for","StorageGroup",1,"label","block"],["name","StorageGroup",3,"options","ngModel","editable","maxlength","ngModelChange"],["StorageGroup","ngModel"],["for","MaxEpisodes",1,"label","block"],["name","MaxEpisodes","id","MaxEpisodes",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","MaxNewest","name","MaxNewest",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["MaxNewest","ngModel"],[1,"block"],["inputId","AutoExpire","name","AutoExpire",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["AutoExpire","ngModel"],["for","PostProc",1,"label","block"],["optionLabel","prompt","optionValue","value","name","PostProc",3,"options","ngModel","filter","ngModelChange","onChange"],["PostProc","ngModel"],["pTemplate","footer"],[3,"header","visible","modal","visibleChange"],["for","Template",1,"label","block"],["optionLabel","Title","optionValue","Id","name","Template",1,"pr-2",3,"options","ngModel","editable","maxlength","ngModelChange","onClick","onChange"],["Template","ngModel"],["for","SubTitle","class","label block",4,"ngIf"],["pInputTextArea","","id","SubTitle","name","SubTitle","class","text-lg mb-2 form-control w-full",3,"ngModel","disabled","rows","ngModelChange",4,"ngIf"],["for","SubTitle",1,"label","block"],["pInputTextArea","","id","SubTitle","name","SubTitle",1,"text-lg","mb-2","form-control","w-full",3,"ngModel","disabled","rows","ngModelChange"],[3,"ngSwitch"],["for","Description","class","label block mb-2",4,"ngSwitchCase"],["for","Description","class","label block mb-2",4,"ngSwitchDefault"],["pInputTextArea","","id","Description","name","Description",1,"text-lg","mb-2","form-control","w-full",3,"ngModel","disabled","rows","ngModelChange","focusout"],["for","Description",1,"label","block","mb-2"],["href","https://www.mythtv.org/wiki/Power_Search","target","_blank"],["for","ChanId",1,"label","block"],["optionLabel","Description","name","Channel",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["for","StartTime",1,"label","block"],["name","StartTime",3,"ngModel","showTime","stepMinute","dateFormat","selectOtherMonths","showIcon","showOnFocus","showButtonBar","clearButtonStyleClass","ngModelChange","onClose","keyup.enter","onBlur"],["for","Duration",1,"label","block"],["name","Duration","id","Duration",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","Inetref",1,"label","block"],[1,"grid","p-0"],[1,"col-5","flex","align-items-center"],["name","prefix","value","ttvdb4.py_","inputId","ttvdb",3,"ngModel","ngModelChange"],["for","ttvdb"],["src","images/metadata/thetvdb.png","alt","thtvdb","height","40",1,"pl-1"],[1,"col-7","flex","align-items-center"],["target","_blank",3,"href"],["name","prefix","value","tvmaze.py_","inputId","tvmaze",3,"ngModel","ngModelChange"],["for","tvmaze"],["src","images/metadata/tvmaze.png","alt","tvmaze","height","40",1,"pl-1"],["name","prefix","value","tmdb3.py_","inputId","tmdb",3,"ngModel","ngModelChange"],["for","tmdb"],["src","images/metadata/themoviedb.svg","alt","themoviedb","height","40",1,"pl-1"],["pInputText","","id","Inetref","name","Inetref",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Inetref","ngModel"],[1,"col-12",2,"text-align","left"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi pi-check-circle","styleClass","p-button-success",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"],["icon","pi pi-times-circle","styleClass","p-button-danger",3,"label","onClick"],["icon","pi pi-check-circle","styleClass","p-button-success",3,"label","onClick"]],template:function(n,i){1&n&&(l(0,"form",0,1),m(2,ive,154,213,"div",2),c()),2&n&&(a(2),d("ngIf",i.recRule))},dependencies:[ne,Go,Al,hg,We,Xe,xe,$e,In,Ce,He,ae,Te,Zo,ln,pn,yj,Gt,vt,qe,Ic,Lx,pe],styles:["a[_ngcontent-%COMP%]:link, a[_ngcontent-%COMP%]:visited, a[_ngcontent-%COMP%]:active{background-color:#fff}"]})}return t})();const sve=["table"],ove=["row"],rve=function(){return{width:"2rem",height:"2rem"}};function ave(t,s){1&t&&(l(0,"div"),D(1,"p-progressSpinner"),c()),2&t&&(a(1),j(V(2,rve)))}function lve(t,s){if(1&t){const e=E();l(0,"button",19),v("click",function(){return C(e),y(p(3).refresh())}),f(1,"translate"),c(),_(2),f(3,"translate")}if(2&t){const e=p(3);I("pTooltip",g(1,3,"common.refresh")),a(2),Ke(" \xa0\xa0\xa0",e.programs.length," ",g(3,5,"common.rows")," ")}}function cve(t,s){if(1&t){const e=E();l(0,"div",14),_(1),f(2,"translate"),l(3,"p-dropdown",15),v("ngModelChange",function(i){return C(e),y(p(2).selectedStatus=i)})("onChange",function(){return C(e),y(p(2).onFilter())}),f(4,"translate"),c(),_(5),f(6,"translate"),l(7,"p-dropdown",16),v("ngModelChange",function(i){return C(e),y(p(2).selectedRule=i)})("onChange",function(){return C(e),y(p(2).onFilter())}),f(8,"translate"),c(),m(9,ave,2,3,"div",17),m(10,lve,4,7,"ng-template",null,18,ve),c()}if(2&t){const e=B(11),n=p(2);a(1),x(" ",g(2,12,"dashboard.upcoming.status"),": \xa0 "),a(2),I("placeholder",g(4,14,"data.recstatus.Default")),d("ngModel",n.selectedStatus)("options",n.dataService.recStatusList)("showClear",!0),a(2),x(" \xa0\xa0\xa0\xa0\xa0 ",g(6,16,"dashboard.upcoming.recrule"),": \xa0 "),a(2),I("placeholder",g(8,18,"settings.chanedit.all")),d("ngModel",n.selectedRule)("options",n.recRules)("showClear",!0),a(2),d("ngIf",n.refreshing)("ngIfElse",e)}}function uve(t,s){1&t&&(l(0,"tr")(1,"th",20),_(2),f(3,"translate"),D(4,"p-sortIcon",21),c(),l(5,"th",22),_(6),f(7,"translate"),c(),D(8,"th",23),l(9,"th",24),_(10),f(11,"translate"),c(),l(12,"th",25),_(13),f(14,"translate"),D(15,"p-sortIcon",26),c(),l(16,"th",27),_(17),f(18,"translate"),c(),l(19,"th",28),_(20),f(21,"translate"),c(),l(22,"th",29),_(23),f(24,"translate"),c(),l(25,"th",30),_(26),f(27,"translate"),D(28,"p-sortIcon",31),c(),l(29,"th",24),_(30),f(31,"translate"),c(),l(32,"th",32),_(33),f(34,"translate"),c(),l(35,"th",33),D(36,"button",34)(37,"button",35),c()()),2&t&&(a(2),x(" ",g(3,12,"dashboard.upcoming.date"),""),a(4),x(" ",g(7,14,"dashboard.upcoming.time")," "),a(4),x("",g(11,16,"dashboard.upcoming.encoder")," "),a(3),x(" ",g(14,18,"dashboard.recordings.title"),""),a(4),S(g(18,20,"dashboard.recordings.subtitle")),a(3),S(g(21,22,"dashboard.recordings.seas_ep")),a(3),x(" ",g(24,24,"dashboard.recordings.orig_airdate")," "),a(3),x("",g(27,26,"dashboard.recordings.channel")," "),a(4),x(" ",g(31,28,"dashboard.recordings.recgrp")," "),a(3),x(" ",g(34,30,"dashboard.upcoming.status")," "),a(3),d("disabled",!0),a(1),d("disabled",!0))}function dve(t,s){if(1&t&&(l(0,"div"),_(1),c()),2&t){const e=p().$implicit;a(1),Ke(" ",e.Season,"x",e.Episode," ")}}const pve=function(){return["WillRecord","Recording","Recorded"]};function hve(t,s){if(1&t&&(l(0,"div",52),_(1),c()),2&t){const e=p().$implicit,n=p(2);d("ngClass",V(2,pve).indexOf(e.Recording.StatusName)>-1?"text-green-500":"text-pink-500"),a(1),x(" ",n.dataService.recStatusText[e.Recording.StatusName]," ")}}function mve(t,s){if(1&t){const e=E();l(0,"button",53),v("click",function(){C(e);const i=p().$implicit;return y(p(2).stopRequest(i))}),f(1,"translate"),c()}2&t&&I("pTooltip",g(1,1,"dashboard.recordings.stop_recording"))}function fve(t,s){if(1&t){const e=E();l(0,"button",54),v("click",function(){C(e);const i=p().$implicit;return y(p(2).override(i))}),f(1,"translate"),c()}2&t&&I("pTooltip",g(1,1,"dashboard.recordings.override_rule"))}const gve=function(){return["Recording","Failing"]};function _ve(t,s){if(1&t){const e=E();l(0,"tr",null,36)(2,"td",37)(3,"div",38),D(4,"div",39),c()(),l(5,"td",40)(6,"div",38)(7,"div",41),_(8),c()()(),l(9,"td",42)(10,"div",38)(11,"div",41),_(12),f(13,"number"),c()()(),l(14,"td",43)(15,"div",38)(16,"div",41),_(17),c()()(),l(18,"td",37)(19,"div",38)(20,"div",41),_(21),c()()(),l(22,"td",44)(23,"div",38)(24,"div",41),_(25),c()()(),l(26,"td",43),m(27,dve,2,2,"div",45),c(),l(28,"td",46)(29,"div",38),D(30,"div",39),c()(),l(31,"td",43)(32,"div",38)(33,"div",41),_(34),c()()(),l(35,"td",43),_(36),c(),l(37,"td",43)(38,"div",38),m(39,hve,2,3,"div",47),c()(),l(40,"td",48),m(41,mve,2,3,"button",49),m(42,fve,2,3,"ng-template",null,50,ve),l(44,"button",51),v("click",function(){const o=C(e).$implicit;return y(p(2).updateRecRule(o))}),f(45,"translate"),c()()()}if(2&t){const e=s.$implicit,n=s.rowIndex,i=B(43),o=p(2);a(4),d("innerHTML",o.formatStartDate(e,n),Zt),a(4),x("",o.formatStartTime(e)," "),a(4),x("",mt(13,17,o.getDuration(e),"1.0-0")," min"),a(5),S(e.Recording.EncoderName),a(4),S(e.Title),a(1),I("pTooltip",e.Description),a(3),S(e.SubTitle.slice(0,50)),a(2),d("ngIf",e.Season>0||e.Episode>0),a(3),d("innerHTML",o.formatAirDate(e),Zt),a(4),Ke("",e.Channel.ChanNum," ",e.Channel.CallSign,""),a(2),S(e.Recording.RecGroup),a(3),d("ngIf",e.Recording),a(2),d("ngIf",V(22,gve).indexOf(e.Recording.StatusName)>-1)("ngIfElse",i),a(3),I("pTooltip",g(45,20,"dashboard.recordings.edit_rule")),d("disabled",e.Recording&&(7==e.Recording.RecType||8==e.Recording.RecType||"NeverRecord"==e.Recording.StatusName))}}function bve(t,s){if(1&t){const e=E();l(0,"p-table",9,10),v("onLazyLoad",function(i){return C(e),y(p().loadLazy(i))}),m(2,cve,12,20,"ng-template",11),m(3,uve,38,32,"ng-template",12),m(4,_ve,46,23,"ng-template",13),c()}if(2&t){const e=p();d("value",e.programs)("scrollable",!0)("totalRecords",e.totalRecords)("virtualScroll",!0)("rows",100)("lazy",!0)("rowHover",!0)}}function vve(t,s){1&t&&(D(0,"p-message",59),f(1,"translate")),2&t&&I("text",g(1,1,"common.networkfail"))}function Cve(t,s){if(1&t){const e=E();l(0,"div",55),m(1,vve,2,3,"p-message",56),c(),l(2,"p-button",57),v("onClick",function(){return C(e),y(p().displayStop=!1)}),f(3,"translate"),c(),l(4,"p-button",58),v("onClick",function(){C(e);const i=p();return y(i.stopRecording(i.program))}),f(5,"translate"),c()}if(2&t){const e=p();a(1),d("ngIf",e.errorCount>0),a(1),I("label",g(3,3,"common.close")),a(2),I("label",g(5,5,"dashboard.recordings.stop_recording"))}}let yve=(()=>{class t{constructor(e,n,i,o,r){this.dvrService=e,this.messageService=n,this.translate=i,this.dataService=o,this.utility=r,this.programs=[],this.recRules=[],this.allRecRules=[],this.activeRecRules=[],this.defaultRecRule={Id:0,Title:"settings.chanedit.all"},this.displayUpdateDlg=!1,this.refreshing=!1,this.loaded=!1,this.inter={summaryComponent:this},this.displayStop=!1,this.errorCount=0,this.totalRecords=0,this.showTable=!1,this.virtualScrollItemSize=0,this.selectedRule=null,this.selectedStatus="",this.translate.get(this.defaultRecRule.Title).subscribe(u=>this.defaultRecRule.Title=u),this.loadRecRules()}ngOnInit(){this.loadLazy({first:0,rows:1})}refresh(){this.refreshing=!0,this.loadRecRules(),this.loadLazy(this.lazyLoadEvent)}loadRecRules(){this.dvrService.GetRecordScheduleList({}).subscribe({next:e=>{this.allRecRules.length=0,this.allRecRules.push(this.defaultRecRule),this.activeRecRules.length=0,this.activeRecRules.push(this.defaultRecRule),e.RecRuleList.RecRules.forEach(n=>{if("Recording Template"!=n.Type){let i={Id:n.Id,Title:n.Title.substring(0,30)+" ["+this.utility.recTypeTrans[n.Type]+"]"};this.allRecRules.push(i),n.NextRecording&&this.activeRecRules.push(i)}}),this.recRules.length=0,"All"==this.selectedStatus?this.recRules.push(...this.allRecRules):this.recRules.push(...this.activeRecRules)}})}loadLazy(e){this.lazyLoadEvent=e;let n={StartIndex:0,Count:1,ShowAll:!1};null!=e.first&&(n.StartIndex=e.first,e.last?n.Count=e.last-e.first:e.rows&&(n.Count=e.rows));let i="";Array.isArray(e.sortField)?i=e.sortField[0]:e.sortField&&(i=e.sortField),i||(i="StartTime"),n.Sort="Channel.ChanNum"==i?"ChanNum":i;let o="";e.sortOrder&&e.sortOrder<0&&(o=" desc"),n.Sort=n.Sort+o,"All"==this.selectedStatus?n.ShowAll=!0:this.selectedStatus&&"Default"!=this.selectedStatus&&(n.RecStatus=this.selectedStatus),null!=this.selectedRule&&0!=this.selectedRule.Id&&(n.RecordId=this.selectedRule.Id),this.recRules.length=0,n.ShowAll?this.recRules.push(...this.allRecRules):this.recRules.push(...this.activeRecRules),this.dvrService.GetUpcomingList(n).subscribe(r=>{let u=r.ProgramList;this.totalRecords=r.ProgramList.TotalAvailable,this.programs.length=this.totalRecords,this.programs.splice(u.StartIndex,u.Count,...u.Programs),this.programs=[...this.programs],this.refreshing=!1,this.showTable=!0;let h=this.rows.get(0);h&&h.nativeElement.offsetHeight&&(this.virtualScrollItemSize=h.nativeElement.offsetHeight),this.table&&(this.table.totalRecords=this.totalRecords,this.table.virtualScrollItemSize=this.virtualScrollItemSize)})}onFilter(){this.reload()}reload(){this.showTable=!1,this.programs.length=0,this.refreshing=!0,this.loadLazy({first:0,rows:1})}formatStartDate(e,n){let i="";n>0&&this.programs[n-1]&&this.programs[n-1].Recording.StartTs&&(i=this.utility.formatDate(this.programs[n-1].Recording.StartTs,!0,!0));let o=this.utility.formatDate(e.Recording.StartTs,!0,!0);return i==o?" ":o}formatAirDate(e){return e.Airdate?this.utility.formatDate(e.Airdate+" 00:00",!0):" "}formatStartTime(e){return(new Date(e.Recording.StartTs).toLocaleTimeString()+" ").replace(/:.. /," ")}getDuration(e){let n=new Date(e.Recording.StartTs).getTime();return(new Date(e.Recording.EndTs).getTime()-n)/6e4}updateRecRule(e){this.inter.sched&&this.inter.sched.open(e)}override(e){this.inter.sched&&(7==e.Recording.RecType||8==e.Recording.RecType||"NeverRecord"==e.Recording.StatusName?this.inter.sched.open(e):this.inter.sched.open(e,void 0,{Type:"Override Recording"}))}stopRequest(e){e.Recording.RecordId&&(this.program=e,this.displayStop=!0)}stopRecording(e){this.errorCount=0,this.dvrService.StopRecording(e.Recording.RecordedId).subscribe({next:n=>{n.bool?(this.displayStop=!1,setTimeout(()=>this.inter.summaryComponent.refresh(),3e3)):this.errorCount++},error:n=>{this.errorCount++}})}static#e=this.\u0275fac=function(n){return new(n||t)(M(sr),M(Yi),M(Le),M(xc),M(Ts))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-upcoming"]],viewQuery:function(n,i){if(1&n&&(K(sve,5),K(ove,5)),2&n){let o;H(o=G())&&(i.table=o.first),H(o=G())&&(i.rows=o)}},features:[Qe([Yi])],decls:22,vars:20,consts:[[2,"min-width","960px"],[2,"white-space","'pre-line'"],["position","center"],[1,"block","card","w-full"],[2,"height","90vh"],["scrollHeight","flex","styleClass","p-datatable-gridlines p-datatable-sm","sortField","StartTime",3,"value","scrollable","totalRecords","virtualScroll","rows","lazy","rowHover","onLazyLoad",4,"ngIf"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["pTemplate","footer"],[3,"inter"],["scrollHeight","flex","styleClass","p-datatable-gridlines p-datatable-sm","sortField","StartTime",3,"value","scrollable","totalRecords","virtualScroll","rows","lazy","rowHover","onLazyLoad"],["table",""],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],[1,"flex","align-items-center"],["optionLabel","Name","optionValue","Status","name","Statusfilter",1,"'px-3",3,"ngModel","options","placeholder","showClear","ngModelChange","onChange"],["name","rulefilter","optionLabel","Title",1,"'px-3",3,"ngModel","options","placeholder","showClear","ngModelChange","onChange"],[4,"ngIf","ngIfElse"],["refreshBn",""],["pButton","","pRipple","","icon","pi pi-refresh",1,"p-button-text",".p-button-success",3,"pTooltip","click"],["pSortableColumn","StartTime",1,"p-1",2,"width","10%"],["field","StartTime"],[1,"justify-content-end","p-1",2,"width","7%"],[1,"justify-content-end","pl-1","pr-3","pt-1","pb-1",2,"width","7%"],[1,"p-1",2,"width","8%"],["pSortableColumn","Title",1,"p-1",2,"width","11%"],["field","Title"],[1,"p-1",2,"width","17%"],[1,"p-1",2,"width","4%"],[1,"justify-content-end","p-1",2,"width","8%"],["pSortableColumn","Channel.ChanNum",1,"p-1",2,"width","9%"],["field","Channel.ChanNum"],[1,"p-1",2,"width","7%"],[1,"p-1",2,"white-space","nowrap"],["pButton","","pRipple","","icon","pi pi-paperclip",1,"p-button-text","p-button-primary",3,"disabled"],["pButton","","pRipple","","icon","pi pi-pencil",1,"p-button-text","p-button-primary",3,"disabled"],["row",""],[1,"p-1","overflow-hidden"],[1,"mycell"],[1,"mytext",3,"innerHTML"],[1,"justify-content-end","p-1","overflow-hidden"],[1,"mytext"],[1,"justify-content-end","pl-1","pr-3","pt-1","pb-1","overflow-hidden"],[1,"p-1"],["tooltipPosition","top",1,"p-1","overflow-hidden",3,"pTooltip"],[4,"ngIf"],[1,"justify-content-end","p-1"],["class","mytext",3,"ngClass",4,"ngIf"],[1,"pt-1","pb-0",2,"white-space","nowrap"],["pButton","","pRipple","","icon","pi pi-stop-circle","class","p-button-text p-button-danger","tooltipPosition","left",3,"pTooltip","click",4,"ngIf","ngIfElse"],["overrideBn",""],["pButton","","pRipple","","icon","pi pi-pencil","tooltipPosition","left",1,"p-button-text","p-button-primary",3,"pTooltip","disabled","click"],[1,"mytext",3,"ngClass"],["pButton","","pRipple","","icon","pi pi-stop-circle","tooltipPosition","left",1,"p-button-text","p-button-danger",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi pi-paperclip","tooltipPosition","left",1,"p-button-text","p-button-primary",3,"pTooltip","click"],[1,"col-12",2,"text-align","left"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi pi-check-circle","styleClass","p-button-danger",3,"label","onClick"],["severity","error",3,"text"]],template:function(n,i){1&n&&(l(0,"div",0)(1,"div",1),D(2,"p-toast",2),c(),l(3,"h2"),_(4),f(5,"translate"),c(),l(6,"div",3)(7,"div",4),m(8,bve,5,7,"p-table",5),l(9,"p-dialog",6),v("visibleChange",function(r){return i.displayStop=r}),f(10,"translate"),l(11,"h2"),_(12),f(13,"translate"),c(),l(14,"p"),_(15),f(16,"translate"),D(17,"br"),l(18,"b"),_(19),c()(),m(20,Cve,6,7,"ng-template",7),c(),D(21,"app-schedule",8),c()()()),2&n&&(a(4),S(g(5,12,"dashboard.upcoming.heading")),a(4),d("ngIf",i.showTable),a(1),I("header",g(10,14,"dashboard.recordings.stop_recording")),d("visible",i.displayStop)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(g(13,16,"settings.common.ru_sure")),a(3),x("",g(16,18,"dashboard.recordings.stop_details")," "),a(4),Ke(" ",null==i.program?null:i.program.Title,": ",null==i.program?null:i.program.SubTitle,""),a(2),d("inter",i.inter))},dependencies:[Fe,ne,xe,Ce,$t,ae,Sn,Te,pn,Gt,qe,Ia,bt,yn,Sa,xa,Hp,f1,Md,pe],styles:[".mycell[_ngcontent-%COMP%]{position:relative}.mytext[_ngcontent-%COMP%]{position:absolute;top:50%;transform:translateY(-50%)}"]})}return t})();function Tve(t,s){if(1&t){const e=E();l(0,"button",10),v("click",function(){return C(e),y(p(2).newRecRule())}),f(1,"translate"),c(),l(2,"button",11),v("click",function(){return C(e),y(p(2).newTemplate())}),f(3,"translate"),c()}2&t&&(I("label",g(1,2,"dashboard.recrules.new_recrule")),a(2),I("label",g(3,4,"dashboard.recrules.new_teplate")))}function wve(t,s){1&t&&(l(0,"tr")(1,"th",12),_(2),f(3,"translate"),D(4,"p-sortIcon",13),c(),l(5,"th",14),_(6),f(7,"translate"),c(),l(8,"th",15),_(9),f(10,"translate"),c(),l(11,"th",15),_(12),f(13,"translate"),c(),l(14,"th",15),_(15),f(16,"translate"),c(),l(17,"th",16),_(18),f(19,"translate"),D(20,"p-sortIcon",17),c(),l(21,"th",18),_(22),f(23,"translate"),D(24,"p-sortIcon",19),c(),l(25,"th",20),_(26,"Active"),c(),l(27,"th",21),D(28,"button",22)(29,"button",23),c()()),2&t&&(a(2),x(" ",g(3,9,"dashboard.recordings.title")," "),a(4),S(g(7,11,"dashboard.recrule.type")),a(3),S(g(10,13,"common.priority")),a(3),x(" ",g(13,15,"dashboard.recordings.recgrp")," "),a(3),x(" ",g(16,17,"dashboard.recrules.storgrp")," "),a(3),x(" ",g(19,19,"dashboard.recrules.lastrec"),""),a(4),x(" ",g(23,21,"dashboard.recrules.nextrec"),""),a(6),d("disabled",!0),a(1),d("disabled",!0))}function Ive(t,s){1&t&&D(0,"i",33)}function Sve(t,s){1&t&&D(0,"i",34)}function xve(t,s){if(1&t){const e=E();l(0,"tr")(1,"td",24),_(2),c(),l(3,"td",25),_(4),c(),l(5,"td",25),_(6),c(),l(7,"td",25),_(8),c(),l(9,"td",25),_(10),c(),l(11,"td",26),_(12),c(),l(13,"td",26),_(14),c(),l(15,"td",27),m(16,Ive,1,0,"i",28),m(17,Sve,1,0,"ng-template",null,29,ve),c(),l(19,"td",30)(20,"button",31),v("click",function(){const o=C(e).$implicit;return y(p(2).updateRecRule(o))}),f(21,"translate"),c(),l(22,"button",32),v("click",function(){const o=C(e).$implicit;return y(p(2).deleteRequest(o))}),f(23,"translate"),c()()()}if(2&t){const e=s.$implicit,n=B(18),i=p(2);a(2),x(" ",e.Title,""),a(2),x(" ",i.utility.recTypeTrans[e.Type],""),a(2),S(e.RecPriority),a(2),S(e.RecGroup),a(2),S(e.StorageGroup),a(2),x(" ",i.utility.formatDate(e.LastRecorded),""),a(2),Ke(" ",i.utility.formatDate(e.NextRecording)," ",i.utility.formatTime(e.NextRecording),""),a(2),d("ngIf",e.Inactive)("ngIfElse",n),a(4),I("pTooltip",g(21,13,"dashboard.recordings.edit_rule")),a(2),I("pTooltip",g(23,15,"dashboard.recordings.delete_rule")),d("disabled","Recording Template"==e.Type&&"Default"==e.Category)}}function Dve(t,s){if(1&t&&(l(0,"div",5)(1,"p-table",6),m(2,Tve,4,6,"ng-template",7),m(3,wve,30,23,"ng-template",8),m(4,xve,24,17,"ng-template",9),c()()),2&t){const e=p();a(1),d("value",e.recRules)("scrollable",!0)("rowHover",!0)}}function Mve(t,s){1&t&&(D(0,"p-message",39),f(1,"translate")),2&t&&I("text",g(1,1,"common.networkfail"))}function kve(t,s){if(1&t){const e=E();l(0,"div",35),m(1,Mve,2,3,"p-message",36),c(),l(2,"p-button",37),v("onClick",function(){return C(e),y(p().displayDelete=!1)}),f(3,"translate"),c(),l(4,"p-button",38),v("onClick",function(){C(e);const i=p();return y(i.deleteRule(i.recRule))}),f(5,"translate"),c()}if(2&t){const e=p();a(1),d("ngIf",e.errorCount>0),a(1),I("label",g(3,3,"common.close")),a(2),I("label",g(5,5,"common.delete"))}}function Eve(t,s){1&t&&D(0,"p-progressSpinner")}let Lve=(()=>{class t{constructor(e,n){this.dvrService=e,this.utility=n,this.recRules=[],this.inter={summaryComponent:this},this.deSpacer=new RegExp(/ /g),this.rulesLoaded=!1,this.errorCount=0,this.successCount=0,this.displayDelete=!1,this.saveObserver={next:i=>{this.recRule?this.recRule.Id&&i.bool?(this.successCount++,this.displayDelete=!1,setTimeout(()=>this.refresh(),1e3)):!this.recRule.Id&&i.uint?(this.successCount++,setTimeout(()=>this.inter.summaryComponent.refresh(),1e3),this.recRule.Id=i.uint):this.errorCount++:(console.log("ERROR: recRule is undefined"),this.errorCount++)},error:i=>{console.error(i),this.errorCount++}}}refresh(){this.loadLists()}ngOnInit(){this.loadLists()}loadLists(){this.recRules=[],this.errorCount=0,this.dvrService.GetRecordScheduleList({}).subscribe({next:e=>{this.recRules=e.RecRuleList.RecRules,this.rulesLoaded=!0},error:e=>{this.errorCount++}})}newRecRule(){this.updateRecRule()}updateRecRule(e){this.inter.sched&&this.inter.sched.open(void 0,void 0,e)}newTemplate(){this.updateRecRule({Type:"Recording Template"})}deleteRequest(e){this.recRule=e,this.displayDelete=!0}deleteRule(e){this.dvrService.RemoveRecordSchedule(e.Id).subscribe(this.saveObserver)}static#e=this.\u0275fac=function(n){return new(n||t)(M(sr),M(Ts))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-recrules"]],decls:19,vars:21,consts:[["class","block card w-full","style","height: 90vh; min-width: 960px;",4,"ngIf","ngIfElse"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["pTemplate","footer"],[3,"inter"],["loading",""],[1,"block","card","w-full",2,"height","90vh","min-width","960px"],["scrollHeight","flex","styleClass","p-datatable-striped p-datatable-sm","responsiveLayout","scroll","sortField","Title",3,"value","scrollable","rowHover"],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],["pButton","","pRipple","","icon","pi pi-plus",1,"p-button-success","mr-2",3,"label","click"],["pButton","","pRipple","","icon","pi pi-plus",1,"p-button-success","p-button-outlined","mr-2",3,"label","click"],["pSortableColumn","Title",1,"p-1",2,"width","20%"],["field","Title"],[1,"p-1",2,"width","19%"],[1,"p-1",2,"width","9%"],["pSortableColumn","LastRecorded",1,"justify-content-end","pr-5",2,"width","9%"],["field","LastRecorded"],["pSortableColumn","NextRecording",1,"justify-content-end","pr-5",2,"width","14%"],["field","NextRecording"],[1,"p-1",2,"width","5%"],[1,"pt-1","pb-0",2,"width","6%"],["pButton","","pRipple","","icon","pi pi-pencil",1,"p-button-text","p-button-primary",3,"disabled"],["pButton","","pRipple","","icon","pi pi-trash",1,"p-button-text","p-button-danger",3,"disabled"],[1,"p-1","overflow-hidden"],[1,"p-1"],[1,"justify-content-end","p-1","pr-5"],[1,"pt-1","pb-0"],["class","pi pi-times text-pink-500",4,"ngIf","ngIfElse"],["checkmark",""],[1,"pt-1","pb-0",2,"white-space","nowrap"],["pButton","","pRipple","","icon","pi pi-pencil","tooltipPosition","left",1,"p-button-text","p-button-primary",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi pi-trash","tooltipPosition","left",1,"p-button-text","p-button-danger",3,"pTooltip","disabled","click"],[1,"pi","pi-times","text-pink-500"],[1,"pi","pi-check","text-green-500"],[1,"col-12",2,"text-align","left"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi pi-check-circle","styleClass","p-button-danger",3,"label","onClick"],["severity","error",3,"text"]],template:function(n,i){if(1&n&&(l(0,"h2"),_(1),f(2,"translate"),c(),m(3,Dve,5,3,"div",0),l(4,"p-dialog",1),v("visibleChange",function(r){return i.displayDelete=r}),f(5,"translate"),l(6,"h2"),_(7),f(8,"translate"),c(),l(9,"p"),_(10),f(11,"translate"),D(12,"br"),l(13,"b"),_(14),c()(),m(15,kve,6,7,"ng-template",2),c(),D(16,"app-schedule",3),m(17,Eve,1,0,"ng-template",null,4,ve)),2&n){const o=B(18);a(1),S(g(2,13,"dashboard.recrules.heading")),a(2),d("ngIf",i.rulesLoaded)("ngIfElse",o),a(1),I("header",g(5,15,"dashboard.recordings.delete_rule")),d("visible",i.displayDelete)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(g(8,17,"settings.common.ru_sure")),a(3),x("",g(11,19,"dashboard.recordings.delete_details")," "),a(4),Ke(" ",null==i.recRule?null:i.recRule.Title,": ",null==i.recRule?null:i.recRule.Type,""),a(2),d("inter",i.inter)}},dependencies:[ne,$t,ae,Sn,Te,pn,qe,Ia,bt,yn,Sa,xa,f1,pe]})}return t})(),Rve=(()=>{class t{constructor(e){this.httpClient=e}GetVideoList(e){let n=new Ie;for(const[i,o]of Object.entries(e))n=n.set(i,o);return this.httpClient.get("/Video/GetVideoList",{params:n})}UpdateVideoWatchedStatus(e,n){return this.httpClient.post("/Video/UpdateVideoWatchedStatus",{Id:e,Watched:n})}UpdateVideoMetadata(e){return this.httpClient.post("/Video/UpdateVideoMetadata",e)}static#e=this.\u0275fac=function(n){return new(n||t)(ie(Ki))};static#t=this.\u0275prov=re({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Ove=["vidsform"],Ave=["menu"],Pve=["table"],Fve=["row"];function Nve(t,s){if(1&t){const e=E();l(0,"span")(1,"p-button",44),v("onClick",function(){const o=C(e).index;return y(p(3).breadCrumb(o+1))}),c()()}if(2&t){const e=s.$implicit;a(1),I("label",e)}}const Vve=function(){return{width:"30px",height:"30px"}};function Bve(t,s){1&t&&(l(0,"div"),D(1,"p-progressSpinner"),c()),2&t&&(a(1),j(V(2,Vve)))}function Hve(t,s){if(1&t){const e=E();l(0,"button",45),v("click",function(){C(e);const i=p(3);return i.refreshing=!0,y(i.reLoadVideos())}),f(1,"translate"),c()}2&t&&I("pTooltip",g(1,1,"common.refresh"))}function Gve(t,s){if(1&t){const e=E();l(0,"div",37)(1,"p-button",38),v("onClick",function(){return C(e),y(p(2).breadCrumb(0))}),f(2,"translate"),c(),m(3,Nve,2,1,"span",39),_(4," \xa0\xa0\xa0 "),l(5,"p-checkbox",40,41),v("ngModelChange",function(i){return C(e),y(p(2).showAllVideos=i)})("onChange",function(){return C(e),y(p(2).showAllChange())}),f(7,"translate"),c(),m(8,Bve,2,3,"div",42),m(9,Hve,2,3,"ng-template",null,43,ve),_(11),f(12,"translate"),c()}if(2&t){const e=B(10),n=p(2);a(1),I("label",g(2,9,"dashboard.videos.heading")),a(2),d("ngForOf",n.directory),a(2),ai("label","",g(7,11,"dashboard.videos.showall")," "),d("ngModel",n.showAllVideos)("binary",!0),a(3),d("ngIf",n.refreshing)("ngIfElse",e),a(3),Ke(" \xa0\xa0\xa0",n.videos.length," ",g(12,13,"common.rows")," ")}}function qve(t,s){1&t&&(l(0,"tr")(1,"th",46),_(2),f(3,"translate"),D(4,"p-sortIcon",47),c(),D(5,"th",48),l(6,"th",49),_(7),f(8,"translate"),c(),l(9,"th",50),_(10),f(11,"translate"),c(),l(12,"th",51),_(13),f(14,"translate"),D(15,"p-sortIcon",52),c(),l(16,"th",53),_(17),f(18,"translate"),c(),l(19,"th",54)(20,"a",55),D(21,"i",56),c(),D(22,"button",57),c()()),2&t&&(a(2),x(" ",g(3,6,"dashboard.recordings.title")," "),a(5),S(g(8,8,"dashboard.recordings.subtitle")),a(3),S(g(11,10,"dashboard.recordings.seas_ep")),a(3),x(" ",g(14,12,"dashboard.videos.releasedate")," "),a(4),x(" ",g(18,14,"dashboard.recordings.duration")," "),a(5),d("disabled",!0))}function zve(t,s){if(1&t){const e=E();l(0,"tr",null,59)(2,"td",60)(3,"button",61),v("click",function(){C(e);const i=p().$implicit;return y(p(2).onDirectory(i.Title))}),c()()()}if(2&t){const e=p().$implicit;a(3),I("label",e.Title)}}function Uve(t,s){1&t&&D(0,"i",75)}function jve(t,s){if(1&t&&(l(0,"div"),_(1),c()),2&t){const e=p(2).$implicit;a(1),Ke(" ",e.Season,"x",e.Episode," ")}}function $ve(t,s){if(1&t&&(l(0,"div")(1,"div",63)(2,"div",64),_(3),c()()()),2&t){const e=p(2).$implicit;a(3),x("",e.Length," min ")}}function Wve(t,s){if(1&t){const e=E();l(0,"tr")(1,"td",62)(2,"div",63)(3,"div",64),_(4),c()()(),l(5,"td",65),m(6,Uve,1,0,"i",66),c(),l(7,"td",67)(8,"div",63)(9,"div",64),_(10),c()()(),l(11,"td",68),m(12,jve,2,2,"div",58),c(),l(13,"td",69)(14,"div",63),D(15,"div",70),c()(),l(16,"td",69),m(17,$ve,4,1,"div",58),c(),l(18,"td",71)(19,"div")(20,"a",72),f(21,"translate"),D(22,"i",73),c(),l(23,"button",74),v("click",function(i){C(e);const o=p().$implicit;return y(p(2).showMenu(o,i))}),c()()()()}if(2&t){const e=p().$implicit,n=p(2);a(4),S(e.Title),a(2),d("ngIf",e.Watched),a(1),I("pTooltip",e.Description),a(3),S(e.SubTitle),a(2),d("ngIf",e.Season>0||e.Episode>0),a(3),d("innerHTML",n.utility.formatDate(e.ReleaseDate,!0),Zt),a(2),d("ngIf",e.Length>0),a(3),I("href",n.URLencode("/Content/GetVideo?Id="+e.Id),tn),I("pTooltip",g(21,9,"dashboard.videos.download"))}}function Kve(t,s){if(1&t&&(m(0,zve,4,1,"tr",58),m(1,Wve,24,11,"tr",58)),2&t){const e=s.$implicit;d("ngIf","DIRECTORY"==e.ContentType),a(1),d("ngIf","DIRECTORY"!=e.ContentType)}}function Qve(t,s){if(1&t){const e=E();l(0,"p-table",32,33),v("onLazyLoad",function(i){return C(e),y(p().loadLazy(i))}),m(2,Gve,13,15,"ng-template",34),m(3,qve,23,16,"ng-template",35),m(4,Kve,2,2,"ng-template",36),c()}if(2&t){const e=p();d("value",e.videos)("scrollable",!0)("virtualScroll",!0)("rows",100)("lazy",!0)("totalRecords",e.totalRecords)("rowHover",!0)("scrollable",!0)}}function Jve(t,s){1&t&&(D(0,"p-message",81),f(1,"translate")),2&t&&I("text",g(1,1,"common.savesuccess"))}function Zve(t,s){1&t&&(D(0,"p-message",82),f(1,"translate")),2&t&&I("text",g(1,1,"common.networkfail"))}function Yve(t,s){if(1&t){const e=E();l(0,"div",76),m(1,Jve,2,3,"p-message",77),m(2,Zve,2,3,"p-message",78),c(),l(3,"p-button",79),v("onClick",function(){return C(e),y(p().closeDialog())}),f(4,"translate"),c(),l(5,"p-button",80),v("onClick",function(){return C(e),y(p().saveVideo())}),f(6,"translate"),c()}if(2&t){const e=p(),n=B(11);a(1),d("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0),a(1),I("label",g(4,5,"common.close")),a(2),I("label",g(6,7,"common.save")),d("disabled",!n.dirty||""==e.video.Title.trim())}}function Xve(t,s){if(1&t){const e=E();l(0,"p-button",83),v("onClick",function(){return C(e),y(p().closeDialog())}),f(1,"translate"),c(),l(2,"p-button",84),v("onClick",function(){return C(e),y(p().displayUnsaved=!1)}),f(3,"translate"),c()}2&t&&(I("label",g(1,2,"common.nosave")),a(2),I("label",g(3,4,"common.continue")))}const eCe=function(){return{height:"75vw",width:"50vw"}};let tCe=(()=>{class t{constructor(e,n,i,o){this.videoService=e,this.translate=n,this.messageService=i,this.utility=o,this.videos=[],this.refreshing=!1,this.successCount=0,this.errorCount=0,this.directory=[],this.video={Title:""},this.displayMetadataDlg=!1,this.displayUnsaved=!1,this.showAllVideos=!1,this.lazyLoadEvent={},this.totalRecords=0,this.showTable=!1,this.virtualScrollItemSize=0,this.mnu_markwatched={label:"dashboard.recordings.mnu_markwatched",command:u=>this.markwatched(u,!0)},this.mnu_markunwatched={label:"dashboard.recordings.mnu_markunwatched",command:u=>this.markwatched(u,!1)},this.mnu_updatemeta={label:"dashboard.recordings.mnu_updatemeta",command:u=>this.updatemeta(u)},this.menuToShow=[],this.msg={Success:"common.success",Failed:"common.failed",NetFail:"common.networkfail"},this.saveObserver={next:u=>{u.bool?(console.log("saveObserver success",u),this.successCount++,this.successCount++,this.currentForm.form.markAsPristine(),this.editingVideo&&Object.assign(this.editingVideo,this.video)):(console.log("saveObserver error",u),this.errorCount++)},error:u=>{console.log("saveObserver error",u),this.errorCount++}};for(const[u,h]of Object.entries(this.msg))this.translate.get(h).subscribe(b=>{Object.defineProperty(this.msg,u,{value:b})});[this.mnu_markwatched,this.mnu_markunwatched,this.mnu_updatemeta].forEach(u=>{u.label&&this.translate.get(u.label).subscribe(h=>u.label=h)})}ngOnInit(){this.loadLazy({first:0,rows:1})}loadLazy(e){this.lazyLoadEvent=e;let n={Sort:"title",Folder:this.directory.join("/"),CollapseSubDirs:!this.showAllVideos,StartIndex:0,Count:1};null!=e.first&&(n.StartIndex=e.first,e.last?n.Count=e.last-e.first:e.rows&&(n.Count=e.rows));let i="";Array.isArray(e.sortField)?i=e.sortField[0]:e.sortField&&(i=e.sortField),i||(i="title"),i&&(n.Sort=i,e.sortOrder&&(n.Descending=e.sortOrder<0)),n.Sort+=",title,releasedate,season,episode",this.videoService.GetVideoList(n).subscribe(o=>{let r=o.VideoMetadataInfoList;this.totalRecords=o.VideoMetadataInfoList.TotalAvailable,this.videos.length=this.totalRecords,this.videos.splice(r.StartIndex,r.VideoMetadataInfos.length,...r.VideoMetadataInfos),this.videos=[...this.videos],this.refreshing=!1,this.showTable=!0;let u=this.rows.get(0);u&&u.nativeElement.offsetHeight&&(this.virtualScrollItemSize=u.nativeElement.offsetHeight),this.table&&(this.table.totalRecords=this.totalRecords,this.table.virtualScrollItemSize=this.virtualScrollItemSize)})}reLoadVideos(){this.showTable=!1,this.videos.length=0,this.refreshing=!0,this.loadLazy({first:0,rows:1})}showAllChange(){setTimeout(()=>this.reLoadVideos(),100)}URLencode(e){return encodeURI(e)}onDirectory(e){this.directory.push(e),this.reLoadVideos()}breadCrumb(e){this.directory.length=e,this.reLoadVideos()}showMenu(e,n){this.video=e,this.menuToShow.length=0,this.menuToShow.push(e.Watched?this.mnu_markunwatched:this.mnu_markwatched),this.menuToShow.push(this.mnu_updatemeta),this.menu.toggle(n)}markwatched(e,n){this.videoService.UpdateVideoWatchedStatus(this.video.Id,n).subscribe({next:i=>{i.bool?(this.sendMessage("success",e.item.label,this.msg.Success),this.video.Watched=n):this.sendMessage("error",e.item.label,this.msg.Failed)},error:i=>this.networkError(i)})}updatemeta(e){this.editingVideo=this.video,this.video=Object.assign({},this.video),this.video.ReleaseDate=this.video.ReleaseDate?new Date(this.video.ReleaseDate):null,this.displayMetadataDlg=!0}sendMessage(e,n,i,o){this.messageService.add({severity:e,summary:i,detail:n+" "+this.video.Title+" "+this.video.SubTitle+(o=o?"\n"+o:""),life:3e3})}saveVideo(){this.successCount=0,this.errorCount=0,this.displayUnsaved=!1,this.videoService.UpdateVideoMetadata({Id:this.video.Id,Episode:this.video.Episode,Inetref:this.video.Inetref,Plot:this.video.Description,ReleaseDate:this.video.ReleaseDate,Season:this.video.Season,SubTitle:this.video.SubTitle,Title:this.video.Title}).subscribe(this.saveObserver)}networkError(e){console.log("network error",e),this.sendMessage("error","",this.msg.NetFail)}closeDialog(){this.currentForm.dirty?this.displayUnsaved?(this.displayUnsaved=!1,this.displayMetadataDlg=!1,this.editingVideo=void 0,this.currentForm.form.markAsPristine()):this.displayUnsaved=!0:(this.displayMetadataDlg=!1,this.displayUnsaved=!1,this.editingVideo=void 0)}static#e=this.\u0275fac=function(n){return new(n||t)(M(Rve),M(Le),M(Yi),M(Ts))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-videos"]],viewQuery:function(n,i){if(1&n&&(K(Ove,5),K(Ave,5),K(Pve,5),K(Fve,5)),2&n){let o;H(o=G())&&(i.currentForm=o.first),H(o=G())&&(i.menu=o.first),H(o=G())&&(i.table=o.first),H(o=G())&&(i.rows=o)}},features:[Qe([Yi])],decls:66,vars:66,consts:[[2,"min-width","960px"],[2,"white-space","'pre-line'"],["position","center"],[1,"block","card","w-full",2,"height","90vh"],[3,"popup","model"],["menu",""],["name","table","scrollHeight","flex","styleClass","p-datatable-striped p-datatable-sm","responsiveLayout","scroll","sortField","Title",3,"value","scrollable","virtualScroll","rows","lazy","totalRecords","rowHover","onLazyLoad",4,"ngIf"],["name","vidsform",1,"ml-3","mr-3"],["vidsform","ngForm"],[3,"header","visible","modal","closable","closeOnEscape","visibleChange"],[1,"form-group","field"],["for","Title",1,"label","block"],["pInputText","","id","Title","name","Title",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Title","ngModel"],["for","SubTitle",1,"label","block"],["pInputText","","id","SubTitle","name","SubTitle",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["SubTitle","ngModel"],["for","Inetref",1,"label","block"],["pInputText","","id","Inetref","name","Inetref",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Inetref","ngModel"],["for","Description",1,"label","block"],["pInputTextarea","","id","Description","name","Description",1,"mb-2","form-control","w-full",3,"rows","cols","ngModel","ngModelChange"],["Description","ngModel"],["for","Season",1,"label","block"],["name","Season","id","Season",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","Episode",1,"label","block"],["name","Episode","id","Episode",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ReleaseDate",1,"label","block"],["dateFormat","yy-mm-dd","name","ReleaseDate","id","ReleaseDate",3,"ngModel","ngModelChange"],["for","FileName",1,"label","block"],["pTemplate","footer"],[3,"header","visible","modal","visibleChange"],["name","table","scrollHeight","flex","styleClass","p-datatable-striped p-datatable-sm","responsiveLayout","scroll","sortField","Title",3,"value","scrollable","virtualScroll","rows","lazy","totalRecords","rowHover","onLazyLoad"],["table",""],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],[1,"flex","align-items-center"],["styleClass","p-button-primary",1,"p-1",3,"label","onClick"],[4,"ngFor","ngForOf"],["inputId","showAllVideos","name","showAllVideos",3,"ngModel","binary","label","ngModelChange","onChange"],["showAll","ngModel"],[4,"ngIf","ngIfElse"],["refreshBn",""],["styleClass","p-button-primary",1,"px-1",3,"label","onClick"],["pButton","","pRipple","","icon","pi pi-refresh",1,"p-button-text",".p-button-success",3,"pTooltip","click"],["pSortableColumn","Title",1,"p-1",2,"width","31%"],["field","Title"],[1,"p-1",2,"width","3%"],[1,"p-1",2,"width","31%"],[1,"p-1",2,"width","6%"],["pSortableColumn","ReleaseDate",1,"justify-content-end","p-1",2,"width","13%"],["field","ReleaseDate"],[1,"justify-content-end","p-1",2,"width","10%"],[1,"pt-1","pb-0",2,"width","6%","white-space","nowrap"],["target","_blank"],[1,"pi","pi-download"],["pButton","","pRipple","","icon","pi pi-ellipsis-v",1,"p-button-text","p-button-primary",3,"disabled"],[4,"ngIf"],["row",""],["colspan","7",1,"pt-1","pb-0"],["pButton","","pRipple","","icon","pi pi-folder",1,"p-button-text","p-button-primary",3,"label","click"],[1,"p-1","overflow-hidden"],[1,"mycell"],[1,"mytext"],[1,"pt-1","pb-0"],["class","pi pi-eye",4,"ngIf"],["tooltipPosition","top",1,"p-1","overflow-hidden",3,"pTooltip"],[1,"p-1"],[1,"justify-content-end","p-1"],[1,"mytext",3,"innerHTML"],[1,"pt-1","pb-0",2,"white-space","nowrap"],["target","_blank","tooltipPosition","left",3,"href","pTooltip"],[1,"pi","pi-download","text-primary"],["pButton","","pRipple","","icon","pi pi-ellipsis-v",1,"p-button-text","p-button-primary",3,"click"],[1,"pi","pi-eye"],[1,"col-12",2,"text-align","left"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi pi-check-circle","styleClass","p-button-success",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"],["icon","pi pi-times-circle","styleClass","p-button-danger",3,"label","onClick"],["icon","pi pi-check-circle","styleClass","p-button-success",3,"label","onClick"]],template:function(n,i){1&n&&(l(0,"div",0)(1,"div",1),D(2,"p-toast",2),c(),l(3,"h2"),_(4),f(5,"translate"),c(),l(6,"div",3),D(7,"p-menu",4,5),m(9,Qve,5,8,"p-table",6),c(),l(10,"form",7,8)(12,"p-dialog",9),v("visibleChange",function(r){return i.displayMetadataDlg=r}),f(13,"translate"),l(14,"div",10)(15,"label",11),_(16),f(17,"translate"),c(),l(18,"input",12,13),v("ngModelChange",function(r){return i.video.Title=r}),c()(),l(20,"div",10)(21,"label",14),_(22),f(23,"translate"),c(),l(24,"input",15,16),v("ngModelChange",function(r){return i.video.SubTitle=r}),c()(),l(26,"div",10)(27,"label",17),_(28),f(29,"translate"),c(),l(30,"input",18,19),v("ngModelChange",function(r){return i.video.Inetref=r}),c()(),l(32,"div",10)(33,"label",20),_(34),f(35,"translate"),c(),l(36,"textarea",21,22),v("ngModelChange",function(r){return i.video.Description=r}),c()(),l(38,"div",10)(39,"label",23),_(40),f(41,"translate"),c(),l(42,"p-inputNumber",24),v("ngModelChange",function(r){return i.video.Season=r}),c()(),l(43,"div",10)(44,"label",25),_(45),f(46,"translate"),c(),l(47,"p-inputNumber",26),v("ngModelChange",function(r){return i.video.Episode=r}),c()(),l(48,"div",10)(49,"label",27),_(50),f(51,"translate"),c(),l(52,"p-calendar",28),v("ngModelChange",function(r){return i.video.ReleaseDate=r}),c()(),l(53,"div",10)(54,"label",29),_(55),f(56,"translate"),c(),l(57,"pre"),_(58),c()(),m(59,Yve,7,9,"ng-template",30),c(),l(60,"p-dialog",31),v("visibleChange",function(r){return i.displayUnsaved=r}),f(61,"translate"),l(62,"p"),_(63),f(64,"translate"),c(),m(65,Xve,4,6,"ng-template",30),c()()()),2&n&&(a(4),S(g(5,41,"dashboard.videos.heading")),a(3),d("popup",!0)("model",i.menuToShow),a(2),d("ngIf",i.showTable),a(3),j(V(65,eCe)),I("header",g(13,43,"dashboard.recordings.edit_metadata")),d("visible",i.displayMetadataDlg)("modal",!0)("closable",!1)("closeOnEscape",!1),a(4),S(g(17,45,"dashboard.recordings.title")),a(2),d("ngModel",i.video.Title),a(4),S(g(23,47,"dashboard.recordings.subtitle")),a(2),d("ngModel",i.video.SubTitle),a(4),S(g(29,49,"dashboard.recordings.inetref")),a(2),d("ngModel",i.video.Inetref),a(4),S(g(35,51,"dashboard.recordings.description")),a(2),d("rows",5)("cols",30)("ngModel",i.video.Description),a(4),S(g(41,53,"dashboard.recordings.season")),a(2),d("ngModel",i.video.Season)("showButtons",!0)("min",1)("max",99)("step",1),a(3),S(g(46,55,"dashboard.recordings.episode")),a(2),d("ngModel",i.video.Episode)("showButtons",!0)("min",1)("max",99)("step",1),a(3),S(g(51,57,"dashboard.videos.releasedate")),a(2),d("ngModel",i.video.ReleaseDate),a(3),S(g(56,59,"dashboard.recordings.filename_label")),a(3),S(i.video.FileName),a(2),I("header",g(61,61,"common.unsaved_heading")),d("visible",i.displayUnsaved)("modal",!0),a(3),S(g(64,63,"common.unsaved_message")))},dependencies:[ut,ne,We,Xe,xe,$e,Ce,He,Vx,$t,ae,Sn,Te,Zo,ln,pn,vt,qe,Ia,bt,yn,Sa,xa,Hp,Rx,pe],styles:[".mycell[_ngcontent-%COMP%]{position:relative}.mytext[_ngcontent-%COMP%]{position:absolute;top:50%;transform:translateY(-50%)}"]})}return t})();const nCe=["groupform"];function iCe(t,s){if(1&t){const e=E();l(0,"button",27),v("click",function(){return C(e),y(p(2).openNew())}),f(1,"translate"),c()}2&t&&I("label",g(1,1,"dashboard.playgroup.new"))}function sCe(t,s){1&t&&(l(0,"tr")(1,"th"),_(2),f(3,"translate"),c(),l(4,"th"),_(5),f(6,"translate"),c(),l(7,"th"),_(8),f(9,"translate"),c(),l(10,"th"),_(11),f(12,"translate"),c(),l(13,"th"),_(14),f(15,"translate"),c(),l(16,"th"),_(17),f(18,"translate"),c(),l(19,"th",28),D(20,"button",29)(21,"button",30),c()()),2&t&&(a(2),S(g(3,6,"dashboard.playgroup.name_label")),a(3),S(g(6,8,"dashboard.playgroup.titlematch_label")),a(3),S(g(9,10,"dashboard.playgroup.skipahead_label")),a(3),S(g(12,12,"dashboard.playgroup.skipback_label")),a(3),S(g(15,14,"dashboard.playgroup.jump_label")),a(3),S(g(18,16,"dashboard.playgroup.timestretch_label")))}function oCe(t,s){if(1&t){const e=E();l(0,"tr")(1,"td"),_(2),c(),l(3,"td"),_(4),c(),l(5,"td"),_(6),c(),l(7,"td"),_(8),c(),l(9,"td"),_(10),c(),l(11,"td"),_(12),c(),l(13,"td",31)(14,"button",32),v("click",function(){const o=C(e).$implicit;return y(p(2).editGroup(o))}),f(15,"translate"),c(),l(16,"button",33),v("click",function(){const o=C(e).$implicit;return y(p(2).deleteRequest(o))}),f(17,"translate"),c()()()}if(2&t){const e=s.$implicit;a(2),S(e.Name),a(2),S(e.TitleMatch),a(2),S(e.SkipAhead),a(2),S(e.SkipBack),a(2),S(e.Jump),a(2),S(e.TimeStretch),a(2),I("pTooltip",g(15,9,"dashboard.playgroup.edit_label")),a(2),I("pTooltip",g(17,11,"dashboard.playgroup.delete_label")),d("disabled","Default"==e.Name)}}function rCe(t,s){if(1&t&&(l(0,"div",22)(1,"p-table",23),m(2,iCe,2,3,"ng-template",24),m(3,sCe,22,18,"ng-template",25),m(4,oCe,18,13,"ng-template",26),c()()),2&t){const e=p();a(1),d("value",e.playGroups)("scrollable",!0)("rowHover",!0)}}function aCe(t,s){1&t&&(D(0,"p-message",39),f(1,"translate")),2&t&&I("text",g(1,1,"common.savesuccess"))}function lCe(t,s){1&t&&(D(0,"p-message",40),f(1,"translate")),2&t&&I("text",g(1,1,"common.networkfail"))}function cCe(t,s){if(1&t){const e=E();l(0,"div",34),m(1,aCe,2,3,"p-message",35),m(2,lCe,2,3,"p-message",36),c(),l(3,"p-button",37),v("onClick",function(){return C(e),y(p().closeDialog())}),f(4,"translate"),c(),l(5,"p-button",38),v("onClick",function(){return C(e),y(p().saveGroup())}),f(6,"translate"),c()}if(2&t){const e=p(),n=B(2);a(1),d("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0),a(1),I("label",g(4,5,"common.close")),a(2),I("label",g(6,7,"common.save")),d("disabled",!n.dirty||""==e.group.Name.trim()||1==e.operation&&e.groupNames.includes(e.group.Name.trim()))}}function uCe(t,s){if(1&t){const e=E();l(0,"p-button",41),v("onClick",function(){return C(e),y(p().closeDialog())}),f(1,"translate"),c(),l(2,"p-button",42),v("onClick",function(){return C(e),y(p().displayUnsaved=!1)}),f(3,"translate"),c()}2&t&&(I("label",g(1,2,"common.nosave")),a(2),I("label",g(3,4,"common.continue")))}function dCe(t,s){1&t&&(D(0,"p-message",40),f(1,"translate")),2&t&&I("text",g(1,1,"common.networkfail"))}function pCe(t,s){if(1&t){const e=E();l(0,"div",34),m(1,dCe,2,3,"p-message",36),c(),l(2,"p-button",37),v("onClick",function(){C(e);const i=p(),o=B(2);return i.displayDelete=!1,y(o.form.markAsPristine())}),f(3,"translate"),c(),l(4,"p-button",43),v("onClick",function(){C(e);const i=p();return y(i.deleteGroup(i.group))}),f(5,"translate"),c()}if(2&t){const e=p();a(1),d("ngIf",e.errorCount>0),a(1),I("label",g(3,3,"common.close")),a(2),I("label",g(5,5,"common.delete"))}}const hCe=function(){return{height:"75vw",width:"50vw"}},mCe=function(t){return{Name:t}};let fCe=(()=>{class t{constructor(e,n){this.dvrService=e,this.translate=n,this.playGroups=[],this.groupNames=[],this.msg={Success:"common.success",Failed:"common.failed",NetFail:"common.networkfail",warningText:"settings.common.warning",headingNew:"dashboard.playgroup.new",headingEdit:"dashboard.playgroup.edit"},this.dialogHeader="",this.displayGroupDlg=!1,this.displayUnsaved=!1,this.displayDelete=!1,this.loaded=!1,this.operation=0,this.successCount=0,this.errorCount=0,this.group=this.resetGroup(),this.saveObserver={next:i=>{if(i.bool)switch(this.successCount++,this.currentForm.form.markAsPristine(),this.loadGroups(),this.operation){case 0:break;case 1:this.operation=0;break;case-1:this.displayDelete=!1}else console.log("saveObserver error",i),this.errorCount++},error:i=>{console.log("saveObserver error",i),this.errorCount++}}}ngOnInit(){this.loadTranslations(),this.loadGroups()}loadTranslations(){for(const[e,n]of Object.entries(this.msg))this.translate.get(n).subscribe(i=>{Object.defineProperty(this.msg,e,{value:i})})}loadGroups(){this.playGroups.length=0,this.loaded=!1,this.dvrService.GetPlayGroupList().subscribe(e=>{this.groupNames=e.PlayGroupList,this.groupNames.push("Default"),this.groupNames.forEach(n=>{this.dvrService.GetPlayGroup(n).subscribe(i=>{this.playGroups.push(i.PlayGroup),this.playGroups.length==this.groupNames.length&&(this.playGroups=[...this.playGroups]),this.loaded=!0})})})}resetGroup(){return{Name:"",TitleMatch:"",SkipAhead:0,SkipBack:0,Jump:0,TimeStretch:100}}openNew(){this.group=this.resetGroup(),this.successCount=0,this.errorCount=0,this.dialogHeader=this.msg.headingNew,this.displayGroupDlg=!0,this.operation=1}editGroup(e){this.group=Object.assign({},e),this.successCount=0,this.errorCount=0,this.dialogHeader=this.msg.headingEdit,this.displayGroupDlg=!0,this.operation=0}deleteRequest(e){this.group=e,this.displayDelete=!0}closeDialog(){this.currentForm.dirty&&this.displayGroupDlg&&!this.displayUnsaved?this.displayUnsaved=!0:(this.currentForm.form.markAsPristine(),this.displayGroupDlg=!1,this.displayUnsaved=!1)}saveGroup(){this.successCount=0,this.errorCount=0,this.displayUnsaved=!1,1==this.operation?this.dvrService.AddPlayGroup(this.group).subscribe(this.saveObserver):this.dvrService.UpdatePlayGroup(this.group).subscribe(this.saveObserver)}deleteGroup(e){this.successCount=0,this.errorCount=0,this.group=e,this.operation=-1,"Default"!=e.Name&&this.dvrService.removePlayGroup(e.Name).subscribe(this.saveObserver)}markPristine(){setTimeout(()=>this.currentForm.form.markAsPristine(),200)}confirm(e){return ue(window.confirm(e))}canDeactivate(){return!this.currentForm||!this.currentForm.dirty||this.confirm(this.msg.warningText)}onWindowClose(e){this.currentForm&&this.currentForm.dirty&&(e.preventDefault(),e.returnValue=!1)}static#e=this.\u0275fac=function(n){return new(n||t)(M(sr),M(Le))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-playback-groups"]],viewQuery:function(n,i){if(1&n&&K(nCe,5),2&n){let o;H(o=G())&&(i.currentForm=o.first)}},hostBindings:function(n,i){1&n&&v("beforeunload",function(r){return i.onWindowClose(r)},0,Nn)},decls:68,vars:89,consts:[["class","block card w-full",4,"ngIf"],["name","groupform",1,"ml-3","mr-3"],["groupform","ngForm"],[3,"header","visible","modal","closable","closeOnEscape","visibleChange"],[1,"form-group","field"],["for","GrpName",1,"label","block"],["pInputText","","id","GrpName","name","Name",1,"mb-2","form-control","w-full",3,"ngModel","disabled","ngModelChange"],["Name","ngModel"],[1,"block"],["for","TitleMatch",1,"label","block"],["pInputText","","name","TitleMatch","id","TitleMatch",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","SkipAhead",1,"label","block"],["name","SkipAhead","id","SkipAhead",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","SkipBack",1,"label","block"],["name","SkipBack","id","SkipBack",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","Jump",1,"label","block"],["name","Jump","id","Jump",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","TimeStretch",1,"label","block"],["name","TimeStretch","id","TimeStretch",3,"ngModel","showButtons","min","max","step","ngModelChange"],["pTemplate","footer"],[3,"header","visible","modal","visibleChange"],[3,"header","visible","modal","draggable","resizable","visibleChange"],[1,"block","card","w-full"],["scrollHeight","flex","sortField","Name","styleClass","p-datatable-sm p-datatable-striped","responsiveLayout","scroll",3,"value","scrollable","rowHover"],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],["pButton","","pRipple","","icon","pi pi-plus",1,"p-button-success","mr-2",3,"label","click"],[2,"width","7%","white-space","nowrap"],["pButton","","pRipple","","icon","pi pi-pencil","disabled","true",1,"p-button-text"],["pButton","","pRipple","","icon","pi pi-trash","disabled","true",1,"p-button-text","p-button-danger"],[1,"pt-1","pb-0",2,"white-space","nowrap"],["pButton","","pRipple","","icon","pi pi-pencil","tooltipPosition","left",1,"p-button-text",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi pi-trash","tooltipPosition","left",1,"p-button-text","p-button-danger",3,"pTooltip","disabled","click"],[1,"col-12",2,"text-align","left"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi pi-save","styleClass","p-button-success",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"],["icon","pi pi-times-circle","styleClass","p-button-danger",3,"label","onClick"],["icon","pi pi-check-circle","styleClass","p-button-success",3,"label","onClick"],["icon","pi pi-check-circle","styleClass","p-button-danger",3,"label","onClick"]],template:function(n,i){1&n&&(m(0,rCe,5,3,"div",0),l(1,"form",1,2)(3,"p-dialog",3),v("visibleChange",function(r){return i.displayGroupDlg=r}),l(4,"div",4)(5,"label",5),_(6),f(7,"translate"),c(),l(8,"input",6,7),v("ngModelChange",function(r){return i.group.Name=r}),c(),D(10,"small",8),c(),l(11,"div",4)(12,"label",9),_(13),f(14,"translate"),c(),l(15,"input",10,7),v("ngModelChange",function(r){return i.group.TitleMatch=r}),c(),l(17,"small",8),_(18),f(19,"translate"),c()(),l(20,"div",4)(21,"label",11),_(22),f(23,"translate"),c(),l(24,"p-inputNumber",12),v("ngModelChange",function(r){return i.group.SkipAhead=r}),c(),l(25,"small",8),_(26),f(27,"translate"),c()(),l(28,"div",4)(29,"label",13),_(30),f(31,"translate"),c(),l(32,"p-inputNumber",14),v("ngModelChange",function(r){return i.group.SkipBack=r}),c(),l(33,"small",8),_(34),f(35,"translate"),c()(),l(36,"div",4)(37,"label",15),_(38),f(39,"translate"),c(),l(40,"p-inputNumber",16),v("ngModelChange",function(r){return i.group.Jump=r}),c(),l(41,"small",8),_(42),f(43,"translate"),c()(),l(44,"div",4)(45,"label",17),_(46),f(47,"translate"),c(),l(48,"p-inputNumber",18),v("ngModelChange",function(r){return i.group.TimeStretch=r}),c(),l(49,"small",8),_(50),f(51,"translate"),c()(),m(52,cCe,7,9,"ng-template",19),c(),l(53,"p-dialog",20),v("visibleChange",function(r){return i.displayUnsaved=r}),f(54,"translate"),l(55,"p"),_(56),f(57,"translate"),c(),m(58,uCe,4,6,"ng-template",19),c(),l(59,"p-dialog",21),v("visibleChange",function(r){return i.displayDelete=r}),f(60,"translate"),l(61,"h2"),_(62),f(63,"translate"),c(),l(64,"p"),_(65),f(66,"translate"),c(),m(67,pCe,6,7,"ng-template",19),c()()),2&n&&(d("ngIf",i.loaded),a(3),j(V(86,hCe)),I("header",i.dialogHeader),d("visible",i.displayGroupDlg)("modal",!0)("closable",!1)("closeOnEscape",!1),a(3),S(g(7,53,"dashboard.playgroup.name_label")),a(2),d("ngModel",i.group.Name)("disabled",0==i.operation),a(5),S(g(14,55,"dashboard.playgroup.titlematch_label")),a(2),d("ngModel",i.group.TitleMatch),a(3),x(" ",g(19,57,"dashboard.playgroup.titlematch_desc")," "),a(4),S(g(23,59,"dashboard.playgroup.skipahead_label")),a(2),d("ngModel",i.group.SkipAhead)("showButtons",!0)("min",0)("max",600)("step",1),a(2),x(" ",g(27,61,"dashboard.playgroup.skipahead_desc")," "),a(4),S(g(31,63,"dashboard.playgroup.skipback_label")),a(2),d("ngModel",i.group.SkipBack)("showButtons",!0)("min",0)("max",600)("step",1),a(2),x(" ",g(35,65,"dashboard.playgroup.skipback_desc")," "),a(4),S(g(39,67,"dashboard.playgroup.jump_label")),a(2),d("ngModel",i.group.Jump)("showButtons",!0)("min",0)("max",30)("step",1),a(2),x(" ",g(43,69,"dashboard.playgroup.jump_desc")," "),a(4),S(g(47,71,"dashboard.playgroup.timestretch_label")),a(2),d("ngModel",i.group.TimeStretch)("showButtons",!0)("min",50)("max",200)("step",5),a(2),x(" ",g(51,73,"dashboard.playgroup.timestretch_desc")," "),a(3),I("header",g(54,75,"common.unsaved_heading")),d("visible",i.displayUnsaved)("modal",!0),a(3),S(g(57,77,"common.unsaved_message")),a(3),I("header",g(60,79,"dashboard.playgroup.delete_this")),d("visible",i.displayDelete)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(g(63,81,"settings.common.ru_sure")),a(3),S(mt(66,83,"dashboard.playgroup.delete_details",W(87,mCe,i.group.Name))))},dependencies:[ne,We,Xe,xe,$e,Ce,He,$t,ae,Sn,Te,pn,vt,qe,bt,yn,pe]})}return t})();const gCe=["changrpform"];function _Ce(t,s){if(1&t){const e=E();l(0,"button",18),v("click",function(){return C(e),y(p(2).openNew())}),f(1,"translate"),c()}2&t&&I("label",g(1,1,"dashboard.channelgroup.new"))}function bCe(t,s){1&t&&(l(0,"tr")(1,"th"),_(2),f(3,"translate"),c(),l(4,"th",19),D(5,"button",20)(6,"button",21),c()()),2&t&&(a(2),S(g(3,1,"dashboard.channelgroup.name_label")))}function vCe(t,s){if(1&t){const e=E();l(0,"tr")(1,"td"),_(2),c(),l(3,"td",22)(4,"button",23),v("click",function(){const o=C(e).$implicit;return y(p(2).editGroup(o))}),f(5,"translate"),c(),l(6,"button",24),v("click",function(){const o=C(e).$implicit;return y(p(2).deleteRequest(o))}),f(7,"translate"),c()()()}if(2&t){const e=s.$implicit;a(2),S(e.Name),a(2),I("pTooltip",g(5,4,"dashboard.channelgroup.edit_label")),a(2),I("pTooltip",g(7,6,"dashboard.channelgroup.delete_label")),d("disabled",!e.canDelete)}}function CCe(t,s){if(1&t&&(l(0,"div",15)(1,"p-table",16),m(2,_Ce,2,3,"ng-template",17),m(3,bCe,7,3,"ng-template",10),m(4,vCe,8,8,"ng-template",11),c()()),2&t){const e=p();a(1),d("value",e.chanGroups)("scrollable",!0)("rowHover",!0)}}function yCe(t,s){1&t&&(l(0,"tr")(1,"th",25),_(2),f(3,"translate"),c(),l(4,"th",26),_(5),f(6,"translate"),D(7,"p-sortIcon",27),c(),l(8,"th",28),_(9),f(10,"translate"),c(),l(11,"th",29),_(12),f(13,"translate"),c(),D(14,"th",19),c()),2&t&&(a(2),S(g(3,4,"settings.chanedit.col_icon")),a(3),x(" ",g(6,6,"settings.chanedit.col_channum")," "),a(4),S(g(10,8,"settings.chanedit.col_callsign")),a(3),S(g(13,10,"settings.chanedit.col_name")))}function TCe(t,s){1&t&&D(0,"img",34),2&t&&I("src","/Guide/GetChannelIcon?Filename="+p().$implicit.Icon,tn)}function wCe(t,s){1&t&&D(0,"img",35)}function ICe(t,s){if(1&t){const e=E();l(0,"tr")(1,"td",30),m(2,TCe,1,1,"img",31),m(3,wCe,1,0,"ng-template",null,32,ve),c(),l(5,"td"),_(6),c(),l(7,"td"),_(8),c(),l(9,"td"),_(10),c(),l(11,"td",22)(12,"p-checkbox",33),v("ngModelChange",function(i){return y(C(e).$implicit.selected=i)}),c()()()}if(2&t){const e=s.$implicit,n=B(4),i=p();a(2),d("ngIf",e.Icon)("ngIfElse",n),a(4),S(e.ChanNum),a(2),S(e.CallSign),a(2),S(e.ChannelName),a(2),d("ngModel",e.selected)("binary",!0)("name","selected"+e.ChanId)("disabled",!i.group.canUpdate)}}function SCe(t,s){1&t&&(D(0,"p-message",41),f(1,"translate")),2&t&&I("text",g(1,1,"common.savesuccess"))}function xCe(t,s){1&t&&(D(0,"p-message",42),f(1,"translate")),2&t&&I("text",g(1,1,"common.networkfail"))}function DCe(t,s){if(1&t){const e=E();l(0,"div",36),m(1,SCe,2,3,"p-message",37),m(2,xCe,2,3,"p-message",38),c(),l(3,"p-button",39),v("onClick",function(){return C(e),y(p().closeDialog())}),f(4,"translate"),c(),l(5,"p-button",40),v("onClick",function(){return C(e),y(p().saveGroup())}),f(6,"translate"),c()}if(2&t){const e=p(),n=B(2);a(1),d("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0),a(1),I("label",g(4,5,"common.close")),a(2),I("label",g(6,7,"common.save")),d("disabled",!e.group.canUpdate||!n.dirty||""==e.group.Name.trim()||e.dupName)}}function MCe(t,s){if(1&t){const e=E();l(0,"p-button",43),v("onClick",function(){return C(e),y(p().closeDialog())}),f(1,"translate"),c(),l(2,"p-button",44),v("onClick",function(){return C(e),y(p().displayUnsaved=!1)}),f(3,"translate"),c()}2&t&&(I("label",g(1,2,"common.nosave")),a(2),I("label",g(3,4,"common.continue")))}function kCe(t,s){1&t&&(D(0,"p-message",42),f(1,"translate")),2&t&&I("text",g(1,1,"common.networkfail"))}function ECe(t,s){if(1&t){const e=E();l(0,"div",36),m(1,kCe,2,3,"p-message",38),c(),l(2,"p-button",39),v("onClick",function(){C(e);const i=p(),o=B(2);return i.displayDelete=!1,y(o.form.markAsPristine())}),f(3,"translate"),c(),l(4,"p-button",45),v("onClick",function(){C(e);const i=p();return y(i.deleteGroup(i.group))}),f(5,"translate"),c()}if(2&t){const e=p();a(1),d("ngIf",e.errorCount>0),a(1),I("label",g(3,3,"common.close")),a(2),I("label",g(5,5,"common.delete"))}}const LCe=function(){return{height:"75vw",width:"50vw"}},RCe=function(t){return{Name:t}};let OCe=(()=>{class t{constructor(e,n,i){this.channelService=e,this.guideService=n,this.translate=i,this.chanGroups=[],this.allChannels=[],this.videoSources=[],this.msg={Success:"common.success",Failed:"common.failed",NetFail:"common.networkfail",warningText:"settings.common.warning",headingNew:"dashboard.channelgroup.new",headingEdit:"dashboard.channelgroup.edit"},this.dialogHeader="",this.oldName="",this.displayGroupDlg=!1,this.displayUnsaved=!1,this.displayDelete=!1,this.loaded=!1,this.operation=0,this.successCount=0,this.errorCount=0,this.chanResponses=0,this.dupName=!1,this.group=this.resetGroup(),this.saveObserver={next:o=>{if(o.bool||o.int){switch(this.successCount++,this.operation){case 0:this.updateChannels(!0);break;case 1:this.group.GroupId=o.int,this.updateChannels(!0);break;case-1:this.displayDelete=!1;break;case 2:this.chanResponses--}0==this.chanResponses&&(this.currentForm.form.markAsPristine(),this.loadGroups(),2==this.operation&&this.editGroup(this.group))}else console.log("saveObserver error",o),this.errorCount++},error:o=>{console.log("saveObserver error",o),this.errorCount++}}}ngOnInit(){this.loadTranslations(),this.loadGroups(),this.loadAllChannels()}loadTranslations(){for(const[e,n]of Object.entries(this.msg))this.translate.get(n).subscribe(i=>{Object.defineProperty(this.msg,e,{value:i})})}loadGroups(){this.guideService.GetChannelGroupList(!0).subscribe(e=>{this.chanGroups=e.ChannelGroupList.ChannelGroups,this.loadSources()})}loadSources(){this.channelService.GetVideoSourceList().subscribe(e=>{this.videoSources=e.VideoSourceList.VideoSources,this.chanGroups.forEach(n=>{1==n.GroupId?(n.canDelete=!1,n.canUpdate=!0,n.canRename=!1):"Priority"==n.Name||this.videoSources.find(i=>i.SourceName==n.Name)?(n.canDelete=!1,n.canUpdate=!1,n.canRename=!1):(n.canDelete=!0,n.canUpdate=!0,n.canRename=!0)}),this.loaded=!0})}loadAllChannels(){this.channelService.GetChannelInfoList({OnlyVisible:!0}).subscribe(e=>{this.allChannels=e.ChannelInfoList.ChannelInfos})}resetGroup(){return{Name:"",GroupId:0,canUpdate:!0,canRename:!0}}resetChannels(){this.allChannels.forEach((e,n)=>{e.ChanSeq=n,e.selected=!1,e.inDBGroup=!1})}openNew(){this.group=this.resetGroup(),this.resetChannels(),this.successCount=0,this.errorCount=0,this.dialogHeader=this.msg.headingNew,this.displayGroupDlg=!0,this.operation=1,this.chanResponses=0}editGroup(e){this.group=Object.assign({},e),this.oldName=e.Name,this.dialogHeader=this.msg.headingEdit,this.operation=0,this.chanResponses=0,this.dupName=!1,this.resetChannels();let n=0;this.displayGroupDlg=!0,this.channelService.GetChannelInfoList({ChannelGroupID:e.GroupId}).subscribe(i=>{i.ChannelInfoList.ChannelInfos.forEach(o=>{for(;this.allChannels[n].ChanId!=o.ChanId;n++)if(n>=this.allChannels.length)return void console.log("ERROR: Channel list mismatch");this.allChannels[n].inDBGroup=!0,this.allChannels[n].selected=!0}),this.displayGroupDlg=!0})}checkName(){this.dupName=!1,this.group.Name.trim(),0!=this.oldName.localeCompare(this.group.Name)&&this.chanGroups.find(n=>0==this.group.Name.localeCompare(n.Name))&&(this.dupName=!0)}deleteRequest(e){this.group=e,this.displayDelete=!0}closeDialog(){this.currentForm.dirty&&this.displayGroupDlg&&!this.displayUnsaved?this.displayUnsaved=!0:(this.currentForm.form.markAsPristine(),this.displayGroupDlg=!1,this.displayUnsaved=!1,this.successCount=0,this.errorCount=0,this.operation=0)}saveGroup(){this.successCount=0,this.errorCount=0,this.displayUnsaved=!1,this.group.Name=this.group.Name.trim(),1==this.operation?this.guideService.AddChannelGroup(this.group.Name).subscribe(this.saveObserver):0!=this.oldName.localeCompare(this.group.Name)?this.guideService.UpdateChannelGroup(this.oldName,this.group.Name).subscribe(this.saveObserver):this.updateChannels(!1)}deleteGroup(e){this.successCount=0,this.errorCount=0,this.group=e,this.operation=-1,this.guideService.RemoveChannelGroup(this.group.Name).subscribe(this.saveObserver)}updateChannels(e){this.operation=2,this.allChannels.forEach(n=>{n.selected&&!n.inDBGroup?(this.guideService.AddToChannelGroup({ChannelGroupId:this.group.GroupId,ChanId:n.ChanId}).subscribe(this.saveObserver),this.chanResponses++):!n.selected&&n.inDBGroup&&(this.guideService.RemoveFromChannelGroup({ChannelGroupId:this.group.GroupId,ChanId:n.ChanId}).subscribe(this.saveObserver),this.chanResponses++)}),!e&&!this.chanResponses&&(this.currentForm.form.markAsPristine(),this.successCount++)}markPristine(){setTimeout(()=>this.currentForm.form.markAsPristine(),200)}confirm(e){return ue(window.confirm(e))}canDeactivate(){return!this.currentForm||!this.currentForm.dirty||this.confirm(this.msg.warningText)}onWindowClose(e){this.currentForm&&this.currentForm.dirty&&(e.preventDefault(),e.returnValue=!1)}static#e=this.\u0275fac=function(n){return new(n||t)(M(Co),M(u1),M(Le))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-channel-groups"]],viewQuery:function(n,i){if(1&n&&K(gCe,5),2&n){let o;H(o=G())&&(i.currentForm=o.first)}},hostBindings:function(n,i){1&n&&v("beforeunload",function(r){return i.onWindowClose(r)},0,Nn)},decls:32,vars:44,consts:[["class","block card w-full",4,"ngIf"],["name","changrpform",1,"ml-3","mr-3"],["changrpform","ngForm"],[3,"header","visible","modal","closable","closeOnEscape","visibleChange"],[1,"form-group","field"],["for","GroupName",1,"label","block"],["pInputText","","id","GroupName","name","GroupName",1,"mb-2","form-control","w-full",3,"ngModel","disabled","ngModelChange","change"],["GroupName","ngModel"],[1,"block"],["datakey","ChanId","scrollHeight","flex","styleClass","p-datatable-sm p-datatable-striped","responsiveLayout","scroll",3,"value","scrollable","rowHover"],["pTemplate","header"],["pTemplate","body"],["pTemplate","footer"],[3,"header","visible","modal","visibleChange"],[3,"header","visible","modal","draggable","resizable","visibleChange"],[1,"block","card","w-full"],["scrollHeight","flex","sortField","Name","styleClass","p-datatable-sm p-datatable-striped","responsiveLayout","scroll",3,"value","scrollable","rowHover"],["pTemplate","caption"],["pButton","","pRipple","","icon","pi pi-plus",1,"p-button-success","mr-2",3,"label","click"],[2,"width","7%","white-space","nowrap"],["pButton","","pRipple","","icon","pi pi-pencil","disabled","true",1,"p-button-text"],["pButton","","pRipple","","icon","pi pi-trash","disabled","true",1,"p-button-text","p-button-danger"],[1,"pt-1","pb-0",2,"white-space","nowrap"],["pButton","","pRipple","","icon","pi pi-pencil","tooltipPosition","left",1,"p-button-text",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi pi-trash","tooltipPosition","left",1,"p-button-text","p-button-danger",3,"pTooltip","disabled","click"],[2,"width","8%"],["pSortableColumn","ChanSeq",2,"width","8%"],["field","ChanSeq"],[2,"width","10%"],[2,"width","23%"],[1,"pt-1","pb-0"],["height","32","width","42","style","background-color:#000000","onerror","this.height='0'",3,"src",4,"ngIf","ngIfElse"],["nullIcon",""],[3,"ngModel","binary","name","disabled","ngModelChange"],["height","32","width","42","onerror","this.height='0'",2,"background-color","#000000",3,"src"],["height","32","width","42"],[1,"col-12",2,"text-align","left"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi pi-save","styleClass","p-button-success",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"],["icon","pi pi-times-circle","styleClass","p-button-danger",3,"label","onClick"],["icon","pi pi-check-circle","styleClass","p-button-success",3,"label","onClick"],["icon","pi pi-check-circle","styleClass","p-button-danger",3,"label","onClick"]],template:function(n,i){1&n&&(m(0,CCe,5,3,"div",0),l(1,"form",1,2)(3,"p-dialog",3),v("visibleChange",function(r){return i.displayGroupDlg=r}),l(4,"div",4)(5,"label",5),_(6),f(7,"translate"),c(),l(8,"input",6,7),v("ngModelChange",function(r){return i.group.Name=r})("change",function(){return i.checkName()}),c(),l(10,"small",8),_(11),f(12,"translate"),c()(),l(13,"p-table",9),m(14,yCe,15,12,"ng-template",10),m(15,ICe,13,9,"ng-template",11),c(),m(16,DCe,7,9,"ng-template",12),c(),l(17,"p-dialog",13),v("visibleChange",function(r){return i.displayUnsaved=r}),f(18,"translate"),l(19,"p"),_(20),f(21,"translate"),c(),m(22,MCe,4,6,"ng-template",12),c(),l(23,"p-dialog",14),v("visibleChange",function(r){return i.displayDelete=r}),f(24,"translate"),l(25,"h2"),_(26),f(27,"translate"),c(),l(28,"p"),_(29),f(30,"translate"),c(),m(31,ECe,6,7,"ng-template",12),c()()),2&n&&(d("ngIf",i.loaded),a(3),j(V(41,LCe)),I("header",i.dialogHeader),d("visible",i.displayGroupDlg)("modal",!0)("closable",!1)("closeOnEscape",!1),a(3),S(g(7,26,"dashboard.channelgroup.name_label")),a(2),d("ngModel",i.group.Name)("disabled",!i.group.canRename||!i.group.canUpdate),a(3),x(" ",g(12,28,"dashboard.channelgroup.name_desc")," "),a(2),d("value",i.allChannels)("scrollable",!0)("rowHover",!0),a(4),I("header",g(18,30,"common.unsaved_heading")),d("visible",i.displayUnsaved)("modal",!0),a(3),S(g(21,32,"common.unsaved_message")),a(3),I("header",g(24,34,"dashboard.channelgroup.delete_label")),d("visible",i.displayDelete)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(g(27,36,"settings.common.ru_sure")),a(3),S(mt(30,38,"dashboard.channelgroup.delete_details",W(42,RCe,i.group.Name))))},dependencies:[ne,We,Xe,xe,$e,Ce,He,$t,ae,Sn,Te,ln,pn,qe,bt,yn,Sa,xa,pe]})}return t})();function ACe(t,s){if(1&t&&(l(0,"b"),_(1),c()),2&t){const e=p();a(1),x("\xa0",e.dirtyMessages[0],"")}}function PCe(t,s){1&t&&D(0,"app-channel-groups")}function FCe(t,s){if(1&t&&(l(0,"b"),_(1),c()),2&t){const e=p();a(1),x("\xa0",e.dirtyMessages[1],"")}}function NCe(t,s){1&t&&D(0,"app-playback-groups")}let VCe=(()=>{class t{constructor(e,n,i){this.setupService=e,this.translate=n,this.router=i,this.m_showHelp=!1,this.currentTab=-1,this.dirtyMessages=["","","","","","","","","","","","","","","",""],this.forms=[,,,,,,,,,,,,,,,,],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.setupService.setCurrentForm(null),n.get(this.dirtyText).subscribe(o=>this.dirtyText=o),n.get(this.warningText).subscribe(o=>this.warningText=o)}ngOnInit(){}onTabOpen(e){this.showDirty(),typeof this.forms[e.index]>"u"&&(this.forms[e.index]=this.setupService.getCurrentForm()),this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty()}showDirty(){-1!=this.currentTab&&(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab].dirty?this.dirtyText:"")}showHelp(){this.m_showHelp=!0}confirm(e){return ue(window.confirm(e))}canDeactivate(){return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(e=>e.length>0))||this.confirm(this.warningText)}onWindowClose(e){(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n.length>0))&&(e.preventDefault(),e.returnValue=!1)}static#e=this.\u0275fac=function(n){return new(n||t)(M(Re),M(Le),M(Nt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-dashboard-settings"]],hostBindings:function(n,i){1&n&&v("beforeunload",function(r){return i.onWindowClose(r)},0,Nn)},decls:14,vars:9,consts:[[1,"col-12","w-full","p-0",3,"onClose","onOpen"],[3,"header"],["pTemplate","header"],["pTemplate","content"]],template:function(n,i){1&n&&(l(0,"p-card")(1,"h2"),_(2),f(3,"translate"),c(),l(4,"p-accordion",0),v("onClose",function(r){return i.onTabClose(r)})("onOpen",function(r){return i.onTabOpen(r)}),l(5,"p-accordionTab",1),f(6,"translate"),m(7,ACe,2,1,"ng-template",2),m(8,PCe,1,0,"ng-template",3),c()(),l(9,"p-accordion",0),v("onClose",function(r){return i.onTabClose(r)})("onOpen",function(r){return i.onTabOpen(r)}),l(10,"p-accordionTab",1),f(11,"translate"),m(12,FCe,2,1,"ng-template",2),m(13,NCe,1,0,"ng-template",3),c()()()),2&n&&(a(2),S(g(3,3,"dashboard.settings.heading")),a(3),I("header",g(6,5,"dashboard.channelgroup.heading")),a(5),I("header",g(11,7,"dashboard.playgroup.heading")))},dependencies:[vs,bs,ae,Ge,fCe,OCe,pe]})}return t})(),BCe=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=ge({type:t});static#n=this.\u0275inj=me({imports:[zn.forChild([{path:"dashboard",component:Hx,children:[{path:"status",component:hbe},{path:"channel-editor",component:Yx},{path:"program-guide",component:Xx},{path:"recordings",component:Obe},{path:"upcoming",component:yve},{path:"recrules",component:Lve},{path:"videos",component:tCe},{path:"settings",component:VCe}]}]),zn]})}return t})();function HCe(t,s){1&t&&(l(0,"tr")(1,"th",6),_(2),f(3,"translate"),c(),l(4,"th",7),_(5),f(6,"translate"),c(),D(7,"th",8),l(8,"th",9),_(9),f(10,"translate"),c(),l(11,"th",10),_(12),f(13,"translate"),c(),l(14,"th",11),_(15),f(16,"translate"),c(),l(17,"th",6),_(18),f(19,"translate"),c(),l(20,"th",12),_(21),f(22,"translate"),c(),l(23,"th",13),_(24),f(25,"translate"),c(),l(26,"th",14),D(27,"button",15),c()()),2&t&&(a(2),x(" ",g(3,9,"dashboard.upcoming.date")," "),a(3),x(" ",g(6,11,"dashboard.upcoming.time")," "),a(4),x(" ",g(10,13,"dashboard.recordings.title"),""),a(3),S(g(13,15,"dashboard.recordings.subtitle")),a(3),S(g(16,17,"dashboard.recordings.seas_ep")),a(3),x(" ",g(19,19,"dashboard.recordings.orig_airdate")," "),a(3),S(g(22,21,"dashboard.recordings.channel")),a(3),x(" ",g(25,23,"dashboard.upcoming.status")," "),a(3),d("disabled",!0))}function GCe(t,s){if(1&t&&(l(0,"div"),_(1),c()),2&t){const e=p().$implicit;a(1),Ke(" ",e.Season,"x",e.Episode,"")}}const qCe=function(){return["WillRecord","Recording","Recorded"]};function zCe(t,s){if(1&t&&(l(0,"div",27)(1,"b"),_(2),c()()),2&t){const e=p().$implicit,n=p();d("ngClass",V(2,qCe).indexOf(e.Recording.StatusName)>-1?"bg-green-500":"bg-pink-500"),a(2),S(n.dataService.recStatusText[e.Recording.StatusName])}}function UCe(t,s){if(1&t){const e=E();l(0,"tr",16)(1,"td",17),D(2,"div",18),c(),l(3,"td",19),_(4),c(),l(5,"td",20),_(6),f(7,"number"),c(),l(8,"td",21),_(9),c(),l(10,"td",22),_(11),c(),l(12,"td",11),m(13,GCe,2,2,"div",23),c(),l(14,"td",6),D(15,"div",18),c(),l(16,"td",12),_(17),c(),l(18,"td",13),m(19,zCe,3,3,"div",24),c(),l(20,"td",25)(21,"button",26),v("click",function(){const o=C(e).$implicit;return y(p().updateRecRule(o))}),f(22,"translate"),c()()()}if(2&t){const e=s.$implicit,n=p();d("ngClass",n.getClasses(e)),a(2),d("innerHTML",n.formatStartDate(e),Zt),a(2),x(" ",n.formatStartTime(e),""),a(2),x(" ",mt(7,14,n.getDuration(e),"1.0-0")," min"),a(3),x(" ",e.Title,""),a(1),I("pTooltip",e.Description),a(1),x(" ",e.SubTitle.slice(0,50),""),a(2),d("ngIf",e.Season>0||e.Episode>0),a(2),d("innerHTML",n.formatAirDate(e),Zt),a(2),Ke(" ",e.Channel.ChanNum," ",e.Channel.CallSign,""),a(2),d("ngIf",e.Recording),a(2),I("pTooltip",g(22,17,"dashboard.recordings.edit_rule")),d("disabled",e.Recording&&7==e.Recording.RecType)}}function jCe(t,s){1&t&&(D(0,"p-message",32),f(1,"translate")),2&t&&I("text",g(1,1,"common.networkfail"))}function $Ce(t,s){if(1&t){const e=E();l(0,"div",28),m(1,jCe,2,3,"p-message",29),c(),l(2,"p-button",30),v("onClick",function(){return C(e),y(p().displayStop=!1)}),f(3,"translate"),c(),l(4,"p-button",31),v("onClick",function(){C(e);const i=p();return y(i.stopRecording(i.program))}),f(5,"translate"),c()}if(2&t){const e=p();a(1),d("ngIf",e.errorCount>0),a(1),I("label",g(3,3,"common.close")),a(2),I("label",g(5,5,"dashboard.recordings.stop_recording"))}}let WCe=(()=>{class t{constructor(e,n,i){this.dataService=e,this.dvrService=n,this.utility=i,this.programs=[],this.displayStop=!1,this.successCount=0,this.errorCount=0,this.regex=/[^a-z0-9]/g}ngOnInit(){}formatStartDate(e){return this.utility.formatDate(e.StartTime,!0)}formatAirDate(e){return e.Airdate?this.utility.formatDate(e.Airdate+" 00:00",!0):""}formatStartTime(e){let n=new Date(e.StartTime).getTime();return(new Date(n).toLocaleTimeString()+" ").replace(/:.. /," ")}getClasses(e){return["guide_type_"+e.CatType,"guide_cat_"+e.Category.toLowerCase().replace(this.regex,"_"),"guide_type_default"]}getDuration(e){let n=new Date(e.StartTime).getTime();return(new Date(e.EndTime).getTime()-n)/6e4}updateRecRule(e){this.inter.sched&&this.inter.sched.open(e)}override(e){this.inter.sched&&(7==e.Recording.RecType?this.inter.sched.open(e):this.inter.sched.open(e,void 0,{Type:"Override Recording"}))}stopRequest(e){e.Recording.RecordId&&(this.program=e,this.displayStop=!0)}stopRecording(e){this.errorCount=0,this.dvrService.StopRecording(e.Recording.RecordedId).subscribe({next:n=>{n.bool?(this.displayStop=!1,setTimeout(()=>this.inter.summaryComponent.refresh(),3e3)):this.errorCount++},error:n=>{this.errorCount++}})}static#e=this.\u0275fac=function(n){return new(n||t)(M(xc),M(sr),M(Ts))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-programs"]],inputs:{programs:"programs",inter:"inter"},decls:16,vars:18,consts:[[2,"height","90vh"],["scrollHeight","flex","styleClass","p-datatable-striped","responsiveLayout","scroll",3,"value","scrollable","rowHover"],["pTemplate","header"],["pTemplate","body"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["pTemplate","footer"],[1,"justify-content-end","p-1",2,"flex-basis","8%"],[1,"justify-content-end","p-1",2,"flex-basis","6%"],[1,"justify-content-end","pl-1","pr-3","pt-1","pb-1",2,"flex-basis","7%"],[1,"p-1",2,"flex-basis","12%"],[1,"p-1",2,"flex-basis","18%"],[1,"p-1",2,"flex-basis","4%"],[1,"p-1",2,"flex-basis","10%"],[1,"p-1",2,"flex-basis","7%"],[1,"p-1",2,"flex-basis","2%"],["pButton","","pRipple","","icon","pi pi-pencil",1,"p-button-text","p-button-primary",3,"disabled"],[3,"ngClass"],[1,"justify-content-end","p-1","overflow-hidden",2,"flex-basis","8%"],[3,"innerHTML"],[1,"justify-content-end","p-1","overflow-hidden",2,"flex-basis","6%"],[1,"justify-content-end","pl-1","pr-3","pt-1","pb-1","overflow-hidden",2,"flex-basis","7%"],[1,"p-1","overflow-hidden",2,"flex-basis","12%"],["tooltipPosition","top",1,"p-1","overflow-hidden",2,"flex-basis","18%",3,"pTooltip"],[4,"ngIf"],["class","text-white",3,"ngClass",4,"ngIf"],[1,"p-1",2,"flex-basis","2%","background","var(--surface-card)"],["pButton","","pRipple","","icon","pi pi-pencil","tooltipPosition","left",1,"p-button-text","p-button-primary",3,"pTooltip","disabled","click"],[1,"text-white",3,"ngClass"],[1,"col-12",2,"text-align","left"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi pi-check-circle","styleClass","p-button-danger",3,"label","onClick"],["severity","error",3,"text"]],template:function(n,i){1&n&&(l(0,"div",0)(1,"p-table",1),m(2,HCe,28,25,"ng-template",2),m(3,UCe,23,19,"ng-template",3),c(),l(4,"p-dialog",4),v("visibleChange",function(r){return i.displayStop=r}),f(5,"translate"),l(6,"h2"),_(7),f(8,"translate"),c(),l(9,"p"),_(10),f(11,"translate"),D(12,"br"),l(13,"b"),_(14),c()(),m(15,$Ce,6,7,"ng-template",5),c()()),2&n&&(a(1),d("value",i.programs)("scrollable",!0)("rowHover",!0),a(3),I("header",g(5,12,"dashboard.recordings.stop_recording")),d("visible",i.displayStop)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(g(8,14,"settings.common.ru_sure")),a(3),x("",g(11,16,"dashboard.recordings.stop_details")," "),a(4),Ke(" ",null==i.program?null:i.program.Title,": ",null==i.program?null:i.program.SubTitle,""))},dependencies:[Fe,ne,$t,ae,Sn,Te,pn,qe,bt,yn,Md,pe],styles:[".type_series[_ngcontent-%COMP%]{background-color:#00008b;color:#fff}.type_tvshow[_ngcontent-%COMP%]{background-color:#2f4f4f;color:#fff}.type_movie[_ngcontent-%COMP%]{background-color:#8a2be2;color:#fff}.type_sports[_ngcontent-%COMP%]{background-color:#8b0000;color:#fff}"]})}return t})();function KCe(t,s){1&t&&(_(0),f(1,"translate")),2&t&&x(" ",g(1,1,"dashboard.guide.typecolors")," ")}const QCe=function(t){return[t,"guide_type_default"]};function JCe(t,s){if(1&t&&(l(0,"div",4)(1,"div",5),_(2),c()()),2&t){const e=s.$implicit;a(1),d("ngClass",W(2,QCe,"guide_type_"+e)),a(1),x(" \xa0",e,"")}}function ZCe(t,s){1&t&&(_(0),f(1,"translate")),2&t&&x(" ",g(1,1,"dashboard.guide.catcolors")," ")}const YCe=function(t){return[t,"px-1"]};function XCe(t,s){if(1&t&&(l(0,"div",4)(1,"div",5),_(2),c()()),2&t){const e=s.$implicit,n=p();a(1),d("ngClass",W(2,YCe,"guide_cat_"+e.toLowerCase().replace(n.regex,"_"))),a(1),x(" ",e,"")}}let e0e=(()=>{class t{constructor(){this.catTypes=[],this.categories=[],this.regex=/[^a-z0-9]/g}ngOnInit(){let e=new Set,n=new Set;null!=this.programGuide?this.programGuide.ProgramGuide.Channels.forEach(o=>{o.Programs.forEach(r=>{r.CatType&&e.add(r.CatType),r.Category&&n.add(r.Category)})}):null!=this.listPrograms&&this.listPrograms.forEach(o=>{o.CatType&&e.add(o.CatType),o.Category&&n.add(o.Category)}),this.catTypes=[];let i=e.values();for(;;){let o=i.next();if(o.done)break;this.catTypes.push(o.value)}for(this.categories=[],i=n.values();;){let o=i.next();if(o.done)break;this.categories.push(o.value)}this.catTypes.sort(),this.catTypes.push("default"),this.categories.sort()}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=U({type:t,selectors:[["app-legend"]],inputs:{programGuide:"programGuide",listPrograms:"listPrograms"},decls:20,vars:11,consts:[[1,"flex"],["layout","grid",3,"value"],["pTemplate","header"],["pTemplate","gridItem"],[1,"md:col-2","px-3","py-1"],[3,"ngClass"]],template:function(n,i){1&n&&(l(0,"div",0)(1,"div")(2,"p-dataView",1),m(3,KCe,2,3,"ng-template",2),m(4,JCe,3,4,"ng-template",3),c(),l(5,"p-dataView",1),m(6,ZCe,2,3,"ng-template",2),m(7,XCe,3,4,"ng-template",3),c(),l(8,"p"),_(9),f(10,"translate"),D(11,"br"),_(12),f(13,"translate"),D(14,"br"),_(15),f(16,"translate"),l(17,"code"),_(18,"/usr/share/mythtv/html/assets/guidecolors.css"),c(),_(19,"\xa0."),c()()()),2&n&&(a(2),d("value",i.catTypes),a(3),d("value",i.categories),a(4),S(g(10,5,"dashboard.guide.color_includes")),a(3),x(" ",g(13,7,"dashboard.guide.color_expl"),""),a(3),x(" ",g(16,9,"dashboard.guide.color_customize"),""))},dependencies:[Fe,ae,eS,pe]})}return t})();function t0e(t){return new sP(t)}let n0e=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=ge({type:t,bootstrap:[ire]});static#n=this.\u0275inj=me({imports:[gw,q8,qoe,ZN,Yd,XP,woe,iP.forRoot({defaultLanguage:"en_US",loader:{provide:Hl,useFactory:t0e,deps:[Ki]}}),Use,Gde,BCe]})}return t})();rs(Xx,function(){return[ut,ne,Xe,xe,Ce,$t,ae,Sn,Zo,ln,eS,pn,Gt,Ia,bt,xx,vpe,Ipe,Spe,f1,WCe,e0e]},function(){return[pe]}),rs(Wx,function(){return[ut,ne,Go,Al,hg,xe,Ce,vs,bs,ae,Te,Ge,pn,es,qe,Gpe,iD,yme,Rme,Gme,Jme,ofe,Gge,e_e,p_e,I_e,P_e]},function(){return[pe]}),rs(iD,function(){return[ne,We,Xe,xe,$e,In,Ce,He,$t,ae,Te,Ge,ln,pn,Gt,Xi,vt,es,qe,$p,p1,Mc,kc]},function(){return[pe]}),rs(Mc,function(){return[ne,We,Xe,xe,$e,In,Ce,He,ae,Te,Ge,pn,Gt,Xi,vt,es,yn,wx,Jee,$p,p1,Mc,kc]},function(){return[pe]}),rs(kc,function(){return[ne,We,Xe,xe,$e,Ce,He,ae,Te,Ge,pn,Xi,vt,es,$p,p1,Mc,kc]},function(){return[pe]}),rs(Zx,function(){return[ut,ne,vs,bs,ae,Te,Ge,cD]},function(){return[pe]}),rs(cD,function(){return[ne,Go,Al,We,Xe,xe,$e,In,Ce,He,ae,Te,Ge,ln,pn,Gt,Xi,vt,qe,Ic,w1e]},function(){return[pe]}),rs(Kx,function(){return[ut,ne,vs,bs,ae,Te,Ge,dD]},function(){return[pe]}),rs(dD,function(){return[ut,ne,Xe,xe,Ce,vs,bs,ae,Te,pn,qe,Mge]},function(){return[pe]}),d8().bootstrapModule(n0e).catch(t=>console.error(t))}},Mt=>{Mt(Mt.s=153)}]);
\ No newline at end of file
+"use strict";(self.webpackChunkbackend=self.webpackChunkbackend||[]).push([[792],{958:()=>{function Et(t){return"function"==typeof t}function ka(t){const e=t(n=>{Error.call(n),n.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const Lc=ka(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((n,i)=>`${i+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function lr(t,s){if(t){const e=t.indexOf(s);0<=e&&t.splice(e,1)}}class ti{constructor(s){this.initialTeardown=s,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let s;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:n}=this;if(Et(n))try{n()}catch(o){s=o instanceof Lc?o.errors:[o]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const o of i)try{v1(o)}catch(r){s=s??[],r instanceof Lc?s=[...s,...r.errors]:s.push(r)}}if(s)throw new Lc(s)}}add(s){var e;if(s&&s!==this)if(this.closed)v1(s);else{if(s instanceof ti){if(s.closed||s._hasParent(this))return;s._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(s)}}_hasParent(s){const{_parentage:e}=this;return e===s||Array.isArray(e)&&e.includes(s)}_addParent(s){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(s),e):e?[e,s]:s}_removeParent(s){const{_parentage:e}=this;e===s?this._parentage=null:Array.isArray(e)&&lr(e,s)}remove(s){const{_finalizers:e}=this;e&&lr(e,s),s instanceof ti&&s._removeParent(this)}}ti.EMPTY=(()=>{const t=new ti;return t.closed=!0,t})();const _1=ti.EMPTY;function b1(t){return t instanceof ti||t&&"closed"in t&&Et(t.remove)&&Et(t.add)&&Et(t.unsubscribe)}function v1(t){Et(t)?t():t.unsubscribe()}const So={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Rc={setTimeout(t,s,...e){const{delegate:n}=Rc;return n?.setTimeout?n.setTimeout(t,s,...e):setTimeout(t,s,...e)},clearTimeout(t){const{delegate:s}=Rc;return(s?.clearTimeout||clearTimeout)(t)},delegate:void 0};function C1(t){Rc.setTimeout(()=>{const{onUnhandledError:s}=So;if(!s)throw t;s(t)})}function Oc(){}const bD=Yp("C",void 0,void 0);function Yp(t,s,e){return{kind:t,value:s,error:e}}let Io=null;function Ac(t){if(So.useDeprecatedSynchronousErrorHandling){const s=!Io;if(s&&(Io={errorThrown:!1,error:null}),t(),s){const{errorThrown:e,error:n}=Io;if(Io=null,e)throw n}}else t()}class Xp extends ti{constructor(s){super(),this.isStopped=!1,s?(this.destination=s,b1(s)&&s.add(this)):this.destination=ID}static create(s,e,n){return new Ea(s,e,n)}next(s){this.isStopped?th(function CD(t){return Yp("N",t,void 0)}(s),this):this._next(s)}error(s){this.isStopped?th(function vD(t){return Yp("E",void 0,t)}(s),this):(this.isStopped=!0,this._error(s))}complete(){this.isStopped?th(bD,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(s){this.destination.next(s)}_error(s){try{this.destination.error(s)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const TD=Function.prototype.bind;function eh(t,s){return TD.call(t,s)}class wD{constructor(s){this.partialObserver=s}next(s){const{partialObserver:e}=this;if(e.next)try{e.next(s)}catch(n){Pc(n)}}error(s){const{partialObserver:e}=this;if(e.error)try{e.error(s)}catch(n){Pc(n)}else Pc(s)}complete(){const{partialObserver:s}=this;if(s.complete)try{s.complete()}catch(e){Pc(e)}}}class Ea extends Xp{constructor(s,e,n){let i;if(super(),Et(s)||!s)i={next:s??void 0,error:e??void 0,complete:n??void 0};else{let o;this&&So.useDeprecatedNextContext?(o=Object.create(s),o.unsubscribe=()=>this.unsubscribe(),i={next:s.next&&eh(s.next,o),error:s.error&&eh(s.error,o),complete:s.complete&&eh(s.complete,o)}):i=s}this.destination=new wD(i)}}function Pc(t){So.useDeprecatedSynchronousErrorHandling?function yD(t){So.useDeprecatedSynchronousErrorHandling&&Io&&(Io.errorThrown=!0,Io.error=t)}(t):C1(t)}function th(t,s){const{onStoppedNotification:e}=So;e&&Rc.setTimeout(()=>e(t,s))}const ID={closed:!0,next:Oc,error:function SD(t){throw t},complete:Oc},nh="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ws(t){return t}function y1(t){return 0===t.length?Ws:1===t.length?t[0]:function(e){return t.reduce((n,i)=>i(n),e)}}let It=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(e,n,i){const o=function MD(t){return t&&t instanceof Xp||function DD(t){return t&&Et(t.next)&&Et(t.error)&&Et(t.complete)}(t)&&b1(t)}(e)?e:new Ea(e,n,i);return Ac(()=>{const{operator:r,source:u}=this;o.add(r?r.call(o,u):u?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(n){e.error(n)}}forEach(e,n){return new(n=T1(n))((i,o)=>{const r=new Ea({next:u=>{try{e(u)}catch(h){o(h),r.unsubscribe()}},error:o,complete:i});this.subscribe(r)})}_subscribe(e){var n;return null===(n=this.source)||void 0===n?void 0:n.subscribe(e)}[nh](){return this}pipe(...e){return y1(e)(this)}toPromise(e){return new(e=T1(e))((n,i)=>{let o;this.subscribe(r=>o=r,r=>i(r),()=>n(o))})}}return t.create=s=>new t(s),t})();function T1(t){var s;return null!==(s=t??So.Promise)&&void 0!==s?s:Promise}const kD=ka(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Jt=(()=>{class t extends It{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const n=new w1(this,this);return n.operator=e,n}_throwIfClosed(){if(this.closed)throw new kD}next(e){Ac(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const n of this.currentObservers)n.next(e)}})}error(e){Ac(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:n}=this;for(;n.length;)n.shift().error(e)}})}complete(){Ac(()=>{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:n,isStopped:i,observers:o}=this;return n||i?_1:(this.currentObservers=null,o.push(e),new ti(()=>{this.currentObservers=null,lr(o,e)}))}_checkFinalizedStatuses(e){const{hasError:n,thrownError:i,isStopped:o}=this;n?e.error(i):o&&e.complete()}asObservable(){const e=new It;return e.source=this,e}}return t.create=(s,e)=>new w1(s,e),t})();class w1 extends Jt{constructor(s,e){super(),this.destination=s,this.source=e}next(s){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===n||n.call(e,s)}error(s){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===n||n.call(e,s)}complete(){var s,e;null===(e=null===(s=this.destination)||void 0===s?void 0:s.complete)||void 0===e||e.call(s)}_subscribe(s){var e,n;return null!==(n=null===(e=this.source)||void 0===e?void 0:e.subscribe(s))&&void 0!==n?n:_1}}function S1(t){return Et(t?.lift)}function cn(t){return s=>{if(S1(s))return s.lift(function(e){try{return t(e,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function on(t,s,e,n,i){return new ED(t,s,e,n,i)}class ED extends Xp{constructor(s,e,n,i,o,r){super(s),this.onFinalize=o,this.shouldUnsubscribe=r,this._next=e?function(u){try{e(u)}catch(h){s.error(h)}}:super._next,this._error=i?function(u){try{i(u)}catch(h){s.error(h)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(u){s.error(u)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var s;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(s=this.onFinalize)||void 0===s||s.call(this))}}}function lt(t,s){return cn((e,n)=>{let i=0;e.subscribe(on(n,o=>{n.next(t.call(s,o,i++))}))})}function Ks(t){return this instanceof Ks?(this.v=t,this):new Ks(t)}function M1(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,s=t[Symbol.asyncIterator];return s?s.call(t):(t=function rh(t){var s="function"==typeof Symbol&&Symbol.iterator,e=s&&t[s],n=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(o){e[o]=t[o]&&function(r){return new Promise(function(u,h){!function i(o,r,u,h){Promise.resolve(h).then(function(b){o({value:b,done:u})},r)}(u,h,(r=t[o](r)).done,r.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const k1=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function E1(t){return Et(t?.then)}function L1(t){return Et(t[nh])}function R1(t){return Symbol.asyncIterator&&Et(t?.[Symbol.asyncIterator])}function O1(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 A1=function YD(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function P1(t){return Et(t?.[A1])}function F1(t){return function D1(t,s,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,n=e.apply(t,s||[]),o=[];return i={},r("next"),r("throw"),r("return"),i[Symbol.asyncIterator]=function(){return this},i;function r(k){n[k]&&(i[k]=function(L){return new Promise(function(O,A){o.push([k,L,O,A])>1||u(k,L)})})}function u(k,L){try{!function h(k){k.value instanceof Ks?Promise.resolve(k.value.v).then(b,T):w(o[0][2],k)}(n[k](L))}catch(O){w(o[0][3],O)}}function b(k){u("next",k)}function T(k){u("throw",k)}function w(k,L){k(L),o.shift(),o.length&&u(o[0][0],o[0][1])}}(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:n,done:i}=yield Ks(e.read());if(i)return yield Ks(void 0);yield yield Ks(n)}}finally{e.releaseLock()}})}function N1(t){return Et(t?.getReader)}function ni(t){if(t instanceof It)return t;if(null!=t){if(L1(t))return function XD(t){return new It(s=>{const e=t[nh]();if(Et(e.subscribe))return e.subscribe(s);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(k1(t))return function e4(t){return new It(s=>{for(let e=0;e{t.then(e=>{s.closed||(s.next(e),s.complete())},e=>s.error(e)).then(null,C1)})}(t);if(R1(t))return V1(t);if(P1(t))return function n4(t){return new It(s=>{for(const e of t)if(s.next(e),s.closed)return;s.complete()})}(t);if(N1(t))return function s4(t){return V1(F1(t))}(t)}throw O1(t)}function V1(t){return new It(s=>{(function o4(t,s){var e,n,i,o;return function I1(t,s,e,n){return new(e||(e=Promise))(function(o,r){function u(T){try{b(n.next(T))}catch(w){r(w)}}function h(T){try{b(n.throw(T))}catch(w){r(w)}}function b(T){T.done?o(T.value):function i(o){return o instanceof e?o:new e(function(r){r(o)})}(T.value).then(u,h)}b((n=n.apply(t,s||[])).next())})}(this,void 0,void 0,function*(){try{for(e=M1(t);!(n=yield e.next()).done;)if(s.next(n.value),s.closed)return}catch(r){i={error:r}}finally{try{n&&!n.done&&(o=e.return)&&(yield o.call(e))}finally{if(i)throw i.error}}s.complete()})})(t,s).catch(e=>s.error(e))})}function Ss(t,s,e,n=0,i=!1){const o=s.schedule(function(){e(),i?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(o),!i)return o}function Tn(t,s,e=1/0){return Et(s)?Tn((n,i)=>lt((o,r)=>s(n,o,i,r))(ni(t(n,i))),e):("number"==typeof s&&(e=s),cn((n,i)=>function r4(t,s,e,n,i,o,r,u){const h=[];let b=0,T=0,w=!1;const k=()=>{w&&!h.length&&!b&&s.complete()},L=A=>b{o&&s.next(A),b++;let P=!1;ni(e(A,T++)).subscribe(on(s,U=>{i?.(U),o?L(U):s.next(U)},()=>{P=!0},void 0,()=>{if(P)try{for(b--;h.length&&bO(U)):O(U)}k()}catch(U){s.error(U)}}))};return t.subscribe(on(s,L,()=>{w=!0,k()})),()=>{u?.()}}(n,i,t,e)))}function cr(t=1/0){return Tn(Ws,t)}const ss=new It(t=>t.complete());function B1(t){return t&&Et(t.schedule)}function ah(t){return t[t.length-1]}function H1(t){return Et(ah(t))?t.pop():void 0}function La(t){return B1(ah(t))?t.pop():void 0}function G1(t,s=0){return cn((e,n)=>{e.subscribe(on(n,i=>Ss(n,t,()=>n.next(i),s),()=>Ss(n,t,()=>n.complete(),s),i=>Ss(n,t,()=>n.error(i),s)))})}function q1(t,s=0){return cn((e,n)=>{n.add(t.schedule(()=>e.subscribe(n),s))})}function z1(t,s){if(!t)throw new Error("Iterable cannot be null");return new It(e=>{Ss(e,s,()=>{const n=t[Symbol.asyncIterator]();Ss(e,s,()=>{n.next().then(i=>{i.done?e.complete():e.next(i.value)})},0,!0)})})}function hn(t,s){return s?function m4(t,s){if(null!=t){if(L1(t))return function c4(t,s){return ni(t).pipe(q1(s),G1(s))}(t,s);if(k1(t))return function d4(t,s){return new It(e=>{let n=0;return s.schedule(function(){n===t.length?e.complete():(e.next(t[n++]),e.closed||this.schedule())})})}(t,s);if(E1(t))return function u4(t,s){return ni(t).pipe(q1(s),G1(s))}(t,s);if(R1(t))return z1(t,s);if(P1(t))return function p4(t,s){return new It(e=>{let n;return Ss(e,s,()=>{n=t[A1](),Ss(e,s,()=>{let i,o;try{({value:i,done:o}=n.next())}catch(r){return void e.error(r)}o?e.complete():e.next(i)},0,!0)}),()=>Et(n?.return)&&n.return()})}(t,s);if(N1(t))return function h4(t,s){return z1(F1(t),s)}(t,s)}throw O1(t)}(t,s):ni(t)}class Ii extends Jt{constructor(s){super(),this._value=s}get value(){return this.getValue()}_subscribe(s){const e=super._subscribe(s);return!e.closed&&s.next(this._value),e}getValue(){const{hasError:s,thrownError:e,_value:n}=this;if(s)throw e;return this._throwIfClosed(),n}next(s){super.next(this._value=s)}}function de(...t){return hn(t,La(t))}function lh(t={}){const{connector:s=(()=>new Jt),resetOnError:e=!0,resetOnComplete:n=!0,resetOnRefCountZero:i=!0}=t;return o=>{let r,u,h,b=0,T=!1,w=!1;const k=()=>{u?.unsubscribe(),u=void 0},L=()=>{k(),r=h=void 0,T=w=!1},O=()=>{const A=r;L(),A?.unsubscribe()};return cn((A,P)=>{b++,!w&&!T&&k();const U=h=h??s();P.add(()=>{b--,0===b&&!w&&!T&&(u=ch(O,i))}),U.subscribe(P),!r&&b>0&&(r=new Ea({next:N=>U.next(N),error:N=>{w=!0,k(),u=ch(L,e,N),U.error(N)},complete:()=>{T=!0,k(),u=ch(L,n),U.complete()}}),ni(A).subscribe(r))})(o)}}function ch(t,s,...e){if(!0===s)return void t();if(!1===s)return;const n=new Ea({next:()=>{n.unsubscribe(),t()}});return ni(s(...e)).subscribe(n)}function ui(t,s){return cn((e,n)=>{let i=null,o=0,r=!1;const u=()=>r&&!i&&n.complete();e.subscribe(on(n,h=>{i?.unsubscribe();let b=0;const T=o++;ni(t(h,T)).subscribe(i=on(n,w=>n.next(s?s(h,w,T,b++):w),()=>{i=null,u()}))},()=>{r=!0,u()}))})}function _4(t,s){return t===s}function xt(t){for(let s in t)if(t[s]===xt)return s;throw Error("Could not find renamed property on target object.")}function Fc(t,s){for(const e in s)s.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=s[e])}function mn(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(mn).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const s=t.toString();if(null==s)return""+s;const e=s.indexOf("\n");return-1===e?s:s.substring(0,e)}function uh(t,s){return null==t||""===t?null===s?"":s:null==s||""===s?t:t+" "+s}const b4=xt({__forward_ref__:xt});function Ze(t){return t.__forward_ref__=Ze,t.toString=function(){return mn(this())},t}function Pe(t){return dh(t)?t():t}function dh(t){return"function"==typeof t&&t.hasOwnProperty(b4)&&t.__forward_ref__===Ze}function ph(t){return t&&!!t.\u0275providers}const U1="https://g.co/ng/security#xss";class $ extends Error{constructor(s,e){super(function Nc(t,s){return`NG0${Math.abs(t)}${s?": "+s:""}`}(s,e)),this.code=s}}function Ve(t){return"string"==typeof t?t:null==t?"":String(t)}function hh(t,s){throw new $(-201,!1)}function xi(t,s){null==t&&function Ee(t,s,e,n){throw new Error(`ASSERTION ERROR: ${t}`+(null==n?"":` [Expected=> ${e} ${n} ${s} <=Actual]`))}(s,t,null,"!=")}function ae(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 Vc(t){return j1(t,Hc)||j1(t,$1)}function j1(t,s){return t.hasOwnProperty(s)?t[s]:null}function Bc(t){return t&&(t.hasOwnProperty(mh)||t.hasOwnProperty(x4))?t[mh]:null}const Hc=xt({\u0275prov:xt}),mh=xt({\u0275inj:xt}),$1=xt({ngInjectableDef:xt}),x4=xt({ngInjectorDef:xt});var et=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}(et||{});let fh;function W1(){return fh}function ii(t){const s=fh;return fh=t,s}function K1(t,s,e){const n=Vc(t);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:e&et.Optional?null:void 0!==s?s:void hh(mn(t))}const At=globalThis;class le{constructor(s,e){this._desc=s,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=ae({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Ra={},Ch="__NG_DI_FLAG__",Gc="ngTempTokenPath",k4=/\n/gm,J1="__source";let ur;function Qs(t){const s=ur;return ur=t,s}function R4(t,s=et.Default){if(void 0===ur)throw new $(-203,!1);return null===ur?K1(t,void 0,s):ur.get(t,s&et.Optional?null:void 0,s)}function ie(t,s=et.Default){return(W1()||R4)(Pe(t),s)}function pe(t,s=et.Default){return ie(t,qc(s))}function qc(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function yh(t){const s=[];for(let e=0;es){r=o-1;break}}}for(;oo?"":i[w+1].toLowerCase();const L=8&n?k:null;if(L&&-1!==eb(L,b,0)||2&n&&b!==k){if(Gi(n))return!1;r=!0}}}}else{if(!r&&!Gi(n)&&!Gi(h))return!1;if(r&&Gi(h))continue;r=!1,n=h|1&n}}return Gi(n)||r}function Gi(t){return 0==(1&t)}function B4(t,s,e,n){if(null===s)return-1;let i=0;if(n||!e){let o=!1;for(;i-1)for(e++;e0?'="'+u+'"':"")+"]"}else 8&n?i+="."+r:4&n&&(i+=" "+r);else""!==i&&!Gi(r)&&(s+=ab(o,i),i=""),n=r,o=o||!Gi(n);e++}return""!==i&&(s+=ab(o,i)),s}function z(t){return Is(()=>{const s=cb(t),e={...s,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===zc.OnPush,directiveDefs:null,pipeDefs:null,dependencies:s.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Di.Emulated,styles:t.styles||mt,_:null,schemas:t.schemas||null,tView:null,id:""};ub(e);const n=t.dependencies;return e.directiveDefs=jc(n,!1),e.pipeDefs=jc(n,!0),e.id=function Z4(t){let s=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 i of e)s=Math.imul(31,s)+i.charCodeAt(0)<<0;return s+=2147483648,"c"+s}(e),e})}function rs(t,s,e){const n=t.\u0275cmp;n.directiveDefs=jc(s,!1),n.pipeDefs=jc(e,!0)}function W4(t){return st(t)||Mn(t)}function K4(t){return null!==t}function ge(t){return Is(()=>({type:t.type,bootstrap:t.bootstrap||mt,declarations:t.declarations||mt,imports:t.imports||mt,exports:t.exports||mt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function lb(t,s){if(null==t)return os;const e={};for(const n in t)if(t.hasOwnProperty(n)){let i=t[n],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),e[i]=n,s&&(s[i]=o)}return e}function fe(t){return Is(()=>{const s=cb(t);return ub(s),s})}function On(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 st(t){return t[Uc]||null}function Mn(t){return t[Th]||null}function jn(t){return t[wh]||null}function pi(t,s){const e=t[Y1]||null;if(!e&&!0===s)throw new Error(`Type ${mn(t)} does not have '\u0275mod' property.`);return e}function cb(t){const s={};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:s,inputTransforms:null,inputConfig:t.inputs||os,exportAs:t.exportAs||null,standalone:!0===t.standalone,signals:!0===t.signals,selectors:t.selectors||mt,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:lb(t.inputs,s),outputs:lb(t.outputs)}}function ub(t){t.features?.forEach(s=>s(t))}function jc(t,s){if(!t)return null;const e=s?jn:W4;return()=>("function"==typeof t?t():t).map(n=>e(n)).filter(K4)}const tn=0,ce=1,Ue=2,Ut=3,qi=4,Fa=5,An=6,pr=7,rn=8,Js=9,hr=10,Be=11,Na=12,db=13,mr=14,an=15,Va=16,fr=17,as=18,Ba=19,pb=20,Zs=21,Ds=22,Ha=23,Ga=24,tt=25,Ih=1,hb=2,ls=7,gr=9,kn=11;function si(t){return Array.isArray(t)&&"object"==typeof t[Ih]}function $n(t){return Array.isArray(t)&&!0===t[Ih]}function xh(t){return 0!=(4&t.flags)}function Do(t){return t.componentOffset>-1}function Wc(t){return 1==(1&t.flags)}function zi(t){return!!t.template}function Dh(t){return 0!=(512&t[Ue])}function Mo(t,s){return t.hasOwnProperty(xs)?t[xs]:null}const Ys=Symbol("SIGNAL");function gb(t,s){return(null===t||"object"!=typeof t)&&Object.is(t,s)}let En=null,Kc=!1;function Mi(t){const s=En;return En=t,s}const Qc={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 _b(t){if(Kc)throw new Error("");if(null===En)return;const s=En.nextProducerIndex++;_r(En),st.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function yb(t){_r(t);for(let s=0;s0}function _r(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function Sb(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}const kh=Symbol("UNSET"),Eh=Symbol("COMPUTING"),Xc=Symbol("ERRORED"),iM=(()=>({...Qc,value:kh,dirty:!0,error:null,equal:gb,producerMustRecompute:t=>t.value===kh||t.value===Eh,producerRecomputeValue(t){if(t.value===Eh)throw new Error("Detected cycle in computations.");const s=t.value;t.value=Eh;const e=Jc(t);let n;try{n=t.computation()}catch(i){n=Xc,t.error=i}finally{Zc(t,e)}s!==kh&&s!==Xc&&n!==Xc&&t.equal(s,n)?t.value=s:(t.value=n,t.version++)}}))();let Ib=function sM(){throw new Error};function Lh(){Ib()}let Rh=null;function br(t,s){const e=Object.create(rM);function n(){return _b(e),e.value}return e.value=t,s?.equal&&(e.equal=s.equal),n.set=Db,n.update=aM,n.mutate=lM,n.asReadonly=cM,n[Ys]=e,n}const rM=(()=>({...Qc,equal:gb,readonlyFn:void 0}))();function xb(t){t.version++,vb(t),Rh?.()}function Db(t){const s=this[Ys];Mh()||Lh(),s.equal(s.value,t)||(s.value=t,xb(s))}function aM(t){Mh()||Lh(),Db.call(this,t(this[Ys].value))}function lM(t){const s=this[Ys];Mh()||Lh(),t(s.value),xb(s)}function cM(){const t=this[Ys];if(void 0===t.readonlyFn){const s=()=>this();s[Ys]=t,t.readonlyFn=s}return t.readonlyFn}function Mb(t){const s=Mi(null);try{return t()}finally{Mi(s)}}const kb=()=>{},dM=(()=>({...Qc,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{t.schedule(t.ref)},hasRun:!1,cleanupFn:kb}))();class pM{constructor(s,e,n){this.previousValue=s,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function wn(){return Eb}function Eb(t){return t.type.prototype.ngOnChanges&&(t.setInput=mM),hM}function hM(){const t=Rb(this),s=t?.current;if(s){const e=t.previous;if(e===os)t.previous=s;else for(let n in s)e[n]=s[n];t.current=null,this.ngOnChanges(s)}}function mM(t,s,e,n){const i=this.declaredInputs[e],o=Rb(t)||function fM(t,s){return t[Lb]=s}(t,{previous:os,current:null}),r=o.current||(o.current={}),u=o.previous,h=u[i];r[i]=new pM(h&&h.currentValue,s,u===os),t[n]=s}wn.ngInherit=!0;const Lb="__ngSimpleChanges__";function Rb(t){return t[Lb]||null}const cs=function(t,s,e){};function Pt(t){for(;Array.isArray(t);)t=t[tn];return t}function eu(t,s){return Pt(s[t])}function oi(t,s){return Pt(s[t.index])}function Pb(t,s){return t.data[s]}function vr(t,s){return t[s]}function hi(t,s){const e=s[t];return si(e)?e:e[tn]}function Xs(t,s){return null==s?null:t[s]}function Fb(t){t[fr]=0}function yM(t){1024&t[Ue]||(t[Ue]|=1024,Vb(t,1))}function Nb(t){1024&t[Ue]&&(t[Ue]&=-1025,Vb(t,-1))}function Vb(t,s){let e=t[Ut];if(null===e)return;e[Fa]+=s;let n=e;for(e=e[Ut];null!==e&&(1===s&&1===n[Fa]||-1===s&&0===n[Fa]);)e[Fa]+=s,n=e,e=e[Ut]}function Bb(t,s){if(256==(256&t[Ue]))throw new $(911,!1);null===t[Zs]&&(t[Zs]=[]),t[Zs].push(s)}const Le={lFrame:Qb(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Gb(){return Le.bindingsEnabled}function Cr(){return null!==Le.skipHydrationRootTNode}function X(){return Le.lFrame.lView}function ot(){return Le.lFrame.tView}function C(t){return Le.lFrame.contextLView=t,t[rn]}function y(t){return Le.lFrame.contextLView=null,t}function Ln(){let t=qb();for(;null!==t&&64===t.type;)t=t.parent;return t}function qb(){return Le.lFrame.currentTNode}function us(t,s){const e=Le.lFrame;e.currentTNode=t,e.isParent=s}function Ph(){return Le.lFrame.isParent}function Fh(){Le.lFrame.isParent=!1}function Wn(){const t=Le.lFrame;let s=t.bindingRootIndex;return-1===s&&(s=t.bindingRootIndex=t.tView.bindingStartIndex),s}function Ms(){return Le.lFrame.bindingIndex}function yr(){return Le.lFrame.bindingIndex++}function ks(t){const s=Le.lFrame,e=s.bindingIndex;return s.bindingIndex=s.bindingIndex+t,e}function OM(t,s){const e=Le.lFrame;e.bindingIndex=e.bindingRootIndex=t,Nh(s)}function Nh(t){Le.lFrame.currentDirectiveIndex=t}function $b(){return Le.lFrame.currentQueryIndex}function Bh(t){Le.lFrame.currentQueryIndex=t}function PM(t){const s=t[ce];return 2===s.type?s.declTNode:1===s.type?t[An]:null}function Wb(t,s,e){if(e&et.SkipSelf){let i=s,o=t;for(;!(i=i.parent,null!==i||e&et.Host||(i=PM(o),null===i||(o=o[mr],10&i.type))););if(null===i)return!1;s=i,t=o}const n=Le.lFrame=Kb();return n.currentTNode=s,n.lView=t,!0}function Hh(t){const s=Kb(),e=t[ce];Le.lFrame=s,s.currentTNode=e.firstChild,s.lView=t,s.tView=e,s.contextLView=t,s.bindingIndex=e.bindingStartIndex,s.inI18n=!1}function Kb(){const t=Le.lFrame,s=null===t?null:t.child;return null===s?Qb(t):s}function Qb(t){const s={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=s),s}function Jb(){const t=Le.lFrame;return Le.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Zb=Jb;function Gh(){const t=Jb();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 Kn(){return Le.lFrame.selectedIndex}function ko(t){Le.lFrame.selectedIndex=t}function Zt(){const t=Le.lFrame;return Pb(t.tView,t.selectedIndex)}function ct(){Le.lFrame.currentNamespace="svg"}let Xb=!0;function tu(){return Xb}function eo(t){Xb=t}function nu(t,s){for(let e=s.directiveStart,n=s.directiveEnd;e=n)break}else s[h]<0&&(t[fr]+=65536),(u>13>16&&(3&t[Ue])===s&&(t[Ue]+=8192,tv(u,o)):tv(u,o)}const Tr=-1;class ja{constructor(s,e,n){this.factory=s,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Uh(t){return t!==Tr}function $a(t){return 32767&t}function Wa(t,s){let e=function $M(t){return t>>16}(t),n=s;for(;e>0;)n=n[mr],e--;return n}let jh=!0;function ou(t){const s=jh;return jh=t,s}const nv=255,iv=5;let WM=0;const ds={};function ru(t,s){const e=sv(t,s);if(-1!==e)return e;const n=s[ce];n.firstCreatePass&&(t.injectorIndex=s.length,$h(n.data,t),$h(s,null),$h(n.blueprint,null));const i=au(t,s),o=t.injectorIndex;if(Uh(i)){const r=$a(i),u=Wa(i,s),h=u[ce].data;for(let b=0;b<8;b++)s[o+b]=u[r+b]|h[r+b]}return s[o+8]=i,o}function $h(t,s){t.push(0,0,0,0,0,0,0,0,s)}function sv(t,s){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===s[t.injectorIndex+8]?-1:t.injectorIndex}function au(t,s){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,n=null,i=s;for(;null!==i;){if(n=dv(i),null===n)return Tr;if(e++,i=i[mr],-1!==n.injectorIndex)return n.injectorIndex|e<<16}return Tr}function Wh(t,s,e){!function KM(t,s,e){let n;"string"==typeof e?n=e.charCodeAt(0)||0:e.hasOwnProperty(Aa)&&(n=e[Aa]),null==n&&(n=e[Aa]=WM++);const i=n&nv;s.data[t+(i>>iv)]|=1<=0?s&nv:XM:s}(e);if("function"==typeof o){if(!Wb(s,t,n))return n&et.Host?ov(i,0,n):rv(s,e,n,i);try{let r;if(r=o(n),null!=r||n&et.Optional)return r;hh()}finally{Zb()}}else if("number"==typeof o){let r=null,u=sv(t,s),h=Tr,b=n&et.Host?s[an][An]:null;for((-1===u||n&et.SkipSelf)&&(h=-1===u?au(t,s):s[u+8],h!==Tr&&uv(n,!1)?(r=s[ce],u=$a(h),s=Wa(h,s)):u=-1);-1!==u;){const T=s[ce];if(cv(o,u,T.data)){const w=JM(u,s,e,r,n,b);if(w!==ds)return w}h=s[u+8],h!==Tr&&uv(n,s[ce].data[u+8]===b)&&cv(o,u,s)?(r=T,u=$a(h),s=Wa(h,s)):u=-1}}return i}function JM(t,s,e,n,i,o){const r=s[ce],u=r.data[t+8],T=lu(u,r,e,null==n?Do(u)&&jh:n!=r&&0!=(3&u.type),i&et.Host&&o===u);return null!==T?Eo(s,r,T,u):ds}function lu(t,s,e,n,i){const o=t.providerIndexes,r=s.data,u=1048575&o,h=t.directiveStart,T=o>>20,k=i?u+T:t.directiveEnd;for(let L=n?u:u+T;L=h&&O.type===e)return L}if(i){const L=r[h];if(L&&zi(L)&&L.type===e)return h}return null}function Eo(t,s,e,n){let i=t[e];const o=s.data;if(function zM(t){return t instanceof ja}(i)){const r=i;r.resolving&&function v4(t,s){const e=s?`. Dependency path: ${s.join(" > ")} > ${t}`:"";throw new $(-200,`Circular dependency in DI detected for ${t}${e}`)}(function yt(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Ve(t)}(o[e]));const u=ou(r.canSeeViewProviders);r.resolving=!0;const b=r.injectImpl?ii(r.injectImpl):null;Wb(t,n,et.Default);try{i=t[e]=r.factory(void 0,o,t,n),s.firstCreatePass&&e>=n.directiveStart&&function GM(t,s,e){const{ngOnChanges:n,ngOnInit:i,ngDoCheck:o}=s.type.prototype;if(n){const r=Eb(s);(e.preOrderHooks??=[]).push(t,r),(e.preOrderCheckHooks??=[]).push(t,r)}i&&(e.preOrderHooks??=[]).push(0-t,i),o&&((e.preOrderHooks??=[]).push(t,o),(e.preOrderCheckHooks??=[]).push(t,o))}(e,o[e],s)}finally{null!==b&&ii(b),ou(u),r.resolving=!1,Zb()}}return i}function cv(t,s,e){return!!(e[s+(t>>iv)]&1<{const s=t.prototype.constructor,e=s[xs]||Kh(s),n=Object.prototype;let i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==n;){const o=i[xs]||Kh(i);if(o&&o!==e)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function Kh(t){return dh(t)?()=>{const s=Kh(Pe(t));return s&&s()}:Mo(t)}function dv(t){const s=t[ce],e=s.type;return 2===e?s.declTNode:1===e?t[An]:null}const Sr="__parameters__";function xr(t,s,e){return Is(()=>{const n=function Qh(t){return function(...e){if(t){const n=t(...e);for(const i in n)this[i]=n[i]}}}(s);function i(...o){if(this instanceof i)return n.apply(this,o),this;const r=new i(...o);return u.annotation=r,u;function u(h,b,T){const w=h.hasOwnProperty(Sr)?h[Sr]:Object.defineProperty(h,Sr,{value:[]})[Sr];for(;w.length<=T;)w.push(null);return(w[T]=w[T]||[]).push(r),h}}return e&&(i.prototype=Object.create(e.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}function Mr(t,s){t.forEach(e=>Array.isArray(e)?Mr(e,s):s(e))}function hv(t,s,e){s>=t.length?t.push(e):t.splice(s,0,e)}function uu(t,s){return s>=t.length-1?t.pop():t.splice(s,1)[0]}function Ja(t,s){const e=[];for(let n=0;n=0?t[1|n]=e:(n=~n,function ak(t,s,e,n){let i=t.length;if(i==s)t.push(e,n);else if(1===i)t.push(n,t[0]),t[0]=e;else{for(i--,t.push(t[i-1],t[i]);i>s;)t[i]=t[i-2],i--;t[s]=e,t[s+1]=n}}(t,n,s,e)),n}function Jh(t,s){const e=kr(t,s);if(e>=0)return t[1|e]}function kr(t,s){return function mv(t,s,e){let n=0,i=t.length>>e;for(;i!==n;){const o=n+(i-n>>1),r=t[o<s?i=o:n=o+1}return~(i<|^->||--!>|)/g,Ek="\u200b$1\u200b";const tm=new Map;let Lk=0;const im="__ngContext__";function Pn(t,s){si(s)?(t[im]=s[Ba],function Ok(t){tm.set(t[Ba],t)}(s)):t[im]=s}let sm;function om(t,s){return sm(t,s)}function Xa(t){const s=t[Ut];return $n(s)?s[Ut]:s}function Av(t){return Fv(t[Na])}function Pv(t){return Fv(t[qi])}function Fv(t){for(;null!==t&&!$n(t);)t=t[qi];return t}function Rr(t,s,e,n,i){if(null!=n){let o,r=!1;$n(n)?o=n:si(n)&&(r=!0,n=n[tn]);const u=Pt(n);0===t&&null!==e?null==i?Hv(s,e,u):Lo(s,e,u,i||null,!0):1===t&&null!==e?Lo(s,e,u,i||null,!0):2===t?function Iu(t,s,e){const n=wu(t,s);n&&function Yk(t,s,e,n){t.removeChild(s,e,n)}(t,n,s,e)}(s,u,r):3===t&&s.destroyNode(u),null!=o&&function tE(t,s,e,n,i){const o=e[ls];o!==Pt(e)&&Rr(s,t,n,o,i);for(let u=kn;us.replace(kk,Ek))}(s))}function yu(t,s,e){return t.createElement(s,e)}function Vv(t,s){const e=t[gr],n=e.indexOf(s);Nb(s),e.splice(n,1)}function Tu(t,s){if(t.length<=kn)return;const e=kn+s,n=t[e];if(n){const i=n[Va];null!==i&&i!==t&&Vv(i,n),s>0&&(t[e-1][qi]=n[qi]);const o=uu(t,kn+s);!function Uk(t,s){tl(t,s,s[Be],2,null,null),s[tn]=null,s[An]=null}(n[ce],n);const r=o[as];null!==r&&r.detachView(o[ce]),n[Ut]=null,n[qi]=null,n[Ue]&=-129}return n}function am(t,s){if(!(256&s[Ue])){const e=s[Be];s[Ha]&&Tb(s[Ha]),s[Ga]&&Tb(s[Ga]),e.destroyNode&&tl(t,s,e,3,null,null),function Wk(t){let s=t[Na];if(!s)return lm(t[ce],t);for(;s;){let e=null;if(si(s))e=s[Na];else{const n=s[kn];n&&(e=n)}if(!e){for(;s&&!s[qi]&&s!==t;)si(s)&&lm(s[ce],s),s=s[Ut];null===s&&(s=t),si(s)&&lm(s[ce],s),e=s&&s[qi]}s=e}}(s)}}function lm(t,s){if(!(256&s[Ue])){s[Ue]&=-129,s[Ue]|=256,function Zk(t,s){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let n=0;n=0?n[r]():n[-r].unsubscribe(),o+=2}else e[o].call(n[e[o+1]]);null!==n&&(s[pr]=null);const i=s[Zs];if(null!==i){s[Zs]=null;for(let o=0;o-1){const{encapsulation:o}=t.data[n.directiveStart+i];if(o===Di.None||o===Di.Emulated)return null}return oi(n,e)}}(t,s.parent,e)}function Lo(t,s,e,n,i){t.insertBefore(s,e,n,i)}function Hv(t,s,e){t.appendChild(s,e)}function Gv(t,s,e,n,i){null!==n?Lo(t,s,e,n,i):Hv(t,s,e)}function wu(t,s){return t.parentNode(s)}function qv(t,s,e){return Uv(t,s,e)}let um,xu,mm,Du,Uv=function zv(t,s,e){return 40&t.type?oi(t,e):null};function Su(t,s,e,n){const i=cm(t,n,s),o=s[Be],u=qv(n.parent||s[An],n,s);if(null!=i)if(Array.isArray(e))for(let h=0;ht,createScript:t=>t,createScriptURL:t=>t})}catch{}return xu}()?.createHTML(t)||t}function Ar(){if(void 0!==mm)return mm;if(typeof document<"u")return document;throw new $(210,!1)}function fm(){if(void 0===Du&&(Du=null,At.trustedTypes))try{Du=At.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Du}function Zv(t){return fm()?.createHTML(t)||t}function Xv(t){return fm()?.createScriptURL(t)||t}class Ro{constructor(s){this.changingThisBreaksApplicationSecurity=s}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${U1})`}}class lE extends Ro{getTypeName(){return"HTML"}}class cE extends Ro{getTypeName(){return"Style"}}class uE extends Ro{getTypeName(){return"Script"}}class dE extends Ro{getTypeName(){return"URL"}}class pE extends Ro{getTypeName(){return"ResourceURL"}}function fi(t){return t instanceof Ro?t.changingThisBreaksApplicationSecurity:t}function ps(t,s){const e=function hE(t){return t instanceof Ro&&t.getTypeName()||null}(t);if(null!=e&&e!==s){if("ResourceURL"===e&&"URL"===s)return!0;throw new Error(`Required a safe ${s}, got a ${e} (see ${U1})`)}return e===s}class vE{constructor(s){this.inertDocumentHelper=s}getInertBodyElement(s){s=""+s;try{const e=(new window.DOMParser).parseFromString(Or(s),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(s):(e.removeChild(e.firstChild),e)}catch{return null}}}class CE{constructor(s){this.defaultDoc=s,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(s){const e=this.inertDocument.createElement("template");return e.innerHTML=Or(s),e}}const TE=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Mu(t){return(t=String(t)).match(TE)?t:"unsafe:"+t}function Es(t){const s={};for(const e of t.split(","))s[e]=!0;return s}function nl(...t){const s={};for(const e of t)for(const n in e)e.hasOwnProperty(n)&&(s[n]=!0);return s}const tC=Es("area,br,col,hr,img,wbr"),nC=Es("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),iC=Es("rp,rt"),gm=nl(tC,nl(nC,Es("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),nl(iC,Es("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),nl(iC,nC)),_m=Es("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),sC=nl(_m,Es("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Es("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),wE=Es("script,style,template");class SE{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(s){let e=s.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let i=this.checkClobberedElement(e,e.nextSibling);if(i){e=i;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(s){const e=s.nodeName.toLowerCase();if(!gm.hasOwnProperty(e))return this.sanitizedSomething=!0,!wE.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=s.attributes;for(let i=0;i"),!0}endElement(s){const e=s.nodeName.toLowerCase();gm.hasOwnProperty(e)&&!tC.hasOwnProperty(e)&&(this.buf.push(""),this.buf.push(e),this.buf.push(">"))}chars(s){this.buf.push(oC(s))}checkClobberedElement(s,e){if(e&&(s.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${s.outerHTML}`);return e}}const IE=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,xE=/([^\#-~ |!])/g;function oC(t){return t.replace(/&/g,"&").replace(IE,function(s){return""+(1024*(s.charCodeAt(0)-55296)+(s.charCodeAt(1)-56320)+65536)+";"}).replace(xE,function(s){return""+s.charCodeAt(0)+";"}).replace(//g,">")}let ku;function rC(t,s){let e=null;try{ku=ku||function eC(t){const s=new CE(t);return function yE(){try{return!!(new window.DOMParser).parseFromString(Or(""),"text/html")}catch{return!1}}()?new vE(s):s}(t);let n=s?String(s):"";e=ku.getInertBodyElement(n);let i=5,o=n;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,n=o,o=e.innerHTML,e=ku.getInertBodyElement(n)}while(n!==o);return Or((new SE).sanitizeChildren(bm(e)||e))}finally{if(e){const n=bm(e)||e;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function bm(t){return"content"in t&&function DE(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Ei=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}(Ei||{});function Yt(t){const s=il();return s?Zv(s.sanitize(Ei.HTML,t)||""):ps(t,"HTML")?Zv(fi(t)):rC(Ar(),Ve(t))}function nn(t){const s=il();return s?s.sanitize(Ei.URL,t)||"":ps(t,"URL")?fi(t):Mu(Ve(t))}function aC(t){const s=il();if(s)return Xv(s.sanitize(Ei.RESOURCE_URL,t)||"");if(ps(t,"ResourceURL"))return Xv(fi(t));throw new $(904,!1)}function il(){const t=X();return t&&t[hr].sanitizer}const sl=new le("ENVIRONMENT_INITIALIZER"),cC=new le("INJECTOR",-1),uC=new le("INJECTOR_DEF_TYPES");class vm{get(s,e=Ra){if(e===Ra){const n=new Error(`NullInjectorError: No provider for ${mn(s)}!`);throw n.name="NullInjectorError",n}return e}}function OE(...t){return{\u0275providers:dC(0,t),\u0275fromNgModule:!0}}function dC(t,...s){const e=[],n=new Set;let i;const o=r=>{e.push(r)};return Mr(s,r=>{const u=r;Eu(u,o,[],n)&&(i||=[],i.push(u))}),void 0!==i&&pC(i,o),e}function pC(t,s){for(let e=0;e{s(o,n)})}}function Eu(t,s,e,n){if(!(t=Pe(t)))return!1;let i=null,o=Bc(t);const r=!o&&st(t);if(o||r){if(r&&!r.standalone)return!1;i=t}else{const h=t.ngModule;if(o=Bc(h),!o)return!1;i=h}const u=n.has(i);if(r){if(u)return!1;if(n.add(i),r.dependencies){const h="function"==typeof r.dependencies?r.dependencies():r.dependencies;for(const b of h)Eu(b,s,e,n)}}else{if(!o)return!1;{if(null!=o.imports&&!u){let b;n.add(i);try{Mr(o.imports,T=>{Eu(T,s,e,n)&&(b||=[],b.push(T))})}finally{}void 0!==b&&pC(b,s)}if(!u){const b=Mo(i)||(()=>new i);s({provide:i,useFactory:b,deps:mt},i),s({provide:uC,useValue:i,multi:!0},i),s({provide:sl,useValue:()=>ie(i),multi:!0},i)}const h=o.providers;if(null!=h&&!u){const b=t;ym(h,T=>{s(T,b)})}}}return i!==t&&void 0!==t.providers}function ym(t,s){for(let e of t)ph(e)&&(e=e.\u0275providers),Array.isArray(e)?ym(e,s):s(e)}const AE=xt({provide:String,useValue:xt});function Tm(t){return null!==t&&"object"==typeof t&&AE in t}function Oo(t){return"function"==typeof t}const wm=new le("Set Injector scope."),Lu={},FE={};let Sm;function Ru(){return void 0===Sm&&(Sm=new vm),Sm}class gi{}class Pr extends gi{get destroyed(){return this._destroyed}constructor(s,e,n,i){super(),this.parent=e,this.source=n,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,xm(s,r=>this.processProvider(r)),this.records.set(cC,Fr(void 0,this)),i.has("environment")&&this.records.set(gi,Fr(void 0,this));const o=this.records.get(wm);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(uC.multi,mt,et.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const e of this._ngOnDestroyHooks)e.ngOnDestroy();const s=this._onDestroyHooks;this._onDestroyHooks=[];for(const e of s)e()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(s){return this.assertNotDestroyed(),this._onDestroyHooks.push(s),()=>this.removeOnDestroy(s)}runInContext(s){this.assertNotDestroyed();const e=Qs(this),n=ii(void 0);try{return s()}finally{Qs(e),ii(n)}}get(s,e=Ra,n=et.Default){if(this.assertNotDestroyed(),s.hasOwnProperty(X1))return s[X1](this);n=qc(n);const o=Qs(this),r=ii(void 0);try{if(!(n&et.SkipSelf)){let h=this.records.get(s);if(void 0===h){const b=function GE(t){return"function"==typeof t||"object"==typeof t&&t instanceof le}(s)&&Vc(s);h=b&&this.injectableDefInScope(b)?Fr(Im(s),Lu):null,this.records.set(s,h)}if(null!=h)return this.hydrate(s,h)}return(n&et.Self?Ru():this.parent).get(s,e=n&et.Optional&&e===Ra?null:e)}catch(u){if("NullInjectorError"===u.name){if((u[Gc]=u[Gc]||[]).unshift(mn(s)),o)throw u;return function A4(t,s,e,n){const i=t[Gc];throw s[J1]&&i.unshift(s[J1]),t.message=function P4(t,s,e,n=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let i=mn(s);if(Array.isArray(s))i=s.map(mn).join(" -> ");else if("object"==typeof s){let o=[];for(let r in s)if(s.hasOwnProperty(r)){let u=s[r];o.push(r+":"+("string"==typeof u?JSON.stringify(u):mn(u)))}i=`{${o.join(", ")}}`}return`${e}${n?"("+n+")":""}[${i}]: ${t.replace(k4,"\n ")}`}("\n"+t.message,i,e,n),t.ngTokenPath=i,t[Gc]=null,t}(u,s,"R3InjectorError",this.source)}throw u}finally{ii(r),Qs(o)}}resolveInjectorInitializers(){const s=Qs(this),e=ii(void 0);try{const i=this.get(sl.multi,mt,et.Self);for(const o of i)o()}finally{Qs(s),ii(e)}}toString(){const s=[],e=this.records;for(const n of e.keys())s.push(mn(n));return`R3Injector[${s.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new $(205,!1)}processProvider(s){let e=Oo(s=Pe(s))?s:Pe(s&&s.provide);const n=function VE(t){return Tm(t)?Fr(void 0,t.useValue):Fr(fC(t),Lu)}(s);if(Oo(s)||!0!==s.multi)this.records.get(e);else{let i=this.records.get(e);i||(i=Fr(void 0,Lu,!0),i.factory=()=>yh(i.multi),this.records.set(e,i)),e=s,i.multi.push(s)}this.records.set(e,n)}hydrate(s,e){return e.value===Lu&&(e.value=FE,e.value=e.factory()),"object"==typeof e.value&&e.value&&function HE(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(s){if(!s.providedIn)return!1;const e=Pe(s.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(s){const e=this._onDestroyHooks.indexOf(s);-1!==e&&this._onDestroyHooks.splice(e,1)}}function Im(t){const s=Vc(t),e=null!==s?s.factory:Mo(t);if(null!==e)return e;if(t instanceof le)throw new $(204,!1);if(t instanceof Function)return function NE(t){const s=t.length;if(s>0)throw Ja(s,"?"),new $(204,!1);const e=function I4(t){return t&&(t[Hc]||t[$1])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new $(204,!1)}function fC(t,s,e){let n;if(Oo(t)){const i=Pe(t);return Mo(i)||Im(i)}if(Tm(t))n=()=>Pe(t.useValue);else if(function mC(t){return!(!t||!t.useFactory)}(t))n=()=>t.useFactory(...yh(t.deps||[]));else if(function hC(t){return!(!t||!t.useExisting)}(t))n=()=>ie(Pe(t.useExisting));else{const i=Pe(t&&(t.useClass||t.provide));if(!function BE(t){return!!t.deps}(t))return Mo(i)||Im(i);n=()=>new i(...yh(t.deps))}return n}function Fr(t,s,e=!1){return{factory:t,value:s,multi:e?[]:void 0}}function xm(t,s){for(const e of t)Array.isArray(e)?xm(e,s):e&&ph(e)?xm(e.\u0275providers,s):s(e)}const Ou=new le("AppId",{providedIn:"root",factory:()=>qE}),qE="ng",gC=new le("Platform Initializer"),gn=new le("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),_C=new le("AnimationModuleType"),bC=new le("CSP nonce",{providedIn:"root",factory:()=>Ar().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let vC=(t,s,e)=>null;function Am(t,s,e=!1){return vC(t,s,e)}class YE{}class TC{}class e5{resolveComponentFactory(s){throw function XE(t){const s=Error(`No component factory found for ${mn(t)}.`);return s.ngComponent=t,s}(s)}}let Bu=(()=>{class t{static#e=this.NULL=new e5}return t})();function t5(){return Br(Ln(),X())}function Br(t,s){return new He(oi(t,s))}let He=(()=>{class t{constructor(e){this.nativeElement=e}static#e=this.__NG_ELEMENT_ID__=t5}return t})();function n5(t){return t instanceof He?t.nativeElement:t}class al{}let Ht=(()=>{class t{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function s5(){const t=X(),e=hi(Ln().index,t);return(si(e)?e:t)[Be]}()}return t})(),o5=(()=>{class t{static#e=this.\u0275prov=ae({token:t,providedIn:"root",factory:()=>null})}return t})();class ll{constructor(s){this.full=s,this.major=s.split(".")[0],this.minor=s.split(".")[1],this.patch=s.split(".").slice(2).join(".")}}const r5=new ll("16.2.12"),Nm={};function DC(t,s=null,e=null,n){const i=MC(t,s,e,n);return i.resolveInjectorInitializers(),i}function MC(t,s=null,e=null,n,i=new Set){const o=[e||mt,OE(t)];return n=n||("object"==typeof t?void 0:mn(t)),new Pr(o,s||Ru(),n||null,i)}let Fn=(()=>{class t{static#e=this.THROW_IF_NOT_FOUND=Ra;static#t=this.NULL=new vm;static create(e,n){if(Array.isArray(e))return DC({name:""},n,e,"");{const i=e.name??"";return DC({name:i},e.parent,e.providers,i)}}static#n=this.\u0275prov=ae({token:t,providedIn:"any",factory:()=>ie(cC)});static#i=this.__NG_ELEMENT_ID__=-1}return t})();function Bm(t){return t.ngOriginalError}class Ls{constructor(){this._console=console}handleError(s){const e=this._findOriginalError(s);this._console.error("ERROR",s),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(s){let e=s&&Bm(s);for(;e&&Bm(e);)e=Bm(e);return e||null}}let Hu=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=h5;static#t=this.__NG_ENV_ID__=e=>e}return t})();class p5 extends Hu{constructor(s){super(),this._lView=s}onDestroy(s){return Bb(this._lView,s),()=>function TM(t,s){if(null===t[Zs])return;const e=t[Zs].indexOf(s);-1!==e&&t[Zs].splice(e,1)}(this._lView,s)}}function h5(){return new p5(X())}function Hm(t){return s=>{setTimeout(t,void 0,s)}}const q=class m5 extends Jt{constructor(s=!1){super(),this.__isAsync=s}emit(s){super.next(s)}subscribe(s,e,n){let i=s,o=e||(()=>null),r=n;if(s&&"object"==typeof s){const h=s;i=h.next?.bind(h),o=h.error?.bind(h),r=h.complete?.bind(h)}this.__isAsync&&(o=Hm(o),i&&(i=Hm(i)),r&&(r=Hm(r)));const u=super.subscribe({next:i,error:o,complete:r});return s instanceof ti&&s.add(u),u}};function EC(...t){}class We{constructor({enableLongStackTrace:s=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new q(!1),this.onMicrotaskEmpty=new q(!1),this.onStable=new q(!1),this.onError=new q(!1),typeof Zone>"u")throw new $(908,!1);Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),s&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&e,i.shouldCoalesceRunChangeDetection=n,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function f5(){const t="function"==typeof At.requestAnimationFrame;let s=At[t?"requestAnimationFrame":"setTimeout"],e=At[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&s&&e){const n=s[Zone.__symbol__("OriginalDelegate")];n&&(s=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:s,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function b5(t){const s=()=>{!function _5(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(At,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,qm(t),t.isCheckStableRunning=!0,Gm(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),qm(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,i,o,r,u)=>{if(function C5(t){return!(!Array.isArray(t)||1!==t.length)&&!0===t[0].data?.__ignore_ng_zone__}(u))return e.invokeTask(i,o,r,u);try{return LC(t),e.invokeTask(i,o,r,u)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&s(),RC(t)}},onInvoke:(e,n,i,o,r,u,h)=>{try{return LC(t),e.invoke(i,o,r,u,h)}finally{t.shouldCoalesceRunChangeDetection&&s(),RC(t)}},onHasTask:(e,n,i,o)=>{e.hasTask(i,o),n===i&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,qm(t),Gm(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,n,i,o)=>(e.handleError(i,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}(i)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!We.isInAngularZone())throw new $(909,!1)}static assertNotInAngularZone(){if(We.isInAngularZone())throw new $(909,!1)}run(s,e,n){return this._inner.run(s,e,n)}runTask(s,e,n,i){const o=this._inner,r=o.scheduleEventTask("NgZoneEvent: "+i,s,g5,EC,EC);try{return o.runTask(r,e,n)}finally{o.cancelTask(r)}}runGuarded(s,e,n){return this._inner.runGuarded(s,e,n)}runOutsideAngular(s){return this._outer.run(s)}}const g5={};function Gm(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 qm(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function LC(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function RC(t){t._nesting--,Gm(t)}class v5{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new q,this.onMicrotaskEmpty=new q,this.onStable=new q,this.onError=new q}run(s,e,n){return s.apply(e,n)}runGuarded(s,e,n){return s.apply(e,n)}runOutsideAngular(s){return s()}runTask(s,e,n,i){return s.apply(e,n)}}const OC=new le("",{providedIn:"root",factory:AC});function AC(){const t=pe(We);let s=!0;return function f4(...t){const s=La(t),e=function l4(t,s){return"number"==typeof ah(t)?t.pop():s}(t,1/0),n=t;return n.length?1===n.length?ni(n[0]):cr(e)(hn(n,s)):ss}(new It(i=>{s=t.isStable&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks,t.runOutsideAngular(()=>{i.next(s),i.complete()})}),new It(i=>{let o;t.runOutsideAngular(()=>{o=t.onStable.subscribe(()=>{We.assertNotInAngularZone(),queueMicrotask(()=>{!s&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks&&(s=!0,i.next(!0))})})});const r=t.onUnstable.subscribe(()=>{We.assertInAngularZone(),s&&(s=!1,t.runOutsideAngular(()=>{i.next(!1)}))});return()=>{o.unsubscribe(),r.unsubscribe()}}).pipe(lh()))}function Nn(t){return t.ownerDocument.defaultView}function PC(t){return t.ownerDocument}function Rs(t){return t instanceof Function?t():t}let zm=(()=>{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=ae({token:t,providedIn:"root",factory:()=>new t})}return t})();function cl(t){for(;t;){t[Ue]|=64;const s=Xa(t);if(Dh(t)&&!s)return t;t=s}return null}const HC=new le("",{providedIn:"root",factory:()=>!1});let qu=null;function UC(t,s){return t[s]??WC()}function jC(t,s){const e=WC();e.producerNode?.length&&(t[s]=qu,e.lView=t,qu=$C())}const M5={...Qc,consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{cl(t.lView)},lView:null};function $C(){return Object.create(M5)}function WC(){return qu??=$C(),qu}const ze={};function a(t){KC(ot(),X(),Kn()+t,!1)}function KC(t,s,e,n){if(!n)if(3==(3&s[Ue])){const o=t.preOrderCheckHooks;null!==o&&iu(s,o,e)}else{const o=t.preOrderHooks;null!==o&&su(s,o,0,e)}ko(e)}function M(t,s=et.Default){const e=X();return null===e?ie(t,s):av(Ln(),e,Pe(t),s)}function zu(t,s,e,n,i,o,r,u,h,b,T){const w=s.blueprint.slice();return w[tn]=i,w[Ue]=140|n,(null!==b||t&&2048&t[Ue])&&(w[Ue]|=2048),Fb(w),w[Ut]=w[mr]=t,w[rn]=e,w[hr]=r||t&&t[hr],w[Be]=u||t&&t[Be],w[Js]=h||t&&t[Js]||null,w[An]=o,w[Ba]=function Rk(){return Lk++}(),w[Ds]=T,w[pb]=b,w[an]=2==s.type?t[an]:w,w}function qr(t,s,e,n,i){let o=t.data[s];if(null===o)o=function Um(t,s,e,n,i){const o=qb(),r=Ph(),h=t.data[s]=function F5(t,s,e,n,i,o){let r=s?s.injectorIndex:-1,u=0;return Cr()&&(u|=128),{type:e,index:n,insertBeforeIndex:null,injectorIndex:r,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:u,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:s,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,r?o:o&&o.parent,e,s,n,i);return null===t.firstChild&&(t.firstChild=h),null!==o&&(r?null==o.child&&null!==h.parent&&(o.child=h):null===o.next&&(o.next=h,h.prev=o)),h}(t,s,e,n,i),function RM(){return Le.lFrame.inI18n}()&&(o.flags|=32);else if(64&o.type){o.type=e,o.value=n,o.attrs=i;const r=function Ua(){const t=Le.lFrame,s=t.currentTNode;return t.isParent?s:s.parent}();o.injectorIndex=null===r?-1:r.injectorIndex}return us(o,!0),o}function ul(t,s,e,n){if(0===e)return-1;const i=s.length;for(let o=0;ott&&KC(t,s,tt,!1),cs(u?2:0,i);const b=u?o:null,T=Jc(b);try{null!==b&&(b.dirty=!1),e(n,i)}finally{Zc(b,T)}}finally{u&&null===s[Ha]&&jC(s,Ha),ko(r),cs(u?3:1,i)}}function jm(t,s,e){if(xh(s)){const n=Mi(null);try{const o=s.directiveEnd;for(let r=s.directiveStart;rnull;function XC(t,s,e,n){for(let i in t)if(t.hasOwnProperty(i)){e=null===e?{}:e;const o=t[i];null===n?e0(e,s,i,o):n.hasOwnProperty(i)&&e0(e,s,n[i],o)}return e}function e0(t,s,e,n){t.hasOwnProperty(e)?t[e].push(s,n):t[e]=[s,n]}function _i(t,s,e,n,i,o,r,u){const h=oi(s,e);let T,b=s.inputs;!u&&null!=b&&(T=b[n])?(Xm(t,e,T,n,i),Do(s)&&function B5(t,s){const e=hi(s,t);16&e[Ue]||(e[Ue]|=64)}(e,s.index)):3&s.type&&(n=function V5(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(n),i=null!=r?r(i,s.value||"",n):i,o.setProperty(h,n,i))}function Qm(t,s,e,n){if(Gb()){const i=null===n?null:{"":-1},o=function j5(t,s){const e=t.directiveRegistry;let n=null,i=null;if(e)for(let o=0;o0;){const e=t[--s];if("number"==typeof e&&e<0)return e}return 0})(r)!=u&&r.push(u),r.push(e,n,o)}}(t,s,n,ul(t,e,i.hostVars,ze),i)}function hs(t,s,e,n,i,o){const r=oi(t,s);!function Zm(t,s,e,n,i,o,r){if(null==o)t.removeAttribute(s,i,e);else{const u=null==r?Ve(o):r(o,n||"",i);t.setAttribute(s,i,u,e)}}(s[Be],r,o,t.value,e,n,i)}function Z5(t,s,e,n,i,o){const r=o[s];if(null!==r)for(let u=0;u{class t{constructor(){this.all=new Set,this.queue=new Map}create(e,n,i){const o=typeof Zone>"u"?null:Zone.current,r=function uM(t,s,e){const n=Object.create(dM);e&&(n.consumerAllowSignalWrites=!0),n.fn=t,n.schedule=s;const i=r=>{n.cleanupFn=r};return n.ref={notify:()=>Cb(n),run:()=>{if(n.dirty=!1,n.hasRun&&!yb(n))return;n.hasRun=!0;const r=Jc(n);try{n.cleanupFn(),n.cleanupFn=kb,n.fn(i)}finally{Zc(n,r)}},cleanup:()=>n.cleanupFn()},n.ref}(e,b=>{this.all.has(b)&&this.queue.set(b,o)},i);let u;this.all.add(r),r.notify();const h=()=>{r.cleanup(),u?.(),this.all.delete(r),this.queue.delete(r)};return u=n?.onDestroy(h),{destroy:h}}flush(){if(0!==this.queue.size)for(const[e,n]of this.queue)this.queue.delete(e),n?n.run(()=>e.run()):e.run()}get isQueueEmpty(){return 0===this.queue.size}static#e=this.\u0275prov=ae({token:t,providedIn:"root",factory:()=>new t})}return t})();function p0(t,s){!s?.injector&&function Vm(t){if(!W1()&&!function L4(){return ur}())throw new $(-203,!1)}();const e=s?.injector??pe(Fn),n=e.get(d0),i=!0!==s?.manualCleanup?e.get(Hu):null;return n.create(t,i,!!s?.allowSignalWrites)}function ju(t,s,e){let n=e?t.styles:null,i=e?t.classes:null,o=0;if(null!==s)for(let r=0;r0){f0(t,1);const i=e.components;null!==i&&_0(t,i,1)}}function _0(t,s,e){for(let n=0;n-1&&(Tu(s,n),uu(e,n))}this._attachedToViewContainer=!1}am(this._lView[ce],this._lView)}onDestroy(s){Bb(this._lView,s)}markForCheck(){cl(this._cdRefInjectingView||this._lView)}detach(){this._lView[Ue]&=-129}reattach(){this._lView[Ue]|=128}detectChanges(){$u(this._lView[ce],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new $(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function $k(t,s){tl(t,s,s[Be],2,null,null)}(this._lView[ce],this._lView)}attachToAppRef(s){if(this._attachedToViewContainer)throw new $(902,!1);this._appRef=s}}class o6 extends pl{constructor(s){super(s),this._view=s}detectChanges(){const s=this._view;$u(s[ce],s,s[rn],!1)}checkNoChanges(){}get context(){return null}}class b0 extends Bu{constructor(s){super(),this.ngModule=s}resolveComponentFactory(s){const e=st(s);return new hl(e,this.ngModule)}}function v0(t){const s=[];for(let e in t)t.hasOwnProperty(e)&&s.push({propName:t[e],templateName:e});return s}class a6{constructor(s,e){this.injector=s,this.parentInjector=e}get(s,e,n){n=qc(n);const i=this.injector.get(s,Nm,n);return i!==Nm||e===Nm?i:this.parentInjector.get(s,e,n)}}class hl extends TC{get inputs(){const s=this.componentDef,e=s.inputTransforms,n=v0(s.inputs);if(null!==e)for(const i of n)e.hasOwnProperty(i.propName)&&(i.transform=e[i.propName]);return n}get outputs(){return v0(this.componentDef.outputs)}constructor(s,e){super(),this.componentDef=s,this.ngModule=e,this.componentType=s.type,this.selector=function j4(t){return t.map(U4).join(",")}(s.selectors),this.ngContentSelectors=s.ngContentSelectors?s.ngContentSelectors:[],this.isBoundToModule=!!e}create(s,e,n,i){let o=(i=i||this.ngModule)instanceof gi?i:i?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const r=o?new a6(s,o):s,u=r.get(al,null);if(null===u)throw new $(407,!1);const w={rendererFactory:u,sanitizer:r.get(o5,null),effectManager:r.get(d0,null),afterRenderEventManager:r.get(zm,null)},k=u.createRenderer(null,this.componentDef),L=this.componentDef.selectors[0][0]||"div",O=n?function L5(t,s,e,n){const o=n.get(HC,!1)||e===Di.ShadowDom,r=t.selectRootElement(s,o);return function R5(t){YC(t)}(r),r}(k,n,this.componentDef.encapsulation,r):yu(k,L,function r6(t){const s=t.toLowerCase();return"svg"===s?"svg":"math"===s?"math":null}(L)),U=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let N=null;null!==O&&(N=Am(O,r,!0));const ee=Km(0,null,null,1,0,null,null,null,null,null,null),re=zu(null,ee,null,U,null,null,w,k,r,null,N);let be,Je;Hh(re);try{const Ct=this.componentDef;let Ot,zt=null;Ct.findHostDirectiveDefs?(Ot=[],zt=new Map,Ct.findHostDirectiveDefs(Ct,Ot,zt),Ot.push(Ct)):Ot=[Ct];const Rn=function c6(t,s){const e=t[ce],n=tt;return t[n]=s,qr(e,n,2,"#host",null)}(re,O),Jp=function u6(t,s,e,n,i,o,r){const u=i[ce];!function d6(t,s,e,n){for(const i of t)s.mergedAttrs=Pa(s.mergedAttrs,i.hostAttrs);null!==s.mergedAttrs&&(ju(s,s.mergedAttrs,!0),null!==e&&Jv(n,e,s))}(n,t,s,r);let h=null;null!==s&&(h=Am(s,i[Js]));const b=o.rendererFactory.createRenderer(s,e);let T=16;e.signals?T=4096:e.onPush&&(T=64);const w=zu(i,ZC(e),null,T,i[t.index],t,o,b,null,null,h);return u.firstCreatePass&&Jm(u,t,n.length-1),Uu(i,w),i[t.index]=w}(Rn,O,Ct,Ot,re,w,k);Je=Pb(ee,tt),O&&function h6(t,s,e,n){if(n)Sh(t,e,["ng-version",r5.full]);else{const{attrs:i,classes:o}=function $4(t){const s=[],e=[];let n=1,i=2;for(;n0&&Qv(t,e,o.join(" "))}}(k,Ct,O,n),void 0!==e&&function m6(t,s,e){const n=t.projection=[];for(let i=0;i=0;n--){const i=t[n];i.hostVars=s+=i.hostVars,i.hostAttrs=Pa(i.hostAttrs,e=Pa(e,i.hostAttrs))}}(n)}function Wu(t){return t===os?{}:t===mt?[]:t}function _6(t,s){const e=t.viewQuery;t.viewQuery=e?(n,i)=>{s(n,i),e(n,i)}:s}function b6(t,s){const e=t.contentQueries;t.contentQueries=e?(n,i,o)=>{s(n,i,o),e(n,i,o)}:s}function v6(t,s){const e=t.hostBindings;t.hostBindings=e?(n,i)=>{s(n,i),e(n,i)}:s}function S0(t){const s=t.inputConfig,e={};for(const n in s)if(s.hasOwnProperty(n)){const i=s[n];Array.isArray(i)&&i[2]&&(e[n]=i[2])}t.inputTransforms=e}function Ku(t){return!!tf(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function tf(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function ms(t,s,e){return t[s]=e}function ml(t,s){return t[s]}function Vn(t,s,e){return!Object.is(t[s],e)&&(t[s]=e,!0)}function Ao(t,s,e,n){const i=Vn(t,s,e);return Vn(t,s+1,n)||i}function Qu(t,s,e,n,i){const o=Ao(t,s,e,n);return Vn(t,s+2,i)||o}function Li(t,s,e,n,i,o){const r=Ao(t,s,e,n);return Ao(t,s+2,i,o)||r}function F(t,s,e,n){const i=X();return Vn(i,yr(),s)&&(ot(),hs(Zt(),i,t,s,e,n)),F}function Ur(t,s,e,n){return Vn(t,yr(),e)?s+Ve(e)+n:ze}function jr(t,s,e,n,i,o){const u=Ao(t,Ms(),e,i);return ks(2),u?s+Ve(e)+n+Ve(i)+o:ze}function f(t,s,e,n,i,o,r,u){const h=X(),b=ot(),T=t+tt,w=b.firstCreatePass?function U6(t,s,e,n,i,o,r,u,h){const b=s.consts,T=qr(s,t,4,r||null,Xs(b,u));Qm(s,e,T,Xs(b,h)),nu(s,T);const w=T.tView=Km(2,T,n,i,o,s.directiveRegistry,s.pipeRegistry,null,s.schemas,b,null);return null!==s.queries&&(s.queries.template(s,T),w.queries=s.queries.embeddedTView(T)),T}(T,b,h,s,e,n,i,o,r):b.data[T];us(w,!1);const k=N0(b,h,w,t);tu()&&Su(b,h,k,w),Pn(k,h),Uu(h,h[T]=o0(k,h,k,w)),Wc(w)&&$m(b,h,w),null!=r&&Wm(h,w,u)}let N0=function V0(t,s,e,n){return eo(!0),s[Be].createComment("")};function V(t){return vr(function LM(){return Le.lFrame.contextLView}(),tt+t)}function d(t,s,e){const n=X();return Vn(n,yr(),s)&&_i(ot(),Zt(),n,t,s,n[Be],e,!1),d}function cf(t,s,e,n,i){const r=i?"class":"style";Xm(t,e,s.inputs[r],r,n)}function l(t,s,e,n){const i=X(),o=ot(),r=tt+t,u=i[Be],h=o.firstCreatePass?function K6(t,s,e,n,i,o){const r=s.consts,h=qr(s,t,2,n,Xs(r,i));return Qm(s,e,h,Xs(r,o)),null!==h.attrs&&ju(h,h.attrs,!1),null!==h.mergedAttrs&&ju(h,h.mergedAttrs,!0),null!==s.queries&&s.queries.elementStart(s,h),h}(r,o,i,s,e,n):o.data[r],b=B0(o,i,h,u,s,t);i[r]=b;const T=Wc(h);return us(h,!0),Jv(u,b,h),32!=(32&h.flags)&&tu()&&Su(o,i,b,h),0===function wM(){return Le.lFrame.elementDepthCount}()&&Pn(b,i),function SM(){Le.lFrame.elementDepthCount++}(),T&&($m(o,i,h),jm(o,h,i)),null!==n&&Wm(i,h),l}function c(){let t=Ln();Ph()?Fh():(t=t.parent,us(t,!1));const s=t;(function xM(t){return Le.skipHydrationRootTNode===t})(s)&&function EM(){Le.skipHydrationRootTNode=null}(),function IM(){Le.lFrame.elementDepthCount--}();const e=ot();return e.firstCreatePass&&(nu(e,t),xh(t)&&e.queries.elementEnd(t)),null!=s.classesWithoutHost&&function UM(t){return 0!=(8&t.flags)}(s)&&cf(e,s,X(),s.classesWithoutHost,!0),null!=s.stylesWithoutHost&&function jM(t){return 0!=(16&t.flags)}(s)&&cf(e,s,X(),s.stylesWithoutHost,!1),c}function D(t,s,e,n){return l(t,s,e,n),c(),D}let B0=(t,s,e,n,i,o)=>(eo(!0),yu(n,i,function Yb(){return Le.lFrame.currentNamespace}()));function Q(t,s,e){const n=X(),i=ot(),o=t+tt,r=i.firstCreatePass?function Z6(t,s,e,n,i){const o=s.consts,r=Xs(o,n),u=qr(s,t,8,"ng-container",r);return null!==r&&ju(u,r,!0),Qm(s,e,u,Xs(o,i)),null!==s.queries&&s.queries.elementStart(s,u),u}(o,i,n,s,e):i.data[o];us(r,!0);const u=H0(i,n,r,t);return n[o]=u,tu()&&Su(i,n,u,r),Pn(u,n),Wc(r)&&($m(i,n,r),jm(i,r,n)),null!=e&&Wm(n,r),Q}function J(){let t=Ln();const s=ot();return Ph()?Fh():(t=t.parent,us(t,!1)),s.firstCreatePass&&(nu(s,t),xh(t)&&s.queries.elementEnd(t)),J}function Z(t,s,e){return Q(t,s,e),J(),Z}let H0=(t,s,e,n)=>(eo(!0),rm(s[Be],""));function E(){return X()}function bl(t){return!!t&&"function"==typeof t.then}function G0(t){return!!t&&"function"==typeof t.subscribe}function v(t,s,e,n){const i=X(),o=ot(),r=Ln();return function z0(t,s,e,n,i,o,r){const u=Wc(n),b=t.firstCreatePass&&l0(t),T=s[rn],w=a0(s);let k=!0;if(3&n.type||r){const A=oi(n,s),P=r?r(A):A,U=w.length,N=r?re=>r(Pt(re[n.index])):n.index;let ee=null;if(!r&&u&&(ee=function eL(t,s,e,n){const i=t.cleanup;if(null!=i)for(let o=0;oh?u[h]:null}"string"==typeof r&&(o+=2)}return null}(t,s,i,n.index)),null!==ee)(ee.__ngLastListenerFn__||ee).__ngNextListenerFn__=o,ee.__ngLastListenerFn__=o,k=!1;else{o=j0(n,s,T,o,!1);const re=e.listen(P,i,o);w.push(o,re),b&&b.push(i,N,U,U+1)}}else o=j0(n,s,T,o,!1);const L=n.outputs;let O;if(k&&null!==L&&(O=L[i])){const A=O.length;if(A)for(let P=0;P-1?hi(t.index,s):s);let h=U0(s,e,n,r),b=o.__ngNextListenerFn__;for(;b;)h=U0(s,e,b,r)&&h,b=b.__ngNextListenerFn__;return i&&!1===h&&r.preventDefault(),h}}function p(t=1){return function FM(t){return(Le.lFrame.contextLView=function NM(t,s){for(;t>0;)s=s[mr],t--;return s}(t,Le.lFrame.contextLView))[rn]}(t)}function tL(t,s){let e=null;const n=function H4(t){const s=t.attrs;if(null!=s){const e=s.indexOf(5);if(!(1&e))return s[e+1]}return null}(t);for(let i=0;i>17&32767}function uf(t){return 2|t}function Po(t){return(131068&t)>>2}function df(t,s){return-131069&t|s<<2}function pf(t){return 1|t}function X0(t,s,e,n,i){const o=t[e+1],r=null===s;let u=n?no(o):Po(o),h=!1;for(;0!==u&&(!1===h||r);){const T=t[u+1];aL(t[u],s)&&(h=!0,t[u+1]=n?pf(T):uf(T)),u=n?no(T):Po(T)}h&&(t[e+1]=n?uf(o):pf(o))}function aL(t,s){return null===t||null==s||(Array.isArray(t)?t[1]:t)===s||!(!Array.isArray(t)||"string"!=typeof s)&&kr(t,s)>=0}const bn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function ey(t){return t.substring(bn.key,bn.keyEnd)}function lL(t){return t.substring(bn.value,bn.valueEnd)}function ty(t,s){const e=bn.textEnd;return e===s?-1:(s=bn.keyEnd=function dL(t,s,e){for(;s32;)s++;return s}(t,bn.key=s,e),Yr(t,s,e))}function ny(t,s){const e=bn.textEnd;let n=bn.key=Yr(t,s,e);return e===n?-1:(n=bn.keyEnd=function pL(t,s,e){let n;for(;s=65&&(-33&n)<=90||n>=48&&n<=57);)s++;return s}(t,n,e),n=sy(t,n,e),n=bn.value=Yr(t,n,e),n=bn.valueEnd=function hL(t,s,e){let n=-1,i=-1,o=-1,r=s,u=r;for(;r32&&(u=r),o=i,i=n,n=-33&h}return u}(t,n,e),sy(t,n,e))}function iy(t){bn.key=0,bn.keyEnd=0,bn.value=0,bn.valueEnd=0,bn.textEnd=t.length}function Yr(t,s,e){for(;s=0;e=ny(s,e))ly(t,ey(s),lL(s))}function se(t){$i(CL,fs,t,!0)}function fs(t,s){for(let e=function cL(t){return iy(t),ty(t,Yr(t,0,bn.textEnd))}(s);e>=0;e=ty(s,e))mi(t,ey(s),!0)}function ji(t,s,e,n){const i=X(),o=ot(),r=ks(2);o.firstUpdatePass&&ay(o,t,r,n),s!==ze&&Vn(i,r,s)&&cy(o,o.data[Kn()],i,i[Be],t,i[r+1]=function TL(t,s){return null==t||""===t||("string"==typeof s?t+=s:"object"==typeof t&&(t=mn(fi(t)))),t}(s,e),n,r)}function $i(t,s,e,n){const i=ot(),o=ks(2);i.firstUpdatePass&&ay(i,null,o,n);const r=X();if(e!==ze&&Vn(r,o,e)){const u=i.data[Kn()];if(dy(u,n)&&!ry(i,o)){let h=n?u.classesWithoutHost:u.stylesWithoutHost;null!==h&&(e=uh(h,e||"")),cf(i,u,r,e,n)}else!function yL(t,s,e,n,i,o,r,u){i===ze&&(i=mt);let h=0,b=0,T=0=t.expandoStartIndex}function ay(t,s,e,n){const i=t.data;if(null===i[e+1]){const o=i[Kn()],r=ry(t,e);dy(o,n)&&null===s&&!r&&(s=!1),s=function fL(t,s,e,n){const i=function Vh(t){const s=Le.lFrame.currentDirectiveIndex;return-1===s?null:t[s]}(t);let o=n?s.residualClasses:s.residualStyles;if(null===i)0===(n?s.classBindings:s.styleBindings)&&(e=Cl(e=hf(null,t,s,e,n),s.attrs,n),o=null);else{const r=s.directiveStylingLast;if(-1===r||t[r]!==i)if(e=hf(i,t,s,e,n),null===o){let h=function gL(t,s,e){const n=e?s.classBindings:s.styleBindings;if(0!==Po(n))return t[no(n)]}(t,s,n);void 0!==h&&Array.isArray(h)&&(h=hf(null,t,s,h[1],n),h=Cl(h,s.attrs,n),function _L(t,s,e,n){t[no(e?s.classBindings:s.styleBindings)]=n}(t,s,n,h))}else o=function bL(t,s,e){let n;const i=s.directiveEnd;for(let o=1+s.directiveStylingLast;o0)&&(b=!0)):T=e,i)if(0!==h){const k=no(t[u+1]);t[n+1]=Xu(k,u),0!==k&&(t[k+1]=df(t[k+1],n)),t[u+1]=function iL(t,s){return 131071&t|s<<17}(t[u+1],n)}else t[n+1]=Xu(u,0),0!==u&&(t[u+1]=df(t[u+1],n)),u=n;else t[n+1]=Xu(h,0),0===u?u=n:t[h+1]=df(t[h+1],n),h=n;b&&(t[n+1]=uf(t[n+1])),X0(t,T,n,!0),X0(t,T,n,!1),function rL(t,s,e,n,i){const o=i?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof s&&kr(o,s)>=0&&(e[n+1]=pf(e[n+1]))}(s,T,t,n,o),r=Xu(u,h),o?s.classBindings=r:s.styleBindings=r}(i,o,s,e,r,n)}}function hf(t,s,e,n,i){let o=null;const r=e.directiveEnd;let u=e.directiveStylingLast;for(-1===u?u=e.directiveStart:u++;u0;){const h=t[i],b=Array.isArray(h),T=b?h[1]:h,w=null===T;let k=e[i+1];k===ze&&(k=w?mt:void 0);let L=w?Jh(k,n):T===n?k:void 0;if(b&&!ed(L)&&(L=Jh(h,n)),ed(L)&&(u=L,r))return u;const O=t[i+1];i=r?no(O):Po(O)}if(null!==s){let h=o?s.residualClasses:s.residualStyles;null!=h&&(u=Jh(h,n))}return u}function ed(t){return void 0!==t}function dy(t,s){return 0!=(t.flags&(s?8:16))}function _(t,s=""){const e=X(),n=ot(),i=t+tt,o=n.firstCreatePass?qr(n,i,1,s,null):n.data[i],r=py(n,e,o,s,t);e[i]=r,tu()&&Su(n,e,r,o),us(o,!1)}let py=(t,s,e,n,i)=>(eo(!0),function Cu(t,s){return t.createText(s)}(s[Be],n));function x(t){return S("",t,""),x}function S(t,s,e){const n=X(),i=Ur(n,t,s,e);return i!==ze&&Os(n,Kn(),i),S}function Ke(t,s,e,n,i){const o=X(),r=jr(o,t,s,e,n,i);return r!==ze&&Os(o,Kn(),r),Ke}function Xr(t,s,e,n,i,o,r){const u=X(),h=function $r(t,s,e,n,i,o,r,u){const b=Qu(t,Ms(),e,i,r);return ks(3),b?s+Ve(e)+n+Ve(i)+o+Ve(r)+u:ze}(u,t,s,e,n,i,o,r);return h!==ze&&Os(u,Kn(),h),Xr}function td(t,s,e,n,i,o,r,u,h){const b=X(),T=function Wr(t,s,e,n,i,o,r,u,h,b){const w=Li(t,Ms(),e,i,r,h);return ks(4),w?s+Ve(e)+n+Ve(i)+o+Ve(r)+u+Ve(h)+b:ze}(b,t,s,e,n,i,o,r,u,h);return T!==ze&&Os(b,Kn(),T),td}function mf(t,s,e,n,i,o,r,u,h,b,T){const w=X(),k=function Kr(t,s,e,n,i,o,r,u,h,b,T,w){const k=Ms();let L=Li(t,k,e,i,r,h);return L=Vn(t,k+4,T)||L,ks(5),L?s+Ve(e)+n+Ve(i)+o+Ve(r)+u+Ve(h)+b+Ve(T)+w:ze}(w,t,s,e,n,i,o,r,u,h,b,T);return k!==ze&&Os(w,Kn(),k),mf}function ff(t,s,e,n,i,o,r,u,h,b,T,w,k){const L=X(),O=function Qr(t,s,e,n,i,o,r,u,h,b,T,w,k,L){const O=Ms();let A=Li(t,O,e,i,r,h);return A=Ao(t,O+4,T,k)||A,ks(6),A?s+Ve(e)+n+Ve(i)+o+Ve(r)+u+Ve(h)+b+Ve(T)+w+Ve(k)+L:ze}(L,t,s,e,n,i,o,r,u,h,b,T,w,k);return O!==ze&&Os(L,Kn(),O),ff}const Fo=void 0;var UL=["en",[["a","p"],["AM","PM"],Fo],[["AM","PM"],Fo,Fo],[["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"]],Fo,[["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"]],Fo,[["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}",Fo,"{1} 'at' {0}",Fo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function zL(t){const e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let ea={};function Zn(t){const s=function jL(t){return t.toLowerCase().replace(/_/g,"-")}(t);let e=My(s);if(e)return e;const n=s.split("-")[0];if(e=My(n),e)return e;if("en"===n)return UL;throw new $(701,!1)}function My(t){return t in ea||(ea[t]=At.ng&&At.ng.common&&At.ng.common.locales&&At.ng.common.locales[t]),ea[t]}var Ft=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}(Ft||{});const ta="en-US";let ky=ta;function bf(t,s,e,n,i){if(t=Pe(t),Array.isArray(t))for(let o=0;o>20;if(Oo(t)||!t.multi){const L=new ja(b,i,M),O=Cf(h,s,i?T:T+k,w);-1===O?(Wh(ru(u,r),o,h),vf(o,t,s.length),s.push(h),u.directiveStart++,u.directiveEnd++,i&&(u.providerIndexes+=1048576),e.push(L),r.push(L)):(e[O]=L,r[O]=L)}else{const L=Cf(h,s,T+k,w),O=Cf(h,s,T,T+k),P=O>=0&&e[O];if(i&&!P||!i&&!(L>=0&&e[L])){Wh(ru(u,r),o,h);const U=function z7(t,s,e,n,i){const o=new ja(t,e,M);return o.multi=[],o.index=s,o.componentProviders=0,e2(o,i,n&&!e),o}(i?q7:G7,e.length,i,n,b);!i&&P&&(e[O].providerFactory=U),vf(o,t,s.length,0),s.push(h),u.directiveStart++,u.directiveEnd++,i&&(u.providerIndexes+=1048576),e.push(U),r.push(U)}else vf(o,t,L>-1?L:O,e2(e[i?O:L],b,!i&&n));!i&&n&&P&&e[O].componentProviders++}}}function vf(t,s,e,n){const i=Oo(s),o=function PE(t){return!!t.useClass}(s);if(i||o){const h=(o?Pe(s.useClass):s).prototype.ngOnDestroy;if(h){const b=t.destroyHooks||(t.destroyHooks=[]);if(!i&&s.multi){const T=b.indexOf(e);-1===T?b.push(e,[n,h]):b[T+1].push(n,h)}else b.push(e,h)}}}function e2(t,s,e){return e&&t.componentProviders++,t.multi.push(s)-1}function Cf(t,s,e,n){for(let i=e;i{e.providersResolver=(n,i)=>function H7(t,s,e){const n=ot();if(n.firstCreatePass){const i=zi(t);bf(e,n.data,n.blueprint,i,!0),bf(s,n.data,n.blueprint,i,!1)}}(n,i?i(t):t,s)}}class No{}class t2{}class Tf extends No{constructor(s,e,n){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new b0(this);const i=pi(s);this._bootstrapComponents=Rs(i.bootstrap),this._r3Injector=MC(s,e,[{provide:No,useValue:this},{provide:Bu,useValue:this.componentFactoryResolver},...n],mn(s),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(s)}get injector(){return this._r3Injector}destroy(){const s=this._r3Injector;!s.destroyed&&s.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(s){this.destroyCbs.push(s)}}class wf extends t2{constructor(s){super(),this.moduleType=s}create(s){return new Tf(this.moduleType,s,[])}}class n2 extends No{constructor(s){super(),this.componentFactoryResolver=new b0(this),this.instance=null;const e=new Pr([...s.providers,{provide:No,useValue:this},{provide:Bu,useValue:this.componentFactoryResolver}],s.parent||Ru(),s.debugName,new Set(["environment"]));this.injector=e,s.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(s){this.injector.onDestroy(s)}}function Sf(t,s,e=null){return new n2({providers:t,parent:s,debugName:e,runEnvironmentInitializers:!0}).injector}let $7=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){const n=dC(0,e.type),i=n.length>0?Sf([n],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,i)}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=ae({token:t,providedIn:"environment",factory:()=>new t(ie(gi))})}return t})();function rt(t){t.getStandaloneInjector=s=>s.get($7).getOrCreateStandaloneInjector(t)}function G(t,s,e){const n=Wn()+t,i=X();return i[n]===ze?ms(i,n,e?s.call(e):s()):ml(i,n)}function K(t,s,e,n){return d2(X(),Wn(),t,s,e,n)}function Me(t,s,e,n,i){return p2(X(),Wn(),t,s,e,n,i)}function Gt(t,s,e,n,i,o){return h2(X(),Wn(),t,s,e,n,i,o)}function Ri(t,s,e,n,i,o,r){return function m2(t,s,e,n,i,o,r,u,h){const b=s+e;return Li(t,b,i,o,r,u)?ms(t,b+4,h?n.call(h,i,o,r,u):n(i,o,r,u)):Dl(t,b+4)}(X(),Wn(),t,s,e,n,i,o,r)}function xl(t,s,e,n,i,o,r,u){const h=Wn()+t,b=X(),T=Li(b,h,e,n,i,o);return Vn(b,h+4,r)||T?ms(b,h+5,u?s.call(u,e,n,i,o,r):s(e,n,i,o,r)):ml(b,h+5)}function As(t,s,e,n,i,o,r,u,h){const b=Wn()+t,T=X(),w=Li(T,b,e,n,i,o);return Ao(T,b+4,r,u)||w?ms(T,b+6,h?s.call(h,e,n,i,o,r,u):s(e,n,i,o,r,u)):ml(T,b+6)}function rd(t,s,e,n){return function f2(t,s,e,n,i,o){let r=s+e,u=!1;for(let h=0;h=0;e--){const n=s[e];if(t===n.name)return n}}(s,e.pipeRegistry),e.data[i]=n,n.onDestroy&&(e.destroyHooks??=[]).push(i,n.onDestroy)):n=e.data[i];const o=n.factory||(n.factory=Mo(n.type)),u=ii(M);try{const h=ou(!1),b=o();return ou(h),function W6(t,s,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),s[e]=n}(e,X(),i,b),b}finally{ii(u)}}function g(t,s,e){const n=t+tt,i=X(),o=vr(i,n);return Ml(i,n)?d2(i,Wn(),s,o.transform,e,o):o.transform(e)}function ft(t,s,e,n){const i=t+tt,o=X(),r=vr(o,i);return Ml(o,i)?p2(o,Wn(),s,r.transform,e,n,r):r.transform(e,n)}function Ml(t,s){return t[ce].data[s].pure}function oR(){return this._results[Symbol.iterator]()}class xf{static#e=Symbol.iterator;get changes(){return this._changes||(this._changes=new q)}constructor(s=!1){this._emitDistinctChangesOnly=s,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=xf.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=oR)}get(s){return this._results[s]}map(s){return this._results.map(s)}filter(s){return this._results.filter(s)}find(s){return this._results.find(s)}reduce(s,e){return this._results.reduce(s,e)}forEach(s){this._results.forEach(s)}some(s){return this._results.some(s)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(s,e){const n=this;n.dirty=!1;const i=function ki(t){return t.flat(Number.POSITIVE_INFINITY)}(s);(this._changesDetected=!function ok(t,s,e){if(t.length!==s.length)return!1;for(let n=0;n0&&(e[i-1][qi]=s),n{class t{static#e=this.__NG_ELEMENT_ID__=uR}return t})();const lR=Wi,cR=class extends lR{constructor(s,e,n){super(),this._declarationLView=s,this._declarationTContainer=e,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(s,e){return this.createEmbeddedViewImpl(s,e)}createEmbeddedViewImpl(s,e,n){const i=function rR(t,s,e,n){const i=s.tView,u=zu(t,i,e,4096&t[Ue]?4096:16,null,s,null,null,null,n?.injector??null,n?.hydrationInfo??null);u[Va]=t[s.index];const b=t[as];return null!==b&&(u[as]=b.createEmbeddedView(i)),ef(i,u,e),u}(this._declarationLView,this._declarationTContainer,s,{injector:e,hydrationInfo:n});return new pl(i)}};function uR(){return ad(Ln(),X())}function ad(t,s){return 4&t.type?new cR(s,t,Br(t,s)):null}let Oi=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=gR}return t})();function gR(){return w2(Ln(),X())}const _R=Oi,y2=class extends _R{constructor(s,e,n){super(),this._lContainer=s,this._hostTNode=e,this._hostLView=n}get element(){return Br(this._hostTNode,this._hostLView)}get injector(){return new Qn(this._hostTNode,this._hostLView)}get parentInjector(){const s=au(this._hostTNode,this._hostLView);if(Uh(s)){const e=Wa(s,this._hostLView),n=$a(s);return new Qn(e[ce].data[n+8],e)}return new Qn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(s){const e=T2(this._lContainer);return null!==e&&e[s]||null}get length(){return this._lContainer.length-kn}createEmbeddedView(s,e,n){let i,o;"number"==typeof n?i=n:null!=n&&(i=n.index,o=n.injector);const u=s.createEmbeddedViewImpl(e||{},o,null);return this.insertImpl(u,i,false),u}createComponent(s,e,n,i,o){const r=s&&!function Qa(t){return"function"==typeof t}(s);let u;if(r)u=e;else{const A=e||{};u=A.index,n=A.injector,i=A.projectableNodes,o=A.environmentInjector||A.ngModuleRef}const h=r?s:new hl(st(s)),b=n||this.parentInjector;if(!o&&null==h.ngModule){const P=(r?b:this.parentInjector).get(gi,null);P&&(o=P)}st(h.componentType??{});const L=h.create(b,i,null,o);return this.insertImpl(L.hostView,u,false),L}insert(s,e){return this.insertImpl(s,e,!1)}insertImpl(s,e,n){const i=s._lView;if(function CM(t){return $n(t[Ut])}(i)){const h=this.indexOf(s);if(-1!==h)this.detach(h);else{const b=i[Ut],T=new y2(b,b[An],b[Ut]);T.detach(T.indexOf(s))}}const r=this._adjustIndex(e),u=this._lContainer;return aR(u,i,r,!n),s.attachToViewContainerRef(),hv(Df(u),r,s),s}move(s,e){return this.insert(s,e)}indexOf(s){const e=T2(this._lContainer);return null!==e?e.indexOf(s):-1}remove(s){const e=this._adjustIndex(s,-1),n=Tu(this._lContainer,e);n&&(uu(Df(this._lContainer),e),am(n[ce],n))}detach(s){const e=this._adjustIndex(s,-1),n=Tu(this._lContainer,e);return n&&null!=uu(Df(this._lContainer),e)?new pl(n):null}_adjustIndex(s,e=0){return s??this.length+e}};function T2(t){return t[8]}function Df(t){return t[8]||(t[8]=[])}function w2(t,s){let e;const n=s[t.index];return $n(n)?e=n:(e=o0(n,s,null,t),s[t.index]=e,Uu(s,e)),S2(e,s,t,n),new y2(e,t,s)}let S2=function I2(t,s,e,n){if(t[ls])return;let i;i=8&e.type?Pt(n):function bR(t,s){const e=t[Be],n=e.createComment(""),i=oi(s,t);return Lo(e,wu(e,i),n,function Xk(t,s){return t.nextSibling(s)}(e,i),!1),n}(s,e),t[ls]=i};class Mf{constructor(s){this.queryList=s,this.matches=null}clone(){return new Mf(this.queryList)}setDirty(){this.queryList.setDirty()}}class kf{constructor(s=[]){this.queries=s}createEmbeddedView(s){const e=s.queries;if(null!==e){const n=null!==s.contentQueries?s.contentQueries[0]:e.length,i=[];for(let o=0;o0)n.push(r[u/2]);else{const b=o[u+1],T=s[-h];for(let w=kn;w{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,n)=>{this.resolve=e,this.reject=n}),this.appInits=pe(Vf,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const e=[];for(const i of this.appInits){const o=i();if(bl(o))e.push(o);else if(G0(o)){const r=new Promise((u,h)=>{o.subscribe({complete:u,error:h})});e.push(r)}}const n=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{n()}).catch(i=>{this.reject(i)}),0===e.length&&n(),this.initialized=!0}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=ae({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),W2=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=ae({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();const Ps=new le("LocaleId",{providedIn:"root",factory:()=>pe(Ps,et.Optional|et.SkipSelf)||function WR(){return typeof $localize<"u"&&$localize.locale||ta}()});let ud=(()=>{class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Ii(!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(n){return new(n||t)};static#t=this.\u0275prov=ae({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class JR{constructor(s,e){this.ngModuleFactory=s,this.componentFactories=e}}let K2=(()=>{class t{compileModuleSync(e){return new wf(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const n=this.compileModuleSync(e),o=Rs(pi(e).declarations).reduce((r,u)=>{const h=st(u);return h&&r.push(new hl(h)),r},[]);return new JR(n,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=ae({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Y2=new le(""),pd=new le("");let Uf,qf=(()=>{class t{constructor(e,n,i){this._ngZone=e,this.registry=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Uf||(function bO(t){Uf=t}(i),i.addToWindow(n)),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:()=>{We.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(n=>!n.updateCb||!n.updateCb(e)||(clearTimeout(n.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,n,i){let o=-1;n&&n>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(r=>r.timeoutId!==o),e(this._didWork,this.getPendingTasks())},n)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:i})}whenStable(e,n,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,n,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,n,i){return[]}static#e=this.\u0275fac=function(n){return new(n||t)(ie(We),ie(zf),ie(pd))};static#t=this.\u0275prov=ae({token:t,factory:t.\u0275fac})}return t})(),zf=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,n){this._applications.set(e,n)}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,n=!0){return Uf?.findTestabilityInTree(this,e,n)??null}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=ae({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),io=null;const X2=new le("AllowMultipleToken"),jf=new le("PlatformDestroyListeners"),$f=new le("appBootstrapListener");class tT{constructor(s,e){this.name=s,this.token=e}}function iT(t,s,e=[]){const n=`Platform: ${s}`,i=new le(n);return(o=[])=>{let r=Wf();if(!r||r.injector.get(X2,!1)){const u=[...e,...o,{provide:i,useValue:!0}];t?t(u):function yO(t){if(io&&!io.get(X2,!1))throw new $(400,!1);(function eT(){!function oM(t){Ib=t}(()=>{throw new $(600,!1)})})(),io=t;const s=t.get(oT);(function nT(t){t.get(gC,null)?.forEach(e=>e())})(t)}(function sT(t=[],s){return Fn.create({name:s,providers:[{provide:wm,useValue:"platform"},{provide:jf,useValue:new Set([()=>io=null])},...t]})}(u,n))}return function wO(t){const s=Wf();if(!s)throw new $(401,!1);return s}()}}function Wf(){return io?.get(oT)??null}let oT=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,n){const i=function SO(t="zone.js",s){return"noop"===t?new v5:"zone.js"===t?new We(s):t}(n?.ngZone,function rT(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}({eventCoalescing:n?.ngZoneEventCoalescing,runCoalescing:n?.ngZoneRunCoalescing}));return i.run(()=>{const o=function j7(t,s,e){return new Tf(t,s,e)}(e.moduleType,this.injector,function dT(t){return[{provide:We,useFactory:t},{provide:sl,multi:!0,useFactory:()=>{const s=pe(xO,{optional:!0});return()=>s.initialize()}},{provide:uT,useFactory:IO},{provide:OC,useFactory:AC}]}(()=>i)),r=o.injector.get(Ls,null);return i.runOutsideAngular(()=>{const u=i.onError.subscribe({next:h=>{r.handleError(h)}});o.onDestroy(()=>{hd(this._modules,o),u.unsubscribe()})}),function aT(t,s,e){try{const n=e();return bl(n)?n.catch(i=>{throw s.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw s.runOutsideAngular(()=>t.handleError(n)),n}}(r,i,()=>{const u=o.injector.get(Bf);return u.runInitializers(),u.donePromise.then(()=>(function Ey(t){xi(t,"Expected localeId to be defined"),"string"==typeof t&&(ky=t.toLowerCase().replace(/_/g,"-"))}(o.injector.get(Ps,ta)||ta),this._moduleDoBootstrap(o),o))})})}bootstrapModule(e,n=[]){const i=lT({},n);return function vO(t,s,e){const n=new wf(e);return Promise.resolve(n)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,i))}_moduleDoBootstrap(e){const n=e.injector.get(Vo);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(i=>n.bootstrap(i));else{if(!e.instance.ngDoBootstrap)throw new $(-403,!1);e.instance.ngDoBootstrap(n)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new $(404,!1);this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());const e=this._injector.get(jf,null);e&&(e.forEach(n=>n()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(n){return new(n||t)(ie(Fn))};static#t=this.\u0275prov=ae({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function lT(t,s){return Array.isArray(s)?s.reduce(lT,t):{...t,...s}}let Vo=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=pe(uT),this.zoneIsStable=pe(OC),this.componentTypes=[],this.components=[],this.isStable=pe(ud).hasPendingTasks.pipe(ui(e=>e?de(!1):this.zoneIsStable),function g4(t,s=Ws){return t=t??_4,cn((e,n)=>{let i,o=!0;e.subscribe(on(n,r=>{const u=s(r);(o||!t(i,u))&&(o=!1,i=u,n.next(r))}))})}(),lh()),this._injector=pe(gi)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,n){const i=e instanceof TC;if(!this._injector.get(Bf).done)throw!i&&function dr(t){const s=st(t)||Mn(t)||jn(t);return null!==s&&s.standalone}(e),new $(405,!1);let r;r=i?e:this._injector.get(Bu).resolveComponentFactory(e),this.componentTypes.push(r.componentType);const u=function CO(t){return t.isBoundToModule}(r)?void 0:this._injector.get(No),b=r.create(Fn.NULL,[],n||r.selector,u),T=b.location.nativeElement,w=b.injector.get(Y2,null);return w?.registerApplication(T),b.onDestroy(()=>{this.detachView(b.hostView),hd(this.components,b),w?.unregisterApplication(T)}),this._loadComponent(b),b}tick(){if(this._runningTick)throw new $(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 n=e;this._views.push(n),n.attachToAppRef(this)}detachView(e){const n=e;hd(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const n=this._injector.get($f,[]);n.push(...this._bootstrapListeners),n.forEach(i=>i(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),()=>hd(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new $(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=ae({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function hd(t,s){const e=t.indexOf(s);e>-1&&t.splice(e,1)}const uT=new le("",{providedIn:"root",factory:()=>pe(Ls).handleError.bind(void 0)});function IO(){const t=pe(We),s=pe(Ls);return e=>t.runOutsideAngular(()=>s.handleError(e))}let xO=(()=>{class t{constructor(){this.zone=pe(We),this.applicationRef=pe(Vo)}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(n){return new(n||t)};static#t=this.\u0275prov=ae({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();let at=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=kO}return t})();function kO(t){return function EO(t,s,e){if(Do(t)&&!e){const n=hi(t.index,s);return new pl(n,n)}return 47&t.type?new pl(s[an],s):null}(Ln(),X(),16==(16&t))}class gT{constructor(){}supports(s){return Ku(s)}create(s){return new PO(s)}}const AO=(t,s)=>s;class PO{constructor(s){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=s||AO}forEachItem(s){let e;for(e=this._itHead;null!==e;e=e._next)s(e)}forEachOperation(s){let e=this._itHead,n=this._removalsHead,i=0,o=null;for(;e||n;){const r=!n||e&&e.currentIndex{r=this._trackByFn(i,u),null!==e&&Object.is(e.trackById,r)?(n&&(e=this._verifyReinsertion(e,u,r,i)),Object.is(e.item,u)||this._addIdentityChange(e,u)):(e=this._mismatch(e,u,r,i),n=!0),e=e._next,i++}),this.length=i;return this._truncate(e),this.collection=s,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let s;for(s=this._previousItHead=this._itHead;null!==s;s=s._next)s._nextPrevious=s._next;for(s=this._additionsHead;null!==s;s=s._nextAdded)s.previousIndex=s.currentIndex;for(this._additionsHead=this._additionsTail=null,s=this._movesHead;null!==s;s=s._nextMoved)s.previousIndex=s.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(s,e,n,i){let o;return null===s?o=this._itTail:(o=s._prev,this._remove(s)),null!==(s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(s.item,e)||this._addIdentityChange(s,e),this._reinsertAfter(s,o,i)):null!==(s=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(s.item,e)||this._addIdentityChange(s,e),this._moveAfter(s,o,i)):s=this._addAfter(new FO(e,n),o,i),s}_verifyReinsertion(s,e,n,i){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==o?s=this._reinsertAfter(o,s._prev,i):s.currentIndex!=i&&(s.currentIndex=i,this._addToMoves(s,i)),s}_truncate(s){for(;null!==s;){const e=s._next;this._addToRemovals(this._unlink(s)),s=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(s,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(s);const i=s._prevRemoved,o=s._nextRemoved;return null===i?this._removalsHead=o:i._nextRemoved=o,null===o?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(s,e,n),this._addToMoves(s,n),s}_moveAfter(s,e,n){return this._unlink(s),this._insertAfter(s,e,n),this._addToMoves(s,n),s}_addAfter(s,e,n){return this._insertAfter(s,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=s:this._additionsTail._nextAdded=s,s}_insertAfter(s,e,n){const i=null===e?this._itHead:e._next;return s._next=i,s._prev=e,null===i?this._itTail=s:i._prev=s,null===e?this._itHead=s:e._next=s,null===this._linkedRecords&&(this._linkedRecords=new _T),this._linkedRecords.put(s),s.currentIndex=n,s}_remove(s){return this._addToRemovals(this._unlink(s))}_unlink(s){null!==this._linkedRecords&&this._linkedRecords.remove(s);const e=s._prev,n=s._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,s}_addToMoves(s,e){return s.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=s:this._movesTail._nextMoved=s),s}_addToRemovals(s){return null===this._unlinkedRecords&&(this._unlinkedRecords=new _T),this._unlinkedRecords.put(s),s.currentIndex=null,s._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=s,s._prevRemoved=null):(s._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=s),s}_addIdentityChange(s,e){return s.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=s:this._identityChangesTail._nextIdentityChange=s,s}}class FO{constructor(s,e){this.item=s,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 NO{constructor(){this._head=null,this._tail=null}add(s){null===this._head?(this._head=this._tail=s,s._nextDup=null,s._prevDup=null):(this._tail._nextDup=s,s._prevDup=this._tail,s._nextDup=null,this._tail=s)}get(s,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,s))return n;return null}remove(s){const e=s._prevDup,n=s._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class _T{constructor(){this.map=new Map}put(s){const e=s.trackById;let n=this.map.get(e);n||(n=new NO,this.map.set(e,n)),n.add(s)}get(s,e){const i=this.map.get(s);return i?i.get(s,e):null}remove(s){const e=s.trackById;return this.map.get(e).remove(s)&&this.map.delete(e),s}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function bT(t,s,e){const n=t.previousIndex;if(null===n)return n;let i=0;return e&&n{if(e&&e.key===i)this._maybeAddToChanges(e,n),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(i,n);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let n=e;null!==n;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(s,e){if(s){const n=s._prev;return e._next=s,e._prev=n,s._prev=e,n&&(n._next=e),s===this._mapHead&&(this._mapHead=e),this._appendAfter=s,s}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(s,e){if(this._records.has(s)){const i=this._records.get(s);this._maybeAddToChanges(i,e);const o=i._prev,r=i._next;return o&&(o._next=r),r&&(r._prev=o),i._next=null,i._prev=null,i}const n=new BO(s);return this._records.set(s,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let s;for(this._previousMapHead=this._mapHead,s=this._previousMapHead;null!==s;s=s._next)s._nextPrevious=s._next;for(s=this._changesHead;null!==s;s=s._nextChanged)s.previousValue=s.currentValue;for(s=this._additionsHead;null!=s;s=s._nextAdded)s.previousValue=s.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(s,e){Object.is(e,s.currentValue)||(s.previousValue=s.currentValue,s.currentValue=e,this._addToChanges(s))}_addToAdditions(s){null===this._additionsHead?this._additionsHead=this._additionsTail=s:(this._additionsTail._nextAdded=s,this._additionsTail=s)}_addToChanges(s){null===this._changesHead?this._changesHead=this._changesTail=s:(this._changesTail._nextChanged=s,this._changesTail=s)}_forEach(s,e){s instanceof Map?s.forEach(e):Object.keys(s).forEach(n=>e(s[n],n))}}class BO{constructor(s){this.key=s,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 CT(){return new gd([new gT])}let gd=(()=>{class t{static#e=this.\u0275prov=ae({token:t,providedIn:"root",factory:CT});constructor(e){this.factories=e}static create(e,n){if(null!=n){const i=n.factories.slice();e=e.concat(i)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||CT()),deps:[[t,new hu,new pu]]}}find(e){const n=this.factories.find(i=>i.supports(e));if(null!=n)return n;throw new $(901,!1)}}return t})();function yT(){return new Ll([new vT])}let Ll=(()=>{class t{static#e=this.\u0275prov=ae({token:t,providedIn:"root",factory:yT});constructor(e){this.factories=e}static create(e,n){if(n){const i=n.factories.slice();e=e.concat(i)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||yT()),deps:[[t,new hu,new pu]]}}find(e){const n=this.factories.find(i=>i.supports(e));if(n)return n;throw new $(901,!1)}}return t})();const qO=iT(null,"core",[]);let zO=(()=>{class t{constructor(e){}static#e=this.\u0275fac=function(n){return new(n||t)(ie(Vo))};static#t=this.\u0275mod=ge({type:t});static#n=this.\u0275inj=me({})}return t})();function sa(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}let Xf=null;function so(){return Xf}class i9{}const ut=new le("DocumentToken");let eg=(()=>{class t{historyGo(e){throw new Error("Not implemented")}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=ae({token:t,factory:function(){return pe(o9)},providedIn:"platform"})}return t})();const s9=new le("Location Initialized");let o9=(()=>{class t extends eg{constructor(){super(),this._doc=pe(ut),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return so().getBaseHref(this._doc)}onPopState(e){const n=so().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){const n=so().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",e,!1),()=>n.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,n,i){this._history.pushState(e,n,i)}replaceState(e,n,i){this._history.replaceState(e,n,i)}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(n){return new(n||t)};static#t=this.\u0275prov=ae({token:t,factory:function(){return new t},providedIn:"platform"})}return t})();function tg(t,s){if(0==t.length)return s;if(0==s.length)return t;let e=0;return t.endsWith("/")&&e++,s.startsWith("/")&&e++,2==e?t+s.substring(1):1==e?t+s:t+"/"+s}function ET(t){const s=t.match(/#|\?|$/),e=s&&s.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Fs(t){return t&&"?"!==t[0]?"?"+t:t}let Ho=(()=>{class t{historyGo(e){throw new Error("Not implemented")}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=ae({token:t,factory:function(){return pe(RT)},providedIn:"root"})}return t})();const LT=new le("appBaseHref");let RT=(()=>{class t extends Ho{constructor(e,n){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??pe(ut).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 tg(this._baseHref,e)}path(e=!1){const n=this._platformLocation.pathname+Fs(this._platformLocation.search),i=this._platformLocation.hash;return i&&e?`${n}${i}`:n}pushState(e,n,i,o){const r=this.prepareExternalUrl(i+Fs(o));this._platformLocation.pushState(e,n,r)}replaceState(e,n,i,o){const r=this.prepareExternalUrl(i+Fs(o));this._platformLocation.replaceState(e,n,r)}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(n){return new(n||t)(ie(eg),ie(LT,8))};static#t=this.\u0275prov=ae({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),r9=(()=>{class t extends Ho{constructor(e,n){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=n&&(this._baseHref=n)}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 n=this._platformLocation.hash;return null==n&&(n="#"),n.length>0?n.substring(1):n}prepareExternalUrl(e){const n=tg(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,i,o){let r=this.prepareExternalUrl(i+Fs(o));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,n,r)}replaceState(e,n,i,o){let r=this.prepareExternalUrl(i+Fs(o));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,n,r)}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(n){return new(n||t)(ie(eg),ie(LT,8))};static#t=this.\u0275prov=ae({token:t,factory:t.\u0275fac})}return t})(),ng=(()=>{class t{constructor(e){this._subject=new q,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const n=this._locationStrategy.getBaseHref();this._basePath=function c9(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(ET(OT(n))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,n=""){return this.path()==this.normalize(e+Fs(n))}normalize(e){return t.stripTrailingSlash(function l9(t,s){if(!t||!s.startsWith(t))return s;const e=s.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:s}(this._basePath,OT(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,n="",i=null){this._locationStrategy.pushState(i,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Fs(n)),i)}replaceState(e,n="",i=null){this._locationStrategy.replaceState(i,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Fs(n)),i)}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(n=>{this._notifyUrlChangeListeners(n.url,n.state)})),()=>{const n=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(n,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(i=>i(e,n))}subscribe(e,n,i){return this._subject.subscribe({next:e,error:n,complete:i})}static#e=this.normalizeQueryParams=Fs;static#t=this.joinWithSlash=tg;static#n=this.stripTrailingSlash=ET;static#i=this.\u0275fac=function(n){return new(n||t)(ie(Ho))};static#s=this.\u0275prov=ae({token:t,factory:function(){return function a9(){return new ng(ie(Ho))}()},providedIn:"root"})}return t})();function OT(t){return t.replace(/\/index.html$/,"")}var bd=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}(bd||{}),ln=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}(ln||{});function Ai(t,s){const e=Zn(t),n=e[Ft.NumberSymbols][s];if(typeof n>"u"){if(s===ln.CurrencyDecimal)return e[Ft.NumberSymbols][ln.Decimal];if(s===ln.CurrencyGroup)return e[Ft.NumberSymbols][ln.Group]}return n}const F9=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function ug(t){const s=parseInt(t);if(isNaN(s))throw new Error("Invalid integer literal when parsing "+t);return s}function qT(t,s){s=encodeURIComponent(s);for(const e of t.split(";")){const n=e.indexOf("="),[i,o]=-1==n?[e,""]:[e.slice(0,n),e.slice(n+1)];if(i.trim()===s)return decodeURIComponent(o)}return null}const pg=/\s+/,zT=[];let Ge=(()=>{class t{constructor(e,n,i,o){this._iterableDiffers=e,this._keyValueDiffers=n,this._ngEl=i,this._renderer=o,this.initialClasses=zT,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(pg):zT}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(pg):e}ngDoCheck(){for(const n of this.initialClasses)this._updateState(n,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const n of e)this._updateState(n,!0);else if(null!=e)for(const n of Object.keys(e))this._updateState(n,!!e[n]);this._applyStateDiff()}_updateState(e,n){const i=this.stateMap.get(e);void 0!==i?(i.enabled!==n&&(i.changed=!0,i.enabled=n),i.touched=!0):this.stateMap.set(e,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const n=e[0],i=e[1];i.changed?(this._toggleClass(n,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(n,!1),this.stateMap.delete(n)),i.touched=!1}}_toggleClass(e,n){(e=e.trim()).length>0&&e.split(pg).forEach(i=>{n?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}static#e=this.\u0275fac=function(n){return new(n||t)(M(gd),M(Ll),M(He),M(Ht))};static#t=this.\u0275dir=fe({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0})}return t})();class K9{constructor(s,e,n,i){this.$implicit=s,this.ngForOf=e,this.index=n,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let dt=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,n,i){this._viewContainer=e,this._template=n,this._differs=i,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 n=this._viewContainer;e.forEachOperation((i,o,r)=>{if(null==i.previousIndex)n.createEmbeddedView(this._template,new K9(i.item,this._ngForOf,-1,-1),null===r?void 0:r);else if(null==r)n.remove(null===o?void 0:o);else if(null!==o){const u=n.get(o);n.move(u,r),jT(u,i)}});for(let i=0,o=n.length;i{jT(n.get(i.currentIndex),i)})}static ngTemplateContextGuard(e,n){return!0}static#e=this.\u0275fac=function(n){return new(n||t)(M(Oi),M(Wi),M(gd))};static#t=this.\u0275dir=fe({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return t})();function jT(t,s){t.context.$implicit=s.item}let ne=(()=>{class t{constructor(e,n){this._viewContainer=e,this._context=new Q9,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){$T("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){$T("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,n){return!0}static#e=this.\u0275fac=function(n){return new(n||t)(M(Oi),M(Wi))};static#t=this.\u0275dir=fe({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return t})();class Q9{constructor(){this.$implicit=null,this.ngIf=null}}function $T(t,s){if(s&&!s.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${mn(s)}'.`)}class hg{constructor(s,e){this._viewContainerRef=s,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(s){s&&!this._created?this.create():!s&&this._created&&this.destroy()}}let Go=(()=>{class t{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews.push(e)}_matchCase(e){const n=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||n,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),n}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const n of this._defaultViews)n.enforceState(e)}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275dir=fe({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return t})(),Al=(()=>{class t{constructor(e,n,i){this.ngSwitch=i,i._addCase(),this._view=new hg(e,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#e=this.\u0275fac=function(n){return new(n||t)(M(Oi),M(Wi),M(Go,9))};static#t=this.\u0275dir=fe({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return t})(),mg=(()=>{class t{constructor(e,n,i){i._addDefault(new hg(e,n))}static#e=this.\u0275fac=function(n){return new(n||t)(M(Oi),M(Wi),M(Go,9))};static#t=this.\u0275dir=fe({type:t,selectors:[["","ngSwitchDefault",""]],standalone:!0})}return t})(),nt=(()=>{class t{constructor(e,n,i){this._ngEl=e,this._differs=n,this._renderer=i,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,n){const[i,o]=e.split("."),r=-1===i.indexOf("-")?void 0:to.DashCase;null!=n?this._renderer.setStyle(this._ngEl.nativeElement,i,o?`${n}${o}`:n,r):this._renderer.removeStyle(this._ngEl.nativeElement,i,r)}_applyChanges(e){e.forEachRemovedItem(n=>this._setStyle(n.key,null)),e.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),e.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}static#e=this.\u0275fac=function(n){return new(n||t)(M(He),M(Ll),M(Ht))};static#t=this.\u0275dir=fe({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return t})(),pt=(()=>{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 n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:i,ngTemplateOutletContext:o,ngTemplateOutletInjector:r}=this;this._viewRef=n.createEmbeddedView(i,o,r?{injector:r}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}static#e=this.\u0275fac=function(n){return new(n||t)(M(Oi))};static#t=this.\u0275dir=fe({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[wn]})}return t})();function Qi(t,s){return new $(2100,!1)}class Z9{createSubscription(s,e){return Mb(()=>s.subscribe({next:e,error:n=>{throw n}}))}dispose(s){Mb(()=>s.unsubscribe())}}class Y9{createSubscription(s,e){return s.then(e,n=>{throw n})}dispose(s){}}const X9=new Y9,eA=new Z9;let KT=(()=>{class t{constructor(e){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,n=>this._updateLatestValue(e,n))}_selectStrategy(e){if(bl(e))return X9;if(G0(e))return eA;throw Qi()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,n){e===this._obj&&(this._latestValue=n,this._ref.markForCheck())}static#e=this.\u0275fac=function(n){return new(n||t)(M(at,16))};static#t=this.\u0275pipe=On({name:"async",type:t,pure:!1,standalone:!0})}return t})(),Md=(()=>{class t{constructor(e){this._locale=e}transform(e,n,i){if(!function fg(t){return!(null==t||""===t||t!=t)}(e))return null;i=i||this._locale;try{return function q9(t,s,e){return function lg(t,s,e,n,i,o,r=!1){let u="",h=!1;if(isFinite(t)){let b=function U9(t){let n,i,o,r,u,s=Math.abs(t)+"",e=0;for((i=s.indexOf("."))>-1&&(s=s.replace(".","")),(o=s.search(/e/i))>0?(i<0&&(i=o),i+=+s.slice(o+1),s=s.substring(0,o)):i<0&&(i=s.length),o=0;"0"===s.charAt(o);o++);if(o===(u=s.length))n=[0],i=1;else{for(u--;"0"===s.charAt(u);)u--;for(i-=o,n=[],r=0;o<=u;o++,r++)n[r]=Number(s.charAt(o))}return i>22&&(n=n.splice(0,21),e=i-1,i=1),{digits:n,exponent:e,integerLen:i}}(t);r&&(b=function z9(t){if(0===t.digits[0])return t;const s=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===s?t.digits.push(0,0):1===s&&t.digits.push(0),t.integerLen+=2),t}(b));let T=s.minInt,w=s.minFrac,k=s.maxFrac;if(o){const N=o.match(F9);if(null===N)throw new Error(`${o} is not a valid digit info`);const ee=N[1],re=N[3],be=N[5];null!=ee&&(T=ug(ee)),null!=re&&(w=ug(re)),null!=be?k=ug(be):null!=re&&w>k&&(k=w)}!function j9(t,s,e){if(s>e)throw new Error(`The minimum number of digits after fraction (${s}) is higher than the maximum (${e}).`);let n=t.digits,i=n.length-t.integerLen;const o=Math.min(Math.max(s,i),e);let r=o+t.integerLen,u=n[r];if(r>0){n.splice(Math.max(t.integerLen,r));for(let w=r;w=5)if(r-1<0){for(let w=0;w>r;w--)n.unshift(0),t.integerLen++;n.unshift(1),t.integerLen++}else n[r-1]++;for(;i=b?O.pop():h=!1),k>=10?1:0},0);T&&(n.unshift(T),t.integerLen++)}(b,w,k);let L=b.digits,O=b.integerLen;const A=b.exponent;let P=[];for(h=L.every(N=>!N);O0?P=L.splice(O,L.length):(P=L,L=[0]);const U=[];for(L.length>=s.lgSize&&U.unshift(L.splice(-s.lgSize,L.length).join(""));L.length>s.gSize;)U.unshift(L.splice(-s.gSize,L.length).join(""));L.length&&U.unshift(L.join("")),u=U.join(Ai(e,n)),P.length&&(u+=Ai(e,i)+P.join("")),A&&(u+=Ai(e,ln.Exponential)+"+"+A)}else u=Ai(e,ln.Infinity);return u=t<0&&!h?s.negPre+u+s.negSuf:s.posPre+u+s.posSuf,u}(t,function cg(t,s="-"){const e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=t.split(";"),i=n[0],o=n[1],r=-1!==i.indexOf(".")?i.split("."):[i.substring(0,i.lastIndexOf("0")+1),i.substring(i.lastIndexOf("0")+1)],u=r[0],h=r[1]||"";e.posPre=u.substring(0,u.indexOf("#"));for(let T=0;T{class t{transform(e,n,i){if(null==e)return null;if(!this.supports(e))throw Qi();return e.slice(n,i)}supports(e){return"string"==typeof e||Array.isArray(e)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275pipe=On({name:"slice",type:t,pure:!1,standalone:!0})}return t})(),qe=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=ge({type:t});static#n=this.\u0275inj=me({})}return t})();const ZT="browser";function vn(t){return t===ZT}function YT(t){return"server"===t}let CA=(()=>{class t{static#e=this.\u0275prov=ae({token:t,providedIn:"root",factory:()=>new yA(ie(ut),window)})}return t})();class yA{constructor(s,e){this.document=s,this.window=e,this.offset=()=>[0,0]}setOffset(s){this.offset=Array.isArray(s)?()=>s:s}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(s){this.supportsScrolling()&&this.window.scrollTo(s[0],s[1])}scrollToAnchor(s){if(!this.supportsScrolling())return;const e=function TA(t,s){const e=t.getElementById(s)||t.getElementsByName(s)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&"function"==typeof t.body.attachShadow){const n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let i=n.currentNode;for(;i;){const o=i.shadowRoot;if(o){const r=o.getElementById(s)||o.querySelector(`[name="${s}"]`);if(r)return r}i=n.nextNode()}}return null}(this.document,s);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(s){this.supportsScrolling()&&(this.window.history.scrollRestoration=s)}scrollToElement(s){const e=s.getBoundingClientRect(),n=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],i-o[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class XT{}class jA extends i9{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class vg extends jA{static makeCurrent(){!function n9(t){Xf||(Xf=t)}(new vg)}onAndCancel(s,e,n){return s.addEventListener(e,n),()=>{s.removeEventListener(e,n)}}dispatchEvent(s,e){s.dispatchEvent(e)}remove(s){s.parentNode&&s.parentNode.removeChild(s)}createElement(s,e){return(e=e||this.getDefaultDocument()).createElement(s)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(s){return s.nodeType===Node.ELEMENT_NODE}isShadowRoot(s){return s instanceof DocumentFragment}getGlobalEventTarget(s,e){return"window"===e?window:"document"===e?s:"body"===e?s.body:null}getBaseHref(s){const e=function $A(){return Fl=Fl||document.querySelector("base"),Fl?Fl.getAttribute("href"):null}();return null==e?null:function WA(t){Ld=Ld||document.createElement("a"),Ld.setAttribute("href",t);const s=Ld.pathname;return"/"===s.charAt(0)?s:`/${s}`}(e)}resetBaseElement(){Fl=null}getUserAgent(){return window.navigator.userAgent}getCookie(s){return qT(document.cookie,s)}}let Ld,Fl=null,QA=(()=>{class t{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=ae({token:t,factory:t.\u0275fac})}return t})();const Cg=new le("EventManagerPlugins");let sw=(()=>{class t{constructor(e,n){this._zone=n,this._eventNameToPlugin=new Map,e.forEach(i=>{i.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,n,i){return this._findPluginFor(n).addEventListener(e,n,i)}getZone(){return this._zone}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(o=>o.supports(e)),!n)throw new $(5101,!1);return this._eventNameToPlugin.set(e,n),n}static#e=this.\u0275fac=function(n){return new(n||t)(ie(Cg),ie(We))};static#t=this.\u0275prov=ae({token:t,factory:t.\u0275fac})}return t})();class ow{constructor(s){this._doc=s}}const yg="ng-app-id";let rw=(()=>{class t{constructor(e,n,i,o={}){this.doc=e,this.appId=n,this.nonce=i,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=YT(o),this.resetHostNodes()}addStyles(e){for(const n of e)1===this.changeUsageCount(n,1)&&this.onStyleAdded(n)}removeStyles(e){for(const n of e)this.changeUsageCount(n,-1)<=0&&this.onStyleRemoved(n)}ngOnDestroy(){const e=this.styleNodesInDOM;e&&(e.forEach(n=>n.remove()),e.clear());for(const n of this.getAllStyles())this.onStyleRemoved(n);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const n of this.getAllStyles())this.addStyleToHost(e,n)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(const n of this.hostNodes)this.addStyleToHost(n,e)}onStyleRemoved(e){const n=this.styleRef;n.get(e)?.elements?.forEach(i=>i.remove()),n.delete(e)}collectServerRenderedStyles(){const e=this.doc.head?.querySelectorAll(`style[${yg}="${this.appId}"]`);if(e?.length){const n=new Map;return e.forEach(i=>{null!=i.textContent&&n.set(i.textContent,i)}),n}return null}changeUsageCount(e,n){const i=this.styleRef;if(i.has(e)){const o=i.get(e);return o.usage+=n,o.usage}return i.set(e,{usage:n,elements:[]}),n}getStyleElement(e,n){const i=this.styleNodesInDOM,o=i?.get(n);if(o?.parentNode===e)return i.delete(n),o.removeAttribute(yg),o;{const r=this.doc.createElement("style");return this.nonce&&r.setAttribute("nonce",this.nonce),r.textContent=n,this.platformIsServer&&r.setAttribute(yg,this.appId),r}}addStyleToHost(e,n){const i=this.getStyleElement(e,n);e.appendChild(i);const o=this.styleRef,r=o.get(n)?.elements;r?r.push(i):o.set(n,{elements:[i],usage:1})}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}static#e=this.\u0275fac=function(n){return new(n||t)(ie(ut),ie(Ou),ie(bC,8),ie(gn))};static#t=this.\u0275prov=ae({token:t,factory:t.\u0275fac})}return t})();const Tg={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/"},wg=/%COMP%/g,XA=new le("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function lw(t,s){return s.map(e=>e.replace(wg,t))}let Sg=(()=>{class t{constructor(e,n,i,o,r,u,h,b=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=r,this.platformId=u,this.ngZone=h,this.nonce=b,this.rendererByCompId=new Map,this.platformIsServer=YT(u),this.defaultRenderer=new Ig(e,r,h,this.platformIsServer)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===Di.ShadowDom&&(n={...n,encapsulation:Di.Emulated});const i=this.getOrCreateRenderer(e,n);return i instanceof uw?i.applyToHost(e):i instanceof xg&&i.applyStyles(),i}getOrCreateRenderer(e,n){const i=this.rendererByCompId;let o=i.get(n.id);if(!o){const r=this.doc,u=this.ngZone,h=this.eventManager,b=this.sharedStylesHost,T=this.removeStylesOnCompDestroy,w=this.platformIsServer;switch(n.encapsulation){case Di.Emulated:o=new uw(h,b,n,this.appId,T,r,u,w);break;case Di.ShadowDom:return new i8(h,b,e,n,r,u,this.nonce,w);default:o=new xg(h,b,n,T,r,u,w)}i.set(n.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(n){return new(n||t)(ie(sw),ie(rw),ie(Ou),ie(XA),ie(ut),ie(gn),ie(We),ie(bC))};static#t=this.\u0275prov=ae({token:t,factory:t.\u0275fac})}return t})();class Ig{constructor(s,e,n,i){this.eventManager=s,this.doc=e,this.ngZone=n,this.platformIsServer=i,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(s,e){return e?this.doc.createElementNS(Tg[e]||e,s):this.doc.createElement(s)}createComment(s){return this.doc.createComment(s)}createText(s){return this.doc.createTextNode(s)}appendChild(s,e){(cw(s)?s.content:s).appendChild(e)}insertBefore(s,e,n){s&&(cw(s)?s.content:s).insertBefore(e,n)}removeChild(s,e){s&&s.removeChild(e)}selectRootElement(s,e){let n="string"==typeof s?this.doc.querySelector(s):s;if(!n)throw new $(-5104,!1);return e||(n.textContent=""),n}parentNode(s){return s.parentNode}nextSibling(s){return s.nextSibling}setAttribute(s,e,n,i){if(i){e=i+":"+e;const o=Tg[i];o?s.setAttributeNS(o,e,n):s.setAttribute(e,n)}else s.setAttribute(e,n)}removeAttribute(s,e,n){if(n){const i=Tg[n];i?s.removeAttributeNS(i,e):s.removeAttribute(`${n}:${e}`)}else s.removeAttribute(e)}addClass(s,e){s.classList.add(e)}removeClass(s,e){s.classList.remove(e)}setStyle(s,e,n,i){i&(to.DashCase|to.Important)?s.style.setProperty(e,n,i&to.Important?"important":""):s.style[e]=n}removeStyle(s,e,n){n&to.DashCase?s.style.removeProperty(e):s.style[e]=""}setProperty(s,e,n){s[e]=n}setValue(s,e){s.nodeValue=e}listen(s,e,n){if("string"==typeof s&&!(s=so().getGlobalEventTarget(this.doc,s)))throw new Error(`Unsupported event target ${s} for event ${e}`);return this.eventManager.addEventListener(s,e,this.decoratePreventDefault(n))}decoratePreventDefault(s){return e=>{if("__ngUnwrap__"===e)return s;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>s(e)):s(e))&&e.preventDefault()}}}function cw(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class i8 extends Ig{constructor(s,e,n,i,o,r,u,h){super(s,o,r,h),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const b=lw(i.id,i.styles);for(const T of b){const w=document.createElement("style");u&&w.setAttribute("nonce",u),w.textContent=T,this.shadowRoot.appendChild(w)}}nodeOrShadowRoot(s){return s===this.hostEl?this.shadowRoot:s}appendChild(s,e){return super.appendChild(this.nodeOrShadowRoot(s),e)}insertBefore(s,e,n){return super.insertBefore(this.nodeOrShadowRoot(s),e,n)}removeChild(s,e){return super.removeChild(this.nodeOrShadowRoot(s),e)}parentNode(s){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(s)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class xg extends Ig{constructor(s,e,n,i,o,r,u,h){super(s,o,r,u),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=i,this.styles=h?lw(h,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class uw extends xg{constructor(s,e,n,i,o,r,u,h){const b=i+"-"+n.id;super(s,e,n,o,r,u,h,b),this.contentAttr=function e8(t){return"_ngcontent-%COMP%".replace(wg,t)}(b),this.hostAttr=function t8(t){return"_nghost-%COMP%".replace(wg,t)}(b)}applyToHost(s){this.applyStyles(),this.setAttribute(s,this.hostAttr,"")}createElement(s,e){const n=super.createElement(s,e);return super.setAttribute(n,this.contentAttr,""),n}}let s8=(()=>{class t extends ow{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,i){return e.addEventListener(n,i,!1),()=>this.removeEventListener(e,n,i)}removeEventListener(e,n,i){return e.removeEventListener(n,i)}static#e=this.\u0275fac=function(n){return new(n||t)(ie(ut))};static#t=this.\u0275prov=ae({token:t,factory:t.\u0275fac})}return t})();const dw=["alt","control","meta","shift"],o8={"\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"},r8={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let a8=(()=>{class t extends ow{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,i){const o=t.parseEventName(n),r=t.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>so().onAndCancel(e,o.domEventName,r))}static parseEventName(e){const n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const o=t._normalizeKey(n.pop());let r="",u=n.indexOf("code");if(u>-1&&(n.splice(u,1),r="code."),dw.forEach(b=>{const T=n.indexOf(b);T>-1&&(n.splice(T,1),r+=b+".")}),r+=o,0!=n.length||0===o.length)return null;const h={};return h.domEventName=i,h.fullKey=r,h}static matchEventFullKeyCode(e,n){let i=o8[e.key]||e.key,o="";return n.indexOf("code.")>-1&&(i=e.code,o="code."),!(null==i||!i)&&(i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),dw.forEach(r=>{r!==i&&(0,r8[r])(e)&&(o+=r+".")}),o+=i,o===n)}static eventCallback(e,n,i){return o=>{t.matchEventFullKeyCode(o,e)&&i.runGuarded(()=>n(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}static#e=this.\u0275fac=function(n){return new(n||t)(ie(ut))};static#t=this.\u0275prov=ae({token:t,factory:t.\u0275fac})}return t})();const d8=iT(qO,"browser",[{provide:gn,useValue:ZT},{provide:gC,useValue:function l8(){vg.makeCurrent()},multi:!0},{provide:ut,useFactory:function u8(){return function aE(t){mm=t}(document),document},deps:[]}]),p8=new le(""),mw=[{provide:pd,useClass:class KA{addToWindow(s){At.getAngularTestability=(n,i=!0)=>{const o=s.findTestabilityInTree(n,i);if(null==o)throw new $(5103,!1);return o},At.getAllAngularTestabilities=()=>s.getAllTestabilities(),At.getAllAngularRootElements=()=>s.getAllRootElements(),At.frameworkStabilizers||(At.frameworkStabilizers=[]),At.frameworkStabilizers.push(n=>{const i=At.getAllAngularTestabilities();let o=i.length,r=!1;const u=function(h){r=r||h,o--,0==o&&n(r)};i.forEach(h=>{h.whenStable(u)})})}findTestabilityInTree(s,e,n){return null==e?null:s.getTestability(e)??(n?so().isShadowRoot(e)?this.findTestabilityInTree(s,e.host,!0):this.findTestabilityInTree(s,e.parentElement,!0):null)}},deps:[]},{provide:Y2,useClass:qf,deps:[We,zf,pd]},{provide:qf,useClass:qf,deps:[We,zf,pd]}],fw=[{provide:wm,useValue:"root"},{provide:Ls,useFactory:function c8(){return new Ls},deps:[]},{provide:Cg,useClass:s8,multi:!0,deps:[ut,We,gn]},{provide:Cg,useClass:a8,multi:!0,deps:[ut]},Sg,rw,sw,{provide:al,useExisting:Sg},{provide:XT,useClass:QA,deps:[]},[]];let gw=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:Ou,useValue:e.appId}]}}static#e=this.\u0275fac=function(n){return new(n||t)(ie(p8,12))};static#t=this.\u0275mod=ge({type:t});static#n=this.\u0275inj=me({providers:[...fw,...mw],imports:[qe,zO]})}return t})(),_w=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static#e=this.\u0275fac=function(n){return new(n||t)(ie(ut))};static#t=this.\u0275prov=ae({token:t,factory:function(n){let i=null;return i=n?new n:function m8(){return new _w(ie(ut))}(),i},providedIn:"root"})}return t})();typeof window<"u"&&window;let Cw=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=ae({token:t,factory:function(n){let i=null;return i=n?new(n||t):ie(yw),i},providedIn:"root"})}return t})(),yw=(()=>{class t extends Cw{constructor(e){super(),this._doc=e}sanitize(e,n){if(null==n)return null;switch(e){case Ei.NONE:return n;case Ei.HTML:return ps(n,"HTML")?fi(n):rC(this._doc,String(n)).toString();case Ei.STYLE:return ps(n,"Style")?fi(n):n;case Ei.SCRIPT:if(ps(n,"Script"))return fi(n);throw new $(5200,!1);case Ei.URL:return ps(n,"URL")?fi(n):Mu(String(n));case Ei.RESOURCE_URL:if(ps(n,"ResourceURL"))return fi(n);throw new $(5201,!1);default:throw new $(5202,!1)}}bypassSecurityTrustHtml(e){return function mE(t){return new lE(t)}(e)}bypassSecurityTrustStyle(e){return function fE(t){return new cE(t)}(e)}bypassSecurityTrustScript(e){return function gE(t){return new uE(t)}(e)}bypassSecurityTrustUrl(e){return function _E(t){return new dE(t)}(e)}bypassSecurityTrustResourceUrl(e){return function bE(t){return new pE(t)}(e)}static#e=this.\u0275fac=function(n){return new(n||t)(ie(ut))};static#t=this.\u0275prov=ae({token:t,factory:function(n){let i=null;return i=n?new n:function b8(t){return new yw(t.get(ut))}(ie(Fn)),i},providedIn:"root"})}return t})();function qo(t,s){return Et(s)?Tn(t,s,1):Tn(t,1)}function Bs(t,s){return cn((e,n)=>{let i=0;e.subscribe(on(n,o=>t.call(s,o,i++)&&n.next(o)))})}function Nl(t){return cn((s,e)=>{try{s.subscribe(e)}finally{e.add(t)}})}class Rd{}class Od{}class gs{constructor(s){this.normalizedNames=new Map,this.lazyUpdate=null,s?"string"==typeof s?this.lazyInit=()=>{this.headers=new Map,s.split("\n").forEach(e=>{const n=e.indexOf(":");if(n>0){const i=e.slice(0,n),o=i.toLowerCase(),r=e.slice(n+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(r):this.headers.set(o,[r])}})}:typeof Headers<"u"&&s instanceof Headers?(this.headers=new Map,s.forEach((e,n)=>{this.setHeaderEntries(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(s).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(s){return this.init(),this.headers.has(s.toLowerCase())}get(s){this.init();const e=this.headers.get(s.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(s){return this.init(),this.headers.get(s.toLowerCase())||null}append(s,e){return this.clone({name:s,value:e,op:"a"})}set(s,e){return this.clone({name:s,value:e,op:"s"})}delete(s,e){return this.clone({name:s,value:e,op:"d"})}maybeSetNormalizedName(s,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,s)}init(){this.lazyInit&&(this.lazyInit instanceof gs?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(s=>this.applyUpdate(s)),this.lazyUpdate=null))}copyFrom(s){s.init(),Array.from(s.headers.keys()).forEach(e=>{this.headers.set(e,s.headers.get(e)),this.normalizedNames.set(e,s.normalizedNames.get(e))})}clone(s){const e=new gs;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof gs?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([s]),e}applyUpdate(s){const e=s.name.toLowerCase();switch(s.op){case"a":case"s":let n=s.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(s.name,e);const i=("a"===s.op?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":const o=s.value;if(o){let r=this.headers.get(e);if(!r)return;r=r.filter(u=>-1===o.indexOf(u)),0===r.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,r)}else this.headers.delete(e),this.normalizedNames.delete(e)}}setHeaderEntries(s,e){const n=(Array.isArray(e)?e:[e]).map(o=>o.toString()),i=s.toLowerCase();this.headers.set(i,n),this.maybeSetNormalizedName(s,i)}forEach(s){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>s(this.normalizedNames.get(e),this.headers.get(e)))}}class v8{encodeKey(s){return ww(s)}encodeValue(s){return ww(s)}decodeKey(s){return decodeURIComponent(s)}decodeValue(s){return decodeURIComponent(s)}}const y8=/%(\d[a-f0-9])/gi,T8={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ww(t){return encodeURIComponent(t).replace(y8,(s,e)=>T8[e]??s)}function Ad(t){return`${t}`}class xe{constructor(s={}){if(this.updates=null,this.cloneFrom=null,this.encoder=s.encoder||new v8,s.fromString){if(s.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function C8(t,s){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{const o=i.indexOf("="),[r,u]=-1==o?[s.decodeKey(i),""]:[s.decodeKey(i.slice(0,o)),s.decodeValue(i.slice(o+1))],h=e.get(r)||[];h.push(u),e.set(r,h)}),e}(s.fromString,this.encoder)}else s.fromObject?(this.map=new Map,Object.keys(s.fromObject).forEach(e=>{const n=s.fromObject[e],i=Array.isArray(n)?n.map(Ad):[Ad(n)];this.map.set(e,i)})):this.map=null}has(s){return this.init(),this.map.has(s)}get(s){this.init();const e=this.map.get(s);return e?e[0]:null}getAll(s){return this.init(),this.map.get(s)||null}keys(){return this.init(),Array.from(this.map.keys())}append(s,e){return this.clone({param:s,value:e,op:"a"})}appendAll(s){const e=[];return Object.keys(s).forEach(n=>{const i=s[n];Array.isArray(i)?i.forEach(o=>{e.push({param:n,value:o,op:"a"})}):e.push({param:n,value:i,op:"a"})}),this.clone(e)}set(s,e){return this.clone({param:s,value:e,op:"s"})}delete(s,e){return this.clone({param:s,value:e,op:"d"})}toString(){return this.init(),this.keys().map(s=>{const e=this.encoder.encodeKey(s);return this.map.get(s).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(s=>""!==s).join("&")}clone(s){const e=new xe({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(s),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(s=>this.map.set(s,this.cloneFrom.map.get(s))),this.updates.forEach(s=>{switch(s.op){case"a":case"s":const e=("a"===s.op?this.map.get(s.param):void 0)||[];e.push(Ad(s.value)),this.map.set(s.param,e);break;case"d":if(void 0===s.value){this.map.delete(s.param);break}{let n=this.map.get(s.param)||[];const i=n.indexOf(Ad(s.value));-1!==i&&n.splice(i,1),n.length>0?this.map.set(s.param,n):this.map.delete(s.param)}}}),this.cloneFrom=this.updates=null)}}class w8{constructor(){this.map=new Map}set(s,e){return this.map.set(s,e),this}get(s){return this.map.has(s)||this.map.set(s,s.defaultValue()),this.map.get(s)}delete(s){return this.map.delete(s),this}has(s){return this.map.has(s)}keys(){return this.map.keys()}}function Sw(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function Iw(t){return typeof Blob<"u"&&t instanceof Blob}function xw(t){return typeof FormData<"u"&&t instanceof FormData}class Vl{constructor(s,e,n,i){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=s.toUpperCase(),function S8(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,o=i):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new gs),this.context||(this.context=new w8),this.params){const r=this.params.toString();if(0===r.length)this.urlWithParams=e;else{const u=e.indexOf("?");this.urlWithParams=e+(-1===u?"?":uw.set(k,s.setHeaders[k]),h)),s.setParams&&(b=Object.keys(s.setParams).reduce((w,k)=>w.set(k,s.setParams[k]),b)),new Vl(e,n,o,{params:b,headers:h,context:T,reportProgress:u,responseType:i,withCredentials:r})}}var ra=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}(ra||{});class Mg{constructor(s,e=200,n="OK"){this.headers=s.headers||new gs,this.status=void 0!==s.status?s.status:e,this.statusText=s.statusText||n,this.url=s.url||null,this.ok=this.status>=200&&this.status<300}}class kg extends Mg{constructor(s={}){super(s),this.type=ra.ResponseHeader}clone(s={}){return new kg({headers:s.headers||this.headers,status:void 0!==s.status?s.status:this.status,statusText:s.statusText||this.statusText,url:s.url||this.url||void 0})}}class aa extends Mg{constructor(s={}){super(s),this.type=ra.Response,this.body=void 0!==s.body?s.body:null}clone(s={}){return new aa({body:void 0!==s.body?s.body:this.body,headers:s.headers||this.headers,status:void 0!==s.status?s.status:this.status,statusText:s.statusText||this.statusText,url:s.url||this.url||void 0})}}class Dw extends Mg{constructor(s){super(s,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${s.url||"(unknown url)"}`:`Http failure response for ${s.url||"(unknown url)"}: ${s.status} ${s.statusText}`,this.error=s.error||null}}function Eg(t,s){return{body:s,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Ji=(()=>{class t{constructor(e){this.handler=e}request(e,n,i={}){let o;if(e instanceof Vl)o=e;else{let h,b;h=i.headers instanceof gs?i.headers:new gs(i.headers),i.params&&(b=i.params instanceof xe?i.params:new xe({fromObject:i.params})),o=new Vl(e,n,void 0!==i.body?i.body:null,{headers:h,context:i.context,params:b,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const r=de(o).pipe(qo(h=>this.handler.handle(h)));if(e instanceof Vl||"events"===i.observe)return r;const u=r.pipe(Bs(h=>h instanceof aa));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return u.pipe(lt(h=>{if(null!==h.body&&!(h.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return h.body}));case"blob":return u.pipe(lt(h=>{if(null!==h.body&&!(h.body instanceof Blob))throw new Error("Response is not a Blob.");return h.body}));case"text":return u.pipe(lt(h=>{if(null!==h.body&&"string"!=typeof h.body)throw new Error("Response is not a string.");return h.body}));default:return u.pipe(lt(h=>h.body))}case"response":return u;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:(new xe).append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,i={}){return this.request("PATCH",e,Eg(i,n))}post(e,n,i={}){return this.request("POST",e,Eg(i,n))}put(e,n,i={}){return this.request("PUT",e,Eg(i,n))}static#e=this.\u0275fac=function(n){return new(n||t)(ie(Rd))};static#t=this.\u0275prov=ae({token:t,factory:t.\u0275fac})}return t})();function Ew(t,s){return s(t)}function D8(t,s){return(e,n)=>s.intercept(e,{handle:i=>t(i,n)})}const k8=new le(""),Bl=new le(""),Lw=new le("");function E8(){let t=null;return(s,e)=>{null===t&&(t=(pe(k8,{optional:!0})??[]).reduceRight(D8,Ew));const n=pe(ud),i=n.add();return t(s,e).pipe(Nl(()=>n.remove(i)))}}let Rw=(()=>{class t extends Rd{constructor(e,n){super(),this.backend=e,this.injector=n,this.chain=null,this.pendingTasks=pe(ud)}handle(e){if(null===this.chain){const i=Array.from(new Set([...this.injector.get(Bl),...this.injector.get(Lw,[])]));this.chain=i.reduceRight((o,r)=>function M8(t,s,e){return(n,i)=>e.runInContext(()=>s(n,o=>t(o,i)))}(o,r,this.injector),Ew)}const n=this.pendingTasks.add();return this.chain(e,i=>this.backend.handle(i)).pipe(Nl(()=>this.pendingTasks.remove(n)))}static#e=this.\u0275fac=function(n){return new(n||t)(ie(Od),ie(gi))};static#t=this.\u0275prov=ae({token:t,factory:t.\u0275fac})}return t})();const A8=/^\)\]\}',?\n/;let Aw=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new $(-2800,!1);const n=this.xhrFactory;return(n.\u0275loadImpl?hn(n.\u0275loadImpl()):de(null)).pipe(ui(()=>new It(o=>{const r=n.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((A,P)=>r.setRequestHeader(A,P.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const A=e.detectContentTypeHeader();null!==A&&r.setRequestHeader("Content-Type",A)}if(e.responseType){const A=e.responseType.toLowerCase();r.responseType="json"!==A?A:"text"}const u=e.serializeBody();let h=null;const b=()=>{if(null!==h)return h;const A=r.statusText||"OK",P=new gs(r.getAllResponseHeaders()),U=function P8(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||e.url;return h=new kg({headers:P,status:r.status,statusText:A,url:U}),h},T=()=>{let{headers:A,status:P,statusText:U,url:N}=b(),ee=null;204!==P&&(ee=typeof r.response>"u"?r.responseText:r.response),0===P&&(P=ee?200:0);let re=P>=200&&P<300;if("json"===e.responseType&&"string"==typeof ee){const be=ee;ee=ee.replace(A8,"");try{ee=""!==ee?JSON.parse(ee):null}catch(Je){ee=be,re&&(re=!1,ee={error:Je,text:ee})}}re?(o.next(new aa({body:ee,headers:A,status:P,statusText:U,url:N||void 0})),o.complete()):o.error(new Dw({error:ee,headers:A,status:P,statusText:U,url:N||void 0}))},w=A=>{const{url:P}=b(),U=new Dw({error:A,status:r.status||0,statusText:r.statusText||"Unknown Error",url:P||void 0});o.error(U)};let k=!1;const L=A=>{k||(o.next(b()),k=!0);let P={type:ra.DownloadProgress,loaded:A.loaded};A.lengthComputable&&(P.total=A.total),"text"===e.responseType&&r.responseText&&(P.partialText=r.responseText),o.next(P)},O=A=>{let P={type:ra.UploadProgress,loaded:A.loaded};A.lengthComputable&&(P.total=A.total),o.next(P)};return r.addEventListener("load",T),r.addEventListener("error",w),r.addEventListener("timeout",w),r.addEventListener("abort",w),e.reportProgress&&(r.addEventListener("progress",L),null!==u&&r.upload&&r.upload.addEventListener("progress",O)),r.send(u),o.next({type:ra.Sent}),()=>{r.removeEventListener("error",w),r.removeEventListener("abort",w),r.removeEventListener("load",T),r.removeEventListener("timeout",w),e.reportProgress&&(r.removeEventListener("progress",L),null!==u&&r.upload&&r.upload.removeEventListener("progress",O)),r.readyState!==r.DONE&&r.abort()}})))}static#e=this.\u0275fac=function(n){return new(n||t)(ie(XT))};static#t=this.\u0275prov=ae({token:t,factory:t.\u0275fac})}return t})();const Lg=new le("XSRF_ENABLED"),Pw=new le("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),Fw=new le("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Nw{}let V8=(()=>{class t{constructor(e,n,i){this.doc=e,this.platform=n,this.cookieName=i,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=qT(e,this.cookieName),this.lastCookieString=e),this.lastToken}static#e=this.\u0275fac=function(n){return new(n||t)(ie(ut),ie(gn),ie(Pw))};static#t=this.\u0275prov=ae({token:t,factory:t.\u0275fac})}return t})();function B8(t,s){const e=t.url.toLowerCase();if(!pe(Lg)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return s(t);const n=pe(Nw).getToken(),i=pe(Fw);return null!=n&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,n)})),s(t)}var ro=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}(ro||{});function H8(...t){const s=[Ji,Aw,Rw,{provide:Rd,useExisting:Rw},{provide:Od,useExisting:Aw},{provide:Bl,useValue:B8,multi:!0},{provide:Lg,useValue:!0},{provide:Nw,useClass:V8}];for(const e of t)s.push(...e.\u0275providers);return function Cm(t){return{\u0275providers:t}}(s)}const Vw=new le("LEGACY_INTERCEPTOR_FN");function G8(){return function zo(t,s){return{\u0275kind:t,\u0275providers:s}}(ro.LegacyInterceptors,[{provide:Vw,useFactory:E8},{provide:Bl,useExisting:Vw,multi:!0}])}let q8=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=ge({type:t});static#n=this.\u0275inj=me({providers:[H8(G8())]})}return t})();function Hs(t){return!!t&&(t instanceof It||Et(t.lift)&&Et(t.subscribe))}const{isArray:K8}=Array,{getPrototypeOf:Q8,prototype:J8,keys:Z8}=Object;function Bw(t){if(1===t.length){const s=t[0];if(K8(s))return{args:s,keys:null};if(function Y8(t){return t&&"object"==typeof t&&Q8(t)===J8}(s)){const e=Z8(s);return{args:e.map(n=>s[n]),keys:e}}}return{args:t,keys:null}}const{isArray:X8}=Array;function Hw(t){return lt(s=>function eP(t,s){return X8(s)?t(...s):t(s)}(t,s))}function Gw(t,s){return t.reduce((e,n,i)=>(e[n]=s[i],e),{})}function qw(...t){const s=H1(t),{args:e,keys:n}=Bw(t),i=new It(o=>{const{length:r}=e;if(!r)return void o.complete();const u=new Array(r);let h=r,b=r;for(let T=0;T{w||(w=!0,b--),u[T]=k},()=>h--,void 0,()=>{(!h||!w)&&(b||o.next(n?Gw(n,u):u),o.complete())}))}});return s?i.pipe(Hw(s)):i}function la(...t){return function tP(){return cr(1)}()(hn(t,La(t)))}function Fd(t){return new It(s=>{ni(t()).subscribe(s)})}function Fi(t){return t<=0?()=>ss:cn((s,e)=>{let n=0;s.subscribe(on(e,i=>{++n<=t&&(e.next(i),t<=n&&e.complete())}))})}const Rg={now:()=>(Rg.delegate||Date).now(),delegate:void 0};class nP extends Jt{constructor(s=1/0,e=1/0,n=Rg){super(),this._bufferSize=s,this._windowTime=e,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,s),this._windowTime=Math.max(1,e)}next(s){const{isStopped:e,_buffer:n,_infiniteTimeWindow:i,_timestampProvider:o,_windowTime:r}=this;e||(n.push(s),!i&&n.push(o.now()+r)),this._trimBuffer(),super.next(s)}_subscribe(s){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(s),{_infiniteTimeWindow:n,_buffer:i}=this,o=i.slice();for(let r=0;rnew nP(n,s,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:i})}class Hl{}let Uw=(()=>{class t extends Hl{getTranslation(e){return de({})}}return t.\u0275fac=function(){let s;return function(n){return(s||(s=Ie(t)))(n||t)}}(),t.\u0275prov=ae({token:t,factory:t.\u0275fac}),t})();class Og{}let jw=(()=>{class t{handle(e){return e.key}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ae({token:t,factory:t.\u0275fac}),t})();function Gl(t,s){if(t===s)return!0;if(null===t||null===s)return!1;if(t!=t&&s!=s)return!0;let i,o,r,e=typeof t;if(e==typeof s&&"object"==e){if(!Array.isArray(t)){if(Array.isArray(s))return!1;for(o in r=Object.create(null),t){if(!Gl(t[o],s[o]))return!1;r[o]=!0}for(o in s)if(!(o in r)&&typeof s[o]<"u")return!1;return!0}if(!Array.isArray(s))return!1;if((i=t.length)==s.length){for(o=0;o{Ag(s[n])?n in t?e[n]=$w(t[n],s[n]):Object.assign(e,{[n]:s[n]}):Object.assign(e,{[n]:s[n]})}),e}class Nd{}let Ww=(()=>{class t extends Nd{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,n){let i;return i="string"==typeof e?this.interpolateString(e,n):"function"==typeof e?this.interpolateFunction(e,n):e,i}getValue(e,n){let i="string"==typeof n?n.split("."):[n];n="";do{n+=i.shift(),!vi(e)||!vi(e[n])||"object"!=typeof e[n]&&i.length?i.length?n+=".":e=void 0:(e=e[n],n="")}while(i.length);return e}interpolateFunction(e,n){return e(n)}interpolateString(e,n){return n?e.replace(this.templateMatcher,(i,o)=>{let r=this.getValue(n,o);return vi(r)?r:i}):e}}return t.\u0275fac=function(){let s;return function(n){return(s||(s=Ie(t)))(n||t)}}(),t.\u0275prov=ae({token:t,factory:t.\u0275fac}),t})();class Vd{}let Kw=(()=>{class t extends Vd{compile(e,n){return e}compileTranslations(e,n){return e}}return t.\u0275fac=function(){let s;return function(n){return(s||(s=Ie(t)))(n||t)}}(),t.\u0275prov=ae({token:t,factory:t.\u0275fac}),t})();class Qw{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new q,this.onLangChange=new q,this.onDefaultLangChange=new q}}const Pg=new le("USE_STORE"),Fg=new le("USE_DEFAULT_LANG"),Ng=new le("DEFAULT_LANGUAGE"),Vg=new le("USE_EXTEND");let De=(()=>{class t{constructor(e,n,i,o,r,u=!0,h=!1,b=!1,T){this.store=e,this.currentLoader=n,this.compiler=i,this.parser=o,this.missingTranslationHandler=r,this.useDefaultLang=u,this.isolate=h,this.extend=b,this.pending=!1,this._onTranslationChange=new q,this._onLangChange=new q,this._onDefaultLangChange=new q,this._langs=[],this._translations={},this._translationRequests={},T&&this.setDefaultLang(T)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let n=this.retrieveTranslations(e);typeof n<"u"?(null==this.defaultLang&&(this.defaultLang=e),n.pipe(Fi(1)).subscribe(i=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return de(this.translations[e]);let n=this.retrieveTranslations(e);return typeof n<"u"?(this.currentLang||(this.currentLang=e),n.pipe(Fi(1)).subscribe(i=>{this.changeLang(e)}),n):(this.changeLang(e),de(this.translations[e]))}retrieveTranslations(e){let n;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),n=this._translationRequests[e]),n}getTranslation(e){this.pending=!0;const n=this.currentLoader.getTranslation(e).pipe(zw(1),Fi(1));return this.loadingTranslations=n.pipe(lt(i=>this.compiler.compileTranslations(i,e)),zw(1),Fi(1)),this.loadingTranslations.subscribe({next:i=>{this.translations[e]=this.extend&&this.translations[e]?{...i,...this.translations[e]}:i,this.updateLangs(),this.pending=!1},error:i=>{this.pending=!1}}),n}setTranslation(e,n,i=!1){n=this.compiler.compileTranslations(n,e),this.translations[e]=(i||this.extend)&&this.translations[e]?$w(this.translations[e],n):n,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(n=>{-1===this.langs.indexOf(n)&&this.langs.push(n)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,n,i){let o;if(n instanceof Array){let r={},u=!1;for(let h of n)r[h]=this.getParsedResult(e,h,i),Hs(r[h])&&(u=!0);return u?qw(n.map(b=>Hs(r[b])?r[b]:de(r[b]))).pipe(lt(b=>{let T={};return b.forEach((w,k)=>{T[n[k]]=w}),T})):r}if(e&&(o=this.parser.interpolate(this.parser.getValue(e,n),i)),typeof o>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(o=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],n),i)),typeof o>"u"){let r={key:n,translateService:this};typeof i<"u"&&(r.interpolateParams=i),o=this.missingTranslationHandler.handle(r)}return typeof o<"u"?o:n}get(e,n){if(!vi(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(qo(i=>Hs(i=this.getParsedResult(i,e,n))?i:de(i)));{let i=this.getParsedResult(this.translations[this.currentLang],e,n);return Hs(i)?i:de(i)}}getStreamOnTranslationChange(e,n){if(!vi(e)||!e.length)throw new Error('Parameter "key" required');return la(Fd(()=>this.get(e,n)),this.onTranslationChange.pipe(ui(i=>{const o=this.getParsedResult(i.translations,e,n);return"function"==typeof o.subscribe?o:de(o)})))}stream(e,n){if(!vi(e)||!e.length)throw new Error('Parameter "key" required');return la(Fd(()=>this.get(e,n)),this.onLangChange.pipe(ui(i=>{const o=this.getParsedResult(i.translations,e,n);return Hs(o)?o:de(o)})))}instant(e,n){if(!vi(e)||!e.length)throw new Error('Parameter "key" required');let i=this.getParsedResult(this.translations[this.currentLang],e,n);if(Hs(i)){if(e instanceof Array){let o={};return e.forEach((r,u)=>{o[e[u]]=e[u]}),o}return e}return i}set(e,n,i=this.currentLang){this.translations[i][e]=this.compiler.compile(n,i),this.updateLangs(),this.onTranslationChange.emit({lang:i,translations:this.translations[i]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return t.\u0275fac=function(e){return new(e||t)(ie(Qw),ie(Hl),ie(Vd),ie(Nd),ie(Og),ie(Fg),ie(Pg),ie(Vg),ie(Ng))},t.\u0275prov=ae({token:t,factory:t.\u0275fac}),t})(),Bd=(()=>{class t{constructor(e,n,i){this.translateService=e,this.element=n,this._ref=i,this.onTranslationChangeSub||(this.onTranslationChangeSub=this.translateService.onTranslationChange.subscribe(o=>{o.lang===this.translateService.currentLang&&this.checkNodes(!0,o.translations)})),this.onLangChangeSub||(this.onLangChangeSub=this.translateService.onLangChange.subscribe(o=>{this.checkNodes(!0,o.translations)})),this.onDefaultLangChangeSub||(this.onDefaultLangChangeSub=this.translateService.onDefaultLangChange.subscribe(o=>{this.checkNodes(!0)}))}set translate(e){e&&(this.key=e,this.checkNodes())}set translateParams(e){Gl(this.currentParams,e)||(this.currentParams=e,this.checkNodes(!0))}ngAfterViewChecked(){this.checkNodes()}checkNodes(e=!1,n){let i=this.element.nativeElement.childNodes;i.length||(this.setContent(this.element.nativeElement,this.key),i=this.element.nativeElement.childNodes);for(let o=0;o{r!==e&&(n.lastKey=e),n.originalContent||(n.originalContent=this.getContent(n)),n.currentValue=vi(r)?r:n.originalContent||e,this.setContent(n,this.key?n.currentValue:n.originalContent.replace(e,n.currentValue)),this._ref.markForCheck()};if(vi(i)){let r=this.translateService.getParsedResult(i,e,this.currentParams);Hs(r)?r.subscribe({next:o}):o(r)}else this.translateService.get(e,this.currentParams).subscribe(o)}}getContent(e){return vi(e.textContent)?e.textContent:e.data}setContent(e,n){vi(e.textContent)?e.textContent=n:e.data=n}ngOnDestroy(){this.onLangChangeSub&&this.onLangChangeSub.unsubscribe(),this.onDefaultLangChangeSub&&this.onDefaultLangChangeSub.unsubscribe(),this.onTranslationChangeSub&&this.onTranslationChangeSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(M(De),M(He),M(at))},t.\u0275dir=fe({type:t,selectors:[["","translate",""],["","ngx-translate",""]],inputs:{translate:"translate",translateParams:"translateParams"}}),t})(),ue=(()=>{class t{constructor(e,n){this.translate=e,this._ref=n,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,n,i){let o=r=>{this.value=void 0!==r?r:e,this.lastKey=e,this._ref.markForCheck()};if(i){let r=this.translate.getParsedResult(i,e,n);Hs(r.subscribe)?r.subscribe(o):o(r)}this.translate.get(e,n).subscribe(o)}transform(e,...n){if(!e||!e.length)return e;if(Gl(e,this.lastKey)&&Gl(n,this.lastParams))return this.value;let i;if(vi(n[0])&&n.length)if("string"==typeof n[0]&&n[0].length){let o=n[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{i=JSON.parse(o)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${n[0]}`)}}else"object"==typeof n[0]&&!Array.isArray(n[0])&&(i=n[0]);return this.lastKey=e,this.lastParams=n,this.updateValue(e,i),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(o=>{this.lastKey&&o.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,i,o.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(o=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,i,o.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,i))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return t.\u0275fac=function(e){return new(e||t)(M(De,16),M(at,16))},t.\u0275pipe=On({name:"translate",type:t,pure:!1}),t.\u0275prov=ae({token:t,factory:t.\u0275fac}),t})(),iP=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:Hl,useClass:Uw},e.compiler||{provide:Vd,useClass:Kw},e.parser||{provide:Nd,useClass:Ww},e.missingTranslationHandler||{provide:Og,useClass:jw},Qw,{provide:Pg,useValue:e.isolate},{provide:Fg,useValue:e.useDefaultLang},{provide:Vg,useValue:e.extend},{provide:Ng,useValue:e.defaultLanguage},De]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:Hl,useClass:Uw},e.compiler||{provide:Vd,useClass:Kw},e.parser||{provide:Nd,useClass:Ww},e.missingTranslationHandler||{provide:Og,useClass:jw},{provide:Pg,useValue:e.isolate},{provide:Fg,useValue:e.useDefaultLang},{provide:Vg,useValue:e.extend},{provide:Ng,useValue:e.defaultLanguage},De]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ge({type:t}),t.\u0275inj=me({}),t})();class sP{constructor(s,e="/assets/i18n/",n=".json"){this.http=s,this.prefix=e,this.suffix=n}getTranslation(s){return this.http.get(`${this.prefix}${s}${this.suffix}`)}}let Jw=(()=>{class t{constructor(e,n){this._renderer=e,this._elementRef=n,this.onChange=i=>{},this.onTouched=()=>{}}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static#e=this.\u0275fac=function(n){return new(n||t)(M(Ht),M(He))};static#t=this.\u0275dir=fe({type:t})}return t})(),Uo=(()=>{class t extends Jw{static#e=this.\u0275fac=function(){let e;return function(i){return(e||(e=Ie(t)))(i||t)}}();static#t=this.\u0275dir=fe({type:t,features:[_e]})}return t})();const dn=new le("NgValueAccessor"),rP={provide:dn,useExisting:Ze(()=>Xe),multi:!0},lP=new le("CompositionEventMode");let Xe=(()=>{class t extends Jw{constructor(e,n,i){super(e,n),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function aP(){const t=so()?so().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(n){return new(n||t)(M(Ht),M(He),M(lP,8))};static#t=this.\u0275dir=fe({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(n,i){1&n&&v("input",function(r){return i._handleInput(r.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(r){return i._compositionEnd(r.target.value)})},features:[Qe([rP]),_e]})}return t})();function ao(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}const Bn=new le("NgValidators"),lo=new le("NgAsyncValidators");function t3(t){return ao(t.value)?{required:!0}:null}function Hd(t){return null}function l3(t){return null!=t}function c3(t){return bl(t)?hn(t):t}function u3(t){let s={};return t.forEach(e=>{s=null!=e?{...s,...e}:s}),0===Object.keys(s).length?null:s}function d3(t,s){return s.map(e=>e(t))}function p3(t){return t.map(s=>function uP(t){return!t.validate}(s)?s:e=>s.validate(e))}function Bg(t){return null!=t?function h3(t){if(!t)return null;const s=t.filter(l3);return 0==s.length?null:function(e){return u3(d3(e,s))}}(p3(t)):null}function Hg(t){return null!=t?function m3(t){if(!t)return null;const s=t.filter(l3);return 0==s.length?null:function(e){return qw(d3(e,s).map(c3)).pipe(lt(u3))}}(p3(t)):null}function f3(t,s){return null===t?[s]:Array.isArray(t)?[...t,s]:[t,s]}function Gg(t){return t?Array.isArray(t)?t:[t]:[]}function Gd(t,s){return Array.isArray(t)?t.includes(s):t===s}function b3(t,s){const e=Gg(s);return Gg(t).forEach(i=>{Gd(e,i)||e.push(i)}),e}function v3(t,s){return Gg(s).filter(e=>!Gd(t,e))}class C3{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(s){this._rawValidators=s||[],this._composedValidatorFn=Bg(this._rawValidators)}_setAsyncValidators(s){this._rawAsyncValidators=s||[],this._composedAsyncValidatorFn=Hg(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(s){this._onDestroyCallbacks.push(s)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(s=>s()),this._onDestroyCallbacks=[]}reset(s=void 0){this.control&&this.control.reset(s)}hasError(s,e){return!!this.control&&this.control.hasError(s,e)}getError(s,e){return this.control?this.control.getError(s,e):null}}class ei extends C3{get formDirective(){return null}get path(){return null}}class Zi extends C3{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class y3{constructor(s){this._cd=s}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 Te=(()=>{class t extends y3{constructor(e){super(e)}static#e=this.\u0275fac=function(n){return new(n||t)(M(Zi,2))};static#t=this.\u0275dir=fe({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,i){2&n&&Jn("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[_e]})}return t})(),Fe=(()=>{class t extends y3{constructor(e){super(e)}static#e=this.\u0275fac=function(n){return new(n||t)(M(ei,10))};static#t=this.\u0275dir=fe({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,i){2&n&&Jn("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[_e]})}return t})();const ql="VALID",zd="INVALID",ca="PENDING",zl="DISABLED";function Ug(t){return(Ud(t)?t.validators:t)||null}function jg(t,s){return(Ud(s)?s.asyncValidators:t)||null}function Ud(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class $g{constructor(s,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(s),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(s){this._rawValidators=this._composedValidatorFn=s}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(s){this._rawAsyncValidators=this._composedAsyncValidatorFn=s}get parent(){return this._parent}get valid(){return this.status===ql}get invalid(){return this.status===zd}get pending(){return this.status==ca}get disabled(){return this.status===zl}get enabled(){return this.status!==zl}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(s){this._assignValidators(s)}setAsyncValidators(s){this._assignAsyncValidators(s)}addValidators(s){this.setValidators(b3(s,this._rawValidators))}addAsyncValidators(s){this.setAsyncValidators(b3(s,this._rawAsyncValidators))}removeValidators(s){this.setValidators(v3(s,this._rawValidators))}removeAsyncValidators(s){this.setAsyncValidators(v3(s,this._rawAsyncValidators))}hasValidator(s){return Gd(this._rawValidators,s)}hasAsyncValidator(s){return Gd(this._rawAsyncValidators,s)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(s={}){this.touched=!0,this._parent&&!s.onlySelf&&this._parent.markAsTouched(s)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(s=>s.markAllAsTouched())}markAsUntouched(s={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!s.onlySelf&&this._parent._updateTouched(s)}markAsDirty(s={}){this.pristine=!1,this._parent&&!s.onlySelf&&this._parent.markAsDirty(s)}markAsPristine(s={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!s.onlySelf&&this._parent._updatePristine(s)}markAsPending(s={}){this.status=ca,!1!==s.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!s.onlySelf&&this._parent.markAsPending(s)}disable(s={}){const e=this._parentMarkedDirty(s.onlySelf);this.status=zl,this.errors=null,this._forEachChild(n=>{n.disable({...s,onlySelf:!0})}),this._updateValue(),!1!==s.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...s,skipPristineCheck:e}),this._onDisabledChange.forEach(n=>n(!0))}enable(s={}){const e=this._parentMarkedDirty(s.onlySelf);this.status=ql,this._forEachChild(n=>{n.enable({...s,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:s.emitEvent}),this._updateAncestors({...s,skipPristineCheck:e}),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(s){this._parent&&!s.onlySelf&&(this._parent.updateValueAndValidity(s),s.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(s){this._parent=s}getRawValue(){return this.value}updateValueAndValidity(s={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ql||this.status===ca)&&this._runAsyncValidator(s.emitEvent)),!1!==s.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!s.onlySelf&&this._parent.updateValueAndValidity(s)}_updateTreeValidity(s={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(s)),this.updateValueAndValidity({onlySelf:!0,emitEvent:s.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?zl:ql}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(s){if(this.asyncValidator){this.status=ca,this._hasOwnPendingAsyncValidator=!0;const e=c3(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:s})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(s,e={}){this.errors=s,this._updateControlsErrors(!1!==e.emitEvent)}get(s){let e=s;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((n,i)=>n&&n._find(i),this)}getError(s,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[s]:null}hasError(s,e){return!!this.getError(s,e)}get root(){let s=this;for(;s._parent;)s=s._parent;return s}_updateControlsErrors(s){this.status=this._calculateStatus(),s&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(s)}_initObservables(){this.valueChanges=new q,this.statusChanges=new q}_calculateStatus(){return this._allControlsDisabled()?zl:this.errors?zd:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ca)?ca:this._anyControlsHaveStatus(zd)?zd:ql}_anyControlsHaveStatus(s){return this._anyControls(e=>e.status===s)}_anyControlsDirty(){return this._anyControls(s=>s.dirty)}_anyControlsTouched(){return this._anyControls(s=>s.touched)}_updatePristine(s={}){this.pristine=!this._anyControlsDirty(),this._parent&&!s.onlySelf&&this._parent._updatePristine(s)}_updateTouched(s={}){this.touched=this._anyControlsTouched(),this._parent&&!s.onlySelf&&this._parent._updateTouched(s)}_registerOnCollectionChange(s){this._onCollectionChange=s}_setUpdateStrategy(s){Ud(s)&&null!=s.updateOn&&(this._updateOn=s.updateOn)}_parentMarkedDirty(s){return!s&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(s){return null}_assignValidators(s){this._rawValidators=Array.isArray(s)?s.slice():s,this._composedValidatorFn=function mP(t){return Array.isArray(t)?Bg(t):t||null}(this._rawValidators)}_assignAsyncValidators(s){this._rawAsyncValidators=Array.isArray(s)?s.slice():s,this._composedAsyncValidatorFn=function fP(t){return Array.isArray(t)?Hg(t):t||null}(this._rawAsyncValidators)}}class Wg extends $g{constructor(s,e,n){super(Ug(e),jg(n,e)),this.controls=s,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(s,e){return this.controls[s]?this.controls[s]:(this.controls[s]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(s,e,n={}){this.registerControl(s,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(s,e={}){this.controls[s]&&this.controls[s]._registerOnCollectionChange(()=>{}),delete this.controls[s],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(s,e,n={}){this.controls[s]&&this.controls[s]._registerOnCollectionChange(()=>{}),delete this.controls[s],e&&this.registerControl(s,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(s){return this.controls.hasOwnProperty(s)&&this.controls[s].enabled}setValue(s,e={}){(function S3(t,s,e){t._forEachChild((n,i)=>{if(void 0===e[i])throw new $(1002,"")})})(this,0,s),Object.keys(s).forEach(n=>{(function w3(t,s,e){const n=t.controls;if(!(s?Object.keys(n):n).length)throw new $(1e3,"");if(!n[e])throw new $(1001,"")})(this,!0,n),this.controls[n].setValue(s[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(s,e={}){null!=s&&(Object.keys(s).forEach(n=>{const i=this.controls[n];i&&i.patchValue(s[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(s={},e={}){this._forEachChild((n,i)=>{n.reset(s?s[i]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(s,e,n)=>(s[n]=e.getRawValue(),s))}_syncPendingControls(){let s=this._reduceChildren(!1,(e,n)=>!!n._syncPendingControls()||e);return s&&this.updateValueAndValidity({onlySelf:!0}),s}_forEachChild(s){Object.keys(this.controls).forEach(e=>{const n=this.controls[e];n&&s(n,e)})}_setUpControls(){this._forEachChild(s=>{s.setParent(this),s._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(s){for(const[e,n]of Object.entries(this.controls))if(this.contains(e)&&s(n))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,n,i)=>((n.enabled||this.disabled)&&(e[i]=n.value),e))}_reduceChildren(s,e){let n=s;return this._forEachChild((i,o)=>{n=e(n,i,o)}),n}_allControlsDisabled(){for(const s of Object.keys(this.controls))if(this.controls[s].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(s){return this.controls.hasOwnProperty(s)?this.controls[s]:null}}const jo=new le("CallSetDisabledState",{providedIn:"root",factory:()=>Ul}),Ul="always";function jl(t,s,e=Ul){Kg(t,s),s.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&s.valueAccessor.setDisabledState?.(t.disabled),function bP(t,s){s.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&I3(t,s)})}(t,s),function CP(t,s){const e=(n,i)=>{s.valueAccessor.writeValue(n),i&&s.viewToModelUpdate(n)};t.registerOnChange(e),s._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,s),function vP(t,s){s.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&I3(t,s),"submit"!==t.updateOn&&t.markAsTouched()})}(t,s),function _P(t,s){if(s.valueAccessor.setDisabledState){const e=n=>{s.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),s._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,s)}function Wd(t,s){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(s)})}function Kg(t,s){const e=function g3(t){return t._rawValidators}(t);null!==s.validator?t.setValidators(f3(e,s.validator)):"function"==typeof e&&t.setValidators([e]);const n=function _3(t){return t._rawAsyncValidators}(t);null!==s.asyncValidator?t.setAsyncValidators(f3(n,s.asyncValidator)):"function"==typeof n&&t.setAsyncValidators([n]);const i=()=>t.updateValueAndValidity();Wd(s._rawValidators,i),Wd(s._rawAsyncValidators,i)}function I3(t,s){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),s.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}const IP={provide:ei,useExisting:Ze(()=>Re)},$l=(()=>Promise.resolve())();let Re=(()=>{class t extends ei{constructor(e,n,i){super(),this.callSetDisabledState=i,this.submitted=!1,this._directives=new Set,this.ngSubmit=new q,this.form=new Wg({},Bg(e),Hg(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){$l.then(()=>{const n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),jl(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){$l.then(()=>{const n=this._findContainer(e.path);n&&n.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){$l.then(()=>{const n=this._findContainer(e.path),i=new Wg({});(function x3(t,s){Kg(t,s)})(i,e),n.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){$l.then(()=>{const n=this._findContainer(e.path);n&&n.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){$l.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,function D3(t,s){t._syncPendingControls(),s.forEach(e=>{const n=e.control;"submit"===n.updateOn&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static#e=this.\u0275fac=function(n){return new(n||t)(M(Bn,10),M(lo,10),M(jo,8))};static#t=this.\u0275dir=fe({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,i){1&n&&v("submit",function(r){return i.onSubmit(r)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Qe([IP]),_e]})}return t})();function M3(t,s){const e=t.indexOf(s);e>-1&&t.splice(e,1)}function k3(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const E3=class extends $g{constructor(s=null,e,n){super(Ug(e),jg(n,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(s),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Ud(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=k3(s)?s.value:s)}setValue(s,e={}){this.value=this._pendingValue=s,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(n=>n(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(s,e={}){this.setValue(s,e)}reset(s=this.defaultValue,e={}){this._applyFormState(s),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(s){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(s){this._onChange.push(s)}_unregisterOnChange(s){M3(this._onChange,s)}registerOnDisabledChange(s){this._onDisabledChange.push(s)}_unregisterOnDisabledChange(s){M3(this._onDisabledChange,s)}_forEachChild(s){}_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(s){k3(s)?(this.value=this._pendingValue=s.value,s.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=s}},MP={provide:Zi,useExisting:Ze(()=>ve)},O3=(()=>Promise.resolve())();let ve=(()=>{class t extends Zi{constructor(e,n,i,o,r,u){super(),this._changeDetectorRef=r,this.callSetDisabledState=u,this.control=new E3,this._registered=!1,this.name="",this.update=new q,this._parent=e,this._setValidators(n),this._setAsyncValidators(i),this.valueAccessor=function Zg(t,s){if(!s)return null;let e,n,i;return Array.isArray(s),s.forEach(o=>{o.constructor===Xe?e=o:function wP(t){return Object.getPrototypeOf(t.constructor)===Uo}(o)?n=o:i=o}),i||n||e||null}(0,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),function Jg(t,s){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(s,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(){jl(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){O3.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const n=e.isDisabled.currentValue,i=0!==n&&sa(n);O3.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function jd(t,s){return[...s.path,t]}(e,this._parent):[e]}static#e=this.\u0275fac=function(n){return new(n||t)(M(ei,9),M(Bn,10),M(lo,10),M(dn,10),M(at,8),M(jo,8))};static#t=this.\u0275dir=fe({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:[Qe([MP]),_e,wn]})}return t})(),Ne=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275dir=fe({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return t})();const kP={provide:dn,useExisting:Ze(()=>Qd),multi:!0};let Qd=(()=>{class t extends Uo{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=n=>{e(""==n?null:parseFloat(n))}}static#e=this.\u0275fac=function(){let e;return function(i){return(e||(e=Ie(t)))(i||t)}}();static#t=this.\u0275dir=fe({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,i){1&n&&v("input",function(r){return i.onChange(r.target.value)})("blur",function(){return i.onTouched()})},features:[Qe([kP]),_e]})}return t})(),A3=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=ge({type:t});static#n=this.\u0275inj=me({})}return t})();const Yg=new le("NgModelWithFormControlWarning");function z3(t){return"number"==typeof t?t:parseFloat(t)}let $o=(()=>{class t{constructor(){this._validator=Hd}ngOnChanges(e){if(this.inputName in e){const n=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):Hd,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275dir=fe({type:t,features:[wn]})}return t})();const UP={provide:Bn,useExisting:Ze(()=>Jd),multi:!0};let Jd=(()=>{class t extends $o{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=e=>z3(e),this.createValidator=e=>function e3(t){return s=>{if(ao(s.value)||ao(t))return null;const e=parseFloat(s.value);return!isNaN(e)&&e>t?{max:{max:t,actual:s.value}}:null}}(e)}static#e=this.\u0275fac=function(){let e;return function(i){return(e||(e=Ie(t)))(i||t)}}();static#t=this.\u0275dir=fe({type:t,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(n,i){2&n&&F("max",i._enabled?i.max:null)},inputs:{max:"max"},features:[Qe([UP]),_e]})}return t})();const jP={provide:Bn,useExisting:Ze(()=>Zd),multi:!0};let Zd=(()=>{class t extends $o{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>z3(e),this.createValidator=e=>function Xw(t){return s=>{if(ao(s.value)||ao(t))return null;const e=parseFloat(s.value);return!isNaN(e)&&eWl),multi:!0};let Wl=(()=>{class t extends $o{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=sa,this.createValidator=e=>t3}enabled(e){return e}static#e=this.\u0275fac=function(){let e;return function(i){return(e||(e=Ie(t)))(i||t)}}();static#t=this.\u0275dir=fe({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(n,i){2&n&&F("required",i._enabled?"":null)},inputs:{required:"required"},features:[Qe([$P]),_e]})}return t})();const JP={provide:Bn,useExisting:Ze(()=>Sn),multi:!0};let Sn=(()=>{class t extends $o{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=e=>function q3(t){return"number"==typeof t?t:parseInt(t,10)}(e),this.createValidator=e=>function r3(t){return s=>function Yw(t){return null!=t&&"number"==typeof t.length}(s.value)&&s.value.length>t?{maxlength:{requiredLength:t,actualLength:s.value.length}}:null}(e)}static#e=this.\u0275fac=function(){let e;return function(i){return(e||(e=Ie(t)))(i||t)}}();static#t=this.\u0275dir=fe({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(n,i){2&n&&F("maxlength",i._enabled?i.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Qe([JP]),_e]})}return t})(),K3=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=ge({type:t});static#n=this.\u0275inj=me({imports:[A3]})}return t})(),Yd=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:jo,useValue:e.callSetDisabledState??Ul}]}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=ge({type:t});static#n=this.\u0275inj=me({imports:[K3]})}return t})(),XP=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Yg,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:jo,useValue:e.callSetDisabledState??Ul}]}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=ge({type:t});static#n=this.\u0275inj=me({imports:[K3]})}return t})();class Q3{}class eF{}const Gs="*";function Yi(t,s){return{type:7,name:t,definitions:s,options:{}}}function jt(t,s=null){return{type:4,styles:s,timings:t}}function J3(t,s=null){return{type:2,steps:t,options:s}}function Tt(t){return{type:6,styles:t,offset:null}}function qs(t,s,e){return{type:0,name:t,styles:s,options:e}}function Xt(t,s,e=null){return{type:1,expr:t,animation:s,options:e}}function ua(t,s=null){return{type:8,animation:t,options:s}}function tF(t=null){return{type:9,options:t}}function Xd(t,s=null){return{type:10,animation:t,options:s}}function nF(t,s,e=null){return{type:11,selector:t,animation:s,options:e}}class Kl{constructor(s=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=s+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(s=>s()),this._onDoneFns=[])}onStart(s){this._originalOnStartFns.push(s),this._onStartFns.push(s)}onDone(s){this._originalOnDoneFns.push(s),this._onDoneFns.push(s)}onDestroy(s){this._onDestroyFns.push(s)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(s=>s()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(s=>s()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(s){this._position=this.totalTime?s*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(s){const e="start"==s?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class Z3{constructor(s){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=s;let e=0,n=0,i=0;const o=this.players.length;0==o?queueMicrotask(()=>this._onFinish()):this.players.forEach(r=>{r.onDone(()=>{++e==o&&this._onFinish()}),r.onDestroy(()=>{++n==o&&this._onDestroy()}),r.onStart(()=>{++i==o&&this._onStart()})}),this.totalTime=this.players.reduce((r,u)=>Math.max(r,u.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(s=>s()),this._onDoneFns=[])}init(){this.players.forEach(s=>s.init())}onStart(s){this._onStartFns.push(s)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(s=>s()),this._onStartFns=[])}onDone(s){this._onDoneFns.push(s)}onDestroy(s){this._onDestroyFns.push(s)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(s=>s.play())}pause(){this.players.forEach(s=>s.pause())}restart(){this.players.forEach(s=>s.restart())}finish(){this._onFinish(),this.players.forEach(s=>s.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(s=>s.destroy()),this._onDestroyFns.forEach(s=>s()),this._onDestroyFns=[])}reset(){this.players.forEach(s=>s.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(s){const e=s*this.totalTime;this.players.forEach(n=>{const i=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(i)})}getPosition(){const s=this.players.reduce((e,n)=>null===e||n.totalTime>e.totalTime?n:e,null);return null!=s?s.getPosition():0}beforeDestroy(){this.players.forEach(s=>{s.beforeDestroy&&s.beforeDestroy()})}triggerCallback(s){const e="start"==s?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}function Y3(t){return new $(3e3,!1)}function co(t){switch(t.length){case 0:return new Kl;case 1:return t[0];default:return new Z3(t)}}function X3(t,s,e=new Map,n=new Map){const i=[],o=[];let r=-1,u=null;if(s.forEach(h=>{const b=h.get("offset"),T=b==r,w=T&&u||new Map;h.forEach((k,L)=>{let O=L,A=k;if("offset"!==L)switch(O=t.normalizePropertyName(O,i),A){case"!":A=e.get(L);break;case Gs:A=n.get(L);break;default:A=t.normalizeStyleValue(L,O,A,i)}w.set(O,A)}),T||o.push(w),u=w,r=b}),i.length)throw function IF(t){return new $(3502,!1)}();return o}function o_(t,s,e,n){switch(s){case"start":t.onStart(()=>n(e&&r_(e,"start",t)));break;case"done":t.onDone(()=>n(e&&r_(e,"done",t)));break;case"destroy":t.onDestroy(()=>n(e&&r_(e,"destroy",t)))}}function r_(t,s,e){const o=a_(t.element,t.triggerName,t.fromState,t.toState,s||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),r=t._data;return null!=r&&(o._data=r),o}function a_(t,s,e,n,i="",o=0,r){return{element:t,triggerName:s,fromState:e,toState:n,phaseName:i,totalTime:o,disabled:!!r}}function Ci(t,s,e){let n=t.get(s);return n||t.set(s,n=e),n}function eS(t){const s=t.indexOf(":");return[t.substring(1,s),t.slice(s+1)]}const NF=(()=>typeof document>"u"?null:document.documentElement)();function l_(t){const s=t.parentNode||t.host||null;return s===NF?null:s}let Wo=null,tS=!1;function nS(t,s){for(;s;){if(s===t)return!0;s=l_(s)}return!1}function iS(t,s,e){if(e)return Array.from(t.querySelectorAll(s));const n=t.querySelector(s);return n?[n]:[]}let sS=(()=>{class t{validateStyleProperty(e){return function BF(t){Wo||(Wo=function HF(){return typeof document<"u"?document.body:null}()||{},tS=!!Wo.style&&"WebkitAppearance"in Wo.style);let s=!0;return Wo.style&&!function VF(t){return"ebkit"==t.substring(1,6)}(t)&&(s=t in Wo.style,!s&&tS&&(s="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Wo.style)),s}(e)}matchesElement(e,n){return!1}containsElement(e,n){return nS(e,n)}getParentElement(e){return l_(e)}query(e,n,i){return iS(e,n,i)}computeStyle(e,n,i){return i||""}animate(e,n,i,o,r,u=[],h){return new Kl(i,o)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=ae({token:t,factory:t.\u0275fac})}return t})(),c_=(()=>{class t{static#e=this.NOOP=new sS}return t})();const GF=1e3,u_="ng-enter",ep="ng-leave",tp="ng-trigger",np=".ng-trigger",rS="ng-animating",d_=".ng-animating";function zs(t){if("number"==typeof t)return t;const s=t.match(/^(-?[\.\d]+)(m?s)/);return!s||s.length<2?0:p_(parseFloat(s[1]),s[2])}function p_(t,s){return"s"===s?t*GF:t}function ip(t,s,e){return t.hasOwnProperty("duration")?t:function zF(t,s,e){let i,o=0,r="";if("string"==typeof t){const u=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===u)return s.push(Y3()),{duration:0,delay:0,easing:""};i=p_(parseFloat(u[1]),u[2]);const h=u[3];null!=h&&(o=p_(parseFloat(h),u[4]));const b=u[5];b&&(r=b)}else i=t;if(!e){let u=!1,h=s.length;i<0&&(s.push(function iF(){return new $(3100,!1)}()),u=!0),o<0&&(s.push(function sF(){return new $(3101,!1)}()),u=!0),u&&s.splice(h,0,Y3())}return{duration:i,delay:o,easing:r}}(t,s,e)}function Ql(t,s={}){return Object.keys(t).forEach(e=>{s[e]=t[e]}),s}function aS(t){const s=new Map;return Object.keys(t).forEach(e=>{s.set(e,t[e])}),s}function uo(t,s=new Map,e){if(e)for(let[n,i]of e)s.set(n,i);for(let[n,i]of t)s.set(n,i);return s}function _s(t,s,e){s.forEach((n,i)=>{const o=m_(i);e&&!e.has(i)&&e.set(i,t.style[o]),t.style[o]=n})}function Ko(t,s){s.forEach((e,n)=>{const i=m_(n);t.style[i]=""})}function Jl(t){return Array.isArray(t)?1==t.length?t[0]:J3(t):t}const h_=new RegExp("{{\\s*(.+?)\\s*}}","g");function cS(t){let s=[];if("string"==typeof t){let e;for(;e=h_.exec(t);)s.push(e[1]);h_.lastIndex=0}return s}function Zl(t,s,e){const n=t.toString(),i=n.replace(h_,(o,r)=>{let u=s[r];return null==u&&(e.push(function rF(t){return new $(3003,!1)}()),u=""),u.toString()});return i==n?t:i}function sp(t){const s=[];let e=t.next();for(;!e.done;)s.push(e.value),e=t.next();return s}const $F=/-+([a-z0-9])/g;function m_(t){return t.replace($F,(...s)=>s[1].toUpperCase())}function yi(t,s,e){switch(s.type){case 7:return t.visitTrigger(s,e);case 0:return t.visitState(s,e);case 1:return t.visitTransition(s,e);case 2:return t.visitSequence(s,e);case 3:return t.visitGroup(s,e);case 4:return t.visitAnimate(s,e);case 5:return t.visitKeyframes(s,e);case 6:return t.visitStyle(s,e);case 8:return t.visitReference(s,e);case 9:return t.visitAnimateChild(s,e);case 10:return t.visitAnimateRef(s,e);case 11:return t.visitQuery(s,e);case 12:return t.visitStagger(s,e);default:throw function aF(t){return new $(3004,!1)}()}}function uS(t,s){return window.getComputedStyle(t)[s]}const op="*";function QF(t,s){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(n=>function JF(t,s,e){if(":"==t[0]){const h=function ZF(t,s){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,n)=>parseFloat(n)>parseFloat(e);case":decrement":return(e,n)=>parseFloat(n) *"}}(t,e);if("function"==typeof h)return void s.push(h);t=h}const n=t.match(/^(\*|[-\w]+)\s*([=-]>)\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return e.push(function CF(t){return new $(3015,!1)}()),s;const i=n[1],o=n[2],r=n[3];s.push(dS(i,r));"<"==o[0]&&!(i==op&&r==op)&&s.push(dS(r,i))}(n,e,s)):e.push(t),e}const rp=new Set(["true","1"]),ap=new Set(["false","0"]);function dS(t,s){const e=rp.has(t)||ap.has(t),n=rp.has(s)||ap.has(s);return(i,o)=>{let r=t==op||t==i,u=s==op||s==o;return!r&&e&&"boolean"==typeof i&&(r=i?rp.has(t):ap.has(t)),!u&&n&&"boolean"==typeof o&&(u=o?rp.has(s):ap.has(s)),r&&u}}const YF=new RegExp("s*:selfs*,?","g");function f_(t,s,e,n){return new XF(t).build(s,e,n)}class XF{constructor(s){this._driver=s}build(s,e,n){const i=new nN(e);return this._resetContextStyleTimingState(i),yi(this,Jl(s),i)}_resetContextStyleTimingState(s){s.currentQuerySelector="",s.collectedStyles=new Map,s.collectedStyles.set("",new Map),s.currentTime=0}visitTrigger(s,e){let n=e.queryCount=0,i=e.depCount=0;const o=[],r=[];return"@"==s.name.charAt(0)&&e.errors.push(function cF(){return new $(3006,!1)}()),s.definitions.forEach(u=>{if(this._resetContextStyleTimingState(e),0==u.type){const h=u,b=h.name;b.toString().split(/\s*,\s*/).forEach(T=>{h.name=T,o.push(this.visitState(h,e))}),h.name=b}else if(1==u.type){const h=this.visitTransition(u,e);n+=h.queryCount,i+=h.depCount,r.push(h)}else e.errors.push(function uF(){return new $(3007,!1)}())}),{type:7,name:s.name,states:o,transitions:r,queryCount:n,depCount:i,options:null}}visitState(s,e){const n=this.visitStyle(s.styles,e),i=s.options&&s.options.params||null;if(n.containsDynamicStyles){const o=new Set,r=i||{};n.styles.forEach(u=>{u instanceof Map&&u.forEach(h=>{cS(h).forEach(b=>{r.hasOwnProperty(b)||o.add(b)})})}),o.size&&(sp(o.values()),e.errors.push(function dF(t,s){return new $(3008,!1)}()))}return{type:0,name:s.name,style:n,options:i?{params:i}:null}}visitTransition(s,e){e.queryCount=0,e.depCount=0;const n=yi(this,Jl(s.animation),e);return{type:1,matchers:QF(s.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Qo(s.options)}}visitSequence(s,e){return{type:2,steps:s.steps.map(n=>yi(this,n,e)),options:Qo(s.options)}}visitGroup(s,e){const n=e.currentTime;let i=0;const o=s.steps.map(r=>{e.currentTime=n;const u=yi(this,r,e);return i=Math.max(i,e.currentTime),u});return e.currentTime=i,{type:3,steps:o,options:Qo(s.options)}}visitAnimate(s,e){const n=function sN(t,s){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return g_(ip(t,s).duration,0,"");const e=t;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=g_(0,0,"");return o.dynamic=!0,o.strValue=e,o}const i=ip(e,s);return g_(i.duration,i.delay,i.easing)}(s.timings,e.errors);e.currentAnimateTimings=n;let i,o=s.styles?s.styles:Tt({});if(5==o.type)i=this.visitKeyframes(o,e);else{let r=s.styles,u=!1;if(!r){u=!0;const b={};n.easing&&(b.easing=n.easing),r=Tt(b)}e.currentTime+=n.duration+n.delay;const h=this.visitStyle(r,e);h.isEmptyStep=u,i=h}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(s,e){const n=this._makeStyleAst(s,e);return this._validateStyleAst(n,e),n}_makeStyleAst(s,e){const n=[],i=Array.isArray(s.styles)?s.styles:[s.styles];for(let u of i)"string"==typeof u?u===Gs?n.push(u):e.errors.push(new $(3002,!1)):n.push(aS(u));let o=!1,r=null;return n.forEach(u=>{if(u instanceof Map&&(u.has("easing")&&(r=u.get("easing"),u.delete("easing")),!o))for(let h of u.values())if(h.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:n,easing:r,offset:s.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(s,e){const n=e.currentAnimateTimings;let i=e.currentTime,o=e.currentTime;n&&o>0&&(o-=n.duration+n.delay),s.styles.forEach(r=>{"string"!=typeof r&&r.forEach((u,h)=>{const b=e.collectedStyles.get(e.currentQuerySelector),T=b.get(h);let w=!0;T&&(o!=i&&o>=T.startTime&&i<=T.endTime&&(e.errors.push(function hF(t,s,e,n,i){return new $(3010,!1)}()),w=!1),o=T.startTime),w&&b.set(h,{startTime:o,endTime:i}),e.options&&function jF(t,s,e){const n=s.params||{},i=cS(t);i.length&&i.forEach(o=>{n.hasOwnProperty(o)||e.push(function oF(t){return new $(3001,!1)}())})}(u,e.options,e.errors)})})}visitKeyframes(s,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function mF(){return new $(3011,!1)}()),n;let o=0;const r=[];let u=!1,h=!1,b=0;const T=s.steps.map(U=>{const N=this._makeStyleAst(U,e);let ee=null!=N.offset?N.offset:function iN(t){if("string"==typeof t)return null;let s=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const n=e;s=parseFloat(n.get("offset")),n.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;s=parseFloat(e.get("offset")),e.delete("offset")}return s}(N.styles),re=0;return null!=ee&&(o++,re=N.offset=ee),h=h||re<0||re>1,u=u||re0&&o{const ee=k>0?N==L?1:k*N:r[N],re=ee*P;e.currentTime=O+A.delay+re,A.duration=re,this._validateStyleAst(U,e),U.offset=ee,n.styles.push(U)}),n}visitReference(s,e){return{type:8,animation:yi(this,Jl(s.animation),e),options:Qo(s.options)}}visitAnimateChild(s,e){return e.depCount++,{type:9,options:Qo(s.options)}}visitAnimateRef(s,e){return{type:10,animation:this.visitReference(s.animation,e),options:Qo(s.options)}}visitQuery(s,e){const n=e.currentQuerySelector,i=s.options||{};e.queryCount++,e.currentQuery=s;const[o,r]=function eN(t){const s=!!t.split(/\s*,\s*/).find(e=>":self"==e);return s&&(t=t.replace(YF,"")),t=t.replace(/@\*/g,np).replace(/@\w+/g,e=>np+"-"+e.slice(1)).replace(/:animating/g,d_),[t,s]}(s.selector);e.currentQuerySelector=n.length?n+" "+o:o,Ci(e.collectedStyles,e.currentQuerySelector,new Map);const u=yi(this,Jl(s.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:r,animation:u,originalSelector:s.selector,options:Qo(s.options)}}visitStagger(s,e){e.currentQuery||e.errors.push(function bF(){return new $(3013,!1)}());const n="full"===s.timings?{duration:0,delay:0,easing:"full"}:ip(s.timings,e.errors,!0);return{type:12,animation:yi(this,Jl(s.animation),e),timings:n,options:null}}}class nN{constructor(s){this.errors=s,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 Qo(t){return t?(t=Ql(t)).params&&(t.params=function tN(t){return t?Ql(t):null}(t.params)):t={},t}function g_(t,s,e){return{duration:t,delay:s,easing:e}}function __(t,s,e,n,i,o,r=null,u=!1){return{type:1,element:t,keyframes:s,preStyleProps:e,postStyleProps:n,duration:i,delay:o,totalTime:i+o,easing:r,subTimeline:u}}class lp{constructor(){this._map=new Map}get(s){return this._map.get(s)||[]}append(s,e){let n=this._map.get(s);n||this._map.set(s,n=[]),n.push(...e)}has(s){return this._map.has(s)}clear(){this._map.clear()}}const aN=new RegExp(":enter","g"),cN=new RegExp(":leave","g");function b_(t,s,e,n,i,o=new Map,r=new Map,u,h,b=[]){return(new uN).buildKeyframes(t,s,e,n,i,o,r,u,h,b)}class uN{buildKeyframes(s,e,n,i,o,r,u,h,b,T=[]){b=b||new lp;const w=new v_(s,e,b,i,o,T,[]);w.options=h;const k=h.delay?zs(h.delay):0;w.currentTimeline.delayNextStep(k),w.currentTimeline.setStyles([r],null,w.errors,h),yi(this,n,w);const L=w.timelines.filter(O=>O.containsAnimation());if(L.length&&u.size){let O;for(let A=L.length-1;A>=0;A--){const P=L[A];if(P.element===e){O=P;break}}O&&!O.allowOnlyTimelineStyles()&&O.setStyles([u],null,w.errors,h)}return L.length?L.map(O=>O.buildKeyframes()):[__(e,[],[],[],0,k,"",!1)]}visitTrigger(s,e){}visitState(s,e){}visitTransition(s,e){}visitAnimateChild(s,e){const n=e.subInstructions.get(e.element);if(n){const i=e.createSubContext(s.options),o=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,i,i.options);o!=r&&e.transformIntoNewTimeline(r)}e.previousNode=s}visitAnimateRef(s,e){const n=e.createSubContext(s.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([s.options,s.animation.options],e,n),this.visitReference(s.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=s}_applyAnimationRefDelays(s,e,n){for(const i of s){const o=i?.delay;if(o){const r="number"==typeof o?o:zs(Zl(o,i?.params??{},e.errors));n.delayNextStep(r)}}}_visitSubInstructions(s,e,n){let o=e.currentTimeline.currentTime;const r=null!=n.duration?zs(n.duration):null,u=null!=n.delay?zs(n.delay):null;return 0!==r&&s.forEach(h=>{const b=e.appendInstructionToTimeline(h,r,u);o=Math.max(o,b.duration+b.delay)}),o}visitReference(s,e){e.updateOptions(s.options,!0),yi(this,s.animation,e),e.previousNode=s}visitSequence(s,e){const n=e.subContextCount;let i=e;const o=s.options;if(o&&(o.params||o.delay)&&(i=e.createSubContext(o),i.transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=cp);const r=zs(o.delay);i.delayNextStep(r)}s.steps.length&&(s.steps.forEach(r=>yi(this,r,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),e.previousNode=s}visitGroup(s,e){const n=[];let i=e.currentTimeline.currentTime;const o=s.options&&s.options.delay?zs(s.options.delay):0;s.steps.forEach(r=>{const u=e.createSubContext(s.options);o&&u.delayNextStep(o),yi(this,r,u),i=Math.max(i,u.currentTimeline.currentTime),n.push(u.currentTimeline)}),n.forEach(r=>e.currentTimeline.mergeTimelineCollectedStyles(r)),e.transformIntoNewTimeline(i),e.previousNode=s}_visitTiming(s,e){if(s.dynamic){const n=s.strValue;return ip(e.params?Zl(n,e.params,e.errors):n,e.errors)}return{duration:s.duration,delay:s.delay,easing:s.easing}}visitAnimate(s,e){const n=e.currentAnimateTimings=this._visitTiming(s.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());const o=s.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(n.duration),this.visitStyle(o,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=s}visitStyle(s,e){const n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.hasCurrentStyleProperties()&&n.forwardFrame();const o=i&&i.easing||s.easing;s.isEmptyStep?n.applyEmptyStep(o):n.setStyles(s.styles,o,e.errors,e.options),e.previousNode=s}visitKeyframes(s,e){const n=e.currentAnimateTimings,i=e.currentTimeline.duration,o=n.duration,u=e.createSubContext().currentTimeline;u.easing=n.easing,s.styles.forEach(h=>{u.forwardTime((h.offset||0)*o),u.setStyles(h.styles,h.easing,e.errors,e.options),u.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(u),e.transformIntoNewTimeline(i+o),e.previousNode=s}visitQuery(s,e){const n=e.currentTimeline.currentTime,i=s.options||{},o=i.delay?zs(i.delay):0;o&&(6===e.previousNode.type||0==n&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=cp);let r=n;const u=e.invokeQuery(s.selector,s.originalSelector,s.limit,s.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=u.length;let h=null;u.forEach((b,T)=>{e.currentQueryIndex=T;const w=e.createSubContext(s.options,b);o&&w.delayNextStep(o),b===e.element&&(h=w.currentTimeline),yi(this,s.animation,w),w.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,w.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),h&&(e.currentTimeline.mergeTimelineCollectedStyles(h),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=s}visitStagger(s,e){const n=e.parentContext,i=e.currentTimeline,o=s.timings,r=Math.abs(o.duration),u=r*(e.currentQueryTotal-1);let h=r*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":h=u-h;break;case"full":h=n.currentStaggerTime}const T=e.currentTimeline;h&&T.delayNextStep(h);const w=T.currentTime;yi(this,s.animation,e),e.previousNode=s,n.currentStaggerTime=i.currentTime-w+(i.startTime-n.currentTimeline.startTime)}}const cp={};class v_{constructor(s,e,n,i,o,r,u,h){this._driver=s,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=o,this.errors=r,this.timelines=u,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=cp,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=h||new up(this._driver,e,0),u.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(s,e){if(!s)return;const n=s;let i=this.options;null!=n.duration&&(i.duration=zs(n.duration)),null!=n.delay&&(i.delay=zs(n.delay));const o=n.params;if(o){let r=i.params;r||(r=this.options.params={}),Object.keys(o).forEach(u=>{(!e||!r.hasOwnProperty(u))&&(r[u]=Zl(o[u],r,this.errors))})}}_copyOptions(){const s={};if(this.options){const e=this.options.params;if(e){const n=s.params={};Object.keys(e).forEach(i=>{n[i]=e[i]})}}return s}createSubContext(s=null,e,n){const i=e||this.element,o=new v_(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(s),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(s){return this.previousNode=cp,this.currentTimeline=this.currentTimeline.fork(this.element,s),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(s,e,n){const i={duration:e??s.duration,delay:this.currentTimeline.currentTime+(n??0)+s.delay,easing:""},o=new dN(this._driver,s.element,s.keyframes,s.preStyleProps,s.postStyleProps,i,s.stretchStartingKeyframe);return this.timelines.push(o),i}incrementTime(s){this.currentTimeline.forwardTime(this.currentTimeline.duration+s)}delayNextStep(s){s>0&&this.currentTimeline.delayNextStep(s)}invokeQuery(s,e,n,i,o,r){let u=[];if(i&&u.push(this.element),s.length>0){s=(s=s.replace(aN,"."+this._enterClassName)).replace(cN,"."+this._leaveClassName);let b=this._driver.query(this.element,s,1!=n);0!==n&&(b=n<0?b.slice(b.length+n,b.length):b.slice(0,n)),u.push(...b)}return!o&&0==u.length&&r.push(function vF(t){return new $(3014,!1)}()),u}}class up{constructor(s,e,n,i){this._driver=s,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,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(s){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+s),e&&this.snapshotCurrentStyles()):this.startTime+=s}fork(s,e){return this.applyStylesToKeyframe(),new up(this._driver,s,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(s){this.applyStylesToKeyframe(),this.duration=s,this._loadKeyframe()}_updateStyle(s,e){this._localTimelineStyles.set(s,e),this._globalTimelineStyles.set(s,e),this._styleSummary.set(s,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(s){s&&this._previousKeyframe.set("easing",s);for(let[e,n]of this._globalTimelineStyles)this._backFill.set(e,n||Gs),this._currentKeyframe.set(e,Gs);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(s,e,n,i){e&&this._previousKeyframe.set("easing",e);const o=i&&i.params||{},r=function pN(t,s){const e=new Map;let n;return t.forEach(i=>{if("*"===i){n=n||s.keys();for(let o of n)e.set(o,Gs)}else uo(i,e)}),e}(s,this._globalTimelineStyles);for(let[u,h]of r){const b=Zl(h,o,n);this._pendingStyles.set(u,b),this._localTimelineStyles.has(u)||this._backFill.set(u,this._globalTimelineStyles.get(u)??Gs),this._updateStyle(u,b)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((s,e)=>{this._currentKeyframe.set(e,s)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((s,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,s)}))}snapshotCurrentStyles(){for(let[s,e]of this._localTimelineStyles)this._pendingStyles.set(s,e),this._updateStyle(s,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const s=[];for(let e in this._currentKeyframe)s.push(e);return s}mergeTimelineCollectedStyles(s){s._styleSummary.forEach((e,n)=>{const i=this._styleSummary.get(n);(!i||e.time>i.time)&&this._updateStyle(n,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const s=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((u,h)=>{const b=uo(u,new Map,this._backFill);b.forEach((T,w)=>{"!"===T?s.add(w):T===Gs&&e.add(w)}),n||b.set("offset",h/this.duration),i.push(b)});const o=s.size?sp(s.values()):[],r=e.size?sp(e.values()):[];if(n){const u=i[0],h=new Map(u);u.set("offset",0),h.set("offset",1),i=[u,h]}return __(this.element,i,o,r,this.duration,this.startTime,this.easing,!1)}}class dN extends up{constructor(s,e,n,i,o,r,u=!1){super(s,e,r.delay),this.keyframes=n,this.preStyleProps=i,this.postStyleProps=o,this._stretchStartingKeyframe=u,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let s=this.keyframes,{delay:e,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],r=n+e,u=e/r,h=uo(s[0]);h.set("offset",0),o.push(h);const b=uo(s[0]);b.set("offset",mS(u)),o.push(b);const T=s.length-1;for(let w=1;w<=T;w++){let k=uo(s[w]);const L=k.get("offset");k.set("offset",mS((e+L*n)/r)),o.push(k)}n=r,e=0,i="",s=o}return __(this.element,s,this.preStyleProps,this.postStyleProps,n,e,i,!0)}}function mS(t,s=3){const e=Math.pow(10,s-1);return Math.round(t*e)/e}class C_{}const hN=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 mN extends C_{normalizePropertyName(s,e){return m_(s)}normalizeStyleValue(s,e,n,i){let o="";const r=n.toString().trim();if(hN.has(e)&&0!==n&&"0"!==n)if("number"==typeof n)o="px";else{const u=n.match(/^[+-]?[\d\.]+([a-z]*)$/);u&&0==u[1].length&&i.push(function lF(t,s){return new $(3005,!1)}())}return r+o}}function fS(t,s,e,n,i,o,r,u,h,b,T,w,k){return{type:0,element:t,triggerName:s,isRemovalTransition:i,fromState:e,fromStyles:o,toState:n,toStyles:r,timelines:u,queriedElements:h,preStyleProps:b,postStyleProps:T,totalTime:w,errors:k}}const y_={};class gS{constructor(s,e,n){this._triggerName=s,this.ast=e,this._stateStyles=n}match(s,e,n,i){return function fN(t,s,e,n,i){return t.some(o=>o(s,e,n,i))}(this.ast.matchers,s,e,n,i)}buildStyles(s,e,n){let i=this._stateStyles.get("*");return void 0!==s&&(i=this._stateStyles.get(s?.toString())||i),i?i.buildStyles(e,n):new Map}build(s,e,n,i,o,r,u,h,b,T){const w=[],k=this.ast.options&&this.ast.options.params||y_,O=this.buildStyles(n,u&&u.params||y_,w),A=h&&h.params||y_,P=this.buildStyles(i,A,w),U=new Set,N=new Map,ee=new Map,re="void"===i,be={params:gN(A,k),delay:this.ast.options?.delay},Je=T?[]:b_(s,e,this.ast.animation,o,r,O,P,be,b,w);let Ct=0;if(Je.forEach(zt=>{Ct=Math.max(zt.duration+zt.delay,Ct)}),w.length)return fS(e,this._triggerName,n,i,re,O,P,[],[],N,ee,Ct,w);Je.forEach(zt=>{const Rn=zt.element,Jp=Ci(N,Rn,new Set);zt.preStyleProps.forEach(rr=>Jp.add(rr));const Ec=Ci(ee,Rn,new Set);zt.postStyleProps.forEach(rr=>Ec.add(rr)),Rn!==e&&U.add(Rn)});const Ot=sp(U.values());return fS(e,this._triggerName,n,i,re,O,P,Je,Ot,N,ee,Ct)}}function gN(t,s){const e=Ql(s);for(const n in t)t.hasOwnProperty(n)&&null!=t[n]&&(e[n]=t[n]);return e}class _N{constructor(s,e,n){this.styles=s,this.defaultParams=e,this.normalizer=n}buildStyles(s,e){const n=new Map,i=Ql(this.defaultParams);return Object.keys(s).forEach(o=>{const r=s[o];null!==r&&(i[o]=r)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((r,u)=>{r&&(r=Zl(r,i,e));const h=this.normalizer.normalizePropertyName(u,e);r=this.normalizer.normalizeStyleValue(u,h,r,e),n.set(u,r)})}),n}}class vN{constructor(s,e,n){this.name=s,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states=new Map,e.states.forEach(i=>{this.states.set(i.name,new _N(i.style,i.options&&i.options.params||{},n))}),_S(this.states,"true","1"),_S(this.states,"false","0"),e.transitions.forEach(i=>{this.transitionFactories.push(new gS(s,i,this.states))}),this.fallbackTransition=function CN(t,s,e){return new gS(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(r,u)=>!0],options:null,queryCount:0,depCount:0},s)}(s,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(s,e,n,i){return this.transitionFactories.find(r=>r.match(s,e,n,i))||null}matchStyles(s,e,n){return this.fallbackTransition.buildStyles(s,e,n)}}function _S(t,s,e){t.has(s)?t.has(e)||t.set(e,t.get(s)):t.has(e)&&t.set(s,t.get(e))}const yN=new lp;class TN{constructor(s,e,n){this.bodyNode=s,this._driver=e,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(s,e){const n=[],o=f_(this._driver,e,n,[]);if(n.length)throw function xF(t){return new $(3503,!1)}();this._animations.set(s,o)}_buildPlayer(s,e,n){const i=s.element,o=X3(this._normalizer,s.keyframes,e,n);return this._driver.animate(i,o,s.duration,s.delay,s.easing,[],!0)}create(s,e,n={}){const i=[],o=this._animations.get(s);let r;const u=new Map;if(o?(r=b_(this._driver,e,o,u_,ep,new Map,new Map,n,yN,i),r.forEach(T=>{const w=Ci(u,T.element,new Map);T.postStyleProps.forEach(k=>w.set(k,null))})):(i.push(function DF(){return new $(3300,!1)}()),r=[]),i.length)throw function MF(t){return new $(3504,!1)}();u.forEach((T,w)=>{T.forEach((k,L)=>{T.set(L,this._driver.computeStyle(w,L,Gs))})});const b=co(r.map(T=>{const w=u.get(T.element);return this._buildPlayer(T,new Map,w)}));return this._playersById.set(s,b),b.onDestroy(()=>this.destroy(s)),this.players.push(b),b}destroy(s){const e=this._getPlayer(s);e.destroy(),this._playersById.delete(s);const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(s){const e=this._playersById.get(s);if(!e)throw function kF(t){return new $(3301,!1)}();return e}listen(s,e,n,i){const o=a_(e,"","","");return o_(this._getPlayer(s),n,o,i),()=>{}}command(s,e,n,i){if("register"==n)return void this.register(s,i[0]);if("create"==n)return void this.create(s,e,i[0]||{});const o=this._getPlayer(s);switch(n){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(s)}}}const bS="ng-animate-queued",T_="ng-animate-disabled",DN=[],vS={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},MN={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Xi="__ng_removed";class w_{get params(){return this.options.params}constructor(s,e=""){this.namespaceId=e;const n=s&&s.hasOwnProperty("value");if(this.value=function RN(t){return t??null}(n?s.value:s),n){const o=Ql(s);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(s){const e=s.params;if(e){const n=this.options.params;Object.keys(e).forEach(i=>{null==n[i]&&(n[i]=e[i])})}}}const Yl="void",S_=new w_(Yl);class kN{constructor(s,e,n){this.id=s,this.hostElement=e,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+s,Ni(e,this._hostClassName)}listen(s,e,n,i){if(!this._triggers.has(e))throw function EF(t,s){return new $(3302,!1)}();if(null==n||0==n.length)throw function LF(t){return new $(3303,!1)}();if(!function ON(t){return"start"==t||"done"==t}(n))throw function RF(t,s){return new $(3400,!1)}();const o=Ci(this._elementListeners,s,[]),r={name:e,phase:n,callback:i};o.push(r);const u=Ci(this._engine.statesByElement,s,new Map);return u.has(e)||(Ni(s,tp),Ni(s,tp+"-"+e),u.set(e,S_)),()=>{this._engine.afterFlush(()=>{const h=o.indexOf(r);h>=0&&o.splice(h,1),this._triggers.has(e)||u.delete(e)})}}register(s,e){return!this._triggers.has(s)&&(this._triggers.set(s,e),!0)}_getTrigger(s){const e=this._triggers.get(s);if(!e)throw function OF(t){return new $(3401,!1)}();return e}trigger(s,e,n,i=!0){const o=this._getTrigger(e),r=new I_(this.id,e,s);let u=this._engine.statesByElement.get(s);u||(Ni(s,tp),Ni(s,tp+"-"+e),this._engine.statesByElement.set(s,u=new Map));let h=u.get(e);const b=new w_(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&h&&b.absorbOptions(h.options),u.set(e,b),h||(h=S_),b.value!==Yl&&h.value===b.value){if(!function FN(t,s){const e=Object.keys(t),n=Object.keys(s);if(e.length!=n.length)return!1;for(let i=0;i{Ko(s,P),_s(s,U)})}return}const k=Ci(this._engine.playersByElement,s,[]);k.forEach(A=>{A.namespaceId==this.id&&A.triggerName==e&&A.queued&&A.destroy()});let L=o.matchTransition(h.value,b.value,s,b.params),O=!1;if(!L){if(!i)return;L=o.fallbackTransition,O=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:s,triggerName:e,transition:L,fromState:h,toState:b,player:r,isFallbackTransition:O}),O||(Ni(s,bS),r.onStart(()=>{da(s,bS)})),r.onDone(()=>{let A=this.players.indexOf(r);A>=0&&this.players.splice(A,1);const P=this._engine.playersByElement.get(s);if(P){let U=P.indexOf(r);U>=0&&P.splice(U,1)}}),this.players.push(r),k.push(r),r}deregister(s){this._triggers.delete(s),this._engine.statesByElement.forEach(e=>e.delete(s)),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(i=>i.name!=s))})}clearElementCache(s){this._engine.statesByElement.delete(s),this._elementListeners.delete(s);const e=this._engine.playersByElement.get(s);e&&(e.forEach(n=>n.destroy()),this._engine.playersByElement.delete(s))}_signalRemovalForInnerTriggers(s,e){const n=this._engine.driver.query(s,np,!0);n.forEach(i=>{if(i[Xi])return;const o=this._engine.fetchNamespacesByElement(i);o.size?o.forEach(r=>r.triggerLeaveAnimation(i,e,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(s,e,n,i){const o=this._engine.statesByElement.get(s),r=new Map;if(o){const u=[];if(o.forEach((h,b)=>{if(r.set(b,h.value),this._triggers.has(b)){const T=this.trigger(s,b,Yl,i);T&&u.push(T)}}),u.length)return this._engine.markElementAsRemoved(this.id,s,!0,e,r),n&&co(u).onDone(()=>this._engine.processLeaveNode(s)),!0}return!1}prepareLeaveAnimationListeners(s){const e=this._elementListeners.get(s),n=this._engine.statesByElement.get(s);if(e&&n){const i=new Set;e.forEach(o=>{const r=o.name;if(i.has(r))return;i.add(r);const h=this._triggers.get(r).fallbackTransition,b=n.get(r)||S_,T=new w_(Yl),w=new I_(this.id,r,s);this._engine.totalQueuedPlayers++,this._queue.push({element:s,triggerName:r,transition:h,fromState:b,toState:T,player:w,isFallbackTransition:!0})})}}removeNode(s,e){const n=this._engine;if(s.childElementCount&&this._signalRemovalForInnerTriggers(s,e),this.triggerLeaveAnimation(s,e,!0))return;let i=!1;if(n.totalAnimations){const o=n.players.length?n.playersByQueriedElement.get(s):[];if(o&&o.length)i=!0;else{let r=s;for(;r=r.parentNode;)if(n.statesByElement.get(r)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(s),i)n.markElementAsRemoved(this.id,s,!1,e);else{const o=s[Xi];(!o||o===vS)&&(n.afterFlush(()=>this.clearElementCache(s)),n.destroyInnerAnimations(s),n._onRemovalComplete(s,e))}}insertNode(s,e){Ni(s,this._hostClassName)}drainQueuedTransitions(s){const e=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const o=n.element,r=this._elementListeners.get(o);r&&r.forEach(u=>{if(u.name==n.triggerName){const h=a_(o,n.triggerName,n.fromState.value,n.toState.value);h._data=s,o_(n.player,u.phase,h,u.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(n)}),this._queue=[],e.sort((n,i)=>{const o=n.transition.ast.depCount,r=i.transition.ast.depCount;return 0==o||0==r?o-r:this._engine.driver.containsElement(n.element,i.element)?1:-1})}destroy(s){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,s)}}class EN{_onRemovalComplete(s,e){this.onRemovalComplete(s,e)}constructor(s,e,n){this.bodyNode=s,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(i,o)=>{}}get queuedPlayers(){const s=[];return this._namespaceList.forEach(e=>{e.players.forEach(n=>{n.queued&&s.push(n)})}),s}createNamespace(s,e){const n=new kN(s,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[s]=n}_balanceNamespaceList(s,e){const n=this._namespaceList,i=this.namespacesByHostElement;if(n.length-1>=0){let r=!1,u=this.driver.getParentElement(e);for(;u;){const h=i.get(u);if(h){const b=n.indexOf(h);n.splice(b+1,0,s),r=!0;break}u=this.driver.getParentElement(u)}r||n.unshift(s)}else n.push(s);return i.set(e,s),s}register(s,e){let n=this._namespaceLookup[s];return n||(n=this.createNamespace(s,e)),n}registerTrigger(s,e,n){let i=this._namespaceLookup[s];i&&i.register(e,n)&&this.totalAnimations++}destroy(s,e){s&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const n=this._fetchNamespace(s);this.namespacesByHostElement.delete(n.hostElement);const i=this._namespaceList.indexOf(n);i>=0&&this._namespaceList.splice(i,1),n.destroy(e),delete this._namespaceLookup[s]}))}_fetchNamespace(s){return this._namespaceLookup[s]}fetchNamespacesByElement(s){const e=new Set,n=this.statesByElement.get(s);if(n)for(let i of n.values())if(i.namespaceId){const o=this._fetchNamespace(i.namespaceId);o&&e.add(o)}return e}trigger(s,e,n,i){if(dp(e)){const o=this._fetchNamespace(s);if(o)return o.trigger(e,n,i),!0}return!1}insertNode(s,e,n,i){if(!dp(e))return;const o=e[Xi];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const r=this.collectedLeaveElements.indexOf(e);r>=0&&this.collectedLeaveElements.splice(r,1)}if(s){const r=this._fetchNamespace(s);r&&r.insertNode(e,n)}i&&this.collectEnterElement(e)}collectEnterElement(s){this.collectedEnterElements.push(s)}markElementAsDisabled(s,e){e?this.disabledNodes.has(s)||(this.disabledNodes.add(s),Ni(s,T_)):this.disabledNodes.has(s)&&(this.disabledNodes.delete(s),da(s,T_))}removeNode(s,e,n){if(dp(e)){const i=s?this._fetchNamespace(s):null;i?i.removeNode(e,n):this.markElementAsRemoved(s,e,!1,n);const o=this.namespacesByHostElement.get(e);o&&o.id!==s&&o.removeNode(e,n)}else this._onRemovalComplete(e,n)}markElementAsRemoved(s,e,n,i,o){this.collectedLeaveElements.push(e),e[Xi]={namespaceId:s,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:o}}listen(s,e,n,i,o){return dp(e)?this._fetchNamespace(s).listen(e,n,i,o):()=>{}}_buildInstruction(s,e,n,i,o){return s.transition.build(this.driver,s.element,s.fromState.value,s.toState.value,n,i,s.fromState.options,s.toState.options,e,o)}destroyInnerAnimations(s){let e=this.driver.query(s,np,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(s,d_,!0),e.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(s){const e=this.playersByElement.get(s);e&&e.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(s){const e=this.playersByQueriedElement.get(s);e&&e.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(s=>{if(this.players.length)return co(this.players).onDone(()=>s());s()})}processLeaveNode(s){const e=s[Xi];if(e&&e.setForRemoval){if(s[Xi]=vS,e.namespaceId){this.destroyInnerAnimations(s);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(s)}this._onRemovalComplete(s,e.setForRemoval)}s.classList?.contains(T_)&&this.markElementAsDisabled(s,!1),this.driver.query(s,".ng-animate-disabled",!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(s=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,i)=>this._balanceNamespaceList(n,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){const n=this._whenQuietFns;this._whenQuietFns=[],e.length?co(e).onDone(()=>{n.forEach(i=>i())}):n.forEach(i=>i())}}reportError(s){throw function AF(t){return new $(3402,!1)}()}_flushAnimations(s,e){const n=new lp,i=[],o=new Map,r=[],u=new Map,h=new Map,b=new Map,T=new Set;this.disabledNodes.forEach(he=>{T.add(he);const Se=this.driver.query(he,".ng-animate-queued",!0);for(let ke=0;ke{const ke=u_+A++;O.set(Se,ke),he.forEach(ht=>Ni(ht,ke))});const P=[],U=new Set,N=new Set;for(let he=0;heU.add(ht)):N.add(Se))}const ee=new Map,re=TS(k,Array.from(U));re.forEach((he,Se)=>{const ke=ep+A++;ee.set(Se,ke),he.forEach(ht=>Ni(ht,ke))}),s.push(()=>{L.forEach((he,Se)=>{const ke=O.get(Se);he.forEach(ht=>da(ht,ke))}),re.forEach((he,Se)=>{const ke=ee.get(Se);he.forEach(ht=>da(ht,ke))}),P.forEach(he=>{this.processLeaveNode(he)})});const be=[],Je=[];for(let he=this._namespaceList.length-1;he>=0;he--)this._namespaceList[he].drainQueuedTransitions(e).forEach(ke=>{const ht=ke.player,Dn=ke.element;if(be.push(ht),this.collectedEnterElements.length){const Un=Dn[Xi];if(Un&&Un.setForMove){if(Un.previousTriggersValues&&Un.previousTriggersValues.has(ke.triggerName)){const ar=Un.previousTriggersValues.get(ke.triggerName),Hi=this.statesByElement.get(ke.element);if(Hi&&Hi.has(ke.triggerName)){const Zp=Hi.get(ke.triggerName);Zp.value=ar,Hi.set(ke.triggerName,Zp)}}return void ht.destroy()}}const ws=!w||!this.driver.containsElement(w,Dn),Si=ee.get(Dn),wo=O.get(Dn),en=this._buildInstruction(ke,n,wo,Si,ws);if(en.errors&&en.errors.length)return void Je.push(en);if(ws)return ht.onStart(()=>Ko(Dn,en.fromStyles)),ht.onDestroy(()=>_s(Dn,en.toStyles)),void i.push(ht);if(ke.isFallbackTransition)return ht.onStart(()=>Ko(Dn,en.fromStyles)),ht.onDestroy(()=>_s(Dn,en.toStyles)),void i.push(ht);const _D=[];en.timelines.forEach(Un=>{Un.stretchStartingKeyframe=!0,this.disabledNodes.has(Un.element)||_D.push(Un)}),en.timelines=_D,n.append(Dn,en.timelines),r.push({instruction:en,player:ht,element:Dn}),en.queriedElements.forEach(Un=>Ci(u,Un,[]).push(ht)),en.preStyleProps.forEach((Un,ar)=>{if(Un.size){let Hi=h.get(ar);Hi||h.set(ar,Hi=new Set),Un.forEach((Zp,g1)=>Hi.add(g1))}}),en.postStyleProps.forEach((Un,ar)=>{let Hi=b.get(ar);Hi||b.set(ar,Hi=new Set),Un.forEach((Zp,g1)=>Hi.add(g1))})});if(Je.length){const he=[];Je.forEach(Se=>{he.push(function PF(t,s){return new $(3505,!1)}())}),be.forEach(Se=>Se.destroy()),this.reportError(he)}const Ct=new Map,Ot=new Map;r.forEach(he=>{const Se=he.element;n.has(Se)&&(Ot.set(Se,Se),this._beforeAnimationBuild(he.player.namespaceId,he.instruction,Ct))}),i.forEach(he=>{const Se=he.element;this._getPreviousPlayers(Se,!1,he.namespaceId,he.triggerName,null).forEach(ht=>{Ci(Ct,Se,[]).push(ht),ht.destroy()})});const zt=P.filter(he=>SS(he,h,b)),Rn=new Map;yS(Rn,this.driver,N,b,Gs).forEach(he=>{SS(he,h,b)&&zt.push(he)});const Ec=new Map;L.forEach((he,Se)=>{yS(Ec,this.driver,new Set(he),h,"!")}),zt.forEach(he=>{const Se=Rn.get(he),ke=Ec.get(he);Rn.set(he,new Map([...Se?.entries()??[],...ke?.entries()??[]]))});const rr=[],fD=[],gD={};r.forEach(he=>{const{element:Se,player:ke,instruction:ht}=he;if(n.has(Se)){if(T.has(Se))return ke.onDestroy(()=>_s(Se,ht.toStyles)),ke.disabled=!0,ke.overrideTotalTime(ht.totalTime),void i.push(ke);let Dn=gD;if(Ot.size>1){let Si=Se;const wo=[];for(;Si=Si.parentNode;){const en=Ot.get(Si);if(en){Dn=en;break}wo.push(Si)}wo.forEach(en=>Ot.set(en,Dn))}const ws=this._buildAnimation(ke.namespaceId,ht,Ct,o,Ec,Rn);if(ke.setRealPlayer(ws),Dn===gD)rr.push(ke);else{const Si=this.playersByElement.get(Dn);Si&&Si.length&&(ke.parentPlayer=co(Si)),i.push(ke)}}else Ko(Se,ht.fromStyles),ke.onDestroy(()=>_s(Se,ht.toStyles)),fD.push(ke),T.has(Se)&&i.push(ke)}),fD.forEach(he=>{const Se=o.get(he.element);if(Se&&Se.length){const ke=co(Se);he.setRealPlayer(ke)}}),i.forEach(he=>{he.parentPlayer?he.syncPlayerEvents(he.parentPlayer):he.destroy()});for(let he=0;he!ws.destroyed);Dn.length?AN(this,Se,Dn):this.processLeaveNode(Se)}return P.length=0,rr.forEach(he=>{this.players.push(he),he.onDone(()=>{he.destroy();const Se=this.players.indexOf(he);this.players.splice(Se,1)}),he.play()}),rr}afterFlush(s){this._flushFns.push(s)}afterFlushAnimationsDone(s){this._whenQuietFns.push(s)}_getPreviousPlayers(s,e,n,i,o){let r=[];if(e){const u=this.playersByQueriedElement.get(s);u&&(r=u)}else{const u=this.playersByElement.get(s);if(u){const h=!o||o==Yl;u.forEach(b=>{b.queued||!h&&b.triggerName!=i||r.push(b)})}}return(n||i)&&(r=r.filter(u=>!(n&&n!=u.namespaceId||i&&i!=u.triggerName))),r}_beforeAnimationBuild(s,e,n){const o=e.element,r=e.isRemovalTransition?void 0:s,u=e.isRemovalTransition?void 0:e.triggerName;for(const h of e.timelines){const b=h.element,T=b!==o,w=Ci(n,b,[]);this._getPreviousPlayers(b,T,r,u,e.toState).forEach(L=>{const O=L.getRealPlayer();O.beforeDestroy&&O.beforeDestroy(),L.destroy(),w.push(L)})}Ko(o,e.fromStyles)}_buildAnimation(s,e,n,i,o,r){const u=e.triggerName,h=e.element,b=[],T=new Set,w=new Set,k=e.timelines.map(O=>{const A=O.element;T.add(A);const P=A[Xi];if(P&&P.removedBeforeQueried)return new Kl(O.duration,O.delay);const U=A!==h,N=function PN(t){const s=[];return wS(t,s),s}((n.get(A)||DN).map(Ct=>Ct.getRealPlayer())).filter(Ct=>!!Ct.element&&Ct.element===A),ee=o.get(A),re=r.get(A),be=X3(this._normalizer,O.keyframes,ee,re),Je=this._buildPlayer(O,be,N);if(O.subTimeline&&i&&w.add(A),U){const Ct=new I_(s,u,A);Ct.setRealPlayer(Je),b.push(Ct)}return Je});b.forEach(O=>{Ci(this.playersByQueriedElement,O.element,[]).push(O),O.onDone(()=>function LN(t,s,e){let n=t.get(s);if(n){if(n.length){const i=n.indexOf(e);n.splice(i,1)}0==n.length&&t.delete(s)}return n}(this.playersByQueriedElement,O.element,O))}),T.forEach(O=>Ni(O,rS));const L=co(k);return L.onDestroy(()=>{T.forEach(O=>da(O,rS)),_s(h,e.toStyles)}),w.forEach(O=>{Ci(i,O,[]).push(L)}),L}_buildPlayer(s,e,n){return e.length>0?this.driver.animate(s.element,e,s.duration,s.delay,s.easing,n):new Kl(s.duration,s.delay)}}class I_{constructor(s,e,n){this.namespaceId=s,this.triggerName=e,this.element=n,this._player=new Kl,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(s){this._containsRealPlayer||(this._player=s,this._queuedCallbacks.forEach((e,n)=>{e.forEach(i=>o_(s,n,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(s.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(s){this.totalTime=s}syncPlayerEvents(s){const e=this._player;e.triggerCallback&&s.onStart(()=>e.triggerCallback("start")),s.onDone(()=>this.finish()),s.onDestroy(()=>this.destroy())}_queueEvent(s,e){Ci(this._queuedCallbacks,s,[]).push(e)}onDone(s){this.queued&&this._queueEvent("done",s),this._player.onDone(s)}onStart(s){this.queued&&this._queueEvent("start",s),this._player.onStart(s)}onDestroy(s){this.queued&&this._queueEvent("destroy",s),this._player.onDestroy(s)}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(s){this.queued||this._player.setPosition(s)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(s){const e=this._player;e.triggerCallback&&e.triggerCallback(s)}}function dp(t){return t&&1===t.nodeType}function CS(t,s){const e=t.style.display;return t.style.display=s??"none",e}function yS(t,s,e,n,i){const o=[];e.forEach(h=>o.push(CS(h)));const r=[];n.forEach((h,b)=>{const T=new Map;h.forEach(w=>{const k=s.computeStyle(b,w,i);T.set(w,k),(!k||0==k.length)&&(b[Xi]=MN,r.push(b))}),t.set(b,T)});let u=0;return e.forEach(h=>CS(h,o[u++])),r}function TS(t,s){const e=new Map;if(t.forEach(u=>e.set(u,[])),0==s.length)return e;const i=new Set(s),o=new Map;function r(u){if(!u)return 1;let h=o.get(u);if(h)return h;const b=u.parentNode;return h=e.has(b)?b:i.has(b)?1:r(b),o.set(u,h),h}return s.forEach(u=>{const h=r(u);1!==h&&e.get(h).push(u)}),e}function Ni(t,s){t.classList?.add(s)}function da(t,s){t.classList?.remove(s)}function AN(t,s,e){co(e).onDone(()=>t.processLeaveNode(s))}function wS(t,s){for(let e=0;ei.add(o)):s.set(t,n),e.delete(t),!0}class pp{constructor(s,e,n){this.bodyNode=s,this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(i,o)=>{},this._transitionEngine=new EN(s,e,n),this._timelineEngine=new TN(s,e,n),this._transitionEngine.onRemovalComplete=(i,o)=>this.onRemovalComplete(i,o)}registerTrigger(s,e,n,i,o){const r=s+"-"+i;let u=this._triggerCache[r];if(!u){const h=[],T=f_(this._driver,o,h,[]);if(h.length)throw function SF(t,s){return new $(3404,!1)}();u=function bN(t,s,e){return new vN(t,s,e)}(i,T,this._normalizer),this._triggerCache[r]=u}this._transitionEngine.registerTrigger(e,i,u)}register(s,e){this._transitionEngine.register(s,e)}destroy(s,e){this._transitionEngine.destroy(s,e)}onInsert(s,e,n,i){this._transitionEngine.insertNode(s,e,n,i)}onRemove(s,e,n){this._transitionEngine.removeNode(s,e,n)}disableAnimations(s,e){this._transitionEngine.markElementAsDisabled(s,e)}process(s,e,n,i){if("@"==n.charAt(0)){const[o,r]=eS(n);this._timelineEngine.command(o,e,r,i)}else this._transitionEngine.trigger(s,e,n,i)}listen(s,e,n,i,o){if("@"==n.charAt(0)){const[r,u]=eS(n);return this._timelineEngine.listen(r,e,u,o)}return this._transitionEngine.listen(s,e,n,i,o)}flush(s=-1){this._transitionEngine.flush(s)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(s){this._transitionEngine.afterFlushAnimationsDone(s)}}let VN=(()=>{class t{static#e=this.initialStylesByElement=new WeakMap;constructor(e,n,i){this._element=e,this._startStyles=n,this._endStyles=i,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&&_s(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(_s(this._element,this._initialStyles),this._endStyles&&(_s(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Ko(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ko(this._element,this._endStyles),this._endStyles=null),_s(this._element,this._initialStyles),this._state=3)}}return t})();function x_(t){let s=null;return t.forEach((e,n)=>{(function BN(t){return"display"===t||"position"===t})(n)&&(s=s||new Map,s.set(n,e))}),s}class IS{constructor(s,e,n,i){this.element=s,this.keyframes=e,this.options=n,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(s=>s()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const s=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,s,this.options),this._finalKeyframe=s.length?s[s.length-1]:new Map;const e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(s){const e=[];return s.forEach(n=>{e.push(Object.fromEntries(n))}),e}_triggerWebAnimation(s,e,n){return s.animate(this._convertKeyframesToObject(e),n)}onStart(s){this._originalOnStartFns.push(s),this._onStartFns.push(s)}onDone(s){this._originalOnDoneFns.push(s),this._onDoneFns.push(s)}onDestroy(s){this._onDestroyFns.push(s)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(s=>s()),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(s=>s()),this._onDestroyFns=[])}setPosition(s){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=s*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const s=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,i)=>{"offset"!==i&&s.set(i,this._finished?n:uS(this.element,i))}),this.currentSnapshot=s}triggerCallback(s){const e="start"===s?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class HN{validateStyleProperty(s){return!0}validateAnimatableStyleProperty(s){return!0}matchesElement(s,e){return!1}containsElement(s,e){return nS(s,e)}getParentElement(s){return l_(s)}query(s,e,n){return iS(s,e,n)}computeStyle(s,e,n){return window.getComputedStyle(s)[e]}animate(s,e,n,i,o,r=[]){const h={duration:n,delay:i,fill:0==i?"both":"forwards"};o&&(h.easing=o);const b=new Map,T=r.filter(L=>L instanceof IS);(function WF(t,s){return 0===t||0===s})(n,i)&&T.forEach(L=>{L.currentSnapshot.forEach((O,A)=>b.set(A,O))});let w=function UF(t){return t.length?t[0]instanceof Map?t:t.map(s=>aS(s)):[]}(e).map(L=>uo(L));w=function KF(t,s,e){if(e.size&&s.length){let n=s[0],i=[];if(e.forEach((o,r)=>{n.has(r)||i.push(r),n.set(r,o)}),i.length)for(let o=1;or.set(u,uS(t,u)))}}return s}(s,w,b);const k=function NN(t,s){let e=null,n=null;return Array.isArray(s)&&s.length?(e=x_(s[0]),s.length>1&&(n=x_(s[s.length-1]))):s instanceof Map&&(e=x_(s)),e||n?new VN(t,e,n):null}(s,w);return new IS(s,w,h,k)}}let GN=(()=>{class t extends Q3{constructor(e,n){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(n.body,{id:"0",encapsulation:Di.None,styles:[],data:{animation:[]}})}build(e){const n=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(e)?J3(e):e;return xS(this._renderer,null,n,"register",[i]),new qN(n,this._renderer)}static#e=this.\u0275fac=function(n){return new(n||t)(ie(al),ie(ut))};static#t=this.\u0275prov=ae({token:t,factory:t.\u0275fac})}return t})();class qN extends eF{constructor(s,e){super(),this._id=s,this._renderer=e}create(s,e){return new zN(this._id,s,e||{},this._renderer)}}class zN{constructor(s,e,n,i){this.id=s,this.element=e,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(s,e){return this._renderer.listen(this.element,`@@${this.id}:${s}`,e)}_command(s,...e){return xS(this._renderer,this.element,this.id,s,e)}onDone(s){this._listen("done",s)}onStart(s){this._listen("start",s)}onDestroy(s){this._listen("destroy",s)}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(s){this._command("setPosition",s)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function xS(t,s,e,n,i){return t.setProperty(s,`@@${e}:${n}`,i)}const DS="@.disabled";let UN=(()=>{class t{constructor(e,n,i){this.delegate=e,this.engine=n,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,n.onRemovalComplete=(o,r)=>{const u=r?.parentNode(o);u&&r.removeChild(u,o)}}createRenderer(e,n){const o=this.delegate.createRenderer(e,n);if(!(e&&n&&n.data&&n.data.animation)){let T=this._rendererCache.get(o);return T||(T=new MS("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,T)),T}const r=n.id,u=n.id+"-"+this._currentId;this._currentId++,this.engine.register(u,e);const h=T=>{Array.isArray(T)?T.forEach(h):this.engine.registerTrigger(r,u,e,T.name,T)};return n.data.animation.forEach(h),new jN(this,u,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,n,i){e>=0&&en(i)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[r,u]=o;r(u)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([n,i]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}static#e=this.\u0275fac=function(n){return new(n||t)(ie(al),ie(pp),ie(We))};static#t=this.\u0275prov=ae({token:t,factory:t.\u0275fac})}return t})();class MS{constructor(s,e,n,i){this.namespaceId=s,this.delegate=e,this.engine=n,this._onDestroy=i}get data(){return this.delegate.data}destroyNode(s){this.delegate.destroyNode?.(s)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(s,e){return this.delegate.createElement(s,e)}createComment(s){return this.delegate.createComment(s)}createText(s){return this.delegate.createText(s)}appendChild(s,e){this.delegate.appendChild(s,e),this.engine.onInsert(this.namespaceId,e,s,!1)}insertBefore(s,e,n,i=!0){this.delegate.insertBefore(s,e,n),this.engine.onInsert(this.namespaceId,e,s,i)}removeChild(s,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(s,e){return this.delegate.selectRootElement(s,e)}parentNode(s){return this.delegate.parentNode(s)}nextSibling(s){return this.delegate.nextSibling(s)}setAttribute(s,e,n,i){this.delegate.setAttribute(s,e,n,i)}removeAttribute(s,e,n){this.delegate.removeAttribute(s,e,n)}addClass(s,e){this.delegate.addClass(s,e)}removeClass(s,e){this.delegate.removeClass(s,e)}setStyle(s,e,n,i){this.delegate.setStyle(s,e,n,i)}removeStyle(s,e,n){this.delegate.removeStyle(s,e,n)}setProperty(s,e,n){"@"==e.charAt(0)&&e==DS?this.disableAnimations(s,!!n):this.delegate.setProperty(s,e,n)}setValue(s,e){this.delegate.setValue(s,e)}listen(s,e,n){return this.delegate.listen(s,e,n)}disableAnimations(s,e){this.engine.disableAnimations(s,e)}}class jN extends MS{constructor(s,e,n,i,o){super(e,n,i,o),this.factory=s,this.namespaceId=e}setProperty(s,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&e==DS?this.disableAnimations(s,n=void 0===n||!!n):this.engine.process(this.namespaceId,s,e.slice(1),n):this.delegate.setProperty(s,e,n)}listen(s,e,n){if("@"==e.charAt(0)){const i=function $N(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(s);let o=e.slice(1),r="";return"@"!=o.charAt(0)&&([o,r]=function WN(t){const s=t.indexOf(".");return[t.substring(0,s),t.slice(s+1)]}(o)),this.engine.listen(this.namespaceId,i,o,r,u=>{this.factory.scheduleListenerCallback(u._data||-1,n,u)})}return this.delegate.listen(s,e,n)}}const kS=[{provide:Q3,useClass:GN},{provide:C_,useFactory:function QN(){return new mN}},{provide:pp,useClass:(()=>{class t extends pp{constructor(e,n,i,o){super(e.body,n,i)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(n){return new(n||t)(ie(ut),ie(c_),ie(C_),ie(Vo))};static#t=this.\u0275prov=ae({token:t,factory:t.\u0275fac})}return t})()},{provide:al,useFactory:function JN(t,s,e){return new UN(t,s,e)},deps:[Sg,pp,We]}],D_=[{provide:c_,useFactory:()=>new HN},{provide:_C,useValue:"BrowserAnimations"},...kS],ES=[{provide:c_,useClass:sS},{provide:_C,useValue:"NoopAnimations"},...kS];let ZN=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?ES:D_}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=ge({type:t});static#n=this.\u0275inj=me({providers:D_,imports:[gw]})}return t})();class Y{static equals(s,e,n){return n?this.resolveFieldData(s,n)===this.resolveFieldData(e,n):this.equalsByValue(s,e)}static equalsByValue(s,e){if(s===e)return!0;if(s&&e&&"object"==typeof s&&"object"==typeof e){var o,r,u,n=Array.isArray(s),i=Array.isArray(e);if(n&&i){if((r=s.length)!=e.length)return!1;for(o=r;0!=o--;)if(!this.equalsByValue(s[o],e[o]))return!1;return!0}if(n!=i)return!1;var h=this.isDate(s),b=this.isDate(e);if(h!=b)return!1;if(h&&b)return s.getTime()==e.getTime();var T=s instanceof RegExp,w=e instanceof RegExp;if(T!=w)return!1;if(T&&w)return s.toString()==e.toString();var k=Object.keys(s);if((r=k.length)!==Object.keys(e).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(e,k[o]))return!1;for(o=r;0!=o--;)if(!this.equalsByValue(s[u=k[o]],e[u]))return!1;return!0}return s!=s&&e!=e}static resolveFieldData(s,e){if(s&&e){if(this.isFunction(e))return e(s);if(-1==e.indexOf("."))return s[e];{let n=e.split("."),i=s;for(let o=0,r=n.length;o=s.length&&(n%=s.length,e%=s.length),s.splice(n,0,s.splice(e,1)[0]))}static insertIntoOrderedArray(s,e,n,i){if(n.length>0){let o=!1;for(let r=0;re){n.splice(r,0,s),o=!0;break}o||n.push(s)}else n.push(s)}static findIndexInList(s,e){let n=-1;if(e)for(let i=0;i-1&&(s=s.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")),s}static isDate(s){return"[object Date]"===Object.prototype.toString.call(s)}static isEmpty(s){return null==s||""===s||Array.isArray(s)&&0===s.length||!this.isDate(s)&&"object"==typeof s&&0===Object.keys(s).length}static isNotEmpty(s){return!this.isEmpty(s)}static compare(s,e,n,i=1){let o=-1;const r=this.isEmpty(s),u=this.isEmpty(e);return o=r&&u?0:r?i:u?-i:"string"==typeof s&&"string"==typeof e?s.localeCompare(e,n,{numeric:!0}):se?1:0,o}static sort(s,e,n=1,i,o=1){return(1===o?n:o)*Y.compare(s,e,i,n)}static merge(s,e){if(null!=s||null!=e)return null!=s&&"object"!=typeof s||null!=e&&"object"!=typeof e?null!=s&&"string"!=typeof s||null!=e&&"string"!=typeof e?e||s:[s||"",e||""].join(" "):{...s||{},...e||{}}}static isPrintableCharacter(s=""){return this.isNotEmpty(s)&&1===s.length&&s.match(/\S| /)}static getItemValue(s,...e){return this.isFunction(s)?s(...e):s}static findLastIndex(s,e){let n=-1;if(this.isNotEmpty(s))try{n=s.findLastIndex(e)}catch{n=s.lastIndexOf([...s].reverse().find(e))}return n}static findLast(s,e){let n;if(this.isNotEmpty(s))try{n=s.findLast(e)}catch{n=[...s].reverse().find(e)}return n}}var LS=0;function Vt(t="pn_id_"){return`${t}${++LS}`}var Rt=function YN(){let t=[];const i=o=>o&&parseInt(o.style.zIndex,10)||0;return{get:i,set:(o,r,u)=>{r&&(r.style.zIndex=String(((o,r)=>{let u=t.length>0?t[t.length-1]:{key:o,value:r},h=u.value+(u.key===o?0:r)+2;return t.push({key:o,value:h}),h})(o,u)))},clear:o=>{o&&((o=>{t=t.filter(r=>r.value!==o)})(i(o)),o.style.zIndex="")},getCurrent:()=>t.length>0?t[t.length-1].value:0}}();const RS=["*"];let qt=(()=>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"})(),Xl=(()=>class t{static AND="and";static OR="or"})(),ec=(()=>{class t{filter(e,n,i,o,r){let u=[];if(e)for(let h of e)for(let b of n){let T=Y.resolveFieldData(h,b);if(this.filters[o](T,i,r)){u.push(h);break}}return u}filters={startsWith:(e,n,i)=>{if(null==n||""===n.trim())return!0;if(null==e)return!1;let o=Y.removeAccents(n.toString()).toLocaleLowerCase(i);return Y.removeAccents(e.toString()).toLocaleLowerCase(i).slice(0,o.length)===o},contains:(e,n,i)=>{if(null==n||"string"==typeof n&&""===n.trim())return!0;if(null==e)return!1;let o=Y.removeAccents(n.toString()).toLocaleLowerCase(i);return-1!==Y.removeAccents(e.toString()).toLocaleLowerCase(i).indexOf(o)},notContains:(e,n,i)=>{if(null==n||"string"==typeof n&&""===n.trim())return!0;if(null==e)return!1;let o=Y.removeAccents(n.toString()).toLocaleLowerCase(i);return-1===Y.removeAccents(e.toString()).toLocaleLowerCase(i).indexOf(o)},endsWith:(e,n,i)=>{if(null==n||""===n.trim())return!0;if(null==e)return!1;let o=Y.removeAccents(n.toString()).toLocaleLowerCase(i),r=Y.removeAccents(e.toString()).toLocaleLowerCase(i);return-1!==r.indexOf(o,r.length-o.length)},equals:(e,n,i)=>null==n||"string"==typeof n&&""===n.trim()||null!=e&&(e.getTime&&n.getTime?e.getTime()===n.getTime():Y.removeAccents(e.toString()).toLocaleLowerCase(i)==Y.removeAccents(n.toString()).toLocaleLowerCase(i)),notEquals:(e,n,i)=>!(null==n||"string"==typeof n&&""===n.trim()||null!=e&&(e.getTime&&n.getTime?e.getTime()===n.getTime():Y.removeAccents(e.toString()).toLocaleLowerCase(i)==Y.removeAccents(n.toString()).toLocaleLowerCase(i))),in:(e,n)=>{if(null==n||0===n.length)return!0;for(let i=0;inull==n||null==n[0]||null==n[1]||null!=e&&(e.getTime?n[0].getTime()<=e.getTime()&&e.getTime()<=n[1].getTime():n[0]<=e&&e<=n[1]),lt:(e,n,i)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()<=n.getTime():e<=n),gt:(e,n,i)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()>n.getTime():e>n),gte:(e,n,i)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()>=n.getTime():e>=n),is:(e,n,i)=>this.filters.equals(e,n,i),isNot:(e,n,i)=>this.filters.notEquals(e,n,i),before:(e,n,i)=>this.filters.lt(e,n,i),after:(e,n,i)=>this.filters.gt(e,n,i),dateIs:(e,n)=>null==n||null!=e&&e.toDateString()===n.toDateString(),dateIsNot:(e,n)=>null==n||null!=e&&e.toDateString()!==n.toDateString(),dateBefore:(e,n)=>null==n||null!=e&&e.getTime()null==n||null!=e&&e.getTime()>n.getTime()};register(e,n){this.filters[e]=n}static \u0275fac=function(n){return new(n||t)};static \u0275prov=ae({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),es=(()=>{class t{messageSource=new Jt;clearSource=new Jt;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(n){return new(n||t)};static \u0275prov=ae({token:t,factory:t.\u0275fac})}return t})(),po=(()=>{class t{clickSource=new Jt;clickObservable=this.clickSource.asObservable();add(e){e&&this.clickSource.next(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=ae({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Hn=(()=>{class t{ripple=!1;overlayOptions={};filterMatchModeOptions={text:[qt.STARTS_WITH,qt.CONTAINS,qt.NOT_CONTAINS,qt.ENDS_WITH,qt.EQUALS,qt.NOT_EQUALS],numeric:[qt.EQUALS,qt.NOT_EQUALS,qt.LESS_THAN,qt.LESS_THAN_OR_EQUAL_TO,qt.GREATER_THAN,qt.GREATER_THAN_OR_EQUAL_TO],date:[qt.DATE_IS,qt.DATE_IS_NOT,qt.DATE_BEFORE,qt.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 Jt;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(n){return new(n||t)};static \u0275prov=ae({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),pa=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=z({type:t,selectors:[["p-header"]],ngContentSelectors:RS,decls:1,vars:0,template:function(n,i){1&n&&(_n(),Dt(0))},encapsulation:2})}return t})(),tc=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=z({type:t,selectors:[["p-footer"]],ngContentSelectors:RS,decls:1,vars:0,template:function(n,i){1&n&&(_n(),Dt(0))},encapsulation:2})}return t})(),oe=(()=>{class t{template;type;name;constructor(e){this.template=e}getType(){return this.name}static \u0275fac=function(n){return new(n||t)(M(Wi))};static \u0275dir=fe({type:t,selectors:[["","pTemplate",""]],inputs:{type:"type",name:["pTemplate","name"]}})}return t})(),je=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=me({imports:[qe]})}return t})(),$t=(()=>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"})(),R=(()=>{class t{static zindex=1e3;static calculatedScrollbarWidth=null;static calculatedScrollbarHeight=null;static browser;static addClass(e,n){e&&n&&(e.classList?e.classList.add(n):e.className+=" "+n)}static addMultipleClasses(e,n){if(e&&n)if(e.classList){let i=n.trim().split(" ");for(let o=0;o{if(U)return"relative"===getComputedStyle(U).getPropertyValue("position")?U:i(U.parentElement)},o=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),r=n.offsetHeight,u=n.getBoundingClientRect(),h=this.getWindowScrollTop(),b=this.getWindowScrollLeft(),T=this.getViewport(),k=i(e)?.getBoundingClientRect()||{top:-1*h,left:-1*b};let L,O;u.top+r+o.height>T.height?(L=u.top-k.top-o.height,e.style.transformOrigin="bottom",u.top+L<0&&(L=-1*u.top)):(L=r+u.top-k.top,e.style.transformOrigin="top");const A=u.left+o.width-T.width;O=o.width>T.width?-1*(u.left-k.left):A>0?u.left-k.left-A:u.left-k.left,e.style.top=L+"px",e.style.left=O+"px"}static absolutePosition(e,n){const i=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),o=i.height,r=i.width,u=n.offsetHeight,h=n.offsetWidth,b=n.getBoundingClientRect(),T=this.getWindowScrollTop(),w=this.getWindowScrollLeft(),k=this.getViewport();let L,O;b.top+u+o>k.height?(L=b.top+T-o,e.style.transformOrigin="bottom",L<0&&(L=T)):(L=u+b.top+T,e.style.transformOrigin="top"),O=b.left+r>k.width?Math.max(0,b.left+w+h-r):b.left+w,e.style.top=L+"px",e.style.left=O+"px"}static getParents(e,n=[]){return null===e.parentNode?n:this.getParents(e.parentNode,n.concat([e.parentNode]))}static getScrollableParents(e){let n=[];if(e){let i=this.getParents(e);const o=/(auto|scroll)/,r=u=>{let h=window.getComputedStyle(u,null);return o.test(h.getPropertyValue("overflow"))||o.test(h.getPropertyValue("overflowX"))||o.test(h.getPropertyValue("overflowY"))};for(let u of i){let h=1===u.nodeType&&u.dataset.scrollselectors;if(h){let b=h.split(",");for(let T of b){let w=this.findSingle(u,T);w&&r(w)&&n.push(w)}}9!==u.nodeType&&r(u)&&n.push(u)}}return n}static getHiddenElementOuterHeight(e){e.style.visibility="hidden",e.style.display="block";let n=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",n}static getHiddenElementOuterWidth(e){e.style.visibility="hidden",e.style.display="block";let n=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",n}static getHiddenElementDimensions(e){let n={};return e.style.visibility="hidden",e.style.display="block",n.width=e.offsetWidth,n.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",n}static scrollInView(e,n){let i=getComputedStyle(e).getPropertyValue("borderTopWidth"),o=i?parseFloat(i):0,r=getComputedStyle(e).getPropertyValue("paddingTop"),u=r?parseFloat(r):0,h=e.getBoundingClientRect(),T=n.getBoundingClientRect().top+document.body.scrollTop-(h.top+document.body.scrollTop)-o-u,w=e.scrollTop,k=e.clientHeight,L=this.getOuterHeight(n);T<0?e.scrollTop=w+T:T+L>k&&(e.scrollTop=w+T-k+L)}static fadeIn(e,n){e.style.opacity=0;let i=+new Date,o=0,r=function(){o=+e.style.opacity.replace(",",".")+((new Date).getTime()-i)/n,e.style.opacity=o,i=+new Date,+o<1&&(window.requestAnimationFrame&&requestAnimationFrame(r)||setTimeout(r,16))};r()}static fadeOut(e,n){var i=1,u=50/n;let h=setInterval(()=>{(i-=u)<=0&&(i=0,clearInterval(h)),e.style.opacity=i},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,n){var i=Element.prototype;return(i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.msMatchesSelector||function(r){return-1!==[].indexOf.call(document.querySelectorAll(r),this)}).call(e,n)}static getOuterWidth(e,n){let i=e.offsetWidth;if(n){let o=getComputedStyle(e);i+=parseFloat(o.marginLeft)+parseFloat(o.marginRight)}return i}static getHorizontalPadding(e){let n=getComputedStyle(e);return parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)}static getHorizontalMargin(e){let n=getComputedStyle(e);return parseFloat(n.marginLeft)+parseFloat(n.marginRight)}static innerWidth(e){let n=e.offsetWidth,i=getComputedStyle(e);return n+=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight),n}static width(e){let n=e.offsetWidth,i=getComputedStyle(e);return n-=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight),n}static getInnerHeight(e){let n=e.offsetHeight,i=getComputedStyle(e);return n+=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom),n}static getOuterHeight(e,n){let i=e.offsetHeight;if(n){let o=getComputedStyle(e);i+=parseFloat(o.marginTop)+parseFloat(o.marginBottom)}return i}static getHeight(e){let n=e.offsetHeight,i=getComputedStyle(e);return n-=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom)+parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),n}static getWidth(e){let n=e.offsetWidth,i=getComputedStyle(e);return n-=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight)+parseFloat(i.borderLeftWidth)+parseFloat(i.borderRightWidth),n}static getViewport(){let e=window,n=document,i=n.documentElement,o=n.getElementsByTagName("body")[0];return{width:e.innerWidth||i.clientWidth||o.clientWidth,height:e.innerHeight||i.clientHeight||o.clientHeight}}static getOffset(e){var n=e.getBoundingClientRect();return{top:n.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:n.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(e,n){let i=e.parentNode;if(!i)throw"Can't replace element";return i.replaceChild(n,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,n){if(this.isElement(n))n.appendChild(e);else{if(!(n&&n.el&&n.el.nativeElement))throw"Cannot append "+n+" to "+e;n.el.nativeElement.appendChild(e)}}static removeChild(e,n){if(this.isElement(n))n.removeChild(e);else{if(!n.el||!n.el.nativeElement)throw"Cannot remove "+e+" from "+n;n.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 n=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(n.borderLeftWidth)-parseFloat(n.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let n=document.createElement("div");n.className="p-scrollbar-measure",document.body.appendChild(n);let i=n.offsetWidth-n.clientWidth;return document.body.removeChild(n),this.calculatedScrollbarWidth=i,i}}static calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return this.calculatedScrollbarHeight;let e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let n=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),this.calculatedScrollbarWidth=n,n}static invokeElementMethod(e,n,i){e[n].apply(e,i)}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(),n=/(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:n[1]||"",version:n[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,n){e&&document.activeElement!==e&&e.focus(n)}static getFocusableElements(e){let n=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)'),i=[];for(let o of n)(o.offsetWidth||o.offsetHeight||o.getClientRects().length)&&i.push(o);return i}static getNextFocusableElement(e,n=!1){const i=t.getFocusableElements(e);let o=0;if(i&&i.length>0){const r=i.indexOf(i[0].ownerDocument.activeElement);n?o=-1==r||0===r?i.length-1:r-1:-1!=r&&r!==i.length-1&&(o=r+1)}return i[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,n){if(!e)return null;switch(e){case"document":return document;case"window":return window;case"@next":return n?.nextElementSibling;case"@prev":return n?.previousElementSibling;case"@parent":return n?.parentElement;case"@grandparent":return n?.parentElement.parentElement;default:const i=typeof e;if("string"===i)return document.querySelector(e);if("object"===i&&e.hasOwnProperty("nativeElement"))return this.isExist(e.nativeElement)?e.nativeElement:void 0;const r=(u=e)&&u.constructor&&u.call&&u.apply?e():e;return r&&9===r.nodeType||this.isExist(r)?r:null}var u}static isClient(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}static getAttribute(e,n){if(e){const i=e.getAttribute(n);return isNaN(i)?"true"===i||"false"===i?"true"===i:i:+i}}}return t})();class Jo{element;listener;scrollableParents;constructor(s,e=(()=>{})){this.element=s,this.listener=e}bindScrollListener(){this.scrollableParents=R.getScrollableParents(this.element);for(let s=0;s{class t{label;spin=!1;styleClass;role;ariaLabel;ariaHidden;ngOnInit(){this.getAttributes()}getAttributes(){const e=Y.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(n){return new(n||t)};static \u0275cmp=z({type:t,selectors:[["ng-component"]],hostAttrs:[1,"p-element","p-icon-wrapper"],inputs:{label:"label",spin:"spin",styleClass:"styleClass"},standalone:!0,features:[rt],ngContentSelectors:eV,decls:1,vars:0,template:function(n,i){1&n&&(_n(),Dt(0))},encapsulation:2,changeDetection:0})}return t})(),ho=(()=>{class t extends bt{static \u0275fac=function(){let e;return function(i){return(e||(e=Ie(t)))(i||t)}}();static \u0275cmp=z({type:t,selectors:[["ChevronDownIcon"]],standalone:!0,features:[_e,rt],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(n,i){1&n&&(ct(),l(0,"svg",0),D(1,"path",1),c()),2&n&&(se(i.getClassNames()),F("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role))},encapsulation:2})}return t})(),ha=(()=>{class t extends bt{static \u0275fac=function(){let e;return function(i){return(e||(e=Ie(t)))(i||t)}}();static \u0275cmp=z({type:t,selectors:[["ChevronRightIcon"]],standalone:!0,features:[_e,rt],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(n,i){1&n&&(ct(),l(0,"svg",0),D(1,"path",1),c()),2&n&&(se(i.getClassNames()),F("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role))},encapsulation:2})}return t})();function tV(t,s){if(1&t&&D(0,"span",11),2&t){const e=p(3);se(e.accordion.collapseIcon),d("ngClass",e.iconClass),F("aria-hidden",!0)}}function nV(t,s){1&t&&D(0,"ChevronDownIcon",11),2&t&&(d("ngClass",p(3).iconClass),F("aria-hidden",!0))}function iV(t,s){if(1&t&&(Q(0),f(1,tV,1,4,"span",9),f(2,nV,1,2,"ChevronDownIcon",10),J()),2&t){const e=p(2);a(1),d("ngIf",e.accordion.collapseIcon),a(1),d("ngIf",!e.accordion.collapseIcon)}}function sV(t,s){if(1&t&&D(0,"span",11),2&t){const e=p(3);se(e.accordion.expandIcon),d("ngClass",e.iconClass),F("aria-hidden",!0)}}function oV(t,s){1&t&&D(0,"ChevronRightIcon",11),2&t&&(d("ngClass",p(3).iconClass),F("aria-hidden",!0))}function rV(t,s){if(1&t&&(Q(0),f(1,sV,1,4,"span",9),f(2,oV,1,2,"ChevronRightIcon",10),J()),2&t){const e=p(2);a(1),d("ngIf",e.accordion.expandIcon),a(1),d("ngIf",!e.accordion.expandIcon)}}function aV(t,s){if(1&t&&(Q(0),f(1,iV,3,2,"ng-container",3),f(2,rV,3,2,"ng-container",3),J()),2&t){const e=p();a(1),d("ngIf",e.selected),a(1),d("ngIf",!e.selected)}}function lV(t,s){}function cV(t,s){1&t&&f(0,lV,0,0,"ng-template")}function uV(t,s){if(1&t&&(l(0,"span",12),_(1),c()),2&t){const e=p();a(1),S(" ",e.header," ")}}function dV(t,s){1&t&&Z(0)}function pV(t,s){1&t&&Dt(0,1,["*ngIf","hasHeaderFacet"])}function hV(t,s){1&t&&Z(0)}function mV(t,s){if(1&t&&(Q(0),f(1,hV,1,0,"ng-container",6),J()),2&t){const e=p();a(1),d("ngTemplateOutlet",e.contentTemplate)}}const fV=["*",[["p-header"]]],gV=function(t){return{$implicit:t}},OS=function(t){return{transitionParams:t}},_V=function(t){return{value:"visible",params:t}},bV=function(t){return{value:"hidden",params:t}},vV=["*","p-header"],CV=["*"];let bs=(()=>{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 q;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,n,i){this.el=n,this.changeDetector=i,this.accordion=e,this.id=Vt()}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 n=this.findTabIndex();if(this.selected)this.selected=!1,this.accordion.onClose.emit({originalEvent:e,index:n});else{if(!this.accordion.multiple)for(var i=0;i0}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(n){return new(n||t)(M(Ze(()=>vs)),M(He),M(at))};static \u0275cmp=z({type:t,selectors:[["p-accordionTab"]],contentQueries:function(n,i,o){if(1&n&&(Ye(o,pa,4),Ye(o,oe,4)),2&n){let r;B(r=H())&&(i.headerFacet=r),B(r=H())&&(i.templates=r)}},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:vV,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(n,i){1&n&&(_n(fV),l(0,"div",0)(1,"div",1)(2,"a",2),v("click",function(r){return i.toggle(r)})("keydown",function(r){return i.onKeydown(r)}),f(3,aV,3,2,"ng-container",3),f(4,cV,1,0,null,4),f(5,uV,2,1,"span",5),f(6,dV,1,0,"ng-container",6),f(7,pV,1,0,"ng-content",3),c()(),l(8,"div",7)(9,"div",8),Dt(10),f(11,mV,2,1,"ng-container",3),c()()()),2&n&&(Jn("p-accordion-tab-active",i.selected),d("ngClass",i.tabStyleClass)("ngStyle",i.tabStyle),F("data-pc-name","accordiontab"),a(1),Jn("p-highlight",i.selected)("p-disabled",i.disabled),F("aria-level",i.headerAriaLevel)("data-p-disabled",i.disabled)("data-pc-section","header"),a(1),j(i.headerStyle),d("ngClass",i.headerStyleClass),F("tabindex",i.disabled?null:0)("id",i.getTabHeaderActionId(i.id))("aria-controls",i.getTabContentId(i.id))("aria-expanded",i.selected)("aria-disabled",i.disabled)("data-pc-section","headeraction"),a(1),d("ngIf",!i.iconTemplate),a(1),d("ngTemplateOutlet",i.iconTemplate)("ngTemplateOutletContext",K(35,gV,i.selected)),a(1),d("ngIf",!i.hasHeaderFacet),a(1),d("ngTemplateOutlet",i.headerTemplate),a(1),d("ngIf",i.hasHeaderFacet),a(1),d("@tabContent",i.selected?K(39,_V,K(37,OS,i.transitionOptions)):K(43,bV,K(41,OS,i.transitionOptions))),F("id",i.getTabContentId(i.id))("aria-hidden",!i.selected)("aria-labelledby",i.getTabHeaderActionId(i.id))("data-pc-section","toggleablecontent"),a(1),d("ngClass",i.contentStyleClass)("ngStyle",i.contentStyle),a(2),d("ngIf",i.contentTemplate&&(i.cache?i.loaded:i.selected)))},dependencies:function(){return[Ge,ne,pt,nt,ha,ho]},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:[Yi("tabContent",[qs("hidden",Tt({height:"0"})),qs("visible",Tt({height:"*"})),Xt("visible <=> hidden",[jt("{{transitionParams}}")]),Xt("void => *",jt(0))])]},changeDetection:0})}return t})(),vs=(()=>{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 q;onOpen=new q;activeIndexChange=new q;tabList;tabListSubscription=null;_activeIndex;_headerAriaLevel=2;preventActiveIndexPropagation=!1;tabs=[];constructor(e,n){this.el=e,this.changeDetector=n}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 n=this.findNextHeaderAction(e.target.parentElement.parentElement.parentElement);n?this.changeFocusedTab(n):this.onTabHomeKey(e),e.preventDefault()}onTabArrowUpKey(e){const n=this.findPrevHeaderAction(e.target.parentElement.parentElement.parentElement);n?this.changeFocusedTab(n):this.onTabEndKey(e),e.preventDefault()}onTabHomeKey(e){const n=this.findFirstHeaderAction();this.changeFocusedTab(n),e.preventDefault()}changeFocusedTab(e){e&&(R.focus(e),this.selectOnFocus&&this.tabs.forEach((n,i)=>{let o=this.multiple?this._activeIndex.includes(i):i===this._activeIndex;this.multiple?(this._activeIndex||(this._activeIndex=[]),n.id==e.id&&(n.selected=!n.selected,this._activeIndex.includes(i)?this._activeIndex=this._activeIndex.filter(r=>r!==i):this._activeIndex.push(i))):n.id==e.id?(n.selected=!n.selected,this._activeIndex=i):n.selected=!1,n.selectedChange.emit(o),this.activeIndexChange.emit(this._activeIndex),n.changeDetector.markForCheck()}))}findNextHeaderAction(e,n=!1){const o=R.findSingle(n?e:e.nextElementSibling,'[data-pc-section="header"]');return o?R.getAttribute(o,"data-p-disabled")?this.findNextHeaderAction(o.parentElement.parentElement):R.findSingle(o,'[data-pc-section="headeraction"]'):null}findPrevHeaderAction(e,n=!1){const o=R.findSingle(n?e:e.previousElementSibling,'[data-pc-section="header"]');return o?R.getAttribute(o,"data-p-disabled")?this.findPrevHeaderAction(o.parentElement.parentElement):R.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 n=this.findLastHeaderAction();this.changeFocusedTab(n),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(n.selected){if(!this.multiple)return void(e=i);e.push(i)}}),this.preventActiveIndexPropagation=!0,this.activeIndexChange.emit(e)}ngOnDestroy(){this.tabListSubscription&&this.tabListSubscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)(M(He),M(at))};static \u0275cmp=z({type:t,selectors:[["p-accordion"]],contentQueries:function(n,i,o){if(1&n&&Ye(o,bs,4),2&n){let r;B(r=H())&&(i.tabList=r)}},hostAttrs:[1,"p-element"],hostBindings:function(n,i){1&n&&v("keydown",function(r){return i.onKeydown(r)})},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(n,i){1&n&&(_n(),l(0,"div",0),Dt(1),c()),2&n&&(se(i.styleClass),d("ngClass","p-accordion p-component")("ngStyle",i.style))},dependencies:[Ge,nt],encapsulation:2,changeDetection:0})}return t})(),yV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=me({imports:[qe,ha,ho,je]})}return t})(),mo=(()=>{class t extends bt{pathId;ngOnInit(){this.pathId="url(#"+Vt()+")"}static \u0275fac=function(){let e;return function(i){return(e||(e=Ie(t)))(i||t)}}();static \u0275cmp=z({type:t,selectors:[["SpinnerIcon"]],standalone:!0,features:[_e,rt],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(n,i){1&n&&(ct(),l(0,"svg",0)(1,"g"),D(2,"path",1),c(),l(3,"defs")(4,"clipPath",2),D(5,"rect",3),c()()()),2&n&&(se(i.getClassNames()),F("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role),a(1),F("clip-path",i.pathId),a(3),d("id",i.pathId))},encapsulation:2})}return t})(),vt=(()=>{class t{document;platformId;renderer;el;zone;config;constructor(e,n,i,o,r,u){this.document=e,this.platformId=n,this.renderer=i,this.el=o,this.zone=r,this.config=u}animationListener;mouseDownListener;timeout;ngAfterViewInit(){vn(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 n=this.getInk();if(!n||"none"===this.document.defaultView?.getComputedStyle(n,null).display)return;if(R.removeClass(n,"p-ink-active"),!R.getHeight(n)&&!R.getWidth(n)){let u=Math.max(R.getOuterWidth(this.el.nativeElement),R.getOuterHeight(this.el.nativeElement));n.style.height=u+"px",n.style.width=u+"px"}let i=R.getOffset(this.el.nativeElement),o=e.pageX-i.left+this.document.body.scrollTop-R.getWidth(n)/2,r=e.pageY-i.top+this.document.body.scrollLeft-R.getHeight(n)/2;this.renderer.setStyle(n,"top",r+"px"),this.renderer.setStyle(n,"left",o+"px"),R.addClass(n,"p-ink-active"),this.timeout=setTimeout(()=>{let u=this.getInk();u&&R.removeClass(u,"p-ink-active")},401)}getInk(){const e=this.el.nativeElement.children;for(let n=0;n{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=me({imports:[qe]})}return t})();function TV(t,s){1&t&&Z(0)}function wV(t,s){if(1&t&&D(0,"span",8),2&t){const e=p(3);se("p-button-loading-icon pi-spin "+e.loadingIcon),d("ngClass",e.iconClass()),F("aria-hidden",!0)("data-pc-section","loadingicon")}}function SV(t,s){1&t&&D(0,"SpinnerIcon",9),2&t&&(d("styleClass",p(3).spinnerIconClass())("spin",!0),F("aria-hidden",!0)("data-pc-section","loadingicon"))}function IV(t,s){if(1&t&&(Q(0),f(1,wV,1,5,"span",6),f(2,SV,1,4,"SpinnerIcon",7),J()),2&t){const e=p(2);a(1),d("ngIf",e.loadingIcon),a(1),d("ngIf",!e.loadingIcon)}}function xV(t,s){}function DV(t,s){1&t&&f(0,xV,0,0,"ng-template")}function MV(t,s){if(1&t&&(l(0,"span",10),f(1,DV,1,0,null,1),c()),2&t){const e=p(2);d("ngClass",e.iconClass()),F("aria-hidden",!0)("data-pc-section","loadingicon"),a(1),d("ngTemplateOutlet",e.loadingIconTemplate)}}function kV(t,s){if(1&t&&(Q(0),f(1,IV,3,2,"ng-container",2),f(2,MV,2,4,"span",5),J()),2&t){const e=p();a(1),d("ngIf",!e.loadingIconTemplate),a(1),d("ngIf",e.loadingIconTemplate)}}function EV(t,s){if(1&t&&D(0,"span",8),2&t){const e=p(2);se(e.icon),d("ngClass",e.iconClass()),F("data-pc-section","icon")}}function LV(t,s){}function RV(t,s){1&t&&f(0,LV,0,0,"ng-template",12),2&t&&d("ngIf",!p(3).icon)}function OV(t,s){if(1&t&&(l(0,"span",8),f(1,RV,1,1,null,1),c()),2&t){const e=p(2);d("ngClass",e.iconClass()),F("data-pc-section","icon"),a(1),d("ngTemplateOutlet",e.iconTemplate)}}function AV(t,s){if(1&t&&(Q(0),f(1,EV,1,4,"span",6),f(2,OV,2,3,"span",11),J()),2&t){const e=p();a(1),d("ngIf",e.icon&&!e.iconTemplate),a(1),d("ngIf",!e.icon&&e.iconTemplate)}}function PV(t,s){if(1&t&&(l(0,"span",13),_(1),c()),2&t){const e=p();F("aria-hidden",e.icon&&!e.label)("data-pc-section","label"),a(1),x(e.label)}}function FV(t,s){if(1&t&&(l(0,"span",8),_(1),c()),2&t){const e=p();se(e.badgeClass),d("ngClass",e.badgeStyleClass()),F("data-pc-section","badge"),a(1),x(e.badge)}}const NV=["*"],fo={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 In=(()=>{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(fo);spinnerIcon='