@ubreu/homebridge-eufy-security
Version:
Control Eufy Security from homebridge.
1 lines • 532 kB
JavaScript
(self.webpackChunkconfig_ui=self.webpackChunkconfig_ui||[]).push([[179],{841:(Z3,G2,u1)=>{"use strict";function Q(e){return"function"==typeof e}function f2(e){const i=e(n=>{Error.call(n),n.stack=(new Error).stack});return i.prototype=Object.create(Error.prototype),i.prototype.constructor=i,i}const w1=f2(e=>function(i){e(this),this.message=i?`${i.length} errors occurred during unsubscription:\n${i.map((n,r)=>`${r+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=i});function Qe(e,t){if(e){const i=e.indexOf(t);0<=i&&e.splice(i,1)}}class Se{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:i}=this;if(i)if(this._parentage=null,Array.isArray(i))for(const a of i)a.remove(this);else i.remove(this);const{initialTeardown:n}=this;if(Q(n))try{n()}catch(a){t=a instanceof w1?a.errors:[a]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const a of r)try{L(a)}catch(s){t=t??[],s instanceof w1?t=[...t,...s.errors]:t.push(s)}}if(t)throw new w1(t)}}add(t){var i;if(t&&t!==this)if(this.closed)L(t);else{if(t instanceof Se){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(i=this._finalizers)&&void 0!==i?i:[]).push(t)}}_hasParent(t){const{_parentage:i}=this;return i===t||Array.isArray(i)&&i.includes(t)}_addParent(t){const{_parentage:i}=this;this._parentage=Array.isArray(i)?(i.push(t),i):i?[i,t]:t}_removeParent(t){const{_parentage:i}=this;i===t?this._parentage=null:Array.isArray(i)&&Qe(i,t)}remove(t){const{_finalizers:i}=this;i&&Qe(i,t),t instanceof Se&&t._removeParent(this)}}Se.EMPTY=(()=>{const e=new Se;return e.closed=!0,e})();const Ne=Se.EMPTY;function a1(e){return e instanceof Se||e&&"closed"in e&&Q(e.remove)&&Q(e.add)&&Q(e.unsubscribe)}function L(e){Q(e)?e():e.unsubscribe()}const k1={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},s1={setTimeout(e,t,...i){const{delegate:n}=s1;return n?.setTimeout?n.setTimeout(e,t,...i):setTimeout(e,t,...i)},clearTimeout(e){const{delegate:t}=s1;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function P1(e){s1.setTimeout(()=>{const{onUnhandledError:t}=k1;if(!t)throw e;t(e)})}function Z1(){}const le=g1("C",void 0,void 0);function g1(e,t,i){return{kind:e,value:t,error:i}}let H1=null;function Je(e){if(k1.useDeprecatedSynchronousErrorHandling){const t=!H1;if(t&&(H1={errorThrown:!1,error:null}),e(),t){const{errorThrown:i,error:n}=H1;if(H1=null,i)throw n}}else e()}class at extends Se{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,a1(t)&&t.add(this)):this.destination=y6}static create(t,i,n){return new Ln(t,i,n)}next(t){this.isStopped?zi(function Ye(e){return g1("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?zi(function ye(e){return g1("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?zi(le,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const h2=Function.prototype.bind;function Mt(e,t){return h2.call(e,t)}class Ba{constructor(t){this.partialObserver=t}next(t){const{partialObserver:i}=this;if(i.next)try{i.next(t)}catch(n){Q3(n)}}error(t){const{partialObserver:i}=this;if(i.error)try{i.error(t)}catch(n){Q3(n)}else Q3(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(i){Q3(i)}}}class Ln extends at{constructor(t,i,n){let r;if(super(),Q(t)||!t)r={next:t??void 0,error:i??void 0,complete:n??void 0};else{let a;this&&k1.useDeprecatedNextContext?(a=Object.create(t),a.unsubscribe=()=>this.unsubscribe(),r={next:t.next&&Mt(t.next,a),error:t.error&&Mt(t.error,a),complete:t.complete&&Mt(t.complete,a)}):r=t}this.destination=new Ba(r)}}function Q3(e){k1.useDeprecatedSynchronousErrorHandling?function d2(e){k1.useDeprecatedSynchronousErrorHandling&&H1&&(H1.errorThrown=!0,H1.error=e)}(e):P1(e)}function zi(e,t){const{onStoppedNotification:i}=k1;i&&s1.setTimeout(()=>i(e,t))}const y6={closed:!0,next:Z1,error:function M6(e){throw e},complete:Z1},Ei="function"==typeof Symbol&&Symbol.observable||"@@observable";function yt(e){return e}function xi(e){return 0===e.length?yt:1===e.length?e[0]:function(i){return e.reduce((n,r)=>r(n),i)}}let We=(()=>{class e{constructor(i){i&&(this._subscribe=i)}lift(i){const n=new e;return n.source=this,n.operator=i,n}subscribe(i,n,r){const a=function w6(e){return e&&e instanceof at||function b6(e){return e&&Q(e.next)&&Q(e.error)&&Q(e.complete)}(e)&&a1(e)}(i)?i:new Ln(i,n,r);return Je(()=>{const{operator:s,source:o}=this;a.add(s?s.call(a,o):o?this._subscribe(a):this._trySubscribe(a))}),a}_trySubscribe(i){try{return this._subscribe(i)}catch(n){i.error(n)}}forEach(i,n){return new(n=ja(n))((r,a)=>{const s=new Ln({next:o=>{try{i(o)}catch(c){a(c),s.unsubscribe()}},error:a,complete:r});this.subscribe(s)})}_subscribe(i){var n;return null===(n=this.source)||void 0===n?void 0:n.subscribe(i)}[Ei](){return this}pipe(...i){return xi(i)(this)}toPromise(i){return new(i=ja(i))((n,r)=>{let a;this.subscribe(s=>a=s,s=>r(s),()=>n(a))})}}return e.create=t=>new e(t),e})();function ja(e){var t;return null!==(t=e??k1.Promise)&&void 0!==t?t:Promise}const H6=f2(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let fe=(()=>{class e extends We{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(i){const n=new n2(this,this);return n.operator=i,n}_throwIfClosed(){if(this.closed)throw new H6}next(i){Je(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const n of this.currentObservers)n.next(i)}})}error(i){Je(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=i;const{observers:n}=this;for(;n.length;)n.shift().error(i)}})}complete(){Je(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:i}=this;for(;i.length;)i.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var i;return(null===(i=this.observers)||void 0===i?void 0:i.length)>0}_trySubscribe(i){return this._throwIfClosed(),super._trySubscribe(i)}_subscribe(i){return this._throwIfClosed(),this._checkFinalizedStatuses(i),this._innerSubscribe(i)}_innerSubscribe(i){const{hasError:n,isStopped:r,observers:a}=this;return n||r?Ne:(this.currentObservers=null,a.push(i),new Se(()=>{this.currentObservers=null,Qe(a,i)}))}_checkFinalizedStatuses(i){const{hasError:n,thrownError:r,isStopped:a}=this;n?i.error(r):a&&i.complete()}asObservable(){const i=new We;return i.source=this,i}}return e.create=(t,i)=>new n2(t,i),e})();class n2 extends fe{constructor(t,i){super(),this.destination=t,this.source=i}next(t){var i,n;null===(n=null===(i=this.destination)||void 0===i?void 0:i.next)||void 0===n||n.call(i,t)}error(t){var i,n;null===(n=null===(i=this.destination)||void 0===i?void 0:i.error)||void 0===n||n.call(i,t)}complete(){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===i||i.call(t)}_subscribe(t){var i,n;return null!==(n=null===(i=this.source)||void 0===i?void 0:i.subscribe(t))&&void 0!==n?n:Ne}}function Ai(e){return Q(e?.lift)}function f1(e){return t=>{if(Ai(t))return t.lift(function(i){try{return e(i,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function qe(e,t,i,n,r){return new Ga(e,t,i,n,r)}class Ga extends at{constructor(t,i,n,r,a,s){super(t),this.onFinalize=a,this.shouldUnsubscribe=s,this._next=i?function(o){try{i(o)}catch(c){t.error(c)}}:super._next,this._error=r?function(o){try{r(o)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(o){t.error(o)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:i}=this;super.unsubscribe(),!i&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function we(e,t){return f1((i,n)=>{let r=0;i.subscribe(qe(n,a=>{n.next(e.call(t,a,r++))}))})}function f(e){return this instanceof f?(this.v=e,this):new f(e)}function D(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,t=e[Symbol.asyncIterator];return t?t.call(e):(e=function a3(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),i={},n("next"),n("throw"),n("return"),i[Symbol.asyncIterator]=function(){return this},i);function n(a){i[a]=e[a]&&function(s){return new Promise(function(o,c){!function r(a,s,o,c){Promise.resolve(c).then(function(l){a({value:l,done:o})},s)}(o,c,(s=e[a](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const z6=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function Zu(e){return Q(e?.then)}function Qu(e){return Q(e[Ei])}function Ju(e){return Symbol.asyncIterator&&Q(e?.[Symbol.asyncIterator])}function Xu(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const ef=function wx(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function tf(e){return Q(e?.[ef])}function nf(e){return function h(e,t,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,n=i.apply(e,t||[]),a=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(p){n[p]&&(r[p]=function(m){return new Promise(function(H,S){a.push([p,m,H,S])>1||o(p,m)})})}function o(p,m){try{!function c(p){p.value instanceof f?Promise.resolve(p.value.v).then(l,u):d(a[0][2],p)}(n[p](m))}catch(H){d(a[0][3],H)}}function l(p){o("next",p)}function u(p){o("throw",p)}function d(p,m){p(m),a.shift(),a.length&&o(a[0][0],a[0][1])}}(this,arguments,function*(){const i=e.getReader();try{for(;;){const{value:n,done:r}=yield f(i.read());if(r)return yield f(void 0);yield yield f(n)}}finally{i.releaseLock()}})}function rf(e){return Q(e?.getReader)}function j1(e){if(e instanceof We)return e;if(null!=e){if(Qu(e))return function Hx(e){return new We(t=>{const i=e[Ei]();if(Q(i.subscribe))return i.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(z6(e))return function Vx(e){return new We(t=>{for(let i=0;i<e.length&&!t.closed;i++)t.next(e[i]);t.complete()})}(e);if(Zu(e))return function Sx(e){return new We(t=>{e.then(i=>{t.closed||(t.next(i),t.complete())},i=>t.error(i)).then(null,P1)})}(e);if(Ju(e))return af(e);if(tf(e))return function Dx(e){return new We(t=>{for(const i of e)if(t.next(i),t.closed)return;t.complete()})}(e);if(rf(e))return function zx(e){return af(nf(e))}(e)}throw Xu(e)}function af(e){return new We(t=>{(function Ex(e,t){var i,n,r,a;return function qa(e,t,i,n){return new(i||(i=Promise))(function(a,s){function o(u){try{l(n.next(u))}catch(d){s(d)}}function c(u){try{l(n.throw(u))}catch(d){s(d)}}function l(u){u.done?a(u.value):function r(a){return a instanceof i?a:new i(function(s){s(a)})}(u.value).then(o,c)}l((n=n.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){try{for(i=D(e);!(n=yield i.next()).done;)if(t.next(n.value),t.closed)return}catch(s){r={error:s}}finally{try{n&&!n.done&&(a=i.return)&&(yield a.call(i))}finally{if(r)throw r.error}}t.complete()})})(e,t).catch(i=>t.error(i))})}function sn(e,t,i,n=0,r=!1){const a=t.schedule(function(){i(),r?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(a),!r)return a}function F1(e,t,i=1/0){return Q(t)?F1((n,r)=>we((a,s)=>t(n,a,r,s))(j1(e(n,r))),i):("number"==typeof t&&(i=t),f1((n,r)=>function xx(e,t,i,n,r,a,s,o){const c=[];let l=0,u=0,d=!1;const p=()=>{d&&!c.length&&!l&&t.complete()},m=S=>l<n?H(S):c.push(S),H=S=>{a&&t.next(S),l++;let E=!1;j1(i(S,u++)).subscribe(qe(t,N=>{r?.(N),a?m(N):t.next(N)},()=>{E=!0},void 0,()=>{if(E)try{for(l--;c.length&&l<n;){const N=c.shift();s?sn(t,s,()=>H(N)):H(N)}p()}catch(N){t.error(N)}}))};return e.subscribe(qe(t,m,()=>{d=!0,p()})),()=>{o?.()}}(n,r,e,i)))}function e4(e=1/0){return F1(yt,e)}const ot=new We(e=>e.complete());function sf(e){return e&&Q(e.schedule)}function E6(e){return e[e.length-1]}function Za(e){return Q(E6(e))?e.pop():void 0}function Ni(e){return sf(E6(e))?e.pop():void 0}function cf(e,t=0){return f1((i,n)=>{i.subscribe(qe(n,r=>sn(n,e,()=>n.next(r),t),()=>sn(n,e,()=>n.complete(),t),r=>sn(n,e,()=>n.error(r),t)))})}function lf(e,t=0){return f1((i,n)=>{n.add(e.schedule(()=>i.subscribe(n),t))})}function uf(e,t){if(!e)throw new Error("Iterable cannot be null");return new We(i=>{sn(i,t,()=>{const n=e[Symbol.asyncIterator]();sn(i,t,()=>{n.next().then(r=>{r.done?i.complete():i.next(r.value)})},0,!0)})})}function Q1(e,t){return t?function kx(e,t){if(null!=e){if(Qu(e))return function Nx(e,t){return j1(e).pipe(lf(t),cf(t))}(e,t);if(z6(e))return function Ix(e,t){return new We(i=>{let n=0;return t.schedule(function(){n===e.length?i.complete():(i.next(e[n++]),i.closed||this.schedule())})})}(e,t);if(Zu(e))return function Tx(e,t){return j1(e).pipe(lf(t),cf(t))}(e,t);if(Ju(e))return uf(e,t);if(tf(e))return function Rx(e,t){return new We(i=>{let n;return sn(i,t,()=>{n=e[ef](),sn(i,t,()=>{let r,a;try{({value:r,done:a}=n.next())}catch(s){return void i.error(s)}a?i.complete():i.next(r)},0,!0)}),()=>Q(n?.return)&&n.return()})}(e,t);if(rf(e))return function Ox(e,t){return uf(nf(e),t)}(e,t)}throw Xu(e)}(e,t):j1(e)}function x6(...e){const t=Ni(e),i=function Lx(e,t){return"number"==typeof E6(e)?e.pop():t}(e,1/0),n=e;return n.length?1===n.length?j1(n[0]):e4(i)(Q1(n,t)):ot}class ct extends fe{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const i=super._subscribe(t);return!i.closed&&t.next(this._value),i}getValue(){const{hasError:t,thrownError:i,_value:n}=this;if(t)throw i;return this._throwIfClosed(),n}next(t){super.next(this._value=t)}}function ae(...e){return Q1(e,Ni(e))}function A6(e={}){const{connector:t=(()=>new fe),resetOnError:i=!0,resetOnComplete:n=!0,resetOnRefCountZero:r=!0}=e;return a=>{let s,o,c,l=0,u=!1,d=!1;const p=()=>{o?.unsubscribe(),o=void 0},m=()=>{p(),s=c=void 0,u=d=!1},H=()=>{const S=s;m(),S?.unsubscribe()};return f1((S,E)=>{l++,!d&&!u&&p();const N=c=c??t();E.add(()=>{l--,0===l&&!d&&!u&&(o=L6(H,r))}),N.subscribe(E),!s&&l>0&&(s=new Ln({next:z=>N.next(z),error:z=>{d=!0,p(),o=L6(m,i,z),N.error(z)},complete:()=>{u=!0,p(),o=L6(m,n),N.complete()}}),j1(S).subscribe(s))})(a)}}function L6(e,t,...i){if(!0===t)return void e();if(!1===t)return;const n=new Ln({next:()=>{n.unsubscribe(),e()}});return j1(t(...i)).subscribe(n)}function bt(e,t){return f1((i,n)=>{let r=null,a=0,s=!1;const o=()=>s&&!r&&n.complete();i.subscribe(qe(n,c=>{r?.unsubscribe();let l=0;const u=a++;j1(e(c,u)).subscribe(r=qe(n,d=>n.next(t?t(c,d,u,l++):d),()=>{r=null,o()}))},()=>{s=!0,o()}))})}function Px(e,t){return e===t}function Ue(e){for(let t in e)if(e[t]===Ue)return t;throw Error("Could not find renamed property on target object.")}function Qa(e,t){for(const i in t)t.hasOwnProperty(i)&&!e.hasOwnProperty(i)&&(e[i]=t[i])}function G1(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(G1).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const i=t.indexOf("\n");return-1===i?t:t.substring(0,i)}function N6(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Fx=Ue({__forward_ref__:Ue});function me(e){return e.__forward_ref__=me,e.toString=function(){return G1(this())},e}function ue(e){return T6(e)?e():e}function T6(e){return"function"==typeof e&&e.hasOwnProperty(Fx)&&e.__forward_ref__===me}function I6(e){return e&&!!e.\u0275providers}const df="https://g.co/ng/security#xss";class F extends Error{constructor(t,i){super(function Ja(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,i)),this.code=t}}function de(e){return"string"==typeof e?e:null==e?"":String(e)}function R6(e,t){throw new F(-201,!1)}function lt(e,t){null==e&&function se(e,t,i,n){throw new Error(`ASSERTION ERROR: ${e}`+(null==n?"":` [Expected=> ${i} ${n} ${t} <=Actual]`))}(t,e,null,"!=")}function $(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ie(e){return{providers:e.providers||[],imports:e.imports||[]}}function Xa(e){return hf(e,ts)||hf(e,pf)}function hf(e,t){return e.hasOwnProperty(t)?e[t]:null}function es(e){return e&&(e.hasOwnProperty(O6)||e.hasOwnProperty(Yx))?e[O6]:null}const ts=Ue({\u0275prov:Ue}),O6=Ue({\u0275inj:Ue}),pf=Ue({ngInjectableDef:Ue}),Yx=Ue({ngInjectorDef:Ue});var He=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(He||{});let k6;function L2(e){const t=k6;return k6=e,t}function gf(e,t,i){const n=Xa(e);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:i&He.Optional?null:void 0!==t?t:void R6(G1(e))}const e1=globalThis,Ti={},j6="__NG_DI_FLAG__",ns="ngTempTokenPath",Qx=/\n/gm,_f="__source";let t4;function In(e){const t=t4;return t4=e,t}function eA(e,t=He.Default){if(void 0===t4)throw new F(-203,!1);return null===t4?gf(e,void 0,t):t4.get(e,t&He.Optional?null:void 0,t)}function q(e,t=He.Default){return(function mf(){return k6}()||eA)(ue(e),t)}function J(e,t=He.Default){return q(e,is(t))}function is(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function G6(e){const t=[];for(let i=0;i<e.length;i++){const n=ue(e[i]);if(Array.isArray(n)){if(0===n.length)throw new F(900,!1);let r,a=He.Default;for(let s=0;s<n.length;s++){const o=n[s],c=tA(o);"number"==typeof c?-1===c?r=o.token:a|=c:r=o}t.push(q(r,a))}else t.push(q(n))}return t}function Ii(e,t){return e[j6]=t,e.prototype[j6]=t,e}function tA(e){return e[j6]}function on(e){return{toString:e}.toString()}var rs=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(rs||{}),wt=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(wt||{});const Bt={},Te=[],as=Ue({\u0275cmp:Ue}),$6=Ue({\u0275dir:Ue}),W6=Ue({\u0275pipe:Ue}),Mf=Ue({\u0275mod:Ue}),cn=Ue({\u0275fac:Ue}),Ri=Ue({__NG_ELEMENT_ID__:Ue}),yf=Ue({__NG_ENV_ID__:Ue});function bf(e,t,i){let n=e.length;for(;;){const r=e.indexOf(t,i);if(-1===r)return r;if(0===r||e.charCodeAt(r-1)<=32){const a=t.length;if(r+a===n||e.charCodeAt(r+a)<=32)return r}i=r+1}}function q6(e,t,i){let n=0;for(;n<i.length;){const r=i[n];if("number"==typeof r){if(0!==r)break;n++;const a=i[n++],s=i[n++],o=i[n++];e.setAttribute(t,s,o,a)}else{const a=r,s=i[++n];Hf(a)?e.setProperty(t,a,s):e.setAttribute(t,a,s),n++}}return n}function wf(e){return 3===e||4===e||6===e}function Hf(e){return 64===e.charCodeAt(0)}function Oi(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let i=-1;for(let n=0;n<t.length;n++){const r=t[n];"number"==typeof r?i=r:0===i||Vf(e,i,r,null,-1===i||2===i?t[++n]:null)}}return e}function Vf(e,t,i,n,r){let a=0,s=e.length;if(-1===t)s=-1;else for(;a<e.length;){const o=e[a++];if("number"==typeof o){if(o===t){s=-1;break}if(o>t){s=a-1;break}}}for(;a<e.length;){const o=e[a];if("number"==typeof o)break;if(o===i){if(null===n)return void(null!==r&&(e[a+1]=r));if(n===e[a+1])return void(e[a+2]=r)}a++,null!==n&&a++,null!==r&&a++}-1!==s&&(e.splice(s,0,t),a=s+1),e.splice(a++,0,i),null!==n&&e.splice(a++,0,n),null!==r&&e.splice(a++,0,r)}const Sf="ng-template";function rA(e,t,i){let n=0,r=!0;for(;n<e.length;){let a=e[n++];if("string"==typeof a&&r){const s=e[n++];if(i&&"class"===a&&-1!==bf(s.toLowerCase(),t,0))return!0}else{if(1===a){for(;n<e.length&&"string"==typeof(a=e[n++]);)if(a.toLowerCase()===t)return!0;return!1}"number"==typeof a&&(r=!1)}}return!1}function Df(e){return 4===e.type&&e.value!==Sf}function aA(e,t,i){return t===(4!==e.type||i?e.value:Sf)}function sA(e,t,i){let n=4;const r=e.attrs||[],a=function lA(e){for(let t=0;t<e.length;t++)if(wf(e[t]))return t;return e.length}(r);let s=!1;for(let o=0;o<t.length;o++){const c=t[o];if("number"!=typeof c){if(!s)if(4&n){if(n=2|1&n,""!==c&&!aA(e,c,i)||""===c&&1===t.length){if(Ht(n))return!1;s=!0}}else{const l=8&n?c:t[++o];if(8&n&&null!==e.attrs){if(!rA(e.attrs,l,i)){if(Ht(n))return!1;s=!0}continue}const d=oA(8&n?"class":c,r,Df(e),i);if(-1===d){if(Ht(n))return!1;s=!0;continue}if(""!==l){let p;p=d>a?"":r[d+1].toLowerCase();const m=8&n?p:null;if(m&&-1!==bf(m,l,0)||2&n&&l!==p){if(Ht(n))return!1;s=!0}}}}else{if(!s&&!Ht(n)&&!Ht(c))return!1;if(s&&Ht(c))continue;s=!1,n=c|1&n}}return Ht(n)||s}function Ht(e){return 0==(1&e)}function oA(e,t,i,n){if(null===t)return-1;let r=0;if(n||!i){let a=!1;for(;r<t.length;){const s=t[r];if(s===e)return r;if(3===s||6===s)a=!0;else{if(1===s||2===s){let o=t[++r];for(;"string"==typeof o;)o=t[++r];continue}if(4===s)break;if(0===s){r+=4;continue}}r+=a?1:2}return-1}return function uA(e,t){let i=e.indexOf(4);if(i>-1)for(i++;i<e.length;){const n=e[i];if("number"==typeof n)return-1;if(n===t)return i;i++}return-1}(t,e)}function zf(e,t,i=!1){for(let n=0;n<t.length;n++)if(sA(e,t[n],i))return!0;return!1}function fA(e,t){e:for(let i=0;i<t.length;i++){const n=t[i];if(e.length===n.length){for(let r=0;r<e.length;r++)if(e[r]!==n[r])continue e;return!0}}return!1}function Ef(e,t){return e?":not("+t.trim()+")":t}function dA(e){let t=e[0],i=1,n=2,r="",a=!1;for(;i<e.length;){let s=e[i];if("string"==typeof s)if(2&n){const o=e[++i];r+="["+s+(o.length>0?'="'+o+'"':"")+"]"}else 8&n?r+="."+s:4&n&&(r+=" "+s);else""!==r&&!Ht(s)&&(t+=Ef(a,r),r=""),n=s,a=a||!Ht(n);i++}return""!==r&&(t+=Ef(a,r)),t}function oe(e){return on(()=>{const t=Af(e),i={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===rs.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||wt.Emulated,styles:e.styles||Te,_:null,schemas:e.schemas||null,tView:null,id:""};Lf(i);const n=e.dependencies;return i.directiveDefs=ss(n,!1),i.pipeDefs=ss(n,!0),i.id=function MA(e){let t=0;const i=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const r of i)t=Math.imul(31,t)+r.charCodeAt(0)<<0;return t+=2147483648,"c"+t}(i),i})}function gA(e){return Ee(e)||r2(e)}function vA(e){return null!==e}function Fe(e){return on(()=>({type:e.type,bootstrap:e.bootstrap||Te,declarations:e.declarations||Te,imports:e.imports||Te,exports:e.exports||Te,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function xf(e,t){if(null==e)return Bt;const i={};for(const n in e)if(e.hasOwnProperty(n)){let r=e[n],a=r;Array.isArray(r)&&(a=r[1],r=r[0]),i[r]=n,t&&(t[r]=a)}return i}function j(e){return on(()=>{const t=Af(e);return Lf(t),t})}function Ee(e){return e[as]||null}function r2(e){return e[$6]||null}function C2(e){return e[W6]||null}function W2(e,t){const i=e[Mf]||null;if(!i&&!0===t)throw new Error(`Type ${G1(e)} does not have '\u0275mod' property.`);return i}function Af(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||Bt,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||Te,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:xf(e.inputs,t),outputs:xf(e.outputs)}}function Lf(e){e.features?.forEach(t=>t(e))}function ss(e,t){if(!e)return null;const i=t?C2:gA;return()=>("function"==typeof e?e():e).map(n=>i(n)).filter(vA)}const V1=0,Z=1,ge=2,p1=3,Vt=4,ki=5,p2=6,i4=7,N1=8,Rn=9,r4=10,he=11,Pi=12,Nf=13,a4=14,T1=15,Fi=16,s4=17,Ut=18,Bi=19,Tf=20,On=21,ln=22,Ui=23,ji=24,Ve=25,Y6=1,If=2,jt=7,o4=9,a2=11;function T2(e){return Array.isArray(e)&&"object"==typeof e[Y6]}function M2(e){return Array.isArray(e)&&!0===e[Y6]}function K6(e){return 0!=(4&e.flags)}function o3(e){return e.componentOffset>-1}function cs(e){return 1==(1&e.flags)}function St(e){return!!e.template}function Z6(e){return 0!=(512&e[ge])}function c3(e,t){return e.hasOwnProperty(cn)?e[cn]:null}let s2=null,ls=!1;function ut(e){const t=s2;return s2=e,t}const kf={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 Ff(e){if(!$i(e)||e.dirty){if(!e.producerMustRecompute(e)&&!jf(e))return void(e.dirty=!1);e.producerRecomputeValue(e),e.dirty=!1}}function Uf(e){e.dirty=!0,function Bf(e){if(void 0===e.liveConsumerNode)return;const t=ls;ls=!0;try{for(const i of e.liveConsumerNode)i.dirty||Uf(i)}finally{ls=t}}(e),e.consumerMarkedDirty?.(e)}function J6(e){return e&&(e.nextProducerIndex=0),ut(e)}function X6(e,t){if(ut(t),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if($i(e))for(let i=e.nextProducerIndex;i<e.producerNode.length;i++)us(e.producerNode[i],e.producerIndexOfThis[i]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function jf(e){c4(e);for(let t=0;t<e.producerNode.length;t++){const i=e.producerNode[t],n=e.producerLastReadVersion[t];if(n!==i.version||(Ff(i),n!==i.version))return!0}return!1}function Gf(e){if(c4(e),$i(e))for(let t=0;t<e.producerNode.length;t++)us(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function us(e,t){if(function Wf(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}(e),c4(e),1===e.liveConsumerNode.length)for(let n=0;n<e.producerNode.length;n++)us(e.producerNode[n],e.producerIndexOfThis[n]);const i=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[i],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[i],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){const n=e.liveConsumerIndexOfThis[t],r=e.liveConsumerNode[t];c4(r),r.producerIndexOfThis[n]=t}}function $i(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function c4(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let qf=null;const Qf=()=>{},NA=(()=>({...kf,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule(e.ref)},hasRun:!1,cleanupFn:Qf}))();class TA{constructor(t,i,n){this.previousValue=t,this.currentValue=i,this.firstChange=n}isFirstChange(){return this.firstChange}}function v1(){return Jf}function Jf(e){return e.type.prototype.ngOnChanges&&(e.setInput=RA),IA}function IA(){const e=e9(this),t=e?.current;if(t){const i=e.previous;if(i===Bt)e.previous=t;else for(let n in t)i[n]=t[n];e.current=null,this.ngOnChanges(t)}}function RA(e,t,i,n){const r=this.declaredInputs[i],a=e9(e)||function OA(e,t){return e[Xf]=t}(e,{previous:Bt,current:null}),s=a.current||(a.current={}),o=a.previous,c=o[r];s[r]=new TA(c&&c.currentValue,t,o===Bt),e[n]=t}v1.ngInherit=!0;const Xf="__ngSimpleChanges__";function e9(e){return e[Xf]||null}const Gt=function(e,t,i){},t9="svg";function t1(e){for(;Array.isArray(e);)e=e[V1];return e}function fs(e,t){return t1(t[e])}function I2(e,t){return t1(t[e.index])}function i9(e,t){return e.data[t]}function q2(e,t){const i=t[e];return T2(i)?i:i[V1]}function Pn(e,t){return null==t?null:e[t]}function r9(e){e[s4]=0}function jA(e){1024&e[ge]||(e[ge]|=1024,s9(e,1))}function a9(e){1024&e[ge]&&(e[ge]&=-1025,s9(e,-1))}function s9(e,t){let i=e[p1];if(null===i)return;i[ki]+=t;let n=i;for(i=i[p1];null!==i&&(1===t&&1===n[ki]||-1===t&&0===n[ki]);)i[ki]+=t,n=i,i=i[p1]}const ce={lFrame:v9(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function l9(){return ce.bindingsEnabled}function u4(){return null!==ce.skipHydrationRootTNode}function k(){return ce.lFrame.lView}function xe(){return ce.lFrame.tView}function Y(e){return ce.lFrame.contextLView=e,e[N1]}function K(e){return ce.lFrame.contextLView=null,e}function o2(){let e=u9();for(;null!==e&&64===e.type;)e=e.parent;return e}function u9(){return ce.lFrame.currentTNode}function $t(e,t){const i=ce.lFrame;i.currentTNode=e,i.isParent=t}function a0(){return ce.lFrame.isParent}function s0(){ce.lFrame.isParent=!1}function f4(){return ce.lFrame.bindingIndex++}function fn(e){const t=ce.lFrame,i=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,i}function tL(e,t){const i=ce.lFrame;i.bindingIndex=i.bindingRootIndex=e,o0(t)}function o0(e){ce.lFrame.currentDirectiveIndex=e}function p9(){return ce.lFrame.currentQueryIndex}function l0(e){ce.lFrame.currentQueryIndex=e}function iL(e){const t=e[Z];return 2===t.type?t.declTNode:1===t.type?e[p2]:null}function m9(e,t,i){if(i&He.SkipSelf){let r=t,a=e;for(;!(r=r.parent,null!==r||i&He.Host||(r=iL(a),null===r||(a=a[a4],10&r.type))););if(null===r)return!1;t=r,e=a}const n=ce.lFrame=g9();return n.currentTNode=t,n.lView=e,!0}function u0(e){const t=g9(),i=e[Z];ce.lFrame=t,t.currentTNode=i.firstChild,t.lView=e,t.tView=i,t.contextLView=e,t.bindingIndex=i.bindingStartIndex,t.inI18n=!1}function g9(){const e=ce.lFrame,t=null===e?null:e.child;return null===t?v9(e):t}function v9(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function _9(){const e=ce.lFrame;return ce.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const C9=_9;function f0(){const e=_9();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function b2(){return ce.lFrame.selectedIndex}function l3(e){ce.lFrame.selectedIndex=e}function _1(){const e=ce.lFrame;return i9(e.tView,e.selectedIndex)}function d4(){ce.lFrame.currentNamespace=t9}function h4(){!function oL(){ce.lFrame.currentNamespace=null}()}let y9=!0;function ds(){return y9}function Fn(e){y9=e}function hs(e,t){for(let i=t.directiveStart,n=t.directiveEnd;i<n;i++){const a=e.data[i].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:o,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:u}=a;s&&(e.contentHooks??=[]).push(-i,s),o&&((e.contentHooks??=[]).push(i,o),(e.contentCheckHooks??=[]).push(i,o)),c&&(e.viewHooks??=[]).push(-i,c),l&&((e.viewHooks??=[]).push(i,l),(e.viewCheckHooks??=[]).push(i,l)),null!=u&&(e.destroyHooks??=[]).push(i,u)}}function ps(e,t,i){b9(e,t,3,i)}function ms(e,t,i,n){(3&e[ge])===i&&b9(e,t,i,n)}function d0(e,t){let i=e[ge];(3&i)===t&&(i&=8191,i+=1,e[ge]=i)}function b9(e,t,i,n){const a=n??-1,s=t.length-1;let o=0;for(let c=void 0!==n?65535&e[s4]:0;c<s;c++)if("number"==typeof t[c+1]){if(o=t[c],null!=n&&o>=n)break}else t[c]<0&&(e[s4]+=65536),(o<a||-1==a)&&(lL(e,i,t,c),e[s4]=(4294901760&e[s4])+c+2),c++}function w9(e,t){Gt(4,e,t);const i=ut(null);try{t.call(e)}finally{ut(i),Gt(5,e,t)}}function lL(e,t,i,n){const r=i[n]<0,a=i[n+1],o=e[r?-i[n]:i[n]];r?e[ge]>>13<e[s4]>>16&&(3&e[ge])===t&&(e[ge]+=8192,w9(o,a)):w9(o,a)}const p4=-1;class qi{constructor(t,i,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=n}}function p0(e){return e!==p4}function Yi(e){return 32767&e}function Ki(e,t){let i=function hL(e){return e>>16}(e),n=t;for(;i>0;)n=n[a4],i--;return n}let m0=!0;function gs(e){const t=m0;return m0=e,t}const H9=255,V9=5;let pL=0;const Wt={};function vs(e,t){const i=S9(e,t);if(-1!==i)return i;const n=t[Z];n.firstCreatePass&&(e.injectorIndex=t.length,g0(n.data,e),g0(t,null),g0(n.blueprint,null));const r=_s(e,t),a=e.injectorIndex;if(p0(r)){const s=Yi(r),o=Ki(r,t),c=o[Z].data;for(let l=0;l<8;l++)t[a+l]=o[s+l]|c[s+l]}return t[a+8]=r,a}function g0(e,t){e.push(0,0,0,0,0,0,0,0,t)}function S9(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function _s(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let i=0,n=null,r=t;for(;null!==r;){if(n=N9(r),null===n)return p4;if(i++,r=r[a4],-1!==n.injectorIndex)return n.injectorIndex|i<<16}return p4}function v0(e,t,i){!function mL(e,t,i){let n;"string"==typeof i?n=i.charCodeAt(0)||0:i.hasOwnProperty(Ri)&&(n=i[Ri]),null==n&&(n=i[Ri]=pL++);const r=n&H9;t.data[e+(r>>V9)]|=1<<r}(e,t,i)}function D9(e,t,i){if(i&He.Optional||void 0!==e)return e;R6()}function z9(e,t,i,n){if(i&He.Optional&&void 0===n&&(n=null),!(i&(He.Self|He.Host))){const r=e[Rn],a=L2(void 0);try{return r?r.get(t,n,i&He.Optional):gf(t,n,i&He.Optional)}finally{L2(a)}}return D9(n,0,i)}function E9(e,t,i,n=He.Default,r){if(null!==e){if(2048&t[ge]&&!(n&He.Self)){const s=function yL(e,t,i,n,r){let a=e,s=t;for(;null!==a&&null!==s&&2048&s[ge]&&!(512&s[ge]);){const o=x9(a,s,i,n|He.Self,Wt);if(o!==Wt)return o;let c=a.parent;if(!c){const l=s[Tf];if(l){const u=l.get(i,Wt,n);if(u!==Wt)return u}c=N9(s),s=s[a4]}a=c}return r}(e,t,i,n,Wt);if(s!==Wt)return s}const a=x9(e,t,i,n,Wt);if(a!==Wt)return a}return z9(t,i,n,r)}function x9(e,t,i,n,r){const a=function _L(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(Ri)?e[Ri]:void 0;return"number"==typeof t?t>=0?t&H9:ML:t}(i);if("function"==typeof a){if(!m9(t,e,n))return n&He.Host?D9(r,0,n):z9(t,i,n,r);try{let s;if(s=a(n),null!=s||n&He.Optional)return s;R6()}finally{C9()}}else if("number"==typeof a){let s=null,o=S9(e,t),c=p4,l=n&He.Host?t[T1][p2]:null;for((-1===o||n&He.SkipSelf)&&(c=-1===o?_s(e,t):t[o+8],c!==p4&&L9(n,!1)?(s=t[Z],o=Yi(c),t=Ki(c,t)):o=-1);-1!==o;){const u=t[Z];if(A9(a,o,u.data)){const d=vL(o,t,i,s,n,l);if(d!==Wt)return d}c=t[o+8],c!==p4&&L9(n,t[Z].data[o+8]===l)&&A9(a,o,t)?(s=u,o=Yi(c),t=Ki(c,t)):o=-1}}return r}function vL(e,t,i,n,r,a){const s=t[Z],o=s.data[e+8],u=Cs(o,s,i,null==n?o3(o)&&m0:n!=s&&0!=(3&o.type),r&He.Host&&a===o);return null!==u?u3(t,s,u,o):Wt}function Cs(e,t,i,n,r){const a=e.providerIndexes,s=t.data,o=1048575&a,c=e.directiveStart,u=a>>20,p=r?o+u:e.directiveEnd;for(let m=n?o:o+u;m<p;m++){const H=s[m];if(m<c&&i===H||m>=c&&H.type===i)return m}if(r){const m=s[c];if(m&&St(m)&&m.type===i)return c}return null}function u3(e,t,i,n){let r=e[i];const a=t.data;if(function uL(e){return e instanceof qi}(r)){const s=r;s.resolving&&function Bx(e,t){const i=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new F(-200,`Circular dependency in DI detected for ${e}${i}`)}(function Pe(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():de(e)}(a[i]));const o=gs(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?L2(s.injectImpl):null;m9(e,n,He.Default);try{r=e[i]=s.factory(void 0,a,e,n),t.firstCreatePass&&i>=n.directiveStart&&function cL(e,t,i){const{ngOnChanges:n,ngOnInit:r,ngDoCheck:a}=t.type.prototype;if(n){const s=Jf(t);(i.preOrderHooks??=[]).push(e,s),(i.preOrderCheckHooks??=[]).push(e,s)}r&&(i.preOrderHooks??=[]).push(0-e,r),a&&((i.preOrderHooks??=[]).push(e,a),(i.preOrderCheckHooks??=[]).push(e,a))}(i,a[i],t)}finally{null!==l&&L2(l),gs(o),s.resolving=!1,C9()}}return r}function A9(e,t,i){return!!(i[t+(e>>V9)]&1<<e)}function L9(e,t){return!(e&He.Self||e&He.Host&&t)}class w2{constructor(t,i){this._tNode=t,this._lView=i}get(t,i,n){return E9(this._tNode,this._lView,t,is(n),i)}}function ML(){return new w2(o2(),k())}function I1(e){return on(()=>{const t=e.prototype.constructor,i=t[cn]||_0(t),n=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==n;){const a=r[cn]||_0(r);if(a&&a!==i)return a;r=Object.getPrototypeOf(r)}return a=>new a})}function _0(e){return T6(e)?()=>{const t=_0(ue(e));return t&&t()}:c3(e)}function N9(e){const t=e[Z],i=t.type;return 2===i?t.declTNode:1===i?e[p2]:null}const g4="__parameters__";function _4(e,t,i){return on(()=>{const n=function C0(e){return function(...i){if(e){const n=e(...i);for(const r in n)this[r]=n[r]}}}(t);function r(...a){if(this instanceof r)return n.apply(this,a),this;const s=new r(...a);return o.annotation=s,o;function o(c,l,u){const d=c.hasOwnProperty(g4)?c[g4]:Object.defineProperty(c,g4,{value:[]})[g4];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),c}}return i&&(r.prototype=Object.create(i.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}function M4(e,t){e.forEach(i=>Array.isArray(i)?M4(i,t):t(i))}function I9(e,t,i){t>=e.length?e.push(i):e.splice(t,0,i)}function Ms(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Ji(e,t){const i=[];for(let n=0;n<e;n++)i.push(t);return i}function Y2(e,t,i){let n=y4(e,t);return n>=0?e[1|n]=i:(n=~n,function zL(e,t,i,n){let r=e.length;if(r==t)e.push(i,n);else if(1===r)e.push(n,e[0]),e[0]=i;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=i,e[t+1]=n}}(e,n,t,i)),n}function M0(e,t){const i=y4(e,t);if(i>=0)return e[1|i]}function y4(e,t){return function R9(e,t,i){let n=0,r=e.length>>i;for(;r!==n;){const a=n+(r-n>>1),s=e[a<<i];if(t===s)return a<<i;s>t?r=a:n=a+1}return~(r<<i)}(e,t,1)}const bs=Ii(_4("Optional"),8),ws=Ii(_4("SkipSelf"),4);function zs(e){return 128==(128&e.flags)}var Bn=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Bn||{});const V0=new Map;let JL=0;const D0="__ngContext__";function m2(e,t){T2(t)?(e[D0]=t[Bi],function eN(e){V0.set(e[Bi],e)}(t)):e[D0]=t}let z0;function E0(e,t){return z0(e,t)}function tr(e){const t=e[p1];return M2(t)?t[p1]:t}function nd(e){return rd(e[Pi])}function id(e){return rd(e[Vt])}function rd(e){for(;null!==e&&!M2(e);)e=e[Vt];return e}function H4(e,t,i,n,r){if(null!=n){let a,s=!1;M2(n)?a=n:T2(n)&&(s=!0,n=n[V1]);const o=t1(n);0===e&&null!==i?null==r?cd(t,i,o):d3(t,i,o,r||null,!0):1===e&&null!==i?d3(t,i,o,r||null,!0):2===e?function Is(e,t,i){const n=Ns(e,t);n&&function CN(e,t,i,n){e.removeChild(t,i,n)}(e,n,t,i)}(t,o,s):3===e&&t.destroyNode(o),null!=a&&function bN(e,t,i,n,r){const a=i[jt];a!==t1(i)&&H4(t,e,n,a,r);for(let o=a2;o<i.length;o++){const c=i[o];ir(c[Z],c,e,t,n,a)}}(t,e,a,i,r)}}function As(e,t,i){return e.createElement(t,i)}function sd(e,t){const i=e[o4],n=i.indexOf(t);a9(t),i.splice(n,1)}function Ls(e,t){if(e.length<=a2)return;const i=a2+t,n=e[i];if(n){const r=n[Fi];null!==r&&r!==e&&sd(r,n),t>0&&(e[i-1][Vt]=n[Vt]);const a=Ms(e,a2+t);!function fN(e,t){ir(e,t,t[he],2,null,null),t[V1]=null,t[p2]=null}(n[Z],n);const s=a[Ut];null!==s&&s.detachView(a[Z]),n[p1]=null,n[Vt]=null,n[ge]&=-129}return n}function A0(e,t){if(!(256&t[ge])){const i=t[he];t[Ui]&&Gf(t[Ui]),t[ji]&&Gf(t[ji]),i.destroyNode&&ir(e,t,i,3,null,null),function pN(e){let t=e[Pi];if(!t)return L0(e[Z],e);for(;t;){let i=null;if(T2(t))i=t[Pi];else{const n=t[a2];n&&(i=n)}if(!i){for(;t&&!t[Vt]&&t!==e;)T2(t)&&L0(t[Z],t),t=t[p1];null===t&&(t=e),T2(t)&&L0(t[Z],t),i=t&&t[Vt]}t=i}}(t)}}function L0(e,t){if(!(256&t[ge])){t[ge]&=-129,t[ge]|=256,function _N(e,t){let i;if(null!=e&&null!=(i=e.destroyHooks))for(let n=0;n<i.length;n+=2){const r=t[i[n]];if(!(r instanceof qi)){const a=i[n+1];if(Array.isArray(a))for(let s=0;s<a.length;s+=2){const o=r[a[s]],c=a[s+1];Gt(4,o,c);try{c.call(o)}finally{Gt(5,o,c)}}else{Gt(4,r,a);try{a.call(r)}finally{Gt(5,r,a)}}}}}(e,t),function vN(e,t){const i=e.cleanup,n=t[i4];if(null!==i)for(let a=0;a<i.length-1;a+=2)if("string"==typeof i[a]){const s=i[a+3];s>=0?n[s]():n[-s].unsubscribe(),a+=2}else i[a].call(n[i[a+1]]);null!==n&&(t[i4]=null);const r=t[On];if(null!==r){t[On]=null;for(let a=0;a<r.length;a++)(0,r[a])()}}(e,t),1===t[Z].type&&t[he].destroy();const i=t[Fi];if(null!==i&&M2(t[p1])){i!==t[p1]&&sd(i,t);const n=t[Ut];null!==n&&n.detachView(e)}!function tN(e){V0.delete(e[Bi])}(t)}}function N0(e,t,i){return function od(e,t,i){let n=t;for(;null!==n&&40&n.type;)n=(t=n).parent;if(null===n)return i[V1];{const{componentOffset:r}=n;if(r>-1){const{encapsulation:a}=e.data[n.directiveStart+r];if(a===wt.None||a===wt.Emulated)return null}return I2(n,i)}}(e,t.parent,i)}function d3(e,t,i,n,r){e.insertBefore(t,i,n,r)}function cd(e,t,i){e.appendChild(t,i)}function ld(e,t,i,n,r){null!==n?d3(e,t,i,n,r):cd(e,t,i)}function Ns(e,t){return e.parentNode(t)}function ud(e,t,i){return dd(e,t,i)}let T0,Rs,k0,Os,dd=function fd(e,t,i){return 40&e.type?I2(e,i):null};function Ts(e,t,i,n){const r=N0(e,n,t),a=t[he],o=ud(n.parent||t[p2],n,t);if(null!=r)if(Array.isArray(i))for(let c=0;c<i.length;c++)ld(a,r,i[c],o,!1);else ld(a,r,i,o,!1);void 0!==T0&&T0(a,n,t,i,r)}function nr(e,t){if(null!==t){const i=t.type;if(3&i)return I2(t,e);if(4&i)return I0(-1,e[t.index]);if(8&i){const n=t.child;if(null!==n)return nr(e,n);{const r=e[t.index];return M2(r)?I0(-1,r):t1(r)}}if(32&i)return E0(t,e)()||t1(e[t.index]);{const n=pd(e,t);return null!==n?Array.isArray(n)?n[0]:nr(tr(e[T1]),n):nr(e,t.next)}}return null}function pd(e,t){return null!==t?e[T1][p2].projection[t.projection]:null}function I0(e,t){const i=a2+e+1;if(i<t.length){const n=t[i],r=n[Z].firstChild;if(null!==r)return nr(n,r)}return t[jt]}function R0(e,t,i,n,r,a,s){for(;null!=i;){const o=n[i.index],c=i.type;if(s&&0===t&&(o&&m2(t1(o),n),i.flags|=2),32!=(32&i.flags))if(8&c)R0(e,t,i.child,n,r,a,!1),H4(t,e,r,o,a);else if(32&c){const l=E0(i,n);let u;for(;u=l();)H4(t,e,r,u,a);H4(t,e,r,o,a)}else 16&c?gd(e,t,n,i,r,a):H4(t,e,r,o,a);i=s?i.projectionNext:i.next}}function ir(e,t,i,n,r,a){R0(i,n,e.firstChild,t,r,a,!1)}function gd(e,t,i,n,r,a){const s=i[T1],c=s[p2].projection[n.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++)H4(t,e,r,c[l],a);else{let l=c;const u=s[p1];zs(n)&&(l.flags|=128),R0(e,t,l,u,r,a,!0)}}function vd(e,t,i){""===i?e.removeAttribute(t,"class"):e.setAttribute(t,"class",i)}function _d(e,t,i){const{mergedAttrs:n,classes:r,styles:a}=i;null!==n&&q6(e,t,n),null!==r&&vd(e,t,r),null!==a&&function HN(e,t,i){e.setAttribute(t,"style",i)}(e,t,a)}function V4(e){return function O0(){if(void 0===Rs&&(Rs=null,e1.trustedTypes))try{Rs=e1.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Rs}()?.createHTML(e)||e}function S4(){if(void 0!==k0)return k0;if(typeof document<"u")return document;throw new F(210,!1)}function P0(){if(void 0===Os&&(Os=null,e1.trustedTypes))try{Os=e1.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Os}function Cd(e){return P0()?.createHTML(e)||e}function yd(e){return P0()?.createScriptURL(e)||e}class h3{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${df})`}}class EN extends h3{getTypeName(){return"HTML"}}class xN extends h3{getTypeName(){return"Style"}}class AN extends h3{getTypeName(){return"Script"}}class LN extends h3{getTypeName(){return"URL"}}class NN extends h3{getTypeName(){return"ResourceURL"}}function K2(e){return e instanceof h3?e.changingThisBreaksApplicationSecurity:e}function qt(e,t){const i=function TN(e){return e instanceof h3&&e.getTypeName()||null}(e);if(null!=i&&i!==t){if("ResourceURL"===i&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${i} (see ${df})`)}return i===t}class FN{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const i=(new window.DOMParser).parseFromString(V4(t),"text/html").body;return null===i?this.inertDocumentHelper.getInertBodyElement(t):(i.removeChild(i.firstChild),i)}catch{return null}}}class BN{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const i=this.inertDocument.createElement("template");return i.innerHTML=V4(t),i}}const jN=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function ks(e){return(e=String(e)).match(jN)?e:"unsafe:"+e}function dn(e){const t={};for(const i of e.split(","))t[i]=!0;return t}function rr(...e){const t={};for(const i of e)for(const n in i)i.hasOwnProperty(n)&&(t[n]=!0);return t}const wd=dn("area,br,col,hr,img,wbr"),Hd=dn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Vd=dn("rp,rt"),F0=rr(wd,rr(Hd,dn("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")),rr(Vd,dn("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")),rr(Vd,Hd)),B0=dn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Sd=rr(B0,dn("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"),dn("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")),GN=dn("script,style,template");class $N{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let i=t.firstChild,n=!0;for(;i;)if(i.nodeType===Node.ELEMENT_NODE?n=this.startElement(i):i.nodeType===Node.TEXT_NODE?this.chars(i.nodeValue):this.sanitizedSomething=!0,n&&i.firstChild)i=i.firstChild;else for(;i;){i.nodeType===Node.ELEMENT_NODE&&this.endElement(i);let r=this.checkClobberedElement(i,i.nextSibling);if(r){i=r;break}i=this.checkClobberedElement(i,i.parentNode)}return this.buf.join("")}startElement(t){const i=t.nodeName.toLowerCase();if(!F0.hasOwnProperty(i))return this.sanitizedSomething=!0,!GN.hasOwnProperty(i);this.buf.push("<"),this.buf.push(i);const n=t.attributes;for(let r=0;r<n.length;r++){const a=n.item(r),s=a.name,o=s.toLowerCase();if(!Sd.hasOwnProperty(o)){this.sanitizedSomething=!0;continue}let c=a.value;B0[o]&&(c=ks(c)),this.buf.push(" ",s,'="',Dd(c),'"')}return this.buf.push(">"),!0}endElement(t){const i=t.nodeName.toLowerCase();F0.hasOwnProperty(i)&&!wd.hasOwnProperty(i)&&(this.buf.push("</"),this.buf.push(i),this.buf.push(">"))}chars(t){this.buf.push(Dd(t))}checkClobberedElement(t,i){if(i&&(t.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return i}}const WN=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,qN=/([^\#-~ |!])/g;function Dd(e){return e.replace(/&/g,"&").replace(WN,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(qN,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let Ps;function zd(e,t){let i=null;try{Ps=Ps||function bd(e){const t=new BN(e);return function UN(){try{return!!(new window.DOMParser).parseFromString(V4(""),"text/html")}catch{return!1}}()?new FN(t):t}(e);let n=t?String(t):"";i=Ps.getInertBodyElement(n);let r=5,a=n;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,n=a,a=i.innerHTML,i=Ps.getInertBodyElement(n)}while(n!==a);return V4((new $N).sanitizeChildren(U0(i)||i))}finally{if(i){const n=U0(i)||i;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function U0(e){return"content"in e&&function YN(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var dt=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(dt||{});function Ed(e){const t=ar();return t?Cd(t.sanitize(dt.HTML,e)||""):qt(e,"HTML")?Cd(K2(e)):zd(S4(),de(e))}function hn(e){const t=ar();return t?t.sanitize(dt.STYLE,e)||"":qt(e,"Style")?K2(e):de(e)}function D4(e){const t=ar();return t?t.sanitize(dt.URL,e)||"":qt(e,"URL")?K2(e):ks(de(e))}function xd(e){const t=ar();if(t)return yd(t.sanitize(dt.RESOURCE_URL,e)||"");if(qt(e,"ResourceURL"))return yd(K2(e));throw new F(904,!1)}function ar(){const e=k();return e&&e[r4].sanitizer}class te{constructor(t,i){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof i?this.__NG_ELEMENT_ID__=i:void 0!==i&&(this.\u0275prov=$({token:this,providedIn:i.providedIn||"root",factory:i.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const sr=new te("ENVIRONMENT_INITIALIZER"),Ld=new te("INJECTOR",-1),Nd=new te("INJECTOR_DEF_TYPES");class j0{get(t,i=Ti){if(i===Ti){const n=new Error(`NullInjectorError: No provider for ${G1(t)}!`);throw n.name="NullInjectorError",n}return i}}function XN(...e){return{\u0275providers:Id(0,e),\u0275fromNgModule:!0}}function Id(e,...t){const i=[],n=new Set;let r;const a=s=>{i.push(s)};return M4(t,s=>{const o=s;Fs(o,a,[],n)&&(r||=[],r.push(o))}),void 0!==r&&Rd(r,a),i}function Rd(e,t){for(let i=0;i<e.length;i++){const{ngModule:n,providers:r}=e[i];G0(r,a=>{t(a,n)})}}function Fs(e,t,i,n){if(!(e=ue(e)))return!1;let r=null,a=es(e);const s=!a&&Ee(e);if(a||s){if(s&&!s.standalone)return!1;r=e}else{const c=e.ngModule;if(a=es(c),!a)return!1;r=c}const o=n.has(r);if(s){if(o)return!1;if(n.add(r),s.dependencies){const c="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const l of c)Fs(l,t,i,n)}}else{if(!a)return!1;{if(null!=a.imports&&!o){let l;n.add(r);try{M4(a.imports,u=>{Fs(u,t,i,n)&&(l||=[],l.push(u))})}finally{}void 0!==l&&Rd(l,t)}if(!o){const l=c3(r)||(()=>new r);t({provide:r,useFactory:l,deps:Te},r),t({provide:Nd,useValue:r,multi:!0},r),t({provide:sr,useValue:()=>q(r),multi:!0},r)}const c=a.providers;if(null!=c&&!o){const l=e;G0(c,u=>{t(u,l)})}}}return r!==e&&void 0!==e.providers}function G0(e,t){for(let i of e)I6(i)&&(i=i.\u0275providers),Array.isArray(i)?G0(i,t):t(i)}const eT=Ue({provide:String,useValue:Ue});function $0(e){return null!==e&&"object"==typeof e&&eT in e}function p3(e){return"function"==typeof e}const W0=new te("Set Injector scope."),Bs={},nT={};let q0;function Us(){return void 0===q0&&(q0=new j0),q0}class O2{}class js extends O2{get destroyed(){return this._destroyed}constructor(t,i,n,r){super(),this.parent=i,this.source=n,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,K0(t,s=>this.processProvider(s)),this.records.set(Ld,z4(void 0,this)),r.has("environment")&&this.records.set(O2,z4(void 0,this));const a=this.records.get(W0);null!=a&&"string"==typeof a.value&&this.scopes.add(a.value),this.injectorDefTypes=new Set(this.get(Nd.multi,Te,He.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const i of this._ngOnDestroyHooks)i.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const i of t)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const i=In(this),n=L2(void 0);try{return t()}finally{In(i),L2(n)}}get(t,i=Ti,n=He.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(yf))return t[yf](this);n=is(n);const a=In(this),s=L2(void 0);try{if(!(n&He.SkipSelf)){let c=this.records.get(t);if(void 0===c){const l=function oT(e){return"function"==typeof e||"object"==typeof e&&e instanceof te}(t)&&Xa(t);c=l&&this.injectableDefInScope(l)?z4(Y0(t),Bs):null,this.records.set(t,c)}if(null!=c)return this.hydrate(t,c)}return(n&He.Self?Us():this.parent).get(t,i=n&He.Optional&&i===Ti?null:i)}catch(o){if("NullInjectorError"===o.name){if((o[ns]=o[ns]||[]).unshift(G1(t)),a)throw o;return function nA(e,t,i,n){const r=e[ns];throw t[_f]&&r.unshift(t[_f]),e.message=function iA(e,t,i,n=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let r=G1(t);if(Array.isArray(t))r=t.map(G1).join(" -> ");else if("object"==typeof t){let a=[];for(let s in t)if(t.hasOwnProperty(s)){let o=t[s];a.push(s+":"+("string"==typeof o?JSON.stringify(o):G1(o)))}r=`{${a.join(", ")}}`}return`${i}${n?"("+n+")":""}[${r}]: ${e.replace(Qx,"\n ")}`}("\n"+e.message,r,i,n),e.ngTokenPath=r,e[ns]=null,e}(o,t,"R3InjectorError",this.source)}throw o}finally{L2(s),In(a)}}resolveInjectorInitializers(){const t=In(this),i=L2(void 0);try{const r=this.get(sr.multi,Te,He.Self);for(const a of r)a()}finally{In(t),L2(i)}}toString(){const t=[],i=this.records;for(const n of i.keys())t.push(G1(n));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new F(205,!1)}processProvider(t){let i=p3(t=ue(t))?t:ue(t&&t.provide);const n=function rT(e){return $0(e)?z4(void 0,e.useValue):z4(Pd(e),Bs)}(t);if(p3(t)||!0!==t.multi)this.records.get(i);else{let r=this.records.get(i);r||(r=z4(void 0,Bs,!0),r.factory=()=>G6(r.multi),this.records.set(i,r)),i=t,r.multi.push(t)}this.records.set(i,n)}hydrate(t,i){return i.value===Bs&&(i.value=nT,i.value=i.factory()),"object"==typeof i.value&&i.value&&function sT(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(i.value)&&this._ngOnDestroyHooks.add(i.value),i.value}injectableDefInScope(t){if(!t.providedIn)return!1;const i=ue(t.providedIn);return"string"==typeof i?"any"===i||this.scopes.has(i):this.injectorDefTypes.has(i)}removeOnDestroy(t){const i=this._onDestroyHooks.indexOf(t);-1!==i&&this._onDestroyHooks.splice(i,1)}}function Y0(e){const t=Xa(e),i=null!==t?t.factory:c3(e);if(null!==i)return i;if(e instanceof te)throw new F(204,!1);if(e instanceof Function)return function iT(e){const t=e.length;if(t>0)throw Ji(t,"?"),new F(204,!1);const i=function qx(e){return e&&(e[ts]||e[pf])||null}(e);return null!==i?()=>i.factory(e):()=>new e}(e);throw new F(204,!1)}function Pd(e,t,i){let n;if(p3(e)){const r=ue(e);return c3(r)||Y0(r)}if($0(e))n=()=>ue(e.useValue);else if(function kd(e){return!(!e||!e.useFactory)}(e))n=()=>e.useFactory(...G6(e.deps||[]));else if(function Od(e){return!(!e||!e.useExisting)}(e))n=()=>q(ue(e.useExisting));else{const r=ue(e&&(e.useClass||e.provide));if(!function aT(e){return!!e.deps}(e))return c3(r)||Y0(r);n=()=>new r(...G6(e.deps))}return n}function z4(e,t,i=!1){return{factory:e,value:t,multi:i?[]:void 0}}function K0(e,t){for(const i of e)Array.isArray(i)?K0(i,t):i&&I6(i)?K0(i.\u0275providers,t):t(i)}const Gs=new te("AppId",{providedIn:"root",factory:()=>cT}),cT="ng",Fd=new te("Platform Initializer"),E4=new te("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Bd=new te("CSP nonce",{providedIn:"root",factory:()=>S4().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Ud=(e,t,i)=>null;function il(e,t,i=!1){return Ud(e,t,i)}class _T{}class $d{}class MT{resolveComponentFactory(t){throw function CT(e){const t=Error(`No component factory found for ${G1(e)}.`);return t.ngComponent=e,t}(t)}}let Zs=(()=>{class t{}return t.NULL=new MT,t})();function yT(){return L4(o2(),k())}function L4(e,t){return new Ae(I2(e,t))}let Ae=(()=>{class t{constructor(n){this.nativeElement=n}}return t.__NG_ELEMENT_ID__=yT,t})();function bT(e){return e instanceof Ae?e.nativeElement:e}class sl{}let c2=(()=>{class t{constructor(){this.destroyNode=null}}return t.__NG_ELEMENT_ID__=()=>function wT(){const e=k(),i=q2(o2().index,e);return(T2(i)?i:e)[he]}(),t})(),HT=(()=>{var e;class t{}return(e=t).\u0275prov=$({token:e,providedIn:"root",factory:()=>null}),t})();class lr{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const VT=new lr("16.2.6"),ol={};function Zd(e,t=null,i=null,n){const r=Qd(e,t,i,n);return r.resolveInjectorInitializers(),r}function Qd(e,t=null,i=null,n,r=new Set){const a=[i||Te,XN(e)];return n=n||("object"==typeof e?void 0:G1(e)),new js(a,t||Us(),n||null,r)}let B1=(()=>{var e;class t{static create(n,r){if(Array.isArray(n))return Zd({name:""},r,n,"");{const a=n.name??"";return Zd({name:a},n.parent,n.providers,a)}}}return(e=t).THROW_IF_NOT_FOUND=Ti,e.NULL=new j0,e.\u0275prov=$({token:e,providedIn:"any",factory:()=>q(Ld)}),e.__NG_ELEMENT_ID__=-1,t})();function ll(e){return e.ngOriginalError}class pn{constructor(){this._console=console}handleError(t){const i=this._findOriginalError(t);this._console.error("ERROR",t),i&&this._console.error("ORIGINAL ERROR",i)}_findOriginalError(t){let i=t&&ll(t);for(;i&&ll(i);)i=ll(i);return i||null}}function fl(e){return t=>{setTimeout(e,void 0,t)}}const ee=class LT extends fe{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,i,n){let r=t,a=i||(()=>null),s=n;if(t&&"object"==typeof t){const c=t;r=c.next?.bind(c),a=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(a=fl(a),r&&(r=fl(r)),s&&(s=fl(s)));const o=super.subscribe({next:r,error:a,complete:s});return t instanceof Se&&t.add(o),o}};function Xd(...e){}class Me{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ee(!1),this.onMicrotaskEmpty=new ee(!1),this.onStable=new ee(!1),this.onError=new ee(!1),typeof Zone>"u")throw new F(908,!1);Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&i,r.shouldCoalesceRunChangeDetection=n,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function NT(){const e="function"==typeof e1.requestAnimationFrame;let t=e1[e?"requestAnimationFrame":"setTimeout"],i=e1[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&i){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const r=i[Zone.__symbol__("OriginalDelegate")];r&&(i=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:i}}().nativeRequestAnimationFrame,function RT(e){const t=()=>{!function IT(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(e1,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,hl(e),e.isCheckStableRunning=!0,dl(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),hl(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,n,r,a,s,o)=>{if(function kT(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(o))return i.invokeTask(r,a,s,o);try{return eh(e),i.invokeTask(r,a,s,o)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===a.type||e.shouldCoalesceRunChangeDetection)&&t(),th(e)}},onInvoke:(i,n,r,a,s,o,c)=>{try{return eh(e),i.invoke(r,a,s,o,c)}finally{e.shouldCoalesceRunChangeDetection&&t(),th(e)}},onHasTask:(i,n,r,a)=>{i.hasTask(r,a),n===r&&("microTask"==a.change?(e._hasPendingMicrotasks=a.microTask,hl(e),dl(e)):"macroTask"==a.change&&(e.hasPendingMacrotasks=a.macroTask))},onHandleError:(i,n,r,a)=>(i.handleError(r,a),e.runOutsideAngular(()=>e.onError.emit(a)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Me.isInAngularZone())throw new F(909,!1)}static assertNotInAngularZone(){if(Me.isInAngularZone())throw new F(909,!1)}run(t,i,n){return this._inner.run(t,i,n)}runTask(t,i,n,r){const a=this._inner,s=a.scheduleEventTask("NgZoneEvent: "+r,t,TT,Xd,Xd);try{return a.runTask(s,i,n)}finally{a.cancelTask(s)}}runGuarded(t,i,n){return this._inner.runGuarded(t,i,n)}runOutsideAngular(t){return this._outer.run(t)}}const TT={};function dl(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function hl(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function eh(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function th(e){e._nesting--,dl(e)}class OT{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ee,this.onMicrotaskEmpty=new ee,this.onStable=new ee,this.onError=new ee}run(t,i,n){return t.apply(i,n)}runGuarded(t,i,n){return t.apply(i,n)}runOutsideAngular(t){return t()}runTask(t,i,n,r){return t.apply(i,n)}}const nh=new te("",{providedIn:"root",factory:ih});function ih(){const e=J(Me);let t=!0;return x6(new We(r=>{t=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{r.next(t),r.complete()})}),new We(r=>{let a;e.runOutsideAngular(()=>{a=e.onStable.subscribe(()=>{Me.assertNotInAngularZone(),queueMicrotask(()=>{!t&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(t=!0,r.next(!0))})})});const s=e.onUnstable.subscribe(()=>{Me.assertInAngularZone(),t&&(t=!1,e.runOutsideAngular(()=>{r.next(!1)}))});return()=>{a.unsubscribe(),s.unsubscribe()}}).pipe(A6()))}function mn(e){return e instanceof Function?e():e}let pl=(()=>{var e;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}}return(e=t).\u0275prov=$({token:e,providedIn:"root",factory:()=>new e}),t})();function ur(e){for(;e;){e[ge]|=64;const t=tr(e);if(Z6(e)&&!t)return e;e=t}return null}const ch=new te("",{providedIn:"root",factory:()=>!1});let Js=null;function dh(e,t){return e[t]??mh()}function hh(e,t){const i=mh();i.producerNode?.length&&(e[t]=Js,i.lView=e,Js=ph())}const YT={...kf,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{ur(e.lView)},lView:null};function ph(){return Object.create(YT)}function mh(){return Js??=ph(),Js}const pe={};function C(e){gh(xe(),k(),b2()+e,!1)}function gh(e,t,i,n){if(!n)if(3==(3&t[ge])){const a=e.preOrderCheckHooks;null!==a&&ps(t,a,i)}else{const a=e.preOrderHooks;null!==a&&ms(t,a,0,i)}l3(i)}function w(e,t=He.Default){const i=k();return null===i?q(e,t):E9(o2(),i,ue(e),t)}function Xs(e,t,i,n,r,a,s,o,c,l,u){const d=t.blueprint.slice();return d[V1]=r,d[ge]=140|n,(null!==l||e&&2048&e[ge])&&(d[ge]|=2048),r9(d),d[p1]=d[a4]=e,d[N1]=i,d[r4]=s||e&&e[r4],d[he]=o||e&&e[he],d[Rn]=c||e&&e[Rn]||null,d[p2]=a,d[Bi]=function XL(){return JL++}(),d[ln]=u,d[Tf]=l,d[T1]=2==t.type?e[T1]:d,d}function I4(e,t,i,n,r){let a=e.data[t];if(null===a)a=function ml(e,t,i,n,r){const a=u9(),s=a0(),c=e.data[t]=function nI(e,t,i,n,r,a){let s=t?t.injectorIndex:-1,o=0;return u4()&&(o|=128),{type:i,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:o,providerIndexes:0,value:r,attrs:a,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?a:a&&a.parent,i,t,n,r);return null===e.firstChild&&(e.firstChild=c),null!==a&&(s?null==a.child&&null!==c.parent&&(a.child=c):null===a.next&&(a.next=c,c.prev=a)),c}(e,t,i,n,r),function eL(){return ce.lFrame.inI18n}()&&(a.flags|=32);else if(64&a.type){a.type=i,a.value=n,a.attrs=r;const s=function Wi(){const e=ce.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();a.injectorIndex=null===s?-1:s.injectorIndex}return $t(a,!0),a}function fr(e,t,i,n){if(0===i)return-1;const r=t.length;for(let a=0;a<i;a++)t.push(n),e.blueprint.push(n),e.data.push(null);return r}function _h(e,t,i,n,r){const a=dh(t,Ui),s=b2(),o=2&n;try{l3(-1),o&&t.length>Ve&&gh(e,t,Ve,!1),Gt(o?2:0,r);const l=o?a:null,u=J6(l);try{null!==l&&(l.dirty=!1),i(n,r)}finally{X6(l,u)}}finally{o&&null===t[Ui]&&hh(t,Ui),l3(s),Gt(o?3:1,r)}}function gl(e,t,i){if(K6(t)){const n=ut(null);try{const a=t.directiveEnd;for(let s=t.directiveStart;s<a;s++){const o=e.data[s];o.contentQueries&&o.contentQueries(1,i[s],s)}}finally{ut(n)}}}function vl(e,t,i){l9()&&(function lI(e,t,i,n){const r=i.directiveStart,a=i.directiveEnd;o3(i)&&function gI(e,t,i){const n=I2(t,e),r=Ch(i);let s=16;i.signals?s=4096:i.onPush&&(s=64);const o=eo(e,Xs(e,r,null,s,n,t,null,e[r4].rendererFactory.createRenderer(n,i),null,null,null));e[t.index]=o}(t,i,e.data[r+i.componentOffset]),e.firstCreatePass||vs(i,t),m2(n,t);const s=i.initialInputs;for(let o=r;o<a;o++){const c=e.data[o],l=u3(t,e,o,i);m2(l,t),null!==s&&vI(0,o-r,l,c,0,s),St(c)&&(q2(i.index,t)[N1]=u3(t,e,o,i))}}(e,t,i,I2(i,t)),64==(64&i.flags)&&Hh(e,t,i))}function _l(e,t,i=I2){const n=t.localNames;if(null!==n){let r=t.index+1;for(let a=0;a<n.length;a+=2){const s=n[a+1],o=-1===s?i(t,e):e[s];e[r++]=o}}}function Ch(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Cl(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Cl(e,t,i,n,r,a,s,o,c,l,u){const d=Ve+n,p=d+r,m=function ZT(e,t){const i=[];for(let n=0;n<t;n++)i.push(n<e?null:pe);return i}(d,p),H="function"==typeof l?l():l;return m[Z]={type:e,blueprint:m,template:i,queries:null,viewQuery:o,declTNode:t,data:m.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:p,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof a?a():a,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:c,consts:H,incompleteFirstPass:!1,ssrId:u}}let Mh=e=>null;function yh(e,t,i,n){for(let r in e)if(e.hasOwnProperty(r)){i=null===i?{}:i;const a=e[r];null===n?bh(i,t,r,a):n.hasOwnProperty(r)&&bh(i,t,n[r],a)}return i}function bh(e,t,i,n){e.hasOwnProperty(i)?e[i].push(t,n):e[i]=[t,n]}function Z2(e,t,i,n,r,a,s,o){const c=I2(t,i);let u,l=t.inputs;!o&&null!=l&&(u=l[n])?(Hl(e,i,u,n,r),o3(t)&&function aI(e,t){const i=q2(t,e);16&i[ge]||(i[ge]|=64)}(i,t.index)):3&t.type&&(n=function rI(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(n),r=null!=s?s(r,t.value||"",n):r,a.setProperty(c,n,r))}function Ml(e,t,i,n){if(l9()){const r=null===n?null:{"":-1},a=function fI(e,t){const i=e.directiveRegistry;let n=null,r=null;if(i)for(let a=0;a<i.length;a++){const s=i[a];if(zf(t,s.selectors,!1))if(n||(n=[]),St(s))if(null!==s.findHostDirectiveDefs){const o=[];r=r||new Map,s.findHostDirectiveDefs(s,o,r),n.unshift(...o,s),yl(e,t,o.length)}else n.unshift(s),yl(e,t,0);else r=r||new Map,s.findHostDirectiveDefs?.(s,n,r),n.push(s)}return null===n?null:[n,r]}(e,i);let s,o;null===a?s=o=null:[s,o]=a,null!==s&&wh(e,t,i,s,r,o),r&&function dI(e,t,i){if(t){const n=e.localNames=[];for(let r=0;r<t.length;r+=2){const a=i[t[r+1]];if(null==a)throw new F(-301,!1);n.push(t[r],a)}}}(i,n,r)}i.mergedAttrs=Oi(i.mergedAttrs,i.attrs)}function wh(e,t,i,n,r,a){for(let l=0;l<n.length;l++)v0(vs(i,t),e,n[l].type);!function pI(e,t,i){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+i,e.providerIndexes=t}(i,e.data.length,n.length);for(let l=0;l<n.length;l++){const u=n[l];u.providersResolver&&u.providersResolver(u)}let s=!1,o=!1,c=fr(e,t,n.length,null);for(let l=0;l<n.length;l++){const u=n[l];i.mergedAttrs=Oi(i.mergedAttrs,u.hostAttrs),mI(e,i,t,c,u),hI(c,u,r),null!==u.contentQueries&&(i.flags|=4),(null!==u.hostBindings||null!==u.hostAttrs||0!==u.hostVars)&&(i.flags|=64);const d=u.type.prototype;!s&&(d.ngOnChanges||d.ngOnInit||d.ngDoCheck)&&((e.preOrderHooks??=[]).push(i.index),s=!0),!o&&(d.ngOnChanges||d.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(i.index),o=!0),c++}!function iI(e,t,i){const r=t.directiveEnd,a=e.data,s=t.attrs,o=[];let c=null,l=null;for(let u=t.directiveStart;u<r;u++){const d=a[u],p=i?i.get(d):null,H=p?p.outputs:null;c=yh(d.inputs,u,c,p?p.inputs:null),l=yh(d.outputs,u,l,H);const S=null===c||null===s||Df(t)?null:_I(c,u,s);o.push(S)}null!==c&&(c.hasOwnProperty("class")&&(t.flags|=8),c.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=o,t.inputs=c,t.outputs=l}(e,i,a)}function Hh(e,t,i){const n=i.directiveStart,r=i.directiveEnd,a=i.index,s=function nL(){return ce.lFrame.currentDirectiveIndex}();try{l3(a);for(let o=n;o<r;o++){const c=e.data[o],l=t[o];o0(o),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&uI(c,l)}}finally{l3(-1),o0(s)}}function uI(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function yl(e,t,i){t.componentOffset=i,(e.components??=[]).push(t.index)}function hI(e,t,i){if(i){if(t.exportAs)for(let n=0;n<t.exportAs.length;n++)i[t.exportAs[n]]=e;St(t)&&(i[""]=e)}}function mI(e,t,i,n,r){e.data[n]=r;const a=r.factory||(r.factory=c3(r.type)),s=new qi(a,St(r),w);e.blueprint[n]=s,i[n]=s,function oI(e,t,i,n,r){const a=r.hostBindings;if(a){let s=e.hostBindingOpCodes;null===s&&(s=e.hostBindingOpCodes=[]);const o=~t.index;(function cI(e){let t=e.length;for(;t>0;){const i=e[--t];if("number"==typeof i&&i<0)return i}return 0})(s)!=o&&s.push(o),s.push(i,n,a)}}(e,t,n,fr(e,i,r.hostVars,pe),r)}function Yt(e,t,i,n,r,a){const s=I2(e,t);!function bl(e,t,i,n,r,a,s){if(null==a)e.removeAttribute(t,r,i);else{const o=null==s?de(a):s(a,n||"",r);e.setAttribute(t,r,o,i)}}(t[he],s,a,e.value,i,n,r)}function vI(e,t,i,n,r,a){const s=a[t];if(null!==s)for(let o=0;o<s.length;)Vh(n,i,s[o++],s[o++],s[o++])}function Vh(e,t,i,n,r){const a=ut(null);try{const s=e.inputTransforms;null!==s&&s.hasOwnProperty(n)&&(r=s[n].call(t,r)),null!==e.setInput?e.setInput(t,r,i,n):t[n]=r}finally{ut(a)}}function _I(e,t,i){let n=null,r=0;for(;r<i.length;){const a=i[r];if(0!==a)if(5!==a){if("number"==typeof a)break;if(e.hasOwnProperty(a)){null===n&&(n=[]);const s=e[a];for(let o=0;o<s.length;o+=2)if(s[o]===t){n.push(a,s[o+1],i[r+1]);break}}r+=2}else r+=2;else r+=4}return n}function Sh(e,t,i,n){return[e,!0,!1,t,null,0,n,i,null,null,null]}function Dh(e,t){const i=e.contentQueries;if(null!==i)for(let n=0;n<i.length;n+=2){const a=i[n+1];if(-1!==a){const s=e.data[a];l0(i[n]),s.contentQueries(2,t[a],a)}}}function eo(e,t){return e[Pi]?e[Nf][Vt]=t:e[Pi]=t,e[Nf]=t,t}function wl(e,t,i){l0(0);const n=ut(null);try{t(e,i)}finally{ut(n)}}function zh(e){return e[i4]||(e[i4]=[])}function Eh(e){return e.cleanup||(e.cleanup=[])}function Ah(e,t){const i=e[Rn],n=i?i.get(pn,null):null;n&&n.handleError(t)}function Hl(e,t,i,n,r){for(let a=0;a<i.length;){const s=i[a++],o=i[a++];Vh(e.data[s],t[s],n,o,r)}}function gn(e,t,i){const n=fs(t,e);!function ad(e,t,i){e.setValue(t,i)}(e[he],n,i)}function CI(e,t){const i=q2(t,e),n=i[Z];!function MI(e,t){for(let i=t.length;i<e.blueprint.length;i++)t.push(e.blueprint[i])}(n,i);const r=i[V1];null!==r&&null===i[ln]&&(i[ln]=il(r,i[Rn])),Vl(n,i,i[N1])}function Vl(e,t,i){u0(t);try{const n=e.viewQuery;null!==n&&wl(1,n,i);const r=e.template;null!==r&&_h(e,t,r,1,i),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Dh(e,t),e.staticViewQueries&&wl(2,e.viewQuery,i);const a=e.components;null!==a&&function yI(e,t){for(let i=0;i<t.length;i++)CI(e,t[i])}(t,a)}catch(n){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),n}finally{t[ge]&=-5,f0()}}let Lh=(()=>{var e;class t{constructor(){this.all=new Set,this.queue=new Map}create(n,r,a){const s=typeof Zone>"u"?null:Zone.current,o=function LA(e,t,i){const n=Object.create(NA);i&&(n.consumerAllowSignalWrites=!0),n.fn=e,n.schedule=t;const r=s=>{n.cleanupFn=s};return n.ref={notify:()=>Uf(n),run:()=>{if(n.dirty=!1,n.hasRun&&!jf(n))return;n.hasRun=!0;const s=J6(n);try{n.cleanupFn(),n.cleanupFn=Qf,n.fn(r)}finally{X6(n,s)}},cleanup:()=>n.cleanupFn()},n.ref}(n,u=>{this.all.has(u)&&this.queue.set(u,s)},a);let c;this.all.add(o),o.notify();const l=()=>{o.cleanup(),c?.(),this.all.delete(o),this.queue.delete(o)};return c=r?.onDestroy(l),{destroy:l}}flush(){if(0!==this.queue.size)for(const[n,r]of this.queue)this.queue.delete(n),r?r.run(()=>n.run()):n.run()}get isQueueEmpty(){return 0===this.queue.size}}return(e=t).\u0275prov=$({token:e,providedIn:"root",factory:()=>new e}),t})();function to(e,t,i){let n=i?e.styles:null,r=i?e.classes:null,a=0;if(null!==t)for(let s=0;s<t.length;s++){const o=t[s];"number"==typeof o?a=o:1==a?r=N6(r,o):2==a&&(n=N6(n,o+": "+t[++s]+";"))}i?e.styles=n:e.stylesWithoutHost=n,i?e.classes=r:e.classesWithoutHost=r}function dr(e,t,i,n,r=!1){for(;null!==i;){const a=t[i.index];null!==a&&n.push(t1(a)),M2(a)&&Nh(a,n);const s=i.type;if(8&s)dr(e,t,i.child,n);else if(32&s){const o=E0(i,t);let c;for(;c=o();)n.push(c)}else if(16&s){const o=pd(t,i);if(Array.isArray(o))n.push(...o);else{const c=tr(t[T1]);dr(c[Z],c,o,n,!0)}}i=r?i.projectionNext:i.next}return n}function Nh(e,t){for(let i=a2;i<e.length;i++){const n=e[i],r=n[Z].firstChild;null!==r&&dr(n[Z],n,r,t)}e[jt]!==e[V1]&&t.push(e[jt])}function no(e,t,i,n=!0){const r=t[r4],a=r.rendererFactory,s=r.afterRenderEventManager;a.begin?.(),s?.begin();try{Th(e,t,e.template,i)}catch(c){throw n&&Ah(t,c),c}finally{a.end?.(),r.effectManager?.flush(),s?.end()}}function Th(e,t,i,n){const r=t[ge];if(256!=(256&r)){t[r4].effectManager?.flush(),u0(t);try{r9(t),function d9(e){return ce.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==i&&_h(e,t,i,2,n);const s=3==(3&r);if(s){const l=e.preOrderCheckHooks;null!==l&&ps(t,l,null)}else{const l=e.preOrderHooks;null!==l&&ms(t,l,0,null),d0(t,0)}if(function HI(e){for(let t=nd(e);null!==t;t=id(t)){if(!t[If])continue;const i=t[o4];for(let n=0;n<i.length;n++){jA(i[n])}}}(t),Ih(t,2),null!==e.contentQueries&&Dh(e,t),s){const l=e.contentCheckHooks;null!==l&&ps(t,l)}else{const l=e.contentHooks;null!==l&&ms(t,l,1),d0(t,1)}!function KT(e,t){const i=e.hostBindingOpCodes;if(null===i)return;const n=dh(t,ji);try{for(let r=0;r<i.length;r++){const a=i[r];if(a<0)l3(~a);else{const s=a,o=i[++r],c=i[++r];tL(o,s),n.dirty=!1;const l=J6(n);try{c(2,t[s])}finally{X6(n,l)}}}}finally{null===t[ji]&&hh(t,ji),l3(-1)}}(e,t);const o=e.components;null!==o&&Oh(t,o,0);const c=e.viewQuery;if(null!==c&&wl(2,c,n),s){const l=e.viewCheckHooks;null!==l&&ps(t,l)}else{const l=e.viewHooks;null!==l&&ms(t,l,2),d0(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[ge]&=-73,a9(t)}finally{f0()}}}function Ih(e,t){for(let i=nd(e);null!==i;i=id(i))for(let n=a2;n<i.length;n++)Rh(i[n],t)}function VI(e,t,i){Rh(q2(t,e),i)}function Rh(e,t){if(!function BA(e){return 128==(128&e[ge])}(e))return;const i=e[Z],n=e[ge];if(80&n&&0===t||1024&n||2===t)Th(i,e,i.template,e[N1]);else if(e[ki]>0){Ih(e,1);const r=i.components;null!==r&&Oh(e,r,1)}}function Oh(e,t,i){for(let n=0;n<t.length;n++)VI(e,t[n],i)}class hr{get rootNodes(){const t=this._lView,i=t[Z];return dr(i,t,i.firstChild,[])}constructor(t,i){this._lView=t,this._cdRefInjectingView=i,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[N1]}set context(t){this._lView[N1]=t}get destroyed(){return 256==(256&this._lView[ge])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[p1];if(M2(t)){const i=t[8],n=i?i.indexOf(this):-1;n>-1&&(Ls(t,n),Ms(i,n))}this._attachedToViewContainer=!1}A0(this._lView[Z],this._lView)}onDestroy(t){!function o9(e,t){if(256==(256&e[ge]))throw new F(911,!1);null===e[On]&&(e[On]=[]),e[On].push(t)}(this._lView,t)}markForCheck(){ur(this._cdRefInjectingView||this._lView)}detach(){this._lView[ge]&=-129}reattach(){this._lView[ge]|=128}detectChanges(){no(this._lView[Z],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new F(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function hN(e,t){ir(e,t,t[he],2,null,null)}(this._lView[Z],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new F(902,!1);this._appRef=t}}class SI extends hr{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;no(t[Z],t,t[N1],!1)}checkNoChanges(){}get context(){return null}}class kh extends Zs{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const i=Ee(t);return new pr(i,this.ngModule)}}function Ph(e){const t=[];for(let i in e)e.hasOwnProperty(i)&&t.push({propName:e[i],templateName:i});return t}class zI{constructor(t,i){this.injector=t,this.parentInjector=i}get(t,i,n){n=is(n);const r=this.injector.get(t,ol,n);return r!==ol||i===ol?r:this.parentInjector.get(t,i,n)}}class pr extends $d{get inputs(){const t=this.componentDef,i=t.inputTransforms,n=Ph(t.inputs);if(null!==i)for(const r of n)i.hasOwnProperty(r.propName)&&(r.transform=i[r.propName]);return n}get outputs(){return Ph(this.componentDef.outputs)}constructor(t,i){super(),this.componentDef=t,this.ngModule=i,this.componentType=t.type,this.selector=function hA(e){return e.map(dA).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!i}create(t,i,n,r){let a=(r=r||this.ngModule)instanceof O2?r:r?.injector;a&&null!==this.componentDef.getStandaloneInjector&&(a=this.componentDef.getStandaloneInjector(a)||a);const s=a?new zI(t,a):t,o=s.get(sl,null);if(null===o)throw new F(407,!1);const d={rendererFactory:o,sanitizer:s.get(HT,null),effectManager:s.get(Lh,null),afterRenderEventManager:s.get(pl,null)},p=o.createRenderer(null,this.componentDef),m=this.componentDef.selectors[0][0]||"div",H=n?function QT(e,t,i,n){const a=n.get(ch,!1)||i===wt.ShadowDom,s=e.selectRootElement(t,a);return function JT(e){Mh(e)}(s),s}(p,n,this.componentDef.encapsulation,s):As(p,m,function DI(e){const t=e.toLowerCase();return"svg"===t?t9:"math"===t?"math":null}(m)),N=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let z=null;null!==H&&(z=il(H,s,!0));const B=Cl(0,null,null,1,0,null,null,null,null,null,null),U=Xs(null,B,null,N,null,null,d,p,s,null,z);let G,ie;u0(U);try{const ve=this.componentDef;let be,ke=null;ve.findHostDirectiveDefs?(be=[],ke=new Map,ve.findHostDirectiveDefs(ve,be,ke),be.push(ve)):be=[ve];const b1=function xI(e,t){const i=e[Z],n=Ve;return e[n]=t,I4(i,n,2,"#host",null)}(U,H),t2=function AI(e,t,i,n,r,a,s){const o=r[Z];!function LI(e,t,i,n){for(const r of e)t.mergedAttrs=Oi(t.mergedAttrs,r.hostAttrs);null!==t.mergedAttrs&&(to(t,t.mergedAttrs,!0),null!==i&&_d(n,i,t))}(n,e,t,s);let c=null;null!==t&&(c=il(t,r[Rn]));const l=a.rendererFactory.createRenderer(t,i);let u=16;i.signals?u=4096:i.onPush&&(u=64);const d=Xs(r,Ch(i),null,u,r[e.index],e,a,l,null,null,c);return o.firstCreatePass&&yl(o,e,n.length-1),eo(r,d),r[e.index]=d}(b1,H,ve,be,U,d,p);ie=i9(B,Ve),H&&function TI(e,t,i,n){if(n)q6(e,i,["ng-version",VT.full]);else{const{attrs:r,classes:a}=function pA(e){const t=[],i=[];let n=1,r=2;for(;n<e.length;){let a=e[n];if("string"==typeof a)2===r?""!==a&&t.push(a,e[++n]):8===r&&i.push(a);else{if(!Ht(r))break;r=a}n++}return{attrs:t,classes:i}}(t.selectors[0]);r&&q6(e,i,r),a&&a.length>0&&vd(e,i,a.join(" "))}}(p,ve,H,n),void 0!==i&&function II(e,t,i){const n=e.projection=[];for(let r=0;r<t.length;r++){const a=i[r];n.push(null!=a?Array.from(a):null)}}(ie,this.ngContentSelectors,i),G=function NI(e,t,i,n,r,a){const s=o2(),o=r[Z],c=I2(s,r);wh(o,r,s,i,null,n);for(let u=0;u<i.length;u++)m2(u3(r,o,s.directiveStart+u,s),r);Hh(o,r,s),c&&m2(c,r);const l=u3(r,o,s.directiveStart+s.componentOffset,s);if(e[N1]=r[N1]=l,null!==a)for(const u of a)u(l,t);return gl(o,s,e),l}(t2,ve,be,ke,U,[RI]),Vl(B,U,null)}finally{f0()}return new EI(this.componentType,G,L4(ie,U),U,ie)}}class EI extends _T{constructor(t,i,n,r,a){super(),this.location=n,this._rootLView=r,this._tNode=a,this.previousInputValues=null,this.instance=i,this.hostView=this.changeDetectorRef=new SI(r),this.componentType=t}setInput(t,i){const n=this._tNode.inputs;let r;if(null!==n&&(r=n[t])){if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),i))return;const a=this._rootLView;Hl(a[Z],a,r,t,i),this.previousInputValues.set(t,i),ur(q2(this._tNode.index,a))}}get injector(){return new w2(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function RI(){const e=o2();hs(k()[Z],e)}function re(e){let t=function Fh(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),i=!0;const n=[e];for(;t;){let r;if(St(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new F(903,!1);r=t.\u0275dir}if(r){if(i){n.push(r);const s=e;s.inputs=io(e.inputs),s.inputTransforms=io(e.inputTransforms),s.declaredInputs=io(e.declaredInputs),s.outputs=io(e.outputs);const o=r.hostBindings;o&&FI(e,o);const c=r.viewQuery,l=r.contentQueries;if(c&&kI(e,c),l&&PI(e,l),Qa(e.inputs,r.inputs),Qa(e.declaredInputs,r.declaredInputs),Qa(e.outputs,r.outputs),null!==r.inputTransforms&&(null===s.inputTransforms&&(s.inputTransforms={}),Qa(s.inputTransforms,r.inputTransforms)),St(r)&&r.data.animation){const u=e.data;u.animation=(u.animation||[]).concat(r.data.animation)}}const a=r.features;if(a)for(let s=0;s<a.length;s++){const o=a[s];o&&o.ngInherit&&o(e),o===re&&(i=!1)}}t=Object.getPrototypeOf(t)}!function OI(e){let t=0,i=null;for(let n=e.length-1;n>=0;n--){const r=e[n];r.hostVars=t+=r.hostVars,r.hostAttrs=Oi(r.hostAttrs,i=Oi(i,r.hostAttrs))}}(n)}function io(e){return e===Bt?{}:e===Te?[]:e}function kI(e,t){const i=e.viewQuery;e.viewQuery=i?(n,r)=>{t(n,r),i(n,r)}:t}function PI(e,t){const i=e.contentQueries;e.contentQueries=i?(n,r,a)=>{t(n,r,a),i(n,r,a)}:t}function FI(e,t){const i=e.hostBindings;e.hostBindings=i?(n,r)=>{t(n,r),i(n,r)}:t}function Gh(e){const t=e.inputConfig,i={};for(const n in t)if(t.hasOwnProperty(n)){const r=t[n];Array.isArray(r)&&r[2]&&(i[n]=r[2])}e.inputTransforms=i}function ro(e){return!!function Sl(e){return null!==e&&("function"==typeof e||"object"==typeof e)}(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function g2(e,t,i){return!Object.is(e[t],i)&&(e[t]=i,!0)}function m3(e,t,i,n){const r=g2(e,t,i);return g2(e,t+1,n)||r}function W(e,t,i,n){const r=k();return g2(r,f4(),t)&&(xe(),Yt(_1(),r,e,t,i,n)),W}function O4(e,t,i,n){return g2(e,f4(),i)?t+de(i)+n:pe}function k4(e,t,i,n,r,a){const o=m3(e,function un(){return ce.lFrame.bindingIndex}(),i,r);return fn(2),o?t+de(i)+n+de(r)+a:pe}function I(e,t,i,n,r,a,s,o){const c=k(),l=xe(),u=e+Ve,d=l.firstCreatePass?function uR(e,t,i,n,r,a,s,o,c){const l=t.consts,u=I4(t,e,4,s||null,Pn(l,o));Ml(t,i,u,Pn(l,c)),hs(t,u);const d=u.tView=Cl(2,u,n,r,a,t.directiveRegistry,t.pipeRegistry,null,t.schemas,l,null);return null!==t.queries&&(t.queries.template(t,u),d.queries=t.queries.embeddedTView(u)),u}(u,l,c,t,i,n,r,a,s):l.data[u];$t(d,!1);const p=ip(l,c,d,e);ds()&&Ts(l,c,p,d),m2(p,c),eo(c,c[u]=Sh(p,c,p,d)),cs(d)&&vl(l,c,d),null!=s&&_l(c,d,o)}let ip=function rp(e,t,i,n){return Fn(!0),t[he].createComment("")};function k2(e){return function l4(e,t){return e[t]}(function XA(){return ce.lFrame.contextLView}(),Ve+e)}function b(e,t,i){const n=k();return g2(n,f4(),t)&&Z2(xe(),_1(),n,e,t,n[he],i,!1),b}function Ll(e,t,i,n,r){const s=r?"class":"style";Hl(e,i,t.inputs[s],s,n)}function g(e,t,i,n){const r=k(),a=xe(),s=Ve+e,o=r[he],c=a.firstCreatePass?function pR(e,t,i,n,r,a){const s=t.consts,c=I4(t,e,2,n,Pn(s,r));return Ml(t,i,c,Pn(s,a)),null!==c.attrs&&to(c,c.attrs,!1),null!==c.mergedAttrs&&to(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(s,a,r,t,i,n):a.data[s],l=ap(a,r,c,o,t,e);r[s]=l;const u=cs(c);return $t(c,!0),_d(o,l,c),32!=(32&c.flags)&&ds()&&Ts(a,r,l,c),0===function $A(){return ce.lFrame.elementDepthCount}()&&m2(l,r),function WA(){ce.lFrame.elementDepthCount++}(),u&&(vl(a,r,c),gl(a,c,r)),null!==n&&_l(r,c),g}function _(){let e=o2();a0()?s0():(e=e.parent,$t(e,!1));const t=e;(function YA(e){return ce.skipHydrationRootTNode===e})(t)&&function JA(){ce.skipHydrationRootTNode=null}(),function qA(){ce.lFrame.elementDepthCount--}();const i=xe();return i.firstCreatePass&&(hs(i,e),K6(e)&&i.queries.elementEnd(e)),null!=t.classesWithoutHost&&function fL(e){return 0!=(8&e.flags)}(t)&&Ll(i,t,k(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function dL(e){return 0!=(16&e.flags)}(t)&&Ll(i,t,k(),t.stylesWithoutHost,!1),_}function P(e,t,i,n){return g(e,t,i,n),_(),P}let ap=(e,t,i,n,r,a)=>(Fn(!0),As(n,r,function M9(){return ce.lFrame.currentNamespace}()));function S1(){return k()}function Mr(e){return!!e&&"function"==typeof e.then}function cp(e){return!!e&&"function"==typeof e.subscribe}function O(e,t,i,n){const r=k(),a=xe(),s=o2();return function up(e,t,i,n,r,a,s){const o=cs(n),l=e.firstCreatePass&&Eh(e),u=t[N1],d=zh(t);let p=!0;if(3&n.type||s){const S=I2(n,t),E=s?s(S):S,N=d.length,z=s?U=>s(t1(U[n.index])):n.index;let B=null;if(!s&&o&&(B=function MR(e,t,i,n){const r=e.cleanup;if(null!=r)for(let a=0;a<r.length-1;a+=2){const s=r[a];if(s===i&&r[a+1]===n){const o=t[i4],c=r[a+2];return o.length>c?o[c]:null}"string"==typeof s&&(a+=2)}return null}(e,t,r,n.index)),null!==B)(B.__ngLastListenerFn__||B).__ngNextListenerFn__=a,B.__ngLastListenerFn__=a,p=!1;else{a=dp(n,t,u,a,!1);const U=i.listen(E,r,a);d.push(a,U),l&&l.push(r,z,N,N+1)}}else a=dp(n,t,u,a,!1);const m=n.outputs;let H;if(p&&null!==m&&(H=m[r])){const S=H.length;if(S)for(let E=0;E<S;E+=2){const G=t[H[E]][H[E+1]].subscribe(a),ie=d.length;d.push(a,G),l&&l.push(r,n.index,ie,-(ie+1))}}}(a,r,r[he],s,e,t,n),O}function fp(e,t,i,n){try{return Gt(6,t,i),!1!==i(n)}catch(r){return Ah(e,r),!1}finally{Gt(7,t,i)}}function dp(e,t,i,n,r){return function a(s){if(s===Function)return n;ur(e.componentOffset>-1?q2(e.index,t):t);let c=fp(t,i,n,s),l=a.__ngNextListenerFn__;for(;l;)c=fp(t,i,l,s)&&c,l=l.__ngNextListenerFn__;return r&&!1===c&&s.preventDefault(),c}}function T(e=1){return function rL(e){return(ce.lFrame.contextLView=function aL(e,t){for(;e>0;)t=t[a4],e--;return t}(e,ce.lFrame.contextLView))[N1]}(e)}function yR(e,t){let i=null;const n=function cA(e){const t=e.attrs;if(null!=t){const i=t.indexOf(5);if(!(1&i))return t[i+1]}return null}(e);for(let r=0;r<t.length;r++){const a=t[r];if("*"!==a){if(null===n?zf(e,a,!0):fA(n,a))return r}else i=r}return i}function $4(e){const t=k()[T1][p2];if(!t.projection){const n=t.projection=Ji(e?e.length:1,null),r=n.slice();let a=t.child;for(;null!==a;){const s=e?yR(a,e):0;null!==s&&(r[s]?r[s].projectionNext=a:n[s]=a,r[s]=a),a=a.next}}}function W4(e,t=0,i){const n=k(),r=xe(),a=I4(r,Ve+e,16,null,i||null);null===a.projection&&(a.projection=t),s0(),(!n[ln]||u4())&&32!=(32&a.flags)&&function yN(e,t,i){gd(t[he],0,t,i,N0(e,i,t),ud(i.parent||t[p2],i,t))}(r,n,a)}function Il(e,t,i){return q4(e,"",t,"",i),Il}function q4(e,t,i,n,r){const a=k(),s=O4(a,t,i,n);return s!==pe&&Z2(xe(),_1(),a,e,s,a[he],r,!1),q4}function lo(e,t){return e<<17|t<<2}function Un(e){return e>>17&32767}function Rl(e){return 2|e}function g3(e){return(131068&e)>>2}function Ol(e,t){return-131069&e|t<<2}function kl(e){return 1|e}function yp(e,t,i,n,r){const a=e[i+1],s=null===t;let o=n?Un(a):g3(a),c=!1;for(;0!==o&&(!1===c||s);){const u=e[o+1];DR(e[o],t)&&(c=!0,e[o+1]=n?kl(u):Rl(u)),o=n?Un(u):g3(u)}c&&(e[i+1]=n?Rl(a):kl(a))}function DR(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&y4(e,t)>=0}const W1={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function bp(e){return e.substring(W1.key,W1.keyEnd)}function wp(e,t){const i=W1.textEnd;return i===t?-1:(t=W1.keyEnd=function AR(e,t,i){for(;t<i&&e.charCodeAt(t)>32;)t++;return t}(e,W1.key=t,i),Y4(e,t,i))}function Y4(e,t,i){for(;t<i&&e.charCodeAt(t)<=32;)t++;return t}function ze(e,t){return function Dt(e,t,i,n){const r=k(),a=xe(),s=fn(2);a.firstUpdatePass&&xp(a,e,s,n),t!==pe&&g2(r,s,t)&&Lp(a,a.data[b2()],r,r[he],e,r[s+1]=function UR(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=G1(K2(e)))),e}(t,i),n,s)}(e,t,null,!0),ze}function vn(e){!function zt(e,t,i,n){const r=xe(),a=fn(2);r.firstUpdatePass&&xp(r,null,a,n);const s=k();if(i!==pe&&g2(s,a,i)){const o=r.data[b2()];if(Tp(o,n)&&!Ep(r,a)){let c=n?o.classesWithoutHost:o.stylesWithoutHost;null!==c&&(i=N6(c,i||"")),Ll(r,o,s,i,n)}else!function BR(e,t,i,n,r,a,s,o){r===pe&&(r=Te);let c=0,l=0,u=0<r.length?r[0]:null,d=0<a.length?a[0]:null;for(;null!==u||null!==d;){const p=c<r.length?r[c+1]:void 0,m=l<a.length?a[l+1]:void 0;let S,H=null;u===d?(c+=2,l+=2,p!==m&&(H=d,S=m)):null===d||null!==u&&u<d?(c+=2,H=u):(l+=2,H=d,S=m),null!==H&&Lp(e,t,i,n,H,S,s,o),u=c<r.length?r[c]:null,d=l<a.length?a[l]:null}}(r,o,s,s[he],s[a+1],s[a+1]=function PR(e,t,i){if(null==i||""===i)return Te;const n=[],r=K2(i);if(Array.isArray(r))for(let a=0;a<r.length;a++)e(n,r[a],!0);else if("object"==typeof r)for(const a in r)r.hasOwnProperty(a)&&e(n,a,r[a]);else"string"==typeof r&&t(n,r);return n}(e,t,i),n,a)}}(FR,Qt,e,!0)}function Qt(e,t){for(let i=function ER(e){return function Vp(e){W1.key=0,W1.keyEnd=0,W1.value=0,W1.valueEnd=0,W1.textEnd=e.length}(e),wp(e,Y4(e,0,W1.textEnd))}(t);i>=0;i=wp(t,i))Y2(e,bp(t),!0)}function Ep(e,t){return t>=e.expandoStartIndex}function xp(e,t,i,n){const r=e.data;if(null===r[i+1]){const a=r[b2()],s=Ep(e,i);Tp(a,n)&&null===t&&!s&&(t=!1),t=function IR(e,t,i,n){const r=function c0(e){const t=ce.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let a=n?t.residualClasses:t.residualStyles;if(null===r)0===(n?t.classBindings:t.styleBindings)&&(i=yr(i=Pl(null,e,t,i,n),t.attrs,n),a=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==r)if(i=Pl(r,e,t,i,n),null===a){let c=function RR(e,t,i){const n=i?t.classBindings:t.styleBindings;if(0!==g3(n))return e[Un(n)]}(e,t,n);void 0!==c&&Array.isArray(c)&&(c=Pl(null,e,t,c[1],n),c=yr(c,t.attrs,n),function OR(e,t,i,n){e[Un(i?t.classBindings:t.styleBindings)]=n}(e,t,n,c))}else a=function kR(e,t,i){let n;const r=t.directiveEnd;for(let a=1+t.directiveStylingLast;a<r;a++)n=yr(n,e[a].hostAttrs,i);return yr(n,t.attrs,i)}(e,t,n)}return void 0!==a&&(n?t.residualClasses=a:t.residualStyles=a),i}(r,a,t,n),function VR(e,t,i,n,r,a){let s=a?t.classBindings:t.styleBindings,o=Un(s),c=g3(s);e[n]=i;let u,l=!1;if(Array.isArray(i)?(u=i[1],(null===u||y4(i,u)>0)&&(l=!0)):u=i,r)if(0!==c){const p=Un(e[o+1]);e[n+1]=lo(p,o),0!==p&&(e[p+1]=Ol(e[p+1],n)),e[o+1]=function wR(e,t){return 131071&e|t<<17}(e[o+1],n)}else e[n+1]=lo(o,0),0!==o&&(e[o+1]=Ol(e[o+1],n)),o=n;else e[n+1]=lo(c,0),0===o?o=n:e[c+1]=Ol(e[c+1],n),c=n;l&&(e[n+1]=Rl(e[n+1])),yp(e,u,n,!0),yp(e,u,n,!1),function SR(e,t,i,n,r){const a=r?e.residualClasses:e.residualStyles;null!=a&&"string"==typeof t&&y4(a,t)>=0&&(i[n+1]=kl(i[n+1]))}(t,u,e,n,a),s=lo(o,c),a?t.classBindings=s:t.styleBindings=s}(r,a,t,i,s,n)}}function Pl(e,t,i,n,r){let a=null;const s=i.directiveEnd;let o=i.directiveStylingLast;for(-1===o?o=i.directiveStart:o++;o<s&&(a=t[o],n=yr(n,a.hostAttrs,r),a!==e);)o++;return null!==e&&(i.directiveStylingLast=o),n}function yr(e,t,i){const n=i?1:2;let r=-1;if(null!==t)for(let a=0;a<t.length;a++){const s=t[a];"number"==typeof s?r=s:r===n&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Y2(e,s,!!i||t[++a]))}return void 0===e?null:e}function FR(e,t,i){const n=String(t);""!==n&&!n.includes(" ")&&Y2(e,n,i)}function Lp(e,t,i,n,r,a,s,o){if(!(3&t.type))return;const c=e.data,l=c[o+1],u=function HR(e){return 1==(1&e)}(l)?Np(c,t,i,r,g3(l),s):void 0;uo(u)||(uo(a)||function bR(e){return 2==(2&e)}(l)&&(a=Np(c,null,i,r,o,s)),function wN(e,t,i,n,r){if(t)r?e.addClass(i,n):e.removeClass(i,n);else{let a=-1===n.indexOf("-")?void 0:Bn.DashCase;null==r?e.removeStyle(i,n,a):("string"==typeof r&&r.endsWith("!important")&&(r=r.slice(0,-10),a|=Bn.Important),e.setStyle(i,n,r,a))}}(n,s,fs(b2(),i),r,a))}function Np(e,t,i,n,r,a){const s=null===t;let o;for(;r>0;){const c=e[r],l=Array.isArray(c),u=l?c[1]:c,d=null===u;let p=i[r+1];p===pe&&(p=d?Te:void 0);let m=d?M0(p,n):u===n?p:void 0;if(l&&!uo(m)&&(m=M0(c,n)),uo(m)&&(o=m,s))return o;const H=e[r+1];r=s?Un(H):g3(H)}if(null!==t){let c=a?t.residualClasses:t.residualStyles;null!=c&&(o=M0(c,n))}return o}function uo(e){return void 0!==e}function Tp(e,t){return 0!=(e.flags&(t?8:16))}function y(e,t=""){const i=k(),n=xe(),r=e+Ve,a=n.firstCreatePass?I4(n,r,1,t,null):n.data[r],s=Ip(n,i,a,t,e);i[r]=s,ds()&&Ts(n,i,s,a),$t(a,!1)}let Ip=(e,t,i,n,r)=>(Fn(!0),function xs(e,t){return e.createText(t)}(t[he],n));function pt(e){return Q2("",e,""),pt}function Q2(e,t,i){const n=k(),r=O4(n,e,t,i);return r!==pe&&gn(n,b2(),r),Q2}function K4(e,t,i,n,r){const a=k(),s=k4(a,e,t,i,n,r);return s!==pe&&gn(a,b2(),s),K4}function H2(e,t,i){const n=k();return g2(n,f4(),t)&&Z2(xe(),_1(),n,e,t,n[he],i,!0),H2}const Q4="en-US";let tm=Q4;function Ul(e,t,i,n,r){if(e=ue(e),Array.isArray(e))for(let a=0;a<e.length;a++)Ul(e[a],t,i,n,r);else{const a=xe(),s=k(),o=o2();let c=p3(e)?e:ue(e.provide);const l=Pd(e),u=1048575&o.providerIndexes,d=o.directiveStart,p=o.providerIndexes>>20;if(p3(e)||!e.multi){const m=new qi(l,r,w),H=Gl(c,t,r?u:u+p,d);-1===H?(v0(vs(o,s),a,c),jl(a,e,t.length),t.push(c),o.directiveStart++,o.directiveEnd++,r&&(o.providerIndexes+=1048576),i.push(m),s.push(m)):(i[H]=m,s[H]=m)}else{const m=Gl(c,t,u+p,d),H=Gl(c,t,u,u+p),E=H>=0&&i[H];if(r&&!E||!r&&!(m>=0&&i[m])){v0(vs(o,s),a,c);const N=function ck(e,t,i,n,r){const a=new qi(e,i,w);return a.multi=[],a.index=t,a.componentProviders=0,Sm(a,r,n&&!i),a}(r?ok:sk,i.length,r,n,l);!r&&E&&(i[H].providerFactory=N),jl(a,e,t.length,0),t.push(c),o.directiveStart++,o.directiveEnd++,r&&(o.providerIndexes+=1048576),i.push(N),s.push(N)}else jl(a,e,m>-1?m:H,Sm(i[r?H:m],l,!r&&n));!r&&n&&E&&i[H].componentProviders++}}}function jl(e,t,i,n){const r=p3(t),a=function tT(e){return!!e.useClass}(t);if(r||a){const c=(a?ue(t.useClass):t).prototype.ngOnDestroy;if(c){const l=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){const u=l.indexOf(i);-1===u?l.push(i,[n,c]):l[u+1].push(n,c)}else l.push(i,c)}}}function Sm(e,t,i){return i&&e.componentProviders++,e.multi.push(t)-1}function Gl(e,t,i,n){for(let r=i;r<n;r++)if(t[r]===e)return r;return-1}function sk(e,t,i,n){return $l(this.multi,[])}function ok(e,t,i,n){const r=this.multi;let a;if(this.providerFactory){const s=this.providerFactory.componentProviders,o=u3(i,i[Z],this.providerFactory.index,n);a=o.slice(0,s),$l(r,a);for(let c=s;c<o.length;c++)a.push(o[c])}else a=[],$l(r,a);return a}function $l(e,t){for(let i=0;i<e.length;i++)t.push((0,e[i])());return t}function Ke(e,t=[]){return i=>{i.providersResolver=(n,r)=>function ak(e,t,i){const n=xe();if(n.firstCreatePass){const r=St(e);Ul(i,n.data,n.blueprint,r,!0),Ul(t,n.data,n.blueprint,r,!1)}}(n,r?r(e):e,t)}}class _3{}class Dm{}class Wl extends _3{constructor(t,i,n){super(),this._parent=i,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new kh(this);const r=W2(t);this._bootstrapComponents=mn(r.bootstrap),this._r3Injector=Qd(t,i,[{provide:_3,useValue:this},{provide:Zs,useValue:this.componentFactoryResolver},...n],G1(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(i=>i()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class ql extends Dm{constructor(t){super(),this.moduleType=t}create(t){return new Wl(this.moduleType,t,[])}}class zm extends _3{constructor(t){super(),this.componentFactoryResolver=new kh(this),this.instance=null;const i=new js([...t.providers,{provide:_3,useValue:this},{provide:Zs,useValue:this.componentFactoryResolver}],t.parent||Us(),t.debugName,new Set(["environment"]));this.injector=i,t.runEnvironmentInitializers&&i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Yl(e,t,i=null){return new zm({providers:e,parent:t,debugName:i,runEnvironmentInitializers:!0}).injector}let fk=(()=>{var e;class t{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){const r=Id(0,n.type),a=r.length>0?Yl([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,a)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}}return(e=t).\u0275prov=$({token:e,providedIn:"environment",factory:()=>new e(q(O2))}),t})();function S2(e){e.getStandaloneInjector=t=>t.get(fk).getOrCreateStandaloneInjector(e)}function Er(e,t,i,n,r){return function Rm(e,t,i,n,r,a,s){const o=t+i;return m3(e,o,r,a)?function Kt(e,t,i){return e[t]=i}(e,o+2,s?n.call(s,r,a):n(r,a)):function xr(e,t){const i=e[t];return i===pe?void 0:i}(e,o+2)}(k(),function y2(){const e=ce.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}(),e,t,i,n,r)}function Tk(){return this._results[Symbol.iterator]()}class Ql{get changes(){return this._changes||(this._changes=new ee)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const i=Ql.prototype;i[Symbol.iterator]||(i[Symbol.iterator]=Tk)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,i){return this._results.reduce(t,i)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,i){const n=this;n.dirty=!1;const r=function ft(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function SL(e,t,i){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){let r=e[n],a=t[n];if(i&&(r=i(r),a=i(a)),a!==r)return!1}return!0}(n._results,r,i))&&(n._results=r,n.length=r.length,n.last=r[this.length-1],n.first=r[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}function Rk(e,t,i,n=!0){const r=t[Z];if(function mN(e,t,i,n){const r=a2+n,a=i.length;n>0&&(i[r-1][Vt]=t),n<a-a2?(t[Vt]=i[r],I9(i,a2+n,t)):(i.push(t),t[Vt]=null),t[p1]=i;const s=t[Fi];null!==s&&i!==s&&function gN(e,t){const i=e[o4];t[T1]!==t[p1][p1][T1]&&(e[If]=!0),null===i?e[o4]=[t]:i.push(t)}(s,t);const o=t[Ut];null!==o&&o.insertView(e),t[ge]|=128}(r,t,e,i),n){const a=I0(i,e),s=t[he],o=Ns(s,e[jt]);null!==o&&function dN(e,t,i,n,r,a){n[V1]=r,n[p2]=t,ir(e,n,i,1,r,a)}(r,e[p2],s,t,o,a)}}let o1=(()=>{class t{}return t.__NG_ELEMENT_ID__=Pk,t})();const Ok=o1,kk=class extends Ok{constructor(t,i,n){super(),this._declarationLView=t,this._declarationTContainer=i,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,i){return this.createEmbeddedViewImpl(t,i)}createEmbeddedViewImpl(t,i,n){const r=function Ik(e,t,i,n){const r=t.tView,o=Xs(e,r,i,4096&e[ge]?4096:16,null,t,null,null,null,n?.injector??null,n?.hydrationInfo??null);o[Fi]=e[t.index];const l=e[Ut];return null!==l&&(o[Ut]=l.createEmbeddedView(r)),Vl(r,o,i),o}(this._declarationLView,this._declarationTContainer,t,{injector:i,hydrationInfo:n});return new hr(r)}};function Pk(){return go(o2(),k())}function go(e,t){return 4&e.type?new kk(t,e,L4(e,t)):null}let F2=(()=>{class t{}return t.__NG_ELEMENT_ID__=$k,t})();function $k(){return Wm(o2(),k())}const Wk=F2,Gm=class extends Wk{constructor(t,i,n){super(),this._lContainer=t,this._hostTNode=i,this._hostLView=n}get element(){return L4(this._hostTNode,this._hostLView)}get injector(){return new w2(this._hostTNode,this._hostLView)}get parentInjector(){const t=_s(this._hostTNode,this._hostLView);if(p0(t)){const i=Ki(t,this._hostLView),n=Yi(t);return new w2(i[Z].data[n+8],i)}return new w2(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const i=$m(this._lContainer);return null!==i&&i[t]||null}get length(){return this._lContainer.length-a2}createEmbeddedView(t,i,n){let r,a;"number"==typeof n?r=n:null!=n&&(r=n.index,a=n.injector);const o=t.createEmbeddedViewImpl(i||{},a,null);return this.insertImpl(o,r,false),o}createComponent(t,i,n,r,a){const s=t&&!function Qi(e){return"function"==typeof e}(t);let o;if(s)o=i;else{const S=i||{};o=S.index,n=S.injector,r=S.projectableNodes,a=S.environmentInjector||S.ngModuleRef}const c=s?t:new pr(Ee(t)),l=n||this.parentInjector;if(!a&&null==c.ngModule){const E=(s?l:this.parentInjector).get(O2,null);E&&(a=E)}Ee(c.componentType??{});const m=c.create(l,r,null,a);return this.insertImpl(m.hostView,o,false),m}insert(t,i){return this.insertImpl(t,i,!1)}insertImpl(t,i,n){const r=t._lView;if(function UA(e){return M2(e[p1])}(r)){const c=this.indexOf(t);if(-1!==c)this.detach(c);else{const l=r[p1],u=new Gm(l,l[p2],l[p1]);u.detach(u.indexOf(t))}}const s=this._adjustIndex(i),o=this._lContainer;return Rk(o,r,s,!n),t.attachToViewContainerRef(),I9(Jl(o),s,t),t}move(t,i){return this.insert(t,i)}indexOf(t){const i=$m(this._lContainer);return null!==i?i.indexOf(t):-1}remove(t){const i=this._adjustIndex(t,-1),n=Ls(this._lContainer,i);n&&(Ms(Jl(this._lContainer),i),A0(n[Z],n))}detach(t){const i=this._adjustIndex(t,-1),n=Ls(this._lContainer,i);return n&&null!=Ms(Jl(this._lContainer),i)?new hr(n):null}_adjustIndex(t,i=0){return t??this.length+i}};function $m(e){return e[8]}function Jl(e){return e[8]||(e[8]=[])}function Wm(e,t){let i;const n=t[e.index];return M2(n)?i=n:(i=Sh(n,t,null,e),t[e.index]=i,eo(t,i)),qm(i,t,e,n),new Gm(i,e,t)}let qm=function Ym(e,t,i,n){if(e[jt])return;let r;r=8&i.type?t1(n):function qk(e,t){const i=e[he],n=i.createComment(""),r=I2(t,e);return d3(i,Ns(i,r),n,function MN(e,t){return e.nextSibling(t)}(i,r),!1),n}(t,i),e[jt]=r};class Xl{constructor(t){this.queryList=t,this.matches=null}clone(){return new Xl(this.queryList)}setDirty(){this.queryList.setDirty()}}class e8{constructor(t=[]){this.queries=t}createEmbeddedView(t){const i=t.queries;if(null!==i){const n=null!==t.contentQueries?t.contentQueries[0]:i.length,r=[];for(let a=0;a<n;a++){const s=i.getByIndex(a);r.push(this.queries[s.indexInDeclarationView].clone())}return new e8(r)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let i=0;i<this.queries.length;i++)null!==Xm(t,i).matches&&this.queries[i].setDirty()}}class Km{constructor(t,i,n=null){this.predicate=t,this.flags=i,this.read=n}}class t8{constructor(t=[]){this.queries=t}elementStart(t,i){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(t,i)}elementEnd(t){for(let i=0;i<this.queries.length;i++)this.queries[i].elementEnd(t)}embeddedTView(t){let i=null;for(let n=0;n<this.length;n++){const r=null!==i?i.length:0,a=this.getByIndex(n).embeddedTView(t,r);a&&(a.indexInDeclarationView=n,null!==i?i.push(a):i=[a])}return null!==i?new t8(i):null}template(t,i){for(let n=0;n<this.queries.length;n++)this.queries[n].template(t,i)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class n8{constructor(t,i=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=i}elementStart(t,i){this.isApplyingToNode(i)&&this.matchTNode(t,i)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,i){this.elementStart(t,i)}embeddedTView(t,i){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,i),new n8(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const i=this._declarationNodeIndex;let n=t.parent;for(;null!==n&&8&n.type&&n.index!==i;)n=n.parent;return i===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(t,i){const n=this.metadata.predicate;if(Array.isArray(n))for(let r=0;r<n.length;r++){const a=n[r];this.matchTNodeWithReadOption(t,i,Zk(i,a)),this.matchTNodeWithReadOption(t,i,Cs(i,t,a,!1,!1))}else n===o1?4&i.type&&this.matchTNodeWithReadOption(t,i,-1):this.matchTNodeWithReadOption(t,i,Cs(i,t,n,!1,!1))}matchTNodeWithReadOption(t,i,n){if(null!==n){const r=this.metadata.read;if(null!==r)if(r===Ae||r===F2||r===o1&&4&i.type)this.addMatch(i.index,-2);else{const a=Cs(i,t,r,!1,!1);null!==a&&this.addMatch(i.index,a)}else this.addMatch(i.index,n)}}addMatch(t,i){null===this.matches?this.matches=[t,i]:this.matches.push(t,i)}}function Zk(e,t){const i=e.localNames;if(null!==i)for(let n=0;n<i.length;n+=2)if(i[n]===t)return i[n+1];return null}function Jk(e,t,i,n){return-1===i?function Qk(e,t){return 11&e.type?L4(e,t):4&e.type?go(e,t):null}(t,e):-2===i?function Xk(e,t,i){return i===Ae?L4(t,e):i===o1?go(t,e):i===F2?Wm(t,e):void 0}(e,t,n):u3(e,e[Z],i,t)}function Zm(e,t,i,n){const r=t[Ut].queries[n];if(null===r.matches){const a=e.data,s=i.matches,o=[];for(let c=0;c<s.length;c+=2){const l=s[c];o.push(l<0?null:Jk(t,a[l],s[c+1],i.metadata.read))}r.matches=o}return r.matches}function i8(e,t,i,n){const r=e.queries.getByIndex(i),a=r.matches;if(null!==a){const s=Zm(e,t,r,i);for(let o=0;o<a.length;o+=2){const c=a[o];if(c>0)n.push(s[o/2]);else{const l=a[o+1],u=t[-c];for(let d=a2;d<u.length;d++){const p=u[d];p[Fi]===p[p1]&&i8(p[Z],p,l,n)}if(null!==u[o4]){const d=u[o4];for(let p=0;p<d.length;p++){const m=d[p];i8(m[Z],m,l,n)}}}}}return n}function je(e){const t=k(),i=xe(),n=p9();l0(n+1);const r=Xm(i,n);if(e.dirty&&function FA(e){return 4==(4&e[ge])}(t)===(2==(2&r.metadata.flags))){if(null===r.matches)e.reset([]);else{const a=r.crossesNgTemplate?i8(i,t,n,[]):Zm(i,t,r,n);e.reset(a,bT),e.notifyOnChanges()}return!0}return!1}function C1(e,t,i,n){const r=xe();if(r.firstCreatePass){const a=o2();Jm(r,new Km(t,i,n),a.index),function tP(e,t){const i=e.contentQueries||(e.contentQueries=[]);t!==(i.length?i[i.length-1]:-1)&&i.push(e.queries.length-1,t)}(r,e),2==(2&i)&&(r.staticContentQueries=!0)}Qm(r,k(),i)}function Ge(){return function eP(e,t){return e[Ut].queries[t].queryList}(k(),p9())}function Qm(e,t,i){const n=new Ql(4==(4&i));(function tI(e,t,i,n){const r=zh(t);r.push(i),e.firstCreatePass&&Eh(e).push(n,r.length-1)})(e,t,n,n.destroy),null===t[Ut]&&(t[Ut]=new e8),t[Ut].queries.push(new Xl(n))}function Jm(e,t,i){null===e.queries&&(e.queries=new t8),e.queries.track(new n8(t,i))}function Xm(e,t){return e.queries.getByIndex(t)}function D2(e,t){return go(e,t)}const l8=new te("Application Initializer");let u8=(()=>{var e;class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=J(l8,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const a of this.appInits){const s=a();if(Mr(s))n.push(s);else if(cp(s)){const o=new Promise((c,l)=>{s.subscribe({complete:c,error:l})});n.push(o)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(a=>{this.reject(a)}),0===n.length&&r(),this.initialized=!0}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),gg=(()=>{var e;class t{log(n){console.log(n)}warn(n){console.warn(n)}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();const Et=new te("LocaleId",{providedIn:"root",factory:()=>J(Et,He.Optional|He.SkipSelf)||function bP(){return typeof $localize<"u"&&$localize.locale||Q4}()});let vg=(()=>{var e;class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ct(!1)}add(){this.hasPendingTasks.next(!0);const n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();class VP{constructor(t,i){this.ngModuleFactory=t,this.componentFactories=i}}let _g=(()=>{var e;class t{compileModuleSync(n){return new ql(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),s=mn(W2(n).declarations).reduce((o,c)=>{const l=Ee(c);return l&&o.push(new pr(l)),o},[]);return new VP(r,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const bg=new te(""),Mo=new te("");let m8,h8=(()=>{var e;class t{constructor(n,r,a){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,m8||(function $P(e){m8=e}(a),a.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Me.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,a){let s=-1;r&&r>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:a})}whenStable(n,r,a){if(a&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,a),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,a){return[]}}return(e=t).\u0275fac=function(n){return new(n||e)(q(Me),q(p8),q(Mo))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),t})(),p8=(()=>{var e;class t{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return m8?.findTestabilityInTree(this,n,r)??null}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})(),jn=null;const wg=new te("AllowMultipleToken"),g8=new te("PlatformDestroyListeners"),v8=new te("appBootstrapListener");class Vg{constructor(t,i){this.name=t,this.token=i}}function Dg(e,t,i=[]){const n=`Platform: ${t}`,r=new te(n);return(a=[])=>{let s=_8();if(!s||s.injector.get(wg,!1)){const o=[...i,...a,{provide:r,useValue:!0}];e?e(o):function YP(e){if(jn&&!jn.get(wg,!1))throw new F(400,!1);(function Hg(){!function DA(e){qf=e}(()=>{throw new F(600,!1)})})(),jn=e;const t=e.get(Eg);(function Sg(e){e.get(Fd,null)?.forEach(i=>i())})(e)}(function zg(e=[],t){return B1.create({name:t,providers:[{provide:W0,useValue:"platform"},{provide:g8,useValue:new Set([()=>jn=null])},...e]})}(o,n))}return function ZP(e){const t=_8();if(!t)throw new F(401,!1);return t}()}}function _8(){return jn?.get(Eg)??null}let Eg=(()=>{var e;class t{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const a=function QP(e="zone.js",t){return"noop"===e?new OT:"zone.js"===e?new Me(t):e}(r?.ngZone,function xg(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return a.run(()=>{const s=function uk(e,t,i){return new Wl(e,t,i)}(n.moduleType,this.injector,function Ig(e){return[{provide:Me,useFactory:e},{provide:sr,multi:!0,useFactory:()=>{const t=J(XP,{optional:!0});return()=>t.initialize()}},{provide:Tg,useFactory:JP},{provide:nh,useFactory:ih}]}(()=>a)),o=s.injector.get(pn,null);return a.runOutsideAngular(()=>{const c=a.onError.subscribe({next:l=>{o.handleError(l)}});s.onDestroy(()=>{yo(this._modules,s),c.unsubscribe()})}),function Ag(e,t,i){try{const n=i();return Mr(n)?n.catch(r=>{throw t.runOutsideAngular(()=>e.handleError(r)),r}):n}catch(n){throw t.runOutsideAngular(()=>e.handleError(n)),n}}(o,a,()=>{const c=s.injector.get(u8);return c.runInitializers(),c.donePromise.then(()=>(function nm(e){lt(e,"Expected localeId to be defined"),"string"==typeof e&&(tm=e.toLowerCase().replace(/_/g,"-"))}(s.injector.get(Et,Q4)||Q4),this._moduleDoBootstrap(s),s))})})}bootstrapModule(n,r=[]){const a=Lg({},r);return function WP(e,t,i){const n=new ql(i);return Promise.resolve(n)}(0,0,n).then(s=>this.bootstrapModuleFactory(s,a))}_moduleDoBootstrap(n){const r=n.injector.get(Jt);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(a=>r.bootstrap(a));else{if(!n.instance.ngDoBootstrap)throw new F(-403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new F(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(g8,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return(e=t).\u0275fac=function(n){return new(n||e)(q(B1))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();function Lg(e,t){return Array.isArray(t)?t.reduce(Lg,e):{...e,...t}}let Jt=(()=>{var e;class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=J(Tg),this.zoneIsStable=J(nh),this.componentTypes=[],this.components=[],this.isStable=J(vg).hasPendingTasks.pipe(bt(n=>n?ae(!1):this.zoneIsStable),function ff(e,t=yt){return e=e??Px,f1((i,n)=>{let r,a=!0;i.subscribe(qe(n,s=>{const o=t(s);(a||!e(r,o))&&(a=!1,r=o,n.next(s))}))})}(),A6()),this._injector=J(O2)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const a=n instanceof $d;if(!this._injector.get(u8).done)throw!a&&function n4(e){const t=Ee(e)||r2(e)||C2(e);return null!==t&&t.standalone}(n),new F(405,!1);let o;o=a?n:this._injector.get(Zs).resolveComponentFactory(n),this.componentTypes.push(o.componentType);const c=function qP(e){return e.isBoundToModule}(o)?void 0:this._injector.get(_3),u=o.create(B1.NULL,[],r||o.selector,c),d=u.location.nativeElement,p=u.injector.get(bg,null);return p?.registerApplication(d),u.onDestroy(()=>{this.detachView(u.hostView),yo(this.components,u),p?.unregisterApplication(d)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new F(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;yo(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(v8,[]);r.push(...this._bootstrapListeners),r.forEach(a=>a(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>yo(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new F(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function yo(e,t){const i=e.indexOf(t);i>-1&&e.splice(i,1)}const Tg=new te("",{providedIn:"root",factory:()=>J(pn).handleError.bind(void 0)});function JP(){const e=J(Me),t=J(pn);return i=>e.runOutsideAngular(()=>t.handleError(i))}let XP=(()=>{var e;class t{constructor(){this.zone=J(Me),this.applicationRef=J(Jt)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();let J2=(()=>{class t{}return t.__NG_ELEMENT_ID__=tF,t})();function tF(e){return function nF(e,t,i){if(o3(e)&&!i){const n=q2(e.index,t);return new hr(n,n)}return 47&e.type?new hr(t[T1],t):null}(o2(),k(),16==(16&e))}class Pg{constructor(){}supports(t){return ro(t)}create(t){return new cF(t)}}const oF=(e,t)=>t;class cF{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||oF}forEachItem(t){let i;for(i=this._itHead;null!==i;i=i._next)t(i)}forEachOperation(t){let i=this._itHead,n=this._removalsHead,r=0,a=null;for(;i||n;){const s=!n||i&&i.currentIndex<Bg(n,r,a)?i:n,o=Bg(s,r,a),c=s.currentIndex;if(s===n)r--,n=n._nextRemoved;else if(i=i._next,null==s.previousIndex)r++;else{a||(a=[]);const l=o-r,u=c-r;if(l!=u){for(let p=0;p<l;p++){const m=p<a.length?a[p]:a[p]=0,H=m+p;u<=H&&H<l&&(a[p]=m+1)}a[s.previousIndex]=u-l}}o!==c&&t(s,o,c)}}forEachPreviousItem(t){let i;for(i=this._previousItHead;null!==i;i=i._nextPrevious)t(i)}forEachAddedItem(t){let i;for(i=this._additionsHead;null!==i;i=i._nextAdded)t(i)}forEachMovedItem(t){let i;for(i=this._movesHead;null!==i;i=i._nextMoved)t(i)}forEachRemovedItem(t){let i;for(i=this._removalsHead;null!==i;i=i._nextRemoved)t(i)}forEachIdentityChange(t){let i;for(i=this._identityChangesHead;null!==i;i=i._nextIdentityChange)t(i)}diff(t){if(null==t&&(t=[]),!ro(t))throw new F(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let r,a,s,i=this._itHead,n=!1;if(Array.isArray(t)){this.length=t.length;for(let o=0;o<this.length;o++)a=t[o],s=this._trackByFn(o,a),null!==i&&Object.is(i.trackById,s)?(n&&(i=this._verifyReinsertion(i,a,s,o)),Object.is(i.item,a)||this._addIdentityChange(i,a)):(i=this._mismatch(i,a,s,o),n=!0),i=i._next}else r=0,function WI(e,t){if(Array.isArray(e))for(let i=0;i<e.length;i++)t(e[i]);else{const i=e[Symbol.iterator]();let n;for(;!(n=i.next()).done;)t(n.value)}}(t,o=>{s=this._trackByFn(r,o),null!==i&&Object.is(i.trackById,s)?(n&&(i=this._verifyReinsertion(i,o,s,r)),Object.is(i.item,o)||this._addIdentityChange(i,o)):(i=this._mismatch(i,o,s,r),n=!0),i=i._next,r++}),this.length=r;return this._truncate(i),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,i,n,r){let a;return null===t?a=this._itTail:(a=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,i)||this._addIdentityChange(t,i),this._reinsertAfter(t,a,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(t.item,i)||this._addIdentityChange(t,i),this._moveAfter(t,a,r)):t=this._addAfter(new lF(i,n),a,r),t}_verifyReinsertion(t,i,n,r){let a=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==a?t=this._reinsertAfter(a,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const i=t._next;this._addToRemovals(this._unlink(t)),t=i}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,i,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,a=t._nextRemoved;return null===r?this._removalsHead=a:r._nextRemoved=a,null===a?this._removalsTail=r:a._prevRemoved=r,this._insertAfter(t,i,n),this._addToMoves(t,n),t}_moveAfter(t,i,n){return this._unlink(t),this._insertAfter(t,i,n),this._addToMoves(t,n),t}_addAfter(t,i,n){return this._insertAfter(t,i,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,i,n){const r=null===i?this._itHead:i._next;return t._next=r,t._prev=i,null===r?this._itTail=t:r._prev=t,null===i?this._itHead=t:i._next=t,null===this._linkedRecords&&(this._linkedRecords=new Fg),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const i=t._prev,n=t._next;return null===i?this._itHead=n:i._next=n,null===n?this._itTail=i:n._prev=i,t}_addToMoves(t,i){return t.previousIndex===i||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Fg),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,i){return t.item=i,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class lF{constructor(t,i){this.item=t,this.trackById=i,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class uF{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,i){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===i||i<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const i=t._prevDup,n=t._nextDup;return null===i?this._head=n:i._nextDup=n,null===n?this._tail=i:n._prevDup=i,null===this._head}}class Fg{constructor(){this.map=new Map}put(t){const i=t.trackById;let n=this.map.get(i);n||(n=new uF,this.map.set(i,n)),n.add(t)}get(t,i){const r=this.map.get(t);return r?r.get(t,i):null}remove(t){const i=t.trackById;return this.map.get(i).remove(t)&&this.map.delete(i),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Bg(e,t,i){const n=e.previousIndex;if(null===n)return n;let r=0;return i&&n<i.length&&(r=i[n]),n+t+r}function jg(){return new Ho([new Pg])}let Ho=(()=>{var e;class t{constructor(n){this.factories=n}static create(n,r){if(null!=r){const a=r.factories.slice();n=n.concat(a)}return new t(n)}static extend(n){return{provide:t,useFactory:r=>t.create(n,r||jg()),deps:[[t,new ws,new bs]]}}find(n){const r=this.factories.find(a=>a.supports(n));if(null!=r)return r;throw new F(901,!1)}}return(e=t).\u0275prov=$({token:e,providedIn:"root",factory:jg}),t})();const mF=Dg(null,"core",[]);let gF=(()=>{var e;class t{constructor(n){}}return(e=t).\u0275fac=function(n){return new(n||e)(q(Jt))},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})();function ei(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function H8(e,t){const i=Ee(e),n=t.elementInjector||Us();return new pr(i).create(n,t.projectableNodes,t.hostElement,t.environmentInjector)}let V8=null;function Gn(){return V8}class xF{}const M1=new te("DocumentToken");let S8=(()=>{var e;class t{historyGo(n){throw new Error("Not implemented")}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:function(){return J(LF)},providedIn:"platform"}),t})();const AF=new te("Location Initialized");let LF=(()=>{var e;class t extends S8{constructor(){super(),this._doc=J(M1),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Gn().getBaseHref(this._doc)}onPopState(n){const r=Gn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=Gn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,a){this._history.pushState(n,r,a)}replaceState(n,r,a){this._history.replaceState(n,r,a)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:function(){return new e},providedIn:"platform"}),t})();function D8(e,t){if(0==e.length)return t;if(0==t.length)return e;let i=0;return e.endsWith("/")&&i++,t.startsWith("/")&&i++,2==i?e+t.substring(1):1==i?e+t:e+"/"+t}function Xg(e){const t=e.match(/#|\?|$/),i=t&&t.index||e.length;return e.slice(0,i-("/"===e[i-1]?1:0))+e.slice(i)}function _n(e){return e&&"?"!==e[0]?"?"+e:e}let $n=(()=>{var e;class t{historyGo(n){throw new Error("Not implemented")}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:function(){return J(tv)},providedIn:"root"}),t})();const ev=new te("appBaseHref");let tv=(()=>{var e;class t extends $n{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??J(M1).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return D8(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+_n(this._platformLocation.search),a=this._platformLocation.hash;return a&&n?`${r}${a}`:r}pushState(n,r,a,s){const o=this.prepareExternalUrl(a+_n(s));this._platformLocation.pushState(n,r,o)}replaceState(n,r,a,s){const o=this.prepareExternalUrl(a+_n(s));this._platformLocation.replaceState(n,r,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(q(S8),q(ev,8))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),nv=(()=>{var e;class t extends $n{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(n){const r=D8(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,a,s){let o=this.prepareExternalUrl(a+_n(s));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(n,r,o)}replaceState(n,r,a,s){let o=this.prepareExternalUrl(a+_n(s));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(q(S8),q(ev,8))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),t})(),z8=(()=>{var e;class t{constructor(n){this._subject=new ee,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;const r=this._locationStrategy.getBaseHref();this._basePath=function IF(e){if(new RegExp("^(https?:)?//").test(e)){const[,i]=e.split(/\/\/[^\/]+/);return i}return e}(Xg(iv(r))),this._locationStrategy.onPopState(a=>{this._subject.emit({url:this.path(!0),pop:!0,state:a.state,type:a.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+_n(r))}normalize(n){return t.stripTrailingSlash(function TF(e,t){if(!e||!t.startsWith(e))return t;const i=t.substring(e.length);return""===i||["/",";","?","#"].includes(i[0])?i:t}(this._basePath,iv(n)))}prepareExternalUrl(n){return n&&"/"!==n[0]&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",a=null){this._locationStrategy.pushState(a,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+_n(r)),a)}replaceState(n,r="",a=null){this._locationStrategy.replaceState(a,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+_n(r)),a)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(a=>a(n,r))}subscribe(n,r,a){return this._subject.subscribe({next:n,error:r,complete:a})}}return(e=t).normalizeQueryParams=_n,e.joinWithSlash=D8,e.stripTrailingSlash=Xg,e.\u0275fac=function(n){return new(n||e)(q($n))},e.\u0275prov=$({token:e,factory:function(){return function NF(){return new z8(q($n))}()},providedIn:"root"}),t})();function iv(e){return e.replace(/\/index.html$/,"")}class CB{constructor(t,i,n,r){this.$implicit=t,this.ngForOf=i,this.index=n,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Xt=(()=>{var e;class t{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,r,a){this._viewContainer=n,this._template=r,this._differs=a,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){const n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){const r=this._viewContainer;n.forEachOperation((a,s,o)=>{if(null==a.previousIndex)r.createEmbeddedView(this._template,new CB(a.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)r.remove(null===s?void 0:s);else if(null!==s){const c=r.get(s);r.move(c,o),gv(c,a)}});for(let a=0,s=r.length;a<s;a++){const c=r.get(a).context;c.index=a,c.count=s,c.ngForOf=this._ngForOf}n.forEachIdentityChange(a=>{gv(r.get(a.currentIndex),a)})}static ngTemplateContextGuard(n,r){return!0}}return(e=t).\u0275fac=function(n){return new(n||e)(w(F2),w(o1),w(Ho))},e.\u0275dir=j({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function gv(e,t){e.context.$implicit=t.item}let D1=(()=>{var e;class t{constructor(n,r){this._viewContainer=n,this._context=new MB,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){vv("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){vv("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}}return(e=t).\u0275fac=function(n){return new(n||e)(w(F2),w(o1))},e.\u0275dir=j({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class MB{constructor(){this.$implicit=null,this.ngIf=null}}function vv(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${G1(t)}'.`)}let y3=(()=>{var e;class t{constructor(n){this._viewContainerRef=n,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(n){if(n.ngTemplateOutlet||n.ngTemplateOutletInjector){const r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:a,ngTemplateOutletContext:s,ngTemplateOutletInjector:o}=this;this._viewRef=r.createEmbeddedView(a,s,o?{injector:o}:void 0)}else this._viewRef=null}else this._viewRef&&n.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return(e=t).\u0275fac=function(n){return new(n||e)(w(F2))},e.\u0275dir=j({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[v1]}),t})(),qB=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})();function yv(e){return"server"===e}let QB=(()=>{var e;class t{}return(e=t).\u0275prov=$({token:e,providedIn:"root",factory:()=>new JB(q(M1),window)}),t})();class JB{constructor(t,i){this.document=t,this.window=i,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const i=function XB(e,t){const i=e.getElementById(t)||e.getElementsByName(t)[0];if(i)return i;if("function"==typeof e.createTreeWalker&&e.body&&"function"==typeof e.body.attachShadow){const n=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let r=n.currentNode;for(;r;){const a=r.shadowRoot;if(a){const s=a.getElementById(t)||a.querySelector(`[name="${t}"]`);if(s)return s}r=n.nextNode()}}return null}(this.document,t);i&&(this.scrollToElement(i),i.focus())}setHistoryScrollRestoration(t){this.supportsScrolling()&&(this.window.history.scrollRestoration=t)}scrollToElement(t){const i=t.getBoundingClientRect(),n=i.left+this.window.pageXOffset,r=i.top+this.window.pageYOffset,a=this.offset();this.window.scrollTo(n-a[0],r-a[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class wU extends xF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class W8 extends wU{static makeCurrent(){!function EF(e){V8||(V8=e)}(new W8)}onAndCancel(t,i,n){return t.addEventListener(i,n),()=>{t.removeEventListener(i,n)}}dispatchEvent(t,i){t.dispatchEvent(i)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,i){return(i=i||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,i){return"window"===i?window:"document"===i?t:"body"===i?t.body:null}getBaseHref(t){const i=function HU(){return kr=kr||document.querySelector("base"),kr?kr.getAttribute("href"):null}();return null==i?null:function VU(e){ko=ko||document.createElement("a"),ko.setAttribute("href",e);const t=ko.pathname;return"/"===t.charAt(0)?t:`/${t}`}(i)}resetBaseElement(){kr=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function gB(e,t){t=encodeURIComponent(t);for(const i of e.split(";")){const n=i.indexOf("="),[r,a]=-1==n?[i,""]:[i.slice(0,n),i.slice(n+1)];if(r.trim()===t)return decodeURIComponent(a)}return null}(document.cookie,t)}}let ko,kr=null,DU=(()=>{var e;class t{build(){return new XMLHttpRequest}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac}),t})();const q8=new te("EventManagerPlugins");let Sv=(()=>{var e;class t{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(a=>{a.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,a){return this._findPluginFor(r).addEventListener(n,r,a)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(s=>s.supports(n)),!r)throw new F(5101,!1);return this._eventNameToPlugin.set(n,r),r}}return(e=t).\u0275fac=function(n){return new(n||e)(q(q8),q(Me))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),t})();class Dv{constructor(t){this._doc=t}}const Y8="ng-app-id";let zv=(()=>{var e;class t{constructor(n,r,a,s={}){this.doc=n,this.appId=r,this.nonce=a,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=yv(s),this.resetHostNodes()}addStyles(n){for(const r of n)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(n){for(const r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(const r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(const r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){const r=this.styleRef;r.get(n)?.elements?.forEach(a=>a.remove()),r.delete(n)}collectServerRenderedStyles(){const n=this.doc.head?.querySelectorAll(`style[${Y8}="${this.appId}"]`);if(n?.length){const r=new Map;return n.forEach(a=>{null!=a.textContent&&r.set(a.textContent,a)}),r}return null}changeUsageCount(n,r){const a=this.styleRef;if(a.has(n)){const s=a.get(n);return s.usage+=r,s.usage}return a.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){const a=this.styleNodesInDOM,s=a?.get(r);if(s?.parentNode===n)return a.delete(r),s.removeAttribute(Y8),s;{const o=this.doc.createElement("style");return this.nonce&&o.setAttribute("nonce",this.nonce),o.textContent=r,this.platformIsServer&&o.setAttribute(Y8,this.appId),o}}addStyleToHost(n,r){const a=this.getStyleElement(n,r);n.appendChild(a);const s=this.styleRef,o=s.get(r)?.elements;o?o.push(a):s.set(r,{elements:[a],usage:1})}resetHostNodes(){const n=this.hostNodes;n.clear(),n.add(this.doc.head)}}return(e=t).\u0275fac=function(n){return new(n||e)(q(M1),q(Gs),q(Bd,8),q(E4))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),t})();const K8={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/"},Z8=/%COMP%/g,AU=new te("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function xv(e,t){return t.map(i=>i.replace(Z8,e))}let Av=(()=>{var e;class t{constructor(n,r,a,s,o,c,l,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=a,this.removeStylesOnCompDestroy=s,this.doc=o,this.platformId=c,this.ngZone=l,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=yv(c),this.defaultRenderer=new Q8(n,o,l,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===wt.ShadowDom&&(r={...r,encapsulation:wt.Emulated});const a=this.getOrCreateRenderer(n,r);return a instanceof Nv?a.applyToHost(n):a instanceof J8&&a.applyStyles(),a}getOrCreateRenderer(n,r){const a=this.rendererByCompId;let s=a.get(r.id);if(!s){const o=this.doc,c=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,p=this.platformIsServer;switch(r.encapsulation){case wt.Emulated:s=new Nv(l,u,r,this.appId,d,o,c,p);break;case wt.ShadowDom:return new IU(l,u,n,r,o,c,this.nonce,p);default:s=new J8(l,u,r,d,o,c,p)}a.set(r.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}}return(e=t).\u0275fac=function(n){return new(n||e)(q(Sv),q(zv),q(Gs),q(AU),q(M1),q(E4),q(Me),q(Bd))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),t})();class Q8{constructor(t,i,n,r){this.eventManager=t,this.doc=i,this.ngZone=n,this.platformIsServer=r,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,i){return i?this.doc.createElementNS(K8[i]||i,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,i){(Lv(t)?t.content:t).appendChild(i)}insertBefore(t,i,n){t&&(Lv(t)?t.content:t).insertBefore(i,n)}removeChild(t,i){t&&t.removeChild(i)}selectRootElement(t,i){let n="string"==typeof t?this.doc.querySelector(t):t;if(!n)throw new F(-5104,!1);return i||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,i,n,r){if(r){i=r+":"+i;const a=K8[r];a?t.setAttributeNS(a,i,n):t.setAttribute(i,n)}else t.setAttribute(i,n)}removeAttribute(t,i,n){if(n){const r=K8[n];r?t.removeAttributeNS(r,i):t.removeAttribute(`${n}:${i}`)}else t.removeAttribute(i)}addClass(t,i){t.classList.add(i)}removeClass(t,i){t.classList.remove(i)}setStyle(t,i,n,r){r&(Bn.DashCase|Bn.Important)?t.style.setProperty(i,n,r&Bn.Important?"important":""):t.style[i]=n}removeStyle(t,i,n){n&Bn.DashCase?t.style.removeProperty(i):t.style[i]=""}setProperty(t,i,n){t[i]=n}setValue(t,i){t.nodeValue=i}listen(t,i,n){if("string"==typeof t&&!(t=Gn().getGlobalEventTarget(this.doc,t)))throw new Error(`Unsupported event target ${t} for event ${i}`);return this.eventManager.addEventListener(t,i,this.decoratePreventDefault(n))}decoratePreventDefault(t){return i=>{if("__ngUnwrap__"===i)return t;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>t(i)):t(i))&&i.preventDefault()}}}function Lv(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class IU extends Q8{constructor(t,i,n,r,a,s,o,c){super(t,a,s,c),this.sharedStylesHost=i,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=xv(r.id,r.styles);for(const u of l){const d=document.createElement("style");o&&d.setAttribute("nonce",o),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,i){return super.appendChild(this.nodeOrShadowRoot(t),i)}insertBefore(t,i,n){return super.insertBefore(this.nodeOrShadowRoot(t),i,n)}removeChild(t,i){return super.removeChild(this.nodeOrShadowRoot(t),i)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class J8 extends Q8{constructor(t,i,n,r,a,s,o,c){super(t,a,s,o),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=r,this.styles=c?xv(c,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class Nv extends J8{constructor(t,i,n,r,a,s,o,c){const l=r+"-"+n.id;super(t,i,n,a,s,o,c,l),this.contentAttr=function LU(e){return"_ngcontent-%COMP%".replace(Z8,e)}(l),this.hostAttr=function NU(e){return"_nghost-%COMP%".replace(Z8,e)}(l)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,i){const n=super.createElement(t,i);return super.setAttribute(n,this.contentAttr,""),n}}let RU=(()=>{var e;class t extends Dv{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,a){return n.addEventListener(r,a,!1),()=>this.removeEventListener(n,r,a)}removeEventListener(n,r,a){return n.removeEventListener(r,a)}}return(e=t).\u0275fac=function(n){return new(n||e)(q(M1))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),t})();const Tv=["alt","control","meta","shift"],OU={"\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"},kU={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let PU=(()=>{var e;class t extends Dv{constructor(n){super(n)}supports(n){return null!=t.parseEventName(n)}addEventListener(n,r,a){const s=t.parseEventName(r),o=t.eventCallback(s.fullKey,a,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Gn().onAndCancel(n,s.domEventName,o))}static parseEventName(n){const r=n.toLowerCase().split("."),a=r.shift();if(0===r.length||"keydown"!==a&&"keyup"!==a)return null;const s=t._normalizeKey(r.pop());let o="",c=r.indexOf("code");if(c>-1&&(r.splice(c,1),o="code."),Tv.forEach(u=>{const d=r.indexOf(u);d>-1&&(r.splice(d,1),o+=u+".")}),o+=s,0!=r.length||0===s.length)return null;const l={};return l.domEventName=a,l.fullKey=o,l}static matchEventFullKeyCode(n,r){let a=OU[n.key]||n.key,s="";return r.indexOf("code.")>-1&&(a=n.code,s="code."),!(null==a||!a)&&(a=a.toLowerCase()," "===a?a="space":"."===a&&(a="dot"),Tv.forEach(o=>{o!==a&&(0,kU[o])(n)&&(s+=o+".")}),s+=a,s===r)}static eventCallback(n,r,a){return s=>{t.matchEventFullKeyCode(s,n)&&a.runGuarded(()=>r(s))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return(e=t).\u0275fac=function(n){return new(n||e)(q(M1))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),t})();const jU=Dg(mF,"browser",[{provide:E4,useValue:"browser"},{provide:Fd,useValue:function FU(){W8.makeCurrent()},multi:!0},{provide:M1,useFactory:function UU(){return function zN(e){k0=e}(document),document},deps:[]}]),GU=new te(""),Ov=[{provide:Mo,useClass:class SU{addToWindow(t){e1.getAngularTestability=(n,r=!0)=>{const a=t.findTestabilityInTree(n,r);if(null==a)throw new F(5103,!1);return a},e1.getAllAngularTestabilities=()=>t.getAllTestabilities(),e1.getAllAngularRootElements=()=>t.getAllRootElements(),e1.frameworkStabilizers||(e1.frameworkStabilizers=[]),e1.frameworkStabilizers.push(n=>{const r=e1.getAllAngularTestabilities();let a=r.length,s=!1;const o=function(c){s=s||c,a--,0==a&&n(s)};r.forEach(c=>{c.whenStable(o)})})}findTestabilityInTree(t,i,n){return null==i?null:t.getTestability(i)??(n?Gn().isShadowRoot(i)?this.findTestabilityInTree(t,i.host,!0):this.findTestabilityInTree(t,i.parentElement,!0):null)}},deps:[]},{provide:bg,useClass:h8,deps:[Me,p8,Mo]},{provide:h8,useClass:h8,deps:[Me,p8,Mo]}],kv=[{provide:W0,useValue:"root"},{provide:pn,useFactory:function BU(){return new pn},deps:[]},{provide:q8,useClass:RU,multi:!0,deps:[M1,Me,E4]},{provide:q8,useClass:PU,multi:!0,deps:[M1]},Av,zv,Sv,{provide:sl,useExisting:Av},{provide:class eU{},useClass:DU,deps:[]},[]];let $U=(()=>{var e;class t{constructor(n){}static withServerTransition(n){return{ngModule:t,providers:[{provide:Gs,useValue:n.appId}]}}}return(e=t).\u0275fac=function(n){return new(n||e)(q(GU,12))},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({providers:[...kv,...Ov],imports:[qB,gF]}),t})(),Pv=(()=>{var e;class t{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}}return(e=t).\u0275fac=function(n){return new(n||e)(q(M1))},e.\u0275prov=$({token:e,factory:function(n){let r=null;return r=n?new n:function qU(){return new Pv(q(M1))}(),r},providedIn:"root"}),t})();typeof window<"u"&&window;let Uv=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:function(n){let r=null;return r=n?new(n||e):q(jv),r},providedIn:"root"}),t})(),jv=(()=>{var e;class t extends Uv{constructor(n){super(),this._doc=n}sanitize(n,r){if(null==r)return null;switch(n){case dt.NONE:return r;case dt.HTML:return qt(r,"HTML")?K2(r):zd(this._doc,String(r)).toString();case dt.STYLE:return qt(r,"Style")?K2(r):r;case dt.SCRIPT:if(qt(r,"Script"))return K2(r);throw new F(5200,!1);case dt.URL:return qt(r,"URL")?K2(r):ks(String(r));case dt.RESOURCE_URL:if(qt(r,"ResourceURL"))return K2(r);throw new F(5201,!1);default:throw new F(5202,!1)}}bypassSecurityTrustHtml(n){return function IN(e){return new EN(e)}(n)}bypassSecurityTrustStyle(n){return function RN(e){return new xN(e)}(n)}bypassSecurityTrustScript(n){return function ON(e){return new AN(e)}(n)}bypassSecurityTrustUrl(n){return function kN(e){return new LN(e)}(n)}bypassSecurityTrustResourceUrl(n){return function PN(e){return new NN(e)}(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(q(M1))},e.\u0275prov=$({token:e,factory:function(n){let r=null;return r=n?new n:function QU(e){return new jv(e.get(M1))}(q(B1)),r},providedIn:"root"}),t})();function Pr(e){return(Pr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function V(e,t,i){return(t=function XU(e){var t=function JU(e,t){if("object"!==Pr(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==Pr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Pr(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const{isArray:ej}=Array,{getPrototypeOf:tj,prototype:nj,keys:ij}=Object;function $v(e){if(1===e.length){const t=e[0];if(ej(t))return{args:t,keys:null};if(function rj(e){return e&&"object"==typeof e&&tj(e)===nj}(t)){const i=ij(t);return{args:i.map(n=>t[n]),keys:i}}}return{args:e,keys:null}}const{isArray:aj}=Array;function e5(e){return we(t=>function sj(e,t){return aj(t)?e(...t):e(t)}(e,t))}function Wv(e,t){return e.reduce((i,n,r)=>(i[n]=t[r],i),{})}let qv=(()=>{var e;class t{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=a=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}}return(e=t).\u0275fac=function(n){return new(n||e)(w(c2),w(Ae))},e.\u0275dir=j({type:e}),t})(),b3=(()=>{var e;class t extends qv{}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=I1(e)))(r||e)}}(),e.\u0275dir=j({type:e,features:[re]}),t})();const vt=new te("NgValueAccessor"),cj={provide:vt,useExisting:me(()=>v2),multi:!0};let v2=(()=>{var e;class t extends b3{writeValue(n){this.setProperty("checked",n)}}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=I1(e)))(r||e)}}(),e.\u0275dir=j({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,r){1&n&&O("change",function(s){return r.onChange(s.target.checked)})("blur",function(){return r.onTouched()})},features:[Ke([cj]),re]}),t})();const lj={provide:vt,useExisting:me(()=>qn),multi:!0},fj=new te("CompositionEventMode");let qn=(()=>{var e;class t extends qv{constructor(n,r,a){super(n,r),this._compositionMode=a,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function uj(){const e=Gn()?Gn().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(n){this.setProperty("value",n??"")}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(w(c2),w(Ae),w(fj,8))},e.\u0275dir=j({type:e,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,r){1&n&&O("input",function(s){return r._handleInput(s.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(s){return r._compositionEnd(s.target.value)})},features:[Ke([lj]),re]}),t})();const l2=new te("NgValidators"),Kn=new te("NgAsyncValidators"),dj=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;function Xv(e){return function Yn(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}(e.value)||dj.test(e.value)?null:{email:!0}}function Po(e){return null}function i_(e){return null!=e}function r_(e){return Mr(e)?Q1(e):e}function a_(e){let t={};return e.forEach(i=>{t=null!=i?{...t,...i}:t}),0===Object.keys(t).length?null:t}function s_(e,t){return t.map(i=>i(e))}function o_(e){return e.map(t=>function hj(e){return!e.validate}(t)?t:i=>t.validate(i))}function t5(e){return null!=e?function c_(e){if(!e)return null;const t=e.filter(i_);return 0==t.length?null:function(i){return a_(s_(i,t))}}(o_(e)):null}function n5(e){return null!=e?function l_(e){if(!e)return null;const t=e.filter(i_);return 0==t.length?null:function(i){return function oj(...e){const t=Za(e),{args:i,keys:n}=$v(e),r=new We(a=>{const{length:s}=i;if(!s)return void a.complete();const o=new Array(s);let c=s,l=s;for(let u=0;u<s;u++){let d=!1;j1(i[u]).subscribe(qe(a,p=>{d||(d=!0,l--),o[u]=p},()=>c--,void 0,()=>{(!c||!d)&&(l||a.next(n?Wv(n,o):o),a.complete())}))}});return t?r.pipe(e5(t)):r}(s_(i,t).map(r_)).pipe(we(a_))}}(o_(e)):null}function u_(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function i5(e){return e?Array.isArray(e)?e:[e]:[]}function Fo(e,t){return Array.isArray(e)?e.includes(t):e===t}function h_(e,t){const i=i5(t);return i5(e).forEach(r=>{Fo(i,r)||i.push(r)}),i}function p_(e,t){return i5(t).filter(i=>!Fo(e,i))}class m_{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=t5(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=n5(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,i){return!!this.control&&this.control.hasError(t,i)}getError(t,i){return this.control?this.control.getError(t,i):null}}class E2 extends m_{get formDirective(){return null}get path(){return null}}class Zn extends m_{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class g_{constructor(t){this._cd=t}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 E1=(()=>{var e;class t extends g_{constructor(n){super(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(w(Zn,2))},e.\u0275dir=j({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){2&n&&ze("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[re]}),t})();const Fr="VALID",Uo="INVALID",ni="PENDING",Br="DISABLED";function jo(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class M_{constructor(t,i){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(i)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Fr}get invalid(){return this.status===Uo}get pending(){return this.status==ni}get disabled(){return this.status===Br}get enabled(){return this.status!==Br}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(h_(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(h_(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(p_(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(p_(t,this._rawAsyncValidators))}hasValidator(t){return Fo(this._rawValidators,t)}hasAsyncValidator(t){return Fo(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(i=>{i.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=ni,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const i=this._parentMarkedDirty(t.onlySelf);this.status=Br,this.errors=null,this._forEachChild(n=>{n.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:i}),this._onDisabledChange.forEach(n=>n(!0))}enable(t={}){const i=this._parentMarkedDirty(t.onlySelf);this.status=Fr,this._forEachChild(n=>{n.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:i}),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Fr||this.status===ni)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(i=>i._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Br:Fr}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=ni,this._hasOwnPendingAsyncValidator=!0;const i=r_(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,i={}){this.errors=t,this._updateControlsErrors(!1!==i.emitEvent)}get(t){let i=t;return null==i||(Array.isArray(i)||(i=i.split(".")),0===i.length)?null:i.reduce((n,r)=>n&&n._find(r),this)}getError(t,i){const n=i?this.get(i):this;return n&&n.errors?n.errors[t]:null}hasError(t,i){return!!this.getError(t,i)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new ee,this.statusChanges=new ee}_calculateStatus(){return this._allControlsDisabled()?Br:this.errors?Uo:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ni)?ni:this._anyControlsHaveStatus(Uo)?Uo:Fr}_anyControlsHaveStatus(t){return this._anyControls(i=>i.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){jo(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=function _j(e){return Array.isArray(e)?t5(e):e||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function Cj(e){return Array.isArray(e)?n5(e):e||null}(this._rawAsyncValidators)}}const ii=new te("CallSetDisabledState",{providedIn:"root",factory:()=>Go}),Go="always";function Ur(e,t,i=Go){(function l5(e,t){const i=function f_(e){return e._rawValidators}(e);null!==t.validator?e.setValidators(u_(i,t.validator)):"function"==typeof i&&e.setValidators([i]);const n=function d_(e){return e._rawAsyncValidators}(e);null!==t.asyncValidator?e.setAsyncValidators(u_(n,t.asyncValidator)):"function"==typeof n&&e.setAsyncValidators([n]);const r=()=>e.updateValueAndValidity();qo(t._rawValidators,r),qo(t._rawAsyncValidators,r)})(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||"always"===i)&&t.valueAccessor.setDisabledState?.(e.disabled),function bj(e,t){t.valueAccessor.registerOnChange(i=>{e._pendingValue=i,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&y_(e,t)})}(e,t),function Hj(e,t){const i=(n,r)=>{t.valueAccessor.writeValue(n),r&&t.viewToModelUpdate(n)};e.registerOnChange(i),t._registerOnDestroy(()=>{e._unregisterOnChange(i)})}(e,t),function wj(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&y_(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function yj(e,t){if(t.valueAccessor.setDisabledState){const i=n=>{t.valueAccessor.setDisabledState(n)};e.registerOnDisabledChange(i),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(i)})}}(e,t)}function qo(e,t){e.forEach(i=>{i.registerOnValidatorChange&&i.registerOnValidatorChange(t)})}function y_(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function H_(e,t){const i=e.indexOf(t);i>-1&&e.splice(i,1)}function V_(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const S_=class extends M_{constructor(t=null,i,n){super(function s5(e){return(jo(e)?e.validators:e)||null}(i),function o5(e,t){return(jo(t)?t.asyncValidators:e)||null}(n,i)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(i),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),jo(i)&&(i.nonNullable||i.initialValueIsDefault)&&(this.defaultValue=V_(t)?t.value:t)}setValue(t,i={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==i.emitModelToViewChange&&this._onChange.forEach(n=>n(this.value,!1!==i.emitViewToModelChange)),this.updateValueAndValidity(i)}patchValue(t,i={}){this.setValue(t,i)}reset(t=this.defaultValue,i={}){this._applyFormState(t),this.markAsPristine(i),this.markAsUntouched(i),this.setValue(this.value,i),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){H_(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){H_(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){V_(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},Lj={provide:Zn,useExisting:me(()=>y1)},E_=(()=>Promise.resolve())();let y1=(()=>{var e;class t extends Zn{constructor(n,r,a,s,o,c){super(),this._changeDetectorRef=o,this.callSetDisabledState=c,this.control=new S_,this._registered=!1,this.name="",this.update=new ee,this._parent=n,this._setValidators(r),this._setAsyncValidators(a),this.valueAccessor=function d5(e,t){if(!t)return null;let i,n,r;return Array.isArray(t),t.forEach(a=>{a.constructor===qn?i=a:function Dj(e){return Object.getPrototypeOf(e.constructor)===b3}(a)?n=a:r=a}),r||n||i||null}(0,s)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){const r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),function f5(e,t){if(!e.hasOwnProperty("model"))return!1;const i=e.model;return!!i.isFirstChange()||!Object.is(t,i.currentValue)}(n,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(n){this.viewModel=n,this.update.emit(n)}_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(){Ur(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(n){E_.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){const r=n.isDisabled.currentValue,a=0!==r&&ei(r);E_.then(()=>{a&&!this.control.disabled?this.control.disable():!a&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?function $o(e,t){return[...t.path,e]}(n,this._parent):[n]}}return(e=t).\u0275fac=function(n){return new(n||e)(w(E2,9),w(l2,10),w(Kn,10),w(vt,10),w(J2,8),w(ii,8))},e.\u0275dir=j({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Ke([Lj]),re,v1]}),t})();const Tj={provide:vt,useExisting:me(()=>ri),multi:!0};let ri=(()=>{var e;class t extends b3{writeValue(n){this.setProperty("value",n??"")}registerOnChange(n){this.onChange=r=>{n(""==r?null:parseFloat(r))}}}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=I1(e)))(r||e)}}(),e.\u0275dir=j({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,r){1&n&&O("input",function(s){return r.onChange(s.target.value)})("blur",function(){return r.onTouched()})},features:[Ke([Tj]),re]}),t})(),x_=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})();const jj={provide:vt,useExisting:me(()=>yn),multi:!0};function O_(e,t){return null==e?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let yn=(()=>{var e;class t extends b3{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;const a=O_(this._getOptionId(n),n);this.setProperty("value",a)}registerOnChange(n){this.onChange=r=>{this.value=this._getOptionValue(r),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(const r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),n))return r;return null}_getOptionValue(n){const r=function Gj(e){return e.split(":")[0]}(n);return this._optionMap.has(r)?this._optionMap.get(r):n}}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=I1(e)))(r||e)}}(),e.\u0275dir=j({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(n,r){1&n&&O("change",function(s){return r.onChange(s.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[Ke([jj]),re]}),t})(),w3=(()=>{var e;class t{constructor(n,r,a){this._element=n,this._renderer=r,this._select=a,this._select&&(this.id=this._select._registerOption())}set ngValue(n){null!=this._select&&(this._select._optionMap.set(this.id,n),this._setElementValue(O_(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._setElementValue(n),this._select&&this._select.writeValue(this._select.value)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return(e=t).\u0275fac=function(n){return new(n||e)(w(Ae),w(c2),w(yn,9))},e.\u0275dir=j({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const $j={provide:vt,useExisting:me(()=>v5),multi:!0};function k_(e,t){return null==e?`${t}`:("string"==typeof t&&(t=`'${t}'`),t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let v5=(()=>{var e;class t extends b3{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){let r;if(this.value=n,Array.isArray(n)){const a=n.map(s=>this._getOptionId(s));r=(s,o)=>{s._setSelected(a.indexOf(o.toString())>-1)}}else r=(a,s)=>{a._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(n){this.onChange=r=>{const a=[],s=r.selectedOptions;if(void 0!==s){const o=s;for(let c=0;c<o.length;c++){const u=this._getOptionValue(o[c].value);a.push(u)}}else{const o=r.options;for(let c=0;c<o.length;c++){const l=o[c];if(l.selected){const u=this._getOptionValue(l.value);a.push(u)}}}this.value=a,n(a)}}_registerOption(n){const r=(this._idCounter++).toString();return this._optionMap.set(r,n),r}_getOptionId(n){for(const r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r)._value,n))return r;return null}_getOptionValue(n){const r=function Wj(e){return e.split(":")[0]}(n);return this._optionMap.has(r)?this._optionMap.get(r)._value:n}}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=I1(e)))(r||e)}}(),e.\u0275dir=j({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(n,r){1&n&&O("change",function(s){return r.onChange(s.target)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[Ke([$j]),re]}),t})(),H3=(()=>{var e;class t{constructor(n,r,a){this._element=n,this._renderer=r,this._select=a,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){null!=this._select&&(this._value=n,this._setElementValue(k_(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(k_(this.id,n)),this._select.writeValue(this._select.value)):this._setElementValue(n)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}_setSelected(n){this._renderer.setProperty(this._element.nativeElement,"selected",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return(e=t).\u0275fac=function(n){return new(n||e)(w(Ae),w(c2),w(v5,9))},e.\u0275dir=j({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})(),V3=(()=>{var e;class t{constructor(){this._validator=Po}ngOnChanges(n){if(this.inputName in n){const r=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):Po,this._onChange&&this._onChange()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return null!=n}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275dir=j({type:e,features:[v1]}),t})();const Qj={provide:l2,useExisting:me(()=>C5),multi:!0};let C5=(()=>{var e;class t extends V3{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=ei,this.createValidator=n=>Xv}enabled(n){return n}}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=I1(e)))(r||e)}}(),e.\u0275dir=j({type:e,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[Ke([Qj]),re]}),t})(),tG=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({imports:[x_]}),t})(),iG=(()=>{var e;class t{static withConfig(n){return{ngModule:t,providers:[{provide:ii,useValue:n.callSetDisabledState??Go}]}}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({imports:[tG]}),t})();const rG=["addListener","removeListener"],aG=["addEventListener","removeEventListener"],sG=["on","off"];function X1(e,t,i,n){if(Q(i)&&(n=i,i=void 0),n)return X1(e,t,i).pipe(e5(n));const[r,a]=function lG(e){return Q(e.addEventListener)&&Q(e.removeEventListener)}(e)?aG.map(s=>o=>e[s](t,o,i)):function oG(e){return Q(e.addListener)&&Q(e.removeListener)}(e)?rG.map(q_(e,t)):function cG(e){return Q(e.on)&&Q(e.off)}(e)?sG.map(q_(e,t)):[];if(!r&&z6(e))return F1(s=>X1(s,t,i))(j1(e));if(!r)throw new TypeError("Invalid event target");return new We(s=>{const o=(...c)=>s.next(1<c.length?c:c[0]);return r(o),()=>a(o)})}function q_(e,t){return i=>n=>e[i](t,n)}class uG extends Se{constructor(t,i){super()}schedule(t,i=0){return this}}const Ko={setInterval(e,t,...i){const{delegate:n}=Ko;return n?.setInterval?n.setInterval(e,t,...i):setInterval(e,t,...i)},clearInterval(e){const{delegate:t}=Ko;return(t?.clearInterval||clearInterval)(e)},delegate:void 0},Y_={now:()=>(Y_.delegate||Date).now(),delegate:void 0};class Gr{constructor(t,i=Gr.now){this.schedulerActionCtor=t,this.now=i}schedule(t,i=0,n){return new this.schedulerActionCtor(this,t).schedule(n,i)}}Gr.now=Y_.now;const K_=new class dG extends Gr{constructor(t,i=Gr.now){super(t,i),this.actions=[],this._active=!1}flush(t){const{actions:i}=this;if(this._active)return void i.push(t);let n;this._active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=i.shift());if(this._active=!1,n){for(;t=i.shift();)t.unsubscribe();throw n}}}(class fG extends uG{constructor(t,i){super(t,i),this.scheduler=t,this.work=i,this.pending=!1}schedule(t,i=0){var n;if(this.closed)return this;this.state=t;const r=this.id,a=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(a,r,i)),this.pending=!0,this.delay=i,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(a,this.id,i),this}requestAsyncId(t,i,n=0){return Ko.setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,i,n=0){if(null!=n&&this.delay===n&&!1===this.pending)return i;null!=i&&Ko.clearInterval(i)}execute(t,i){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,i);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,i){let r,n=!1;try{this.work(t)}catch(a){n=!0,r=a||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:t,scheduler:i}=this,{actions:n}=i;this.work=this.state=this.scheduler=null,this.pending=!1,Qe(n,this),null!=t&&(this.id=this.recycleAsyncId(i,t,null)),this.delay=null,super.unsubscribe()}}}),hG=K_;function Z_(e=0,t,i=hG){let n=-1;return null!=t&&(sf(t)?i=t:n=t),new We(r=>{let a=function pG(e){return e instanceof Date&&!isNaN(e)}(e)?+e-i.now():e;a<0&&(a=0);let s=0;return i.schedule(function(){r.closed||(r.next(s++),0<=n?this.schedule(void 0,n):r.complete())},a)})}const{isArray:mG}=Array;function Q_(e){return 1===e.length&&mG(e[0])?e[0]:e}function J_(...e){return 1===(e=Q_(e)).length?j1(e[0]):new We(function gG(e){return t=>{let i=[];for(let n=0;i&&!t.closed&&n<e.length;n++)i.push(j1(e[n]).subscribe(qe(t,r=>{if(i){for(let a=0;a<i.length;a++)a!==n&&i[a].unsubscribe();i=null}t.next(r)})))}}(e))}function M5(...e){const t=Za(e),i=Q_(e);return i.length?new We(n=>{let r=i.map(()=>[]),a=i.map(()=>!1);n.add(()=>{r=a=null});for(let s=0;!n.closed&&s<i.length;s++)j1(i[s]).subscribe(qe(n,o=>{if(r[s].push(o),r.every(c=>c.length)){const c=r.map(l=>l.shift());n.next(t?t(...c):c),r.some((l,u)=>!l.length&&a[u])&&n.complete()}},()=>{a[s]=!0,!r[s].length&&n.complete()}));return()=>{r=a=null}}):ot}function $r(...e){return function vG(){return e4(1)}()(Q1(e,Ni(e)))}function O1(e){return f1((t,i)=>{j1(e).subscribe(qe(i,()=>i.complete(),Z1)),!i.closed&&t.subscribe(i)})}function x1(e,t){return f1((i,n)=>{let r=0;i.subscribe(qe(n,a=>e.call(t,a,r++)&&n.next(a)))})}function e2(e){return e<=0?()=>ot:f1((t,i)=>{let n=0;t.subscribe(qe(i,r=>{++n<=e&&(i.next(r),e<=n&&i.complete())}))})}function q1(e,t,i){const n=Q(e)||t||i?{next:e,error:t,complete:i}:e;return n?f1((r,a)=>{var s;null===(s=n.subscribe)||void 0===s||s.call(n);let o=!0;r.subscribe(qe(a,c=>{var l;null===(l=n.next)||void 0===l||l.call(n,c),a.next(c)},()=>{var c;o=!1,null===(c=n.complete)||void 0===c||c.call(n),a.complete()},c=>{var l;o=!1,null===(l=n.error)||void 0===l||l.call(n,c),a.error(c)},()=>{var c,l;o&&(null===(c=n.unsubscribe)||void 0===c||c.call(n)),null===(l=n.finalize)||void 0===l||l.call(n)}))}):yt}function y5(...e){const t=Za(e);return f1((i,n)=>{const r=e.length,a=new Array(r);let s=e.map(()=>!1),o=!1;for(let c=0;c<r;c++)j1(e[c]).subscribe(qe(n,l=>{a[c]=l,!o&&!s[c]&&(s[c]=!0,(o=s.every(yt))&&(s=null))},Z1));i.subscribe(qe(n,c=>{if(o){const l=[c,...a];n.next(t?t(...l):l)}}))})}function X_(e){return we(()=>e)}function eC(e,t){return t?i=>$r(t.pipe(e2(1),function CG(){return f1((e,t)=>{e.subscribe(qe(t,Z1))})}()),i.pipe(eC(e))):F1((i,n)=>j1(e(i,n)).pipe(e2(1),X_(i)))}function tC(e,t=K_){const i=Z_(e,t);return eC(()=>i)}var yG={left:"right",right:"left",bottom:"top",top:"bottom"};function Zo(e){return e.replace(/left|right|bottom|top/g,function(t){return yG[t]})}function en(e){return e.split("-")[0]}var bG={start:"end",end:"start"};function iC(e){return e.replace(/start|end/g,function(t){return bG[t]})}var et="top",Lt="bottom",Nt="right",tt="left",b5="auto",Wr=[et,Lt,Nt,tt],ai="start",qr="end",rC="viewport",Yr="popper",aC=Wr.reduce(function(e,t){return e.concat([t+"-"+ai,t+"-"+qr])},[]),sC=[].concat(Wr,[b5]).reduce(function(e,t){return e.concat([t,t+"-"+ai,t+"-"+qr])},[]),TG=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function nt(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function S3(e){return e instanceof nt(e).Element||e instanceof Element}function _t(e){return e instanceof nt(e).HTMLElement||e instanceof HTMLElement}function w5(e){return!(typeof ShadowRoot>"u")&&(e instanceof nt(e).ShadowRoot||e instanceof ShadowRoot)}function Qn(e){return((S3(e)?e.ownerDocument:e.document)||window.document).documentElement}var D3=Math.max,Qo=Math.min,si=Math.round;function H5(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function oC(){return!/^((?!chrome|android).)*safari/i.test(H5())}function oi(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var n=e.getBoundingClientRect(),r=1,a=1;t&&_t(e)&&(r=e.offsetWidth>0&&si(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&si(n.height)/e.offsetHeight||1);var o=(S3(e)?nt(e):window).visualViewport,c=!oC()&&i,l=(n.left+(c&&o?o.offsetLeft:0))/r,u=(n.top+(c&&o?o.offsetTop:0))/a,d=n.width/r,p=n.height/a;return{width:d,height:p,top:u,right:l+d,bottom:u+p,left:l,x:l,y:u}}function V5(e){var t=nt(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function S5(e){return oi(Qn(e)).left+V5(e).scrollLeft}function bn(e){return nt(e).getComputedStyle(e)}function tn(e){return e?(e.nodeName||"").toLowerCase():null}function Jo(e){return"html"===tn(e)?e:e.assignedSlot||e.parentNode||(w5(e)?e.host:null)||Qn(e)}function D5(e){var t=bn(e);return/auto|scroll|overlay|hidden/.test(t.overflow+t.overflowY+t.overflowX)}function cC(e){return["html","body","#document"].indexOf(tn(e))>=0?e.ownerDocument.body:_t(e)&&D5(e)?e:cC(Jo(e))}function Kr(e,t){var i;void 0===t&&(t=[]);var n=cC(e),r=n===(null==(i=e.ownerDocument)?void 0:i.body),a=nt(n),s=r?[a].concat(a.visualViewport||[],D5(n)?n:[]):n,o=t.concat(s);return r?o:o.concat(Kr(Jo(s)))}function OG(e){return["table","td","th"].indexOf(tn(e))>=0}function lC(e){return _t(e)&&"fixed"!==bn(e).position?e.offsetParent:null}function Zr(e){for(var t=nt(e),i=lC(e);i&&OG(i)&&"static"===bn(i).position;)i=lC(i);return i&&("html"===tn(i)||"body"===tn(i)&&"static"===bn(i).position)?t:i||function kG(e){var t=/firefox/i.test(H5());if(/Trident/i.test(H5())&&_t(e)&&"fixed"===bn(e).position)return null;var r=Jo(e);for(w5(r)&&(r=r.host);_t(r)&&["html","body"].indexOf(tn(r))<0;){var a=bn(r);if("none"!==a.transform||"none"!==a.perspective||"paint"===a.contain||-1!==["transform","perspective"].indexOf(a.willChange)||t&&"filter"===a.willChange||t&&a.filter&&"none"!==a.filter)return r;r=r.parentNode}return null}(e)||t}function uC(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&w5(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function z5(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function fC(e,t,i){return t===rC?z5(function IG(e,t){var i=nt(e),n=Qn(e),r=i.visualViewport,a=n.clientWidth,s=n.clientHeight,o=0,c=0;if(r){a=r.width,s=r.height;var l=oC();(l||!l&&"fixed"===t)&&(o=r.offsetLeft,c=r.offsetTop)}return{width:a,height:s,x:o+S5(e),y:c}}(e,i)):S3(t)?function PG(e,t){var i=oi(e,!1,"fixed"===t);return i.top=i.top+e.clientTop,i.left=i.left+e.clientLeft,i.bottom=i.top+e.clientHeight,i.right=i.left+e.clientWidth,i.width=e.clientWidth,i.height=e.clientHeight,i.x=i.left,i.y=i.top,i}(t,i):z5(function RG(e){var t,i=Qn(e),n=V5(e),r=null==(t=e.ownerDocument)?void 0:t.body,a=D3(i.scrollWidth,i.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=D3(i.scrollHeight,i.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+S5(e),c=-n.scrollTop;return"rtl"===bn(r||i).direction&&(o+=D3(i.clientWidth,r?r.clientWidth:0)-a),{width:a,height:s,x:o,y:c}}(Qn(e)))}function ci(e){return e.split("-")[1]}function E5(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function dC(e){var c,t=e.reference,i=e.element,n=e.placement,r=n?en(n):null,a=n?ci(n):null,s=t.x+t.width/2-i.width/2,o=t.y+t.height/2-i.height/2;switch(r){case et:c={x:s,y:t.y-i.height};break;case Lt:c={x:s,y:t.y+t.height};break;case Nt:c={x:t.x+t.width,y:o};break;case tt:c={x:t.x-i.width,y:o};break;default:c={x:t.x,y:t.y}}var l=r?E5(r):null;if(null!=l){var u="y"===l?"height":"width";switch(a){case ai:c[l]=c[l]-(t[u]/2-i[u]/2);break;case qr:c[l]=c[l]+(t[u]/2-i[u]/2)}}return c}function pC(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function mC(e,t){return t.reduce(function(i,n){return i[n]=e,i},{})}function x5(e,t){void 0===t&&(t={});var n=t.placement,r=void 0===n?e.placement:n,a=t.strategy,s=void 0===a?e.strategy:a,o=t.boundary,c=void 0===o?"clippingParents":o,l=t.rootBoundary,u=void 0===l?rC:l,d=t.elementContext,p=void 0===d?Yr:d,m=t.altBoundary,H=void 0!==m&&m,S=t.padding,E=void 0===S?0:S,N=pC("number"!=typeof E?E:mC(E,Wr)),B=e.rects.popper,U=e.elements[H?p===Yr?"reference":Yr:p],G=function BG(e,t,i,n){var r="clippingParents"===t?function FG(e){var t=Kr(Jo(e)),n=["absolute","fixed"].indexOf(bn(e).position)>=0&&_t(e)?Zr(e):e;return S3(n)?t.filter(function(r){return S3(r)&&uC(r,n)&&"body"!==tn(r)}):[]}(e):[].concat(t),a=[].concat(r,[i]),o=a.reduce(function(c,l){var u=fC(e,l,n);return c.top=D3(u.top,c.top),c.right=Qo(u.right,c.right),c.bottom=Qo(u.bottom,c.bottom),c.left=D3(u.left,c.left),c},fC(e,a[0],n));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}(S3(U)?U:U.contextElement||Qn(e.elements.popper),c,u,s),ie=oi(e.elements.reference),ve=dC({reference:ie,element:B,strategy:"absolute",placement:r}),be=z5(Object.assign({},B,ve)),ke=p===Yr?be:ie,b1={top:G.top-ke.top+N.top,bottom:ke.bottom-G.bottom+N.bottom,left:G.left-ke.left+N.left,right:ke.right-G.right+N.right},t2=e.modifiersData.offset;if(p===Yr&&t2){var Ot=t2[r];Object.keys(b1).forEach(function(A2){var $3=[Nt,Lt].indexOf(A2)>=0?1:-1,W3=[et,Lt].indexOf(A2)>=0?"y":"x";b1[A2]+=Ot[W3]*$3})}return b1}const $G={name:"flip",enabled:!0,phase:"main",fn:function GG(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var r=i.mainAxis,a=void 0===r||r,s=i.altAxis,o=void 0===s||s,c=i.fallbackPlacements,l=i.padding,u=i.boundary,d=i.rootBoundary,p=i.altBoundary,m=i.flipVariations,H=void 0===m||m,S=i.allowedAutoPlacements,E=t.options.placement,N=en(E),B=c||(N!==E&&H?function jG(e){if(en(e)===b5)return[];var t=Zo(e);return[iC(e),t,iC(t)]}(E):[Zo(E)]),U=[E].concat(B).reduce(function(Di,r3){return Di.concat(en(r3)===b5?function UG(e,t){void 0===t&&(t={});var r=t.boundary,a=t.rootBoundary,s=t.padding,o=t.flipVariations,c=t.allowedAutoPlacements,l=void 0===c?sC:c,u=ci(t.placement),d=u?o?aC:aC.filter(function(H){return ci(H)===u}):Wr,p=d.filter(function(H){return l.indexOf(H)>=0});0===p.length&&(p=d);var m=p.reduce(function(H,S){return H[S]=x5(e,{placement:S,boundary:r,rootBoundary:a,padding:s})[en(S)],H},{});return Object.keys(m).sort(function(H,S){return m[H]-m[S]})}(t,{placement:r3,boundary:u,rootBoundary:d,padding:l,flipVariations:H,allowedAutoPlacements:S}):r3)},[]),G=t.rects.reference,ie=t.rects.popper,ve=new Map,be=!0,ke=U[0],b1=0;b1<U.length;b1++){var t2=U[b1],Ot=en(t2),A2=ci(t2)===ai,$3=[et,Lt].indexOf(Ot)>=0,W3=$3?"width":"height",rt=x5(t,{placement:t2,boundary:u,rootBoundary:d,altBoundary:p,padding:l}),kt=$3?A2?Nt:tt:A2?Lt:et;G[W3]>ie[W3]&&(kt=Zo(kt));var m6=Zo(kt),q3=[];if(a&&q3.push(rt[Ot]<=0),o&&q3.push(rt[kt]<=0,rt[m6]<=0),q3.every(function(Di){return Di})){ke=t2,be=!1;break}ve.set(t2,q3)}if(be)for(var Gu=function(r3){var Fa=U.find(function(_6){var Y3=ve.get(_6);if(Y3)return Y3.slice(0,r3).every(function($u){return $u})});if(Fa)return ke=Fa,"break"},Pa=H?3:1;Pa>0&&"break"!==Gu(Pa);Pa--);t.placement!==ke&&(t.modifiersData[n]._skip=!0,t.placement=ke,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Qr(e,t,i){return D3(e,Qo(t,i))}function A5(e){var t=oi(e),i=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}const KG={name:"preventOverflow",enabled:!0,phase:"main",fn:function YG(e){var t=e.state,i=e.options,n=e.name,r=i.mainAxis,a=void 0===r||r,s=i.altAxis,o=void 0!==s&&s,p=i.tether,m=void 0===p||p,H=i.tetherOffset,S=void 0===H?0:H,E=x5(t,{boundary:i.boundary,rootBoundary:i.rootBoundary,padding:i.padding,altBoundary:i.altBoundary}),N=en(t.placement),z=ci(t.placement),B=!z,U=E5(N),G=function WG(e){return"x"===e?"y":"x"}(U),ie=t.modifiersData.popperOffsets,ve=t.rects.reference,be=t.rects.popper,ke="function"==typeof S?S(Object.assign({},t.rects,{placement:t.placement})):S,b1="number"==typeof ke?{mainAxis:ke,altAxis:ke}:Object.assign({mainAxis:0,altAxis:0},ke),t2=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Ot={x:0,y:0};if(ie){if(a){var A2,$3="y"===U?et:tt,W3="y"===U?Lt:Nt,rt="y"===U?"height":"width",kt=ie[U],m6=kt+E[$3],q3=kt-E[W3],g6=m?-be[rt]/2:0,Gu=z===ai?ve[rt]:be[rt],Pa=z===ai?-be[rt]:-ve[rt],v6=t.elements.arrow,Di=m&&v6?A5(v6):{width:0,height:0},r3=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Fa=r3[$3],_6=r3[W3],Y3=Qr(0,ve[rt],Di[rt]),$u=B?ve[rt]/2-g6-Y3-Fa-b1.mainAxis:Gu-Y3-Fa-b1.mainAxis,a_e=B?-ve[rt]/2+g6+Y3+_6+b1.mainAxis:Pa+Y3+_6+b1.mainAxis,Wu=t.elements.arrow&&Zr(t.elements.arrow),s_e=Wu?"y"===U?Wu.clientTop||0:Wu.clientLeft||0:0,fx=null!=(A2=t2?.[U])?A2:0,c_e=kt+a_e-fx,dx=Qr(m?Qo(m6,kt+$u-fx-s_e):m6,kt,m?D3(q3,c_e):q3);ie[U]=dx,Ot[U]=dx-kt}if(o){var hx,K3=ie[G],C6="y"===G?"height":"width",px=K3+E["x"===U?et:tt],mx=K3-E["x"===U?Lt:Nt],qu=-1!==[et,tt].indexOf(N),gx=null!=(hx=t2?.[G])?hx:0,vx=qu?px:K3-ve[C6]-be[C6]-gx+b1.altAxis,_x=qu?K3+ve[C6]+be[C6]-gx-b1.altAxis:mx,Cx=m&&qu?function qG(e,t,i){var n=Qr(e,t,i);return n>i?i:n}(vx,K3,_x):Qr(m?vx:px,K3,m?_x:mx);ie[G]=Cx,Ot[G]=Cx-K3}t.modifiersData[n]=Ot}},requiresIfExists:["offset"]},XG={name:"arrow",enabled:!0,phase:"main",fn:function QG(e){var t,i=e.state,n=e.name,r=e.options,a=i.elements.arrow,s=i.modifiersData.popperOffsets,o=en(i.placement),c=E5(o),u=[tt,Nt].indexOf(o)>=0?"height":"width";if(a&&s){var d=function(t,i){return pC("number"!=typeof(t="function"==typeof t?t(Object.assign({},i.rects,{placement:i.placement})):t)?t:mC(t,Wr))}(r.padding,i),p=A5(a),m="y"===c?et:tt,H="y"===c?Lt:Nt,S=i.rects.reference[u]+i.rects.reference[c]-s[c]-i.rects.popper[u],E=s[c]-i.rects.reference[c],N=Zr(a),z=N?"y"===c?N.clientHeight||0:N.clientWidth||0:0,ie=z/2-p[u]/2+(S/2-E/2),ve=Qr(d[m],ie,z-p[u]-d[H]);i.modifiersData[n]=((t={})[c]=ve,t.centerOffset=ve-ie,t)}},effect:function JG(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"==typeof r&&!(r=t.elements.popper.querySelector(r))||uC(t.elements.popper,r)&&(t.elements.arrow=r))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function i$(e,t,i){void 0===i&&(i=!1);var n=_t(t),r=_t(t)&&function n$(e){var t=e.getBoundingClientRect(),i=si(t.width)/e.offsetWidth||1,n=si(t.height)/e.offsetHeight||1;return 1!==i||1!==n}(t),a=Qn(t),s=oi(e,r,i),o={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!i)&&(("body"!==tn(t)||D5(a))&&(o=function t$(e){return e!==nt(e)&&_t(e)?function e$(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(e):V5(e)}(t)),_t(t)?((c=oi(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=S5(a))),{x:s.left+o.scrollLeft-c.x,y:s.top+o.scrollTop-c.y,width:s.width,height:s.height}}function r$(e){var t=new Map,i=new Set,n=[];function r(a){i.add(a.name),[].concat(a.requires||[],a.requiresIfExists||[]).forEach(function(o){if(!i.has(o)){var c=t.get(o);c&&r(c)}}),n.push(a)}return e.forEach(function(a){t.set(a.name,a)}),e.forEach(function(a){i.has(a.name)||r(a)}),n}function s$(e){var t;return function(){return t||(t=new Promise(function(i){Promise.resolve().then(function(){t=void 0,i(e())})})),t}}var gC={placement:"bottom",modifiers:[],strategy:"absolute"};function vC(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some(function(n){return!(n&&"function"==typeof n.getBoundingClientRect)})}function c$(e){void 0===e&&(e={});var i=e.defaultModifiers,n=void 0===i?[]:i,r=e.defaultOptions,a=void 0===r?gC:r;return function(o,c,l){void 0===l&&(l=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},gC,a),modifiersData:{},elements:{reference:o,popper:c},attributes:{},styles:{}},d=[],p=!1,m={state:u,setOptions:function(N){var z="function"==typeof N?N(u.options):N;S(),u.options=Object.assign({},a,u.options,z),u.scrollParents={reference:S3(o)?Kr(o):o.contextElement?Kr(o.contextElement):[],popper:Kr(c)};var B=function a$(e){var t=r$(e);return TG.reduce(function(i,n){return i.concat(t.filter(function(r){return r.phase===n}))},[])}(function o$(e){var t=e.reduce(function(i,n){var r=i[n.name];return i[n.name]=r?Object.assign({},r,n,{options:Object.assign({},r.options,n.options),data:Object.assign({},r.data,n.data)}):n,i},{});return Object.keys(t).map(function(i){return t[i]})}([].concat(n,u.options.modifiers)));return u.orderedModifiers=B.filter(function(U){return U.enabled}),function H(){u.orderedModifiers.forEach(function(E){var z=E.options,U=E.effect;if("function"==typeof U){var G=U({state:u,name:E.name,instance:m,options:void 0===z?{}:z});d.push(G||function(){})}})}(),m.update()},forceUpdate:function(){if(!p){var N=u.elements,z=N.reference,B=N.popper;if(vC(z,B)){u.rects={reference:i$(z,Zr(B),"fixed"===u.options.strategy),popper:A5(B)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(b1){return u.modifiersData[b1.name]=Object.assign({},b1.data)});for(var U=0;U<u.orderedModifiers.length;U++)if(!0!==u.reset){var G=u.orderedModifiers[U],ie=G.fn,ve=G.options;"function"==typeof ie&&(u=ie({state:u,options:void 0===ve?{}:ve,name:G.name,instance:m})||u)}else u.reset=!1,U=-1}}},update:s$(function(){return new Promise(function(E){m.forceUpdate(),E(u)})}),destroy:function(){S(),p=!0}};if(!vC(o,c))return m;function S(){d.forEach(function(E){return E()}),d=[]}return m.setOptions(l).then(function(E){!p&&l.onFirstUpdate&&l.onFirstUpdate(E)}),m}}var Xo={passive:!0},h$={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _C(e){var t,i=e.popper,n=e.popperRect,r=e.placement,a=e.variation,s=e.offsets,o=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=s.x,m=void 0===p?0:p,H=s.y,S=void 0===H?0:H,E="function"==typeof u?u({x:m,y:S}):{x:m,y:S};m=E.x,S=E.y;var N=s.hasOwnProperty("x"),z=s.hasOwnProperty("y"),B=tt,U=et,G=window;if(l){var ie=Zr(i),ve="clientHeight",be="clientWidth";ie===nt(i)&&"static"!==bn(ie=Qn(i)).position&&"absolute"===o&&(ve="scrollHeight",be="scrollWidth"),(r===et||(r===tt||r===Nt)&&a===qr)&&(U=Lt,S-=(d&&ie===G&&G.visualViewport?G.visualViewport.height:ie[ve])-n.height,S*=c?1:-1),r!==tt&&(r!==et&&r!==Lt||a!==qr)||(B=Nt,m-=(d&&ie===G&&G.visualViewport?G.visualViewport.width:ie[be])-n.width,m*=c?1:-1)}var A2,t2=Object.assign({position:o},l&&h$),Ot=!0===u?function p$(e,t){var n=e.y,r=t.devicePixelRatio||1;return{x:si(e.x*r)/r||0,y:si(n*r)/r||0}}({x:m,y:S},nt(i)):{x:m,y:S};return m=Ot.x,S=Ot.y,Object.assign({},t2,c?((A2={})[U]=z?"0":"",A2[B]=N?"0":"",A2.transform=(G.devicePixelRatio||1)<=1?"translate("+m+"px, "+S+"px)":"translate3d("+m+"px, "+S+"px, 0)",A2):((t={})[U]=z?S+"px":"",t[B]=N?m+"px":"",t.transform="",t))}var M$=c$({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function l$(e){var t=e.state,i=e.instance,n=e.options,r=n.scroll,a=void 0===r||r,s=n.resize,o=void 0===s||s,c=nt(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(u){u.addEventListener("scroll",i.update,Xo)}),o&&c.addEventListener("resize",i.update,Xo),function(){a&&l.forEach(function(u){u.removeEventListener("scroll",i.update,Xo)}),o&&c.removeEventListener("resize",i.update,Xo)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function f$(e){var t=e.state;t.modifiersData[e.name]=dC({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function m$(e){var t=e.state,i=e.options,n=i.gpuAcceleration,r=void 0===n||n,a=i.adaptive,s=void 0===a||a,o=i.roundOffsets,c=void 0===o||o,l={placement:en(t.placement),variation:ci(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,_C(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,_C(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function v$(e){var t=e.state;Object.keys(t.elements).forEach(function(i){var n=t.styles[i]||{},r=t.attributes[i]||{},a=t.elements[i];!_t(a)||!tn(a)||(Object.assign(a.style,n),Object.keys(r).forEach(function(s){var o=r[s];!1===o?a.removeAttribute(s):a.setAttribute(s,!0===o?"":o)}))})},effect:function _$(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach(function(n){var r=t.elements[n],a=t.attributes[n]||{},o=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:i[n]).reduce(function(c,l){return c[l]="",c},{});!_t(r)||!tn(r)||(Object.assign(r.style,o),Object.keys(a).forEach(function(c){r.removeAttribute(c)}))})}},requires:["computeStyles"]}]});const w$={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function b$(e){var t=e.state,n=e.name,r=e.options.offset,a=void 0===r?[0,0]:r,s=sC.reduce(function(u,d){return u[d]=function y$(e,t,i){var n=en(e),r=[tt,et].indexOf(n)>=0?-1:1,a="function"==typeof i?i(Object.assign({},t,{placement:e})):i,s=a[0],o=a[1];return s=s||0,o=(o||0)*r,[tt,Nt].indexOf(n)>=0?{x:o,y:s}:{x:s,y:o}}(d,t.rects,a),u},{}),o=s[t.placement],l=o.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=o.x,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=s}};function H$(e,t){}function V$(e,t){if(1&e&&(g(0,"button",3),y(1),I(2,H$,0,0,"ng-template",4),_()),2&e){const i=t.$implicit;b("ngbPanelToggle",i),C(1),Q2(" ",i.title," "),C(1),b("ngTemplateOutlet",null==i.titleTpl?null:i.titleTpl.templateRef)}}function S$(e,t){}function D$(e,t){}function z$(e,t){if(1&e){const i=S1();g(0,"div",8),O("ngbRef",function(r){return Y(i),K(T().$implicit.panelDiv=r)}),g(1,"div",9),I(2,D$,0,0,"ng-template",4),_()()}if(2&e){const i=T().$implicit;Il("id",i.id),W("aria-labelledby",i.id+"-header"),C(2),b("ngTemplateOutlet",(null==i.contentTpl?null:i.contentTpl.templateRef)||null)}}const E$=function(e,t){return{$implicit:e,opened:t}};function x$(e,t){if(1&e&&(g(0,"div")(1,"div",5),I(2,S$,0,0,"ng-template",6),_(),I(3,z$,3,3,"div",7),_()),2&e){const i=t.$implicit,n=T(),r=k2(1);vn("accordion-item "+(i.cardClass||"")),C(1),vn("accordion-header "+(i.type?"bg-"+i.type:n.type?"bg-"+n.type:"")),q4("id","",i.id,"-header"),C(1),b("ngTemplateOutlet",(null==i.headerTpl?null:i.headerTpl.templateRef)||r)("ngTemplateOutletContext",Er(8,E$,i,i.isOpen)),C(1),b("ngIf",!n.destroyOnHide||i.isOpen||i.transitionRunning)}}function A$(e,t){if(1&e){const i=S1();g(0,"button",1),O("click",function(){return Y(i),K(T().close())}),_()}}const ec=["*"],oW=["dialog"];function OW(e,t){1&e&&y(0),2&e&&pt(T(2).title)}function kW(e,t){}function PW(e,t){if(1&e&&(g(0,"h3",3),I(1,OW,1,1,"ng-template",null,4,D2),I(3,kW,0,0,"ng-template",5),_()),2&e){const i=k2(2),n=T();C(3),b("ngTemplateOutlet",n.isTitleTemplate()?n.title:i)("ngTemplateOutletContext",n.context)}}function wn(e){return"string"==typeof e}function z3(e){return null!=e}function li(e){return(e||document.body).getBoundingClientRect()}const HC={animation:!0,transitionTimerDelayMs:5},eq=()=>{},{transitionTimerDelayMs:tq}=HC,Jr=new Map,x2=(e,t,i,n)=>{let r=n.context||{};const a=Jr.get(t);if(a)switch(n.runningTransition){case"continue":return ot;case"stop":e.run(()=>a.transition$.complete()),r=Object.assign(a.context,r),Jr.delete(t)}const s=i(t,n.animation,r)||eq;if(!n.animation||"none"===window.getComputedStyle(t).transitionProperty)return e.run(()=>s()),ae(void 0).pipe(function JW(e){return t=>new We(i=>t.subscribe({next:s=>e.run(()=>i.next(s)),error:s=>e.run(()=>i.error(s)),complete:()=>e.run(()=>i.complete())}))}(e));const o=new fe,c=new fe,l=o.pipe(function _G(...e){return t=>$r(t,ae(...e))}(!0));Jr.set(t,{transition$:o,complete:()=>{c.next(),c.complete()},context:r});const u=function XW(e){const{transitionDelay:t,transitionDuration:i}=window.getComputedStyle(e);return 1e3*(parseFloat(t)+parseFloat(i))}(t);return e.runOutsideAngular(()=>{const d=X1(t,"transitionend").pipe(O1(l),x1(({target:m})=>m===t));J_(Z_(u+tq).pipe(O1(l)),d,c).pipe(O1(l)).subscribe(()=>{Jr.delete(t),e.run(()=>{s(),o.next(),o.complete()})})}),o.asObservable()},N5=(e,t,i)=>{let{direction:n,maxSize:r,dimension:a}=i;const{classList:s}=e;function o(){s.add("collapse"),"show"===n?s.add("show"):s.remove("show")}if(t)return r||(r=function nq(e,t){if(typeof navigator>"u")return"0px";const{classList:i}=e,n=i.contains("show");n||i.add("show"),e.style[t]="";const r=e.getBoundingClientRect()[t]+"px";return n||i.remove("show"),r}(e,a),i.maxSize=r,e.style[a]="show"!==n?r:"0px",s.remove("collapse"),s.remove("collapsing"),s.remove("show"),li(e),s.add("collapsing")),e.style[a]="show"===n?r:"0px",()=>{o(),s.remove("collapsing"),e.style[a]=""};o()};let E3=(()=>{var e;class t{constructor(){this.animation=HC.animation}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),VC=(()=>{var e;class t{constructor(n){this._ngbConfig=n,this.closeOthers=!1}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(n){this._animation=n}}return(e=t).\u0275fac=function(n){return new(n||e)(q(E3))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),iq=0,tc=(()=>{var e;class t{constructor(n){this.templateRef=n}}return(e=t).\u0275fac=function(n){return new(n||e)(w(o1))},e.\u0275dir=j({type:e,selectors:[["ng-template","ngbPanelHeader",""]],standalone:!0}),t})(),T5=(()=>{var e;class t{constructor(n){this.templateRef=n}}return(e=t).\u0275fac=function(n){return new(n||e)(w(o1))},e.\u0275dir=j({type:e,selectors:[["ng-template","ngbPanelTitle",""]],standalone:!0}),t})(),I5=(()=>{var e;class t{constructor(n){this.templateRef=n}}return(e=t).\u0275fac=function(n){return new(n||e)(w(o1))},e.\u0275dir=j({type:e,selectors:[["ng-template","ngbPanelContent",""]],standalone:!0}),t})(),nc=(()=>{var e;class t{constructor(){this.disabled=!1,this.id="ngb-panel-"+iq++,this.isOpen=!1,this.initClassDone=!1,this.transitionRunning=!1,this.shown=new ee,this.hidden=new ee}ngAfterContentChecked(){this.titleTpl=this.titleTpls.first,this.headerTpl=this.headerTpls.first,this.contentTpl=this.contentTpls.first}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275dir=j({type:e,selectors:[["ngb-panel"]],contentQueries:function(n,r,a){if(1&n&&(C1(a,T5,4),C1(a,tc,4),C1(a,I5,4)),2&n){let s;je(s=Ge())&&(r.titleTpls=s),je(s=Ge())&&(r.headerTpls=s),je(s=Ge())&&(r.contentTpls=s)}},inputs:{disabled:"disabled",id:"id",title:"title",type:"type",cardClass:"cardClass"},outputs:{shown:"shown",hidden:"hidden"},standalone:!0}),t})(),rq=(()=>{var e;class t{constructor(n){this._El=n,this.ngbRef=new ee}ngOnInit(){this.ngbRef.emit(this._El.nativeElement)}ngOnDestroy(){this.ngbRef.emit(null)}}return(e=t).\u0275fac=function(n){return new(n||e)(w(Ae))},e.\u0275dir=j({type:e,selectors:[["","ngbRef",""]],outputs:{ngbRef:"ngbRef"},standalone:!0}),t})(),R5=(()=>{var e;class t{set ngbPanelToggle(n){n&&(this.panel=n)}constructor(n,r){this.accordion=n,this.panel=r}}return(e=t).\u0275fac=function(n){return new(n||e)(w(me(()=>O5)),w(nc,9))},e.\u0275dir=j({type:e,selectors:[["button","ngbPanelToggle",""]],hostAttrs:["type","button"],hostVars:5,hostBindings:function(n,r){1&n&&O("click",function(){return r.accordion.toggle(r.panel.id)}),2&n&&(H2("disabled",r.panel.disabled),W("aria-expanded",r.panel.isOpen)("aria-controls",r.panel.id),ze("collapsed",!r.panel.isOpen))},inputs:{ngbPanelToggle:"ngbPanelToggle"},standalone:!0}),t})(),O5=(()=>{var e;class t{constructor(n,r,a){this._ngZone=r,this._changeDetector=a,this.activeIds=[],this.destroyOnHide=!0,this.panelChange=new ee,this.shown=new ee,this.hidden=new ee,this.animation=n.animation,this.type=n.type,this.closeOtherPanels=n.closeOthers}isExpanded(n){return this.activeIds.indexOf(n)>-1}expand(n){this._changeOpenState(this._findPanelById(n),!0)}expandAll(){this.closeOtherPanels?0===this.activeIds.length&&this.panels.length&&this._changeOpenState(this.panels.first,!0):this.panels.forEach(n=>this._changeOpenState(n,!0))}collapse(n){this._changeOpenState(this._findPanelById(n),!1)}collapseAll(){this.panels.forEach(n=>{this._changeOpenState(n,!1)})}toggle(n){const r=this._findPanelById(n);r&&this._changeOpenState(r,!r.isOpen)}ngAfterContentChecked(){wn(this.activeIds)&&(this.activeIds=this.activeIds.split(/\s*,\s*/)),this.panels.forEach(n=>{n.isOpen=!n.disabled&&this.activeIds.indexOf(n.id)>-1}),this.activeIds.length>1&&this.closeOtherPanels&&(this._closeOthers(this.activeIds[0],!1),this._updateActiveIds()),this._ngZone.onStable.pipe(e2(1)).subscribe(()=>{this.panels.forEach(n=>{const r=n.panelDiv;r?n.initClassDone||(n.initClassDone=!0,x2(this._ngZone,r,N5,{animation:!1,runningTransition:"continue",context:{direction:n.isOpen?"show":"hide",dimension:"height"}})):n.initClassDone=!1})})}_changeOpenState(n,r){if(null!=n&&!n.disabled&&n.isOpen!==r){let a=!1;this.panelChange.emit({panelId:n.id,nextState:r,preventDefault:()=>{a=!0}}),a||(n.isOpen=r,n.transitionRunning=!0,r&&this.closeOtherPanels&&this._closeOthers(n.id),this._updateActiveIds(),this._runTransitions(this.animation))}}_closeOthers(n,r=!0){this.panels.forEach(a=>{a.id!==n&&a.isOpen&&(a.isOpen=!1,a.transitionRunning=r)})}_findPanelById(n){return this.panels.find(r=>r.id===n)||null}_updateActiveIds(){this.activeIds=this.panels.filter(n=>n.isOpen&&!n.disabled).map(n=>n.id)}_runTransitions(n){this._changeDetector.detectChanges(),this.panels.forEach(r=>{r.transitionRunning&&x2(this._ngZone,r.panelDiv,N5,{animation:n,runningTransition:"stop",context:{direction:r.isOpen?"show":"hide",dimension:"height"}}).subscribe(()=>{r.transitionRunning=!1;const{id:s}=r;r.isOpen?(r.shown.emit(),this.shown.emit(s)):(r.hidden.emit(),this.hidden.emit(s))})})}}return(e=t).\u0275fac=function(n){return new(n||e)(w(VC),w(Me),w(J2))},e.\u0275cmp=oe({type:e,selectors:[["ngb-accordion"]],contentQueries:function(n,r,a){if(1&n&&C1(a,nc,4),2&n){let s;je(s=Ge())&&(r.panels=s)}},hostAttrs:["role","tablist",1,"accordion"],hostVars:1,hostBindings:function(n,r){2&n&&W("aria-multiselectable",!r.closeOtherPanels)},inputs:{animation:"animation",activeIds:"activeIds",closeOtherPanels:["closeOthers","closeOtherPanels"],destroyOnHide:"destroyOnHide",type:"type"},outputs:{panelChange:"panelChange",shown:"shown",hidden:"hidden"},exportAs:["ngbAccordion"],standalone:!0,features:[S2],decls:3,vars:1,consts:[["ngbPanelHeader",""],["t",""],["ngFor","",3,"ngForOf"],[1,"accordion-button",3,"ngbPanelToggle"],[3,"ngTemplateOutlet"],["role","tab",3,"id"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["role","tabpanel",3,"id","ngbRef",4,"ngIf"],["role","tabpanel",3,"id","ngbRef"],[1,"accordion-body"]],template:function(n,r){1&n&&(I(0,V$,3,3,"ng-template",0,1,D2),I(2,x$,4,11,"ng-template",2)),2&n&&(C(2),b("ngForOf",r.panels))},dependencies:[Xt,y3,R5,rq,tc,D1],encapsulation:2}),t})(),EC=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})();const uq=({classList:e})=>{e.remove("show")};let fq=(()=>{var e;class t{constructor(n){this._ngbConfig=n,this.dismissible=!0,this.type="warning"}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(n){this._animation=n}}return(e=t).\u0275fac=function(n){return new(n||e)(q(E3))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),xC=(()=>{var e;class t{constructor(n,r,a,s){this._renderer=r,this._element=a,this._zone=s,this.closed=new ee,this.dismissible=n.dismissible,this.type=n.type,this.animation=n.animation}close(){const n=x2(this._zone,this._element.nativeElement,uq,{animation:this.animation,runningTransition:"continue"});return n.subscribe(()=>this.closed.emit()),n}ngOnChanges(n){const r=n.type;r&&!r.firstChange&&(this._renderer.removeClass(this._element.nativeElement,`alert-${r.previousValue}`),this._renderer.addClass(this._element.nativeElement,`alert-${r.currentValue}`))}ngOnInit(){this._renderer.addClass(this._element.nativeElement,`alert-${this.type}`)}}return(e=t).\u0275fac=function(n){return new(n||e)(w(fq),w(c2),w(Ae),w(Me))},e.\u0275cmp=oe({type:e,selectors:[["ngb-alert"]],hostAttrs:["role","alert",1,"alert","show"],hostVars:4,hostBindings:function(n,r){2&n&&ze("fade",r.animation)("alert-dismissible",r.dismissible)},inputs:{animation:"animation",dismissible:"dismissible",type:"type"},outputs:{closed:"closed"},exportAs:["ngbAlert"],standalone:!0,features:[v1,S2],ngContentSelectors:ec,decls:2,vars:1,consts:function(){let i;return i=$localize`:@@ngb.alert.close:Close`,[["type","button","class","btn-close","aria-label",i,3,"click",4,"ngIf"],["type","button","aria-label",i,1,"btn-close",3,"click"]]},template:function(n,r){1&n&&($4(),W4(0),I(1,A$,1,0,"button",0)),2&n&&(C(1),b("ngIf",r.dismissible))},dependencies:[D1],styles:["ngb-alert{display:block}\n"],encapsulation:2,changeDetection:0}),t})(),AC=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})(),TC=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})(),IC=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})();var Ze=function(e){return e[e.Tab=9]="Tab",e[e.Enter=13]="Enter",e[e.Escape=27]="Escape",e[e.Space=32]="Space",e[e.PageUp=33]="PageUp",e[e.PageDown=34]="PageDown",e[e.End=35]="End",e[e.Home=36]="Home",e[e.ArrowLeft=37]="ArrowLeft",e[e.ArrowUp=38]="ArrowUp",e[e.ArrowRight=39]="ArrowRight",e[e.ArrowDown=40]="ArrowDown",e}(Ze||{});const cc=(e,t)=>!!t&&t.some(i=>i.contains(e)),FC=(e,t)=>!t||null!=function QW(e,t){return!t||typeof e.closest>"u"?null:e.closest(t)}(e,t),Lq=typeof navigator<"u"&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));function lc(e,t,i,n,r,a,s,o){i&&e.runOutsideAngular((e=>Lq?()=>setTimeout(()=>e(),100):e)(()=>{const l=X1(t,"keydown").pipe(O1(r),x1(p=>p.which===Ze.Escape),q1(p=>p.preventDefault())),u=X1(t,"mousedown").pipe(we(p=>{const m=p.target;return 2!==p.button&&!cc(m,s)&&("inside"===i?cc(m,a)&&FC(m,o):"outside"===i?!cc(m,a):FC(m,o)||!cc(m,a))}),O1(r)),d=X1(t,"mouseup").pipe(y5(u),x1(([p,m])=>m),tC(0),O1(r));J_([l.pipe(we(p=>0)),d.pipe(we(p=>1))]).subscribe(p=>e.run(()=>n(p)))}))}const BC=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function UC(e){const t=Array.from(e.querySelectorAll(BC)).filter(i=>-1!==i.tabIndex);return[t[0],t[t.length-1]]}let Tq=(()=>{var e;class t{constructor(n){this._element=n.documentElement}isRTL(){return"rtl"===(this._element.getAttribute("dir")||"").toLowerCase()}}return(e=t).\u0275fac=function(n){return new(n||e)(q(M1))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const Iq=/\s+/,Rq=/ +/gi,Oq={top:["top"],bottom:["bottom"],start:["left","right"],left:["left"],end:["right","left"],right:["right"],"top-start":["top-start","top-end"],"top-left":["top-start"],"top-end":["top-end","top-start"],"top-right":["top-end"],"bottom-start":["bottom-start","bottom-end"],"bottom-left":["bottom-start"],"bottom-end":["bottom-end","bottom-start"],"bottom-right":["bottom-end"],"start-top":["left-start","right-start"],"left-top":["left-start"],"start-bottom":["left-end","right-end"],"left-bottom":["left-end"],"end-top":["right-start","left-start"],"right-top":["right-start"],"end-bottom":["right-end","left-end"],"right-bottom":["right-end"]},Pq=/^left/,Fq=/^right/,Bq=/^start/,Uq=/^end/;function GC({placement:e,baseClass:t},i){let n=Array.isArray(e)?e:e.split(Iq),a=n.findIndex(l=>"auto"===l);a>=0&&["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end","start-top","start-bottom","end-top","end-bottom"].forEach(function(l){null==n.find(u=>-1!==u.search("^"+l))&&n.splice(a++,1,l)});const s=n.map(l=>function kq(e,t){const[i,n]=Oq[e];return t&&n||i}(l,i.isRTL()));return{placement:s.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!t,phase:"write",fn({state:l}){const u=new RegExp(t+"(-[a-z]+)*","gi"),d=l.elements.popper,p=l.placement;let m=d.className;m=m.replace(u,""),m+=` ${function jq(e,t){let[i,n]=t.split("-");const r=i.replace(Pq,"start").replace(Fq,"end");let a=[r];if(n){let s=n;("left"===i||"right"===i)&&(s=s.replace(Bq,"top").replace(Uq,"bottom")),a.push(`${r}-${s}`)}return e&&(a=a.map(s=>`${e}-${s}`)),a.join(" ")}(t,p)}`,m=m.trim().replace(Rq," "),d.className=m}},$G,KG,XG,{enabled:!0,name:"flip",options:{fallbackPlacements:s}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function $C(e){return e}function uc(){const e=J(Tq);let t=null;return{createPopper(i){if(!t){let r=(i.updatePopperOptions||$C)(GC(i,e));t=M$(i.hostElement,i.targetElement,r)}},update(){t&&t.update()},setOptions(i){if(t){let r=(i.updatePopperOptions||$C)(GC(i,e));t.setOptions(r)}},destroy(){t&&(t.destroy(),t=null)}}}new Date(1882,10,12),new Date(2174,10,25);let XC=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})(),nM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})();class T3{constructor(t,i,n){this.nodes=t,this.viewRef=i,this.componentRef=n}}class iM{constructor(t,i,n,r,a,s){this._componentType=t,this._injector=i,this._viewContainerRef=n,this._renderer=r,this._ngZone=a,this._applicationRef=s,this._windowRef=null,this._contentRef=null}open(t,i,n=!1){this._windowRef||(this._contentRef=this._getContentRef(t,i),this._windowRef=this._viewContainerRef.createComponent(this._componentType,{injector:this._injector,projectableNodes:this._contentRef.nodes}));const{nativeElement:r}=this._windowRef.location,a=this._ngZone.onStable.pipe(e2(1),F1(()=>x2(this._ngZone,r,({classList:s})=>s.add("show"),{animation:n,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:a}}close(t=!1){return this._windowRef?x2(this._ngZone,this._windowRef.location.nativeElement,({classList:i})=>i.remove("show"),{animation:t,runningTransition:"stop"}).pipe(q1(()=>{this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),this._contentRef?.viewRef&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):ae(void 0)}_getContentRef(t,i){if(t){if(t instanceof o1){const n=t.createEmbeddedView(i);return this._applicationRef.attachView(n),new T3([n.rootNodes],n)}return new T3([[this._renderer.createText(`${t}`)]])}return new T3([])}}let nY=(()=>{var e;class t{constructor(n,r){this._el=n,this._zone=r}ngOnInit(){this._zone.onStable.asObservable().pipe(e2(1)).subscribe(()=>{x2(this._zone,this._el.nativeElement,(n,r)=>{r&&li(n),n.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return x2(this._zone,this._el.nativeElement,({classList:n})=>n.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return(e=t).\u0275fac=function(n){return new(n||e)(w(Ae),w(Me))},e.\u0275cmp=oe({type:e,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(n,r){2&n&&(vn("modal-backdrop"+(r.backdropClass?" "+r.backdropClass:"")),ze("show",!r.animation)("fade",r.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},standalone:!0,features:[S2],decls:0,vars:0,template:function(n,r){},encapsulation:2}),t})();class rM{update(t){}close(t){}dismiss(t){}}const iY=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],rY=["animation","backdropClass"];class aY{_applyWindowOptions(t,i){iY.forEach(n=>{z3(i[n])&&(t[n]=i[n])})}_applyBackdropOptions(t,i){rY.forEach(n=>{z3(i[n])&&(t[n]=i[n])})}update(t){this._applyWindowOptions(this._windowCmptRef.instance,t),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,t)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(O1(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(O1(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(t,i,n,r){this._windowCmptRef=t,this._contentRef=i,this._backdropCmptRef=n,this._beforeDismiss=r,this._closed=new fe,this._dismissed=new fe,this._hidden=new fe,t.instance.dismissEvent.subscribe(a=>{this.dismiss(a)}),this.result=new Promise((a,s)=>{this._resolve=a,this._reject=s}),this.result.then(null,()=>{})}close(t){this._windowCmptRef&&(this._closed.next(t),this._resolve(t),this._removeModalElements())}_dismiss(t){this._dismissed.next(t),this._reject(t),this._removeModalElements()}dismiss(t){if(this._windowCmptRef)if(this._beforeDismiss){const i=this._beforeDismiss();!function MC(e){return e&&e.then}(i)?!1!==i&&this._dismiss(t):i.then(n=>{!1!==n&&this._dismiss(t)},()=>{})}else this._dismiss(t)}_removeModalElements(){const t=this._windowCmptRef.instance.hide(),i=this._backdropCmptRef?this._backdropCmptRef.instance.hide():ae(void 0);t.subscribe(()=>{const{nativeElement:n}=this._windowCmptRef.location;n.parentNode.removeChild(n),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),i.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:n}=this._backdropCmptRef.location;n.parentNode.removeChild(n),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),M5(t,i).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var na=function(e){return e[e.BACKDROP_CLICK=0]="BACKDROP_CLICK",e[e.ESC=1]="ESC",e}(na||{});let sY=(()=>{var e;class t{constructor(n,r,a){this._document=n,this._elRef=r,this._zone=a,this._closed$=new fe,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new ee,this.shown=new fe,this.hidden=new fe}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":wn(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(n){this.dismissEvent.emit(n)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(e2(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:n}=this._elRef,r={animation:this.animation,runningTransition:"stop"},o=M5(x2(this._zone,n,()=>n.classList.remove("show"),r),x2(this._zone,this._dialogEl.nativeElement,()=>{},r));return o.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),o}_show(){const n={animation:this.animation,runningTransition:"continue"};M5(x2(this._zone,this._elRef.nativeElement,(s,o)=>{o&&li(s),s.classList.add("show")},n),x2(this._zone,this._dialogEl.nativeElement,()=>{},n)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:n}=this._elRef;this._zone.runOutsideAngular(()=>{X1(n,"keydown").pipe(O1(this._closed$),x1(a=>a.which===Ze.Escape)).subscribe(a=>{this.keyboard?requestAnimationFrame(()=>{a.defaultPrevented||this._zone.run(()=>this.dismiss(na.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let r=!1;X1(this._dialogEl.nativeElement,"mousedown").pipe(O1(this._closed$),q1(()=>r=!1),bt(()=>X1(n,"mouseup").pipe(O1(this._closed$),e2(1))),x1(({target:a})=>n===a)).subscribe(()=>{r=!0}),X1(n,"click").pipe(O1(this._closed$)).subscribe(({target:a})=>{n===a&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!r&&this._zone.run(()=>this.dismiss(na.BACKDROP_CLICK))),r=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:n}=this._elRef;if(!n.contains(document.activeElement)){const r=n.querySelector("[ngbAutofocus]"),a=UC(n)[0];(r||a||n).focus()}}_restoreFocus(){const n=this._document.body,r=this._elWithFocus;let a;a=r&&r.focus&&n.contains(r)?r:n,this._zone.runOutsideAngular(()=>{setTimeout(()=>a.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&x2(this._zone,this._elRef.nativeElement,({classList:n})=>(n.add("modal-static"),()=>n.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return(e=t).\u0275fac=function(n){return new(n||e)(w(M1),w(Ae),w(Me))},e.\u0275cmp=oe({type:e,selectors:[["ngb-modal-window"]],viewQuery:function(n,r){if(1&n&&function C3(e,t,i){const n=xe();n.firstCreatePass&&(Jm(n,new Km(e,t,i),-1),2==(2&t)&&(n.staticViewQueries=!0)),Qm(n,k(),t)}(oW,7),2&n){let a;je(a=Ge())&&(r._dialogEl=a.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(n,r){2&n&&(W("aria-modal",!0)("aria-labelledby",r.ariaLabelledBy)("aria-describedby",r.ariaDescribedBy),vn("modal d-block"+(r.windowClass?" "+r.windowClass:"")),ze("fade",r.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},standalone:!0,features:[S2],ngContentSelectors:ec,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(n,r){1&n&&($4(),g(0,"div",0,1)(2,"div",2),W4(3),_()()),2&n&&vn("modal-dialog"+(r.size?" modal-"+r.size:"")+(r.centered?" modal-dialog-centered":"")+r.fullscreenClass+(r.scrollable?" modal-dialog-scrollable":"")+(r.modalDialogClass?" "+r.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}\n"],encapsulation:2}),t})(),oY=(()=>{var e;class t{constructor(n){this._document=n}hide(){const n=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),r=this._document.body,a=r.style,{overflow:s,paddingRight:o}=a;if(n>0){const c=parseFloat(window.getComputedStyle(r).paddingRight);a.paddingRight=`${c+n}px`}return a.overflow="hidden",()=>{n>0&&(a.paddingRight=o),a.overflow=s}}}return(e=t).\u0275fac=function(n){return new(n||e)(q(M1))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),cY=(()=>{var e;class t{constructor(n,r,a,s,o,c,l){this._applicationRef=n,this._injector=r,this._environmentInjector=a,this._document=s,this._scrollBar=o,this._rendererFactory=c,this._ngZone=l,this._activeWindowCmptHasChanged=new fe,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new ee,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const u=this._windowCmpts[this._windowCmpts.length-1];((e,t,i,n=!1)=>{e.runOutsideAngular(()=>{const r=X1(t,"focusin").pipe(O1(i),we(a=>a.target));X1(t,"keydown").pipe(O1(i),x1(a=>a.which===Ze.Tab),y5(r)).subscribe(([a,s])=>{const[o,c]=UC(t);(s===o||s===t)&&a.shiftKey&&(c.focus(),a.preventDefault()),s===c&&!a.shiftKey&&(o.focus(),a.preventDefault())}),n&&X1(t,"click").pipe(O1(i),y5(r),we(a=>a[1])).subscribe(a=>a.focus())})})(this._ngZone,u.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(u.location.nativeElement)}})}_restoreScrollBar(){const n=this._scrollBarRestoreFn;n&&(this._scrollBarRestoreFn=null,n())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(n,r,a){const s=a.container instanceof HTMLElement?a.container:z3(a.container)?this._document.querySelector(a.container):this._document.body,o=this._rendererFactory.createRenderer(null,null);if(!s)throw new Error(`The specified modal container "${a.container||"body"}" was not found in the DOM.`);this._hideScrollBar();const c=new rM,l=(n=a.injector||n).get(O2,null)||this._environmentInjector,u=this._getContentRef(n,l,r,c,a);let d=!1!==a.backdrop?this._attachBackdrop(s):void 0,p=this._attachWindowComponent(s,u.nodes),m=new aY(p,u,d,a.beforeDismiss);return this._registerModalRef(m),this._registerWindowCmpt(p),m.hidden.pipe(e2(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(o.removeClass(this._document.body,"modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),c.close=H=>{m.close(H)},c.dismiss=H=>{m.dismiss(H)},c.update=H=>{m.update(H)},m.update(a),1===this._modalRefs.length&&o.addClass(this._document.body,"modal-open"),d&&d.instance&&d.changeDetectorRef.detectChanges(),p.changeDetectorRef.detectChanges(),m}get activeInstances(){return this._activeInstances}dismissAll(n){this._modalRefs.forEach(r=>r.dismiss(n))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(n){let r=H8(nY,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(r.hostView),n.appendChild(r.location.nativeElement),r}_attachWindowComponent(n,r){let a=H8(sY,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:r});return this._applicationRef.attachView(a.hostView),n.appendChild(a.location.nativeElement),a}_getContentRef(n,r,a,s,o){return a?a instanceof o1?this._createFromTemplateRef(a,s):wn(a)?this._createFromString(a):this._createFromComponent(n,r,a,s,o):new T3([])}_createFromTemplateRef(n,r){const s=n.createEmbeddedView({$implicit:r,close(o){r.close(o)},dismiss(o){r.dismiss(o)}});return this._applicationRef.attachView(s),new T3([s.rootNodes],s)}_createFromString(n){const r=this._document.createTextNode(`${n}`);return new T3([[r]])}_createFromComponent(n,r,a,s,o){const l=H8(a,{environmentInjector:r,elementInjector:B1.create({providers:[{provide:rM,useValue:s}],parent:n})}),u=l.location.nativeElement;return o.scrollable&&u.classList.add("component-host-scrollable"),this._applicationRef.attachView(l.hostView),new T3([[u]],l.hostView,l)}_setAriaHidden(n){const r=n.parentElement;r&&n!==this._document.body&&(Array.from(r.children).forEach(a=>{a!==n&&"SCRIPT"!==a.nodeName&&(this._ariaHiddenValues.set(a,a.getAttribute("aria-hidden")),a.setAttribute("aria-hidden","true"))}),this._setAriaHidden(r))}_revertAriaHidden(){this._ariaHiddenValues.forEach((n,r)=>{n?r.setAttribute("aria-hidden",n):r.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(n){const r=()=>{const a=this._modalRefs.indexOf(n);a>-1&&(this._modalRefs.splice(a,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(n),this._activeInstances.emit(this._modalRefs),n.result.then(r,r)}_registerWindowCmpt(n){this._windowCmpts.push(n),this._activeWindowCmptHasChanged.next(),n.onDestroy(()=>{const r=this._windowCmpts.indexOf(n);r>-1&&(this._windowCmpts.splice(r,1),this._activeWindowCmptHasChanged.next())})}}return(e=t).\u0275fac=function(n){return new(n||e)(q(Jt),q(B1),q(O2),q(M1),q(oY),q(sl),q(Me))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),lY=(()=>{var e;class t{constructor(n){this._ngbConfig=n,this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(n){this._animation=n}}return(e=t).\u0275fac=function(n){return new(n||e)(q(E3))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),aM=(()=>{var e;class t{constructor(n,r,a){this._injector=n,this._modalStack=r,this._config=a}open(n,r={}){const a={...this._config,animation:this._config.animation,...r};return this._modalStack.open(this._injector,n,a)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(n){this._modalStack.dismissAll(n)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return(e=t).\u0275fac=function(n){return new(n||e)(q(B1),q(cY),q(lY))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),sM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({providers:[aM]}),t})(),lM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})(),vM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})();class _Y{constructor(t,i){this.open=t,this.close=i,i||(this.close=t)}isManual(){return"manual"===this.open||"manual"===this.close}}const CY={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},_M=e=>e>0?tC(e):t=>t;function CM(e,t,i,n,r,a,s=0,o=0){const c=function MY(e,t=CY){const i=(e||"").trim();if(0===i.length)return[];const n=i.split(/\s+/).map(a=>a.split(":")).map(a=>{let s=t[a[0]]||a;return new _Y(s[0],s[1])}),r=n.filter(a=>a.isManual());if(r.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===r.length&&n.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return n}(i);if(1===c.length&&c[0].isManual())return()=>{};const l=function yY(e,t,i,n){return new We(r=>{const a=[],s=()=>r.next(!0),o=()=>r.next(!1),c=()=>r.next(!n());return i.forEach(l=>{l.open===l.close?a.push(e.listen(t,l.open,c)):a.push(e.listen(t,l.open,s),e.listen(t,l.close,o))}),()=>{a.forEach(l=>l())}})}(e,t,c,n).pipe(function bY(e,t,i){return n=>{let r=null;const a=n.pipe(we(c=>({open:c})),x1(c=>{const l=i();return l===c.open||r&&r.open!==l?(r&&r.open!==c.open&&(r=null),!1):(r=c,!0)}),A6());return x6(a.pipe(x1(c=>c.open),_M(e)),a.pipe(x1(c=>!c.open),_M(t))).pipe(x1(c=>c===r&&(r=null,c.open!==i())),we(c=>c.open))}}(s,o,n)).subscribe(u=>u?r():a());return()=>l.unsubscribe()}let wY=(()=>{var e;class t{constructor(n){this._ngbConfig=n,this.autoClose=!0,this.placement="auto",this.popperOptions=r=>r,this.triggers="click",this.disablePopover=!1,this.openDelay=0,this.closeDelay=0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(n){this._animation=n}}return(e=t).\u0275fac=function(n){return new(n||e)(q(E3))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),HY=0,VY=(()=>{var e;class t{isTitleTemplate(){return this.title instanceof o1}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275cmp=oe({type:e,selectors:[["ngb-popover-window"]],hostAttrs:["role","tooltip",2,"position","absolute"],hostVars:5,hostBindings:function(n,r){2&n&&(H2("id",r.id),vn("popover"+(r.popoverClass?" "+r.popoverClass:"")),ze("fade",r.animation))},inputs:{animation:"animation",title:"title",id:"id",popoverClass:"popoverClass",context:"context"},standalone:!0,features:[S2],ngContentSelectors:ec,decls:4,vars:1,consts:[["data-popper-arrow","",1,"popover-arrow"],["class","popover-header",4,"ngIf"],[1,"popover-body"],[1,"popover-header"],["simpleTitle",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,r){1&n&&($4(),P(0,"div",0),I(1,PW,4,2,"h3",1),g(2,"div",2),W4(3),_()),2&n&&(C(1),b("ngIf",r.title))},dependencies:[y3,D1],encapsulation:2,changeDetection:0}),t})(),SY=(()=>{var e;class t{_isDisabled(){return!(!this.disablePopover&&(this.ngbPopover||this.popoverTitle))}constructor(n,r,a,s,o,c,l,u,d){this._elementRef=n,this._renderer=r,this._ngZone=c,this._document=l,this._changeDetector=u,this.shown=new ee,this.hidden=new ee,this._ngbPopoverWindowId="ngb-popover-"+HY++,this._windowRef=null,this.animation=o.animation,this.autoClose=o.autoClose,this.placement=o.placement,this.popperOptions=o.popperOptions,this.triggers=o.triggers,this.container=o.container,this.disablePopover=o.disablePopover,this.popoverClass=o.popoverClass,this.openDelay=o.openDelay,this.closeDelay=o.closeDelay,this._positioning=uc(),this._popupService=new iM(VY,a,s,r,this._ngZone,d)}open(n){if(!this._windowRef&&!this._isDisabled()){const{windowRef:r,transition$:a}=this._popupService.open(this.ngbPopover,n??this.popoverContext,this.animation);this._windowRef=r,this._windowRef.setInput("animation",this.animation),this._windowRef.setInput("title",this.popoverTitle),this._windowRef.setInput("context",n??this.popoverContext),this._windowRef.setInput("popoverClass",this.popoverClass),this._windowRef.setInput("id",this._ngbPopoverWindowId),this._renderer.setAttribute(this._getPositionTargetElement(),"aria-describedby",this._ngbPopoverWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._getPositionTargetElement(),targetElement:this._windowRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,baseClass:"bs-popover",updatePopperOptions:s=>this.popperOptions(function G5(e){return t=>(t.modifiers.push(w$,{name:"offset",options:{offset:()=>e}}),t)}([0,8])(s))}),Promise.resolve().then(()=>{this._positioning.update(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update())})}),lc(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),a.subscribe(()=>this.shown.emit())}}close(n=this.animation){this._windowRef&&(this._renderer.removeAttribute(this._getPositionTargetElement(),"aria-describedby"),this._popupService.close(n).subscribe(()=>{this._windowRef=null,this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=CM(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({ngbPopover:n,popoverTitle:r,disablePopover:a,popoverClass:s}){s&&this.isOpen()&&(this._windowRef.instance.popoverClass=s.currentValue),(n||r||a)&&this._isDisabled()&&this.close()}ngOnDestroy(){this.close(!1),this._unregisterListenersFn?.()}_getPositionTargetElement(){return(wn(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget)||this._elementRef.nativeElement}}return(e=t).\u0275fac=function(n){return new(n||e)(w(Ae),w(c2),w(B1),w(F2),w(wY),w(Me),w(M1),w(J2),w(Jt))},e.\u0275dir=j({type:e,selectors:[["","ngbPopover",""]],inputs:{animation:"animation",autoClose:"autoClose",ngbPopover:"ngbPopover",popoverTitle:"popoverTitle",placement:"placement",popperOptions:"popperOptions",triggers:"triggers",positionTarget:"positionTarget",container:"container",disablePopover:"disablePopover",popoverClass:"popoverClass",popoverContext:"popoverContext",openDelay:"openDelay",closeDelay:"closeDelay"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbPopover"],standalone:!0,features:[v1]}),t})(),MM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})(),yM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})(),bM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})(),wM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})(),HM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})(),VM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})(),AY=(()=>{var e;class t{constructor(n){this._ngbConfig=n,this.autoClose=!0,this.placement="auto",this.popperOptions=r=>r,this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(n){this._animation=n}}return(e=t).\u0275fac=function(n){return new(n||e)(q(E3))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),LY=0,NY=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275cmp=oe({type:e,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip",2,"position","absolute"],hostVars:5,hostBindings:function(n,r){2&n&&(H2("id",r.id),vn("tooltip"+(r.tooltipClass?" "+r.tooltipClass:"")),ze("fade",r.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},standalone:!0,features:[S2],ngContentSelectors:ec,decls:3,vars:0,consts:[["data-popper-arrow","",1,"tooltip-arrow"],[1,"tooltip-inner"]],template:function(n,r){1&n&&($4(),P(0,"div",0),g(1,"div",1),W4(2),_())},encapsulation:2,changeDetection:0}),t})(),TY=(()=>{var e;class t{constructor(n,r,a,s,o,c,l,u,d){this._elementRef=n,this._renderer=r,this._ngZone=c,this._document=l,this._changeDetector=u,this.shown=new ee,this.hidden=new ee,this._ngbTooltipWindowId="ngb-tooltip-"+LY++,this._windowRef=null,this.animation=o.animation,this.autoClose=o.autoClose,this.placement=o.placement,this.popperOptions=o.popperOptions,this.triggers=o.triggers,this.container=o.container,this.disableTooltip=o.disableTooltip,this.tooltipClass=o.tooltipClass,this.openDelay=o.openDelay,this.closeDelay=o.closeDelay,this._popupService=new iM(NY,a,s,r,this._ngZone,d),this._positioning=uc()}set ngbTooltip(n){this._ngbTooltip=n,!n&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(n){if(!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){const{windowRef:r,transition$:a}=this._popupService.open(this._ngbTooltip,n??this.tooltipContext,this.animation);this._windowRef=r,this._windowRef.setInput("animation",this.animation),this._windowRef.setInput("tooltipClass",this.tooltipClass),this._windowRef.setInput("id",this._ngbTooltipWindowId),this._renderer.setAttribute(this._getPositionTargetElement(),"aria-describedby",this._ngbTooltipWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._getPositionTargetElement(),targetElement:this._windowRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,baseClass:"bs-tooltip",updatePopperOptions:s=>this.popperOptions(s)}),Promise.resolve().then(()=>{this._positioning.update(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update())})}),lc(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),a.subscribe(()=>this.shown.emit())}}close(n=this.animation){null!=this._windowRef&&(this._renderer.removeAttribute(this._getPositionTargetElement(),"aria-describedby"),this._popupService.close(n).subscribe(()=>{this._windowRef=null,this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=CM(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({tooltipClass:n}){n&&this.isOpen()&&(this._windowRef.instance.tooltipClass=n.currentValue)}ngOnDestroy(){this.close(!1),this._unregisterListenersFn?.()}_getPositionTargetElement(){return(wn(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget)||this._elementRef.nativeElement}}return(e=t).\u0275fac=function(n){return new(n||e)(w(Ae),w(c2),w(B1),w(F2),w(AY),w(Me),w(M1),w(J2),w(Jt))},e.\u0275dir=j({type:e,selectors:[["","ngbTooltip",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",popperOptions:"popperOptions",triggers:"triggers",positionTarget:"positionTarget",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",tooltipContext:"tooltipContext",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],standalone:!0,features:[v1]}),t})(),SM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})();new te("live announcer delay",{providedIn:"root",factory:function IY(){return 100}});let DM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})(),zM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})();const OY=[EC,AC,TC,IC,XC,nM,sM,lM,zM,vM,MM,yM,bM,wM,HM,VM,SM,DM];let kY=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({imports:[OY,EC,AC,TC,IC,XC,nM,sM,lM,zM,vM,MM,yM,bM,wM,HM,VM,SM,DM]}),t})();function EM(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),i.push.apply(i,n)}return i}function X(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?EM(Object(i),!0).forEach(function(n){K1(e,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):EM(Object(i)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))})}return e}function vc(e){return(vc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function xM(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function K1(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function K5(e,t){return function jY(e){if(Array.isArray(e))return e}(e)||function $Y(e,t){var i=null==e?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var s,o,n=[],r=!0,a=!1;try{for(i=i.call(e);!(r=(s=i.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(c){a=!0,o=c}finally{try{!r&&null!=i.return&&i.return()}finally{if(a)throw o}}return n}}(e,t)||AM(e,t)||function qY(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function aa(e){return function UY(e){if(Array.isArray(e))return Z5(e)}(e)||function GY(e){if(typeof Symbol<"u"&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||AM(e)||function WY(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function AM(e,t){if(e){if("string"==typeof e)return Z5(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);if("Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Z5(e,t)}}function Z5(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}var LM=function(){},Q5={},NM={},TM=null,IM={mark:LM,measure:LM};try{typeof window<"u"&&(Q5=window),typeof document<"u"&&(NM=document),typeof MutationObserver<"u"&&(TM=MutationObserver),typeof performance<"u"&&(IM=performance)}catch{}var Mc,yc,bc,wc,Hc,RM=(Q5.navigator||{}).userAgent,OM=void 0===RM?"":RM,Jn=Q5,c1=NM,kM=TM,Cc=IM,Hn=!!c1.documentElement&&!!c1.head&&"function"==typeof c1.addEventListener&&"function"==typeof c1.createElement,PM=~OM.indexOf("MSIE")||~OM.indexOf("Trident/"),Vn="___FONT_AWESOME___",FM="fa",BM="svg-inline--fa",I3="data-fa-i2svg",X5="data-fa-pseudo-element",KY="data-fa-pseudo-element-pending",e7="data-prefix",t7="data-icon",UM="fontawesome-i2svg",ZY="async",QY=["HTML","HEAD","STYLE","SCRIPT"],jM=function(){try{return!0}catch{return!1}}(),l1="classic",A1="sharp",n7=[l1,A1];function sa(e){return new Proxy(e,{get:function(i,n){return n in i?i[n]:i[l1]}})}var oa=sa((K1(Mc={},l1,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit"}),K1(Mc,A1,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light"}),Mc)),ca=sa((K1(yc={},l1,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),K1(yc,A1,{solid:"fass",regular:"fasr",light:"fasl"}),yc)),la=sa((K1(bc={},l1,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),K1(bc,A1,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light"}),bc)),JY=sa((K1(wc={},l1,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),K1(wc,A1,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl"}),wc)),XY=/fa(s|r|l|t|d|b|k|ss|sr|sl)?[\-\ ]/,GM="fa-layers-text",eK=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,tK=sa((K1(Hc={},l1,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),K1(Hc,A1,{900:"fass",400:"fasr",300:"fasl"}),Hc)),$M=[1,2,3,4,5,6,7,8,9,10],nK=$M.concat([11,12,13,14,15,16,17,18,19,20]),iK=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],R3={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},ua=new Set;Object.keys(ca[l1]).map(ua.add.bind(ua)),Object.keys(ca[A1]).map(ua.add.bind(ua));var rK=[].concat(n7,aa(ua),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",R3.GROUP,R3.SWAP_OPACITY,R3.PRIMARY,R3.SECONDARY]).concat($M.map(function(e){return"".concat(e,"x")})).concat(nK.map(function(e){return"w-".concat(e)})),fa=Jn.FontAwesomeConfig||{};c1&&"function"==typeof c1.querySelector&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(function(e){var t=K5(e,2),n=t[1],r=function sK(e){return""===e||"false"!==e&&("true"===e||e)}(function aK(e){var t=c1.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(t[0]));null!=r&&(fa[n]=r)});var WM={styleDefault:"solid",familyDefault:"classic",cssPrefix:FM,replacementClass:BM,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};fa.familyPrefix&&(fa.cssPrefix=fa.familyPrefix);var hi=X(X({},WM),fa);hi.autoReplaceSvg||(hi.observeMutations=!1);var ne={};Object.keys(WM).forEach(function(e){Object.defineProperty(ne,e,{enumerable:!0,set:function(i){hi[e]=i,da.forEach(function(n){return n(ne)})},get:function(){return hi[e]}})}),Object.defineProperty(ne,"familyPrefix",{enumerable:!0,set:function(t){hi.cssPrefix=t,da.forEach(function(i){return i(ne)})},get:function(){return hi.cssPrefix}}),Jn.FontAwesomeConfig=ne;var da=[],nn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1},uK="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function ha(){for(var e=12,t="";e-- >0;)t+=uK[62*Math.random()|0];return t}function pi(e){for(var t=[],i=(e||[]).length>>>0;i--;)t[i]=e[i];return t}function i7(e){return e.classList?pi(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function qM(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Vc(e){return Object.keys(e||{}).reduce(function(t,i){return t+"".concat(i,": ").concat(e[i].trim(),";")},"")}function r7(e){return e.size!==nn.size||e.x!==nn.x||e.y!==nn.y||e.rotate!==nn.rotate||e.flipX||e.flipY}var pK=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';function YM(){var e=FM,t=BM,i=ne.cssPrefix,n=ne.replacementClass,r=pK;if(i!==e||n!==t){var a=new RegExp("\\.".concat(e,"\\-"),"g"),s=new RegExp("\\--".concat(e,"\\-"),"g"),o=new RegExp("\\.".concat(t),"g");r=r.replace(a,".".concat(i,"-")).replace(s,"--".concat(i,"-")).replace(o,".".concat(n))}return r}var KM=!1;function a7(){ne.autoAddCss&&!KM&&(function lK(e){if(e&&Hn){var t=c1.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var i=c1.head.childNodes,n=null,r=i.length-1;r>-1;r--){var a=i[r],s=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(n=a)}c1.head.insertBefore(t,n)}}(YM()),KM=!0)}var mK={mixout:function(){return{dom:{css:YM,insertCss:a7}}},hooks:function(){return{beforeDOMElementCreation:function(){a7()},beforeI2svg:function(){a7()}}}},Sn=Jn||{};Sn[Vn]||(Sn[Vn]={}),Sn[Vn].styles||(Sn[Vn].styles={}),Sn[Vn].hooks||(Sn[Vn].hooks={}),Sn[Vn].shims||(Sn[Vn].shims=[]);var It=Sn[Vn],ZM=[],Sc=!1;function pa(e){var t=e.tag,i=e.attributes,n=void 0===i?{}:i,r=e.children,a=void 0===r?[]:r;return"string"==typeof e?qM(e):"<".concat(t," ").concat(function fK(e){return Object.keys(e||{}).reduce(function(t,i){return t+"".concat(i,'="').concat(qM(e[i]),'" ')},"").trim()}(n),">").concat(a.map(pa).join(""),"</").concat(t,">")}function QM(e,t,i){if(e&&e[t]&&e[t][i])return{prefix:t,iconName:i,icon:e[t][i]}}Hn&&((Sc=(c1.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(c1.readyState))||c1.addEventListener("DOMContentLoaded",function e(){c1.removeEventListener("DOMContentLoaded",e),Sc=1,ZM.map(function(t){return t()})}));var s7=function(t,i,n,r){var c,l,u,a=Object.keys(t),s=a.length,o=void 0!==r?function(t,i){return function(n,r,a,s){return t.call(i,n,r,a,s)}}(i,r):i;for(void 0===n?(c=1,u=t[a[0]]):(c=0,u=n);c<s;c++)u=o(u,t[l=a[c]],l,t);return u};function o7(e){var t=function CK(e){for(var t=[],i=0,n=e.length;i<n;){var r=e.charCodeAt(i++);if(r>=55296&&r<=56319&&i<n){var a=e.charCodeAt(i++);56320==(64512&a)?t.push(((1023&r)<<10)+(1023&a)+65536):(t.push(r),i--)}else t.push(r)}return t}(e);return 1===t.length?t[0].toString(16):null}function JM(e){return Object.keys(e).reduce(function(t,i){var n=e[i];return n.icon?t[n.iconName]=n.icon:t[i]=n,t},{})}function c7(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,r=void 0!==n&&n,a=JM(t);"function"!=typeof It.hooks.addPack||r?It.styles[e]=X(X({},It.styles[e]||{}),a):It.hooks.addPack(e,JM(t)),"fas"===e&&c7("fa",t)}var Dc,zc,Ec,mi=It.styles,yK=It.shims,bK=(K1(Dc={},l1,Object.values(la[l1])),K1(Dc,A1,Object.values(la[A1])),Dc),l7=null,XM={},ey={},ty={},ny={},iy={},wK=(K1(zc={},l1,Object.keys(oa[l1])),K1(zc,A1,Object.keys(oa[A1])),zc);var ry=function(){var t=function(a){return s7(mi,function(s,o,c){return s[c]=s7(o,a,{}),s},{})};XM=t(function(r,a,s){return a[3]&&(r[a[3]]=s),a[2]&&a[2].filter(function(c){return"number"==typeof c}).forEach(function(c){r[c.toString(16)]=s}),r}),ey=t(function(r,a,s){return r[s]=s,a[2]&&a[2].filter(function(c){return"string"==typeof c}).forEach(function(c){r[c]=s}),r}),iy=t(function(r,a,s){var o=a[2];return r[s]=s,o.forEach(function(c){r[c]=s}),r});var i="far"in mi||ne.autoFetchSvg,n=s7(yK,function(r,a){var s=a[0],o=a[1],c=a[2];return"far"===o&&!i&&(o="fas"),"string"==typeof s&&(r.names[s]={prefix:o,iconName:c}),"number"==typeof s&&(r.unicodes[s.toString(16)]={prefix:o,iconName:c}),r},{names:{},unicodes:{}});ty=n.names,ny=n.unicodes,l7=xc(ne.styleDefault,{family:ne.familyDefault})};function u7(e,t){return(XM[e]||{})[t]}function O3(e,t){return(iy[e]||{})[t]}function ay(e){return ty[e]||{prefix:null,iconName:null}}function e3(){return l7}(function cK(e){da.push(e)})(function(e){l7=xc(e.styleDefault,{family:ne.familyDefault})}),ry();var f7=function(){return{prefix:null,iconName:null,rest:[]}};function xc(e){var i=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).family,n=void 0===i?l1:i;return ca[n][e]||ca[n][oa[n][e]]||(e in It.styles?e:null)||null}var sy=(K1(Ec={},l1,Object.keys(la[l1])),K1(Ec,A1,Object.keys(la[A1])),Ec);function Ac(e){var t,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).skipLookups,r=void 0!==n&&n,a=(K1(t={},l1,"".concat(ne.cssPrefix,"-").concat(l1)),K1(t,A1,"".concat(ne.cssPrefix,"-").concat(A1)),t),s=null,o=l1;(e.includes(a[l1])||e.some(function(l){return sy[l1].includes(l)}))&&(o=l1),(e.includes(a[A1])||e.some(function(l){return sy[A1].includes(l)}))&&(o=A1);var c=e.reduce(function(l,u){var d=function VK(e,t){var i=t.split("-"),n=i[0],r=i.slice(1).join("-");return n!==e||""===r||function HK(e){return~rK.indexOf(e)}(r)?null:r}(ne.cssPrefix,u);if(mi[u]?(u=bK[o].includes(u)?JY[o][u]:u,s=u,l.prefix=u):wK[o].indexOf(u)>-1?(s=u,l.prefix=xc(u,{family:o})):d?l.iconName=d:u!==ne.replacementClass&&u!==a[l1]&&u!==a[A1]&&l.rest.push(u),!r&&l.prefix&&l.iconName){var p="fa"===s?ay(l.iconName):{},m=O3(l.prefix,l.iconName);p.prefix&&(s=null),l.iconName=p.iconName||m||l.iconName,l.prefix=p.prefix||l.prefix,"far"===l.prefix&&!mi.far&&mi.fas&&!ne.autoFetchSvg&&(l.prefix="fas")}return l},f7());return(e.includes("fa-brands")||e.includes("fab"))&&(c.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(c.prefix="fad"),!c.prefix&&o===A1&&(mi.fass||ne.autoFetchSvg)&&(c.prefix="fass",c.iconName=O3(c.prefix,c.iconName)||c.iconName),("fa"===c.prefix||"fa"===s)&&(c.prefix=e3()||"fas"),c}var zK=function(){function e(){(function PY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.definitions={}}return function FY(e,t,i){t&&xM(e.prototype,t),i&&xM(e,i),Object.defineProperty(e,"prototype",{writable:!1})}(e,[{key:"add",value:function(){for(var i=this,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];var s=r.reduce(this._pullDefinitions,{});Object.keys(s).forEach(function(o){i.definitions[o]=X(X({},i.definitions[o]||{}),s[o]),c7(o,s[o]);var c=la[l1][o];c&&c7(c,s[o]),ry()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(i,n){var r=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(r).map(function(a){var s=r[a],o=s.prefix,c=s.iconName,l=s.icon,u=l[2];i[o]||(i[o]={}),u.length>0&&u.forEach(function(d){"string"==typeof d&&(i[o][d]=l)}),i[o][c]=l}),i}}]),e}(),oy=[],gi={},vi={},EK=Object.keys(vi);function d7(e,t){for(var i=arguments.length,n=new Array(i>2?i-2:0),r=2;r<i;r++)n[r-2]=arguments[r];return(gi[e]||[]).forEach(function(s){t=s.apply(null,[t].concat(n))}),t}function k3(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];(gi[e]||[]).forEach(function(a){a.apply(null,i)})}function Dn(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return vi[e]?vi[e].apply(null,t):void 0}function h7(e){"fa"===e.prefix&&(e.prefix="fas");var t=e.iconName,i=e.prefix||e3();if(t)return t=O3(i,t)||t,QM(cy.definitions,i,t)||QM(It.styles,i,t)}var cy=new zK,LK={i2svg:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Hn?(k3("beforeI2svg",t),Dn("pseudoElements2svg",t),Dn("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=t.autoReplaceSvgRoot;!1===ne.autoReplaceSvg&&(ne.autoReplaceSvg=!0),ne.observeMutations=!0,function vK(e){Hn&&(Sc?setTimeout(e,0):ZM.push(e))}(function(){TK({autoReplaceSvgRoot:i}),k3("watch",t)})}},it={noAuto:function(){ne.autoReplaceSvg=!1,ne.observeMutations=!1,k3("noAuto")},config:ne,dom:LK,parse:{icon:function(t){if(null===t)return null;if("object"===vc(t)&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:O3(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&2===t.length){var i=0===t[1].indexOf("fa-")?t[1].slice(3):t[1],n=xc(t[0]);return{prefix:n,iconName:O3(n,i)||i}}if("string"==typeof t&&(t.indexOf("".concat(ne.cssPrefix,"-"))>-1||t.match(XY))){var r=Ac(t.split(" "),{skipLookups:!0});return{prefix:r.prefix||e3(),iconName:O3(r.prefix,r.iconName)||r.iconName}}if("string"==typeof t){var a=e3();return{prefix:a,iconName:O3(a,t)||t}}}},library:cy,findIconDefinition:h7,toHtml:pa},TK=function(){var i=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).autoReplaceSvgRoot,n=void 0===i?c1:i;(Object.keys(It.styles).length>0||ne.autoFetchSvg)&&Hn&&ne.autoReplaceSvg&&it.dom.i2svg({node:n})};function Lc(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(n){return pa(n)})}}),Object.defineProperty(e,"node",{get:function(){if(Hn){var n=c1.createElement("div");return n.innerHTML=e.html,n.children}}}),e}function p7(e){var t=e.icons,i=t.main,n=t.mask,r=e.prefix,a=e.iconName,s=e.transform,o=e.symbol,c=e.title,l=e.maskId,u=e.titleId,d=e.extra,p=e.watchable,m=void 0!==p&&p,H=n.found?n:i,S=H.width,E=H.height,N="fak"===r,z=[ne.replacementClass,a?"".concat(ne.cssPrefix,"-").concat(a):""].filter(function(ke){return-1===d.classes.indexOf(ke)}).filter(function(ke){return""!==ke||!!ke}).concat(d.classes).join(" "),B={children:[],attributes:X(X({},d.attributes),{},{"data-prefix":r,"data-icon":a,class:z,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(S," ").concat(E)})},U=N&&!~d.classes.indexOf("fa-fw")?{width:"".concat(S/E*16*.0625,"em")}:{};m&&(B.attributes[I3]=""),c&&(B.children.push({tag:"title",attributes:{id:B.attributes["aria-labelledby"]||"title-".concat(u||ha())},children:[c]}),delete B.attributes.title);var G=X(X({},B),{},{prefix:r,iconName:a,main:i,mask:n,maskId:l,transform:s,symbol:o,styles:X(X({},U),d.styles)}),ie=n.found&&i.found?Dn("generateAbstractMask",G)||{children:[],attributes:{}}:Dn("generateAbstractIcon",G)||{children:[],attributes:{}},be=ie.attributes;return G.children=ie.children,G.attributes=be,o?function RK(e){var i=e.iconName,n=e.children,r=e.attributes,a=e.symbol,s=!0===a?"".concat(e.prefix,"-").concat(ne.cssPrefix,"-").concat(i):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:X(X({},r),{},{id:s}),children:n}]}]}(G):function IK(e){var t=e.children,i=e.main,n=e.mask,r=e.attributes,a=e.styles,s=e.transform;if(r7(s)&&i.found&&!n.found){var l={x:i.width/i.height/2,y:.5};r.style=Vc(X(X({},a),{},{"transform-origin":"".concat(l.x+s.x/16,"em ").concat(l.y+s.y/16,"em")}))}return[{tag:"svg",attributes:r,children:t}]}(G)}function ly(e){var t=e.content,i=e.width,n=e.height,r=e.transform,a=e.title,s=e.extra,o=e.watchable,c=void 0!==o&&o,l=X(X(X({},s.attributes),a?{title:a}:{}),{},{class:s.classes.join(" ")});c&&(l[I3]="");var u=X({},s.styles);r7(r)&&(u.transform=function hK(e){var t=e.transform,i=e.width,r=e.height,a=void 0===r?16:r,s=e.startCentered,o=void 0!==s&&s,c="";return c+=o&&PM?"translate(".concat(t.x/16-(void 0===i?16:i)/2,"em, ").concat(t.y/16-a/2,"em) "):o?"translate(calc(-50% + ".concat(t.x/16,"em), calc(-50% + ").concat(t.y/16,"em)) "):"translate(".concat(t.x/16,"em, ").concat(t.y/16,"em) "),(c+="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "))+"rotate(".concat(t.rotate,"deg) ")}({transform:r,startCentered:!0,width:i,height:n}),u["-webkit-transform"]=u.transform);var d=Vc(u);d.length>0&&(l.style=d);var p=[];return p.push({tag:"span",attributes:l,children:[t]}),a&&p.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),p}var m7=It.styles;function g7(e){var t=e[0],i=e[1],a=K5(e.slice(4),1)[0];return{found:!0,width:t,height:i,icon:Array.isArray(a)?{tag:"g",attributes:{class:"".concat(ne.cssPrefix,"-").concat(R3.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ne.cssPrefix,"-").concat(R3.SECONDARY),fill:"currentColor",d:a[0]}},{tag:"path",attributes:{class:"".concat(ne.cssPrefix,"-").concat(R3.PRIMARY),fill:"currentColor",d:a[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:a}}}}var kK={found:!1,width:512,height:512};function v7(e,t){var i=t;return"fa"===t&&null!==ne.styleDefault&&(t=e3()),new Promise(function(n,r){if(Dn("missingIconAbstract"),"fa"===i){var s=ay(e)||{};e=s.iconName||e,t=s.prefix||t}if(e&&t&&m7[t]&&m7[t][e])return n(g7(m7[t][e]));(function PK(e,t){!jM&&!ne.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))})(e,t),n(X(X({},kK),{},{icon:ne.showMissingIcons&&e&&Dn("missingIconAbstract")||{}}))})}var uy=function(){},_7=ne.measurePerformance&&Cc&&Cc.mark&&Cc.measure?Cc:{mark:uy,measure:uy},ma='FA "6.4.2"',fy=function(t){_7.mark("".concat(ma," ").concat(t," ends")),_7.measure("".concat(ma," ").concat(t),"".concat(ma," ").concat(t," begins"),"".concat(ma," ").concat(t," ends"))},C7={begin:function(t){return _7.mark("".concat(ma," ").concat(t," begins")),function(){return fy(t)}},end:fy},Nc=function(){};function dy(e){return"string"==typeof(e.getAttribute?e.getAttribute(I3):null)}function GK(e){return c1.createElementNS("http://www.w3.org/2000/svg",e)}function $K(e){return c1.createElement(e)}function hy(e){var i=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).ceFn,n=void 0===i?"svg"===e.tag?GK:$K:i;if("string"==typeof e)return c1.createTextNode(e);var r=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(s){r.setAttribute(s,e.attributes[s])}),(e.children||[]).forEach(function(s){r.appendChild(hy(s,{ceFn:n}))}),r}var Tc={replace:function(t){var i=t[0];if(i.parentNode)if(t[1].forEach(function(r){i.parentNode.insertBefore(hy(r),i)}),null===i.getAttribute(I3)&&ne.keepOriginalSource){var n=c1.createComment(function WK(e){var t=" ".concat(e.outerHTML," ");return"".concat(t,"Font Awesome fontawesome.com ")}(i));i.parentNode.replaceChild(n,i)}else i.remove()},nest:function(t){var i=t[0],n=t[1];if(~i7(i).indexOf(ne.replacementClass))return Tc.replace(t);var r=new RegExp("".concat(ne.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var a=n[0].attributes.class.split(" ").reduce(function(o,c){return c===ne.replacementClass||c.match(r)?o.toSvg.push(c):o.toNode.push(c),o},{toNode:[],toSvg:[]});n[0].attributes.class=a.toSvg.join(" "),0===a.toNode.length?i.removeAttribute("class"):i.setAttribute("class",a.toNode.join(" "))}var s=n.map(function(o){return pa(o)}).join("\n");i.setAttribute(I3,""),i.innerHTML=s}};function py(e){e()}function my(e,t){var i="function"==typeof t?t:Nc;if(0===e.length)i();else{var n=py;ne.mutateApproach===ZY&&(n=Jn.requestAnimationFrame||py),n(function(){var r=function jK(){return!0===ne.autoReplaceSvg?Tc.replace:Tc[ne.autoReplaceSvg]||Tc.replace}(),a=C7.begin("mutate");e.map(r),a(),i()})}}var M7=!1;function gy(){M7=!0}function y7(){M7=!1}var Ic=null;function vy(e){if(kM&&ne.observeMutations){var t=e.treeCallback,i=void 0===t?Nc:t,n=e.nodeCallback,r=void 0===n?Nc:n,a=e.pseudoElementsCallback,s=void 0===a?Nc:a,o=e.observeMutationsRoot,c=void 0===o?c1:o;Ic=new kM(function(l){if(!M7){var u=e3();pi(l).forEach(function(d){if("childList"===d.type&&d.addedNodes.length>0&&!dy(d.addedNodes[0])&&(ne.searchPseudoElements&&s(d.target),i(d.target)),"attributes"===d.type&&d.target.parentNode&&ne.searchPseudoElements&&s(d.target.parentNode),"attributes"===d.type&&dy(d.target)&&~iK.indexOf(d.attributeName))if("class"===d.attributeName&&function BK(e){var t=e.getAttribute?e.getAttribute(e7):null,i=e.getAttribute?e.getAttribute(t7):null;return t&&i}(d.target)){var p=Ac(i7(d.target)),H=p.iconName;d.target.setAttribute(e7,p.prefix||u),H&&d.target.setAttribute(t7,H)}else(function UK(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ne.replacementClass)})(d.target)&&r(d.target)})}}),Hn&&Ic.observe(c,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function _y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},i=function KK(e){var t=e.getAttribute("data-prefix"),i=e.getAttribute("data-icon"),n=void 0!==e.innerText?e.innerText.trim():"",r=Ac(i7(e));return r.prefix||(r.prefix=e3()),t&&i&&(r.prefix=t,r.iconName=i),r.iconName&&r.prefix||(r.prefix&&n.length>0&&(r.iconName=function SK(e,t){return(ey[e]||{})[t]}(r.prefix,e.innerText)||u7(r.prefix,o7(e.innerText))),!r.iconName&&ne.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(r.iconName=e.firstChild.data)),r}(e),n=i.iconName,r=i.prefix,a=i.rest,s=function ZK(e){var t=pi(e.attributes).reduce(function(r,a){return"class"!==r.name&&"style"!==r.name&&(r[a.name]=a.value),r},{}),i=e.getAttribute("title"),n=e.getAttribute("data-fa-title-id");return ne.autoA11y&&(i?t["aria-labelledby"]="".concat(ne.replacementClass,"-title-").concat(n||ha()):(t["aria-hidden"]="true",t.focusable="false")),t}(e),o=d7("parseNodeAttributes",{},e),c=t.styleParser?function YK(e){var t=e.getAttribute("style"),i=[];return t&&(i=t.split(";").reduce(function(n,r){var a=r.split(":"),s=a[0],o=a.slice(1);return s&&o.length>0&&(n[s]=o.join(":").trim()),n},{})),i}(e):[];return X({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:nn,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:c,attributes:s}},o)}var JK=It.styles;function Cy(e){var t="nest"===ne.autoReplaceSvg?_y(e,{styleParser:!1}):_y(e);return~t.extra.classes.indexOf(GM)?Dn("generateLayersText",e,t):Dn("generateSvgReplacementMutation",e,t)}var t3=new Set;function My(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Hn)return Promise.resolve();var i=c1.documentElement.classList,n=function(d){return i.add("".concat(UM,"-").concat(d))},r=function(d){return i.remove("".concat(UM,"-").concat(d))},a=ne.autoFetchSvg?t3:n7.map(function(u){return"fa-".concat(u)}).concat(Object.keys(JK));a.includes("fa")||a.push("fa");var s=[".".concat(GM,":not([").concat(I3,"])")].concat(a.map(function(u){return".".concat(u,":not([").concat(I3,"])")})).join(", ");if(0===s.length)return Promise.resolve();var o=[];try{o=pi(e.querySelectorAll(s))}catch{}if(!(o.length>0))return Promise.resolve();n("pending"),r("complete");var c=C7.begin("onTree"),l=o.reduce(function(u,d){try{var p=Cy(d);p&&u.push(p)}catch(m){jM||"MissingIcon"===m.name&&console.error(m)}return u},[]);return new Promise(function(u,d){Promise.all(l).then(function(p){my(p,function(){n("active"),n("complete"),r("pending"),"function"==typeof t&&t(),c(),u()})}).catch(function(p){c(),d(p)})})}function XK(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Cy(e).then(function(i){i&&my([i],t)})}n7.map(function(e){t3.add("fa-".concat(e))}),Object.keys(oa[l1]).map(t3.add.bind(t3)),Object.keys(oa[A1]).map(t3.add.bind(t3)),t3=aa(t3);var tZ=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i.transform,r=void 0===n?nn:n,a=i.symbol,s=void 0!==a&&a,o=i.mask,c=void 0===o?null:o,l=i.maskId,u=void 0===l?null:l,d=i.title,p=void 0===d?null:d,m=i.titleId,H=void 0===m?null:m,S=i.classes,E=void 0===S?[]:S,N=i.attributes,z=void 0===N?{}:N,B=i.styles,U=void 0===B?{}:B;if(t){var G=t.prefix,ie=t.iconName,ve=t.icon;return Lc(X({type:"icon"},t),function(){return k3("beforeDOMElementCreation",{iconDefinition:t,params:i}),ne.autoA11y&&(p?z["aria-labelledby"]="".concat(ne.replacementClass,"-title-").concat(H||ha()):(z["aria-hidden"]="true",z.focusable="false")),p7({icons:{main:g7(ve),mask:c?g7(c.icon):{found:!1,width:null,height:null,icon:{}}},prefix:G,iconName:ie,transform:X(X({},nn),r),symbol:s,title:p,maskId:u,titleId:H,extra:{attributes:z,styles:U,classes:E}})})}},nZ={mixout:function(){return{icon:(e=tZ,function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(t||{}).icon?t:h7(t||{}),r=i.mask;return r&&(r=(r||{}).icon?r:h7(r||{})),e(n,X(X({},i),{},{mask:r}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(i){return i.treeCallback=My,i.nodeCallback=XK,i}}},provides:function(t){t.i2svg=function(i){var n=i.node,a=i.callback;return My(void 0===n?c1:n,void 0===a?function(){}:a)},t.generateSvgReplacementMutation=function(i,n){var r=n.iconName,a=n.title,s=n.titleId,o=n.prefix,c=n.transform,l=n.symbol,u=n.mask,d=n.maskId,p=n.extra;return new Promise(function(m,H){Promise.all([v7(r,o),u.iconName?v7(u.iconName,u.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(S){var E=K5(S,2);m([i,p7({icons:{main:E[0],mask:E[1]},prefix:o,iconName:r,transform:c,symbol:l,maskId:d,title:a,titleId:s,extra:p,watchable:!0})])}).catch(H)})},t.generateAbstractIcon=function(i){var l,n=i.children,r=i.attributes,a=i.main,s=i.transform,c=Vc(i.styles);return c.length>0&&(r.style=c),r7(s)&&(l=Dn("generateAbstractTransformGrouping",{main:a,transform:s,containerWidth:a.width,iconWidth:a.width})),n.push(l||a.icon),{children:n,attributes:r}}}},iZ={mixout:function(){return{layer:function(i){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.classes,a=void 0===r?[]:r;return Lc({type:"layer"},function(){k3("beforeDOMElementCreation",{assembler:i,params:n});var s=[];return i(function(o){Array.isArray(o)?o.map(function(c){s=s.concat(c.abstract)}):s=s.concat(o.abstract)}),[{tag:"span",attributes:{class:["".concat(ne.cssPrefix,"-layers")].concat(aa(a)).join(" ")},children:s}]})}}}},rZ={mixout:function(){return{counter:function(i){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.title,a=void 0===r?null:r,s=n.classes,o=void 0===s?[]:s,c=n.attributes,l=void 0===c?{}:c,u=n.styles,d=void 0===u?{}:u;return Lc({type:"counter",content:i},function(){return k3("beforeDOMElementCreation",{content:i,params:n}),function OK(e){var t=e.content,i=e.title,n=e.extra,r=X(X(X({},n.attributes),i?{title:i}:{}),{},{class:n.classes.join(" ")}),a=Vc(n.styles);a.length>0&&(r.style=a);var s=[];return s.push({tag:"span",attributes:r,children:[t]}),i&&s.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),s}({content:i.toString(),title:a,extra:{attributes:l,styles:d,classes:["".concat(ne.cssPrefix,"-layers-counter")].concat(aa(o))}})})}}}},aZ={mixout:function(){return{text:function(i){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.transform,a=void 0===r?nn:r,s=n.title,o=void 0===s?null:s,c=n.classes,l=void 0===c?[]:c,u=n.attributes,d=void 0===u?{}:u,p=n.styles,m=void 0===p?{}:p;return Lc({type:"text",content:i},function(){return k3("beforeDOMElementCreation",{content:i,params:n}),ly({content:i,transform:X(X({},nn),a),title:o,extra:{attributes:d,styles:m,classes:["".concat(ne.cssPrefix,"-layers-text")].concat(aa(l))}})})}}},provides:function(t){t.generateLayersText=function(i,n){var r=n.title,a=n.transform,s=n.extra,o=null,c=null;if(PM){var l=parseInt(getComputedStyle(i).fontSize,10),u=i.getBoundingClientRect();o=u.width/l,c=u.height/l}return ne.autoA11y&&!r&&(s.attributes["aria-hidden"]="true"),Promise.resolve([i,ly({content:i.innerHTML,width:o,height:c,transform:a,title:r,extra:s,watchable:!0})])}}},sZ=new RegExp('"',"ug"),yy=[1105920,1112319];function by(e,t){var i="".concat(KY).concat(t.replace(":","-"));return new Promise(function(n,r){if(null!==e.getAttribute(i))return n();var s=pi(e.children).filter(function(ve){return ve.getAttribute(X5)===t})[0],o=Jn.getComputedStyle(e,t),c=o.getPropertyValue("font-family").match(eK),l=o.getPropertyValue("font-weight"),u=o.getPropertyValue("content");if(s&&!c)return e.removeChild(s),n();if(c&&"none"!==u&&""!==u){var d=o.getPropertyValue("content"),p=~["Sharp"].indexOf(c[2])?A1:l1,m=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(c[2])?ca[p][c[2].toLowerCase()]:tK[p][l],H=function oZ(e){var t=e.replace(sZ,""),i=function MK(e,t){var r,i=e.length,n=e.charCodeAt(t);return n>=55296&&n<=56319&&i>t+1&&(r=e.charCodeAt(t+1))>=56320&&r<=57343?1024*(n-55296)+r-56320+65536:n}(t,0),n=i>=yy[0]&&i<=yy[1],r=2===t.length&&t[0]===t[1];return{value:o7(r?t[0]:t),isSecondary:n||r}}(d),S=H.value,E=H.isSecondary,N=c[0].startsWith("FontAwesome"),z=u7(m,S),B=z;if(N){var U=function DK(e){var t=ny[e],i=u7("fas",e);return t||(i?{prefix:"fas",iconName:i}:null)||{prefix:null,iconName:null}}(S);U.iconName&&U.prefix&&(z=U.iconName,m=U.prefix)}if(!z||E||s&&s.getAttribute(e7)===m&&s.getAttribute(t7)===B)n();else{e.setAttribute(i,B),s&&e.removeChild(s);var G=function QK(){return{iconName:null,title:null,titleId:null,prefix:null,transform:nn,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),ie=G.extra;ie.attributes[X5]=t,v7(z,m).then(function(ve){var be=p7(X(X({},G),{},{icons:{main:ve,mask:f7()},prefix:m,iconName:B,extra:ie,watchable:!0})),ke=c1.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(ke,e.firstChild):e.appendChild(ke),ke.outerHTML=be.map(function(b1){return pa(b1)}).join("\n"),e.removeAttribute(i),n()}).catch(r)}}else n()})}function cZ(e){return Promise.all([by(e,"::before"),by(e,"::after")])}function lZ(e){return!(e.parentNode===document.head||~QY.indexOf(e.tagName.toUpperCase())||e.getAttribute(X5)||e.parentNode&&"svg"===e.parentNode.tagName)}function wy(e){if(Hn)return new Promise(function(t,i){var n=pi(e.querySelectorAll("*")).filter(lZ).map(cZ),r=C7.begin("searchPseudoElements");gy(),Promise.all(n).then(function(){r(),y7(),t()}).catch(function(){r(),y7(),i()})})}var Hy=!1,Vy=function(t){return t.toLowerCase().split(" ").reduce(function(n,r){var a=r.toLowerCase().split("-"),s=a[0],o=a.slice(1).join("-");if(s&&"h"===o)return n.flipX=!0,n;if(s&&"v"===o)return n.flipY=!0,n;if(o=parseFloat(o),isNaN(o))return n;switch(s){case"grow":n.size=n.size+o;break;case"shrink":n.size=n.size-o;break;case"left":n.x=n.x-o;break;case"right":n.x=n.x+o;break;case"up":n.y=n.y-o;break;case"down":n.y=n.y+o;break;case"rotate":n.rotate=n.rotate+o}return n},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},b7={x:0,y:0,width:"100%",height:"100%"};function Sy(e){return e.attributes&&(e.attributes.fill||!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(e.attributes.fill="black"),e}!function xK(e,t){var i=t.mixoutsTo;oy=e,gi={},Object.keys(vi).forEach(function(n){-1===EK.indexOf(n)&&delete vi[n]}),oy.forEach(function(n){var r=n.mixout?n.mixout():{};if(Object.keys(r).forEach(function(s){"function"==typeof r[s]&&(i[s]=r[s]),"object"===vc(r[s])&&Object.keys(r[s]).forEach(function(o){i[s]||(i[s]={}),i[s][o]=r[s][o]})}),n.hooks){var a=n.hooks();Object.keys(a).forEach(function(s){gi[s]||(gi[s]=[]),gi[s].push(a[s])})}n.provides&&n.provides(vi)})}([mK,nZ,iZ,rZ,aZ,{hooks:function(){return{mutationObserverCallbacks:function(i){return i.pseudoElementsCallback=wy,i}}},provides:function(t){t.pseudoElements2svg=function(i){var n=i.node;ne.searchPseudoElements&&wy(void 0===n?c1:n)}}},{mixout:function(){return{dom:{unwatch:function(){gy(),Hy=!0}}}},hooks:function(){return{bootstrap:function(){vy(d7("mutationObserverCallbacks",{}))},noAuto:function(){!function qK(){Ic&&Ic.disconnect()}()},watch:function(i){var n=i.observeMutationsRoot;Hy?y7():vy(d7("mutationObserverCallbacks",{observeMutationsRoot:n}))}}}},{mixout:function(){return{parse:{transform:function(i){return Vy(i)}}}},hooks:function(){return{parseNodeAttributes:function(i,n){var r=n.getAttribute("data-fa-transform");return r&&(i.transform=Vy(r)),i}}},provides:function(t){t.generateAbstractTransformGrouping=function(i){var n=i.main,r=i.transform,s=i.iconWidth,o={transform:"translate(".concat(i.containerWidth/2," 256)")},c="translate(".concat(32*r.x,", ").concat(32*r.y,") "),l="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),u="rotate(".concat(r.rotate," 0 0)"),m={outer:o,inner:{transform:"".concat(c," ").concat(l," ").concat(u)},path:{transform:"translate(".concat(s/2*-1," -256)")}};return{tag:"g",attributes:X({},m.outer),children:[{tag:"g",attributes:X({},m.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:X(X({},n.icon.attributes),m.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(i,n){var r=n.getAttribute("data-fa-mask"),a=r?Ac(r.split(" ").map(function(s){return s.trim()})):f7();return a.prefix||(a.prefix=e3()),i.mask=a,i.maskId=n.getAttribute("data-fa-mask-id"),i}}},provides:function(t){t.generateAbstractMask=function(i){var e,n=i.children,r=i.attributes,a=i.main,s=i.mask,o=i.maskId,u=a.icon,p=s.icon,m=function dK(e){var t=e.transform,n=e.iconWidth,r={transform:"translate(".concat(e.containerWidth/2," 256)")},a="translate(".concat(32*t.x,", ").concat(32*t.y,") "),s="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),o="rotate(".concat(t.rotate," 0 0)");return{outer:r,inner:{transform:"".concat(a," ").concat(s," ").concat(o)},path:{transform:"translate(".concat(n/2*-1," -256)")}}}({transform:i.transform,containerWidth:s.width,iconWidth:a.width}),H={tag:"rect",attributes:X(X({},b7),{},{fill:"white"})},S=u.children?{children:u.children.map(Sy)}:{},E={tag:"g",attributes:X({},m.inner),children:[Sy(X({tag:u.tag,attributes:X(X({},u.attributes),m.path)},S))]},N={tag:"g",attributes:X({},m.outer),children:[E]},z="mask-".concat(o||ha()),B="clip-".concat(o||ha()),U={tag:"mask",attributes:X(X({},b7),{},{id:z,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[H,N]},G={tag:"defs",children:[{tag:"clipPath",attributes:{id:B},children:(e=p,"g"===e.tag?e.children:[e])},U]};return n.push(G,{tag:"rect",attributes:X({fill:"currentColor","clip-path":"url(#".concat(B,")"),mask:"url(#".concat(z,")")},b7)}),{children:n,attributes:r}}}},{provides:function(t){var i=!1;Jn.matchMedia&&(i=Jn.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var n=[],r={fill:"currentColor"},a={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:X(X({},r),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var s=X(X({},a),{},{attributeName:"opacity"}),o={tag:"circle",attributes:X(X({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return i||o.children.push({tag:"animate",attributes:X(X({},a),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:X(X({},s),{},{values:"1;0;1;1;0;1;"})}),n.push(o),n.push({tag:"path",attributes:X(X({},r),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:i?[]:[{tag:"animate",attributes:X(X({},s),{},{values:"1;0;0;0;0;1;"})}]}),i||n.push({tag:"path",attributes:X(X({},r),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:X(X({},s),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},{hooks:function(){return{parseNodeAttributes:function(i,n){var r=n.getAttribute("data-fa-symbol");return i.symbol=null!==r&&(""===r||r),i}}}}],{mixoutsTo:it});var _Z=it.parse,CZ=it.icon;const MZ=["*"],wZ=e=>{const t={[`fa-${e.animation}`]:null!=e.animation&&!e.animation.startsWith("spin"),"fa-spin":"spin"===e.animation||"spin-reverse"===e.animation,"fa-spin-pulse":"spin-pulse"===e.animation||"spin-pulse-reverse"===e.animation,"fa-spin-reverse":"spin-reverse"===e.animation||"spin-pulse-reverse"===e.animation,"fa-pulse":"spin-pulse"===e.animation||"spin-pulse-reverse"===e.animation,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-inverse":e.inverse,"fa-layers-counter":e.counter,"fa-flip-horizontal":"horizontal"===e.flip||"both"===e.flip,"fa-flip-vertical":"vertical"===e.flip||"both"===e.flip,[`fa-${e.size}`]:null!==e.size,[`fa-rotate-${e.rotate}`]:null!==e.rotate,[`fa-pull-${e.pull}`]:null!==e.pull,[`fa-stack-${e.stackItemSize}`]:null!=e.stackItemSize};return Object.keys(t).map(i=>t[i]?i:null).filter(i=>i)};let SZ=(()=>{var e;class t{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),DZ=(()=>{var e;class t{constructor(){this.definitions={}}addIcons(...n){for(const r of n){r.prefix in this.definitions||(this.definitions[r.prefix]={}),this.definitions[r.prefix][r.iconName]=r;for(const a of r.icon[2])"string"==typeof a&&(this.definitions[r.prefix][a]=r)}}addIconPacks(...n){for(const r of n){const a=Object.keys(r).map(s=>r[s]);this.addIcons(...a)}}getIconDefinition(n,r){return n in this.definitions&&r in this.definitions[n]?this.definitions[n][r]:null}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),zZ=(()=>{var e;class t{constructor(){this.stackItemSize="1x"}ngOnChanges(n){if("size"in n)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: <fa-stack size="4x">...</fa-stack>.')}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275dir=j({type:e,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[v1]}),t})(),EZ=(()=>{var e;class t{constructor(n,r){this.renderer=n,this.elementRef=r}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(n){"size"in n&&(null!=n.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${n.size.currentValue}`),null!=n.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${n.size.previousValue}`))}}return(e=t).\u0275fac=function(n){return new(n||e)(w(c2),w(Ae))},e.\u0275cmp=oe({type:e,selectors:[["fa-stack"]],inputs:{size:"size"},features:[v1],ngContentSelectors:MZ,decls:1,vars:0,template:function(n,r){1&n&&($4(),W4(0))},encapsulation:2}),t})(),Dy=(()=>{var e;class t{set spin(n){this.animation=n?"spin":void 0}set pulse(n){this.animation=n?"spin-pulse":void 0}constructor(n,r,a,s,o){this.sanitizer=n,this.config=r,this.iconLibrary=a,this.stackItem=s,this.classes=[],null!=o&&null==s&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: <fa-icon stackItemSize="2x"></fa-icon>.')}ngOnChanges(n){if(null!=this.icon||null!=this.config.fallbackIcon){if(n){const a=this.findIconDefinition(null!=this.icon?this.icon:this.config.fallbackIcon);if(null!=a){const s=this.buildParams();this.renderIcon(a,s)}}}else(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})()}render(){this.ngOnChanges({})}findIconDefinition(n){const r=((e,t)=>(e=>void 0!==e.prefix&&void 0!==e.iconName)(e)?e:"string"==typeof e?{prefix:t,iconName:e}:{prefix:e[0],iconName:e[1]})(n,this.config.defaultPrefix);return"icon"in r?r:this.iconLibrary.getIconDefinition(r.prefix,r.iconName)??((e=>{throw new Error(`Could not find icon with iconName=${e.iconName} and prefix=${e.prefix} in the icon library.`)})(r),null)}buildParams(){const n={flip:this.flip,animation:this.animation,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:"boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize:null},r="string"==typeof this.transform?_Z.transform(this.transform):this.transform;return{title:this.title,transform:r,classes:[...wZ(n),...this.classes],mask:null!=this.mask?this.findIconDefinition(this.mask):null,styles:null!=this.styles?this.styles:{},symbol:this.symbol,attributes:{role:this.a11yRole}}}renderIcon(n,r){const a=CZ(n,r);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(a.html.join("\n"))}}return(e=t).\u0275fac=function(n){return new(n||e)(w(Uv),w(SZ),w(DZ),w(zZ,8),w(EZ,8))},e.\u0275cmp=oe({type:e,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(n,r){2&n&&(H2("innerHTML",r.renderedIconHTML,Ed),W("title",r.title))},inputs:{icon:"icon",title:"title",animation:"animation",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",classes:"classes",transform:"transform",a11yRole:"a11yRole"},features:[v1],decls:0,vars:0,template:function(n,r){},encapsulation:2}),t})(),xZ=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})();function w7(...e){const t=Ni(e),i=Za(e),{args:n,keys:r}=$v(e);if(0===n.length)return Q1([],t);const a=new We(function LZ(e,t,i=yt){return n=>{zy(t,()=>{const{length:r}=e,a=new Array(r);let s=r,o=r;for(let c=0;c<r;c++)zy(t,()=>{const l=Q1(e[c],t);let u=!1;l.subscribe(qe(n,d=>{a[c]=d,u||(u=!0,o--),o||n.next(i(a.slice()))},()=>{--s||n.complete()}))},n)},n)}}(n,t,r?s=>Wv(r,s):yt));return i?a.pipe(e5(i)):a}function zy(e,t,i){e?sn(i,e,t):t()}const Rc=f2(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Ey(e){return new We(t=>{j1(e()).subscribe(t)})}function ga(e,t){const i=Q(e)?e:()=>e,n=r=>r.error(i());return new We(t?r=>t.schedule(n,0,r):n)}function H7(){return f1((e,t)=>{let i=null;e._refCount++;const n=qe(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(i=null);const r=e._connection,a=i;i=null,r&&(!a||r===a)&&r.unsubscribe(),t.unsubscribe()});e.subscribe(n),n.closed||(i=e.connect())})}class xy extends We{constructor(t,i){super(),this.source=t,this.subjectFactory=i,this._subject=null,this._refCount=0,this._connection=null,Ai(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new Se;const i=this.getSubject();t.add(this.source.subscribe(qe(i,void 0,()=>{this._teardown(),i.complete()},n=>{this._teardown(),i.error(n)},()=>this._teardown()))),t.closed&&(this._connection=null,t=Se.EMPTY)}return t}refCount(){return H7()(this)}}function Oc(e){return f1((t,i)=>{let n=!1;t.subscribe(qe(i,r=>{n=!0,i.next(r)},()=>{n||i.next(e),i.complete()}))})}function Ay(e=NZ){return f1((t,i)=>{let n=!1;t.subscribe(qe(i,r=>{n=!0,i.next(r)},()=>n?i.complete():i.error(e())))})}function NZ(){return new Rc}function P3(e,t){const i=arguments.length>=2;return n=>n.pipe(e?x1((r,a)=>e(r,a,n)):yt,e2(1),i?Oc(t):Ay(()=>new Rc))}function va(e,t){return Q(t)?F1(e,t,1):F1(e,1)}function F3(e){return f1((t,i)=>{let a,n=null,r=!1;n=t.subscribe(qe(i,void 0,void 0,s=>{a=j1(e(s,F3(e)(t))),n?(n.unsubscribe(),n=null,a.subscribe(i)):r=!0})),r&&(n.unsubscribe(),n=null,a.subscribe(i))})}function V7(e){return e<=0?()=>ot:f1((t,i)=>{let n=[];t.subscribe(qe(i,r=>{n.push(r),e<n.length&&n.shift()},()=>{for(const r of n)i.next(r);i.complete()},void 0,()=>{n=null}))})}function S7(e){return f1((t,i)=>{try{t.subscribe(i)}finally{i.add(e)}})}const _e="primary",_a=Symbol("RouteTitle");class OZ{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const i=this.params[t];return Array.isArray(i)?i[0]:i}return null}getAll(t){if(this.has(t)){const i=this.params[t];return Array.isArray(i)?i:[i]}return[]}get keys(){return Object.keys(this.params)}}function _i(e){return new OZ(e)}function kZ(e,t,i){const n=i.path.split("/");if(n.length>e.length||"full"===i.pathMatch&&(t.hasChildren()||n.length<e.length))return null;const r={};for(let a=0;a<n.length;a++){const s=n[a],o=e[a];if(s.startsWith(":"))r[s.substring(1)]=o;else if(s!==o.path)return null}return{consumed:e.slice(0,n.length),posParams:r}}function rn(e,t){const i=e?Object.keys(e):void 0,n=t?Object.keys(t):void 0;if(!i||!n||i.length!=n.length)return!1;let r;for(let a=0;a<i.length;a++)if(r=i[a],!Ly(e[r],t[r]))return!1;return!0}function Ly(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;const i=[...e].sort(),n=[...t].sort();return i.every((r,a)=>n[a]===r)}return e===t}function Ny(e){return e.length>0?e[e.length-1]:null}function n3(e){return function AZ(e){return!!e&&(e instanceof We||Q(e.lift)&&Q(e.subscribe))}(e)?e:Mr(e)?Q1(Promise.resolve(e)):ae(e)}const FZ={exact:function Ry(e,t,i){if(!B3(e.segments,t.segments)||!kc(e.segments,t.segments,i)||e.numberOfChildren!==t.numberOfChildren)return!1;for(const n in t.children)if(!e.children[n]||!Ry(e.children[n],t.children[n],i))return!1;return!0},subset:Oy},Ty={exact:function BZ(e,t){return rn(e,t)},subset:function UZ(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(i=>Ly(e[i],t[i]))},ignored:()=>!0};function Iy(e,t,i){return FZ[i.paths](e.root,t.root,i.matrixParams)&&Ty[i.queryParams](e.queryParams,t.queryParams)&&!("exact"===i.fragment&&e.fragment!==t.fragment)}function Oy(e,t,i){return ky(e,t,t.segments,i)}function ky(e,t,i,n){if(e.segments.length>i.length){const r=e.segments.slice(0,i.length);return!(!B3(r,i)||t.hasChildren()||!kc(r,i,n))}if(e.segments.length===i.length){if(!B3(e.segments,i)||!kc(e.segments,i,n))return!1;for(const r in t.children)if(!e.children[r]||!Oy(e.children[r],t.children[r],n))return!1;return!0}{const r=i.slice(0,e.segments.length),a=i.slice(e.segments.length);return!!(B3(e.segments,r)&&kc(e.segments,r,n)&&e.children[_e])&&ky(e.children[_e],t,a,n)}}function kc(e,t,i){return t.every((n,r)=>Ty[i](e[r].parameters,n.parameters))}class Ci{constructor(t=new $e([],{}),i={},n=null){this.root=t,this.queryParams=i,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=_i(this.queryParams)),this._queryParamMap}toString(){return $Z.serialize(this)}}class $e{constructor(t,i){this.segments=t,this.children=i,this.parent=null,Object.values(i).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Pc(this)}}class Ca{constructor(t,i){this.path=t,this.parameters=i}get parameterMap(){return this._parameterMap||(this._parameterMap=_i(this.parameters)),this._parameterMap}toString(){return By(this)}}function B3(e,t){return e.length===t.length&&e.every((i,n)=>i.path===t[n].path)}let Ma=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:function(){return new D7},providedIn:"root"}),t})();class D7{parse(t){const i=new nQ(t);return new Ci(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(t){const i=`/${ya(t.root,!0)}`,n=function YZ(e){const t=Object.keys(e).map(i=>{const n=e[i];return Array.isArray(n)?n.map(r=>`${Fc(i)}=${Fc(r)}`).join("&"):`${Fc(i)}=${Fc(n)}`}).filter(i=>!!i);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${i}${n}${"string"==typeof t.fragment?`#${function WZ(e){return encodeURI(e)}(t.fragment)}`:""}`}}const $Z=new D7;function Pc(e){return e.segments.map(t=>By(t)).join("/")}function ya(e,t){if(!e.hasChildren())return Pc(e);if(t){const i=e.children[_e]?ya(e.children[_e],!1):"",n=[];return Object.entries(e.children).forEach(([r,a])=>{r!==_e&&n.push(`${r}:${ya(a,!1)}`)}),n.length>0?`${i}(${n.join("//")})`:i}{const i=function GZ(e,t){let i=[];return Object.entries(e.children).forEach(([n,r])=>{n===_e&&(i=i.concat(t(r,n)))}),Object.entries(e.children).forEach(([n,r])=>{n!==_e&&(i=i.concat(t(r,n)))}),i}(e,(n,r)=>r===_e?[ya(e.children[_e],!1)]:[`${r}:${ya(n,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[_e]?`${Pc(e)}/${i[0]}`:`${Pc(e)}/(${i.join("//")})`}}function Py(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Fc(e){return Py(e).replace(/%3B/gi,";")}function z7(e){return Py(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Bc(e){return decodeURIComponent(e)}function Fy(e){return Bc(e.replace(/\+/g,"%20"))}function By(e){return`${z7(e.path)}${function qZ(e){return Object.keys(e).map(t=>`;${z7(t)}=${z7(e[t])}`).join("")}(e.parameters)}`}const KZ=/^[^\/()?;#]+/;function E7(e){const t=e.match(KZ);return t?t[0]:""}const ZZ=/^[^\/()?;=#]+/,JZ=/^[^=?&#]+/,eQ=/^[^&#]+/;class nQ{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new $e([],{}):new $e([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(i).length>0)&&(n[_e]=new $e(t,i)),n}parseSegment(){const t=E7(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new F(4009,!1);return this.capture(t),new Ca(Bc(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const i=function QZ(e){const t=e.match(ZZ);return t?t[0]:""}(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){const r=E7(this.remaining);r&&(n=r,this.capture(n))}t[Bc(i)]=Bc(n)}parseQueryParam(t){const i=function XZ(e){const t=e.match(JZ);return t?t[0]:""}(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){const s=function tQ(e){const t=e.match(eQ);return t?t[0]:""}(this.remaining);s&&(n=s,this.capture(n))}const r=Fy(i),a=Fy(n);if(t.hasOwnProperty(r)){let s=t[r];Array.isArray(s)||(s=[s],t[r]=s),s.push(a)}else t[r]=a}parseParens(t){const i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=E7(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new F(4010,!1);let a;n.indexOf(":")>-1?(a=n.slice(0,n.indexOf(":")),this.capture(a),this.capture(":")):t&&(a=_e);const s=this.parseChildren();i[a]=1===Object.keys(s).length?s[_e]:new $e([],s),this.consumeOptional("//")}return i}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new F(4011,!1)}}function Uy(e){return e.segments.length>0?new $e([],{[_e]:e}):e}function jy(e){const t={};for(const n of Object.keys(e.children)){const a=jy(e.children[n]);if(n===_e&&0===a.segments.length&&a.hasChildren())for(const[s,o]of Object.entries(a.children))t[s]=o;else(a.segments.length>0||a.hasChildren())&&(t[n]=a)}return function iQ(e){if(1===e.numberOfChildren&&e.children[_e]){const t=e.children[_e];return new $e(e.segments.concat(t.segments),t.children)}return e}(new $e(e.segments,t))}function U3(e){return e instanceof Ci}function Gy(e){let t;const r=Uy(function i(a){const s={};for(const c of a.children){const l=i(c);s[c.outlet]=l}const o=new $e(a.url,s);return a===e&&(t=o),o}(e.root));return t??r}function $y(e,t,i,n){let r=e;for(;r.parent;)r=r.parent;if(0===t.length)return x7(r,r,r,i,n);const a=function aQ(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new qy(!0,0,e);let t=0,i=!1;const n=e.reduce((r,a,s)=>{if("object"==typeof a&&null!=a){if(a.outlets){const o={};return Object.entries(a.outlets).forEach(([c,l])=>{o[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:o}]}if(a.segmentPath)return[...r,a.segmentPath]}return"string"!=typeof a?[...r,a]:0===s?(a.split("/").forEach((o,c)=>{0==c&&"."===o||(0==c&&""===o?i=!0:".."===o?t++:""!=o&&r.push(o))}),r):[...r,a]},[]);return new qy(i,t,n)}(t);if(a.toRoot())return x7(r,r,new $e([],{}),i,n);const s=function sQ(e,t,i){if(e.isAbsolute)return new jc(t,!0,0);if(!i)return new jc(t,!1,NaN);if(null===i.parent)return new jc(i,!0,0);const n=Uc(e.commands[0])?0:1;return function oQ(e,t,i){let n=e,r=t,a=i;for(;a>r;){if(a-=r,n=n.parent,!n)throw new F(4005,!1);r=n.segments.length}return new jc(n,!1,r-a)}(i,i.segments.length-1+n,e.numberOfDoubleDots)}(a,r,e),o=s.processChildren?wa(s.segmentGroup,s.index,a.commands):Yy(s.segmentGroup,s.index,a.commands);return x7(r,s.segmentGroup,o,i,n)}function Uc(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function ba(e){return"object"==typeof e&&null!=e&&e.outlets}function x7(e,t,i,n,r){let s,a={};n&&Object.entries(n).forEach(([c,l])=>{a[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=e===t?i:Wy(e,t,i);const o=Uy(jy(s));return new Ci(o,a,r)}function Wy(e,t,i){const n={};return Object.entries(e.children).forEach(([r,a])=>{n[r]=a===t?i:Wy(a,t,i)}),new $e(e.segments,n)}class qy{constructor(t,i,n){if(this.isAbsolute=t,this.numberOfDoubleDots=i,this.commands=n,t&&n.length>0&&Uc(n[0]))throw new F(4003,!1);const r=n.find(ba);if(r&&r!==Ny(n))throw new F(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class jc{constructor(t,i,n){this.segmentGroup=t,this.processChildren=i,this.index=n}}function Yy(e,t,i){if(e||(e=new $e([],{})),0===e.segments.length&&e.hasChildren())return wa(e,t,i);const n=function lQ(e,t,i){let n=0,r=t;const a={match:!1,pathIndex:0,commandIndex:0};for(;r<e.segments.length;){if(n>=i.length)return a;const s=e.segments[r],o=i[n];if(ba(o))break;const c=`${o}`,l=n<i.length-1?i[n+1]:null;if(r>0&&void 0===c)break;if(c&&l&&"object"==typeof l&&void 0===l.outlets){if(!Zy(c,l,s))return a;n+=2}else{if(!Zy(c,{},s))return a;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}(e,t,i),r=i.slice(n.commandIndex);if(n.match&&n.pathIndex<e.segments.length){const a=new $e(e.segments.slice(0,n.pathIndex),{});return a.children[_e]=new $e(e.segments.slice(n.pathIndex),e.children),wa(a,0,r)}return n.match&&0===r.length?new $e(e.segments,{}):n.match&&!e.hasChildren()?A7(e,t,i):n.match?wa(e,0,r):A7(e,t,i)}function wa(e,t,i){if(0===i.length)return new $e(e.segments,{});{const n=function cQ(e){return ba(e[0])?e[0].outlets:{[_e]:e}}(i),r={};if(Object.keys(n).some(a=>a!==_e)&&e.children[_e]&&1===e.numberOfChildren&&0===e.children[_e].segments.length){const a=wa(e.children[_e],t,i);return new $e(e.segments,a.children)}return Object.entries(n).forEach(([a,s])=>{"string"==typeof s&&(s=[s]),null!==s&&(r[a]=Yy(e.children[a],t,s))}),Object.entries(e.children).forEach(([a,s])=>{void 0===n[a]&&(r[a]=s)}),new $e(e.segments,r)}}function A7(e,t,i){const n=e.segments.slice(0,t);let r=0;for(;r<i.length;){const a=i[r];if(ba(a)){const c=uQ(a.outlets);return new $e(n,c)}if(0===r&&Uc(i[0])){n.push(new Ca(e.segments[t].path,Ky(i[0]))),r++;continue}const s=ba(a)?a.outlets[_e]:`${a}`,o=r<i.length-1?i[r+1]:null;s&&o&&Uc(o)?(n.push(new Ca(s,Ky(o))),r+=2):(n.push(new Ca(s,{})),r++)}return new $e(n,{})}function uQ(e){const t={};return Object.entries(e).forEach(([i,n])=>{"string"==typeof n&&(n=[n]),null!==n&&(t[i]=A7(new $e([],{}),0,n))}),t}function Ky(e){const t={};return Object.entries(e).forEach(([i,n])=>t[i]=`${n}`),t}function Zy(e,t,i){return e==i.path&&rn(t,i.parameters)}const Ha="imperative";class an{constructor(t,i){this.id=t,this.url=i}}class Va extends an{constructor(t,i,n="imperative",r=null){super(t,i),this.type=0,this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class i3 extends an{constructor(t,i,n){super(t,i),this.urlAfterRedirects=n,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Sa extends an{constructor(t,i,n,r){super(t,i),this.reason=n,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Mi extends an{constructor(t,i,n,r){super(t,i),this.reason=n,this.code=r,this.type=16}}class Gc extends an{constructor(t,i,n,r){super(t,i),this.error=n,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Qy extends an{constructor(t,i,n,r){super(t,i),this.urlAfterRedirects=n,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class fQ extends an{constructor(t,i,n,r){super(t,i),this.urlAfterRedirects=n,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class dQ extends an{constructor(t,i,n,r,a){super(t,i),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=a,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class hQ extends an{constructor(t,i,n,r){super(t,i),this.urlAfterRedirects=n,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class pQ extends an{constructor(t,i,n,r){super(t,i),this.urlAfterRedirects=n,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class mQ{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class gQ{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class vQ{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _Q{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class CQ{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class MQ{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Jy{constructor(t,i,n){this.routerEvent=t,this.position=i,this.anchor=n,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class L7{}class N7{constructor(t){this.url=t}}class yQ{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Da,this.attachRef=null}}let Da=(()=>{var e;class t{constructor(){this.contexts=new Map}onChildOutletCreated(n,r){const a=this.getOrCreateContext(n);a.outlet=r,this.contexts.set(n,a)}onChildOutletDestroyed(n){const r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new yQ,this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();class Xy{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const i=this.pathFromRoot(t);return i.length>1?i[i.length-2]:null}children(t){const i=T7(t,this._root);return i?i.children.map(n=>n.value):[]}firstChild(t){const i=T7(t,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(t){const i=I7(t,this._root);return i.length<2?[]:i[i.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return I7(t,this._root).map(i=>i.value)}}function T7(e,t){if(e===t.value)return t;for(const i of t.children){const n=T7(e,i);if(n)return n}return null}function I7(e,t){if(e===t.value)return[t];for(const i of t.children){const n=I7(e,i);if(n.length)return n.unshift(t),n}return[]}class zn{constructor(t,i){this.value=t,this.children=i}toString(){return`TreeNode(${this.value})`}}function yi(e){const t={};return e&&e.children.forEach(i=>t[i.value.outlet]=i),t}class eb extends Xy{constructor(t,i){super(t),this.snapshot=i,R7(this,t)}toString(){return this.snapshot.toString()}}function tb(e,t){const i=function bQ(e,t){const s=new $c([],{},{},"",{},_e,t,null,{});return new ib("",new zn(s,[]))}(0,t),n=new ct([new Ca("",{})]),r=new ct({}),a=new ct({}),s=new ct({}),o=new ct(""),c=new En(n,r,s,o,a,_e,t,i.root);return c.snapshot=i.root,new eb(new zn(c,[]),i)}class En{constructor(t,i,n,r,a,s,o,c){this.urlSubject=t,this.paramsSubject=i,this.queryParamsSubject=n,this.fragmentSubject=r,this.dataSubject=a,this.outlet=s,this.component=o,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(we(l=>l[_a]))??ae(void 0),this.url=t,this.params=i,this.queryParams=n,this.fragment=r,this.data=a}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(we(t=>_i(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(we(t=>_i(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function nb(e,t="emptyOnly"){const i=e.pathFromRoot;let n=0;if("always"!==t)for(n=i.length-1;n>=1;){const r=i[n],a=i[n-1];if(r.routeConfig&&""===r.routeConfig.path)n--;else{if(a.component)break;n--}}return function wQ(e){return e.reduce((t,i)=>({params:{...t.params,...i.params},data:{...t.data,...i.data},resolve:{...i.data,...t.resolve,...i.routeConfig?.data,...i._resolvedData}}),{params:{},data:{},resolve:{}})}(i.slice(n))}class $c{get title(){return this.data?.[_a]}constructor(t,i,n,r,a,s,o,c,l){this.url=t,this.params=i,this.queryParams=n,this.fragment=r,this.data=a,this.outlet=s,this.component=o,this.routeConfig=c,this._resolve=l}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=_i(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=_i(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(n=>n.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ib extends Xy{constructor(t,i){super(i),this.url=t,R7(this,i)}toString(){return rb(this._root)}}function R7(e,t){t.value._routerState=e,t.children.forEach(i=>R7(e,i))}function rb(e){const t=e.children.length>0?` { ${e.children.map(rb).join(", ")} } `:"";return`${e.value}${t}`}function O7(e){if(e.snapshot){const t=e.snapshot,i=e._futureSnapshot;e.snapshot=i,rn(t.queryParams,i.queryParams)||e.queryParamsSubject.next(i.queryParams),t.fragment!==i.fragment&&e.fragmentSubject.next(i.fragment),rn(t.params,i.params)||e.paramsSubject.next(i.params),function PZ(e,t){if(e.length!==t.length)return!1;for(let i=0;i<e.length;++i)if(!rn(e[i],t[i]))return!1;return!0}(t.url,i.url)||e.urlSubject.next(i.url),rn(t.data,i.data)||e.dataSubject.next(i.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function k7(e,t){const i=rn(e.params,t.params)&&function jZ(e,t){return B3(e,t)&&e.every((i,n)=>rn(i.parameters,t[n].parameters))}(e.url,t.url);return i&&!(!e.parent!=!t.parent)&&(!e.parent||k7(e.parent,t.parent))}let P7=(()=>{var e;class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=_e,this.activateEvents=new ee,this.deactivateEvents=new ee,this.attachEvents=new ee,this.detachEvents=new ee,this.parentContexts=J(Da),this.location=J(F2),this.changeDetector=J(J2),this.environmentInjector=J(O2),this.inputBinder=J(Wc,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){const{firstChange:r,previousValue:a}=n.name;if(r)return;this.isTrackedInParentContexts(a)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(a)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new F(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new F(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new F(4012,!1);this.location.detach();const n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){const n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new F(4013,!1);this._activatedRoute=n;const a=this.location,o=n.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,l=new HQ(n,c,a.injector);this.activated=a.createComponent(o,{index:a.length,injector:l,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275dir=j({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[v1]}),t})();class HQ{constructor(t,i,n){this.route=t,this.childContexts=i,this.parent=n}get(t,i){return t===En?this.route:t===Da?this.childContexts:this.parent.get(t,i)}}const Wc=new te("");let ab=(()=>{var e;class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){const{activatedRoute:r}=n,a=w7([r.queryParams,r.params,r.data]).pipe(bt(([s,o,c],l)=>(c={...s,...o,...c},0===l?ae(c):Promise.resolve(c)))).subscribe(s=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||null===r.component)return void this.unsubscribeFromRouteData(n);const o=function zF(e){const t=Ee(e);if(!t)return null;const i=new pr(t);return{get selector(){return i.selector},get type(){return i.componentType},get inputs(){return i.inputs},get outputs(){return i.outputs},get ngContentSelectors(){return i.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}(r.component);if(o)for(const{templateName:c}of o.inputs)n.activatedComponentRef.setInput(c,s[c]);else this.unsubscribeFromRouteData(n)});this.outletDataSubscriptions.set(n,a)}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac}),t})();function za(e,t,i){if(i&&e.shouldReuseRoute(t.value,i.value.snapshot)){const n=i.value;n._futureSnapshot=t.value;const r=function SQ(e,t,i){return t.children.map(n=>{for(const r of i.children)if(e.shouldReuseRoute(n.value,r.value.snapshot))return za(e,n,r);return za(e,n)})}(e,t,i);return new zn(n,r)}{if(e.shouldAttach(t.value)){const a=e.retrieve(t.value);if(null!==a){const s=a.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(o=>za(e,o)),s}}const n=function DQ(e){return new En(new ct(e.url),new ct(e.params),new ct(e.queryParams),new ct(e.fragment),new ct(e.data),e.outlet,e.component,e)}(t.value),r=t.children.map(a=>za(e,a));return new zn(n,r)}}const F7="ngNavigationCancelingError";function sb(e,t){const{redirectTo:i,navigationBehaviorOptions:n}=U3(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,r=ob(!1,0,t);return r.url=i,r.navigationBehaviorOptions=n,r}function ob(e,t,i){const n=new Error("NavigationCancelingError: "+(e||""));return n[F7]=!0,n.cancellationCode=t,i&&(n.url=i),n}function cb(e){return e&&e[F7]}let lb=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275cmp=oe({type:e,selectors:[["ng-component"]],standalone:!0,features:[S2],decls:1,vars:0,template:function(n,r){1&n&&P(0,"router-outlet")},dependencies:[P7],encapsulation:2}),t})();function B7(e){const t=e.children&&e.children.map(B7),i=t?{...e,children:t}:{...e};return!i.component&&!i.loadComponent&&(t||i.loadChildren)&&i.outlet&&i.outlet!==_e&&(i.component=lb),i}function Rt(e){return e.outlet||_e}function Ea(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){const i=t.routeConfig;if(i?._loadedInjector)return i._loadedInjector;if(i?._injector)return i._injector}return null}class IQ{constructor(t,i,n,r,a){this.routeReuseStrategy=t,this.futureState=i,this.currState=n,this.forwardEvent=r,this.inputBindingEnabled=a}activate(t){const i=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,n,t),O7(this.futureState.root),this.activateChildRoutes(i,n,t)}deactivateChildRoutes(t,i,n){const r=yi(i);t.children.forEach(a=>{const s=a.value.outlet;this.deactivateRoutes(a,r[s],n),delete r[s]}),Object.values(r).forEach(a=>{this.deactivateRouteAndItsChildren(a,n)})}deactivateRoutes(t,i,n){const r=t.value,a=i?i.value:null;if(r===a)if(r.component){const s=n.getContext(r.outlet);s&&this.deactivateChildRoutes(t,i,s.children)}else this.deactivateChildRoutes(t,i,n);else a&&this.deactivateRouteAndItsChildren(i,n)}deactivateRouteAndItsChildren(t,i){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,i):this.deactivateRouteAndOutlet(t,i)}detachAndStoreRouteSubtree(t,i){const n=i.getContext(t.value.outlet),r=n&&t.value.component?n.children:i,a=yi(t);for(const s of Object.keys(a))this.deactivateRouteAndItsChildren(a[s],r);if(n&&n.outlet){const s=n.outlet.detach(),o=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:o})}}deactivateRouteAndOutlet(t,i){const n=i.getContext(t.value.outlet),r=n&&t.value.component?n.children:i,a=yi(t);for(const s of Object.keys(a))this.deactivateRouteAndItsChildren(a[s],r);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(t,i,n){const r=yi(i);t.children.forEach(a=>{this.activateRoutes(a,r[a.value.outlet],n),this.forwardEvent(new MQ(a.value.snapshot))}),t.children.length&&this.forwardEvent(new _Q(t.value.snapshot))}activateRoutes(t,i,n){const r=t.value,a=i?i.value:null;if(O7(r),r===a)if(r.component){const s=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,i,s.children)}else this.activateChildRoutes(t,i,n);else if(r.component){const s=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const o=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(o.contexts),s.attachRef=o.componentRef,s.route=o.route.value,s.outlet&&s.outlet.attach(o.componentRef,o.route.value),O7(o.route.value),this.activateChildRoutes(t,null,s.children)}else{const o=Ea(r.snapshot);s.attachRef=null,s.route=r,s.injector=o,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,n)}}class ub{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class qc{constructor(t,i){this.component=t,this.route=i}}function RQ(e,t,i){const n=e._root;return xa(n,t?t._root:null,i,[n.value])}function bi(e,t){const i=Symbol(),n=t.get(e,i);return n===i?"function"!=typeof e||function Wx(e){return null!==Xa(e)}(e)?t.get(e):e:n}function xa(e,t,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const a=yi(t);return e.children.forEach(s=>{(function kQ(e,t,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const a=e.value,s=t?t.value:null,o=i?i.getContext(e.value.outlet):null;if(s&&a.routeConfig===s.routeConfig){const c=function PQ(e,t,i){if("function"==typeof i)return i(e,t);switch(i){case"pathParamsChange":return!B3(e.url,t.url);case"pathParamsOrQueryParamsChange":return!B3(e.url,t.url)||!rn(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!k7(e,t)||!rn(e.queryParams,t.queryParams);default:return!k7(e,t)}}(s,a,a.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new ub(n)):(a.data=s.data,a._resolvedData=s._resolvedData),xa(e,t,a.component?o?o.children:null:i,n,r),c&&o&&o.outlet&&o.outlet.isActivated&&r.canDeactivateChecks.push(new qc(o.outlet.component,s))}else s&&Aa(t,o,r),r.canActivateChecks.push(new ub(n)),xa(e,null,a.component?o?o.children:null:i,n,r)})(s,a[s.value.outlet],i,n.concat([s.value]),r),delete a[s.value.outlet]}),Object.entries(a).forEach(([s,o])=>Aa(o,i.getContext(s),r)),r}function Aa(e,t,i){const n=yi(e),r=e.value;Object.entries(n).forEach(([a,s])=>{Aa(s,r.component?t?t.children.getContext(a):null:t,i)}),i.canDeactivateChecks.push(new qc(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}function La(e){return"function"==typeof e}function fb(e){return e instanceof Rc||"EmptyError"===e?.name}const Yc=Symbol("INITIAL_VALUE");function wi(){return bt(e=>w7(e.map(t=>t.pipe(e2(1),function nC(...e){const t=Ni(e);return f1((i,n)=>{(t?$r(e,i,t):$r(e,i)).subscribe(n)})}(Yc)))).pipe(we(t=>{for(const i of t)if(!0!==i){if(i===Yc)return Yc;if(!1===i||i instanceof Ci)return i}return!0}),x1(t=>t!==Yc),e2(1)))}function db(e){return function Ua(...e){return xi(e)}(q1(t=>{if(U3(t))throw sb(0,t)}),we(t=>!0===t))}class Kc{constructor(t){this.segmentGroup=t||null}}class hb{constructor(t){this.urlTree=t}}function Hi(e){return ga(new Kc(e))}function pb(e){return ga(new hb(e))}class aJ{constructor(t,i){this.urlSerializer=t,this.urlTree=i}noMatchError(t){return new F(4002,!1)}lineralizeSegments(t,i){let n=[],r=i.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return ae(n);if(r.numberOfChildren>1||!r.children[_e])return ga(new F(4e3,!1));r=r.children[_e]}}applyRedirectCommands(t,i,n){return this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),t,n)}applyRedirectCreateUrlTree(t,i,n,r){const a=this.createSegmentGroup(t,i.root,n,r);return new Ci(a,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}createQueryParams(t,i){const n={};return Object.entries(t).forEach(([r,a])=>{if("string"==typeof a&&a.startsWith(":")){const o=a.substring(1);n[r]=i[o]}else n[r]=a}),n}createSegmentGroup(t,i,n,r){const a=this.createSegments(t,i.segments,n,r);let s={};return Object.entries(i.children).forEach(([o,c])=>{s[o]=this.createSegmentGroup(t,c,n,r)}),new $e(a,s)}createSegments(t,i,n,r){return i.map(a=>a.path.startsWith(":")?this.findPosParam(t,a,r):this.findOrReturn(a,n))}findPosParam(t,i,n){const r=n[i.path.substring(1)];if(!r)throw new F(4001,!1);return r}findOrReturn(t,i){let n=0;for(const r of i){if(r.path===t.path)return i.splice(n),r;n++}return t}}const U7={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function sJ(e,t,i,n,r){const a=j7(e,t,i);return a.matched?(n=function EQ(e,t){return e.providers&&!e._injector&&(e._injector=Yl(e.providers,t,`Route: ${e.path}`)),e._injector??t}(t,n),function nJ(e,t,i,n){const r=t.canMatch;return r&&0!==r.length?ae(r.map(s=>{const o=bi(s,e);return n3(function $Q(e){return e&&La(e.canMatch)}(o)?o.canMatch(t,i):e.runInContext(()=>o(t,i)))})).pipe(wi(),db()):ae(!0)}(n,t,i).pipe(we(s=>!0===s?a:{...U7}))):ae(a)}function j7(e,t,i){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||i.length>0)?{...U7}:{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};const r=(t.matcher||kZ)(i,e,t);if(!r)return{...U7};const a={};Object.entries(r.posParams??{}).forEach(([o,c])=>{a[o]=c.path});const s=r.consumed.length>0?{...a,...r.consumed[r.consumed.length-1].parameters}:a;return{matched:!0,consumedSegments:r.consumed,remainingSegments:i.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function mb(e,t,i,n){return i.length>0&&function lJ(e,t,i){return i.some(n=>Zc(e,t,n)&&Rt(n)!==_e)}(e,i,n)?{segmentGroup:new $e(t,cJ(n,new $e(i,e.children))),slicedSegments:[]}:0===i.length&&function uJ(e,t,i){return i.some(n=>Zc(e,t,n))}(e,i,n)?{segmentGroup:new $e(e.segments,oJ(e,0,i,n,e.children)),slicedSegments:i}:{segmentGroup:new $e(e.segments,e.children),slicedSegments:i}}function oJ(e,t,i,n,r){const a={};for(const s of n)if(Zc(e,i,s)&&!r[Rt(s)]){const o=new $e([],{});a[Rt(s)]=o}return{...r,...a}}function cJ(e,t){const i={};i[_e]=t;for(const n of e)if(""===n.path&&Rt(n)!==_e){const r=new $e([],{});i[Rt(n)]=r}return i}function Zc(e,t,i){return(!(e.hasChildren()||t.length>0)||"full"!==i.pathMatch)&&""===i.path}class pJ{constructor(t,i,n,r,a,s,o){this.injector=t,this.configLoader=i,this.rootComponentType=n,this.config=r,this.urlTree=a,this.paramsInheritanceStrategy=s,this.urlSerializer=o,this.allowRedirects=!0,this.applyRedirects=new aJ(this.urlSerializer,this.urlTree)}noMatchError(t){return new F(4002,!1)}recognize(){const t=mb(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,_e).pipe(F3(i=>{if(i instanceof hb)return this.allowRedirects=!1,this.urlTree=i.urlTree,this.match(i.urlTree);throw i instanceof Kc?this.noMatchError(i):i}),we(i=>{const n=new $c([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},_e,this.rootComponentType,null,{}),r=new zn(n,i),a=new ib("",r),s=function rQ(e,t,i=null,n=null){return $y(Gy(e),t,i,n)}(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,a.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(a._root),{state:a,tree:s}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t.root,_e).pipe(F3(n=>{throw n instanceof Kc?this.noMatchError(n):n}))}inheritParamsAndData(t){const i=t.value,n=nb(i,this.paramsInheritanceStrategy);i.params=Object.freeze(n.params),i.data=Object.freeze(n.data),t.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(t,i,n,r){return 0===n.segments.length&&n.hasChildren()?this.processChildren(t,i,n):this.processSegment(t,i,n,n.segments,r,!0)}processChildren(t,i,n){const r=[];for(const a of Object.keys(n.children))"primary"===a?r.unshift(a):r.push(a);return Q1(r).pipe(va(a=>{const s=n.children[a],o=function NQ(e,t){const i=e.filter(n=>Rt(n)===t);return i.push(...e.filter(n=>Rt(n)!==t)),i}(i,a);return this.processSegmentGroup(t,o,s,a)}),function IZ(e,t){return f1(function TZ(e,t,i,n,r){return(a,s)=>{let o=i,c=t,l=0;a.subscribe(qe(s,u=>{const d=l++;c=o?e(c,u,d):(o=!0,u),n&&s.next(c)},r&&(()=>{o&&s.next(c),s.complete()})))}}(e,t,arguments.length>=2,!0))}((a,s)=>(a.push(...s),a)),Oc(null),function RZ(e,t){const i=arguments.length>=2;return n=>n.pipe(e?x1((r,a)=>e(r,a,n)):yt,V7(1),i?Oc(t):Ay(()=>new Rc))}(),F1(a=>{if(null===a)return Hi(n);const s=gb(a);return function mJ(e){e.sort((t,i)=>t.value.outlet===_e?-1:i.value.outlet===_e?1:t.value.outlet.localeCompare(i.value.outlet))}(s),ae(s)}))}processSegment(t,i,n,r,a,s){return Q1(i).pipe(va(o=>this.processSegmentAgainstRoute(o._injector??t,i,o,n,r,a,s).pipe(F3(c=>{if(c instanceof Kc)return ae(null);throw c}))),P3(o=>!!o),F3(o=>{if(fb(o))return function dJ(e,t,i){return 0===t.length&&!e.children[i]}(n,r,a)?ae([]):Hi(n);throw o}))}processSegmentAgainstRoute(t,i,n,r,a,s,o){return function fJ(e,t,i,n){return!!(Rt(e)===n||n!==_e&&Zc(t,i,e))&&("**"===e.path||j7(t,e,i).matched)}(n,r,a,s)?void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,r,n,a,s,o):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,r,i,n,a,s):Hi(r):Hi(r)}expandSegmentAgainstRouteUsingRedirect(t,i,n,r,a,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,i,n,r,a,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,n,r){const a=this.applyRedirects.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?pb(a):this.applyRedirects.lineralizeSegments(n,a).pipe(F1(s=>{const o=new $e(s,{});return this.processSegment(t,i,o,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,i,n,r,a,s){const{matched:o,consumedSegments:c,remainingSegments:l,positionalParamSegments:u}=j7(i,r,a);if(!o)return Hi(i);const d=this.applyRedirects.applyRedirectCommands(c,r.redirectTo,u);return r.redirectTo.startsWith("/")?pb(d):this.applyRedirects.lineralizeSegments(r,d).pipe(F1(p=>this.processSegment(t,n,i,p.concat(l),s,!1)))}matchSegmentAgainstRoute(t,i,n,r,a,s){let o;if("**"===n.path){const c=r.length>0?Ny(r).parameters:{};o=ae({snapshot:new $c(r,c,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,vb(n),Rt(n),n.component??n._loadedComponent??null,n,_b(n)),consumedSegments:[],remainingSegments:[]}),i.children={}}else o=sJ(i,n,r,t).pipe(we(({matched:c,consumedSegments:l,remainingSegments:u,parameters:d})=>c?{snapshot:new $c(l,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,vb(n),Rt(n),n.component??n._loadedComponent??null,n,_b(n)),consumedSegments:l,remainingSegments:u}:null));return o.pipe(bt(c=>null===c?Hi(i):this.getChildConfig(t=n._injector??t,n,r).pipe(bt(({routes:l})=>{const u=n._loadedInjector??t,{snapshot:d,consumedSegments:p,remainingSegments:m}=c,{segmentGroup:H,slicedSegments:S}=mb(i,p,m,l);if(0===S.length&&H.hasChildren())return this.processChildren(u,l,H).pipe(we(N=>null===N?null:[new zn(d,N)]));if(0===l.length&&0===S.length)return ae([new zn(d,[])]);const E=Rt(n)===a;return this.processSegment(u,l,H,S,E?_e:a,!0).pipe(we(N=>[new zn(d,N)]))}))))}getChildConfig(t,i,n){return i.children?ae({routes:i.children,injector:t}):i.loadChildren?void 0!==i._loadedRoutes?ae({routes:i._loadedRoutes,injector:i._loadedInjector}):function tJ(e,t,i,n){const r=t.canLoad;return void 0===r||0===r.length?ae(!0):ae(r.map(s=>{const o=bi(s,e);return n3(function BQ(e){return e&&La(e.canLoad)}(o)?o.canLoad(t,i):e.runInContext(()=>o(t,i)))})).pipe(wi(),db())}(t,i,n).pipe(F1(r=>r?this.configLoader.loadChildren(t,i).pipe(q1(a=>{i._loadedRoutes=a.routes,i._loadedInjector=a.injector})):function rJ(e){return ga(ob(!1,3))}())):ae({routes:[],injector:t})}}function gJ(e){const t=e.value.routeConfig;return t&&""===t.path}function gb(e){const t=[],i=new Set;for(const n of e){if(!gJ(n)){t.push(n);continue}const r=t.find(a=>n.value.routeConfig===a.value.routeConfig);void 0!==r?(r.children.push(...n.children),i.add(r)):t.push(n)}for(const n of i){const r=gb(n.children);t.push(new zn(n.value,r))}return t.filter(n=>!i.has(n))}function vb(e){return e.data||{}}function _b(e){return e.resolve||{}}function Cb(e){return"string"==typeof e.title||null===e.title}function G7(e){return bt(t=>{const i=e(t);return i?Q1(i).pipe(we(()=>t)):ae(t)})}const Vi=new te("ROUTES");let $7=(()=>{var e;class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=J(_g)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return ae(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);const r=n3(n.loadComponent()).pipe(we(Mb),q1(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),S7(()=>{this.componentLoaders.delete(n)})),a=new xy(r,()=>new fe).pipe(H7());return this.componentLoaders.set(n,a),a}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return ae({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const s=function wJ(e,t,i,n){return n3(e.loadChildren()).pipe(we(Mb),F1(r=>r instanceof Dm||Array.isArray(r)?ae(r):Q1(t.compileModuleAsync(r))),we(r=>{n&&n(e);let a,s,o=!1;return Array.isArray(r)?(s=r,!0):(a=r.create(i).injector,s=a.get(Vi,[],{optional:!0,self:!0}).flat()),{routes:s.map(B7),injector:a}}))}(r,this.compiler,n,this.onLoadEndListener).pipe(S7(()=>{this.childrenLoaders.delete(r)})),o=new xy(s,()=>new fe).pipe(H7());return this.childrenLoaders.set(r,o),o}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function Mb(e){return function HJ(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let Qc=(()=>{var e;class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new fe,this.transitionAbortSubject=new fe,this.configLoader=J($7),this.environmentInjector=J(O2),this.urlSerializer=J(Ma),this.rootContexts=J(Da),this.inputBindingEnabled=null!==J(Wc,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>ae(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=a=>this.events.next(new gQ(a)),this.configLoader.onLoadStartListener=a=>this.events.next(new mQ(a))}complete(){this.transitions?.complete()}handleNavigationRequest(n){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...n,id:r})}setupNavigations(n,r,a){return this.transitions=new ct({id:0,currentUrlTree:r,currentRawUrl:r,currentBrowserUrl:r,extractedUrl:n.urlHandlingStrategy.extract(r),urlAfterRedirects:n.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Ha,restoredState:null,currentSnapshot:a.snapshot,targetSnapshot:null,currentRouterState:a,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(x1(s=>0!==s.id),we(s=>({...s,extractedUrl:n.urlHandlingStrategy.extract(s.rawUrl)})),bt(s=>{this.currentTransition=s;let o=!1,c=!1;return ae(s).pipe(q1(l=>{this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),bt(l=>{const u=l.currentBrowserUrl.toString(),d=!n.navigated||l.extractedUrl.toString()!==u||u!==l.currentUrlTree.toString();if(!d&&"reload"!==(l.extras.onSameUrlNavigation??n.onSameUrlNavigation)){const m="";return this.events.next(new Mi(l.id,this.urlSerializer.serialize(l.rawUrl),m,0)),l.resolve(null),ot}if(n.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return ae(l).pipe(bt(m=>{const H=this.transitions?.getValue();return this.events.next(new Va(m.id,this.urlSerializer.serialize(m.extractedUrl),m.source,m.restoredState)),H!==this.transitions?.getValue()?ot:Promise.resolve(m)}),function vJ(e,t,i,n,r,a){return F1(s=>function hJ(e,t,i,n,r,a,s="emptyOnly"){return new pJ(e,t,i,n,r,s,a).recognize()}(e,t,i,n,s.extractedUrl,r,a).pipe(we(({state:o,tree:c})=>({...s,targetSnapshot:o,urlAfterRedirects:c}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,n.paramsInheritanceStrategy),q1(m=>{s.targetSnapshot=m.targetSnapshot,s.urlAfterRedirects=m.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:m.urlAfterRedirects};const H=new Qy(m.id,this.urlSerializer.serialize(m.extractedUrl),this.urlSerializer.serialize(m.urlAfterRedirects),m.targetSnapshot);this.events.next(H)}));if(d&&n.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){const{id:m,extractedUrl:H,source:S,restoredState:E,extras:N}=l,z=new Va(m,this.urlSerializer.serialize(H),S,E);this.events.next(z);const B=tb(0,this.rootComponentType).snapshot;return this.currentTransition=s={...l,targetSnapshot:B,urlAfterRedirects:H,extras:{...N,skipLocationChange:!1,replaceUrl:!1}},ae(s)}{const m="";return this.events.next(new Mi(l.id,this.urlSerializer.serialize(l.extractedUrl),m,1)),l.resolve(null),ot}}),q1(l=>{const u=new fQ(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(u)}),we(l=>(this.currentTransition=s={...l,guards:RQ(l.targetSnapshot,l.currentSnapshot,this.rootContexts)},s)),function qQ(e,t){return F1(i=>{const{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:a,canDeactivateChecks:s}}=i;return 0===s.length&&0===a.length?ae({...i,guardsResult:!0}):function YQ(e,t,i,n){return Q1(e).pipe(F1(r=>function eJ(e,t,i,n,r){const a=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return a&&0!==a.length?ae(a.map(o=>{const c=Ea(t)??r,l=bi(o,c);return n3(function GQ(e){return e&&La(e.canDeactivate)}(l)?l.canDeactivate(e,t,i,n):c.runInContext(()=>l(e,t,i,n))).pipe(P3())})).pipe(wi()):ae(!0)}(r.component,r.route,i,t,n)),P3(r=>!0!==r,!0))}(s,n,r,e).pipe(F1(o=>o&&function FQ(e){return"boolean"==typeof e}(o)?function KQ(e,t,i,n){return Q1(t).pipe(va(r=>$r(function QQ(e,t){return null!==e&&t&&t(new vQ(e)),ae(!0)}(r.route.parent,n),function ZQ(e,t){return null!==e&&t&&t(new CQ(e)),ae(!0)}(r.route,n),function XQ(e,t,i){const n=t[t.length-1],a=t.slice(0,t.length-1).reverse().map(s=>function OQ(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(s)).filter(s=>null!==s).map(s=>Ey(()=>ae(s.guards.map(c=>{const l=Ea(s.node)??i,u=bi(c,l);return n3(function jQ(e){return e&&La(e.canActivateChild)}(u)?u.canActivateChild(n,e):l.runInContext(()=>u(n,e))).pipe(P3())})).pipe(wi())));return ae(a).pipe(wi())}(e,r.path,i),function JQ(e,t,i){const n=t.routeConfig?t.routeConfig.canActivate:null;if(!n||0===n.length)return ae(!0);const r=n.map(a=>Ey(()=>{const s=Ea(t)??i,o=bi(a,s);return n3(function UQ(e){return e&&La(e.canActivate)}(o)?o.canActivate(t,e):s.runInContext(()=>o(t,e))).pipe(P3())}));return ae(r).pipe(wi())}(e,r.route,i))),P3(r=>!0!==r,!0))}(n,a,e,t):ae(o)),we(o=>({...i,guardsResult:o})))})}(this.environmentInjector,l=>this.events.next(l)),q1(l=>{if(s.guardsResult=l.guardsResult,U3(l.guardsResult))throw sb(0,l.guardsResult);const u=new dQ(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(u)}),x1(l=>!!l.guardsResult||(this.cancelNavigationTransition(l,"",3),!1)),G7(l=>{if(l.guards.canActivateChecks.length)return ae(l).pipe(q1(u=>{const d=new hQ(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}),bt(u=>{let d=!1;return ae(u).pipe(function _J(e,t){return F1(i=>{const{targetSnapshot:n,guards:{canActivateChecks:r}}=i;if(!r.length)return ae(i);let a=0;return Q1(r).pipe(va(s=>function CJ(e,t,i,n){const r=e.routeConfig,a=e._resolve;return void 0!==r?.title&&!Cb(r)&&(a[_a]=r.title),function MJ(e,t,i,n){const r=function yJ(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===r.length)return ae({});const a={};return Q1(r).pipe(F1(s=>function bJ(e,t,i,n){const r=Ea(t)??n,a=bi(e,r);return n3(a.resolve?a.resolve(t,i):r.runInContext(()=>a(t,i)))}(e[s],t,i,n).pipe(P3(),q1(o=>{a[s]=o}))),V7(1),X_(a),F3(s=>fb(s)?ot:ga(s)))}(a,e,t,n).pipe(we(s=>(e._resolvedData=s,e.data=nb(e,i).resolve,r&&Cb(r)&&(e.data[_a]=r.title),null)))}(s.route,n,e,t)),q1(()=>a++),V7(1),F1(s=>a===r.length?ae(i):ot))})}(n.paramsInheritanceStrategy,this.environmentInjector),q1({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(u,"",2)}}))}),q1(u=>{const d=new pQ(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}))}),G7(l=>{const u=d=>{const p=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&p.push(this.configLoader.loadComponent(d.routeConfig).pipe(q1(m=>{d.component=m}),we(()=>{})));for(const m of d.children)p.push(...u(m));return p};return w7(u(l.targetSnapshot.root)).pipe(Oc(),e2(1))}),G7(()=>this.afterPreactivation()),we(l=>{const u=function VQ(e,t,i){const n=za(e,t._root,i?i._root:void 0);return new eb(n,t)}(n.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=s={...l,targetRouterState:u},s}),q1(()=>{this.events.next(new L7)}),((e,t,i,n)=>we(r=>(new IQ(t,r.targetRouterState,r.currentRouterState,i,n).activate(e),r)))(this.rootContexts,n.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),e2(1),q1({next:l=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new i3(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),n.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{o=!0}}),O1(this.transitionAbortSubject.pipe(q1(l=>{throw l}))),S7(()=>{o||c||this.cancelNavigationTransition(s,"",1),this.currentNavigation?.id===s.id&&(this.currentNavigation=null)}),F3(l=>{if(c=!0,cb(l))this.events.next(new Sa(s.id,this.urlSerializer.serialize(s.extractedUrl),l.message,l.cancellationCode)),function zQ(e){return cb(e)&&U3(e.url)}(l)?this.events.next(new N7(l.url)):s.resolve(!1);else{this.events.next(new Gc(s.id,this.urlSerializer.serialize(s.extractedUrl),l,s.targetSnapshot??void 0));try{s.resolve(n.errorHandler(l))}catch(u){s.reject(u)}}return ot}))}))}cancelNavigationTransition(n,r,a){const s=new Sa(n.id,this.urlSerializer.serialize(n.extractedUrl),r,a);this.events.next(s),n.resolve(!1)}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function yb(e){return e!==Ha}let bb=(()=>{var e;class t{buildTitle(n){let r,a=n.root;for(;void 0!==a;)r=this.getResolvedTitleForRoute(a)??r,a=a.children.find(s=>s.outlet===_e);return r}getResolvedTitleForRoute(n){return n.data[_a]}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:function(){return J(VJ)},providedIn:"root"}),t})(),VJ=(()=>{var e;class t extends bb{constructor(n){super(),this.title=n}updateTitle(n){const r=this.buildTitle(n);void 0!==r&&this.title.setTitle(r)}}return(e=t).\u0275fac=function(n){return new(n||e)(q(Pv))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),SJ=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:function(){return J(zJ)},providedIn:"root"}),t})();class DJ{shouldDetach(t){return!1}store(t,i){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,i){return t.routeConfig===i.routeConfig}}let zJ=(()=>{var e;class t extends DJ{}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=I1(e)))(r||e)}}(),e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const Jc=new te("",{providedIn:"root",factory:()=>({})});let EJ=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:function(){return J(xJ)},providedIn:"root"}),t})(),xJ=(()=>{var e;class t{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();var Na=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(Na||{});function wb(e,t){e.events.pipe(x1(i=>i instanceof i3||i instanceof Sa||i instanceof Gc||i instanceof Mi),we(i=>i instanceof i3||i instanceof Mi?Na.COMPLETE:i instanceof Sa&&(0===i.code||1===i.code)?Na.REDIRECTING:Na.FAILED),x1(i=>i!==Na.REDIRECTING),e2(1)).subscribe(()=>{t()})}function AJ(e){throw e}function LJ(e,t,i){return t.parse("/")}const NJ={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},TJ={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let _2=(()=>{var e;class t{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=J(gg),this.isNgZoneEnabled=!1,this._events=new fe,this.options=J(Jc,{optional:!0})||{},this.pendingTasks=J(vg),this.errorHandler=this.options.errorHandler||AJ,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||LJ,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=J(EJ),this.routeReuseStrategy=J(SJ),this.titleStrategy=J(bb),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=J(Vi,{optional:!0})?.flat()??[],this.navigationTransitions=J(Qc),this.urlSerializer=J(Ma),this.location=J(z8),this.componentInputBindingEnabled=!!J(Wc,{optional:!0}),this.eventsSubscription=new Se,this.isNgZoneEnabled=J(Me)instanceof Me&&Me.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Ci,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=tb(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(n=>{this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId},n=>{this.console.warn(`Unhandled Navigation Error: ${n}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const n=this.navigationTransitions.events.subscribe(r=>{try{const{currentTransition:a}=this.navigationTransitions;if(null===a)return void(Hb(r)&&this._events.next(r));if(r instanceof Va)yb(a.source)&&(this.browserUrlTree=a.extractedUrl);else if(r instanceof Mi)this.rawUrlTree=a.rawUrl;else if(r instanceof Qy){if("eager"===this.urlUpdateStrategy){if(!a.extras.skipLocationChange){const s=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl);this.setBrowserUrl(s,a)}this.browserUrlTree=a.urlAfterRedirects}}else if(r instanceof L7)this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects);else if(r instanceof Sa)0!==r.code&&1!==r.code&&(this.navigated=!0),(3===r.code||2===r.code)&&this.restoreHistory(a);else if(r instanceof N7){const s=this.urlHandlingStrategy.merge(r.url,a.currentRawUrl),o={skipLocationChange:a.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||yb(a.source)};this.scheduleNavigation(s,Ha,null,o,{resolve:a.resolve,reject:a.reject,promise:a.promise})}r instanceof Gc&&this.restoreHistory(a,!0),r instanceof i3&&(this.navigated=!0),Hb(r)&&this._events.next(r)}catch(a){this.navigationTransitions.transitionAbortSubject.next(a)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const n=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Ha,n)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(n=>{const r="popstate"===n.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(n.url,r,n.state)},0)}))}navigateToSyncWithBrowser(n,r,a){const s={replaceUrl:!0},o=a?.navigationId?a:null;if(a){const l={...a};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(s.state=l)}const c=this.parseUrl(n);this.scheduleNavigation(c,r,o,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(B7),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){const{relativeTo:a,queryParams:s,fragment:o,queryParamsHandling:c,preserveFragment:l}=r,u=l?this.currentUrlTree.fragment:o;let p,d=null;switch(c){case"merge":d={...this.currentUrlTree.queryParams,...s};break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}null!==d&&(d=this.removeEmptyProps(d));try{p=Gy(a?a.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof n[0]||!n[0].startsWith("/"))&&(n=[]),p=this.currentUrlTree.root}return $y(p,n,d,u??null)}navigateByUrl(n,r={skipLocationChange:!1}){const a=U3(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(a,this.rawUrlTree);return this.scheduleNavigation(s,Ha,null,r)}navigate(n,r={skipLocationChange:!1}){return function IJ(e){for(let t=0;t<e.length;t++)if(null==e[t])throw new F(4008,!1)}(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){let r;try{r=this.urlSerializer.parse(n)}catch(a){r=this.malformedUriErrorHandler(a,this.urlSerializer,n)}return r}isActive(n,r){let a;if(a=!0===r?{...NJ}:!1===r?{...TJ}:r,U3(n))return Iy(this.currentUrlTree,n,a);const s=this.parseUrl(n);return Iy(this.currentUrlTree,s,a)}removeEmptyProps(n){return Object.keys(n).reduce((r,a)=>{const s=n[a];return null!=s&&(r[a]=s),r},{})}scheduleNavigation(n,r,a,s,o){if(this.disposed)return Promise.resolve(!1);let c,l,u;o?(c=o.resolve,l=o.reject,u=o.promise):u=new Promise((p,m)=>{c=p,l=m});const d=this.pendingTasks.add();return wb(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:a,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:n,extras:s,resolve:c,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(p=>Promise.reject(p))}setBrowserUrl(n,r){const a=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(a)||r.extras.replaceUrl){const o={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId)};this.location.replaceState(a,"",o)}else{const s={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId+1)};this.location.go(a,"",s)}}restoreHistory(n,r=!1){if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-this.browserPageId;0!==s?this.location.historyGo(s):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===s&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function Hb(e){return!(e instanceof L7||e instanceof N7)}let xn=(()=>{var e;class t{constructor(n,r,a,s,o,c){this.router=n,this.route=r,this.tabIndexAttribute=a,this.renderer=s,this.el=o,this.locationStrategy=c,this.href=null,this.commands=null,this.onChanges=new fe,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const l=o.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=n.events.subscribe(u=>{u instanceof i3&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){null!=n?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,r,a,s,o){return!!(null===this.urlTree||this.isAnchorElement&&(0!==n||r||a||s||o||"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 n=null===this.href?null:function Ad(e,t,i){return function JN(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?xd:D4}(t,i)(e)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(n,r){const a=this.renderer,s=this.el.nativeElement;null!==r?a.setAttribute(s,n,r):a.removeAttribute(s,n)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return(e=t).\u0275fac=function(n){return new(n||e)(w(_2),w(En),function f3(e){return function gL(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const i=e.attrs;if(i){const n=i.length;let r=0;for(;r<n;){const a=i[r];if(wf(a))break;if(0===a)r+=2;else if("number"==typeof a)for(r++;r<n&&"string"==typeof i[r];)r++;else{if(a===t)return i[r+1];r+=2}}}return null}(o2(),e)}("tabindex"),w(c2),w(Ae),w($n))},e.\u0275dir=j({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,r){1&n&&O("click",function(s){return r.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),2&n&&W("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",ei],skipLocationChange:["skipLocationChange","skipLocationChange",ei],replaceUrl:["replaceUrl","replaceUrl",ei],routerLink:"routerLink"},standalone:!0,features:[Gh,v1]}),t})();class Vb{}let kJ=(()=>{var e;class t{constructor(n,r,a,s,o){this.router=n,this.injector=a,this.preloadingStrategy=s,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(x1(n=>n instanceof i3),va(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){const a=[];for(const s of r){s.providers&&!s._injector&&(s._injector=Yl(s.providers,n,`Route: ${s.path}`));const o=s._injector??n,c=s._loadedInjector??o;(s.loadChildren&&!s._loadedRoutes&&void 0===s.canLoad||s.loadComponent&&!s._loadedComponent)&&a.push(this.preloadConfig(o,s)),(s.children||s._loadedRoutes)&&a.push(this.processRoutes(c,s.children??s._loadedRoutes))}return Q1(a).pipe(e4())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let a;a=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(n,r):ae(null);const s=a.pipe(F1(o=>null===o?ae(void 0):(r._loadedRoutes=o.routes,r._loadedInjector=o.injector,this.processRoutes(o.injector??n,o.routes))));return r.loadComponent&&!r._loadedComponent?Q1([s,this.loader.loadComponent(r)]).pipe(e4()):s})}}return(e=t).\u0275fac=function(n){return new(n||e)(q(_2),q(_g),q(O2),q(Vb),q($7))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const W7=new te("");let Sb=(()=>{var e;class t{constructor(n,r,a,s,o={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=a,this.zone=s,this.options=o,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},o.scrollPositionRestoration=o.scrollPositionRestoration||"disabled",o.anchorScrolling=o.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof Va?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof i3?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof Mi&&0===n.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof Jy&&(n.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Jy(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return(e=t).\u0275fac=function(n){!function vh(){throw new Error("invalid")}()},e.\u0275prov=$({token:e,factory:e.\u0275fac}),t})();function An(e,t){return{\u0275kind:e,\u0275providers:t}}function zb(){const e=J(B1);return t=>{const i=e.get(Jt);if(t!==i.components[0])return;const n=e.get(_2),r=e.get(Eb);1===e.get(q7)&&n.initialNavigation(),e.get(xb,null,He.Optional)?.setUpPreloading(),e.get(W7,null,He.Optional)?.init(),n.resetRootComponentType(i.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}const Eb=new te("",{factory:()=>new fe}),q7=new te("",{providedIn:"root",factory:()=>1}),xb=new te("");function UJ(e){return An(0,[{provide:xb,useExisting:kJ},{provide:Vb,useExisting:e}])}const Ab=new te("ROUTER_FORROOT_GUARD"),GJ=[z8,{provide:Ma,useClass:D7},_2,Da,{provide:En,useFactory:function Db(e){return e.routerState.root},deps:[_2]},$7,[]];function $J(){return new Vg("Router",_2)}let Lb=(()=>{var e;class t{constructor(n){}static forRoot(n,r){return{ngModule:t,providers:[GJ,[],{provide:Vi,multi:!0,useValue:n},{provide:Ab,useFactory:KJ,deps:[[_2,new bs,new ws]]},{provide:Jc,useValue:r||{}},r?.useHash?{provide:$n,useClass:nv}:{provide:$n,useClass:tv},{provide:W7,useFactory:()=>{const e=J(QB),t=J(Me),i=J(Jc),n=J(Qc),r=J(Ma);return i.scrollOffset&&e.setOffset(i.scrollOffset),new Sb(r,n,e,t,i)}},r?.preloadingStrategy?UJ(r.preloadingStrategy).\u0275providers:[],{provide:Vg,multi:!0,useFactory:$J},r?.initialNavigation?ZJ(r):[],r?.bindToComponentInputs?An(8,[ab,{provide:Wc,useExisting:ab}]).\u0275providers:[],[{provide:Nb,useFactory:zb},{provide:v8,multi:!0,useExisting:Nb}]]}}static forChild(n){return{ngModule:t,providers:[{provide:Vi,multi:!0,useValue:n}]}}}return(e=t).\u0275fac=function(n){return new(n||e)(q(Ab,8))},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})();function KJ(e){return"guarded"}function ZJ(e){return["disabled"===e.initialNavigation?An(3,[{provide:l8,multi:!0,useFactory:()=>{const t=J(_2);return()=>{t.setUpLocationChangeListener()}}},{provide:q7,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?An(2,[{provide:q7,useValue:0},{provide:l8,multi:!0,deps:[B1],useFactory:t=>{const i=t.get(AF,Promise.resolve());return()=>i.then(()=>new Promise(n=>{const r=t.get(_2),a=t.get(Eb);wb(r,()=>{n(!0)}),t.get(Qc).afterPreactivation=()=>(n(!0),a.closed?ae(void 0):a),r.initialNavigation()}))}}]).\u0275providers:[]]}const Nb=new te("");let JJ=(()=>{var e;class t{constructor(){V(this,"title","config-ui"),V(this,"logoSrc","assets/images/homebridge-eufy-security.png")}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-root"]],decls:16,vars:1,consts:[[1,"card","card-body",2,"width","100%"],[1,"logo"],[1,"logo",3,"src"],[1,"text-center"],[2,"font-weight","800"],[1,"pluginContent",2,"max-width","720px !important"],[1,"footer"]],template:function(n,r){1&n&&(g(0,"div",0)(1,"div",1),P(2,"img",2),_(),g(3,"h3",3),y(4," Welcome to"),P(5,"br"),g(6,"b",4),y(7,"Eufy Security Plugin"),_()(),g(8,"h6",3),y(9,"Homebridge plugin for Eufy Security Devices"),_(),P(10,"hr"),g(11,"div",5),P(12,"router-outlet"),_(),P(13,"hr"),g(14,"div",6),y(15,"We are not affiliated, associated, authorized, endorsed by, or in any way officially connected with Anker Innovations Technology Co.LTd, and Shenzhen Oceanwing Smart Innovations Technology Co., Ltd, and its affiliated companies within the Anker Group, or any of its subsidiaries or its affiliates. "),_()()),2&n&&(C(2),b("src",r.logoSrc,D4))},dependencies:[P7],styles:["div.logo[_ngcontent-%COMP%]{text-align:center;margin:0 0 5px}img.logo[_ngcontent-%COMP%]{text-align:center;margin:0 auto;max-width:75%;height:auto;object-fit:cover}.footer[_ngcontent-%COMP%]{font-size:small;color:#888}"]})),t})();function Tb(e,t,i,n,r,a,s){try{var o=e[a](s),c=o.value}catch(l){return void i(l)}o.done?t(c):Promise.resolve(c).then(n,r)}function De(e){return function(){var t=this,i=arguments;return new Promise(function(n,r){var a=e.apply(t,i);function s(c){Tb(a,n,r,s,o,"next",c)}function o(c){Tb(a,n,r,s,o,"throw",c)}s(void 0)})}}var Gb={prefix:"fas",iconName:"circle-minus",icon:[512,512,["minus-circle"],"f056","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM184 232H328c13.3 0 24 10.7 24 24s-10.7 24-24 24H184c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},eH={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5L373 389.9z"]},fu={prefix:"fas",iconName:"screwdriver-wrench",icon:[512,512,["tools"],"f7d9","M78.6 5C69.1-2.4 55.6-1.5 47 7L7 47c-8.5 8.5-9.4 22-2.1 31.6l80 104c4.5 5.9 11.6 9.4 19 9.4h54.1l109 109c-14.7 29-10 65.4 14.3 89.6l112 112c12.5 12.5 32.8 12.5 45.3 0l64-64c12.5-12.5 12.5-32.8 0-45.3l-112-112c-24.2-24.2-60.6-29-89.6-14.3l-109-109V104c0-7.5-3.5-14.5-9.4-19L78.6 5zM19.9 396.1C7.2 408.8 0 426.1 0 444.1C0 481.6 30.4 512 67.9 512c18 0 35.3-7.2 48-19.9L233.7 374.3c-7.8-20.9-9-43.6-3.6-65.1l-61.7-61.7L19.9 396.1zM512 144c0-10.5-1.1-20.7-3.2-30.5c-2.4-11.2-16.1-14.1-24.2-6l-63.9 63.9c-3 3-7.1 4.7-11.3 4.7H352c-8.8 0-16-7.2-16-16V102.6c0-4.2 1.7-8.3 4.7-11.3l63.9-63.9c8.1-8.1 5.2-21.8-6-24.2C388.7 1.1 378.5 0 368 0C288.5 0 224 64.5 224 144l0 .8 85.3 85.3c36-9.1 75.8 .5 104 28.7L429 274.5c49-23 83-72.8 83-130.5zM56 432a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},hS={prefix:"fas",iconName:"circle",icon:[512,512,[128308,128309,128992,128993,128994,128995,128996,9679,9898,9899,11044,61708,61915],"f111","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512z"]},Lu={prefix:"fas",iconName:"rotate",icon:[512,512,[128260,"sync-alt"],"f2f1","M142.9 142.9c62.2-62.2 162.7-62.5 225.3-1L327 183c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H463.5c0 0 0 0 0 0H472c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2L413.4 96.6c-87.6-86.5-228.7-86.2-315.8 1C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5c7.7-21.8 20.2-42.3 37.8-59.8zM16 312v7.6 .7V440c0 9.7 5.8 18.5 14.8 22.2s19.3 1.7 26.2-5.2l41.6-41.6c87.6 86.5 228.7 86.2 315.8-1c24.4-24.4 42.1-53.1 52.9-83.7c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.2 62.2-162.7 62.5-225.3 1L185 329c6.9-6.9 8.9-17.2 5.2-26.2s-12.5-14.8-22.2-14.8H48.4h-.7H40c-13.3 0-24 10.7-24 24z"]},ME={prefix:"fas",iconName:"circle-plus",icon:[512,512,["plus-circle"],"f055","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM232 344V280H168c-13.3 0-24-10.7-24-24s10.7-24 24-24h64V168c0-13.3 10.7-24 24-24s24 10.7 24 24v64h64c13.3 0 24 10.7 24 24s-10.7 24-24 24H280v64c0 13.3-10.7 24-24 24s-24-10.7-24-24z"]},x=function(e){return e[e.STATION=0]="STATION",e[e.CAMERA=1]="CAMERA",e[e.SENSOR=2]="SENSOR",e[e.FLOODLIGHT=3]="FLOODLIGHT",e[e.CAMERA_E=4]="CAMERA_E",e[e.DOORBELL=5]="DOORBELL",e[e.BATTERY_DOORBELL=7]="BATTERY_DOORBELL",e[e.CAMERA2C=8]="CAMERA2C",e[e.CAMERA2=9]="CAMERA2",e[e.MOTION_SENSOR=10]="MOTION_SENSOR",e[e.KEYPAD=11]="KEYPAD",e[e.CAMERA2_PRO=14]="CAMERA2_PRO",e[e.CAMERA2C_PRO=15]="CAMERA2C_PRO",e[e.BATTERY_DOORBELL_2=16]="BATTERY_DOORBELL_2",e[e.HB3=18]="HB3",e[e.CAMERA3=19]="CAMERA3",e[e.CAMERA3C=23]="CAMERA3C",e[e.INDOOR_CAMERA=30]="INDOOR_CAMERA",e[e.INDOOR_PT_CAMERA=31]="INDOOR_PT_CAMERA",e[e.SOLO_CAMERA=32]="SOLO_CAMERA",e[e.SOLO_CAMERA_PRO=33]="SOLO_CAMERA_PRO",e[e.INDOOR_CAMERA_1080=34]="INDOOR_CAMERA_1080",e[e.INDOOR_PT_CAMERA_1080=35]="INDOOR_PT_CAMERA_1080",e[e.FLOODLIGHT_CAMERA_8422=37]="FLOODLIGHT_CAMERA_8422",e[e.FLOODLIGHT_CAMERA_8423=38]="FLOODLIGHT_CAMERA_8423",e[e.FLOODLIGHT_CAMERA_8424=39]="FLOODLIGHT_CAMERA_8424",e[e.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT=44]="INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT",e[e.INDOOR_OUTDOOR_CAMERA_2K=45]="INDOOR_OUTDOOR_CAMERA_2K",e[e.INDOOR_OUTDOOR_CAMERA_1080P=46]="INDOOR_OUTDOOR_CAMERA_1080P",e[e.LOCK_BLE=50]="LOCK_BLE",e[e.LOCK_WIFI=51]="LOCK_WIFI",e[e.LOCK_BLE_NO_FINGER=52]="LOCK_BLE_NO_FINGER",e[e.LOCK_WIFI_NO_FINGER=53]="LOCK_WIFI_NO_FINGER",e[e.LOCK_8503=54]="LOCK_8503",e[e.LOCK_8530=55]="LOCK_8530",e[e.LOCK_85A3=56]="LOCK_85A3",e[e.LOCK_8592=57]="LOCK_8592",e[e.LOCK_8504=58]="LOCK_8504",e[e.SOLO_CAMERA_SPOTLIGHT_1080=60]="SOLO_CAMERA_SPOTLIGHT_1080",e[e.SOLO_CAMERA_SPOTLIGHT_2K=61]="SOLO_CAMERA_SPOTLIGHT_2K",e[e.SOLO_CAMERA_SPOTLIGHT_SOLAR=62]="SOLO_CAMERA_SPOTLIGHT_SOLAR",e[e.SOLO_CAMERA_SOLAR=63]="SOLO_CAMERA_SOLAR",e[e.SMART_DROP=90]="SMART_DROP",e[e.BATTERY_DOORBELL_PLUS=91]="BATTERY_DOORBELL_PLUS",e[e.DOORBELL_SOLO=93]="DOORBELL_SOLO",e[e.INDOOR_COST_DOWN_CAMERA=100]="INDOOR_COST_DOWN_CAMERA",e[e.CAMERA_GUN=101]="CAMERA_GUN",e[e.CAMERA_SNAIL=102]="CAMERA_SNAIL",e[e.CAMERA_FG=110]="CAMERA_FG",e[e.CAMERA_GARAGE_T8453_COMMON=131]="CAMERA_GARAGE_T8453_COMMON",e[e.CAMERA_GARAGE_T8452=132]="CAMERA_GARAGE_T8452",e[e.CAMERA_GARAGE_T8453=133]="CAMERA_GARAGE_T8453",e[e.SMART_SAFE_7400=140]="SMART_SAFE_7400",e[e.SMART_SAFE_7401=141]="SMART_SAFE_7401",e[e.SMART_SAFE_7402=142]="SMART_SAFE_7402",e[e.SMART_SAFE_7403=143]="SMART_SAFE_7403",e[e.WALL_LIGHT_CAM=151]="WALL_LIGHT_CAM",e[e.SMART_TRACK_LINK=157]="SMART_TRACK_LINK",e[e.SMART_TRACK_CARD=159]="SMART_TRACK_CARD",e[e.LOCK_8502=180]="LOCK_8502",e[e.LOCK_8506=181]="LOCK_8506",e[e.WALL_LIGHT_CAM_81A0=10005]="WALL_LIGHT_CAM_81A0",e}(x||{});class j3{static isDoorbell(t){return t===x.DOORBELL||t===x.BATTERY_DOORBELL||t===x.BATTERY_DOORBELL_2||t===x.BATTERY_DOORBELL_PLUS||t===x.DOORBELL_SOLO}static isCamera(t){return t===x.CAMERA||t===x.CAMERA2||t===x.CAMERA_E||t===x.CAMERA2C||t===x.INDOOR_CAMERA||t===x.INDOOR_PT_CAMERA||t===x.FLOODLIGHT||t===x.DOORBELL||t===x.BATTERY_DOORBELL||t===x.BATTERY_DOORBELL_2||t===x.BATTERY_DOORBELL_PLUS||t===x.DOORBELL_SOLO||t===x.CAMERA2C_PRO||t===x.CAMERA2_PRO||t===x.CAMERA3||t===x.CAMERA3C||t===x.INDOOR_CAMERA_1080||t===x.INDOOR_PT_CAMERA_1080||t===x.SOLO_CAMERA||t===x.SOLO_CAMERA_PRO||t===x.SOLO_CAMERA_SPOTLIGHT_1080||t===x.SOLO_CAMERA_SPOTLIGHT_2K||t===x.SOLO_CAMERA_SPOTLIGHT_SOLAR||t===x.INDOOR_OUTDOOR_CAMERA_1080P||t===x.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT||t===x.INDOOR_OUTDOOR_CAMERA_2K||t===x.INDOOR_COST_DOWN_CAMERA||t===x.FLOODLIGHT_CAMERA_8422||t===x.FLOODLIGHT_CAMERA_8423||t===x.FLOODLIGHT_CAMERA_8424||t===x.WALL_LIGHT_CAM||t===x.WALL_LIGHT_CAM_81A0||t===x.CAMERA_GARAGE_T8453_COMMON||t===x.CAMERA_GARAGE_T8453||t===x.CAMERA_GARAGE_T8452||t===x.CAMERA_FG}static isBatteryDoorbell(t){return t===x.BATTERY_DOORBELL||t===x.BATTERY_DOORBELL_2||t===x.BATTERY_DOORBELL_PLUS}static isWiredDoorbell(t){return t===x.DOORBELL}static supportsRTSP(t){return t===x.CAMERA||t===x.CAMERA2||t===x.CAMERA2C||t===x.CAMERA2C_PRO||t===x.CAMERA3||t===x.CAMERA3C||t===x.CAMERA_E||t===x.INDOOR_CAMERA||t===x.INDOOR_CAMERA_1080||t===x.INDOOR_OUTDOOR_CAMERA_1080P||t===x.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT||t===x.INDOOR_OUTDOOR_CAMERA_2K||t===x.INDOOR_PT_CAMERA||t===x.INDOOR_PT_CAMERA_1080||t===x.INDOOR_COST_DOWN_CAMERA||t===x.FLOODLIGHT_CAMERA_8423||t===x.CAMERA_GARAGE_T8453_COMMON||t===x.CAMERA_GARAGE_T8453||t===x.CAMERA_GARAGE_T8452||t===x.CAMERA_FG}static supportsTalkback(t){return t===x.CAMERA2||t===x.CAMERA2C||t===x.CAMERA2C_PRO||t===x.CAMERA2_PRO||t===x.CAMERA3||t===x.CAMERA3C||t===x.DOORBELL||t===x.BATTERY_DOORBELL||t===x.BATTERY_DOORBELL_2||t===x.BATTERY_DOORBELL_PLUS||t===x.DOORBELL_SOLO||t===x.INDOOR_CAMERA||t===x.INDOOR_CAMERA_1080||t===x.INDOOR_OUTDOOR_CAMERA_1080P||t===x.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT||t===x.INDOOR_OUTDOOR_CAMERA_2K||t===x.INDOOR_PT_CAMERA||t===x.INDOOR_PT_CAMERA_1080||t===x.INDOOR_COST_DOWN_CAMERA||t===x.SOLO_CAMERA||t===x.SOLO_CAMERA_PRO||t===x.SOLO_CAMERA_SPOTLIGHT_1080||t===x.SOLO_CAMERA_SPOTLIGHT_2K||t===x.SOLO_CAMERA_SPOTLIGHT_SOLAR||t===x.FLOODLIGHT||t===x.FLOODLIGHT_CAMERA_8422||t===x.FLOODLIGHT_CAMERA_8423||t===x.FLOODLIGHT_CAMERA_8424||t===x.WALL_LIGHT_CAM||t===x.WALL_LIGHT_CAM_81A0||t===x.CAMERA_GARAGE_T8453_COMMON||t===x.CAMERA_GARAGE_T8453||t===x.CAMERA_GARAGE_T8452||t===x.CAMERA_FG}}const Uu=new Map([[x.STATION,{image:"homebase2_large.jpg",padding:"0px"}],[x.HB3,{image:"homebase3_large.jpg",padding:"0px"}],[x.CAMERA,{image:"eufycam_large.jpg",padding:"0px"}],[x.SENSOR,{image:"sensor_large.jpg",padding:"0px"}],[x.FLOODLIGHT,{image:"floodlight_large.jpg",padding:"0px"}],[x.CAMERA_E,{image:"eufycam_large.jpg",padding:"0px"}],[x.DOORBELL,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[x.BATTERY_DOORBELL,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[x.CAMERA2C,{image:"eufycam2c_large.jpg",padding:"0px"}],[x.CAMERA2,{image:"eufycam2_large.jpg",padding:"0px"}],[x.CAMERA3C,{image:"eufycam3c_large.jpg",padding:"0px"}],[x.CAMERA3,{image:"eufycam3_large.jpg",padding:"0px"}],[x.MOTION_SENSOR,{image:"motionsensor_large.jpg",padding:"0px"}],[x.KEYPAD,{image:"keypad_large.jpg",padding:"0px"}],[x.CAMERA2_PRO,{image:"eufycam2pro_large.jpg",padding:"0px"}],[x.CAMERA2C_PRO,{image:"eufycam2cpro_large.jpg",padding:"0px"}],[x.BATTERY_DOORBELL_2,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[x.INDOOR_CAMERA,{image:"indoorcammini_large.jpg",padding:"0px"}],[x.INDOOR_PT_CAMERA,{image:"indoorcamp24_large.jpg",padding:"0px"}],[x.SOLO_CAMERA,{image:"solocame20_large.jpg",padding:"0px"}],[x.SOLO_CAMERA_SOLAR,{image:"solocams220.png",padding:"0px"}],[x.SOLO_CAMERA_PRO,{image:"solocame20_large.jpg",padding:"0px"}],[x.INDOOR_CAMERA_1080,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[x.INDOOR_PT_CAMERA_1080,{image:"indoorcamp24_large.jpg",padding:"0px"}],[x.FLOODLIGHT_CAMERA_8422,{image:"floodlight_large.jpg",padding:"0px"}],[x.FLOODLIGHT_CAMERA_8423,{image:"floodlight2pro_large.jpg",padding:"0px"}],[x.FLOODLIGHT_CAMERA_8424,{image:"floodlight2_large.jpg",padding:"0px"}],[x.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[x.INDOOR_OUTDOOR_CAMERA_2K,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[x.INDOOR_OUTDOOR_CAMERA_1080P,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[x.LOCK_BLE,{image:"smartlock_touch_t8510_large.jpg",padding:"0px"}],[x.LOCK_WIFI,{image:"smartlock_touch_t8510_large.jpg",padding:"0px"}],[x.LOCK_BLE_NO_FINGER,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[x.LOCK_WIFI_NO_FINGER,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[x.LOCK_8503,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[x.LOCK_8530,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[x.LOCK_85A3,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[x.LOCK_8592,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[x.LOCK_8504,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[x.SOLO_CAMERA_SPOTLIGHT_1080,{image:"solooutdoorcamc24_large.jpg",padding:"15px"}],[x.SOLO_CAMERA_SPOTLIGHT_2K,{image:"solooutdoorcamc24_large.jpg",padding:"15px"}],[x.SOLO_CAMERA_SPOTLIGHT_SOLAR,{image:"solocams40_large.jpg",padding:"10px"}],[x.SMART_DROP,{image:"smartdrop_t8790_large.jpg",padding:"20px"}],[x.BATTERY_DOORBELL_PLUS,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[x.DOORBELL_SOLO,{image:"wireddoorbelldual_large.jpg",padding:"0px"}],[x.INDOOR_COST_DOWN_CAMERA,{image:"indoorcammini_large.jpg",padding:"0px"}],[x.CAMERA_GUN,{image:"unknown.png",padding:"20px"}],[x.CAMERA_SNAIL,{image:"unknown.png",padding:"20px"}],[x.CAMERA_FG,{image:"4g_lte_starlight_large.jpg",padding:"20px"}],[x.SMART_SAFE_7400,{image:"smartsafe_s10_t7400_large.jpg",padding:"20px"}],[x.SMART_SAFE_7401,{image:"smartsafe_s12_t7401_large.jpg",padding:"20px"}],[x.SMART_SAFE_7402,{image:"unknown.png",padding:"20px"}],[x.SMART_SAFE_7403,{image:"unknown.png",padding:"20px"}],[x.WALL_LIGHT_CAM,{image:"walllight_s100_large.jpg",padding:"20px"}],[x.SMART_TRACK_LINK,{image:"unknown.png",padding:"20px"}],[x.SMART_TRACK_CARD,{image:"unknown.png",padding:"20px"}],[x.LOCK_8502,{image:"unknown.png",padding:"20px"}],[x.LOCK_8506,{image:"unknown.png",padding:"20px"}],[x.WALL_LIGHT_CAM_81A0,{image:"walllight_s100_large",padding:"20px"}],[x.CAMERA_GARAGE_T8452,{image:"garage_camera_t8452_small.jpg",padding:"20px"}],[x.CAMERA_GARAGE_T8453,{image:"unknown.png",padding:"20px"}],[x.CAMERA_GARAGE_T8453_COMMON,{image:"unknown.png",padding:"20px"}]]);let r1=(()=>{var e;class t extends EventTarget{constructor(){super(),V(this,"stations",[]),V(this,"devices",[]),V(this,"accessories$",X1(window.homebridge,"addAccessory")),V(this,"config",void 0),this.init()}init(){this.accessories$.subscribe(n=>{this.loadStoredAccessories()}),this.loadStoredAccessories()}getStations(){return this.stations}getDevices(){return this.devices}getStation(n){return this.stations.find(r=>r.uniqueId===n)}getDevice(n){return this.devices.find(r=>r.uniqueId===n)}loadStoredAccessories(){var n=this;return De(function*(){try{const r=yield window.homebridge.request("/storedAccessories");return r.forEach(a=>{n.addAccessory(a)}),0!==r.length&&n.dispatchEvent(new Event("newAccessories")),Promise.resolve(0!==r.length)}catch(r){return Promise.reject(r)}})()}addAccessory(n){const r=n.station?this.stations:this.devices;r.find(a=>a.uniqueId===n.uniqueId)||r.push(n)}getConfig(){var n=this;return De(function*(){return n.config?Promise.resolve(n.config):n.getPlatformConfig()})()}updateConfig(n,r){var a=this;return De(function*(){try{yield window.homebridge.updatePluginConfig([n]),a.config=n,r&&(yield window.homebridge.savePluginConfig()),a.dispatchEvent(new Event("configChanged"))}catch(s){console.log("There was an error updating the credentials in your config: "+s)}})()}getPlatformConfig(){var n=this;return De(function*(){try{const r=yield window.homebridge.getPluginConfig();return r.length>0?(n.config=r[0],n.config.platform="EufySecurity",Promise.resolve(r[0])):Promise.reject("Could not get Platform config")}catch(r){return Promise.reject(r)}})()}getCachedName(n){return De(function*(){let a;return(yield window.homebridge.getCachedAccessories()).forEach(s=>{s.context&&s.context.device&&s.context.device.uniqueId===n.uniqueId&&s.context.device.station===n.station&&(a=s.context.device.displayName)}),Promise.resolve(a)})()}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)}),V(t,"\u0275prov",$({token:e,factory:e.\u0275fac,providedIn:"root"})),t})();function Mge(e,t){if(1&e){const i=S1();g(0,"div",2)(1,"h4",3),y(2,"Refresh stations and devices"),_(),g(3,"button",4),O("click",function(){return K(Y(i).$implicit.dismiss("Cross click"))}),_()(),g(4,"div",5)(5,"div",6),y(6," To refresh all stations and devices you will be logged into your eufy account. This can interfere with the plugins connection to the eufy cloud. "),P(7,"p"),g(8,"b",7),y(9,"We strongly recommened that you restart the plugin after you're done with the configuration even if you didn't change any settings."),_(),P(10,"p"),y(11," Otherwise you might experience glitches like no longer working push notifications for the plugin (see "),g(12,"a",8),y(13,"here"),_(),y(14," for more information). "),_()(),g(15,"div",9)(16,"a",10),O("click",function(){return K(Y(i).$implicit.close("Login"))}),y(17,"Login with eufy"),_()()}}function yge(e,t){1&e&&(g(0,"div",11)(1,"div",12),P(2,"div",13),g(3,"div",14)(4,"div",15)(5,"div",16),y(6," Loading Accessories... "),g(7,"div",17),P(8,"div",18),_()()()(),P(9,"div",13),_()())}function bge(e,t){if(1&e&&(g(0,"span",42),P(1,"fa-icon",43),_()),2&e){const i=T(3);C(1),b("icon",i.ignoreIcon)}}function wge(e,t){if(1&e&&(g(0,"div",31)(1,"div",32)(2,"div",33)(3,"a",34)(4,"div",35),P(5,"img",36),g(6,"span",37),P(7,"fa-icon",38),_(),I(8,bge,2,1,"span",39),_()()()(),g(9,"span",40),y(10),_(),g(11,"span",41),y(12),_()()),2&e){const i=t.$implicit,n=T(2);let r;C(3),q4("routerLink","/stationConfig/",i.uniqueId,""),C(2),b("src","assets/devices/"+(n.DeviceImage.get(i.type)?null==(r=n.DeviceImage.get(i.type))?null:r.image:"unknown.png"),D4),W("style",n.getDevicePanelStyle(i),hn),C(2),b("icon",n.settingsIcon),C(1),b("ngIf",i.ignored),C(2),pt(i.cachedName?i.cachedName:i.displayName),C(2),Q2("(",i.uniqueId,")")}}function Hge(e,t){if(1&e&&(g(0,"span",42),P(1,"fa-icon",43),_()),2&e){const i=T(3);C(1),b("icon",i.ignoreIcon)}}function Vge(e,t){if(1&e&&(g(0,"div",31)(1,"div",32)(2,"div",33)(3,"a",34)(4,"div",35),P(5,"img",36),g(6,"span",37),P(7,"fa-icon",38),_(),I(8,Hge,2,1,"span",39),_()()()(),g(9,"span",40),y(10),_(),g(11,"span",41),y(12),_()()),2&e){const i=t.$implicit,n=T(2);let r;C(3),q4("routerLink","/cameraConfig/",i.uniqueId,""),C(2),b("src","assets/devices/"+(n.DeviceImage.get(i.type)?null==(r=n.DeviceImage.get(i.type))?null:r.image:"unknown.png"),D4),W("style",n.getDevicePanelStyle(i),hn),C(2),b("icon",n.settingsIcon),C(1),b("ngIf",i.ignored),C(2),pt(i.cachedName?i.cachedName:i.displayName),C(2),Q2("(",i.uniqueId,")")}}function Sge(e,t){if(1&e){const i=S1();g(0,"div",11)(1,"div",19)(2,"div",20)(3,"button",21),O("click",function(){Y(i);const r=T(),a=k2(1);return K(r.openReloadModal(a))}),P(4,"fa-icon",22),_()(),g(5,"div",23)(6,"a",24),y(7,"Plugin Settings"),_()()(),P(8,"p"),g(9,"span"),y(10,"Click on any device below to access its settings."),_(),P(11,"p"),g(12,"div",25)(13,"div",26),y(14," Stations "),_(),g(15,"div",27)(16,"div",19),I(17,wge,13,7,"div",28),_()()(),P(18,"p"),g(19,"div",25)(20,"div",26),y(21," Devices "),_(),g(22,"div",29)(23,"div",19),I(24,Vge,13,7,"div",28),_()()(),P(25,"p"),g(26,"span")(27,"i"),y(28,"The images used above are 'best effort' for now, since we do not own every eufy device. If you experience that your device is depicted with a wrong image please feel free to let us know in an issue on our "),g(29,"a",30),y(30,"Github page."),_()()()()}if(2&e){const i=T();C(4),b("icon",i.reloadIcon),C(13),b("ngForOf",i.stations),C(7),b("ngForOf",i.devices)}}let Dge=(()=>{var e;class t{constructor(n,r,a,s){V(this,"modalService",void 0),V(this,"pluginService",void 0),V(this,"route",void 0),V(this,"routerService",void 0),V(this,"stations",[]),V(this,"devices",[]),V(this,"waitForAccessories",void 0),V(this,"settingsIcon",fu),V(this,"ignoreIcon",eH),V(this,"reloadIcon",Lu),V(this,"DeviceImage",Uu),V(this,"closeResult",""),this.modalService=n,this.pluginService=r,this.route=a,this.routerService=s}ngOnInit(){this.waitForAccessories="true"===this.route.snapshot.paramMap.get("waitForAccessories"),this.pluginService.addEventListener("newAccessories",()=>{console.log("plugin accessories have changed. updating..."),this.updateDevices(),this.updateStations()}),this.updateStations(),this.updateDevices(),!this.waitForAccessories&&0===this.stations.length&&0===this.devices.length&&this.pluginService.loadStoredAccessories().then(n=>{n||this.routerService.navigateByUrl("/login")}).catch(n=>{this.routerService.navigateByUrl("/login")})}updateStations(){this.stations=this.pluginService.getStations(),this.updateProperties()}updateDevices(){this.devices=this.pluginService.getDevices(),this.updateProperties()}updateProperties(){var n=this;return De(function*(){const r=yield n.pluginService.getConfig();Array.isArray(r.ignoreStations)&&n.stations.forEach(a=>{a.ignored=void 0!==r.ignoreStations.find(s=>s===a.uniqueId)}),Array.isArray(r.ignoreDevices)&&n.devices.forEach(a=>{a.ignored=void 0!==r.ignoreDevices.find(s=>s===a.uniqueId)}),n.stations.forEach(a=>{n.pluginService.getCachedName(a).then(s=>a.cachedName=s)}),n.devices.forEach(a=>{n.pluginService.getCachedName(a).then(s=>a.cachedName=s)})})()}openReloadModal(n){this.modalService.open(n,{ariaLabelledBy:"modal-basic-title",centered:!0}).result.then(r=>{this.closeResult=`Closed with: ${r}`},r=>{this.closeResult=`Dismissed ${this.getDismissReason(r)}`})}getDismissReason(n){return n===na.ESC?"by pressing ESC":n===na.BACKDROP_CLICK?"by clicking on a backdrop":`with: ${n}`}getDevicePanelStyle(n){let r="";return n.ignored&&(r+="opacity: 0.2;"),Uu.get(n.type)?r+="padding:"+Uu.get(n.type)?.padding:r+="padding:20px",r}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(aM),w(r1),w(En),w(_2))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-accessory-list"]],inputs:{waitForAccessories:"waitForAccessories"},decls:4,vars:2,consts:[["reloadModal",""],["class","container",4,"ngIf"],[1,"modal-header"],["id","modal-basic-title",1,"modal-title"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[1,"modal-body"],[1,"mb-3"],[2,"color","#dc3545"],["href","https://github.com/homebridge-eufy-security/plugin/issues/59#issuecomment-1147314942","target","_blank","rel","noopener noreferrer"],[1,"modal-footer"],["routerLink","/login",1,"btn","btn-success",3,"click"],[1,"container"],[1,"row","pl-5","pr-5"],[1,"col",2,"max-width","20%"],[1,"col","d-flex","justify-content-center"],[1,"card","shadow-sm","text-center","pt-3","pb-3",2,"width","100%"],[1,"mx-auto"],[1,"progress",2,"height","8px"],["role","progressbar","aria-valuenow","75","aria-valuemin","0","aria-valuemax","100",1,"progress-bar","progress-bar-striped","bg-info","progress-bar-animated",2,"width","75%"],[1,"row"],[1,"col-6"],["type","button",1,"btn","btn-success",3,"click"],["size","lg",3,"icon"],[1,"col-6","text-end"],["routerLink","/advancedConfig",1,"btn","btn-secondary"],[1,"card"],[1,"card-header"],[1,"card-body","pt-0","pb-0"],["class","col-6 col-sm-4 mt-3 mb-3 d-flex flex-column align-items-center",4,"ngFor","ngForOf"],[1,"card-body"],["href","https://github.com/homebridge-eufy-security/plugin","target","_blank","rel","noopener noreferrer"],[1,"col-6","col-sm-4","mt-3","mb-3","d-flex","flex-column","align-items-center"],[1,"col-12","col-sm-7"],[1,"text-center"],[2,"color","black",3,"routerLink"],[1,"device","ratio","ratio-1x1","border","rounded","shadow-sm"],[1,"deviceimage",3,"src"],[1,"devicesettingsicon","d-flex","border","align-items-center","justify-content-center",2,"z-index","15"],["size","2x",3,"icon"],["class","d-flex border align-items-top justify-content-end","style","z-index: 20;",4,"ngIf"],[1,"col-12","text-center"],[1,"col-12","serial","fw-light","text-center"],[1,"d-flex","border","align-items-top","justify-content-end",2,"z-index","20"],["size","xs",1,"mt-sm-1","m-sm-2","m-1","mt-0",3,"icon"]],template:function(n,r){1&n&&(I(0,Mge,18,0,"ng-template",null,0,D2),I(2,yge,10,0,"div",1),I(3,Sge,31,3,"div",1)),2&n&&(C(2),b("ngIf",0===r.stations.length&&0===r.devices.length),C(1),b("ngIf",0!==r.stations.length||0!==r.devices.length))},dependencies:[Xt,D1,xn,Dy],styles:[".device[_ngcontent-%COMP%]:hover{transform:scale(1.05);border-color:#ffc107!important;color:#ffc107}.device[_ngcontent-%COMP%]{background-color:#fff!important;color:#000!important}.device[_ngcontent-%COMP%]:hover .deviceimage[_ngcontent-%COMP%]{opacity:.5}.device[_ngcontent-%COMP%] .devicesettingsicon[_ngcontent-%COMP%]{display:none!important}.device[_ngcontent-%COMP%]:hover .devicesettingsicon[_ngcontent-%COMP%]{display:flex!important;color:#ffa000!important}.serial[_ngcontent-%COMP%]{font-size:12px}"]})),t})();const G3={enableDetailedLogging:!1,CameraMaxLivestreamDuration:30,pollingIntervalMinutes:10,hkHome:1,hkAway:0,hkNight:3,hkOff:63,ignoreStations:[],ignoreDevices:[],country:"US",cameras:[],cleanCache:!0,unbridge:!0};class L1{constructor(t){V(this,"pluginService",void 0),V(this,"config",void 0),this.pluginService=t,this.config=G3,this.pluginService.getConfig().then(i=>{this.config={...this.config,config:i}}).catch(i=>console.log("Could not get config in config interpreter: "+i))}getCameraConfig(t){var i=this;return De(function*(){const n=yield i.pluginService.getConfig();return Array.isArray(n.cameras)?Promise.resolve(n.cameras.find(r=>r.serialNumber===t)):Promise.resolve(void 0)})()}getStationConfig(t){var i=this;return De(function*(){const n=yield i.pluginService.getConfig();return Array.isArray(n.stations)?Promise.resolve(n.stations.find(r=>r.serialNumber===t)):Promise.resolve(void 0)})()}updateConfig(t,i){var n=this;return De(function*(){let r=yield n.pluginService.getConfig();if(i||(r={...G3,...r,...t}),i&&!1===i.station){Array.isArray(r.cameras)||(r.cameras=[]);let a=-1;r.cameras.forEach((s,o)=>{s.serialNumber===i.uniqueId&&(a=o)}),a>=0?r.cameras[a]={...r.cameras[a],...t}:r.cameras.push({serialNumber:i.uniqueId,...t})}else if(i&&!0===i.station){Array.isArray(r.stations)||(r.stations=[]);let a=-1;r.stations.forEach((s,o)=>{s.serialNumber===i.uniqueId&&(a=o)}),a>=0?r.stations[a]={...r.stations[a],...t}:r.stations.push({serialNumber:i.uniqueId,...t})}n.pluginService.updateConfig(r)})()}}let zge=(()=>{var e;class t extends L1{constructor(n){super(n),V(this,"model",!1)}ngOnInit(){this.readValue()}readValue(){Object.prototype.hasOwnProperty.call(this.config,"enableDetailedLogging")&&(this.model=this.config.enableDetailedLogging)}update(){this.updateConfig({enableDetailedLogging:this.model})}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-enable-detailed-logging"]],features:[re],decls:9,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(n,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Debug Mode"),_(),g(4,"div",2)(5,"input",3),O("ngModelChange",function(s){return r.model=s})("change",function(){return r.update()}),_()()(),g(6,"small")(7,"i"),y(8," This will output more information to the homebridge logs. This helps the plugin team to understand what's going on. "),_()()()),2&n&&(C(5),b("ngModel",r.model))},dependencies:[v2,E1,y1],encapsulation:2})),t})(),Ege=(()=>{var e;class t extends L1{constructor(n){super(n),V(this,"value",10),V(this,"inputIsInvalid",!1)}ngOnInit(){this.readValue()}readValue(){Object.prototype.hasOwnProperty.call(this.config,"pollingIntervalMinutes")&&(this.value=this.config.pollingIntervalMinutes)}update(){this.inputIsInvalid=!1,(!this.value||this.value<0)&&(this.inputIsInvalid=!0),this.inputIsInvalid||this.updateConfig({pollingIntervalMinutes:this.value})}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-polling-interval-minutes"]],features:[re],decls:13,vars:2,consts:[[1,"settingsItem","row","p-3","pb-0"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],[1,"input-group","input-group-sm"],["type","number","aria-label","Polling interval minutes","aria-describedby","basic-addon2",3,"ngModel","ngModelChange","change"],[1,"input-group-append"],["id","basic-addon2",1,"input-group-text"]],template:function(n,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Polling Interval"),_(),g(4,"div",2)(5,"div",3)(6,"input",4),O("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),_(),g(7,"div",5)(8,"span",6),y(9,"minutes"),_()()()()(),g(10,"small")(11,"i"),y(12," Time in minutes before polling the eufy cloud for updated device information (set to 0 for no polling). "),_()()()),2&n&&(C(6),b("ngModel",r.value),W("class",r.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},dependencies:[qn,ri,E1,y1],encapsulation:2})),t})(),xge=(()=>{var e;class t extends L1{constructor(n){super(n),V(this,"value",30),V(this,"inputIsInvalid",!1)}ngOnInit(){this.readValue()}readValue(){Object.prototype.hasOwnProperty.call(this.config,"CameraMaxLivestreamDuration")&&(this.value=this.config.CameraMaxLivestreamDuration)}update(){this.inputIsInvalid=!1,(!this.value||this.value<0)&&(this.inputIsInvalid=!0),this.inputIsInvalid||this.updateConfig({CameraMaxLivestreamDuration:this.value})}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-livestream-duration-seconds"]],features:[re],decls:13,vars:2,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],[1,"input-group","input-group-sm"],["type","number","aria-label","Polling interval minutes","aria-describedby","basic-addon2",3,"ngModel","ngModelChange","change"],[1,"input-group-append"],["id","basic-addon2",1,"input-group-text"]],template:function(n,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Maximum Livestream Duration"),_(),g(4,"div",2)(5,"div",3)(6,"input",4),O("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),_(),g(7,"div",5)(8,"span",6),y(9,"seconds"),_()()()()(),g(10,"small")(11,"i"),y(12," Time in second before ending the livestream automatically (longer livestreams imply shorter batterylife) "),_()()()),2&n&&(C(6),b("ngModel",r.value),W("class",r.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},dependencies:[qn,ri,E1,y1],encapsulation:2})),t})(),Age=(()=>{var e;class t{}return e=t,V(t,"\u0275fac",function(n){return new(n||e)}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-edit-credentials"]],decls:6,vars:0,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-center"],[1,"mb-3","mb-sm-0"],["routerLink","/login",1,"btn","btn-secondary","col-12","col-sm-4"]],template:function(n,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span",2),y(3,"Change username, password and country"),_(),g(4,"a",3),y(5,"New Login"),_()()())},dependencies:[xn],encapsulation:2})),t})(),Lge=(()=>{var e;class t extends L1{constructor(n){super(n),V(this,"model",!1)}ngOnInit(){this.readValue()}readValue(){Object.prototype.hasOwnProperty.call(this.config,"cleanCache")&&(this.model=this.config.cleanCache)}update(){this.updateConfig({cleanCache:this.model})}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-clean-cache"]],features:[re],decls:9,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(n,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Clean cache automatically"),_(),g(4,"div",2)(5,"input",3),O("ngModelChange",function(s){return r.model=s})("change",function(){return r.update()}),_()()(),g(6,"small")(7,"i"),y(8," When enabled, you let the plugin clean accessory when removed from the Eufy app. "),_()()()),2&n&&(C(5),b("ngModel",r.model))},dependencies:[v2,E1,y1],encapsulation:2})),t})(),Nge=(()=>{var e;class t extends L1{constructor(n){super(n),V(this,"model",!1)}ngOnInit(){this.readValue()}readValue(){const n=Object.prototype.hasOwnProperty.call(this.config,"unbridge")?this.config.unbridge:G3.unbridge;this.model=n}update(){this.updateConfig({unbridge:this.model})}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-unbridge-accessory"]],features:[re],decls:12,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"],["href","https://github.com/homebridge-eufy-security/plugin/wiki/Bridged-and-Unbridged-Mode-and-Problems","target","_blank","rel","noopener noreferrer"]],template:function(n,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Unbridge Camera"),_(),g(4,"div",2)(5,"input",3),O("ngModelChange",function(s){return r.model=s})("change",function(){return r.update()}),_()()(),g(6,"small")(7,"i"),y(8," Bridged cameras can cause slowdowns of the entire Homebridge instance. If unbridged, the camera will need to be added to HomeKit manually. See "),g(9,"a",4),y(10,"here"),_(),y(11," for mor details. "),_()()()),2&n&&(C(5),b("ngModel",r.model))},dependencies:[v2,E1,y1],encapsulation:2})),t})();function Tge(e,t){1&e&&(g(0,"span"),y(1,"These settings will only apply for this station. The global mappings can be found in the plugin settings."),_())}function Ige(e,t){1&e&&(g(0,"option",6),y(1,"Use global setting"),_()),2&e&&b("ngValue",void 0)}function Rge(e,t){1&e&&(g(0,"option",6),y(1,"Use global setting"),_()),2&e&&b("ngValue",void 0)}function Oge(e,t){1&e&&(g(0,"option",6),y(1,"Use global setting"),_()),2&e&&b("ngValue",void 0)}function kge(e,t){1&e&&(g(0,"option",6),y(1,"Use global setting"),_()),2&e&&b("ngValue",void 0)}let lx=(()=>{var e;class t extends L1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"hkHome",void 0),V(this,"hkAway",void 0),V(this,"hkNight",void 0),V(this,"hkOff",void 0)}ngOnInit(){this.readValue()}readValue(){var n=this;return De(function*(){const r=n.accessory?yield n.getStationConfig(n.accessory.uniqueId):yield n.pluginService.getConfig();r&&Object.prototype.hasOwnProperty.call(r,"hkHome")?n.hkHome=r.hkHome:n.accessory||(n.hkHome=G3.hkHome),r&&Object.prototype.hasOwnProperty.call(r,"hkAway")?n.hkAway=r.hkAway:n.accessory||(n.hkAway=G3.hkAway),r&&Object.prototype.hasOwnProperty.call(r,"hkNight")?n.hkNight=r.hkNight:n.accessory||(n.hkNight=G3.hkNight),r&&Object.prototype.hasOwnProperty.call(r,"hkOff")?n.hkOff=r.hkOff:n.accessory||(n.hkOff=G3.hkOff)})()}update(){var n=this;return De(function*(){let r=n.accessory?yield n.getStationConfig(n.accessory.uniqueId):yield n.pluginService.getConfig();void 0===r&&(r={}),void 0===n.hkHome&&Object.prototype.hasOwnProperty.call(r,"hkHome")?delete r.hkHome:r.hkHome=n.hkHome,void 0===n.hkAway&&Object.prototype.hasOwnProperty.call(r,"hkAway")?delete r.hkAway:r.hkAway=n.hkAway,void 0===n.hkNight&&Object.prototype.hasOwnProperty.call(r,"hkNight")?delete r.hkNight:r.hkNight=n.hkNight,void 0===n.hkOff&&Object.prototype.hasOwnProperty.call(r,"hkOff")?delete r.hkOff:r.hkOff=n.hkOff;let a=yield n.pluginService.getConfig();if(n.accessory){Array.isArray(a.stations)||(a.stations=[]);let s=-1;a.stations.forEach((o,c)=>{o.serialNumber===n.accessory?.uniqueId&&(s=c)}),s>=0?a.stations[s]=r:(r.serialNumber=n.accessory.uniqueId,a.stations.push(r))}else a=r;n.pluginService.updateConfig(a)})()}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-guard-modes-mapping"]],inputs:{accessory:"accessory"},features:[re],decls:90,vars:41,consts:[[1,"settingsItem","row","p-3"],[4,"ngIf"],[1,"input-group","mb-1"],["for","inputGroupSelect01",1,"input-group-text","w-25"],["id","inputGroupSelect01",1,"form-select",3,"ngModel","ngModelChange","change"],[3,"ngValue",4,"ngIf"],[3,"ngValue"],["for","inputGroupSelect02",1,"input-group-text","w-25"],["id","inputGroupSelect02",1,"form-select",3,"ngModel","ngModelChange","change"],["for","inputGroupSelect03",1,"input-group-text","w-25"],["id","inputGroupSelect03",1,"form-select",3,"ngModel","ngModelChange","change"],["for","inputGroupSelect04",1,"input-group-text","w-25"],["id","inputGroupSelect04",1,"form-select",3,"ngModel","ngModelChange","change"]],template:function(n,r){1&n&&(g(0,"div",0)(1,"span"),y(2,"Change how each mode in the HomeKit security system is mapped to the modes in the Eufy App."),_(),P(3,"p"),I(4,Tge,2,0,"span",1),P(5,"p"),g(6,"div",2)(7,"label",3),y(8,"HomeKit Home"),_(),g(9,"select",4),O("ngModelChange",function(s){return r.hkHome=s})("change",function(){return r.update()}),I(10,Ige,2,1,"option",5),g(11,"option",6),y(12,"Eufy Home"),_(),g(13,"option",6),y(14,"Eufy Away"),_(),g(15,"option",6),y(16,"Eufy Schedule"),_(),g(17,"option",6),y(18,"Eufy Custom 1 (Night)"),_(),g(19,"option",6),y(20,"Eufy Custom 2"),_(),g(21,"option",6),y(22,"Eufy Custom 3"),_(),g(23,"option",6),y(24,"Eufy Geofencing"),_(),g(25,"option",6),y(26,"Eufy Disarmed"),_()()(),g(27,"div",2)(28,"label",7),y(29,"HomeKit Away"),_(),g(30,"select",8),O("ngModelChange",function(s){return r.hkAway=s})("change",function(){return r.update()}),I(31,Rge,2,1,"option",5),g(32,"option",6),y(33,"Eufy Home"),_(),g(34,"option",6),y(35,"Eufy Away"),_(),g(36,"option",6),y(37,"Eufy Schedule"),_(),g(38,"option",6),y(39,"Eufy Custom 1 (Night)"),_(),g(40,"option",6),y(41,"Eufy Custom 2"),_(),g(42,"option",6),y(43,"Eufy Custom 3"),_(),g(44,"option",6),y(45,"Eufy Geofencing"),_(),g(46,"option",6),y(47,"Eufy Disarmed"),_()()(),g(48,"div",2)(49,"label",9),y(50,"HomeKit Night"),_(),g(51,"select",10),O("ngModelChange",function(s){return r.hkNight=s})("change",function(){return r.update()}),I(52,Oge,2,1,"option",5),g(53,"option",6),y(54,"Eufy Home"),_(),g(55,"option",6),y(56,"Eufy Away"),_(),g(57,"option",6),y(58,"Eufy Schedule"),_(),g(59,"option",6),y(60,"Eufy Custom 1 (Night)"),_(),g(61,"option",6),y(62,"Eufy Custom 2"),_(),g(63,"option",6),y(64,"Eufy Custom 3"),_(),g(65,"option",6),y(66,"Eufy Geofencing"),_(),g(67,"option",6),y(68,"Eufy Disarmed"),_()()(),g(69,"div",2)(70,"label",11),y(71,"HomeKit Off"),_(),g(72,"select",12),O("ngModelChange",function(s){return r.hkOff=s})("change",function(){return r.update()}),I(73,kge,2,1,"option",5),g(74,"option",6),y(75,"Eufy Home"),_(),g(76,"option",6),y(77,"Eufy Away"),_(),g(78,"option",6),y(79,"Eufy Schedule"),_(),g(80,"option",6),y(81,"Eufy Custom 1 (Night)"),_(),g(82,"option",6),y(83,"Eufy Custom 2"),_(),g(84,"option",6),y(85,"Eufy Custom 3"),_(),g(86,"option",6),y(87,"Eufy Geofencing"),_(),g(88,"option",6),y(89,"Eufy Disarmed"),_()()()()),2&n&&(C(4),b("ngIf",r.accessory),C(5),b("ngModel",r.hkHome),C(1),b("ngIf",r.accessory),C(1),b("ngValue",1),C(2),b("ngValue",0),C(2),b("ngValue",2),C(2),b("ngValue",3),C(2),b("ngValue",4),C(2),b("ngValue",5),C(2),b("ngValue",47),C(2),b("ngValue",63),C(5),b("ngModel",r.hkAway),C(1),b("ngIf",r.accessory),C(1),b("ngValue",1),C(2),b("ngValue",0),C(2),b("ngValue",2),C(2),b("ngValue",3),C(2),b("ngValue",4),C(2),b("ngValue",5),C(2),b("ngValue",47),C(2),b("ngValue",63),C(5),b("ngModel",r.hkNight),C(1),b("ngIf",r.accessory),C(1),b("ngValue",1),C(2),b("ngValue",0),C(2),b("ngValue",2),C(2),b("ngValue",3),C(2),b("ngValue",4),C(2),b("ngValue",5),C(2),b("ngValue",47),C(2),b("ngValue",63),C(5),b("ngModel",r.hkOff),C(1),b("ngIf",r.accessory),C(1),b("ngValue",1),C(2),b("ngValue",0),C(2),b("ngValue",2),C(2),b("ngValue",3),C(2),b("ngValue",4),C(2),b("ngValue",5),C(2),b("ngValue",47),C(2),b("ngValue",63))},dependencies:[D1,w3,H3,yn,E1,y1],encapsulation:2})),t})(),Pge=(()=>{var e;class t{}return e=t,V(t,"\u0275fac",function(n){return new(n||e)}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-reset-plugin"]],decls:9,vars:0,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-center","mb-2"],[1,"mb-3","mb-sm-0"],["routerLink","/reset",1,"btn","btn-danger","col-12","col-sm-4"]],template:function(n,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span",2),y(3,"Reset Plugin"),_(),g(4,"a",3),y(5,"Remove everything"),_()(),g(6,"small")(7,"i"),y(8," This will delete the plugin settings and files. Please be aware that this will not delete any cached accessories from homebridge. You'll have to remove these manually via the homebridge UI. "),_()()())},dependencies:[xn],encapsulation:2})),t})(),Fge=(()=>{var e;class t extends L1{constructor(n){super(n),V(this,"value",!1)}ngOnInit(){this.readValue()}readValue(){Object.prototype.hasOwnProperty.call(this.config,"omitLogFiles")&&(this.value=this.config.omitLogFiles)}update(){this.updateConfig({omitLogFiles:this.value})}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-omit-log-files"]],features:[re],decls:9,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(n,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Don't store log files"),_(),g(4,"div",2)(5,"input",3),O("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),_()()(),g(6,"small")(7,"i"),y(8," This setting prevents log files to be stored to disk. If enabled, log messages will only be written to the Homebridge UI log window. "),_()()()),2&n&&(C(5),b("ngModel",r.value))},dependencies:[v2,E1,y1],encapsulation:2})),t})();var Bge=u1(7);function Uge(e,t){if(1&e&&(g(0,"div",7),y(1),_()),2&e){const i=T();C(1),Q2(" ",i.failureMessage," ")}}function jge(e,t){1&e&&P(0,"span",10)}function Gge(e,t){1&e&&(g(0,"span"),y(1,"Download Logs"),_())}function $ge(e,t){1&e&&(g(0,"span"),y(1," Generating Log File..."),_())}function Wge(e,t){if(1&e){const i=S1();g(0,"button",8),O("click",function(){return Y(i),K(T().downloadLogs())}),I(1,jge,1,0,"span",9),I(2,Gge,2,0,"span",6),I(3,$ge,2,0,"span",6),_()}if(2&e){const i=T();W("disabled",!!i.isDownloading||null),C(1),b("ngIf",i.isDownloading),C(1),b("ngIf",!i.isDownloading),C(1),b("ngIf",i.isDownloading)}}function qge(e,t){if(1&e){const i=S1();g(0,"a",11),O("click",function(){return Y(i),K(T().openLink())}),g(1,"span"),y(2,"Download Logs"),_()()}}function Yge(e,t){if(1&e&&(g(0,"small")(1,"i"),y(2),_()()),2&e){const i=T();C(2),Q2(" ",i.downloadMessage," ")}}function Kge(e,t){1&e&&(g(0,"small")(1,"i"),y(2," The log file should have downloaded. If not click the button again. The file will be named 'Unknown.zip', due to technical reasons."),P(3,"br"),g(4,"b"),y(5,"Please make sure that you have pop-ups allowed for this site. If you're not sure, maybe this "),g(6,"a",12),y(7,"site"),_(),y(8," can help."),_()()())}let Zge=(()=>{var e;class t{constructor(n,r){V(this,"router",void 0),V(this,"zone",void 0),V(this,"routeSub",void 0),V(this,"failed",!1),V(this,"isDownloading",!1),V(this,"hasDownloaded",!1),V(this,"downloadMessage",void 0),V(this,"failureMessage",""),V(this,"logFileLocation",""),this.router=n,this.zone=r}ngOnInit(){this.routeSub=this.router.events.subscribe(n=>{n instanceof Va&&""!==this.logFileLocation&&(console.log("revoke log zip file blob location url."),window.URL.revokeObjectURL(this.logFileLocation),this.logFileLocation="")}),window.homebridge.addEventListener("downloadLogsFileCount",n=>{this.updateDownloadMessage(`Compressing ${n.data.numberOfFiles} log files...`)})}downloadLogs(){var n=this;return De(function*(){try{n.isDownloading=!0;const r=yield window.homebridge.request("/downloadLogs"),a=Bge.lW.from(r.data),s=new File([a],"logs.zip",{type:"application/zip"}),o=window.URL.createObjectURL(s);n.logFileLocation=o,window.open(n.logFileLocation),n.updateDownloadMessage(void 0),n.hasDownloaded=!0}catch(r){console.log(r);const a=r;n.failed=!0,n.updateDownloadMessage(void 0),n.failureMessage=`Generating of compressed logs.zip file did not complete: ${a.message}`}finally{n.isDownloading=!1}})()}openLink(){window.open(this.logFileLocation)}updateDownloadMessage(n){this.zone.run(()=>{this.downloadMessage=n})}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(_2),w(Me))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-download-logs"]],decls:9,vars:5,consts:[[1,"settingsItem","row","p-3"],["class","alert alert-danger","role","alert",4,"ngIf"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-center","mb-2"],[1,"mb-3","mb-sm-0"],["type","button","class","btn btn-secondary col-12 col-sm-4",3,"click",4,"ngIf"],["class","btn btn-success col-12 col-sm-4",3,"click",4,"ngIf"],[4,"ngIf"],["role","alert",1,"alert","alert-danger"],["type","button",1,"btn","btn-secondary","col-12","col-sm-4",3,"click"],["class","spinner-border spinner-border-sm","role","status","aria-hidden","true",4,"ngIf"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm"],[1,"btn","btn-success","col-12","col-sm-4",3,"click"],["href","https://www.howtogeek.com/773082/how-to-disable-pop-up-blocker-in-chrome-firefox-edge-safari/","target","_blank","rel","noopener noreferrer"]],template:function(n,r){1&n&&(g(0,"div",0),I(1,Uge,2,1,"div",1),g(2,"div",2)(3,"span",3),y(4,"Download Logs"),_(),I(5,Wge,4,4,"button",4),I(6,qge,3,0,"a",5),_(),I(7,Yge,3,1,"small",6),I(8,Kge,9,0,"small",6),_()),2&n&&(C(1),b("ngIf",r.failed),C(4),b("ngIf",!r.hasDownloaded),C(1),b("ngIf",r.hasDownloaded),C(1),b("ngIf",r.downloadMessage),C(1),b("ngIf",r.hasDownloaded))},dependencies:[D1],encapsulation:2})),t})(),Qge=(()=>{var e;class t{}return e=t,V(t,"\u0275fac",function(n){return new(n||e)}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-advanced-config-options"]],decls:25,vars:0,consts:[["routerLink","/accessories",1,"btn","btn-secondary","mb-3"],[1,"card"],[1,"card-header"],[1,"card-body","pt-0","pb-4"]],template:function(n,r){1&n&&(g(0,"a",0),y(1,"Back to Devices List"),_(),g(2,"div",1)(3,"div",2),y(4," Advanced Settings "),_(),g(5,"div",3),P(6,"app-edit-credentials")(7,"hr")(8,"app-polling-interval-minutes")(9,"hr")(10,"app-livestream-duration-seconds")(11,"hr")(12,"app-enable-detailed-logging")(13,"hr")(14,"app-omit-log-files")(15,"hr")(16,"app-clean-cache")(17,"hr")(18,"app-unbridge-accessory")(19,"hr")(20,"app-guard-modes-mapping")(21,"hr")(22,"app-download-logs")(23,"hr")(24,"app-reset-plugin"),_()())},dependencies:[xn,zge,Ege,xge,Age,Lge,Nge,lx,Pge,Fge,Zge],encapsulation:2})),t})(),ux=(()=>{var e;class t extends L1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",!1)}ngOnInit(){this.readValue()}readValue(){var n=this;return De(function*(){if(n.config=yield n.pluginService.getConfig(),n.accessory){const r=n.accessory.station?"ignoreStations":"ignoreDevices";Array.isArray(n.config[r])&&(n.value=void 0!==n.config[r].find(a=>a===n.accessory.uniqueId))}})()}update(){var n=this;return De(function*(){if(!n.accessory)return;const r=n.accessory.station?"ignoreStations":"ignoreDevices";n.config=yield n.pluginService.getConfig(),n.value?Array.isArray(n.config[r])&&!n.config[r].find(a=>a===n.accessory.uniqueId)?n.config[r].push(n.accessory.uniqueId):Array.isArray(n.config[r])||(n.config[r]=[n.accessory.uniqueId]):Array.isArray(n.config[r])&&void 0!==n.config[r].find(a=>a===n.accessory.uniqueId)&&(n.config[r]=n.config[r].filter(a=>a!==n.accessory.uniqueId)),n.pluginService.updateConfig(n.config)})()}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-ignore-accessory"]],inputs:{accessory:"accessory"},features:[re],decls:6,vars:2,consts:[[1,"settingsItem","row","p-3","pb-1"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(n,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3),_(),g(4,"div",2)(5,"input",3),O("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),_()()()()),2&n&&(C(3),Q2("Ignore ",r.accessory&&r.accessory.station?"Station":"Device",""),C(2),b("ngModel",r.value))},dependencies:[v2,E1,y1],encapsulation:2})),t})();function Jge(e,t){1&e&&(g(0,"small")(1,"i"),y(2," This option is disabled since doorbells are handled always as cameras. "),_()())}function Xge(e,t){1&e&&(g(0,"small")(1,"i"),y(2," Cameras are handled as Motion Sensor by default, switch this setting to use as Camera "),_()())}let eve=(()=>{var e;class t extends L1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value","true"),V(this,"disabled",!1)}ngOnInit(){this.readValue()}readValue(){var n=this;return De(function*(){n.accessory&&j3.isDoorbell(n.accessory.type)&&(n.value="true",n.disabled=!0,n.update());const r=yield n.getCameraConfig(n.accessory?.uniqueId||"");r&&Object.prototype.hasOwnProperty.call(r,"enableCamera")&&(n.value=r.enableCamera)})()}update(){this.updateConfig({enableCamera:JSON.parse(this.value)},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-enable-camera"]],inputs:{accessory:"accessory"},features:[re],decls:12,vars:4,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],["aria-label","Device Operation Mode",1,"form-select",3,"ngModel","ngModelChange","change"],["value","false"],["value","true"],[4,"ngIf"]],template:function(n,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Operation Mode"),_(),g(4,"div",2)(5,"select",3),O("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),g(6,"option",4),y(7,"Motion Sensor"),_(),g(8,"option",5),y(9,"Camera"),_()()()(),I(10,Jge,3,0,"small",6),I(11,Xge,3,0,"small",6),_()),2&n&&(C(5),b("ngModel",r.value),W("disabled",!!r.disabled||null),C(5),b("ngIf",r.disabled),C(1),b("ngIf",!r.disabled))},dependencies:[D1,w3,H3,yn,E1,y1],encapsulation:2})),t})();function tve(e,t){if(1&e){const i=S1();g(0,"div",1)(1,"span"),y(2,"Display HomeKit button to turn indoor chime on/off"),_(),g(3,"div",2)(4,"input",3),O("ngModelChange",function(r){return Y(i),K(T().indoorChimeButton=r)})("change",function(){return Y(i),K(T().update())}),_()()()}if(2&e){const i=T();C(4),b("ngModel",i.indoorChimeButton)}}let nve=(()=>{var e;class t extends L1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"enableCameraButton",!0),V(this,"enableMotionButton",!0),V(this,"showIndoorChimeButtonSetting",!1),V(this,"indoorChimeButton",false)}ngOnInit(){this.readValue()}readValue(){var n=this;return De(function*(){const r=yield n.getCameraConfig(n.accessory?.uniqueId??"");n.accessory&&void 0!==n.accessory.type&&(n.showIndoorChimeButtonSetting=j3.isBatteryDoorbell(n.accessory.type)||j3.isWiredDoorbell(n.accessory.type)),"enableButton"in r&&(n.enableCameraButton=r.enableButton),"motionButton"in r&&(n.enableMotionButton=r.motionButton),"indoorChimeButton"in r&&(n.indoorChimeButton=r.indoorChimeButton)})()}update(){const n={enableButton:this.enableCameraButton,motionButton:this.enableMotionButton};this.showIndoorChimeButtonSetting&&(n.indoorChimeButton=this.indoorChimeButton),this.updateConfig(n,this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-camera-buttons"]],inputs:{accessory:"accessory"},features:[re],decls:18,vars:3,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"],["class","d-flex justify-content-between align-items-center mb-2",4,"ngIf"],["href","https://github.com/homebridge-eufy-security/plugin/wiki/Common-Issues#unexpected-homekit-behaviour","target","_blank","rel","noopener noreferrer"]],template:function(n,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Display HomeKit switch to switch camera on/off"),_(),g(4,"div",2)(5,"input",3),O("ngModelChange",function(s){return r.enableCameraButton=s})("change",function(){return r.update()}),_()()(),g(6,"div",1)(7,"span"),y(8,"Display HomeKit switch to switch motion detection on/off"),_(),g(9,"div",2)(10,"input",3),O("ngModelChange",function(s){return r.enableMotionButton=s})("change",function(){return r.update()}),_()()(),I(11,tve,5,1,"div",4),g(12,"small")(13,"i"),y(14," When changing these settings you might need to clear accessory cache (homebridge settings) so it can take effect. See "),g(15,"a",5),y(16,"here"),_(),y(17," for more details. "),_()()()),2&n&&(C(5),b("ngModel",r.enableCameraButton),C(5),b("ngModel",r.enableMotionButton),C(1),b("ngIf",r.showIndoorChimeButtonSetting))},dependencies:[D1,v2,E1,y1],encapsulation:2})),t})(),ive=(()=>{var e;class t extends L1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",false)}ngOnInit(){this.readValue()}readValue(){var n=this;return De(function*(){const r=yield n.getCameraConfig(n.accessory?.uniqueId||"");r&&Object.prototype.hasOwnProperty.call(r,"useCachedLocalLivestream")&&(n.value=r.useCachedLocalLivestream)})()}update(){this.updateConfig({useCachedLocalLivestream:this.value},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-livestream-cache"]],inputs:{accessory:"accessory"},features:[re],decls:12,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(n,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Use Local Livestream Caching"),_(),g(4,"div",2)(5,"input",3),O("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),_()()(),g(6,"small")(7,"i")(8,"b"),y(9,"This setting seems only useful if you are able to set the video codec / video compression for the camera in the eufy app to 'low' (aka. H264 codec). If you can, we recommened to do so, since there can be a significant performance boost (aka. startup of livestreams)."),_(),P(10,"p"),y(11," If enabled local livestreams will be kept alive for a short time after the user stops streaming or a snapshot is refreshed (see 'Force Refresh Snapshot' also). This allows subsequent streams to start up much faster, but also may increase power consumption for battery powered devices. Additionally a livestream will be started (cached) immediately after an event (motion, person, doorbell) occurs, so that start up times are decreased. "),_()()()),2&n&&(C(5),b("ngModel",r.value))},dependencies:[v2,E1,y1],encapsulation:2})),t})();function rve(e,t){1&e&&(g(0,"div",5),y(1," Talkback will not work while 'RTSP Streaming' is enabled! "),_())}let ave=(()=>{var e;class t extends L1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",!1),V(this,"talkbackIsEnabled",!1)}ngOnInit(){this.readValue(),this.pluginService.addEventListener("configChanged",()=>this.readValue())}readValue(){var n=this;return De(function*(){const r=yield n.getCameraConfig(n.accessory?.uniqueId||"");r&&Object.prototype.hasOwnProperty.call(r,"rtsp")&&(n.value=r.rtsp),r&&Object.prototype.hasOwnProperty.call(r,"talkback")&&(n.talkbackIsEnabled=r.talkback)})()}update(){this.updateConfig({rtsp:this.value},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-rtsp-streaming"]],inputs:{accessory:"accessory"},features:[re],decls:11,vars:2,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"],["class","alert alert-danger","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-danger"]],template:function(n,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Use RTSP streaming"),_(),g(4,"div",2)(5,"input",3),O("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),_()()(),I(6,rve,2,0,"div",4),g(7,"small")(8,"i"),y(9," Try to utilize RTSP capabilities of some devices. This may result in improved streaming stability. Please be advised that RTSP must be enable within Eufy App first!"),P(10,"br"),_()()()),2&n&&(C(5),b("ngModel",r.value),C(1),b("ngIf",r.talkbackIsEnabled&&r.value))},dependencies:[D1,v2,E1,y1],encapsulation:2})),t})(),sve=(()=>{var e;class t extends L1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",!1),V(this,"samplerate",0)}ngOnInit(){this.readValue()}readValue(){var n=this;return De(function*(){const r=yield n.getCameraConfig(n.accessory?.uniqueId||"");if(r&&r.videoConfig&&Object.prototype.hasOwnProperty.call(r.videoConfig,"audio")&&(n.value=r.videoConfig.audio),r&&r.videoConfig&&Object.prototype.hasOwnProperty.call(r.videoConfig,"audioSampleRate")){const a=r.videoConfig.audioSampleRate;(8===a||16===a||24===a)&&(n.samplerate=a)}})()}update(){var n=this;return De(function*(){if(!n.accessory)return;let r=yield n.getCameraConfig(n.accessory?.uniqueId||"");r||(r={serialNumber:n.accessory?.uniqueId,videoConfig:{}}),Object.prototype.hasOwnProperty.call(r,"videoConfig")||(r.videoConfig={}),r.videoConfig.audio=n.value,r.videoConfig.audioSampleRate=n.samplerate,n.updateConfig(r,n.accessory)})()}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-enable-audio"]],inputs:{accessory:"accessory"},features:[re],decls:25,vars:7,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],["aria-label","Samplerate",1,"form-select",3,"ngModel","ngModelChange","change"],[3,"ngValue"]],template:function(n,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Enable Audio"),_(),g(4,"div",2)(5,"input",3),O("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),_()()(),g(6,"small")(7,"i"),y(8," Try to enable audio streaming for this device."),P(9,"br"),y(10," If you encounter problems try to disable this setting. "),_()(),P(11,"p"),g(12,"div",4)(13,"span"),y(14,"Force Audio Sample Rate"),_(),g(15,"div",5)(16,"select",6),O("ngModelChange",function(s){return r.samplerate=s})("change",function(){return r.update()}),g(17,"option",7),y(18,"Default Sample Rate"),_(),g(19,"option",7),y(20,"8 kHz"),_(),g(21,"option",7),y(22,"16 kHz"),_(),g(23,"option",7),y(24,"24 kHz"),_()()()()()),2&n&&(C(5),b("ngModel",r.value),C(11),b("ngModel",r.samplerate),W("disabled",!r.value||null),C(1),b("ngValue",0),C(2),b("ngValue",8),C(2),b("ngValue",16),C(2),b("ngValue",24))},dependencies:[w3,H3,v2,yn,E1,y1],encapsulation:2})),t})(),ove=(()=>{var e;class t extends L1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",!1)}ngOnInit(){this.readValue()}readValue(){var n=this;return De(function*(){const r=yield n.getCameraConfig(n.accessory?.uniqueId||"");r&&Object.prototype.hasOwnProperty.call(r,"forcerefreshsnap")&&(n.value=r.forcerefreshsnap)})()}update(){this.updateConfig({forcerefreshsnap:this.value},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-force-refreshsnap"]],inputs:{accessory:"accessory"},features:[re],decls:11,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(n,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Force Refresh Snapshot (Deprecated)"),_(),g(4,"div",2)(5,"input",3),O("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),_()()(),g(6,"small")(7,"i"),y(8," When enabled, we will start stream for one frame and use as a snapshot (this can affect the battery life). If it's disabled, we will use the Eufy Cloud API one (which could be really old)."),P(9,"br"),y(10," This option is only used if you have disabled enhanced snapshot handling. "),_()()()),2&n&&(C(5),b("ngModel",r.value))},dependencies:[v2,E1,y1],encapsulation:2})),t})();function cve(e,t){if(1&e&&(g(0,"small")(1,"i")(2,"b"),y(3,"Description:"),_(),y(4," The plugin will try to get the latest possible snapshot. If none is present the plugin will start a livestream to render one frame."),P(5,"br"),y(6," This process might take a few seconds and can slow down your homebridge instance for this duration. If you encounter problems with this method please try another. "),P(7,"p")(8,"fa-icon",6),y(9," Up-to-date Snapshots (events)"),P(10,"br")(11,"fa-icon",6),y(12," Up-to-date Snapshots (HomeKit View)"),P(13,"br")(14,"fa-icon",7),y(15," Performance"),P(16,"br")(17,"fa-icon",7),y(18," Battery life"),P(19,"br"),_()()),2&e){const i=T();C(8),b("icon",i.plusIcon),C(3),b("icon",i.plusIcon),C(3),b("icon",i.minusIcon),C(3),b("icon",i.minusIcon)}}function lve(e,t){if(1&e&&(g(0,"small")(1,"i")(2,"b"),y(3,"Description:"),_(),y(4," This mode combines the other two. When a snapshot is requested the plugin will try to get a new snapshot from the camera."),P(5,"br"),y(6," After one second the snapshot will be delivered - if necessary by using an older snapshot. For events the plugin will wait on a new snapshot. "),P(7,"p")(8,"fa-icon",6),y(9," Up-to-date Snapshots (events)"),P(10,"br")(11,"fa-icon",8),y(12," Up-to-date Snapshots (HomeKit View)"),P(13,"br")(14,"fa-icon",6),y(15," Performance"),P(16,"br")(17,"fa-icon",7),y(18," Battery life"),P(19,"br"),_()()),2&e){const i=T();C(8),b("icon",i.plusIcon),C(3),b("icon",i.mediumIcon),C(3),b("icon",i.plusIcon),C(3),b("icon",i.minusIcon)}}function uve(e,t){if(1&e&&(g(0,"small")(1,"i")(2,"b"),y(3,"Description:"),_(),y(4," The plugin will preferablly use cloud snapshots from eufy to fulfill snapshot requests as fast as possible."),P(5,"br"),y(6," If an event, like motion or doorbell ring oocurs, the plugin will try to wait for a cloud snapshot to be provided. But the periodic snapshots in homekit will most likely be outdated (e.g. up to a few hours old). "),P(7,"p")(8,"fa-icon",6),y(9," Up-to-date Snapshots (events)"),P(10,"br")(11,"fa-icon",7),y(12," Up-to-date Snapshots (HomeKit View)"),P(13,"br")(14,"fa-icon",6),y(15," Performance"),P(16,"br")(17,"fa-icon",6),y(18," Battery life"),P(19,"br"),_()()),2&e){const i=T();C(8),b("icon",i.plusIcon),C(3),b("icon",i.minusIcon),C(3),b("icon",i.plusIcon),C(3),b("icon",i.plusIcon)}}let fve=(()=>{var e;class t extends L1{constructor(n){super(n),V(this,"plusIcon",ME),V(this,"minusIcon",Gb),V(this,"mediumIcon",hS),V(this,"accessory",void 0),V(this,"value",3)}ngOnInit(){this.readValue()}readValue(){var n=this;return De(function*(){const r=yield n.getCameraConfig(n.accessory?.uniqueId||"");r&&Object.prototype.hasOwnProperty.call(r,"snapshotHandlingMethod")?n.value=r.snapshotHandlingMethod:r&&Object.prototype.hasOwnProperty.call(r,"forcerefreshsnap")&&(n.value=r.forcerefreshsnap?1:3)})()}update(){this.updateConfig({snapshotHandlingMethod:this.value},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-snapshot-handling-method"]],inputs:{accessory:"accessory"},features:[re],decls:15,vars:7,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],["aria-label","Device Operation Mode",1,"form-select",3,"ngModel","ngModelChange","change"],[3,"ngValue"],[4,"ngIf"],["size","xs",1,"m-1",2,"color","#7FFF00",3,"icon"],["size","xs",1,"m-1",2,"color","#B22222",3,"icon"],["size","xs",1,"m-1",2,"color","#FF8C00",3,"icon"]],template:function(n,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Snapshot Handling Method"),_(),g(4,"div",2)(5,"select",3),O("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),g(6,"option",4),y(7,"Force Refresh Snapshots"),_(),g(8,"option",4),y(9,"Balanced"),_(),g(10,"option",4),y(11,"Cloud Snapshots"),_()()()(),I(12,cve,20,4,"small",5),I(13,lve,20,4,"small",5),I(14,uve,20,4,"small",5),_()),2&n&&(C(5),b("ngModel",r.value),C(1),b("ngValue",1),C(2),b("ngValue",2),C(2),b("ngValue",3),C(2),b("ngIf",1===r.value),C(1),b("ngIf",2===r.value),C(1),b("ngIf",3===r.value))},dependencies:[D1,w3,H3,yn,E1,y1,Dy],encapsulation:2})),t})(),dve=(()=>{var e;class t extends L1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",false)}ngOnInit(){this.readValue()}readValue(){var n=this;return De(function*(){const r=yield n.getCameraConfig(n.accessory?.uniqueId||"");r&&Object.prototype.hasOwnProperty.call(r,"immediateRingNotificationWithoutSnapshot")&&(n.value=r.immediateRingNotificationWithoutSnapshot)})()}update(){this.updateConfig({immediateRingNotificationWithoutSnapshot:this.value},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-immediate-notification-on-ring"]],inputs:{accessory:"accessory"},features:[re],decls:12,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(n,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Immediate Notification on ring events"),_(),g(4,"div",2)(5,"input",3),O("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),_()()(),g(6,"small")(7,"i"),y(8," In general Homekit will try to get a snapshot to show it in it's push notifications. Since the process to genereate a snapshot takes some time the push notification will be delayed by this time difference. This option allows to generate an empty snapshot on ringing events to speed up the push notification. This can safe up to 10 seconds between the event and the corresponding notification on your device."),P(9,"br"),g(10,"b"),y(11,"This option however delivers most likely an empty (black) snapshot on those events!"),_()()()()),2&n&&(C(5),b("ngModel",r.value))},dependencies:[v2,E1,y1],encapsulation:2})),t})(),hve=(()=>{var e;class t extends L1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",false)}ngOnInit(){this.readValue()}readValue(){var n=this;return De(function*(){const r=yield n.getCameraConfig(n.accessory?.uniqueId||"");r&&Object.prototype.hasOwnProperty.call(r,"delayCameraSnapshot")&&(n.value=r.delayCameraSnapshot)})()}update(){this.updateConfig({delayCameraSnapshot:this.value},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-delay-camera-snapshots"]],inputs:{accessory:"accessory"},features:[re],decls:12,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(n,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Night-Vision Improvement for camera snapshots"),_(),g(4,"div",2)(5,"input",3),O("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),_()()(),g(6,"small")(7,"i"),y(8," Force night vision on dark snapshots to improve the image."),P(9,"br"),g(10,"b"),y(11,"The snapshot request will be delayed by half a second if you enable this setting."),_()()()()),2&n&&(C(5),b("ngModel",r.value))},dependencies:[v2,E1,y1],encapsulation:2})),t})(),pve=(()=>{var e;class t extends L1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",0),V(this,"inputIsInvalid",!1)}ngOnInit(){this.readValue()}readValue(){var n=this;return De(function*(){const r=yield n.getCameraConfig(n.accessory?.uniqueId||"");r&&Object.prototype.hasOwnProperty.call(r,"refreshSnapshotIntervalMinutes")&&(n.value=r.refreshSnapshotIntervalMinutes)})()}switchSetting(){this.value=0===this.value?30:0,this.update()}update(){this.validate()&&this.updateConfig({refreshSnapshotIntervalMinutes:this.value},this.accessory)}validate(){return this.inputIsInvalid=!1,(null==this.value||this.value<5&&0!==this.value)&&(this.inputIsInvalid=!0),!this.inputIsInvalid}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-periodic-snapshot-refresh"]],inputs:{accessory:"accessory"},features:[re],decls:25,vars:3,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"change"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],[1,"input-group","input-group-sm"],["type","number","aria-label","Polling interval minutes","aria-describedby","basic-addon2",3,"ngModel","ngModelChange","change"],[1,"input-group-append"],["id","basic-addon2",1,"input-group-text"]],template:function(n,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Periodic Snapshot Refresh"),_(),g(4,"div",2)(5,"input",3),O("change",function(){return r.switchSetting()}),_()()(),g(6,"div",4)(7,"span"),y(8,"Refresh Interval"),_(),g(9,"div",5)(10,"div",6)(11,"input",7),O("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),_(),g(12,"div",8)(13,"span",9),y(14,"minutes"),_()()()()(),g(15,"small")(16,"i"),y(17," This option will force a snapshot to be generated every x minutes. This snapshot will then be used for homekit. So that your snapshots will never be older than this."),P(18,"br"),y(19," Best used with 'Cloud Snapshots' handling method."),P(20,"br"),y(21," Every setting below 5 minutes will be discarded due to performance reasons."),P(22,"br"),g(23,"b"),y(24,"Don't use this with the 'Force Refresh Snapshots' method, since it will have negligible effects other than slowing down homebridge and decreasing possible battery life."),_()()()()),2&n&&(C(5),W("checked",r.value>0||null),C(6),b("ngModel",r.value),W("class",r.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},dependencies:[qn,ri,E1,y1],encapsulation:2})),t})();function mve(e,t){1&e&&(g(0,"span")(1,"b"),y(2,"Advanced Video Config"),_()())}function gve(e,t){1&e&&(g(0,"button",4)(1,"span")(2,"b"),y(3,"Advanced Video Config"),_()()())}function vve(e,t){if(1&e&&(g(0,"div"),y(1),_()),2&e){const i=T(2);C(1),Q2(" ",i.presetDescription," ")}}function _ve(e,t){if(1&e){const i=S1();y(0," The following options directly change the way how ffmpeg is configured when a stream is started. If configured incorrectly these will most likely result in faulty streams or bad streaming performance. "),P(1,"p"),y(2," You can try the following presets to improve your streaming experience. We do not guarantee that these will work for you."),P(3,"p"),g(4,"div",5)(5,"div",6)(6,"select",7),O("ngModelChange",function(r){return Y(i),K(T().preset=r)})("change",function(){return Y(i),K(T().loadPreset())}),g(7,"option",8),y(8,"No Preset (default)"),_(),g(9,"option",8),y(10,"Copy"),_(),g(11,"option",8),y(12,"Performance"),_(),g(13,"option",8),y(14,"Custom"),_()()()(),I(15,vve,2,1,"div",9),P(16,"p"),g(17,"div",10)(18,"div",11)(19,"input",12),O("ngModelChange",function(r){return Y(i),K(T().debug=r)})("change",function(){return Y(i),K(T().update())}),_()(),g(20,"span",13),y(21,"ffmpeg debug"),_()(),g(22,"div",10)(23,"div",11)(24,"input",12),O("ngModelChange",function(r){return Y(i),K(T().useSeparateProcesses=r)})("change",function(){return Y(i),K(T().update())}),_()(),g(25,"span",13),y(26,"use separate processes for video and audio"),_()(),g(27,"div",10)(28,"div",11)(29,"input",12),O("ngModelChange",function(r){return Y(i),K(T().readRate=r)})("change",function(){return Y(i),K(T().update())}),_()(),g(30,"span",13),y(31,"readRate"),_()(),g(32,"div",10)(33,"div",11)(34,"input",14),O("change",function(){Y(i);const r=T();return r.vcodec=void 0===r.vcodec?"":void 0,K(r.update())}),_()(),g(35,"span",13),y(36,"vcodec"),_(),g(37,"input",15),O("ngModelChange",function(r){return Y(i),K(T().vcodec=r)})("change",function(){return Y(i),K(T().update())}),_()(),g(38,"div",10)(39,"div",11)(40,"input",14),O("change",function(){Y(i);const r=T();return r.acodec=void 0===r.acodec?"":void 0,K(r.update())}),_()(),g(41,"span",13),y(42,"acodec"),_(),g(43,"input",16),O("ngModelChange",function(r){return Y(i),K(T().acodec=r)})("change",function(){return Y(i),K(T().update())}),_()(),g(44,"div",10)(45,"div",11)(46,"input",14),O("change",function(){Y(i);const r=T();return r.videoFilter=void 0===r.videoFilter?"":void 0,K(r.update())}),_()(),g(47,"span",13),y(48,"videoFilter"),_(),g(49,"input",17),O("ngModelChange",function(r){return Y(i),K(T().videoFilter=r)})("change",function(){return Y(i),K(T().update())}),_()(),g(50,"div",10)(51,"div",11)(52,"input",14),O("change",function(){Y(i);const r=T();return r.encoderOptions=void 0===r.encoderOptions?"":void 0,K(r.update())}),_()(),g(53,"span",13),y(54,"encoderOptions"),_(),g(55,"input",18),O("ngModelChange",function(r){return Y(i),K(T().encoderOptions=r)})("change",function(){return Y(i),K(T().update())}),_()(),g(56,"div",10)(57,"div",11)(58,"input",14),O("change",function(){Y(i);const r=T();return r.probeSize=void 0===r.probeSize?0:void 0,K(r.update())}),_()(),g(59,"span",13),y(60,"probeSize"),_(),g(61,"input",19),O("ngModelChange",function(r){return Y(i),K(T().probeSize=r)})("change",function(){return Y(i),K(T().update())}),_()(),g(62,"div",10)(63,"div",11)(64,"input",14),O("change",function(){Y(i);const r=T();return r.analyzeDuration=void 0===r.analyzeDuration?0:void 0,K(r.update())}),_()(),g(65,"span",13),y(66,"analyzeDuration"),_(),g(67,"input",19),O("ngModelChange",function(r){return Y(i),K(T().analyzeDuration=r)})("change",function(){return Y(i),K(T().update())}),_()(),g(68,"div",10)(69,"div",11)(70,"input",14),O("change",function(){Y(i);const r=T();return r.maxStreams=void 0===r.maxStreams?0:void 0,K(r.update())}),_()(),g(71,"span",13),y(72,"maxStreams"),_(),g(73,"input",19),O("ngModelChange",function(r){return Y(i),K(T().maxStreams=r)})("change",function(){return Y(i),K(T().update())}),_()(),g(74,"div",10)(75,"div",11)(76,"input",14),O("change",function(){Y(i);const r=T();return r.maxWidth=void 0===r.maxWidth?0:void 0,K(r.update())}),_()(),g(77,"span",13),y(78,"maxWidth"),_(),g(79,"input",19),O("ngModelChange",function(r){return Y(i),K(T().maxWidth=r)})("change",function(){return Y(i),K(T().update())}),_()(),g(80,"div",10)(81,"div",11)(82,"input",14),O("change",function(){Y(i);const r=T();return r.maxHeight=void 0===r.maxHeight?0:void 0,K(r.update())}),_()(),g(83,"span",13),y(84,"maxHeight"),_(),g(85,"input",19),O("ngModelChange",function(r){return Y(i),K(T().maxHeight=r)})("change",function(){return Y(i),K(T().update())}),_()(),g(86,"div",10)(87,"div",11)(88,"input",14),O("change",function(){Y(i);const r=T();return r.maxFPS=void 0===r.maxFPS?0:void 0,K(r.update())}),_()(),g(89,"span",13),y(90,"fps"),_(),g(91,"input",19),O("ngModelChange",function(r){return Y(i),K(T().maxFPS=r)})("change",function(){return Y(i),K(T().update())}),_()(),g(92,"div",10)(93,"div",11)(94,"input",14),O("change",function(){Y(i);const r=T();return r.maxBitrate=void 0===r.maxBitrate?0:void 0,K(r.update())}),_()(),g(95,"span",13),y(96,"bitrate"),_(),g(97,"input",19),O("ngModelChange",function(r){return Y(i),K(T().maxBitrate=r)})("change",function(){return Y(i),K(T().update())}),_()()}if(2&e){const i=T();C(6),b("ngModel",i.preset),C(1),b("ngValue",0),C(2),b("ngValue",1),C(2),b("ngValue",2),C(2),b("ngValue",3),C(2),b("ngIf",i.presetDescription),C(4),b("ngModel",i.debug),C(5),b("ngModel",i.useSeparateProcesses),C(5),b("ngModel",i.readRate),C(5),b("checked",void 0!==i.vcodec||null),C(3),b("ngModel",i.vcodec),W("disabled",void 0===i.vcodec||null),C(3),b("checked",void 0!==i.acodec||null),C(3),b("ngModel",i.acodec),W("disabled",void 0===i.acodec||null),C(3),b("checked",void 0!==i.videoFilter||null),W("disabled","copy"===i.vcodec||null),C(1),W("style","copy"===i.vcodec?"text-decoration: line-through; color: lightgray;":null,hn),C(2),b("ngModel",i.videoFilter),W("disabled",void 0===i.videoFilter||"copy"===i.vcodec||null),C(3),b("checked",void 0!==i.encoderOptions||null),W("disabled","copy"===i.vcodec||null),C(1),W("style","copy"===i.vcodec?"text-decoration: line-through; color: lightgray;":null,hn),C(2),b("ngModel",i.encoderOptions),W("disabled",void 0===i.encoderOptions||"copy"===i.vcodec||null),C(3),b("checked",void 0!==i.probeSize||null),C(3),b("ngModel",i.probeSize),W("disabled",void 0===i.probeSize||null),C(3),b("checked",void 0!==i.analyzeDuration||null),C(3),b("ngModel",i.analyzeDuration),W("disabled",void 0===i.analyzeDuration||null),C(3),b("checked",void 0!==i.maxStreams||null),C(3),b("ngModel",i.maxStreams),W("disabled",void 0===i.maxStreams||null),C(3),b("checked",void 0!==i.maxWidth||null),W("disabled","copy"===i.vcodec||null),C(1),W("style","copy"===i.vcodec?"text-decoration: line-through; color: lightgray;":null,hn),C(2),b("ngModel",i.maxWidth),W("disabled",void 0===i.maxWidth||"copy"===i.vcodec||null),C(3),b("checked",void 0!==i.maxHeight||null),W("disabled","copy"===i.vcodec||null),C(1),W("style","copy"===i.vcodec?"text-decoration: line-through; color: lightgray;":null,hn),C(2),b("ngModel",i.maxHeight),W("disabled",void 0===i.maxHeight||"copy"===i.vcodec||null),C(3),b("checked",void 0!==i.maxFPS||null),W("disabled","copy"===i.vcodec||null),C(1),W("style","copy"===i.vcodec?"text-decoration: line-through; color: lightgray;":null,hn),C(2),b("ngModel",i.maxFPS),W("disabled",void 0===i.maxFPS||"copy"===i.vcodec||null),C(3),b("checked",void 0!==i.maxBitrate||null),W("disabled","copy"===i.vcodec||null),C(1),W("style","copy"===i.vcodec?"text-decoration: line-through; color: lightgray;":null,hn),C(2),b("ngModel",i.maxBitrate),W("disabled",void 0===i.maxBitrate||"copy"===i.vcodec||null)}}let Cve=(()=>{var e;class t extends L1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"debug",void 0),V(this,"readRate",void 0),V(this,"vcodec",void 0),V(this,"acodec",void 0),V(this,"videoFilter",void 0),V(this,"encoderOptions",void 0),V(this,"probeSize",void 0),V(this,"analyzeDuration",void 0),V(this,"maxStreams",void 0),V(this,"maxWidth",void 0),V(this,"maxHeight",void 0),V(this,"maxFPS",void 0),V(this,"maxBitrate",void 0),V(this,"useSeparateProcesses",void 0),V(this,"preset",0),V(this,"presetDescription",void 0)}ngOnInit(){this.readValue()}readValue(){var n=this;return De(function*(){const r=yield n.getCameraConfig(n.accessory?.uniqueId||"");r&&Object.prototype.hasOwnProperty.call(r,"videoConfig")&&Object.entries(r.videoConfig).forEach(([a,s])=>{n[a]=s}),n.updatePreset()})()}loadPreset(){0===this.preset?(this.readRate=void 0,this.vcodec=void 0,this.acodec=void 0,this.videoFilter=void 0,this.encoderOptions=void 0,this.probeSize=void 0,this.analyzeDuration=void 0,this.maxStreams=void 0,this.maxWidth=void 0,this.maxHeight=void 0,this.maxFPS=void 0,this.maxBitrate=void 0,this.useSeparateProcesses=void 0,this.presetDescription=void 0):1===this.preset?(this.readRate=void 0,this.vcodec="copy",this.acodec=void 0,this.videoFilter=void 0,this.encoderOptions=void 0,this.probeSize=void 0,this.analyzeDuration=void 0,this.maxStreams=void 0,this.maxWidth=void 0,this.maxHeight=void 0,this.maxFPS=void 0,this.maxBitrate=void 0,this.useSeparateProcesses=!0,this.presetDescription="Most eufy cams support the same codec that HomeKit requests. You can try and 'forward' the stream directly without encoding it with ffmpeg. This can increase performance and quality drastically."):2===this.preset?(this.readRate=void 0,this.vcodec=void 0,this.acodec=void 0,this.videoFilter=void 0,this.encoderOptions=void 0,this.probeSize=void 0,this.analyzeDuration=void 0,this.maxStreams=void 0,this.maxWidth=640,this.maxHeight=480,this.maxFPS=15,this.maxBitrate=void 0,this.useSeparateProcesses=!0,this.presetDescription="This preset tries to increase performance by reducing the quality of the stream. This can work for low performance hardware like raspberry pis."):this.presetDescription=void 0,this.update()}updatePreset(){let n=3;!this.readRate&&void 0===this.vcodec&&void 0===this.acodec&&void 0===this.videoFilter&&void 0===this.encoderOptions&&void 0===this.probeSize&&void 0===this.analyzeDuration&&void 0===this.maxStreams&&void 0===this.maxWidth&&void 0===this.maxHeight&&void 0===this.maxFPS&&void 0===this.maxBitrate&&void 0===this.useSeparateProcesses&&(n=0),!this.readRate&&"copy"===this.vcodec&&void 0===this.acodec&&void 0===this.videoFilter&&void 0===this.encoderOptions&&void 0===this.probeSize&&void 0===this.analyzeDuration&&void 0===this.maxStreams&&void 0===this.maxWidth&&void 0===this.maxHeight&&void 0===this.maxFPS&&void 0===this.maxBitrate&&!0===this.useSeparateProcesses&&(n=1),!this.readRate&&void 0===this.vcodec&&void 0===this.acodec&&void 0===this.videoFilter&&void 0===this.encoderOptions&&void 0===this.probeSize&&void 0===this.analyzeDuration&&void 0===this.maxStreams&&640===this.maxWidth&&480===this.maxHeight&&15===this.maxFPS&&void 0===this.maxBitrate&&!0===this.useSeparateProcesses&&(n=2),n!==this.preset&&(this.preset=n)}update(){var n=this;return De(function*(){const r=yield n.getCameraConfig(n.accessory?.uniqueId||""),a=r&&Object.prototype.hasOwnProperty.call(r,"videoConfig")?r.videoConfig:{},s={};Object.prototype.hasOwnProperty.call(a,"audio")&&(s.audio=a.audio),n.debug&&(s.debug=n.debug),n.readRate&&(s.readRate=n.readRate),n.vcodec&&""!==n.vcodec&&(s.vcodec=n.vcodec),n.acodec&&""!==n.acodec&&(s.acodec=n.acodec),n.videoFilter&&""!==n.videoFilter&&(s.videoFilter=n.videoFilter),n.encoderOptions&&""!==n.encoderOptions&&(s.encoderOptions=n.encoderOptions),void 0!==n.probeSize&&(s.probeSize=n.probeSize),void 0!==n.analyzeDuration&&(s.analyzeDuration=n.analyzeDuration),void 0!==n.maxStreams&&(s.maxStreams=n.maxStreams),void 0!==n.maxWidth&&(s.maxWidth=n.maxWidth),void 0!==n.maxHeight&&(s.maxHeight=n.maxHeight),void 0!==n.maxFPS&&(s.maxFPS=n.maxFPS),void 0!==n.maxBitrate&&(s.maxBitrate=n.maxBitrate),n.useSeparateProcesses&&(s.useSeparateProcesses=n.useSeparateProcesses),n.updateConfig({videoConfig:s},n.accessory),n.updatePreset()})()}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-advanced-videoconfig"]],inputs:{accessory:"accessory"},features:[re],decls:6,vars:0,consts:[["acc","ngbAccordion"],["ngbPanelTitle","","class","accordion-header"],["ngbPanelHeader",""],["ngbPanelContent",""],["ngbPanelToggle","",1,"accordion-button"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],["aria-label","Presets",1,"form-select",3,"ngModel","ngModelChange","change"],[3,"ngValue"],[4,"ngIf"],[1,"input-group","mb-1"],[1,"input-group-text"],["type","checkbox",1,"form-check-input","mt-0",3,"ngModel","ngModelChange","change"],["id","inputGroup-sizing-default",1,"input-group-text"],["type","checkbox",1,"form-check-input","mt-0",3,"checked","change"],["type","text","placeholder","libx264",1,"form-control",3,"ngModel","ngModelChange","change"],["type","text","placeholder","libfdk_aac",1,"form-control",3,"ngModel","ngModelChange","change"],["type","text","placeholder","leave blank if you don't know",1,"form-control",3,"ngModel","ngModelChange","change"],["type","text","placeholder","-preset ultrafast -tune zerolatency",1,"form-control",3,"ngModel","ngModelChange","change"],["type","number","placeholder","0",1,"form-control",3,"ngModel","ngModelChange","change"]],template:function(n,r){1&n&&(g(0,"ngb-accordion",null,0)(2,"ngb-panel"),I(3,mve,3,0,"ng-template",1),I(4,gve,4,0,"ng-template",2),I(5,_ve,98,54,"ng-template",3),_()())},dependencies:[D1,w3,H3,qn,ri,v2,yn,E1,y1,O5,nc,T5,I5,tc,R5],styles:[".accordion-button[_ngcontent-%COMP%]:not(.collapsed){background-color:#00000008!important;color:#000!important}.accordion-button[_ngcontent-%COMP%]:not(.collapsed):after{background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e\")}.form-check-input[_ngcontent-%COMP%]{margin-left:-.5rem}.input-group-text[_ngcontent-%COMP%]{padding:.375rem 1rem}"]})),t})();function Mve(e,t){1&e&&(g(0,"div",5),y(1," Talkback will not work while 'RTSP Streaming' is enabled! "),_())}let yve=(()=>{var e;class t extends L1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",!1),V(this,"rtspIsEnabled",!1)}ngOnInit(){this.readValue(),this.pluginService.addEventListener("configChanged",()=>this.readValue())}readValue(){var n=this;return De(function*(){const r=yield n.getCameraConfig(n.accessory?.uniqueId||"");r&&Object.prototype.hasOwnProperty.call(r,"talkback")&&(n.value=r.talkback),r&&Object.prototype.hasOwnProperty.call(r,"rtsp")&&(n.rtspIsEnabled=r.rtsp)})()}update(){this.updateConfig({talkback:this.value},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-talkback"]],inputs:{accessory:"accessory"},features:[re],decls:13,vars:2,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"],["class","alert alert-danger","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-danger"]],template:function(n,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Enable Talkback (Two way communication)"),_(),g(4,"div",2)(5,"input",3),O("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),_()()(),I(6,Mve,2,0,"div",4),g(7,"small")(8,"i"),y(9," Enables you to talk with someone infront of the camera while streaming. "),P(10,"p"),y(11," Please be advised that this setting is in an early development stage. If you're experiencing issues while streaming, it is recommened to disable this setting."),P(12,"br"),_()()()),2&n&&(C(5),b("ngModel",r.value),C(1),b("ngIf",r.rtspIsEnabled&&r.value))},dependencies:[D1,v2,E1,y1],encapsulation:2})),t})();function bve(e,t){1&e&&P(0,"hr")}function wve(e,t){1&e&&P(0,"app-rtsp-streaming",6),2&e&&b("accessory",T(3).accessory)}function Hve(e,t){1&e&&P(0,"hr")}function Vve(e,t){1&e&&P(0,"app-talkback",6),2&e&&b("accessory",T(3).accessory)}function Sve(e,t){if(1&e&&(g(0,"div"),P(1,"hr")(2,"app-enable-camera",6)(3,"hr")(4,"app-livestream-cache",6),I(5,bve,1,0,"hr",2),I(6,wve,1,1,"app-rtsp-streaming",7),P(7,"hr")(8,"app-enable-audio",6),I(9,Hve,1,0,"hr",2),I(10,Vve,1,1,"app-talkback",7),_()),2&e){const i=T(2);C(2),b("accessory",i.accessory),C(2),b("accessory",i.accessory),C(1),b("ngIf",i.supportsRTSP),C(1),b("ngIf",i.supportsRTSP),C(2),b("accessory",i.accessory),C(1),b("ngIf",i.supportsTalkback),C(1),b("ngIf",i.supportsTalkback)}}function Dve(e,t){if(1&e&&(g(0,"div",3)(1,"div",4)(2,"b"),y(3,"Camera Settings"),_(),y(4," for "),g(5,"i"),y(6),_()(),g(7,"div",5),P(8,"app-ignore-accessory",6),I(9,Sve,11,7,"div",2),_()()),2&e){const i=T();C(6),K4("",i.accessory.displayName," (",i.accessory.uniqueId,")"),C(2),b("accessory",i.accessory),C(1),b("ngIf",i.isCamera)}}function zve(e,t){if(1&e&&(g(0,"div",3)(1,"div",4)(2,"b"),y(3,"HomeKit Behaviour"),_(),y(4," for "),g(5,"i"),y(6),_()(),g(7,"div",5),P(8,"app-camera-buttons",6),_()()),2&e){const i=T(2);C(6),K4("",i.accessory.displayName," (",i.accessory.uniqueId,")"),C(2),b("accessory",i.accessory)}}function Eve(e,t){1&e&&P(0,"hr")}function xve(e,t){1&e&&P(0,"app-immediate-notification-on-ring",6),2&e&&b("accessory",T(3).accessory)}function Ave(e,t){if(1&e&&(g(0,"div"),P(1,"app-force-refreshsnap",6),_()),2&e){const i=T(3);C(1),b("accessory",i.accessory)}}function Lve(e,t){if(1&e&&(g(0,"div",3)(1,"div",4)(2,"b"),y(3,"Snapshot Behaviour"),_(),y(4," for "),g(5,"i"),y(6),_()(),g(7,"div",5),P(8,"app-snapshot-handling-method",6),I(9,Eve,1,0,"hr",2),I(10,xve,1,1,"app-immediate-notification-on-ring",7),P(11,"hr")(12,"app-delay-camera-snapshots",6)(13,"hr")(14,"app-periodic-snapshot-refresh",6),I(15,Ave,2,1,"div",2),_()()),2&e){const i=T(2);C(6),K4("",i.accessory.displayName," (",i.accessory.uniqueId,")"),C(2),b("accessory",i.accessory),C(1),b("ngIf",i.isDoorbell),C(1),b("ngIf",i.isDoorbell),C(2),b("accessory",i.accessory),C(2),b("accessory",i.accessory),C(1),b("ngIf",!i.showEnhancedSnapshotBehaviour)}}function Nve(e,t){if(1&e&&(g(0,"div"),P(1,"p"),I(2,zve,9,3,"div",1),P(3,"p"),I(4,Lve,16,8,"div",1),P(5,"p")(6,"app-advanced-videoconfig",6),_()),2&e){const i=T();C(2),b("ngIf",i.accessory),C(2),b("ngIf",i.accessory),C(2),b("accessory",i.accessory)}}let Tve=(()=>{var e;class t extends L1{constructor(n,r){super(n),V(this,"route",void 0),V(this,"accessory",void 0),V(this,"showEnhancedSnapshotBehaviour",!0),V(this,"isDoorbell",!1),V(this,"isCamera",!1),V(this,"supportsRTSP",!1),V(this,"supportsTalkback",!1),this.route=r}ngOnInit(){const n=this.route.snapshot.paramMap.get("uniqueId");this.accessory=this.pluginService.getDevice(n),this.accessory&&(this.isDoorbell=j3.isDoorbell(this.accessory.type),this.isCamera=j3.isCamera(this.accessory.type),this.supportsRTSP=j3.supportsRTSP(this.accessory.type),this.supportsTalkback=j3.supportsTalkback(this.accessory.type),this.supportsRTSP||this.updateConfig({rtsp:!1},this.accessory),this.supportsTalkback||this.updateConfig({talkback:!1},this.accessory))}updateSnapshotView(n){this.showEnhancedSnapshotBehaviour=n}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(r1),w(En))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-camera-config-options"]],features:[re],decls:4,vars:2,consts:[["routerLink","/accessories",1,"btn","btn-secondary","mb-3"],["class","card",4,"ngIf"],[4,"ngIf"],[1,"card"],[1,"card-header"],[1,"card-body","pt-0","pb-4"],[3,"accessory"],[3,"accessory",4,"ngIf"]],template:function(n,r){1&n&&(g(0,"a",0),y(1,"Back to Devices List"),_(),I(2,Dve,10,4,"div",1),I(3,Nve,7,3,"div",2)),2&n&&(C(2),b("ngIf",r.accessory),C(1),b("ngIf",r.isCamera))},dependencies:[D1,xn,ux,eve,nve,ive,ave,sve,ove,fve,dve,hve,pve,Cve,yve],encapsulation:2})),t})();var ju=function(e){return e[e.UNKNOWN=0]="UNKNOWN",e[e.CAPTCHA=1]="CAPTCHA",e[e.TFA=2]="TFA",e[e.TIMEOUT=3]="TIMEOUT",e}(ju||{});const Ive={AF:"Afghanistan",AX:"Aland Islands",AL:"Albania",DZ:"Algeria",AS:"American Samoa",AD:"Andorra",AO:"Angola",AI:"Anguilla",AQ:"Antarctica",AG:"Antigua and Barbuda",AR:"Argentina",AM:"Armenia",AW:"Aruba",AU:"Australia",AT:"Austria",AZ:"Azerbaijan",BS:"Bahamas",BH:"Bahrain",BD:"Bangladesh",BB:"Barbados",BY:"Belarus",BE:"Belgium",BZ:"Belize",BJ:"Benin",BM:"Bermuda",BT:"Bhutan",BO:"Bolivia",BQ:"Bonaire, Sint Eustatius and Saba",BA:"Bosnia and Herzegovina",BW:"Botswana",BV:"Bouvet Island",BR:"Brazil",IO:"British Indian Ocean Territory",BN:"Brunei Darussalam",BG:"Bulgaria",BF:"Burkina Faso",BI:"Burundi",KH:"Cambodia",CM:"Cameroon",CA:"Canada",CV:"Cape Verde",KY:"Cayman Islands",CF:"Central African Republic",TD:"Chad",CL:"Chile",CN:"China",CX:"Christmas Island",CC:"Cocos (Keeling) Islands",CO:"Colombia",KM:"Comoros",CG:"Congo",CD:"Congo, the Democratic Republic of the",CK:"Cook Islands",CR:"Costa Rica",CI:"Cote D'Ivoire",HR:"Croatia",CU:"Cuba",CW:"Curacao",CY:"Cyprus",CZ:"Czech Republic",DK:"Denmark",DJ:"Djibouti",DM:"Dominica",DO:"Dominican Republic",EC:"Ecuador",EG:"Egypt",SV:"El Salvador",GQ:"Equatorial Guinea",ER:"Eritrea",EE:"Estonia",ET:"Ethiopia",FK:"Falkland Islands (Malvinas)",FO:"Faroe Islands",FJ:"Fiji",FI:"Finland",FR:"France",GF:"French Guiana",PF:"French Polynesia",TF:"French Southern Territories",GA:"Gabon",GM:"Gambia",GE:"Georgia",DE:"Germany",GH:"Ghana",GI:"Gibraltar",GR:"Greece",GL:"Greenland",GD:"Grenada",GP:"Guadeloupe",GU:"Guam",GT:"Guatemala",GG:"Guernsey",GN:"Guinea",GW:"Guinea-Bissau",GY:"Guyana",HT:"Haiti",HM:"Heard Island and Mcdonald Islands",VA:"Holy See (Vatican City State)",HN:"Honduras",HK:"Hong Kong",HU:"Hungary",IS:"Iceland",IN:"India",ID:"Indonesia",IR:"Iran, Islamic Republic of",IQ:"Iraq",IE:"Ireland",IM:"Isle of Man",IL:"Israel",IT:"Italy",JM:"Jamaica",JP:"Japan",JE:"Jersey",JO:"Jordan",KZ:"Kazakhstan",KE:"Kenya",KI:"Kiribati",KP:"Korea, Democratic People's Republic of",KR:"Korea, Republic of",XK:"Kosovo",KW:"Kuwait",KG:"Kyrgyzstan",LA:"Lao People's Democratic Republic",LV:"Latvia",LB:"Lebanon",LS:"Lesotho",LR:"Liberia",LY:"Libyan Arab Jamahiriya",LI:"Liechtenstein",LT:"Lithuania",LU:"Luxembourg",MO:"Macao",MK:"Macedonia, the Former Yugoslav Republic of",MG:"Madagascar",MW:"Malawi",MY:"Malaysia",MV:"Maldives",ML:"Mali",MT:"Malta",MH:"Marshall Islands",MQ:"Martinique",MR:"Mauritania",MU:"Mauritius",YT:"Mayotte",MX:"Mexico",FM:"Micronesia, Federated States of",MD:"Moldova, Republic of",MC:"Monaco",MN:"Mongolia",ME:"Montenegro",MS:"Montserrat",MA:"Morocco",MZ:"Mozambique",MM:"Myanmar",NA:"Namibia",NR:"Nauru",NP:"Nepal",NL:"Netherlands",AN:"Netherlands Antilles",NC:"New Caledonia",NZ:"New Zealand",NI:"Nicaragua",NE:"Niger",NG:"Nigeria",NU:"Niue",NF:"Norfolk Island",MP:"Northern Mariana Islands",NO:"Norway",OM:"Oman",PK:"Pakistan",PW:"Palau",PS:"Palestinian Territory, Occupied",PA:"Panama",PG:"Papua New Guinea",PY:"Paraguay",PE:"Peru",PH:"Philippines",PN:"Pitcairn",PL:"Poland",PT:"Portugal",PR:"Puerto Rico",QA:"Qatar",RE:"Reunion",RO:"Romania",RU:"Russian Federation",RW:"Rwanda",BL:"Saint Barthelemy",SH:"Saint Helena",KN:"Saint Kitts and Nevis",LC:"Saint Lucia",MF:"Saint Martin",PM:"Saint Pierre and Miquelon",VC:"Saint Vincent and the Grenadines",WS:"Samoa",SM:"San Marino",ST:"Sao Tome and Principe",SA:"Saudi Arabia",SN:"Senegal",RS:"Serbia",CS:"Serbia and Montenegro",SC:"Seychelles",SL:"Sierra Leone",SG:"Singapore",SX:"Sint Maarten",SK:"Slovakia",SI:"Slovenia",SB:"Solomon Islands",SO:"Somalia",ZA:"South Africa",GS:"South Georgia and the South Sandwich Islands",SS:"South Sudan",ES:"Spain",LK:"Sri Lanka",SD:"Sudan",SR:"Suriname",SJ:"Svalbard and Jan Mayen",SZ:"Swaziland",SE:"Sweden",CH:"Switzerland",SY:"Syrian Arab Republic",TW:"Taiwan, Province of China",TJ:"Tajikistan",TZ:"Tanzania, United Republic of",TH:"Thailand",TL:"Timor-Leste",TG:"Togo",TK:"Tokelau",TO:"Tonga",TT:"Trinidad and Tobago",TN:"Tunisia",TR:"Turk",TM:"Turkmenistan",TC:"Turks and Caicos Islands",TV:"Tuvalu",UG:"Uganda",UA:"Ukraine",AE:"United Arab Emirates",GB:"United Kingdom",US:"United States",UM:"United States Minor Outlying Islands",UY:"Uruguay",UZ:"Uzbekistan",VU:"Vanuatu",VE:"Venezuela",VN:"Viet Nam",VG:"Virgin Islands, British",VI:"Virgin Islands, U.s.",WF:"Wallis and Futuna",EH:"Western Sahara",YE:"Yemen",ZM:"Zambia",ZW:"Zimbabwe"};let Rve=(()=>{var e;class t{constructor(n){V(this,"pluginService",void 0),this.pluginService=n}getCredentials(){var n=this;return De(function*(){try{const r=yield n.pluginService.getConfig();return r.username&&r.password?Promise.resolve({username:r.username,password:r.password,country:r.country?r.country:"US",deviceName:r.deviceName}):Promise.reject("no full credentials in config")}catch{return Promise.reject("no config")}})()}login(n){return De(function*(){try{const r=yield window.homebridge.request("/login",n);return Promise.resolve(r)}catch(r){return Promise.reject(r)}})()}updateConfigCredentials(n){var r=this;return De(function*(){let a={};try{a=yield r.pluginService.getConfig()}catch(s){console.log("Could not get credentials from config: "+s)}a.username=n.username,a.password=n.password,a.country=n.country,a.deviceName=n.deviceName,yield r.pluginService.updateConfig(a,!0)})()}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(q(r1))}),V(t,"\u0275prov",$({token:e,factory:e.\u0275fac,providedIn:"root"})),t})();function Ove(e,t){1&e&&(d4(),y(0," If you login here the new connection might interfere with any already established connection that was made by the eufy plugin itself."),h4(),P(1,"p"),g(2,"i"),y(3,"So even if you do not change any settings we recommened that you restart the plugin after you've connected to the eufy cloud here."),_())}function kve(e,t){if(1&e){const i=S1();g(0,"p",10)(1,"ngb-alert",11),O("closed",function(){return Y(i),K(T().resetLoginFailed())}),d4(),g(2,"svg",12),P(3,"use",13),_(),h4(),g(4,"strong"),y(5,"Login was not successful!"),_()()()}2&e&&(C(1),b("dismissible",!0))}function Pve(e,t){if(1&e&&(g(0,"div",32),d4(),g(1,"svg",33),P(2,"use",34),_(),h4(),g(3,"div"),y(4," Please make sure to restart plugin after you're done. "),g(5,"u",35),y(6," Tell me why... "),_()()()),2&e){T(2);const i=k2(6);C(5),b("autoClose","outside")("ngbPopover",i)}}function Fve(e,t){1&e&&(y(0,"You can leave this field blank."),P(1,"p"),y(2,"This will set the an option in the api calls to the eufy cloud, so that the servers think this plugin uses the official eufy app on the given device. If left blank the plugin will use a random device identifier. See "),g(3,"a",36),y(4,"this disussion"),_(),y(5," to learn more."))}function Bve(e,t){if(1&e&&(g(0,"option"),y(1),_()),2&e){const i=t.$implicit,n=T(2);W("value",i.short)("selected",n.credentials.country===i.short||null),C(1),Q2("",i.long," ")}}function Uve(e,t){1&e&&P(0,"span",37)}function jve(e,t){1&e&&(g(0,"span"),y(1,"..."),_())}function Gve(e,t){if(1&e){const i=S1();g(0,"div"),I(1,Pve,7,2,"div",14),g(2,"div",15)(3,"input",16),O("ngModelChange",function(r){return Y(i),K(T().credentials.username=r)}),_(),g(4,"label",17),y(5,"Email address"),_()(),P(6,"p"),g(7,"div",15)(8,"input",18),O("ngModelChange",function(r){return Y(i),K(T().credentials.password=r)}),_(),g(9,"label",19),y(10,"Password"),_()(),P(11,"p"),g(12,"div",15),I(13,Fve,6,0,"ng-template",null,20,D2),g(15,"input",21),O("ngModelChange",function(r){return Y(i),K(T().credentials.deviceName=r)}),_(),g(16,"label",22),y(17,"Device Name"),_()(),g(18,"div",23)(19,"div",24)(20,"select",25),O("ngModelChange",function(r){return Y(i),K(T().credentials.country=r)}),I(21,Bve,2,3,"option",26),_(),g(22,"small")(23,"i"),y(24," Make sure to use the same country that you use to login with the eufy app. "),_()()(),P(25,"span",27),g(26,"div",28)(27,"button",29),O("click",function(){return Y(i),K(T().login())}),I(28,Uve,1,0,"span",30),y(29," Login "),I(30,jve,2,0,"span",9),_(),g(31,"button",31),O("click",function(){return Y(i),K(T().cancelLogin())}),y(32," Cancel "),_()()()()}if(2&e){const i=k2(14),n=T();C(1),b("ngIf",!n.firstLoginAssumed),C(2),b("ngModel",n.credentials.username),W("class",n.emailIsValid?"form-control":"form-control is-invalid")("disabled",!!n.loginInProgress||null),C(5),b("ngModel",n.credentials.password),W("class",n.passwordIsValid?"form-control":"form-control is-invalid")("disabled",!!n.loginInProgress||null),C(7),b("ngModel",n.credentials.deviceName)("ngbTooltip",i)("closeDelay",2500),W("class",n.passwordIsValid?"form-control":"form-control is-invalid")("disabled",!!n.loginInProgress||null),C(5),b("ngModel",n.credentials.country),W("disabled",!!n.loginInProgress||null),C(1),b("ngForOf",n.countries),C(6),W("disabled",!!n.loginInProgress||null),C(1),b("ngIf",n.loginInProgress),C(2),b("ngIf",n.loginInProgress),C(1),W("disabled",!!n.loginInProgress||null)}}function $ve(e,t){1&e&&P(0,"span",37)}function Wve(e,t){1&e&&(g(0,"span"),y(1,"..."),_())}function qve(e,t){if(1&e){const i=S1();g(0,"div")(1,"div",38),y(2,"You should have gotten a 2FA verification code from eufy in your mail. Please enter this below."),_(),g(3,"div",6)(4,"div",39)(5,"input",40),O("ngModelChange",function(r){return Y(i),K(T().otp=r)}),_(),g(6,"label",41),y(7,"2FA Code"),_()()(),g(8,"div",42)(9,"div",43)(10,"button",44),O("click",function(){return Y(i),K(T().login())}),I(11,$ve,1,0,"span",30),y(12," Verify "),I(13,Wve,2,0,"span",9),_()()(),g(14,"div",6)(15,"div",43)(16,"button",31),O("click",function(){return Y(i),K(T().cancelLogin())}),y(17," Cancel "),_()()()()}if(2&e){const i=T();C(5),b("ngModel",i.otp),W("class",i.otpIsValid?"form-control":"form-control is-invalid")("disabled",!!i.loginInProgress||null),C(5),W("disabled",!!i.loginInProgress||null),C(1),b("ngIf",i.loginInProgress),C(2),b("ngIf",i.loginInProgress),C(3),W("disabled",!!i.loginInProgress||null)}}function Yve(e,t){1&e&&P(0,"span",37)}function Kve(e,t){1&e&&(g(0,"span"),y(1,"..."),_())}function Zve(e,t){if(1&e){const i=S1();g(0,"div")(1,"div",38),y(2,"Please enter the captcha below."),_(),g(3,"div",42),P(4,"img",45),_(),g(5,"div",6)(6,"div",39)(7,"input",40),O("ngModelChange",function(r){return Y(i),K(T().captcha=r)}),_(),g(8,"label",41),y(9,"Captcha"),_()()(),g(10,"div",42)(11,"div",43)(12,"button",44),O("click",function(){return Y(i),K(T().login())}),I(13,Yve,1,0,"span",30),y(14," Verify "),I(15,Kve,2,0,"span",9),_()()(),g(16,"div",6)(17,"div",43)(18,"button",31),O("click",function(){return Y(i),K(T().cancelLogin())}),y(19," Cancel "),_()()()()}if(2&e){const i=T();C(4),b("src",i.captchaImageData,D4),C(3),b("ngModel",i.captcha),W("class",i.captchaIsValid?"form-control":"form-control is-invalid")("disabled",!!i.loginInProgress||null),C(5),W("disabled",!!i.loginInProgress||null),C(1),b("ngIf",i.loginInProgress),C(2),b("ngIf",i.loginInProgress),C(3),W("disabled",!!i.loginInProgress||null)}}var Ct=function(e){return e[e.LOGIN=1]="LOGIN",e[e.TFA=2]="TFA",e[e.CAPTCHA=3]="CAPTCHA",e}(Ct||{});let Qve=(()=>{var e;class t{constructor(n,r){V(this,"loginService",void 0),V(this,"routerService",void 0),V(this,"countries",[]),V(this,"credentials",{username:"",password:"",country:"US",deviceName:""}),V(this,"otp",""),V(this,"captcha",""),V(this,"captchaImageData",""),V(this,"captchaId",""),V(this,"loginInProgress",!1),V(this,"loginFailed",!1),V(this,"loginStep",Ct.LOGIN),V(this,"firstLoginAssumed",!1),V(this,"emailIsValid",!0),V(this,"passwordIsValid",!0),V(this,"otpIsValid",!0),V(this,"captchaIsValid",!0),this.loginService=n,this.routerService=r}ngOnInit(){this.getCredentials(),this.fillCountryArray()}getCredentials(){this.loginService.getCredentials().then(n=>this.credentials=n).catch(n=>{this.firstLoginAssumed=!0,console.log("Could not get config in login component: "+n)})}fillCountryArray(){Object.entries(Ive).forEach(([n,r])=>{this.countries.push({short:n,long:r})})}login(){this.inputIsInvalid()||(this.resetLoginFailed(),this.loginInProgress=!0,this.loginStep===Ct.LOGIN&&this.loginWithCredentials(),this.loginStep===Ct.TFA&&this.loginWithTFA(),this.loginStep===Ct.CAPTCHA&&this.loginWithCaptcha())}loginWithCredentials(){var n=this;return De(function*(){let r;try{r=yield n.loginService.login(n.credentials)}catch(a){console.log("login error: "+a)}n.evaluateLoginResult(r)})()}loginWithTFA(){var n=this;return De(function*(){let r;try{r=yield n.loginService.login({verifyCode:n.otp})}catch(a){console.log("login error: "+a)}n.evaluateLoginResult(r)})()}loginWithCaptcha(){var n=this;return De(function*(){let r;try{r=yield n.loginService.login({captcha:{captchaCode:n.captcha,captchaId:n.captchaId}})}catch(a){console.log("login error: "+a)}n.evaluateLoginResult(r)})()}evaluateLoginResult(n){if(this.loginInProgress=!1,n&&n.success)this.loginService.updateConfigCredentials(this.credentials),this.routerService.navigate(["/accessories",{waitForAccessories:!0}]);else{if(n&&n.failReason&&n.failReason===ju.TFA)return void(this.loginStep=Ct.TFA);if(n&&n.failReason&&n.failReason===ju.CAPTCHA&&n.data&&n.data.id&&n.data.captcha)return this.loginStep=Ct.CAPTCHA,this.captchaId=n.data.id,void(this.captchaImageData=n.data.captcha);this.loginStep=Ct.LOGIN,this.loginFailed=!0}}inputIsInvalid(){this.emailIsValid=!0,this.passwordIsValid=!0,this.otpIsValid=!0;let n=!1;return this.loginStep===Ct.LOGIN&&this.credentials.username.length<4&&(this.emailIsValid=!1,n=!0),this.loginStep===Ct.LOGIN&&this.credentials.password.length<4&&(this.passwordIsValid=!1,n=!0),this.loginStep===Ct.TFA&&this.otp.length<6&&(this.otpIsValid=!1,n=!0),this.loginStep===Ct.CAPTCHA&&this.captcha.length<4&&(this.captchaIsValid=!1,n=!0),n}resetLoginFailed(){this.loginFailed=!1}cancelLogin(){this.routerService.navigate(["/accessories"])}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(Rve),w(_2))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-login"]],decls:13,vars:4,consts:[["xmlns","http://www.w3.org/2000/svg",2,"display","none"],["id","info-fill","fill","currentColor","viewBox","0 0 16 16"],["d","M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"],["id","exclamation-triangle-fill","fill","currentColor","viewBox","0 0 16 16"],["d","M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"],["popInfo",""],[1,"row","d-flex","justify-content-center"],["class","col-11 col-sm-7",4,"ngIf"],[1,"col-11","col-sm-7","card","p-4"],[4,"ngIf"],[1,"col-11","col-sm-7"],["type","danger",3,"dismissible","closed"],["width","24","height","24","role","img","aria-label","Login Error",1,"bi","flex-shrink-0","me-2"],[0,"xlink","href","#exclamation-triangle-fill"],["class","alert alert-warning d-flex align-items-center","role","alert",4,"ngIf"],[1,"form-floating","mb-3"],["type","email","id","floatingInput","placeholder","name@example.com","ngModel","","email","",3,"ngModel","ngModelChange"],["for","floatingInput"],["type","password","id","floatingPassword","placeholder","Password",3,"ngModel","ngModelChange"],["for","floatingPassword"],["deviceNameExplanation",""],["type","text","id","floatingDevice","placeholder","Device Name","placement","top",3,"ngModel","ngbTooltip","closeDelay","ngModelChange"],["for","floatingDevice"],[1,"row"],[1,"col-12","col-sm-6","mb-3","mb-sm0"],["aria-label","select country",1,"form-select","mb-3",3,"ngModel","ngModelChange"],[4,"ngFor","ngForOf"],[1,"col-0","col-sm-1"],[1,"col-12","col-sm-5","text-end","mb-3"],["type","button",1,"btn","btn-success","col-12","mb-3",3,"click"],["class","spinner-border spinner-border-sm","role","status","aria-hidden","true",4,"ngIf"],["type","button",1,"btn","btn-secondary","col-12",3,"click"],["role","alert",1,"alert","alert-warning","d-flex","align-items-center"],["width","24","height","24","role","img","aria-label","Warning:",1,"bi","flex-shrink-0","me-2"],[0,"xlink","href","#info-fill"],["role","button","popoverTitle","Please restart after login",3,"autoClose","ngbPopover"],["href","https://github.com/homebridge-eufy-security/plugin/issues/201","target","_blank","rel","noopener noreferrer",2,"color","white"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm"],[1,"row","mb-3"],[1,"form-floating","mb-3","col-8","col-sm-6"],["type","text","id","floatingOTP","placeholder","",3,"ngModel","ngModelChange"],["for","floatingOTP"],[1,"row","d-flex","justify-content-center","mb-3"],[1,"col-8","col-sm-6"],["type","button",1,"btn","btn-success","col-12",3,"click"],[1,"col-10","col-sm-8",3,"src"]],template:function(n,r){1&n&&(d4(),g(0,"svg",0)(1,"symbol",1),P(2,"path",2),_(),g(3,"symbol",3),P(4,"path",4),_()(),I(5,Ove,4,0,"ng-template",null,5,D2),h4(),g(7,"div",6),I(8,kve,6,1,"p",7),g(9,"div",8),I(10,Gve,33,19,"div",9),I(11,qve,18,7,"div",9),I(12,Zve,20,8,"div",9),_()()),2&n&&(C(8),b("ngIf",r.loginFailed),C(2),b("ngIf",1===r.loginStep),C(1),b("ngIf",2===r.loginStep),C(1),b("ngIf",3===r.loginStep))},dependencies:[Xt,D1,w3,H3,qn,yn,E1,C5,y1,xC,SY,TY],encapsulation:2})),t})(),Jve=(()=>{var e;class t extends L1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",[])}ngOnInit(){this.readValue()}readValue(){var n=this;return De(function*(){const r=yield n.getStationConfig(n.accessory?.uniqueId||"");r&&Array.isArray(r.manualTriggerModes)&&(n.value=r.manualTriggerModes)})()}toggle(n){-1!==this.value.indexOf(n)?this.value=this.value.filter(r=>r!==n):this.value.push(n)}update(){this.updateConfig({manualTriggerModes:this.value},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-manual-alarm-modes"]],inputs:{accessory:"accessory"},features:[re],decls:36,vars:4,consts:[[1,"settingsItem","row","p-3"],[1,"mb-4"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"change"]],template:function(n,r){1&n&&(g(0,"div",0)(1,"span",1),y(2,"Manual Alarm Trigger Modes"),_(),g(3,"div",2)(4,"span"),y(5,"HomeKit Home"),_(),g(6,"div",3)(7,"input",4),O("change",function(){return r.toggle(0),r.update()}),_()()(),g(8,"div",2)(9,"span"),y(10,"HomeKit Away"),_(),g(11,"div",3)(12,"input",4),O("change",function(){return r.toggle(1),r.update()}),_()()(),g(13,"div",2)(14,"span"),y(15,"HomeKit Night"),_(),g(16,"div",3)(17,"input",4),O("change",function(){return r.toggle(2),r.update()}),_()()(),g(18,"div",2)(19,"span"),y(20,"HomeKit Off/Disarmed"),_(),g(21,"div",3)(22,"input",4),O("change",function(){return r.toggle(3),r.update()}),_()()(),g(23,"small")(24,"i"),y(25," You can manually trigger (and reset) the stations alarm with a switch. Therefore you can utilize non eufy devices (e.g. a motion sensor, leak sensor, break-in sensor, ... from another vendor) to trigger the alarm with a homekit automation."),P(26,"p"),y(27," In order to do so, you must specify in which station mode the alarm can be triggered. "),P(28,"p"),y(29," Please be aware that this setting can only be set on a per station basis and not per automation."),P(30,"br"),y(31," By default the alarm cause will be shown as 'motion detected' in the eufy app. "),P(32,"p"),y(33," The manual alarm respects the delay alarm on leave settings from the eufy app. Triggered automations while the delay is effective will be ignored."),P(34,"br"),y(35," The native alarm delay setting is currently not supported. "),_()()()),2&n&&(C(7),W("checked",-1!==r.value.indexOf(0)||null),C(5),W("checked",-1!==r.value.indexOf(1)||null),C(5),W("checked",-1!==r.value.indexOf(2)||null),C(5),W("checked",-1!==r.value.indexOf(3)||null))},encapsulation:2})),t})();function Xve(e,t){if(1&e&&(g(0,"div",2)(1,"div",3)(2,"b"),y(3,"Station Settings"),_(),y(4," for "),g(5,"i"),y(6),_()(),g(7,"div",4),P(8,"app-ignore-accessory",5)(9,"hr")(10,"app-guard-modes-mapping",5)(11,"hr")(12,"app-manual-alarm-modes",5),_()()),2&e){const i=T();C(6),K4("",i.accessory.displayName," (",i.accessory.uniqueId,")"),C(2),b("accessory",i.accessory),C(2),b("accessory",i.accessory),C(2),b("accessory",i.accessory)}}function t_e(e,t){if(1&e){const i=S1();g(0,"p",7)(1,"ngb-alert",8),O("closed",function(){return Y(i),K(T().failed=!1)}),d4(),g(2,"svg",9),P(3,"use",10),_(),h4(),g(4,"strong"),y(5,"Reset was not successful!"),_()()()}2&e&&(C(1),b("dismissible",!0))}const n_e=[{path:"",redirectTo:"/accessories",pathMatch:"full"},{path:"accessories",component:Dge},{path:"advancedConfig",component:Qge},{path:"cameraConfig/:uniqueId",component:Tve},{path:"stationConfig/:uniqueId",component:(()=>{var e;class t{constructor(n,r){V(this,"pluginService",void 0),V(this,"route",void 0),V(this,"accessory",void 0),this.pluginService=n,this.route=r}ngOnInit(){const n=this.route.snapshot.paramMap.get("uniqueId");this.accessory=this.pluginService.getStation(n)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(r1),w(En))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-station-config-options"]],decls:3,vars:1,consts:[["routerLink","/accessories",1,"btn","btn-secondary","mb-3"],["class","card",4,"ngIf"],[1,"card"],[1,"card-header"],[1,"card-body","pt-0","pb-4"],[3,"accessory"]],template:function(n,r){1&n&&(g(0,"a",0),y(1,"Back to Devices List"),_(),I(2,Xve,13,5,"div",1)),2&n&&(C(2),b("ngIf",r.accessory))},dependencies:[D1,xn,ux,lx,Jve],encapsulation:2})),t})()},{path:"login",component:Qve},{path:"reset",component:(()=>{var e;class t{constructor(n,r){V(this,"routerService",void 0),V(this,"pluginService",void 0),V(this,"disabled",!1),V(this,"failed",!1),this.routerService=n,this.pluginService=r}cancel(){this.routerService.navigateByUrl("/accessories")}resetEverything(){var n=this;return De(function*(){n.disabled=!0;try{const r=yield window.homebridge.request("/reset");n.failed=1!==r.result}catch{n.failed=!0}n.disabled=!1,n.failed||(yield n.pluginService.updateConfig({},!0),window.homebridge.closeSettings())})()}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(_2),w(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-reset-confirmation"]],decls:10,vars:3,consts:[[1,"row","d-flex","justify-content-center"],["class","col-11 col-sm-7",4,"ngIf"],[1,"col-11","col-sm-7","card","p-4"],[1,"text-center","mb-4"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-center"],["type","button",1,"btn","btn-secondary","col-11","col-sm-3","mb-sm-0","mb-3",3,"click"],["type","button",1,"btn","btn-danger","col-11","col-sm-3",3,"click"],[1,"col-11","col-sm-7"],["type","danger",3,"dismissible","closed"],["width","24","height","24","role","img","aria-label","Login Error",1,"bi","flex-shrink-0","me-2"],[0,"xlink","href","#exclamation-triangle-fill"]],template:function(n,r){1&n&&(g(0,"div",0),I(1,t_e,6,1,"p",1),g(2,"div",2)(3,"h3",3),y(4,"Are you sure that you want to erase everything?"),_(),g(5,"div",4)(6,"button",5),O("click",function(){return r.cancel()}),y(7,"No"),_(),g(8,"button",6),O("click",function(){return r.resetEverything()}),y(9,"Do it!"),_()()()()),2&n&&(C(1),b("ngIf",r.failed),C(5),W("disabled",!!r.disabled||null),C(2),W("disabled",!!r.disabled||null))},dependencies:[D1,xC],encapsulation:2})),t})()},{path:"**",redirectTo:"/accessories"}];let i_e=(()=>{var e;class t{}return e=t,V(t,"\u0275fac",function(n){return new(n||e)}),V(t,"\u0275mod",Fe({type:e})),V(t,"\u0275inj",Ie({imports:[Lb.forRoot(n_e,{scrollPositionRestoration:"enabled"}),Lb]})),t})(),r_e=(()=>{var e;class t{}return e=t,V(t,"\u0275fac",function(n){return new(n||e)}),V(t,"\u0275mod",Fe({type:e,bootstrap:[JJ]})),V(t,"\u0275inj",Ie({providers:[{provide:$n,useClass:nv}],imports:[$U,iG,kY,i_e,xZ]})),t})();jU().bootstrapModule(r_e).catch(e=>console.error(e))},919:(Z3,G2)=>{"use strict";G2.byteLength=function a1(le){var ye=Ne(le),g1=ye[1];return 3*(ye[0]+g1)/4-g1},G2.toByteArray=function k1(le){var ye,h2,Ye=Ne(le),g1=Ye[0],H1=Ye[1],Je=new f2(function L(le,ye,Ye){return 3*(ye+Ye)/4-Ye}(0,g1,H1)),d2=0,at=H1>0?g1-4:g1;for(h2=0;h2<at;h2+=4)ye=Q[le.charCodeAt(h2)]<<18|Q[le.charCodeAt(h2+1)]<<12|Q[le.charCodeAt(h2+2)]<<6|Q[le.charCodeAt(h2+3)],Je[d2++]=ye>>16&255,Je[d2++]=ye>>8&255,Je[d2++]=255&ye;return 2===H1&&(ye=Q[le.charCodeAt(h2)]<<2|Q[le.charCodeAt(h2+1)]>>4,Je[d2++]=255&ye),1===H1&&(ye=Q[le.charCodeAt(h2)]<<10|Q[le.charCodeAt(h2+1)]<<4|Q[le.charCodeAt(h2+2)]>>2,Je[d2++]=ye>>8&255,Je[d2++]=255&ye),Je},G2.fromByteArray=function Z1(le){for(var ye,Ye=le.length,g1=Ye%3,H1=[],d2=0,at=Ye-g1;d2<at;d2+=16383)H1.push(P1(le,d2,d2+16383>at?at:d2+16383));return 1===g1?H1.push(u1[(ye=le[Ye-1])>>2]+u1[ye<<4&63]+"=="):2===g1&&H1.push(u1[(ye=(le[Ye-2]<<8)+le[Ye-1])>>10]+u1[ye>>4&63]+u1[ye<<2&63]+"="),H1.join("")};for(var u1=[],Q=[],f2=typeof Uint8Array<"u"?Uint8Array:Array,w1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Qe=0;Qe<64;++Qe)u1[Qe]=w1[Qe],Q[w1.charCodeAt(Qe)]=Qe;function Ne(le){var ye=le.length;if(ye%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var Ye=le.indexOf("=");return-1===Ye&&(Ye=ye),[Ye,Ye===ye?0:4-Ye%4]}function s1(le){return u1[le>>18&63]+u1[le>>12&63]+u1[le>>6&63]+u1[63&le]}function P1(le,ye,Ye){for(var H1=[],Je=ye;Je<Ye;Je+=3)H1.push(s1((le[Je]<<16&16711680)+(le[Je+1]<<8&65280)+(255&le[Je+2])));return H1.join("")}Q["-".charCodeAt(0)]=62,Q["_".charCodeAt(0)]=63},7:(Z3,G2,u1)=>{"use strict";const f2=u1(919),w1=u1(601),Qe="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;G2.lW=L,G2.h2=50;const Se=2147483647;function a1(v){if(v>Se)throw new RangeError('The value "'+v+'" is invalid for option "size"');const f=new Uint8Array(v);return Object.setPrototypeOf(f,L.prototype),f}function L(v,f,h){if("number"==typeof v){if("string"==typeof f)throw new TypeError('The "string" argument must be of type string. Received type number');return Z1(v)}return k1(v,f,h)}function k1(v,f,h){if("string"==typeof v)return function le(v,f){if(("string"!=typeof f||""===f)&&(f="utf8"),!L.isEncoding(f))throw new TypeError("Unknown encoding: "+f);const h=0|at(v,f);let M=a1(h);const D=M.write(v,f);return D!==h&&(M=M.slice(0,D)),M}(v,f);if(ArrayBuffer.isView(v))return function Ye(v){if(st(v,Uint8Array)){const f=new Uint8Array(v);return g1(f.buffer,f.byteOffset,f.byteLength)}return ye(v)}(v);if(null==v)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof v);if(st(v,ArrayBuffer)||v&&st(v.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(st(v,SharedArrayBuffer)||v&&st(v.buffer,SharedArrayBuffer)))return g1(v,f,h);if("number"==typeof v)throw new TypeError('The "value" argument must not be of type number. Received type number');const M=v.valueOf&&v.valueOf();if(null!=M&&M!==v)return L.from(M,f,h);const D=function H1(v){if(L.isBuffer(v)){const f=0|Je(v.length),h=a1(f);return 0===h.length||v.copy(h,0,0,f),h}return void 0!==v.length?"number"!=typeof v.length||a3(v.length)?a1(0):ye(v):"Buffer"===v.type&&Array.isArray(v.data)?ye(v.data):void 0}(v);if(D)return D;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof v[Symbol.toPrimitive])return L.from(v[Symbol.toPrimitive]("string"),f,h);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof v)}function s1(v){if("number"!=typeof v)throw new TypeError('"size" argument must be of type number');if(v<0)throw new RangeError('The value "'+v+'" is invalid for option "size"')}function Z1(v){return s1(v),a1(v<0?0:0|Je(v))}function ye(v){const f=v.length<0?0:0|Je(v.length),h=a1(f);for(let M=0;M<f;M+=1)h[M]=255&v[M];return h}function g1(v,f,h){if(f<0||v.byteLength<f)throw new RangeError('"offset" is outside of buffer bounds');if(v.byteLength<f+(h||0))throw new RangeError('"length" is outside of buffer bounds');let M;return M=void 0===f&&void 0===h?new Uint8Array(v):void 0===h?new Uint8Array(v,f):new Uint8Array(v,f,h),Object.setPrototypeOf(M,L.prototype),M}function Je(v){if(v>=Se)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Se.toString(16)+" bytes");return 0|v}function at(v,f){if(L.isBuffer(v))return v.length;if(ArrayBuffer.isView(v)||st(v,ArrayBuffer))return v.byteLength;if("string"!=typeof v)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof v);const h=v.length,M=arguments.length>2&&!0===arguments[2];if(!M&&0===h)return 0;let D=!1;for(;;)switch(f){case"ascii":case"latin1":case"binary":return h;case"utf8":case"utf-8":return Wa(v).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*h;case"hex":return h>>>1;case"base64":return Ya(v).length;default:if(D)return M?-1:Wa(v).length;f=(""+f).toLowerCase(),D=!0}}function h2(v,f,h){let M=!1;if((void 0===f||f<0)&&(f=0),f>this.length||((void 0===h||h>this.length)&&(h=this.length),h<=0)||(h>>>=0)<=(f>>>=0))return"";for(v||(v="utf8");;)switch(v){case"hex":return w6(this,f,h);case"utf8":case"utf-8":return Ua(this,f,h);case"ascii":return ja(this,f,h);case"latin1":case"binary":return b6(this,f,h);case"base64":return yt(this,f,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return H6(this,f,h);default:if(M)throw new TypeError("Unknown encoding: "+v);v=(v+"").toLowerCase(),M=!0}}function Mt(v,f,h){const M=v[f];v[f]=v[h],v[h]=M}function Ba(v,f,h,M,D){if(0===v.length)return-1;if("string"==typeof h?(M=h,h=0):h>2147483647?h=2147483647:h<-2147483648&&(h=-2147483648),a3(h=+h)&&(h=D?0:v.length-1),h<0&&(h=v.length+h),h>=v.length){if(D)return-1;h=v.length-1}else if(h<0){if(!D)return-1;h=0}if("string"==typeof f&&(f=L.from(f,M)),L.isBuffer(f))return 0===f.length?-1:Ln(v,f,h,M,D);if("number"==typeof f)return f&=255,"function"==typeof Uint8Array.prototype.indexOf?D?Uint8Array.prototype.indexOf.call(v,f,h):Uint8Array.prototype.lastIndexOf.call(v,f,h):Ln(v,[f],h,M,D);throw new TypeError("val must be string, number or Buffer")}function Ln(v,f,h,M,D){let Xe,A=1,R=v.length,Ce=f.length;if(void 0!==M&&("ucs2"===(M=String(M).toLowerCase())||"ucs-2"===M||"utf16le"===M||"utf-16le"===M)){if(v.length<2||f.length<2)return-1;A=2,R/=2,Ce/=2,h/=2}function d1(h1,Be){return 1===A?h1[Be]:h1.readUInt16BE(Be*A)}if(D){let h1=-1;for(Xe=h;Xe<R;Xe++)if(d1(v,Xe)===d1(f,-1===h1?0:Xe-h1)){if(-1===h1&&(h1=Xe),Xe-h1+1===Ce)return h1*A}else-1!==h1&&(Xe-=Xe-h1),h1=-1}else for(h+Ce>R&&(h=R-Ce),Xe=h;Xe>=0;Xe--){let h1=!0;for(let Be=0;Be<Ce;Be++)if(d1(v,Xe+Be)!==d1(f,Be)){h1=!1;break}if(h1)return Xe}return-1}function Q3(v,f,h,M){h=Number(h)||0;const D=v.length-h;M?(M=Number(M))>D&&(M=D):M=D;const A=f.length;let R;for(M>A/2&&(M=A/2),R=0;R<M;++R){const Ce=parseInt(f.substr(2*R,2),16);if(a3(Ce))return R;v[h+R]=Ce}return R}function M6(v,f,h,M){return Tn(Wa(f,v.length-h),v,h,M)}function zi(v,f,h,M){return Tn(function S6(v){const f=[];for(let h=0;h<v.length;++h)f.push(255&v.charCodeAt(h));return f}(f),v,h,M)}function y6(v,f,h,M){return Tn(Ya(f),v,h,M)}function Ei(v,f,h,M){return Tn(function qa(v,f){let h,M,D;const A=[];for(let R=0;R<v.length&&!((f-=2)<0);++R)h=v.charCodeAt(R),M=h>>8,D=h%256,A.push(D),A.push(M);return A}(f,v.length-h),v,h,M)}function yt(v,f,h){return f2.fromByteArray(0===f&&h===v.length?v:v.slice(f,h))}function Ua(v,f,h){h=Math.min(v.length,h);const M=[];let D=f;for(;D<h;){const A=v[D];let R=null,Ce=A>239?4:A>223?3:A>191?2:1;if(D+Ce<=h){let d1,Xe,h1,Be;switch(Ce){case 1:A<128&&(R=A);break;case 2:d1=v[D+1],128==(192&d1)&&(Be=(31&A)<<6|63&d1,Be>127&&(R=Be));break;case 3:d1=v[D+1],Xe=v[D+2],128==(192&d1)&&128==(192&Xe)&&(Be=(15&A)<<12|(63&d1)<<6|63&Xe,Be>2047&&(Be<55296||Be>57343)&&(R=Be));break;case 4:d1=v[D+1],Xe=v[D+2],h1=v[D+3],128==(192&d1)&&128==(192&Xe)&&128==(192&h1)&&(Be=(15&A)<<18|(63&d1)<<12|(63&Xe)<<6|63&h1,Be>65535&&Be<1114112&&(R=Be))}}null===R?(R=65533,Ce=1):R>65535&&(R-=65536,M.push(R>>>10&1023|55296),R=56320|1023&R),M.push(R),D+=Ce}return function We(v){const f=v.length;if(f<=xi)return String.fromCharCode.apply(String,v);let h="",M=0;for(;M<f;)h+=String.fromCharCode.apply(String,v.slice(M,M+=xi));return h}(M)}!(L.TYPED_ARRAY_SUPPORT=function Ne(){try{const v=new Uint8Array(1),f={foo:function(){return 42}};return Object.setPrototypeOf(f,Uint8Array.prototype),Object.setPrototypeOf(v,f),42===v.foo()}catch{return!1}}())&&typeof console<"u"&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(L.prototype,"parent",{enumerable:!0,get:function(){if(L.isBuffer(this))return this.buffer}}),Object.defineProperty(L.prototype,"offset",{enumerable:!0,get:function(){if(L.isBuffer(this))return this.byteOffset}}),L.poolSize=8192,L.from=function(v,f,h){return k1(v,f,h)},Object.setPrototypeOf(L.prototype,Uint8Array.prototype),Object.setPrototypeOf(L,Uint8Array),L.alloc=function(v,f,h){return function P1(v,f,h){return s1(v),v<=0?a1(v):void 0!==f?"string"==typeof h?a1(v).fill(f,h):a1(v).fill(f):a1(v)}(v,f,h)},L.allocUnsafe=function(v){return Z1(v)},L.allocUnsafeSlow=function(v){return Z1(v)},L.isBuffer=function(f){return null!=f&&!0===f._isBuffer&&f!==L.prototype},L.compare=function(f,h){if(st(f,Uint8Array)&&(f=L.from(f,f.offset,f.byteLength)),st(h,Uint8Array)&&(h=L.from(h,h.offset,h.byteLength)),!L.isBuffer(f)||!L.isBuffer(h))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(f===h)return 0;let M=f.length,D=h.length;for(let A=0,R=Math.min(M,D);A<R;++A)if(f[A]!==h[A]){M=f[A],D=h[A];break}return M<D?-1:D<M?1:0},L.isEncoding=function(f){switch(String(f).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},L.concat=function(f,h){if(!Array.isArray(f))throw new TypeError('"list" argument must be an Array of Buffers');if(0===f.length)return L.alloc(0);let M;if(void 0===h)for(h=0,M=0;M<f.length;++M)h+=f[M].length;const D=L.allocUnsafe(h);let A=0;for(M=0;M<f.length;++M){let R=f[M];if(st(R,Uint8Array))A+R.length>D.length?(L.isBuffer(R)||(R=L.from(R)),R.copy(D,A)):Uint8Array.prototype.set.call(D,R,A);else{if(!L.isBuffer(R))throw new TypeError('"list" argument must be an Array of Buffers');R.copy(D,A)}A+=R.length}return D},L.byteLength=at,L.prototype._isBuffer=!0,L.prototype.swap16=function(){const f=this.length;if(f%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let h=0;h<f;h+=2)Mt(this,h,h+1);return this},L.prototype.swap32=function(){const f=this.length;if(f%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let h=0;h<f;h+=4)Mt(this,h,h+3),Mt(this,h+1,h+2);return this},L.prototype.swap64=function(){const f=this.length;if(f%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let h=0;h<f;h+=8)Mt(this,h,h+7),Mt(this,h+1,h+6),Mt(this,h+2,h+5),Mt(this,h+3,h+4);return this},L.prototype.toLocaleString=L.prototype.toString=function(){const f=this.length;return 0===f?"":0===arguments.length?Ua(this,0,f):h2.apply(this,arguments)},L.prototype.equals=function(f){if(!L.isBuffer(f))throw new TypeError("Argument must be a Buffer");return this===f||0===L.compare(this,f)},L.prototype.inspect=function(){let f="";const h=G2.h2;return f=this.toString("hex",0,h).replace(/(.{2})/g,"$1 ").trim(),this.length>h&&(f+=" ... "),"<Buffer "+f+">"},Qe&&(L.prototype[Qe]=L.prototype.inspect),L.prototype.compare=function(f,h,M,D,A){if(st(f,Uint8Array)&&(f=L.from(f,f.offset,f.byteLength)),!L.isBuffer(f))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof f);if(void 0===h&&(h=0),void 0===M&&(M=f?f.length:0),void 0===D&&(D=0),void 0===A&&(A=this.length),h<0||M>f.length||D<0||A>this.length)throw new RangeError("out of range index");if(D>=A&&h>=M)return 0;if(D>=A)return-1;if(h>=M)return 1;if(this===f)return 0;let R=(A>>>=0)-(D>>>=0),Ce=(M>>>=0)-(h>>>=0);const d1=Math.min(R,Ce),Xe=this.slice(D,A),h1=f.slice(h,M);for(let Be=0;Be<d1;++Be)if(Xe[Be]!==h1[Be]){R=Xe[Be],Ce=h1[Be];break}return R<Ce?-1:Ce<R?1:0},L.prototype.includes=function(f,h,M){return-1!==this.indexOf(f,h,M)},L.prototype.indexOf=function(f,h,M){return Ba(this,f,h,M,!0)},L.prototype.lastIndexOf=function(f,h,M){return Ba(this,f,h,M,!1)},L.prototype.write=function(f,h,M,D){if(void 0===h)D="utf8",M=this.length,h=0;else if(void 0===M&&"string"==typeof h)D=h,M=this.length,h=0;else{if(!isFinite(h))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");h>>>=0,isFinite(M)?(M>>>=0,void 0===D&&(D="utf8")):(D=M,M=void 0)}const A=this.length-h;if((void 0===M||M>A)&&(M=A),f.length>0&&(M<0||h<0)||h>this.length)throw new RangeError("Attempt to write outside buffer bounds");D||(D="utf8");let R=!1;for(;;)switch(D){case"hex":return Q3(this,f,h,M);case"utf8":case"utf-8":return M6(this,f,h,M);case"ascii":case"latin1":case"binary":return zi(this,f,h,M);case"base64":return y6(this,f,h,M);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ei(this,f,h,M);default:if(R)throw new TypeError("Unknown encoding: "+D);D=(""+D).toLowerCase(),R=!0}},L.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const xi=4096;function ja(v,f,h){let M="";h=Math.min(v.length,h);for(let D=f;D<h;++D)M+=String.fromCharCode(127&v[D]);return M}function b6(v,f,h){let M="";h=Math.min(v.length,h);for(let D=f;D<h;++D)M+=String.fromCharCode(v[D]);return M}function w6(v,f,h){const M=v.length;(!f||f<0)&&(f=0),(!h||h<0||h>M)&&(h=M);let D="";for(let A=f;A<h;++A)D+=Ka[v[A]];return D}function H6(v,f,h){const M=v.slice(f,h);let D="";for(let A=0;A<M.length-1;A+=2)D+=String.fromCharCode(M[A]+256*M[A+1]);return D}function fe(v,f,h){if(v%1!=0||v<0)throw new RangeError("offset is not uint");if(v+f>h)throw new RangeError("Trying to access beyond buffer length")}function n2(v,f,h,M,D,A){if(!L.isBuffer(v))throw new TypeError('"buffer" argument must be a Buffer instance');if(f>D||f<A)throw new RangeError('"value" argument is out of bounds');if(h+M>v.length)throw new RangeError("Index out of range")}function Ai(v,f,h,M,D){$a(f,M,D,v,h,7);let A=Number(f&BigInt(4294967295));v[h++]=A,A>>=8,v[h++]=A,A>>=8,v[h++]=A,A>>=8,v[h++]=A;let R=Number(f>>BigInt(32)&BigInt(4294967295));return v[h++]=R,R>>=8,v[h++]=R,R>>=8,v[h++]=R,R>>=8,v[h++]=R,h}function f1(v,f,h,M,D){$a(f,M,D,v,h,7);let A=Number(f&BigInt(4294967295));v[h+7]=A,A>>=8,v[h+6]=A,A>>=8,v[h+5]=A,A>>=8,v[h+4]=A;let R=Number(f>>BigInt(32)&BigInt(4294967295));return v[h+3]=R,R>>=8,v[h+2]=R,R>>=8,v[h+1]=R,R>>=8,v[h]=R,h+8}function qe(v,f,h,M,D,A){if(h+M>v.length)throw new RangeError("Index out of range");if(h<0)throw new RangeError("Index out of range")}function Ga(v,f,h,M,D){return f=+f,h>>>=0,D||qe(v,0,h,4),w1.write(v,f,h,M,23,4),h+4}function we(v,f,h,M,D){return f=+f,h>>>=0,D||qe(v,0,h,8),w1.write(v,f,h,M,52,8),h+8}L.prototype.slice=function(f,h){const M=this.length;(f=~~f)<0?(f+=M)<0&&(f=0):f>M&&(f=M),(h=void 0===h?M:~~h)<0?(h+=M)<0&&(h=0):h>M&&(h=M),h<f&&(h=f);const D=this.subarray(f,h);return Object.setPrototypeOf(D,L.prototype),D},L.prototype.readUintLE=L.prototype.readUIntLE=function(f,h,M){f>>>=0,h>>>=0,M||fe(f,h,this.length);let D=this[f],A=1,R=0;for(;++R<h&&(A*=256);)D+=this[f+R]*A;return D},L.prototype.readUintBE=L.prototype.readUIntBE=function(f,h,M){f>>>=0,h>>>=0,M||fe(f,h,this.length);let D=this[f+--h],A=1;for(;h>0&&(A*=256);)D+=this[f+--h]*A;return D},L.prototype.readUint8=L.prototype.readUInt8=function(f,h){return f>>>=0,h||fe(f,1,this.length),this[f]},L.prototype.readUint16LE=L.prototype.readUInt16LE=function(f,h){return f>>>=0,h||fe(f,2,this.length),this[f]|this[f+1]<<8},L.prototype.readUint16BE=L.prototype.readUInt16BE=function(f,h){return f>>>=0,h||fe(f,2,this.length),this[f]<<8|this[f+1]},L.prototype.readUint32LE=L.prototype.readUInt32LE=function(f,h){return f>>>=0,h||fe(f,4,this.length),(this[f]|this[f+1]<<8|this[f+2]<<16)+16777216*this[f+3]},L.prototype.readUint32BE=L.prototype.readUInt32BE=function(f,h){return f>>>=0,h||fe(f,4,this.length),16777216*this[f]+(this[f+1]<<16|this[f+2]<<8|this[f+3])},L.prototype.readBigUInt64LE=Ft(function(f){Nn(f>>>=0,"offset");const h=this[f],M=this[f+7];(void 0===h||void 0===M)&&X3(f,this.length-8);const D=h+256*this[++f]+65536*this[++f]+this[++f]*2**24,A=this[++f]+256*this[++f]+65536*this[++f]+M*2**24;return BigInt(D)+(BigInt(A)<<BigInt(32))}),L.prototype.readBigUInt64BE=Ft(function(f){Nn(f>>>=0,"offset");const h=this[f],M=this[f+7];(void 0===h||void 0===M)&&X3(f,this.length-8);const D=h*2**24+65536*this[++f]+256*this[++f]+this[++f],A=this[++f]*2**24+65536*this[++f]+256*this[++f]+M;return(BigInt(D)<<BigInt(32))+BigInt(A)}),L.prototype.readIntLE=function(f,h,M){f>>>=0,h>>>=0,M||fe(f,h,this.length);let D=this[f],A=1,R=0;for(;++R<h&&(A*=256);)D+=this[f+R]*A;return A*=128,D>=A&&(D-=Math.pow(2,8*h)),D},L.prototype.readIntBE=function(f,h,M){f>>>=0,h>>>=0,M||fe(f,h,this.length);let D=h,A=1,R=this[f+--D];for(;D>0&&(A*=256);)R+=this[f+--D]*A;return A*=128,R>=A&&(R-=Math.pow(2,8*h)),R},L.prototype.readInt8=function(f,h){return f>>>=0,h||fe(f,1,this.length),128&this[f]?-1*(255-this[f]+1):this[f]},L.prototype.readInt16LE=function(f,h){f>>>=0,h||fe(f,2,this.length);const M=this[f]|this[f+1]<<8;return 32768&M?4294901760|M:M},L.prototype.readInt16BE=function(f,h){f>>>=0,h||fe(f,2,this.length);const M=this[f+1]|this[f]<<8;return 32768&M?4294901760|M:M},L.prototype.readInt32LE=function(f,h){return f>>>=0,h||fe(f,4,this.length),this[f]|this[f+1]<<8|this[f+2]<<16|this[f+3]<<24},L.prototype.readInt32BE=function(f,h){return f>>>=0,h||fe(f,4,this.length),this[f]<<24|this[f+1]<<16|this[f+2]<<8|this[f+3]},L.prototype.readBigInt64LE=Ft(function(f){Nn(f>>>=0,"offset");const h=this[f],M=this[f+7];return(void 0===h||void 0===M)&&X3(f,this.length-8),(BigInt(this[f+4]+256*this[f+5]+65536*this[f+6]+(M<<24))<<BigInt(32))+BigInt(h+256*this[++f]+65536*this[++f]+this[++f]*2**24)}),L.prototype.readBigInt64BE=Ft(function(f){Nn(f>>>=0,"offset");const h=this[f],M=this[f+7];(void 0===h||void 0===M)&&X3(f,this.length-8);const D=(h<<24)+65536*this[++f]+256*this[++f]+this[++f];return(BigInt(D)<<BigInt(32))+BigInt(this[++f]*2**24+65536*this[++f]+256*this[++f]+M)}),L.prototype.readFloatLE=function(f,h){return f>>>=0,h||fe(f,4,this.length),w1.read(this,f,!0,23,4)},L.prototype.readFloatBE=function(f,h){return f>>>=0,h||fe(f,4,this.length),w1.read(this,f,!1,23,4)},L.prototype.readDoubleLE=function(f,h){return f>>>=0,h||fe(f,8,this.length),w1.read(this,f,!0,52,8)},L.prototype.readDoubleBE=function(f,h){return f>>>=0,h||fe(f,8,this.length),w1.read(this,f,!1,52,8)},L.prototype.writeUintLE=L.prototype.writeUIntLE=function(f,h,M,D){f=+f,h>>>=0,M>>>=0,D||n2(this,f,h,M,Math.pow(2,8*M)-1,0);let A=1,R=0;for(this[h]=255&f;++R<M&&(A*=256);)this[h+R]=f/A&255;return h+M},L.prototype.writeUintBE=L.prototype.writeUIntBE=function(f,h,M,D){f=+f,h>>>=0,M>>>=0,D||n2(this,f,h,M,Math.pow(2,8*M)-1,0);let A=M-1,R=1;for(this[h+A]=255&f;--A>=0&&(R*=256);)this[h+A]=f/R&255;return h+M},L.prototype.writeUint8=L.prototype.writeUInt8=function(f,h,M){return f=+f,h>>>=0,M||n2(this,f,h,1,255,0),this[h]=255&f,h+1},L.prototype.writeUint16LE=L.prototype.writeUInt16LE=function(f,h,M){return f=+f,h>>>=0,M||n2(this,f,h,2,65535,0),this[h]=255&f,this[h+1]=f>>>8,h+2},L.prototype.writeUint16BE=L.prototype.writeUInt16BE=function(f,h,M){return f=+f,h>>>=0,M||n2(this,f,h,2,65535,0),this[h]=f>>>8,this[h+1]=255&f,h+2},L.prototype.writeUint32LE=L.prototype.writeUInt32LE=function(f,h,M){return f=+f,h>>>=0,M||n2(this,f,h,4,4294967295,0),this[h+3]=f>>>24,this[h+2]=f>>>16,this[h+1]=f>>>8,this[h]=255&f,h+4},L.prototype.writeUint32BE=L.prototype.writeUInt32BE=function(f,h,M){return f=+f,h>>>=0,M||n2(this,f,h,4,4294967295,0),this[h]=f>>>24,this[h+1]=f>>>16,this[h+2]=f>>>8,this[h+3]=255&f,h+4},L.prototype.writeBigUInt64LE=Ft(function(f,h=0){return Ai(this,f,h,BigInt(0),BigInt("0xffffffffffffffff"))}),L.prototype.writeBigUInt64BE=Ft(function(f,h=0){return f1(this,f,h,BigInt(0),BigInt("0xffffffffffffffff"))}),L.prototype.writeIntLE=function(f,h,M,D){if(f=+f,h>>>=0,!D){const d1=Math.pow(2,8*M-1);n2(this,f,h,M,d1-1,-d1)}let A=0,R=1,Ce=0;for(this[h]=255&f;++A<M&&(R*=256);)f<0&&0===Ce&&0!==this[h+A-1]&&(Ce=1),this[h+A]=(f/R>>0)-Ce&255;return h+M},L.prototype.writeIntBE=function(f,h,M,D){if(f=+f,h>>>=0,!D){const d1=Math.pow(2,8*M-1);n2(this,f,h,M,d1-1,-d1)}let A=M-1,R=1,Ce=0;for(this[h+A]=255&f;--A>=0&&(R*=256);)f<0&&0===Ce&&0!==this[h+A+1]&&(Ce=1),this[h+A]=(f/R>>0)-Ce&255;return h+M},L.prototype.writeInt8=function(f,h,M){return f=+f,h>>>=0,M||n2(this,f,h,1,127,-128),f<0&&(f=255+f+1),this[h]=255&f,h+1},L.prototype.writeInt16LE=function(f,h,M){return f=+f,h>>>=0,M||n2(this,f,h,2,32767,-32768),this[h]=255&f,this[h+1]=f>>>8,h+2},L.prototype.writeInt16BE=function(f,h,M){return f=+f,h>>>=0,M||n2(this,f,h,2,32767,-32768),this[h]=f>>>8,this[h+1]=255&f,h+2},L.prototype.writeInt32LE=function(f,h,M){return f=+f,h>>>=0,M||n2(this,f,h,4,2147483647,-2147483648),this[h]=255&f,this[h+1]=f>>>8,this[h+2]=f>>>16,this[h+3]=f>>>24,h+4},L.prototype.writeInt32BE=function(f,h,M){return f=+f,h>>>=0,M||n2(this,f,h,4,2147483647,-2147483648),f<0&&(f=4294967295+f+1),this[h]=f>>>24,this[h+1]=f>>>16,this[h+2]=f>>>8,this[h+3]=255&f,h+4},L.prototype.writeBigInt64LE=Ft(function(f,h=0){return Ai(this,f,h,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),L.prototype.writeBigInt64BE=Ft(function(f,h=0){return f1(this,f,h,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),L.prototype.writeFloatLE=function(f,h,M){return Ga(this,f,h,!0,M)},L.prototype.writeFloatBE=function(f,h,M){return Ga(this,f,h,!1,M)},L.prototype.writeDoubleLE=function(f,h,M){return we(this,f,h,!0,M)},L.prototype.writeDoubleBE=function(f,h,M){return we(this,f,h,!1,M)},L.prototype.copy=function(f,h,M,D){if(!L.isBuffer(f))throw new TypeError("argument should be a Buffer");if(M||(M=0),!D&&0!==D&&(D=this.length),h>=f.length&&(h=f.length),h||(h=0),D>0&&D<M&&(D=M),D===M||0===f.length||0===this.length)return 0;if(h<0)throw new RangeError("targetStart out of bounds");if(M<0||M>=this.length)throw new RangeError("Index out of range");if(D<0)throw new RangeError("sourceEnd out of bounds");D>this.length&&(D=this.length),f.length-h<D-M&&(D=f.length-h+M);const A=D-M;return this===f&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(h,M,D):Uint8Array.prototype.set.call(f,this.subarray(M,D),h),A},L.prototype.fill=function(f,h,M,D){if("string"==typeof f){if("string"==typeof h?(D=h,h=0,M=this.length):"string"==typeof M&&(D=M,M=this.length),void 0!==D&&"string"!=typeof D)throw new TypeError("encoding must be a string");if("string"==typeof D&&!L.isEncoding(D))throw new TypeError("Unknown encoding: "+D);if(1===f.length){const R=f.charCodeAt(0);("utf8"===D&&R<128||"latin1"===D)&&(f=R)}}else"number"==typeof f?f&=255:"boolean"==typeof f&&(f=Number(f));if(h<0||this.length<h||this.length<M)throw new RangeError("Out of range index");if(M<=h)return this;let A;if(h>>>=0,M=void 0===M?this.length:M>>>0,f||(f=0),"number"==typeof f)for(A=h;A<M;++A)this[A]=f;else{const R=L.isBuffer(f)?f:L.from(f,D),Ce=R.length;if(0===Ce)throw new TypeError('The value "'+f+'" is invalid for argument "value"');for(A=0;A<M-h;++A)this[A+h]=R[A%Ce]}return this};const Pt={};function Li(v,f,h){Pt[v]=class extends h{constructor(){super(),Object.defineProperty(this,"message",{value:f.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${v}]`,delete this.name}get code(){return v}set code(D){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:D,writable:!0})}toString(){return`${this.name} [${v}]: ${this.message}`}}}function J3(v){let f="",h=v.length;const M="-"===v[0]?1:0;for(;h>=M+4;h-=3)f=`_${v.slice(h-3,h)}${f}`;return`${v.slice(0,h)}${f}`}function $a(v,f,h,M,D,A){if(v>h||v<f){const R="bigint"==typeof f?"n":"";let Ce;throw Ce=A>3?0===f||f===BigInt(0)?`>= 0${R} and < 2${R} ** ${8*(A+1)}${R}`:`>= -(2${R} ** ${8*(A+1)-1}${R}) and < 2 ** ${8*(A+1)-1}${R}`:`>= ${f}${R} and <= ${h}${R}`,new Pt.ERR_OUT_OF_RANGE("value",Ce,v)}!function V6(v,f,h){Nn(f,"offset"),(void 0===v[f]||void 0===v[f+h])&&X3(f,v.length-(h+1))}(M,D,A)}function Nn(v,f){if("number"!=typeof v)throw new Pt.ERR_INVALID_ARG_TYPE(f,"number",v)}function X3(v,f,h){throw Math.floor(v)!==v?(Nn(v,h),new Pt.ERR_OUT_OF_RANGE(h||"offset","an integer",v)):f<0?new Pt.ERR_BUFFER_OUT_OF_BOUNDS:new Pt.ERR_OUT_OF_RANGE(h||"offset",`>= ${h?1:0} and <= ${f}`,v)}Li("ERR_BUFFER_OUT_OF_BOUNDS",function(v){return v?`${v} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Li("ERR_INVALID_ARG_TYPE",function(v,f){return`The "${v}" argument must be of type number. Received type ${typeof f}`},TypeError),Li("ERR_OUT_OF_RANGE",function(v,f,h){let M=`The value of "${v}" is out of range.`,D=h;return Number.isInteger(h)&&Math.abs(h)>2**32?D=J3(String(h)):"bigint"==typeof h&&(D=String(h),(h>BigInt(2)**BigInt(32)||h<-(BigInt(2)**BigInt(32)))&&(D=J3(D)),D+="n"),M+=` It must be ${f}. Received ${D}`,M},RangeError);const Yu=/[^+/0-9A-Za-z-_]/g;function Wa(v,f){let h;f=f||1/0;const M=v.length;let D=null;const A=[];for(let R=0;R<M;++R){if(h=v.charCodeAt(R),h>55295&&h<57344){if(!D){if(h>56319){(f-=3)>-1&&A.push(239,191,189);continue}if(R+1===M){(f-=3)>-1&&A.push(239,191,189);continue}D=h;continue}if(h<56320){(f-=3)>-1&&A.push(239,191,189),D=h;continue}h=65536+(D-55296<<10|h-56320)}else D&&(f-=3)>-1&&A.push(239,191,189);if(D=null,h<128){if((f-=1)<0)break;A.push(h)}else if(h<2048){if((f-=2)<0)break;A.push(h>>6|192,63&h|128)}else if(h<65536){if((f-=3)<0)break;A.push(h>>12|224,h>>6&63|128,63&h|128)}else{if(!(h<1114112))throw new Error("Invalid code point");if((f-=4)<0)break;A.push(h>>18|240,h>>12&63|128,h>>6&63|128,63&h|128)}}return A}function Ya(v){return f2.toByteArray(function Ku(v){if((v=(v=v.split("=")[0]).trim().replace(Yu,"")).length<2)return"";for(;v.length%4!=0;)v+="=";return v}(v))}function Tn(v,f,h,M){let D;for(D=0;D<M&&!(D+h>=f.length||D>=v.length);++D)f[D+h]=v[D];return D}function st(v,f){return v instanceof f||null!=v&&null!=v.constructor&&null!=v.constructor.name&&v.constructor.name===f.name}function a3(v){return v!=v}const Ka=function(){const v="0123456789abcdef",f=new Array(256);for(let h=0;h<16;++h){const M=16*h;for(let D=0;D<16;++D)f[M+D]=v[h]+v[D]}return f}();function Ft(v){return typeof BigInt>"u"?D6:v}function D6(){throw new Error("BigInt not supported")}},601:(Z3,G2)=>{G2.read=function(u1,Q,f2,w1,Qe){var Se,Ne,a1=8*Qe-w1-1,L=(1<<a1)-1,k1=L>>1,s1=-7,P1=f2?Qe-1:0,Z1=f2?-1:1,le=u1[Q+P1];for(P1+=Z1,Se=le&(1<<-s1)-1,le>>=-s1,s1+=a1;s1>0;Se=256*Se+u1[Q+P1],P1+=Z1,s1-=8);for(Ne=Se&(1<<-s1)-1,Se>>=-s1,s1+=w1;s1>0;Ne=256*Ne+u1[Q+P1],P1+=Z1,s1-=8);if(0===Se)Se=1-k1;else{if(Se===L)return Ne?NaN:1/0*(le?-1:1);Ne+=Math.pow(2,w1),Se-=k1}return(le?-1:1)*Ne*Math.pow(2,Se-w1)},G2.write=function(u1,Q,f2,w1,Qe,Se){var Ne,a1,L,k1=8*Se-Qe-1,s1=(1<<k1)-1,P1=s1>>1,Z1=23===Qe?Math.pow(2,-24)-Math.pow(2,-77):0,le=w1?0:Se-1,ye=w1?1:-1,Ye=Q<0||0===Q&&1/Q<0?1:0;for(Q=Math.abs(Q),isNaN(Q)||Q===1/0?(a1=isNaN(Q)?1:0,Ne=s1):(Ne=Math.floor(Math.log(Q)/Math.LN2),Q*(L=Math.pow(2,-Ne))<1&&(Ne--,L*=2),(Q+=Ne+P1>=1?Z1/L:Z1*Math.pow(2,1-P1))*L>=2&&(Ne++,L/=2),Ne+P1>=s1?(a1=0,Ne=s1):Ne+P1>=1?(a1=(Q*L-1)*Math.pow(2,Qe),Ne+=P1):(a1=Q*Math.pow(2,P1-1)*Math.pow(2,Qe),Ne=0));Qe>=8;u1[f2+le]=255&a1,le+=ye,a1/=256,Qe-=8);for(Ne=Ne<<Qe|a1,k1+=Qe;k1>0;u1[f2+le]=255&Ne,le+=ye,Ne/=256,k1-=8);u1[f2+le-ye]|=128*Ye}}},Z3=>{Z3(Z3.s=841)}]);