homebridge-eufy-security 2.2.13 → 2.2.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +0,0 @@
1
- (self.webpackChunkconfig_ui=self.webpackChunkconfig_ui||[]).push([[179],{841:(K3,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 Je(e,t){if(e){const i=e.indexOf(t);0<=i&&e.splice(i,1)}}class De{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{A(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)A(t);else{if(t instanceof De){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)&&Je(i,t)}remove(t){const{_finalizers:i}=this;i&&Je(i,t),t instanceof De&&t._removeParent(this)}}De.EMPTY=(()=>{const e=new De;return e.closed=!0,e})();const Ee=De.EMPTY;function a1(e){return e instanceof De||e&&"closed"in e&&Q(e.remove)&&Q(e.add)&&Q(e.unsubscribe)}function A(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 Xe(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 De{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,a1(t)&&t.add(this)):this.destination=C6}static create(t,i,n){return new Nn(t,i,n)}next(t){this.isStopped?Hi(function Ke(e){return g1("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Hi(function be(e){return g1("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Hi(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 Ct(e,t){return h2.call(e,t)}class Oa{constructor(t){this.partialObserver=t}next(t){const{partialObserver:i}=this;if(i.next)try{i.next(t)}catch(n){Y3(n)}}error(t){const{partialObserver:i}=this;if(i.error)try{i.error(t)}catch(n){Y3(n)}else Y3(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(i){Y3(i)}}}class Nn 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&&Ct(t.next,a),error:t.error&&Ct(t.error,a),complete:t.complete&&Ct(t.complete,a)}):r=t}this.destination=new Oa(r)}}function Y3(e){k1.useDeprecatedSynchronousErrorHandling?function d2(e){k1.useDeprecatedSynchronousErrorHandling&&H1&&(H1.errorThrown=!0,H1.error=e)}(e):P1(e)}function Hi(e,t){const{onStoppedNotification:i}=k1;i&&s1.setTimeout(()=>i(e,t))}const C6={closed:!0,next:Z1,error:function _6(e){throw e},complete:Z1},Vi="function"==typeof Symbol&&Symbol.observable||"@@observable";function yt(e){return e}function Di(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 M6(e){return e&&e instanceof at||function y6(e){return e&&Q(e.next)&&Q(e.error)&&Q(e.complete)}(e)&&a1(e)}(i)?i:new Nn(i,n,r);return Xe(()=>{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=ka(n))((r,a)=>{const s=new Nn({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)}[Vi](){return this}pipe(...i){return Di(i)(this)}toPromise(i){return new(i=ka(i))((n,r)=>{let a;this.subscribe(s=>a=s,s=>r(s),()=>n(a))})}}return e.create=t=>new e(t),e})();function ka(e){var t;return null!==(t=e??k1.Promise)&&void 0!==t?t:Promise}const b6=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 r2(this,this);return n.operator=i,n}_throwIfClosed(){if(this.closed)throw new b6}next(i){Xe(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const n of this.currentObservers)n.next(i)}})}error(i){Xe(()=>{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(){Xe(()=>{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?Ee:(this.currentObservers=null,a.push(i),new De(()=>{this.currentObservers=null,Je(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 r2(t,i),e})();class r2 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:Ee}}function Si(e){return Q(e?.lift)}function f1(e){return t=>{if(Si(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 Pa(e,t,i,n,r)}class Pa 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 He(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 S(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 i3(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 D6=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function qu(e){return Q(e?.then)}function Ku(e){return Q(e[Vi])}function Yu(e){return Symbol.asyncIterator&&Q(e?.[Symbol.asyncIterator])}function Zu(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 Qu=function uL(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Ju(e){return Q(e?.[Qu])}function Xu(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,D){a.push([p,m,H,D])>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 ef(e){return Q(e?.getReader)}function j1(e){if(e instanceof We)return e;if(null!=e){if(Ku(e))return function fL(e){return new We(t=>{const i=e[Vi]();if(Q(i.subscribe))return i.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(D6(e))return function dL(e){return new We(t=>{for(let i=0;i<e.length&&!t.closed;i++)t.next(e[i]);t.complete()})}(e);if(qu(e))return function hL(e){return new We(t=>{e.then(i=>{t.closed||(t.next(i),t.complete())},i=>t.error(i)).then(null,P1)})}(e);if(Yu(e))return tf(e);if(Ju(e))return function pL(e){return new We(t=>{for(const i of e)if(t.next(i),t.closed)return;t.complete()})}(e);if(ef(e))return function mL(e){return tf(Xu(e))}(e)}throw Zu(e)}function tf(e){return new We(t=>{(function gL(e,t){var i,n,r,a;return function Ua(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=S(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)=>He((a,s)=>t(n,a,r,s))(j1(e(n,r))),i):("number"==typeof t&&(i=t),f1((n,r)=>function vL(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=D=>l<n?H(D):c.push(D),H=D=>{a&&t.next(D),l++;let x=!1;j1(i(D,u++)).subscribe(qe(t,E=>{r?.(E),a?m(E):t.next(E)},()=>{x=!0},void 0,()=>{if(x)try{for(l--;c.length&&l<n;){const E=c.shift();s?sn(t,s,()=>H(E)):H(E)}p()}catch(E){t.error(E)}}))};return e.subscribe(qe(t,m,()=>{d=!0,p()})),()=>{o?.()}}(n,r,e,i)))}function J3(e=1/0){return F1(yt,e)}const ot=new We(e=>e.complete());function nf(e){return e&&Q(e.schedule)}function S6(e){return e[e.length-1]}function $a(e){return Q(S6(e))?e.pop():void 0}function xi(e){return nf(S6(e))?e.pop():void 0}function rf(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 af(e,t=0){return f1((i,n)=>{n.add(e.schedule(()=>i.subscribe(n),t))})}function sf(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 VL(e,t){if(null!=e){if(Ku(e))return function yL(e,t){return j1(e).pipe(af(t),rf(t))}(e,t);if(D6(e))return function bL(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(qu(e))return function ML(e,t){return j1(e).pipe(af(t),rf(t))}(e,t);if(Yu(e))return sf(e,t);if(Ju(e))return function wL(e,t){return new We(i=>{let n;return sn(i,t,()=>{n=e[Qu](),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(ef(e))return function HL(e,t){return sf(Xu(e),t)}(e,t)}throw Zu(e)}(e,t):j1(e)}function z6(...e){const t=xi(e),i=function CL(e,t){return"number"==typeof S6(e)?e.pop():t}(e,1/0),n=e;return n.length?1===n.length?j1(n[0]):J3(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,xi(e))}function x6(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 D=s;m(),D?.unsubscribe()};return f1((D,x)=>{l++,!d&&!u&&p();const E=c=c??t();x.add(()=>{l--,0===l&&!d&&!u&&(o=L6(H,r))}),E.subscribe(x),!s&&l>0&&(s=new Nn({next:z=>E.next(z),error:z=>{d=!0,p(),o=L6(m,i,z),E.error(z)},complete:()=>{u=!0,p(),o=L6(m,n),E.complete()}}),j1(D).subscribe(s))})(a)}}function L6(e,t,...i){if(!0===t)return void e();if(!1===t)return;const n=new Nn({next:()=>{n.unsubscribe(),e()}});return j1(t(...i)).subscribe(n)}function Mt(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 DL(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 Wa(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 SL=Ue({__forward_ref__:Ue});function ge(e){return e.__forward_ref__=ge,e.toString=function(){return G1(this())},e}function ue(e){return A6(e)?e():e}function A6(e){return"function"==typeof e&&e.hasOwnProperty(SL)&&e.__forward_ref__===ge}function E6(e){return e&&!!e.\u0275providers}const lf="https://g.co/ng/security#xss";class F extends Error{constructor(t,i){super(function qa(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 I6(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 Te(e){return{providers:e.providers||[],imports:e.imports||[]}}function Ka(e){return uf(e,Za)||uf(e,ff)}function uf(e,t){return e.hasOwnProperty(t)?e[t]:null}function Ya(e){return e&&(e.hasOwnProperty(T6)||e.hasOwnProperty(TL))?e[T6]:null}const Za=Ue({\u0275prov:Ue}),T6=Ue({\u0275inj:Ue}),ff=Ue({ngInjectableDef:Ue}),TL=Ue({ngInjectorDef:Ue});var ye=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}(ye||{});let O6;function A2(e){const t=O6;return O6=e,t}function hf(e,t,i){const n=Ka(e);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:i&ye.Optional?null:void 0!==t?t:void I6(G1(e))}const Ye=globalThis,Li={},B6="__NG_DI_FLAG__",Qa="ngTempTokenPath",kL=/\n/gm,mf="__source";let X3;function In(e){const t=X3;return X3=e,t}function BL(e,t=ye.Default){if(void 0===X3)throw new F(-203,!1);return null===X3?hf(e,void 0,t):X3.get(e,t&ye.Optional?null:void 0,t)}function q(e,t=ye.Default){return(function df(){return O6}()||BL)(ue(e),t)}function J(e,t=ye.Default){return q(e,Ja(t))}function Ja(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function U6(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=ye.Default;for(let s=0;s<n.length;s++){const o=n[s],c=UL(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 Ni(e,t){return e[B6]=t,e.prototype[B6]=t,e}function UL(e){return e[B6]}function on(e){return{toString:e}.toString()}var Xa=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(Xa||{}),bt=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(bt||{});const Ft={},Ie=[],es=Ue({\u0275cmp:Ue}),j6=Ue({\u0275dir:Ue}),G6=Ue({\u0275pipe:Ue}),vf=Ue({\u0275mod:Ue}),cn=Ue({\u0275fac:Ue}),Ai=Ue({__NG_ELEMENT_ID__:Ue}),_f=Ue({__NG_ENV_ID__:Ue});function Cf(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 $6(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];Mf(a)?e.setProperty(t,a,s):e.setAttribute(t,a,s),n++}}return n}function yf(e){return 3===e||4===e||6===e}function Mf(e){return 64===e.charCodeAt(0)}function Ei(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||bf(e,i,r,null,-1===i||2===i?t[++n]:null)}}return e}function bf(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 wf="ng-template";function $L(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!==Cf(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 Hf(e){return 4===e.type&&e.value!==wf}function WL(e,t,i){return t===(4!==e.type||i?e.value:wf)}function qL(e,t,i){let n=4;const r=e.attrs||[],a=function ZL(e){for(let t=0;t<e.length;t++)if(yf(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&&!WL(e,c,i)||""===c&&1===t.length){if(wt(n))return!1;s=!0}}else{const l=8&n?c:t[++o];if(8&n&&null!==e.attrs){if(!$L(e.attrs,l,i)){if(wt(n))return!1;s=!0}continue}const d=KL(8&n?"class":c,r,Hf(e),i);if(-1===d){if(wt(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!==Cf(m,l,0)||2&n&&l!==p){if(wt(n))return!1;s=!0}}}}else{if(!s&&!wt(n)&&!wt(c))return!1;if(s&&wt(c))continue;s=!1,n=c|1&n}}return wt(n)||s}function wt(e){return 0==(1&e)}function KL(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 QL(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 Vf(e,t,i=!1){for(let n=0;n<t.length;n++)if(qL(e,t[n],i))return!0;return!1}function JL(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 Df(e,t){return e?":not("+t.trim()+")":t}function XL(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&&!wt(s)&&(t+=Df(a,r),r=""),n=s,a=a||!wt(n);i++}return""!==r&&(t+=Df(a,r)),t}function oe(e){return on(()=>{const t=zf(e),i={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Xa.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||bt.Emulated,styles:e.styles||Ie,_:null,schemas:e.schemas||null,tView:null,id:""};xf(i);const n=e.dependencies;return i.directiveDefs=ts(n,!1),i.pipeDefs=ts(n,!0),i.id=function oN(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 iN(e){return xe(e)||a2(e)}function rN(e){return null!==e}function Fe(e){return on(()=>({type:e.type,bootstrap:e.bootstrap||Ie,declarations:e.declarations||Ie,imports:e.imports||Ie,exports:e.exports||Ie,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Sf(e,t){if(null==e)return Ft;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=zf(e);return xf(t),t})}function xe(e){return e[es]||null}function a2(e){return e[j6]||null}function C2(e){return e[G6]||null}function W2(e,t){const i=e[vf]||null;if(!i&&!0===t)throw new Error(`Type ${G1(e)} does not have '\u0275mod' property.`);return i}function zf(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||Ft,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||Ie,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Sf(e.inputs,t),outputs:Sf(e.outputs)}}function xf(e){e.features?.forEach(t=>t(e))}function ts(e,t){if(!e)return null;const i=t?C2:iN;return()=>("function"==typeof e?e():e).map(n=>i(n)).filter(rN)}const V1=0,K=1,pe=2,p1=3,Ht=4,Ii=5,p2=6,t4=7,N1=8,Tn=9,n4=10,he=11,Ti=12,Lf=13,i4=14,A1=15,Oi=16,r4=17,Bt=18,Ri=19,Nf=20,On=21,ln=22,ns=23,is=24,Ve=25,W6=1,Af=2,Ut=7,a4=9,s2=11;function I2(e){return Array.isArray(e)&&"object"==typeof e[W6]}function y2(e){return Array.isArray(e)&&!0===e[W6]}function q6(e){return 0!=(4&e.flags)}function a3(e){return e.componentOffset>-1}function as(e){return 1==(1&e.flags)}function Vt(e){return!!e.template}function K6(e){return 0!=(512&e[pe])}function s3(e,t){return e.hasOwnProperty(cn)?e[cn]:null}let hN=Ye.WeakRef??class dN{constructor(t){this.ref=t}deref(){return this.ref}},mN=0,jt=null,ss=!1;function J1(e){const t=jt;return jt=e,t}class Rf{constructor(){this.id=mN++,this.ref=function pN(e){return new hN(e)}(this),this.producers=new Map,this.consumers=new Map,this.trackingVersion=0,this.valueVersion=0}consumerPollProducersForChange(){for(const[t,i]of this.producers){const n=i.producerNode.deref();if(null!=n&&i.atTrackingVersion===this.trackingVersion){if(n.producerPollStatus(i.seenValueVersion))return!0}else this.producers.delete(t),n?.consumers.delete(this.id)}return!1}producerMayHaveChanged(){const t=ss;ss=!0;try{for(const[i,n]of this.consumers){const r=n.consumerNode.deref();null!=r&&r.trackingVersion===n.atTrackingVersion?r.onConsumerDependencyMayHaveChanged():(this.consumers.delete(i),r?.producers.delete(this.id))}}finally{ss=t}}producerAccessed(){if(ss)throw new Error("");if(null===jt)return;let t=jt.producers.get(this.id);void 0===t?(t={consumerNode:jt.ref,producerNode:this.ref,seenValueVersion:this.valueVersion,atTrackingVersion:jt.trackingVersion},jt.producers.set(this.id,t),this.consumers.set(jt.id,t)):(t.seenValueVersion=this.valueVersion,t.atTrackingVersion=jt.trackingVersion)}get hasProducers(){return this.producers.size>0}get producerUpdatesAllowed(){return!1!==jt?.consumerAllowSignalWrites}producerPollStatus(t){return this.valueVersion!==t||(this.onProducerUpdateValueVersion(),this.valueVersion!==t)}}let kf=null;const Ff=()=>{};class CN extends Rf{constructor(t,i,n){super(),this.watch=t,this.schedule=i,this.dirty=!1,this.cleanupFn=Ff,this.registerOnCleanup=r=>{this.cleanupFn=r},this.consumerAllowSignalWrites=n}notify(){this.dirty||this.schedule(this),this.dirty=!0}onConsumerDependencyMayHaveChanged(){this.notify()}onProducerUpdateValueVersion(){}run(){if(this.dirty=!1,0!==this.trackingVersion&&!this.consumerPollProducersForChange())return;const t=J1(this);this.trackingVersion++;try{this.cleanupFn(),this.cleanupFn=Ff,this.watch(this.registerOnCleanup)}finally{J1(t)}}cleanup(){this.cleanupFn()}}class yN{constructor(t,i,n){this.previousValue=t,this.currentValue=i,this.firstChange=n}isFirstChange(){return this.firstChange}}function v1(){return Bf}function Bf(e){return e.type.prototype.ngOnChanges&&(e.setInput=bN),MN}function MN(){const e=jf(this),t=e?.current;if(t){const i=e.previous;if(i===Ft)e.previous=t;else for(let n in t)i[n]=t[n];e.current=null,this.ngOnChanges(t)}}function bN(e,t,i,n){const r=this.declaredInputs[i],a=jf(e)||function wN(e,t){return e[Uf]=t}(e,{previous:Ft,current:null}),s=a.current||(a.current={}),o=a.previous,c=o[r];s[r]=new yN(c&&c.currentValue,t,o===Ft),e[n]=t}v1.ngInherit=!0;const Uf="__ngSimpleChanges__";function jf(e){return e[Uf]||null}const Gt=function(e,t,i){},Gf="svg";function t1(e){for(;Array.isArray(e);)e=e[V1];return e}function ls(e,t){return t1(t[e])}function T2(e,t){return t1(t[e.index])}function Wf(e,t){return e.data[t]}function q2(e,t){const i=t[e];return I2(i)?i:i[V1]}function Rn(e,t){return null==t?null:e[t]}function qf(e){e[r4]=0}function xN(e){1024&e[pe]||(e[pe]|=1024,Yf(e,1))}function Kf(e){1024&e[pe]&&(e[pe]&=-1025,Yf(e,-1))}function Yf(e,t){let i=e[p1];if(null===i)return;i[Ii]+=t;let n=i;for(i=i[p1];null!==i&&(1===t&&1===n[Ii]||-1===t&&0===n[Ii]);)i[Ii]+=t,n=i,i=i[p1]}const ce={lFrame:s9(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Jf(){return ce.bindingsEnabled}function o4(){return null!==ce.skipHydrationRootTNode}function k(){return ce.lFrame.lView}function Le(){return ce.lFrame.tView}function Y(e){return ce.lFrame.contextLView=e,e[N1]}function Z(e){return ce.lFrame.contextLView=null,e}function o2(){let e=Xf();for(;null!==e&&64===e.type;)e=e.parent;return e}function Xf(){return ce.lFrame.currentTNode}function $t(e,t){const i=ce.lFrame;i.currentTNode=e,i.isParent=t}function t0(){return ce.lFrame.isParent}function n0(){ce.lFrame.isParent=!1}function c4(){return ce.lFrame.bindingIndex++}function fn(e){const t=ce.lFrame,i=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,i}function BN(e,t){const i=ce.lFrame;i.bindingIndex=i.bindingRootIndex=e,r0(t)}function r0(e){ce.lFrame.currentDirectiveIndex=e}function i9(){return ce.lFrame.currentQueryIndex}function s0(e){ce.lFrame.currentQueryIndex=e}function jN(e){const t=e[K];return 2===t.type?t.declTNode:1===t.type?e[p2]:null}function r9(e,t,i){if(i&ye.SkipSelf){let r=t,a=e;for(;!(r=r.parent,null!==r||i&ye.Host||(r=jN(a),null===r||(a=a[i4],10&r.type))););if(null===r)return!1;t=r,e=a}const n=ce.lFrame=a9();return n.currentTNode=t,n.lView=e,!0}function o0(e){const t=a9(),i=e[K];ce.lFrame=t,t.currentTNode=i.firstChild,t.lView=e,t.tView=i,t.contextLView=e,t.bindingIndex=i.bindingStartIndex,t.inI18n=!1}function a9(){const e=ce.lFrame,t=null===e?null:e.child;return null===t?s9(e):t}function s9(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 o9(){const e=ce.lFrame;return ce.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const c9=o9;function c0(){const e=o9();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 o3(e){ce.lFrame.selectedIndex=e}function _1(){const e=ce.lFrame;return Wf(e.tView,e.selectedIndex)}function l4(){ce.lFrame.currentNamespace=Gf}function u4(){!function qN(){ce.lFrame.currentNamespace=null}()}let u9=!0;function us(){return u9}function kn(e){u9=e}function fs(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 ds(e,t,i){f9(e,t,3,i)}function hs(e,t,i,n){(3&e[pe])===i&&f9(e,t,i,n)}function l0(e,t){let i=e[pe];(3&i)===t&&(i&=8191,i+=1,e[pe]=i)}function f9(e,t,i,n){const a=n??-1,s=t.length-1;let o=0;for(let c=void 0!==n?65535&e[r4]:0;c<s;c++)if("number"==typeof t[c+1]){if(o=t[c],null!=n&&o>=n)break}else t[c]<0&&(e[r4]+=65536),(o<a||-1==a)&&(YN(e,i,t,c),e[r4]=(4294901760&e[r4])+c+2),c++}function d9(e,t){Gt(4,e,t);const i=J1(null);try{t.call(e)}finally{J1(i),Gt(5,e,t)}}function YN(e,t,i,n){const r=i[n]<0,a=i[n+1],o=e[r?-i[n]:i[n]];r?e[pe]>>13<e[r4]>>16&&(3&e[pe])===t&&(e[pe]+=8192,d9(o,a)):d9(o,a)}const f4=-1;class Fi{constructor(t,i,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=n}}function f0(e){return e!==f4}function Bi(e){return 32767&e}function Ui(e,t){let i=function XN(e){return e>>16}(e),n=t;for(;i>0;)n=n[i4],i--;return n}let d0=!0;function ps(e){const t=d0;return d0=e,t}const h9=255,p9=5;let eA=0;const Wt={};function ms(e,t){const i=m9(e,t);if(-1!==i)return i;const n=t[K];n.firstCreatePass&&(e.injectorIndex=t.length,h0(n.data,e),h0(t,null),h0(n.blueprint,null));const r=gs(e,t),a=e.injectorIndex;if(f0(r)){const s=Bi(r),o=Ui(r,t),c=o[K].data;for(let l=0;l<8;l++)t[a+l]=o[s+l]|c[s+l]}return t[a+8]=r,a}function h0(e,t){e.push(0,0,0,0,0,0,0,0,t)}function m9(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function gs(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=b9(r),null===n)return f4;if(i++,r=r[i4],-1!==n.injectorIndex)return n.injectorIndex|i<<16}return f4}function p0(e,t,i){!function tA(e,t,i){let n;"string"==typeof i?n=i.charCodeAt(0)||0:i.hasOwnProperty(Ai)&&(n=i[Ai]),null==n&&(n=i[Ai]=eA++);const r=n&h9;t.data[e+(r>>p9)]|=1<<r}(e,t,i)}function g9(e,t,i){if(i&ye.Optional||void 0!==e)return e;I6()}function v9(e,t,i,n){if(i&ye.Optional&&void 0===n&&(n=null),!(i&(ye.Self|ye.Host))){const r=e[Tn],a=A2(void 0);try{return r?r.get(t,n,i&ye.Optional):hf(t,n,i&ye.Optional)}finally{A2(a)}}return g9(n,0,i)}function _9(e,t,i,n=ye.Default,r){if(null!==e){if(2048&t[pe]&&!(n&ye.Self)){const s=function oA(e,t,i,n,r){let a=e,s=t;for(;null!==a&&null!==s&&2048&s[pe]&&!(512&s[pe]);){const o=C9(a,s,i,n|ye.Self,Wt);if(o!==Wt)return o;let c=a.parent;if(!c){const l=s[Nf];if(l){const u=l.get(i,Wt,n);if(u!==Wt)return u}c=b9(s),s=s[i4]}a=c}return r}(e,t,i,n,Wt);if(s!==Wt)return s}const a=C9(e,t,i,n,Wt);if(a!==Wt)return a}return v9(t,i,n,r)}function C9(e,t,i,n,r){const a=function rA(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(Ai)?e[Ai]:void 0;return"number"==typeof t?t>=0?t&h9:sA:t}(i);if("function"==typeof a){if(!r9(t,e,n))return n&ye.Host?g9(r,0,n):v9(t,i,n,r);try{let s;if(s=a(n),null!=s||n&ye.Optional)return s;I6()}finally{c9()}}else if("number"==typeof a){let s=null,o=m9(e,t),c=f4,l=n&ye.Host?t[A1][p2]:null;for((-1===o||n&ye.SkipSelf)&&(c=-1===o?gs(e,t):t[o+8],c!==f4&&M9(n,!1)?(s=t[K],o=Bi(c),t=Ui(c,t)):o=-1);-1!==o;){const u=t[K];if(y9(a,o,u.data)){const d=iA(o,t,i,s,n,l);if(d!==Wt)return d}c=t[o+8],c!==f4&&M9(n,t[K].data[o+8]===l)&&y9(a,o,t)?(s=u,o=Bi(c),t=Ui(c,t)):o=-1}}return r}function iA(e,t,i,n,r,a){const s=t[K],o=s.data[e+8],u=vs(o,s,i,null==n?a3(o)&&d0:n!=s&&0!=(3&o.type),r&ye.Host&&a===o);return null!==u?c3(t,s,u,o):Wt}function vs(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&&Vt(m)&&m.type===i)return c}return null}function c3(e,t,i,n){let r=e[i];const a=t.data;if(function ZN(e){return e instanceof Fi}(r)){const s=r;s.resolving&&function zL(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=ps(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?A2(s.injectImpl):null;r9(e,n,ye.Default);try{r=e[i]=s.factory(void 0,a,e,n),t.firstCreatePass&&i>=n.directiveStart&&function KN(e,t,i){const{ngOnChanges:n,ngOnInit:r,ngDoCheck:a}=t.type.prototype;if(n){const s=Bf(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&&A2(l),ps(o),s.resolving=!1,c9()}}return r}function y9(e,t,i){return!!(i[t+(e>>p9)]&1<<e)}function M9(e,t){return!(e&ye.Self||e&ye.Host&&t)}class w2{constructor(t,i){this._tNode=t,this._lView=i}get(t,i,n){return _9(this._tNode,this._lView,t,Ja(n),i)}}function sA(){return new w2(o2(),k())}function E1(e){return on(()=>{const t=e.prototype.constructor,i=t[cn]||m0(t),n=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==n;){const a=r[cn]||m0(r);if(a&&a!==i)return a;r=Object.getPrototypeOf(r)}return a=>new a})}function m0(e){return A6(e)?()=>{const t=m0(ue(e));return t&&t()}:s3(e)}function b9(e){const t=e[K],i=t.type;return 2===i?t.declTNode:1===i?e[p2]:null}const h4="__parameters__";function m4(e,t,i){return on(()=>{const n=function g0(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(h4)?c[h4]:Object.defineProperty(c,h4,{value:[]})[h4];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 v4(e,t){e.forEach(i=>Array.isArray(i)?v4(i,t):t(i))}function H9(e,t,i){t>=e.length?e.push(i):e.splice(t,0,i)}function _s(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function $i(e,t){const i=[];for(let n=0;n<e;n++)i.push(t);return i}function K2(e,t,i){let n=_4(e,t);return n>=0?e[1|n]=i:(n=~n,function pA(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 v0(e,t){const i=_4(e,t);if(i>=0)return e[1|i]}function _4(e,t){return function V9(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 ys=Ni(m4("Optional"),8),Ms=Ni(m4("SkipSelf"),4);function Ds(e){return 128==(128&e.flags)}var Pn=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Pn||{});const b0=new Map;let kA=0;const H0="__ngContext__";function m2(e,t){I2(t)?(e[H0]=t[Ri],function FA(e){b0.set(e[Ri],e)}(t)):e[H0]=t}let V0;function D0(e,t){return V0(e,t)}function Ki(e){const t=e[p1];return y2(t)?t[p1]:t}function $9(e){return q9(e[Ti])}function W9(e){return q9(e[Ht])}function q9(e){for(;null!==e&&!y2(e);)e=e[Ht];return e}function M4(e,t,i,n,r){if(null!=n){let a,s=!1;y2(n)?a=n:I2(n)&&(s=!0,n=n[V1]);const o=t1(n);0===e&&null!==i?null==r?Q9(t,i,o):u3(t,i,o,r||null,!0):1===e&&null!==i?u3(t,i,o,r||null,!0):2===e?function Es(e,t,i){const n=Ns(e,t);n&&function aE(e,t,i,n){e.removeChild(t,i,n)}(e,n,t,i)}(t,o,s):3===e&&t.destroyNode(o),null!=a&&function cE(e,t,i,n,r){const a=i[Ut];a!==t1(i)&&M4(t,e,n,a,r);for(let o=s2;o<i.length;o++){const c=i[o];Zi(c[K],c,e,t,n,a)}}(t,e,a,i,r)}}function xs(e,t,i){return e.createElement(t,i)}function Y9(e,t){const i=e[a4],n=i.indexOf(t);Kf(t),i.splice(n,1)}function Ls(e,t){if(e.length<=s2)return;const i=s2+t,n=e[i];if(n){const r=n[Oi];null!==r&&r!==e&&Y9(r,n),t>0&&(e[i-1][Ht]=n[Ht]);const a=_s(e,s2+t);!function QA(e,t){Zi(e,t,t[he],2,null,null),t[V1]=null,t[p2]=null}(n[K],n);const s=a[Bt];null!==s&&s.detachView(a[K]),n[p1]=null,n[Ht]=null,n[pe]&=-129}return n}function z0(e,t){if(!(256&t[pe])){const i=t[he];t[ns]?.destroy(),t[is]?.destroy(),i.destroyNode&&Zi(e,t,i,3,null,null),function eE(e){let t=e[Ti];if(!t)return x0(e[K],e);for(;t;){let i=null;if(I2(t))i=t[Ti];else{const n=t[s2];n&&(i=n)}if(!i){for(;t&&!t[Ht]&&t!==e;)I2(t)&&x0(t[K],t),t=t[p1];null===t&&(t=e),I2(t)&&x0(t[K],t),i=t&&t[Ht]}t=i}}(t)}}function x0(e,t){if(!(256&t[pe])){t[pe]&=-129,t[pe]|=256,function rE(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 Fi)){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 iE(e,t){const i=e.cleanup,n=t[t4];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[t4]=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[K].type&&t[he].destroy();const i=t[Oi];if(null!==i&&y2(t[p1])){i!==t[p1]&&Y9(i,t);const n=t[Bt];null!==n&&n.detachView(e)}!function BA(e){b0.delete(e[Ri])}(t)}}function L0(e,t,i){return function Z9(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===bt.None||a===bt.Emulated)return null}return T2(n,i)}}(e,t.parent,i)}function u3(e,t,i,n,r){e.insertBefore(t,i,n,r)}function Q9(e,t,i){e.appendChild(t,i)}function J9(e,t,i,n,r){null!==n?u3(e,t,i,n,r):Q9(e,t,i)}function Ns(e,t){return e.parentNode(t)}function X9(e,t,i){return td(e,t,i)}let N0,Is,T0,Ts,td=function ed(e,t,i){return 40&e.type?T2(e,i):null};function As(e,t,i,n){const r=L0(e,n,t),a=t[he],o=X9(n.parent||t[p2],n,t);if(null!=r)if(Array.isArray(i))for(let c=0;c<i.length;c++)J9(a,r,i[c],o,!1);else J9(a,r,i,o,!1);void 0!==N0&&N0(a,n,t,i,r)}function Yi(e,t){if(null!==t){const i=t.type;if(3&i)return T2(t,e);if(4&i)return A0(-1,e[t.index]);if(8&i){const n=t.child;if(null!==n)return Yi(e,n);{const r=e[t.index];return y2(r)?A0(-1,r):t1(r)}}if(32&i)return D0(t,e)()||t1(e[t.index]);{const n=id(e,t);return null!==n?Array.isArray(n)?n[0]:Yi(Ki(e[A1]),n):Yi(e,t.next)}}return null}function id(e,t){return null!==t?e[A1][p2].projection[t.projection]:null}function A0(e,t){const i=s2+e+1;if(i<t.length){const n=t[i],r=n[K].firstChild;if(null!==r)return Yi(n,r)}return t[Ut]}function E0(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)E0(e,t,i.child,n,r,a,!1),M4(t,e,r,o,a);else if(32&c){const l=D0(i,n);let u;for(;u=l();)M4(t,e,r,u,a);M4(t,e,r,o,a)}else 16&c?ad(e,t,n,i,r,a):M4(t,e,r,o,a);i=s?i.projectionNext:i.next}}function Zi(e,t,i,n,r,a){E0(i,n,e.firstChild,t,r,a,!1)}function ad(e,t,i,n,r,a){const s=i[A1],c=s[p2].projection[n.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++)M4(t,e,r,c[l],a);else{let l=c;const u=s[p1];Ds(n)&&(l.flags|=128),E0(e,t,l,u,r,a,!0)}}function sd(e,t,i){""===i?e.removeAttribute(t,"class"):e.setAttribute(t,"class",i)}function od(e,t,i){const{mergedAttrs:n,classes:r,styles:a}=i;null!==n&&$6(e,t,n),null!==r&&sd(e,t,r),null!==a&&function uE(e,t,i){e.setAttribute(t,"style",i)}(e,t,a)}function b4(e){return function I0(){if(void 0===Is&&(Is=null,Ye.trustedTypes))try{Is=Ye.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Is}()?.createHTML(e)||e}function w4(){if(void 0!==T0)return T0;if(typeof document<"u")return document;throw new F(210,!1)}function O0(){if(void 0===Ts&&(Ts=null,Ye.trustedTypes))try{Ts=Ye.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Ts}function cd(e){return O0()?.createHTML(e)||e}function ud(e){return O0()?.createScriptURL(e)||e}class f3{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${lf})`}}class mE extends f3{getTypeName(){return"HTML"}}class gE extends f3{getTypeName(){return"Style"}}class vE extends f3{getTypeName(){return"Script"}}class _E extends f3{getTypeName(){return"URL"}}class CE extends f3{getTypeName(){return"ResourceURL"}}function Y2(e){return e instanceof f3?e.changingThisBreaksApplicationSecurity:e}function qt(e,t){const i=function yE(e){return e instanceof f3&&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 ${lf})`)}return i===t}class DE{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const i=(new window.DOMParser).parseFromString(b4(t),"text/html").body;return null===i?this.inertDocumentHelper.getInertBodyElement(t):(i.removeChild(i.firstChild),i)}catch{return null}}}class SE{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const i=this.inertDocument.createElement("template");return i.innerHTML=b4(t),i}}const xE=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Os(e){return(e=String(e)).match(xE)?e:"unsafe:"+e}function dn(e){const t={};for(const i of e.split(","))t[i]=!0;return t}function Qi(...e){const t={};for(const i of e)for(const n in i)i.hasOwnProperty(n)&&(t[n]=!0);return t}const dd=dn("area,br,col,hr,img,wbr"),hd=dn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),pd=dn("rp,rt"),R0=Qi(dd,Qi(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")),Qi(pd,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")),Qi(pd,hd)),k0=dn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),md=Qi(k0,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")),LE=dn("script,style,template");class NE{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(!R0.hasOwnProperty(i))return this.sanitizedSomething=!0,!LE.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(!md.hasOwnProperty(o)){this.sanitizedSomething=!0;continue}let c=a.value;k0[o]&&(c=Os(c)),this.buf.push(" ",s,'="',gd(c),'"')}return this.buf.push(">"),!0}endElement(t){const i=t.nodeName.toLowerCase();R0.hasOwnProperty(i)&&!dd.hasOwnProperty(i)&&(this.buf.push("</"),this.buf.push(i),this.buf.push(">"))}chars(t){this.buf.push(gd(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 AE=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,EE=/([^\#-~ |!])/g;function gd(e){return e.replace(/&/g,"&amp;").replace(AE,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(EE,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Rs;function vd(e,t){let i=null;try{Rs=Rs||function fd(e){const t=new SE(e);return function zE(){try{return!!(new window.DOMParser).parseFromString(b4(""),"text/html")}catch{return!1}}()?new DE(t):t}(e);let n=t?String(t):"";i=Rs.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=Rs.getInertBodyElement(n)}while(n!==a);return b4((new NE).sanitizeChildren(P0(i)||i))}finally{if(i){const n=P0(i)||i;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function P0(e){return"content"in e&&function IE(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var ft=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}(ft||{});function _d(e){const t=Ji();return t?cd(t.sanitize(ft.HTML,e)||""):qt(e,"HTML")?cd(Y2(e)):vd(w4(),de(e))}function hn(e){const t=Ji();return t?t.sanitize(ft.STYLE,e)||"":qt(e,"Style")?Y2(e):de(e)}function H4(e){const t=Ji();return t?t.sanitize(ft.URL,e)||"":qt(e,"URL")?Y2(e):Os(de(e))}function Cd(e){const t=Ji();if(t)return ud(t.sanitize(ft.RESOURCE_URL,e)||"");if(qt(e,"ResourceURL"))return ud(Y2(e));throw new F(904,!1)}function Ji(){const e=k();return e&&e[n4].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 Xi=new te("ENVIRONMENT_INITIALIZER"),Md=new te("INJECTOR",-1),bd=new te("INJECTOR_DEF_TYPES");class F0{get(t,i=Li){if(i===Li){const n=new Error(`NullInjectorError: No provider for ${G1(t)}!`);throw n.name="NullInjectorError",n}return i}}function PE(...e){return{\u0275providers:Hd(0,e),\u0275fromNgModule:!0}}function Hd(e,...t){const i=[],n=new Set;let r;const a=s=>{i.push(s)};return v4(t,s=>{const o=s;ks(o,a,[],n)&&(r||=[],r.push(o))}),void 0!==r&&Vd(r,a),i}function Vd(e,t){for(let i=0;i<e.length;i++){const{ngModule:n,providers:r}=e[i];B0(r,a=>{t(a,n)})}}function ks(e,t,i,n){if(!(e=ue(e)))return!1;let r=null,a=Ya(e);const s=!a&&xe(e);if(a||s){if(s&&!s.standalone)return!1;r=e}else{const c=e.ngModule;if(a=Ya(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)ks(l,t,i,n)}}else{if(!a)return!1;{if(null!=a.imports&&!o){let l;n.add(r);try{v4(a.imports,u=>{ks(u,t,i,n)&&(l||=[],l.push(u))})}finally{}void 0!==l&&Vd(l,t)}if(!o){const l=s3(r)||(()=>new r);t({provide:r,useFactory:l,deps:Ie},r),t({provide:bd,useValue:r,multi:!0},r),t({provide:Xi,useValue:()=>q(r),multi:!0},r)}const c=a.providers;if(null!=c&&!o){const l=e;B0(c,u=>{t(u,l)})}}}return r!==e&&void 0!==e.providers}function B0(e,t){for(let i of e)E6(i)&&(i=i.\u0275providers),Array.isArray(i)?B0(i,t):t(i)}const FE=Ue({provide:String,useValue:Ue});function U0(e){return null!==e&&"object"==typeof e&&FE in e}function d3(e){return"function"==typeof e}const j0=new te("Set Injector scope."),Ps={},UE={};let G0;function Fs(){return void 0===G0&&(G0=new F0),G0}class R2{}class Bs extends R2{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,W0(t,s=>this.processProvider(s)),this.records.set(Md,V4(void 0,this)),r.has("environment")&&this.records.set(R2,V4(void 0,this));const a=this.records.get(j0);null!=a&&"string"==typeof a.value&&this.scopes.add(a.value),this.injectorDefTypes=new Set(this.get(bd.multi,Ie,ye.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=A2(void 0);try{return t()}finally{In(i),A2(n)}}get(t,i=Li,n=ye.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(_f))return t[_f](this);n=Ja(n);const a=In(this),s=A2(void 0);try{if(!(n&ye.SkipSelf)){let c=this.records.get(t);if(void 0===c){const l=function qE(e){return"function"==typeof e||"object"==typeof e&&e instanceof te}(t)&&Ka(t);c=l&&this.injectableDefInScope(l)?V4($0(t),Ps):null,this.records.set(t,c)}if(null!=c)return this.hydrate(t,c)}return(n&ye.Self?Fs():this.parent).get(t,i=n&ye.Optional&&i===Li?null:i)}catch(o){if("NullInjectorError"===o.name){if((o[Qa]=o[Qa]||[]).unshift(G1(t)),a)throw o;return function jL(e,t,i,n){const r=e[Qa];throw t[mf]&&r.unshift(t[mf]),e.message=function GL(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(kL,"\n ")}`}("\n"+e.message,r,i,n),e.ngTokenPath=r,e[Qa]=null,e}(o,t,"R3InjectorError",this.source)}throw o}finally{A2(s),In(a)}}resolveInjectorInitializers(){const t=In(this),i=A2(void 0);try{const r=this.get(Xi.multi,Ie,ye.Self);for(const a of r)a()}finally{In(t),A2(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=d3(t=ue(t))?t:ue(t&&t.provide);const n=function GE(e){return U0(e)?V4(void 0,e.useValue):V4(zd(e),Ps)}(t);if(d3(t)||!0!==t.multi)this.records.get(i);else{let r=this.records.get(i);r||(r=V4(void 0,Ps,!0),r.factory=()=>U6(r.multi),this.records.set(i,r)),i=t,r.multi.push(t)}this.records.set(i,n)}hydrate(t,i){return i.value===Ps&&(i.value=UE,i.value=i.factory()),"object"==typeof i.value&&i.value&&function WE(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 $0(e){const t=Ka(e),i=null!==t?t.factory:s3(e);if(null!==i)return i;if(e instanceof te)throw new F(204,!1);if(e instanceof Function)return function jE(e){const t=e.length;if(t>0)throw $i(t,"?"),new F(204,!1);const i=function IL(e){return e&&(e[Za]||e[ff])||null}(e);return null!==i?()=>i.factory(e):()=>new e}(e);throw new F(204,!1)}function zd(e,t,i){let n;if(d3(e)){const r=ue(e);return s3(r)||$0(r)}if(U0(e))n=()=>ue(e.useValue);else if(function Sd(e){return!(!e||!e.useFactory)}(e))n=()=>e.useFactory(...U6(e.deps||[]));else if(function Dd(e){return!(!e||!e.useExisting)}(e))n=()=>q(ue(e.useExisting));else{const r=ue(e&&(e.useClass||e.provide));if(!function $E(e){return!!e.deps}(e))return s3(r)||$0(r);n=()=>new r(...U6(e.deps))}return n}function V4(e,t,i=!1){return{factory:e,value:t,multi:i?[]:void 0}}function W0(e,t){for(const i of e)Array.isArray(i)?W0(i,t):i&&E6(i)?W0(i.\u0275providers,t):t(i)}const Us=new te("AppId",{providedIn:"root",factory:()=>KE}),KE="ng",xd=new te("Platform Initializer"),D4=new te("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Ld=new te("CSP nonce",{providedIn:"root",factory:()=>w4().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Nd=(e,t,i)=>null;function el(e,t,i=!1){return Nd(e,t,i)}class rI{}class Id{}class sI{resolveComponentFactory(t){throw function aI(e){const t=Error(`No component factory found for ${G1(e)}.`);return t.ngComponent=e,t}(t)}}let Ks=(()=>{class t{}return t.NULL=new sI,t})();function oI(){return x4(o2(),k())}function x4(e,t){return new Ne(T2(e,t))}let Ne=(()=>{class t{constructor(n){this.nativeElement=n}}return t.__NG_ELEMENT_ID__=oI,t})();function cI(e){return e instanceof Ne?e.nativeElement:e}class il{}let c2=(()=>{class t{constructor(){this.destroyNode=null}}return t.__NG_ELEMENT_ID__=()=>function lI(){const e=k(),i=q2(o2().index,e);return(I2(i)?i:e)[he]}(),t})(),uI=(()=>{var e;class t{}return(e=t).\u0275prov=$({token:e,providedIn:"root",factory:()=>null}),t})();class nr{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const fI=new nr("16.2.3"),rl={};function Pd(e,t=null,i=null,n){const r=Fd(e,t,i,n);return r.resolveInjectorInitializers(),r}function Fd(e,t=null,i=null,n,r=new Set){const a=[i||Ie,PE(e)];return n=n||("object"==typeof e?void 0:G1(e)),new Bs(a,t||Fs(),n||null,r)}let B1=(()=>{var e;class t{static create(n,r){if(Array.isArray(n))return Pd({name:""},r,n,"");{const a=n.name??"";return Pd({name:a},n.parent,n.providers,a)}}}return(e=t).THROW_IF_NOT_FOUND=Li,e.NULL=new F0,e.\u0275prov=$({token:e,providedIn:"any",factory:()=>q(Md)}),e.__NG_ELEMENT_ID__=-1,t})();function ol(e){return t=>{setTimeout(e,void 0,t)}}const ee=class _I 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=ol(a),r&&(r=ol(r)),s&&(s=ol(s)));const o=super.subscribe({next:r,error:a,complete:s});return t instanceof De&&t.add(o),o}};function Bd(...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 CI(){const e="function"==typeof Ye.requestAnimationFrame;let t=Ye[e?"requestAnimationFrame":"setTimeout"],i=Ye[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 bI(e){const t=()=>{!function MI(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Ye,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,ll(e),e.isCheckStableRunning=!0,cl(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),ll(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,n,r,a,s,o)=>{try{return Ud(e),i.invokeTask(r,a,s,o)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===a.type||e.shouldCoalesceRunChangeDetection)&&t(),jd(e)}},onInvoke:(i,n,r,a,s,o,c)=>{try{return Ud(e),i.invoke(r,a,s,o,c)}finally{e.shouldCoalesceRunChangeDetection&&t(),jd(e)}},onHasTask:(i,n,r,a)=>{i.hasTask(r,a),n===r&&("microTask"==a.change?(e._hasPendingMicrotasks=a.microTask,ll(e),cl(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,yI,Bd,Bd);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 yI={};function cl(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 ll(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Ud(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function jd(e){e._nesting--,cl(e)}class wI{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 Gd=new te("",{providedIn:"root",factory:$d});function $d(){const e=J(Me);let t=!0;return z6(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(x6()))}function pn(e){return e instanceof Function?e():e}let ul=(()=>{var e;class t{constructor(){this.callbacks=new Set,this.deferredCallbacks=new Set,this.renderDepth=0,this.runningCallbacks=!1}begin(){if(this.runningCallbacks)throw new F(102,!1);this.renderDepth++}end(){if(this.renderDepth--,0===this.renderDepth)try{this.runningCallbacks=!0;for(const n of this.callbacks)n.invoke()}finally{this.runningCallbacks=!1;for(const n of this.deferredCallbacks)this.callbacks.add(n);this.deferredCallbacks.clear()}}register(n){(this.runningCallbacks?this.deferredCallbacks:this.callbacks).add(n)}unregister(n){this.callbacks.delete(n),this.deferredCallbacks.delete(n)}ngOnDestroy(){this.callbacks.clear(),this.deferredCallbacks.clear()}}return(e=t).\u0275prov=$({token:e,providedIn:"root",factory:()=>new e}),t})();function ir(e){for(;e;){e[pe]|=64;const t=Ki(e);if(K6(e)&&!t)return e;e=t}return null}function fl(e){return e.ngOriginalError}class h3{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&&fl(t);for(;i&&fl(i);)i=fl(i);return i||null}}const Zd=new te("",{providedIn:"root",factory:()=>!1});class eh extends Rf{constructor(){super(...arguments),this.consumerAllowSignalWrites=!1,this._lView=null}set lView(t){this._lView=t}onConsumerDependencyMayHaveChanged(){ir(this._lView)}onProducerUpdateValueVersion(){}get hasReadASignal(){return this.hasProducers}runInContext(t,i,n){const r=J1(this);this.trackingVersion++;try{t(i,n)}finally{J1(r)}}destroy(){this.trackingVersion++}}let Zs=null;function th(){return Zs??=new eh,Zs}function nh(e,t){return e[t]??th()}function ih(e,t){const i=th();i.hasReadASignal&&(e[t]=Zs,i.lView=e,Zs=new eh)}const me={};function C(e){rh(Le(),k(),b2()+e,!1)}function rh(e,t,i,n){if(!n)if(3==(3&t[pe])){const a=e.preOrderCheckHooks;null!==a&&ds(t,a,i)}else{const a=e.preOrderHooks;null!==a&&hs(t,a,0,i)}o3(i)}function w(e,t=ye.Default){const i=k();return null===i?q(e,t):_9(o2(),i,ue(e),t)}function Qs(e,t,i,n,r,a,s,o,c,l,u){const d=t.blueprint.slice();return d[V1]=r,d[pe]=140|n,(null!==l||e&&2048&e[pe])&&(d[pe]|=2048),qf(d),d[p1]=d[i4]=e,d[N1]=i,d[n4]=s||e&&e[n4],d[he]=o||e&&e[he],d[Tn]=c||e&&e[Tn]||null,d[p2]=a,d[Ri]=function PA(){return kA++}(),d[ln]=u,d[Nf]=l,d[A1]=2==t.type?e[A1]:d,d}function A4(e,t,i,n,r){let a=e.data[t];if(null===a)a=function dl(e,t,i,n,r){const a=Xf(),s=t0(),c=e.data[t]=function FI(e,t,i,n,r,a){let s=t?t.injectorIndex:-1,o=0;return o4()&&(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 FN(){return ce.lFrame.inI18n}()&&(a.flags|=32);else if(64&a.type){a.type=i,a.value=n,a.attrs=r;const s=function Pi(){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 rr(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 sh(e,t,i,n,r){const a=nh(t,ns),s=b2(),o=2&n;try{if(o3(-1),o&&t.length>Ve&&rh(e,t,Ve,!1),Gt(o?2:0,r),o)a.runInContext(i,n,r);else{const l=J1(null);try{i(n,r)}finally{J1(l)}}}finally{o&&null===t[ns]&&ih(t,ns),o3(s),Gt(o?3:1,r)}}function hl(e,t,i){if(q6(t)){const n=J1(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{J1(n)}}}function pl(e,t,i){Jf()&&(function qI(e,t,i,n){const r=i.directiveStart,a=i.directiveEnd;a3(i)&&function eT(e,t,i){const n=T2(t,e),r=oh(i);let s=16;i.signals?s=4096:i.onPush&&(s=64);const o=Js(e,Qs(e,r,null,s,n,t,null,e[n4].rendererFactory.createRenderer(n,i),null,null,null));e[t.index]=o}(t,i,e.data[r+i.componentOffset]),e.firstCreatePass||ms(i,t),m2(n,t);const s=i.initialInputs;for(let o=r;o<a;o++){const c=e.data[o],l=c3(t,e,o,i);m2(l,t),null!==s&&tT(0,o-r,l,c,0,s),Vt(c)&&(q2(i.index,t)[N1]=c3(t,e,o,i))}}(e,t,i,T2(i,t)),64==(64&i.flags)&&dh(e,t,i))}function ml(e,t,i=T2){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 oh(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=gl(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function gl(e,t,i,n,r,a,s,o,c,l,u){const d=Ve+n,p=d+r,m=function II(e,t){const i=[];for(let n=0;n<t;n++)i.push(n<e?null:me);return i}(d,p),H="function"==typeof l?l():l;return m[K]={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 ch=e=>null;function lh(e,t,i,n){for(let r in e)if(e.hasOwnProperty(r)){i=null===i?{}:i;const a=e[r];null===n?uh(i,t,r,a):n.hasOwnProperty(r)&&uh(i,t,n[r],a)}return i}function uh(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=T2(t,i);let u,l=t.inputs;!o&&null!=l&&(u=l[n])?(Ml(e,i,u,n,r),a3(t)&&function jI(e,t){const i=q2(t,e);16&i[pe]||(i[pe]|=64)}(i,t.index)):3&t.type&&(n=function UI(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 vl(e,t,i,n){if(Jf()){const r=null===n?null:{"":-1},a=function YI(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(Vf(t,s.selectors,!1))if(n||(n=[]),Vt(s))if(null!==s.findHostDirectiveDefs){const o=[];r=r||new Map,s.findHostDirectiveDefs(s,o,r),n.unshift(...o,s),_l(e,t,o.length)}else n.unshift(s),_l(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&&fh(e,t,i,s,r,o),r&&function ZI(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=Ei(i.mergedAttrs,i.attrs)}function fh(e,t,i,n,r,a){for(let l=0;l<n.length;l++)p0(ms(i,t),e,n[l].type);!function JI(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=rr(e,t,n.length,null);for(let l=0;l<n.length;l++){const u=n[l];i.mergedAttrs=Ei(i.mergedAttrs,u.hostAttrs),XI(e,i,t,c,u),QI(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 BI(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=lh(d.inputs,u,c,p?p.inputs:null),l=lh(d.outputs,u,l,H);const D=null===c||null===s||Hf(t)?null:nT(c,u,s);o.push(D)}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 dh(e,t,i){const n=i.directiveStart,r=i.directiveEnd,a=i.index,s=function UN(){return ce.lFrame.currentDirectiveIndex}();try{o3(a);for(let o=n;o<r;o++){const c=e.data[o],l=t[o];r0(o),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&KI(c,l)}}finally{o3(-1),r0(s)}}function KI(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function _l(e,t,i){t.componentOffset=i,(e.components??=[]).push(t.index)}function QI(e,t,i){if(i){if(t.exportAs)for(let n=0;n<t.exportAs.length;n++)i[t.exportAs[n]]=e;Vt(t)&&(i[""]=e)}}function XI(e,t,i,n,r){e.data[n]=r;const a=r.factory||(r.factory=s3(r.type)),s=new Fi(a,Vt(r),w);e.blueprint[n]=s,i[n]=s,function $I(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 WI(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,rr(e,i,r.hostVars,me),r)}function Kt(e,t,i,n,r,a){const s=T2(e,t);!function Cl(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 tT(e,t,i,n,r,a){const s=a[t];if(null!==s)for(let o=0;o<s.length;)hh(n,i,s[o++],s[o++],s[o++])}function hh(e,t,i,n,r){const a=J1(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{J1(a)}}function nT(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 ph(e,t,i,n){return[e,!0,!1,t,null,0,n,i,null,null,null]}function mh(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];s0(i[n]),s.contentQueries(2,t[a],a)}}}function Js(e,t){return e[Ti]?e[Lf][Ht]=t:e[Ti]=t,e[Lf]=t,t}function yl(e,t,i){s0(0);const n=J1(null);try{t(e,i)}finally{J1(n)}}function gh(e){return e[t4]||(e[t4]=[])}function vh(e){return e.cleanup||(e.cleanup=[])}function Ch(e,t){const i=e[Tn],n=i?i.get(h3,null):null;n&&n.handleError(t)}function Ml(e,t,i,n,r){for(let a=0;a<i.length;){const s=i[a++],o=i[a++];hh(e.data[s],t[s],n,o,r)}}function mn(e,t,i){const n=ls(t,e);!function K9(e,t,i){e.setValue(t,i)}(e[he],n,i)}function iT(e,t){const i=q2(t,e),n=i[K];!function rT(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]=el(r,i[Tn])),bl(n,i,i[N1])}function bl(e,t,i){o0(t);try{const n=e.viewQuery;null!==n&&yl(1,n,i);const r=e.template;null!==r&&sh(e,t,r,1,i),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&mh(e,t),e.staticViewQueries&&yl(2,e.viewQuery,i);const a=e.components;null!==a&&function aT(e,t){for(let i=0;i<t.length;i++)iT(e,t[i])}(t,a)}catch(n){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),n}finally{t[pe]&=-5,c0()}}let yh=(()=>{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=new CN(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 Xs(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 ar(e,t,i,n,r=!1){for(;null!==i;){const a=t[i.index];null!==a&&n.push(t1(a)),y2(a)&&Mh(a,n);const s=i.type;if(8&s)ar(e,t,i.child,n);else if(32&s){const o=D0(i,t);let c;for(;c=o();)n.push(c)}else if(16&s){const o=id(t,i);if(Array.isArray(o))n.push(...o);else{const c=Ki(t[A1]);ar(c[K],c,o,n,!0)}}i=r?i.projectionNext:i.next}return n}function Mh(e,t){for(let i=s2;i<e.length;i++){const n=e[i],r=n[K].firstChild;null!==r&&ar(n[K],n,r,t)}e[Ut]!==e[V1]&&t.push(e[Ut])}function eo(e,t,i,n=!0){const r=t[n4],a=r.rendererFactory,s=r.afterRenderEventManager;a.begin?.(),s?.begin();try{bh(e,t,e.template,i)}catch(c){throw n&&Ch(t,c),c}finally{a.end?.(),r.effectManager?.flush(),s?.end()}}function bh(e,t,i,n){const r=t[pe];if(256!=(256&r)){t[n4].effectManager?.flush(),o0(t);try{qf(t),function t9(e){return ce.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==i&&sh(e,t,i,2,n);const s=3==(3&r);if(s){const l=e.preOrderCheckHooks;null!==l&&ds(t,l,null)}else{const l=e.preOrderHooks;null!==l&&hs(t,l,0,null),l0(t,0)}if(function cT(e){for(let t=$9(e);null!==t;t=W9(t)){if(!t[Af])continue;const i=t[a4];for(let n=0;n<i.length;n++){xN(i[n])}}}(t),wh(t,2),null!==e.contentQueries&&mh(e,t),s){const l=e.contentCheckHooks;null!==l&&ds(t,l)}else{const l=e.contentHooks;null!==l&&hs(t,l,1),l0(t,1)}!function EI(e,t){const i=e.hostBindingOpCodes;if(null===i)return;const n=nh(t,is);try{for(let r=0;r<i.length;r++){const a=i[r];if(a<0)o3(~a);else{const s=a,o=i[++r],c=i[++r];BN(o,s),n.runInContext(c,2,t[s])}}}finally{null===t[is]&&ih(t,is),o3(-1)}}(e,t);const o=e.components;null!==o&&Vh(t,o,0);const c=e.viewQuery;if(null!==c&&yl(2,c,n),s){const l=e.viewCheckHooks;null!==l&&ds(t,l)}else{const l=e.viewHooks;null!==l&&hs(t,l,2),l0(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[pe]&=-73,Kf(t)}finally{c0()}}}function wh(e,t){for(let i=$9(e);null!==i;i=W9(i))for(let n=s2;n<i.length;n++)Hh(i[n],t)}function lT(e,t,i){Hh(q2(t,e),i)}function Hh(e,t){if(!function SN(e){return 128==(128&e[pe])}(e))return;const i=e[K];if(80&e[pe]&&0===t||1024&e[pe]||2===t)bh(i,e,i.template,e[N1]);else if(e[Ii]>0){wh(e,1);const r=e[K].components;null!==r&&Vh(e,r,1)}}function Vh(e,t,i){for(let n=0;n<t.length;n++)lT(e,t[n],i)}class sr{get rootNodes(){const t=this._lView,i=t[K];return ar(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[pe])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[p1];if(y2(t)){const i=t[8],n=i?i.indexOf(this):-1;n>-1&&(Ls(t,n),_s(i,n))}this._attachedToViewContainer=!1}z0(this._lView[K],this._lView)}onDestroy(t){!function Zf(e,t){if(256==(256&e[pe]))throw new F(911,!1);null===e[On]&&(e[On]=[]),e[On].push(t)}(this._lView,t)}markForCheck(){ir(this._cdRefInjectingView||this._lView)}detach(){this._lView[pe]&=-129}reattach(){this._lView[pe]|=128}detectChanges(){eo(this._lView[K],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new F(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function XA(e,t){Zi(e,t,t[he],2,null,null)}(this._lView[K],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new F(902,!1);this._appRef=t}}class uT extends sr{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;eo(t[K],t,t[N1],!1)}checkNoChanges(){}get context(){return null}}class Dh extends Ks{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const i=xe(t);return new or(i,this.ngModule)}}function Sh(e){const t=[];for(let i in e)e.hasOwnProperty(i)&&t.push({propName:e[i],templateName:i});return t}class dT{constructor(t,i){this.injector=t,this.parentInjector=i}get(t,i,n){n=Ja(n);const r=this.injector.get(t,rl,n);return r!==rl||i===rl?r:this.parentInjector.get(t,i,n)}}class or extends Id{get inputs(){const t=this.componentDef,i=t.inputTransforms,n=Sh(t.inputs);if(null!==i)for(const r of n)i.hasOwnProperty(r.propName)&&(r.transform=i[r.propName]);return n}get outputs(){return Sh(this.componentDef.outputs)}constructor(t,i){super(),this.componentDef=t,this.ngModule=i,this.componentType=t.type,this.selector=function eN(e){return e.map(XL).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!i}create(t,i,n,r){let a=(r=r||this.ngModule)instanceof R2?r:r?.injector;a&&null!==this.componentDef.getStandaloneInjector&&(a=this.componentDef.getStandaloneInjector(a)||a);const s=a?new dT(t,a):t,o=s.get(il,null);if(null===o)throw new F(407,!1);const d={rendererFactory:o,sanitizer:s.get(uI,null),effectManager:s.get(yh,null),afterRenderEventManager:s.get(ul,null)},p=o.createRenderer(null,this.componentDef),m=this.componentDef.selectors[0][0]||"div",H=n?function TI(e,t,i,n){const a=n.get(Zd,!1)||i===bt.ShadowDom,s=e.selectRootElement(t,a);return function OI(e){ch(e)}(s),s}(p,n,this.componentDef.encapsulation,s):xs(p,m,function fT(e){const t=e.toLowerCase();return"svg"===t?Gf:"math"===t?"math":null}(m)),E=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let z=null;null!==H&&(z=el(H,s,!0));const B=gl(0,null,null,1,0,null,null,null,null,null,null),U=Qs(null,B,null,E,null,null,d,p,s,null,z);let G,ie;o0(U);try{const ve=this.componentDef;let we,ke=null;ve.findHostDirectiveDefs?(we=[],ke=new Map,ve.findHostDirectiveDefs(ve,we,ke),we.push(ve)):we=[ve];const b1=function pT(e,t){const i=e[K],n=Ve;return e[n]=t,A4(i,n,2,"#host",null)}(U,H),n2=function mT(e,t,i,n,r,a,s){const o=r[K];!function gT(e,t,i,n){for(const r of e)t.mergedAttrs=Ei(t.mergedAttrs,r.hostAttrs);null!==t.mergedAttrs&&(Xs(t,t.mergedAttrs,!0),null!==i&&od(n,i,t))}(n,e,t,s);let c=null;null!==t&&(c=el(t,r[Tn]));const l=a.rendererFactory.createRenderer(t,i);let u=16;i.signals?u=4096:i.onPush&&(u=64);const d=Qs(r,oh(i),null,u,r[e.index],e,a,l,null,null,c);return o.firstCreatePass&&_l(o,e,n.length-1),Js(r,d),r[e.index]=d}(b1,H,ve,we,U,d,p);ie=Wf(B,Ve),H&&function _T(e,t,i,n){if(n)$6(e,i,["ng-version",fI.full]);else{const{attrs:r,classes:a}=function tN(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(!wt(r))break;r=a}n++}return{attrs:t,classes:i}}(t.selectors[0]);r&&$6(e,i,r),a&&a.length>0&&sd(e,i,a.join(" "))}}(p,ve,H,n),void 0!==i&&function CT(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 vT(e,t,i,n,r,a){const s=o2(),o=r[K],c=T2(s,r);fh(o,r,s,i,null,n);for(let u=0;u<i.length;u++)m2(c3(r,o,s.directiveStart+u,s),r);dh(o,r,s),c&&m2(c,r);const l=c3(r,o,s.directiveStart+s.componentOffset,s);if(e[N1]=r[N1]=l,null!==a)for(const u of a)u(l,t);return hl(o,s,e),l}(n2,ve,we,ke,U,[yT]),bl(B,U,null)}finally{c0()}return new hT(this.componentType,G,x4(ie,U),U,ie)}}class hT extends rI{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 uT(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;Ml(a[K],a,r,t,i),this.previousInputValues.set(t,i),ir(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 yT(){const e=o2();fs(k()[K],e)}function re(e){let t=function zh(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),i=!0;const n=[e];for(;t;){let r;if(Vt(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=to(e.inputs),s.inputTransforms=to(e.inputTransforms),s.declaredInputs=to(e.declaredInputs),s.outputs=to(e.outputs);const o=r.hostBindings;o&&HT(e,o);const c=r.viewQuery,l=r.contentQueries;if(c&&bT(e,c),l&&wT(e,l),Wa(e.inputs,r.inputs),Wa(e.declaredInputs,r.declaredInputs),Wa(e.outputs,r.outputs),null!==r.inputTransforms&&(null===s.inputTransforms&&(s.inputTransforms={}),Wa(s.inputTransforms,r.inputTransforms)),Vt(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 MT(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=Ei(r.hostAttrs,i=Ei(i,r.hostAttrs))}}(n)}function to(e){return e===Ft?{}:e===Ie?[]:e}function bT(e,t){const i=e.viewQuery;e.viewQuery=i?(n,r)=>{t(n,r),i(n,r)}:t}function wT(e,t){const i=e.contentQueries;e.contentQueries=i?(n,r,a)=>{t(n,r,a),i(n,r,a)}:t}function HT(e,t){const i=e.hostBindings;e.hostBindings=i?(n,r)=>{t(n,r),i(n,r)}:t}function Ah(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 no(e){return!!function wl(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 p3(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,c4(),t)&&(Le(),Kt(_1(),r,e,t,i,n)),W}function I4(e,t,i,n){return g2(e,c4(),i)?t+de(i)+n:me}function T4(e,t,i,n,r,a){const o=p3(e,function un(){return ce.lFrame.bindingIndex}(),i,r);return fn(2),o?t+de(i)+n+de(r)+a:me}function O(e,t,i,n,r,a,s,o){const c=k(),l=Le(),u=e+Ve,d=l.firstCreatePass?function KT(e,t,i,n,r,a,s,o,c){const l=t.consts,u=A4(t,e,4,s||null,Rn(l,o));vl(t,i,u,Rn(l,c)),fs(t,u);const d=u.tView=gl(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=$h(l,c,d,e);us()&&As(l,c,p,d),m2(p,c),Js(c,c[u]=ph(p,c,p,d)),as(d)&&pl(l,c,d),null!=s&&ml(c,d,o)}let $h=function Wh(e,t,i,n){return kn(!0),t[he].createComment("")};function k2(e){return function s4(e,t){return e[t]}(function PN(){return ce.lFrame.contextLView}(),Ve+e)}function b(e,t,i){const n=k();return g2(n,c4(),t)&&Z2(Le(),_1(),n,e,t,n[he],i,!1),b}function xl(e,t,i,n,r){const s=r?"class":"style";Ml(e,i,t.inputs[s],s,n)}function g(e,t,i,n){const r=k(),a=Le(),s=Ve+e,o=r[he],c=a.firstCreatePass?function JT(e,t,i,n,r,a){const s=t.consts,c=A4(t,e,2,n,Rn(s,r));return vl(t,i,c,Rn(s,a)),null!==c.attrs&&Xs(c,c.attrs,!1),null!==c.mergedAttrs&&Xs(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(s,a,r,t,i,n):a.data[s],l=qh(a,r,c,o,t,e);r[s]=l;const u=as(c);return $t(c,!0),od(o,l,c),32!=(32&c.flags)&&us()&&As(a,r,l,c),0===function NN(){return ce.lFrame.elementDepthCount}()&&m2(l,r),function AN(){ce.lFrame.elementDepthCount++}(),u&&(pl(a,r,c),hl(a,c,r)),null!==n&&ml(r,c),g}function _(){let e=o2();t0()?n0():(e=e.parent,$t(e,!1));const t=e;(function IN(e){return ce.skipHydrationRootTNode===e})(t)&&function kN(){ce.skipHydrationRootTNode=null}(),function EN(){ce.lFrame.elementDepthCount--}();const i=Le();return i.firstCreatePass&&(fs(i,e),q6(e)&&i.queries.elementEnd(e)),null!=t.classesWithoutHost&&function QN(e){return 0!=(8&e.flags)}(t)&&xl(i,t,k(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function JN(e){return 0!=(16&e.flags)}(t)&&xl(i,t,k(),t.stylesWithoutHost,!1),_}function P(e,t,i,n){return g(e,t,i,n),_(),P}let qh=(e,t,i,n,r,a)=>(kn(!0),xs(n,r,function l9(){return ce.lFrame.currentNamespace}()));function I1(){return k()}function hr(e){return!!e&&"function"==typeof e.then}function Zh(e){return!!e&&"function"==typeof e.subscribe}function R(e,t,i,n){const r=k(),a=Le(),s=o2();return function Jh(e,t,i,n,r,a,s){const o=as(n),l=e.firstCreatePass&&vh(e),u=t[N1],d=gh(t);let p=!0;if(3&n.type||s){const D=T2(n,t),x=s?s(D):D,E=d.length,z=s?U=>s(t1(U[n.index])):n.index;let B=null;if(!s&&o&&(B=function rO(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[t4],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=ep(n,t,u,a,!1);const U=i.listen(x,r,a);d.push(a,U),l&&l.push(r,z,E,E+1)}}else a=ep(n,t,u,a,!1);const m=n.outputs;let H;if(p&&null!==m&&(H=m[r])){const D=H.length;if(D)for(let x=0;x<D;x+=2){const G=t[H[x]][H[x+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),R}function Xh(e,t,i,n){try{return Gt(6,t,i),!1!==i(n)}catch(r){return Ch(e,r),!1}finally{Gt(7,t,i)}}function ep(e,t,i,n,r){return function a(s){if(s===Function)return n;ir(e.componentOffset>-1?q2(e.index,t):t);let c=Xh(t,i,n,s),l=a.__ngNextListenerFn__;for(;l;)c=Xh(t,i,l,s)&&c,l=l.__ngNextListenerFn__;return r&&!1===c&&s.preventDefault(),c}}function I(e=1){return function GN(e){return(ce.lFrame.contextLView=function $N(e,t){for(;e>0;)t=t[i4],e--;return t}(e,ce.lFrame.contextLView))[N1]}(e)}function aO(e,t){let i=null;const n=function YL(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?Vf(e,a,!0):JL(n,a))return r}else i=r}return i}function U4(e){const t=k()[A1][p2];if(!t.projection){const n=t.projection=$i(e?e.length:1,null),r=n.slice();let a=t.child;for(;null!==a;){const s=e?aO(a,e):0;null!==s&&(r[s]?r[s].projectionNext=a:n[s]=a,r[s]=a),a=a.next}}}function j4(e,t=0,i){const n=k(),r=Le(),a=A4(r,Ve+e,16,null,i||null);null===a.projection&&(a.projection=t),n0(),(!n[ln]||o4())&&32!=(32&a.flags)&&function oE(e,t,i){ad(t[he],0,t,i,L0(e,i,t),X9(i.parent||t[p2],i,t))}(r,n,a)}function Al(e,t,i){return G4(e,"",t,"",i),Al}function G4(e,t,i,n,r){const a=k(),s=I4(a,t,i,n);return s!==me&&Z2(Le(),_1(),a,e,s,a[he],r,!1),G4}function oo(e,t){return e<<17|t<<2}function Fn(e){return e>>17&32767}function El(e){return 2|e}function m3(e){return(131068&e)>>2}function Il(e,t){return-131069&e|t<<2}function Tl(e){return 1|e}function lp(e,t,i,n,r){const a=e[i+1],s=null===t;let o=n?Fn(a):m3(a),c=!1;for(;0!==o&&(!1===c||s);){const u=e[o+1];fO(e[o],t)&&(c=!0,e[o+1]=n?Tl(u):El(u)),o=n?Fn(u):m3(u)}c&&(e[i+1]=n?El(a):Tl(a))}function fO(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&_4(e,t)>=0}const W1={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function up(e){return e.substring(W1.key,W1.keyEnd)}function fp(e,t){const i=W1.textEnd;return i===t?-1:(t=W1.keyEnd=function mO(e,t,i){for(;t<i&&e.charCodeAt(t)>32;)t++;return t}(e,W1.key=t,i),$4(e,t,i))}function $4(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=Le(),s=fn(2);a.firstUpdatePass&&_p(a,e,s,n),t!==me&&g2(r,s,t)&&yp(a,a.data[b2()],r,r[he],e,r[s+1]=function DO(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=G1(Y2(e)))),e}(t,i),n,s)}(e,t,null,!0),ze}function gn(e){!function St(e,t,i,n){const r=Le(),a=fn(2);r.firstUpdatePass&&_p(r,null,a,n);const s=k();if(i!==me&&g2(s,a,i)){const o=r.data[b2()];if(bp(o,n)&&!vp(r,a)){let c=n?o.classesWithoutHost:o.stylesWithoutHost;null!==c&&(i=N6(c,i||"")),xl(r,o,s,i,n)}else!function VO(e,t,i,n,r,a,s,o){r===me&&(r=Ie);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 D,H=null;u===d?(c+=2,l+=2,p!==m&&(H=d,D=m)):null===d||null!==u&&u<d?(c+=2,H=u):(l+=2,H=d,D=m),null!==H&&yp(e,t,i,n,H,D,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 wO(e,t,i){if(null==i||""===i)return Ie;const n=[],r=Y2(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)}}(HO,Qt,e,!0)}function Qt(e,t){for(let i=function hO(e){return function hp(e){W1.key=0,W1.keyEnd=0,W1.value=0,W1.valueEnd=0,W1.textEnd=e.length}(e),fp(e,$4(e,0,W1.textEnd))}(t);i>=0;i=fp(t,i))K2(e,up(t),!0)}function vp(e,t){return t>=e.expandoStartIndex}function _p(e,t,i,n){const r=e.data;if(null===r[i+1]){const a=r[b2()],s=vp(e,i);bp(a,n)&&null===t&&!s&&(t=!1),t=function CO(e,t,i,n){const r=function a0(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=pr(i=Ol(null,e,t,i,n),t.attrs,n),a=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==r)if(i=Ol(r,e,t,i,n),null===a){let c=function yO(e,t,i){const n=i?t.classBindings:t.styleBindings;if(0!==m3(n))return e[Fn(n)]}(e,t,n);void 0!==c&&Array.isArray(c)&&(c=Ol(null,e,t,c[1],n),c=pr(c,t.attrs,n),function MO(e,t,i,n){e[Fn(i?t.classBindings:t.styleBindings)]=n}(e,t,n,c))}else a=function bO(e,t,i){let n;const r=t.directiveEnd;for(let a=1+t.directiveStylingLast;a<r;a++)n=pr(n,e[a].hostAttrs,i);return pr(n,t.attrs,i)}(e,t,n)}return void 0!==a&&(n?t.residualClasses=a:t.residualStyles=a),i}(r,a,t,n),function lO(e,t,i,n,r,a){let s=a?t.classBindings:t.styleBindings,o=Fn(s),c=m3(s);e[n]=i;let u,l=!1;if(Array.isArray(i)?(u=i[1],(null===u||_4(i,u)>0)&&(l=!0)):u=i,r)if(0!==c){const p=Fn(e[o+1]);e[n+1]=oo(p,o),0!==p&&(e[p+1]=Il(e[p+1],n)),e[o+1]=function oO(e,t){return 131071&e|t<<17}(e[o+1],n)}else e[n+1]=oo(o,0),0!==o&&(e[o+1]=Il(e[o+1],n)),o=n;else e[n+1]=oo(c,0),0===o?o=n:e[c+1]=Il(e[c+1],n),c=n;l&&(e[n+1]=El(e[n+1])),lp(e,u,n,!0),lp(e,u,n,!1),function uO(e,t,i,n,r){const a=r?e.residualClasses:e.residualStyles;null!=a&&"string"==typeof t&&_4(a,t)>=0&&(i[n+1]=Tl(i[n+1]))}(t,u,e,n,a),s=oo(o,c),a?t.classBindings=s:t.styleBindings=s}(r,a,t,i,s,n)}}function Ol(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=pr(n,a.hostAttrs,r),a!==e);)o++;return null!==e&&(i.directiveStylingLast=o),n}function pr(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]),K2(e,s,!!i||t[++a]))}return void 0===e?null:e}function HO(e,t,i){const n=String(t);""!==n&&!n.includes(" ")&&K2(e,n,i)}function yp(e,t,i,n,r,a,s,o){if(!(3&t.type))return;const c=e.data,l=c[o+1],u=function cO(e){return 1==(1&e)}(l)?Mp(c,t,i,r,m3(l),s):void 0;co(u)||(co(a)||function sO(e){return 2==(2&e)}(l)&&(a=Mp(c,null,i,r,o,s)),function lE(e,t,i,n,r){if(t)r?e.addClass(i,n):e.removeClass(i,n);else{let a=-1===n.indexOf("-")?void 0:Pn.DashCase;null==r?e.removeStyle(i,n,a):("string"==typeof r&&r.endsWith("!important")&&(r=r.slice(0,-10),a|=Pn.Important),e.setStyle(i,n,r,a))}}(n,s,ls(b2(),i),r,a))}function Mp(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===me&&(p=d?Ie:void 0);let m=d?v0(p,n):u===n?p:void 0;if(l&&!co(m)&&(m=v0(c,n)),co(m)&&(o=m,s))return o;const H=e[r+1];r=s?Fn(H):m3(H)}if(null!==t){let c=a?t.residualClasses:t.residualStyles;null!=c&&(o=v0(c,n))}return o}function co(e){return void 0!==e}function bp(e,t){return 0!=(e.flags&(t?8:16))}function M(e,t=""){const i=k(),n=Le(),r=e+Ve,a=n.firstCreatePass?A4(n,r,1,t,null):n.data[r],s=wp(n,i,a,t,e);i[r]=s,us()&&As(n,i,s,a),$t(a,!1)}let wp=(e,t,i,n,r)=>(kn(!0),function zs(e,t){return e.createText(t)}(t[he],n));function ht(e){return Q2("",e,""),ht}function Q2(e,t,i){const n=k(),r=I4(n,e,t,i);return r!==me&&mn(n,b2(),r),Q2}function W4(e,t,i,n,r){const a=k(),s=T4(a,e,t,i,n,r);return s!==me&&mn(a,b2(),s),W4}function H2(e,t,i){const n=k();return g2(n,c4(),t)&&Z2(Le(),_1(),n,e,t,n[he],i,!0),H2}const K4="en-US";let jp=K4;function Pl(e,t,i,n,r){if(e=ue(e),Array.isArray(e))for(let a=0;a<e.length;a++)Pl(e[a],t,i,n,r);else{const a=Le(),s=k(),o=o2();let c=d3(e)?e:ue(e.provide);const l=zd(e),u=1048575&o.providerIndexes,d=o.directiveStart,p=o.providerIndexes>>20;if(d3(e)||!e.multi){const m=new Fi(l,r,w),H=Bl(c,t,r?u:u+p,d);-1===H?(p0(ms(o,s),a,c),Fl(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=Bl(c,t,u+p,d),H=Bl(c,t,u,u+p),x=H>=0&&i[H];if(r&&!x||!r&&!(m>=0&&i[m])){p0(ms(o,s),a,c);const E=function WR(e,t,i,n,r){const a=new Fi(e,i,w);return a.multi=[],a.index=t,a.componentProviders=0,pm(a,r,n&&!i),a}(r?$R:GR,i.length,r,n,l);!r&&x&&(i[H].providerFactory=E),Fl(a,e,t.length,0),t.push(c),o.directiveStart++,o.directiveEnd++,r&&(o.providerIndexes+=1048576),i.push(E),s.push(E)}else Fl(a,e,m>-1?m:H,pm(i[r?H:m],l,!r&&n));!r&&n&&x&&i[H].componentProviders++}}}function Fl(e,t,i,n){const r=d3(t),a=function BE(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 pm(e,t,i){return i&&e.componentProviders++,e.multi.push(t)-1}function Bl(e,t,i,n){for(let r=i;r<n;r++)if(t[r]===e)return r;return-1}function GR(e,t,i,n){return Ul(this.multi,[])}function $R(e,t,i,n){const r=this.multi;let a;if(this.providerFactory){const s=this.providerFactory.componentProviders,o=c3(i,i[K],this.providerFactory.index,n);a=o.slice(0,s),Ul(r,a);for(let c=s;c<o.length;c++)a.push(o[c])}else a=[],Ul(r,a);return a}function Ul(e,t){for(let i=0;i<e.length;i++)t.push((0,e[i])());return t}function Ze(e,t=[]){return i=>{i.providersResolver=(n,r)=>function jR(e,t,i){const n=Le();if(n.firstCreatePass){const r=Vt(e);Pl(i,n.data,n.blueprint,r,!0),Pl(t,n.data,n.blueprint,r,!1)}}(n,r?r(e):e,t)}}class v3{}class mm{}class jl extends v3{constructor(t,i,n){super(),this._parent=i,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Dh(this);const r=W2(t);this._bootstrapComponents=pn(r.bootstrap),this._r3Injector=Fd(t,i,[{provide:v3,useValue:this},{provide:Ks,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 Gl extends mm{constructor(t){super(),this.moduleType=t}create(t){return new jl(this.moduleType,t,[])}}class gm extends v3{constructor(t){super(),this.componentFactoryResolver=new Dh(this),this.instance=null;const i=new Bs([...t.providers,{provide:v3,useValue:this},{provide:Ks,useValue:this.componentFactoryResolver}],t.parent||Fs(),t.debugName,new Set(["environment"]));this.injector=i,t.runEnvironmentInitializers&&i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function $l(e,t,i=null){return new gm({providers:e,parent:t,debugName:i,runEnvironmentInitializers:!0}).injector}let YR=(()=>{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=Hd(0,n.type),a=r.length>0?$l([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(R2))}),t})();function D2(e){e.getStandaloneInjector=t=>t.get(YR).getOrCreateStandaloneInjector(e)}function br(e,t,i,n,r){return function Hm(e,t,i,n,r,a,s){const o=t+i;return p3(e,o,r,a)?function Yt(e,t,i){return e[t]=i}(e,o+2,s?n.call(s,r,a):n(r,a)):function wr(e,t){const i=e[t];return i===me?void 0:i}(e,o+2)}(k(),function M2(){const e=ce.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}(),e,t,i,n,r)}function _k(){return this._results[Symbol.iterator]()}class Kl{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=Kl.prototype;i[Symbol.iterator]||(i[Symbol.iterator]=_k)}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 ut(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function dA(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 yk(e,t,i,n=!0){const r=t[K];if(function tE(e,t,i,n){const r=s2+n,a=i.length;n>0&&(i[r-1][Ht]=t),n<a-s2?(t[Ht]=i[r],H9(i,s2+n,t)):(i.push(t),t[Ht]=null),t[p1]=i;const s=t[Oi];null!==s&&i!==s&&function nE(e,t){const i=e[a4];t[A1]!==t[p1][p1][A1]&&(e[Af]=!0),null===i?e[a4]=[t]:i.push(t)}(s,t);const o=t[Bt];null!==o&&o.insertView(e),t[pe]|=128}(r,t,e,i),n){const a=A0(i,e),s=t[he],o=Ns(s,e[Ut]);null!==o&&function JA(e,t,i,n,r,a){n[V1]=r,n[p2]=t,Zi(e,n,i,1,r,a)}(r,e[p2],s,t,o,a)}}let o1=(()=>{class t{}return t.__NG_ELEMENT_ID__=wk,t})();const Mk=o1,bk=class extends Mk{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 Ck(e,t,i,n){const r=t.tView,o=Qs(e,r,i,4096&e[pe]?4096:16,null,t,null,null,null,n?.injector??null,n?.hydrationInfo??null);o[Oi]=e[t.index];const l=e[Bt];return null!==l&&(o[Bt]=l.createEmbeddedView(r)),bl(r,o,i),o}(this._declarationLView,this._declarationTContainer,t,{injector:i,hydrationInfo:n});return new sr(r)}};function wk(){return po(o2(),k())}function po(e,t){return 4&e.type?new bk(t,e,x4(e,t)):null}let F2=(()=>{class t{}return t.__NG_ELEMENT_ID__=xk,t})();function xk(){return Im(o2(),k())}const Lk=F2,Am=class extends Lk{constructor(t,i,n){super(),this._lContainer=t,this._hostTNode=i,this._hostLView=n}get element(){return x4(this._hostTNode,this._hostLView)}get injector(){return new w2(this._hostTNode,this._hostLView)}get parentInjector(){const t=gs(this._hostTNode,this._hostLView);if(f0(t)){const i=Ui(t,this._hostLView),n=Bi(t);return new w2(i[K].data[n+8],i)}return new w2(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const i=Em(this._lContainer);return null!==i&&i[t]||null}get length(){return this._lContainer.length-s2}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 Gi(e){return"function"==typeof e}(t);let o;if(s)o=i;else{const D=i||{};o=D.index,n=D.injector,r=D.projectableNodes,a=D.environmentInjector||D.ngModuleRef}const c=s?t:new or(xe(t)),l=n||this.parentInjector;if(!a&&null==c.ngModule){const x=(s?l:this.parentInjector).get(R2,null);x&&(a=x)}xe(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 zN(e){return y2(e[p1])}(r)){const c=this.indexOf(t);if(-1!==c)this.detach(c);else{const l=r[p1],u=new Am(l,l[p2],l[p1]);u.detach(u.indexOf(t))}}const s=this._adjustIndex(i),o=this._lContainer;return yk(o,r,s,!n),t.attachToViewContainerRef(),H9(Yl(o),s,t),t}move(t,i){return this.insert(t,i)}indexOf(t){const i=Em(this._lContainer);return null!==i?i.indexOf(t):-1}remove(t){const i=this._adjustIndex(t,-1),n=Ls(this._lContainer,i);n&&(_s(Yl(this._lContainer),i),z0(n[K],n))}detach(t){const i=this._adjustIndex(t,-1),n=Ls(this._lContainer,i);return n&&null!=_s(Yl(this._lContainer),i)?new sr(n):null}_adjustIndex(t,i=0){return t??this.length+i}};function Em(e){return e[8]}function Yl(e){return e[8]||(e[8]=[])}function Im(e,t){let i;const n=t[e.index];return y2(n)?i=n:(i=ph(n,t,null,e),t[e.index]=i,Js(t,i)),Tm(i,t,e,n),new Am(i,e,t)}let Tm=function Om(e,t,i,n){if(e[Ut])return;let r;r=8&i.type?t1(n):function Nk(e,t){const i=e[he],n=i.createComment(""),r=T2(t,e);return u3(i,Ns(i,r),n,function sE(e,t){return e.nextSibling(t)}(i,r),!1),n}(t,i),e[Ut]=r};class Zl{constructor(t){this.queryList=t,this.matches=null}clone(){return new Zl(this.queryList)}setDirty(){this.queryList.setDirty()}}class Ql{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 Ql(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!==Bm(t,i).matches&&this.queries[i].setDirty()}}class Rm{constructor(t,i,n=null){this.predicate=t,this.flags=i,this.read=n}}class Jl{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 Jl(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 Xl{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 Xl(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,Ik(i,a)),this.matchTNodeWithReadOption(t,i,vs(i,t,a,!1,!1))}else n===o1?4&i.type&&this.matchTNodeWithReadOption(t,i,-1):this.matchTNodeWithReadOption(t,i,vs(i,t,n,!1,!1))}matchTNodeWithReadOption(t,i,n){if(null!==n){const r=this.metadata.read;if(null!==r)if(r===Ne||r===F2||r===o1&&4&i.type)this.addMatch(i.index,-2);else{const a=vs(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 Ik(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 Ok(e,t,i,n){return-1===i?function Tk(e,t){return 11&e.type?x4(e,t):4&e.type?po(e,t):null}(t,e):-2===i?function Rk(e,t,i){return i===Ne?x4(t,e):i===o1?po(t,e):i===F2?Im(t,e):void 0}(e,t,n):c3(e,e[K],i,t)}function km(e,t,i,n){const r=t[Bt].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:Ok(t,a[l],s[c+1],i.metadata.read))}r.matches=o}return r.matches}function e8(e,t,i,n){const r=e.queries.getByIndex(i),a=r.matches;if(null!==a){const s=km(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=s2;d<u.length;d++){const p=u[d];p[Oi]===p[p1]&&e8(p[K],p,l,n)}if(null!==u[a4]){const d=u[a4];for(let p=0;p<d.length;p++){const m=d[p];e8(m[K],m,l,n)}}}}}return n}function je(e){const t=k(),i=Le(),n=i9();s0(n+1);const r=Bm(i,n);if(e.dirty&&function DN(e){return 4==(4&e[pe])}(t)===(2==(2&r.metadata.flags))){if(null===r.matches)e.reset([]);else{const a=r.crossesNgTemplate?e8(i,t,n,[]):km(i,t,r,n);e.reset(a,cI),e.notifyOnChanges()}return!0}return!1}function C1(e,t,i,n){const r=Le();if(r.firstCreatePass){const a=o2();Fm(r,new Rm(t,i,n),a.index),function Pk(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)}Pm(r,k(),i)}function Ge(){return function kk(e,t){return e[Bt].queries[t].queryList}(k(),i9())}function Pm(e,t,i){const n=new Kl(4==(4&i));(function PI(e,t,i,n){const r=gh(t);r.push(i),e.firstCreatePass&&vh(e).push(n,r.length-1)})(e,t,n,n.destroy),null===t[Bt]&&(t[Bt]=new Ql),t[Bt].queries.push(new Zl(n))}function Fm(e,t,i){null===e.queries&&(e.queries=new Jl),e.queries.track(new Xl(t,i))}function Bm(e,t){return e.queries.getByIndex(t)}function S2(e,t){return po(e,t)}const s8=new te("Application Initializer");let o8=(()=>{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(s8,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const a of this.appInits){const s=a();if(hr(s))n.push(s);else if(Zh(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})(),rg=(()=>{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 zt=new te("LocaleId",{providedIn:"root",factory:()=>J(zt,ye.Optional|ye.SkipSelf)||function sP(){return typeof $localize<"u"&&$localize.locale||K4}()});let ag=(()=>{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 lP{constructor(t,i){this.ngModuleFactory=t,this.componentFactories=i}}let sg=(()=>{var e;class t{compileModuleSync(n){return new Gl(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),s=pn(W2(n).declarations).reduce((o,c)=>{const l=xe(c);return l&&o.push(new or(l)),o},[]);return new lP(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 ug=new te(""),_o=new te("");let d8,u8=(()=>{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,d8||(function xP(e){d8=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(f8),q(_o))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),t})(),f8=(()=>{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 d8?.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})(),Bn=null;const fg=new te("AllowMultipleToken"),h8=new te("PlatformDestroyListeners"),p8=new te("appBootstrapListener");class hg{constructor(t,i){this.name=t,this.token=i}}function mg(e,t,i=[]){const n=`Platform: ${t}`,r=new te(n);return(a=[])=>{let s=m8();if(!s||s.injector.get(fg,!1)){const o=[...i,...a,{provide:r,useValue:!0}];e?e(o):function AP(e){if(Bn&&!Bn.get(fg,!1))throw new F(400,!1);(function dg(){!function vN(e){kf=e}(()=>{throw new F(600,!1)})})(),Bn=e;const t=e.get(vg);(function pg(e){e.get(xd,null)?.forEach(i=>i())})(e)}(function gg(e=[],t){return B1.create({name:t,providers:[{provide:j0,useValue:"platform"},{provide:h8,useValue:new Set([()=>Bn=null])},...e]})}(o,n))}return function IP(e){const t=m8();if(!t)throw new F(401,!1);return t}()}}function m8(){return Bn?.get(vg)??null}let vg=(()=>{var e;class t{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const a=function TP(e="zone.js",t){return"noop"===e?new wI:"zone.js"===e?new Me(t):e}(r?.ngZone,function _g(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return a.run(()=>{const s=function KR(e,t,i){return new jl(e,t,i)}(n.moduleType,this.injector,function wg(e){return[{provide:Me,useFactory:e},{provide:Xi,multi:!0,useFactory:()=>{const t=J(RP,{optional:!0});return()=>t.initialize()}},{provide:bg,useFactory:OP},{provide:Gd,useFactory:$d}]}(()=>a)),o=s.injector.get(h3,null);return a.runOutsideAngular(()=>{const c=a.onError.subscribe({next:l=>{o.handleError(l)}});s.onDestroy(()=>{Co(this._modules,s),c.unsubscribe()})}),function Cg(e,t,i){try{const n=i();return hr(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(o8);return c.runInitializers(),c.donePromise.then(()=>(function Gp(e){lt(e,"Expected localeId to be defined"),"string"==typeof e&&(jp=e.toLowerCase().replace(/_/g,"-"))}(s.injector.get(zt,K4)||K4),this._moduleDoBootstrap(s),s))})})}bootstrapModule(n,r=[]){const a=yg({},r);return function LP(e,t,i){const n=new Gl(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(h8,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 yg(e,t){return Array.isArray(t)?t.reduce(yg,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(bg),this.zoneIsStable=J(Gd),this.componentTypes=[],this.components=[],this.isStable=J(ag).hasPendingTasks.pipe(Mt(n=>n?ae(!1):this.zoneIsStable),function cf(e,t=yt){return e=e??DL,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))}))})}(),x6()),this._injector=J(R2)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const a=n instanceof Id;if(!this._injector.get(o8).done)throw!a&&function e4(e){const t=xe(e)||a2(e)||C2(e);return null!==t&&t.standalone}(n),new F(405,!1);let o;o=a?n:this._injector.get(Ks).resolveComponentFactory(n),this.componentTypes.push(o.componentType);const c=function NP(e){return e.isBoundToModule}(o)?void 0:this._injector.get(v3),u=o.create(B1.NULL,[],r||o.selector,c),d=u.location.nativeElement,p=u.injector.get(ug,null);return p?.registerApplication(d),u.onDestroy(()=>{this.detachView(u.hostView),Co(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;Co(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(p8,[]);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),()=>Co(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 Co(e,t){const i=e.indexOf(t);i>-1&&e.splice(i,1)}const bg=new te("",{providedIn:"root",factory:()=>J(h3).handleError.bind(void 0)});function OP(){const e=J(Me),t=J(h3);return i=>e.runOutsideAngular(()=>t.handleError(i))}let RP=(()=>{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__=PP,t})();function PP(e){return function FP(e,t,i){if(a3(e)&&!i){const n=q2(e.index,t);return new sr(n,n)}return 47&e.type?new sr(t[A1],t):null}(o2(),k(),16==(16&e))}class Sg{constructor(){}supports(t){return no(t)}create(t){return new WP(t)}}const $P=(e,t)=>t;class WP{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||$P}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<xg(n,r,a)?i:n,o=xg(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=[]),!no(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 LT(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 qP(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 zg),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 zg),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 qP{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 KP{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 zg{constructor(){this.map=new Map}put(t){const i=t.trackById;let n=this.map.get(i);n||(n=new KP,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 xg(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 Ng(){return new bo([new Sg])}let bo=(()=>{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||Ng()),deps:[[t,new Ms,new ys]]}}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:Ng}),t})();const XP=mg(null,"core",[]);let eF=(()=>{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=Te({}),t})();function Q4(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function M8(e,t){const i=xe(e),n=t.elementInjector||Fs();return new or(i).create(n,t.projectableNodes,t.hostElement,t.environmentInjector)}let b8=null;function Un(){return b8}class pF{}const y1=new te("DocumentToken");let w8=(()=>{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(gF)},providedIn:"platform"}),t})();const mF=new te("Location Initialized");let gF=(()=>{var e;class t extends w8{constructor(){super(),this._doc=J(y1),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Un().getBaseHref(this._doc)}onPopState(n){const r=Un().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=Un().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 H8(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 Bg(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 vn(e){return e&&"?"!==e[0]?"?"+e:e}let jn=(()=>{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(jg)},providedIn:"root"}),t})();const Ug=new te("appBaseHref");let jg=(()=>{var e;class t extends jn{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??J(y1).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 H8(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+vn(this._platformLocation.search),a=this._platformLocation.hash;return a&&n?`${r}${a}`:r}pushState(n,r,a,s){const o=this.prepareExternalUrl(a+vn(s));this._platformLocation.pushState(n,r,o)}replaceState(n,r,a,s){const o=this.prepareExternalUrl(a+vn(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(w8),q(Ug,8))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),Gg=(()=>{var e;class t extends jn{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=H8(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,a,s){let o=this.prepareExternalUrl(a+vn(s));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(n,r,o)}replaceState(n,r,a,s){let o=this.prepareExternalUrl(a+vn(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(w8),q(Ug,8))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),t})(),V8=(()=>{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 CF(e){if(new RegExp("^(https?:)?//").test(e)){const[,i]=e.split(/\/\/[^\/]+/);return i}return e}(Bg($g(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+vn(r))}normalize(n){return t.stripTrailingSlash(function _F(e,t){if(!e||!t.startsWith(e))return t;const i=t.substring(e.length);return""===i||["/",";","?","#"].includes(i[0])?i:t}(this._basePath,$g(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+vn(r)),a)}replaceState(n,r="",a=null){this._locationStrategy.replaceState(a,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+vn(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=vn,e.joinWithSlash=H8,e.stripTrailingSlash=Bg,e.\u0275fac=function(n){return new(n||e)(q(jn))},e.\u0275prov=$({token:e,factory:function(){return function vF(){return new V8(q(jn))}()},providedIn:"root"}),t})();function $g(e){return e.replace(/\/index.html$/,"")}class iB{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 iB(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),rv(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=>{rv(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(bo))},e.\u0275dir=j({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function rv(e,t){e.context.$implicit=t.item}let O1=(()=>{var e;class t{constructor(n,r){this._viewContainer=n,this._context=new rB,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){av("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){av("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 rB{constructor(){this.$implicit=null,this.ngIf=null}}function av(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})(),NB=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({}),t})();function lv(e){return"server"===e}let TB=(()=>{var e;class t{}return(e=t).\u0275prov=$({token:e,providedIn:"root",factory:()=>new OB(q(y1),window)}),t})();class OB{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 RB(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 oU extends pF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class j8 extends oU{static makeCurrent(){!function hF(e){b8||(b8=e)}(new j8)}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 cU(){return Nr=Nr||document.querySelector("base"),Nr?Nr.getAttribute("href"):null}();return null==i?null:function lU(e){Oo=Oo||document.createElement("a"),Oo.setAttribute("href",e);const t=Oo.pathname;return"/"===t.charAt(0)?t:`/${t}`}(i)}resetBaseElement(){Nr=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function eB(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 Oo,Nr=null,fU=(()=>{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 G8=new te("EventManagerPlugins");let pv=(()=>{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(G8),q(Me))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),t})();class mv{constructor(t){this._doc=t}}const $8="ng-app-id";let gv=(()=>{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=lv(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[${$8}="${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($8),s;{const o=this.doc.createElement("style");return this.nonce&&o.setAttribute("nonce",this.nonce),o.textContent=r,this.platformIsServer&&o.setAttribute($8,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(y1),q(Us),q(Ld,8),q(D4))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),t})();const W8={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/"},q8=/%COMP%/g,mU=new te("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function _v(e,t){return t.map(i=>i.replace(q8,e))}let Cv=(()=>{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=lv(c),this.defaultRenderer=new K8(n,o,l,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===bt.ShadowDom&&(r={...r,encapsulation:bt.Emulated});const a=this.getOrCreateRenderer(n,r);return a instanceof Mv?a.applyToHost(n):a instanceof Y8&&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 bt.Emulated:s=new Mv(l,u,r,this.appId,d,o,c,p);break;case bt.ShadowDom:return new CU(l,u,n,r,o,c,this.nonce,p);default:s=new Y8(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(pv),q(gv),q(Us),q(mU),q(y1),q(D4),q(Me),q(Ld))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),t})();class K8{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(W8[i]||i,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,i){(yv(t)?t.content:t).appendChild(i)}insertBefore(t,i,n){t&&(yv(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=W8[r];a?t.setAttributeNS(a,i,n):t.setAttribute(i,n)}else t.setAttribute(i,n)}removeAttribute(t,i,n){if(n){const r=W8[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&(Pn.DashCase|Pn.Important)?t.style.setProperty(i,n,r&Pn.Important?"important":""):t.style[i]=n}removeStyle(t,i,n){n&Pn.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=Un().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 yv(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class CU extends K8{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=_v(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 Y8 extends K8{constructor(t,i,n,r,a,s,o,c){super(t,a,s,o),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=r,this.styles=c?_v(c,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class Mv extends Y8{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 gU(e){return"_ngcontent-%COMP%".replace(q8,e)}(l),this.hostAttr=function vU(e){return"_nghost-%COMP%".replace(q8,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 yU=(()=>{var e;class t extends mv{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(y1))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),t})();const bv=["alt","control","meta","shift"],MU={"\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"},bU={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let wU=(()=>{var e;class t extends mv{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(()=>Un().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."),bv.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=MU[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"),bv.forEach(o=>{o!==a&&(0,bU[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(y1))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),t})();const SU=mg(XP,"browser",[{provide:D4,useValue:"browser"},{provide:xd,useValue:function HU(){j8.makeCurrent()},multi:!0},{provide:y1,useFactory:function DU(){return function pE(e){T0=e}(document),document},deps:[]}]),zU=new te(""),Vv=[{provide:_o,useClass:class uU{addToWindow(t){Ye.getAngularTestability=(n,r=!0)=>{const a=t.findTestabilityInTree(n,r);if(null==a)throw new F(5103,!1);return a},Ye.getAllAngularTestabilities=()=>t.getAllTestabilities(),Ye.getAllAngularRootElements=()=>t.getAllRootElements(),Ye.frameworkStabilizers||(Ye.frameworkStabilizers=[]),Ye.frameworkStabilizers.push(n=>{const r=Ye.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?Un().isShadowRoot(i)?this.findTestabilityInTree(t,i.host,!0):this.findTestabilityInTree(t,i.parentElement,!0):null)}},deps:[]},{provide:ug,useClass:u8,deps:[Me,f8,_o]},{provide:u8,useClass:u8,deps:[Me,f8,_o]}],Dv=[{provide:j0,useValue:"root"},{provide:h3,useFactory:function VU(){return new h3},deps:[]},{provide:G8,useClass:yU,multi:!0,deps:[y1,Me,D4]},{provide:G8,useClass:wU,multi:!0,deps:[y1]},Cv,gv,pv,{provide:il,useExisting:Cv},{provide:class kB{},useClass:fU,deps:[]},[]];let xU=(()=>{var e;class t{constructor(n){}static withServerTransition(n){return{ngModule:t,providers:[{provide:Us,useValue:n.appId}]}}}return(e=t).\u0275fac=function(n){return new(n||e)(q(zU,12))},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({providers:[...Dv,...Vv],imports:[NB,eF]}),t})(),Sv=(()=>{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(y1))},e.\u0275prov=$({token:e,factory:function(n){let r=null;return r=n?new n:function NU(){return new Sv(q(y1))}(),r},providedIn:"root"}),t})();typeof window<"u"&&window;let Lv=(()=>{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(Nv),r},providedIn:"root"}),t})(),Nv=(()=>{var e;class t extends Lv{constructor(n){super(),this._doc=n}sanitize(n,r){if(null==r)return null;switch(n){case ft.NONE:return r;case ft.HTML:return qt(r,"HTML")?Y2(r):vd(this._doc,String(r)).toString();case ft.STYLE:return qt(r,"Style")?Y2(r):r;case ft.SCRIPT:if(qt(r,"Script"))return Y2(r);throw new F(5200,!1);case ft.URL:return qt(r,"URL")?Y2(r):Os(String(r));case ft.RESOURCE_URL:if(qt(r,"ResourceURL"))return Y2(r);throw new F(5201,!1);default:throw new F(5202,!1)}}bypassSecurityTrustHtml(n){return function ME(e){return new mE(e)}(n)}bypassSecurityTrustStyle(n){return function bE(e){return new gE(e)}(n)}bypassSecurityTrustScript(n){return function wE(e){return new vE(e)}(n)}bypassSecurityTrustUrl(n){return function HE(e){return new _E(e)}(n)}bypassSecurityTrustResourceUrl(n){return function VE(e){return new CE(e)}(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(q(y1))},e.\u0275prov=$({token:e,factory:function(n){let r=null;return r=n?new n:function TU(e){return new Nv(e.get(y1))}(q(B1)),r},providedIn:"root"}),t})();function Ar(e){return(Ar="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 RU(e){var t=function OU(e,t){if("object"!==Ar(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==Ar(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ar(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:kU}=Array,{getPrototypeOf:PU,prototype:FU,keys:BU}=Object;function Ev(e){if(1===e.length){const t=e[0];if(kU(t))return{args:t,keys:null};if(function UU(e){return e&&"object"==typeof e&&PU(e)===FU}(t)){const i=BU(t);return{args:i.map(n=>t[n]),keys:i}}}return{args:e,keys:null}}const{isArray:jU}=Array;function Q8(e){return He(t=>function GU(e,t){return jU(t)?e(...t):e(t)}(e,t))}function Iv(e,t){return e.reduce((i,n,r)=>(i[n]=t[r],i),{})}let Tv=(()=>{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(Ne))},e.\u0275dir=j({type:e}),t})(),M3=(()=>{var e;class t extends Tv{}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=E1(e)))(r||e)}}(),e.\u0275dir=j({type:e,features:[re]}),t})();const gt=new te("NgValueAccessor"),WU={provide:gt,useExisting:ge(()=>v2),multi:!0};let v2=(()=>{var e;class t extends M3{writeValue(n){this.setProperty("checked",n)}}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=E1(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&&R("change",function(s){return r.onChange(s.target.checked)})("blur",function(){return r.onTouched()})},features:[Ze([WU]),re]}),t})();const qU={provide:gt,useExisting:ge(()=>$n),multi:!0},YU=new te("CompositionEventMode");let $n=(()=>{var e;class t extends Tv{constructor(n,r,a){super(n,r),this._compositionMode=a,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function KU(){const e=Un()?Un().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(Ne),w(YU,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&&R("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:[Ze([qU]),re]}),t})();const l2=new te("NgValidators"),qn=new te("NgAsyncValidators"),ZU=/^(?=.{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 Bv(e){return function Wn(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}(e.value)||ZU.test(e.value)?null:{email:!0}}function Ro(e){return null}function $v(e){return null!=e}function Wv(e){return hr(e)?Q1(e):e}function qv(e){let t={};return e.forEach(i=>{t=null!=i?{...t,...i}:t}),0===Object.keys(t).length?null:t}function Kv(e,t){return t.map(i=>i(e))}function Yv(e){return e.map(t=>function QU(e){return!e.validate}(t)?t:i=>t.validate(i))}function J8(e){return null!=e?function Zv(e){if(!e)return null;const t=e.filter($v);return 0==t.length?null:function(i){return qv(Kv(i,t))}}(Yv(e)):null}function X8(e){return null!=e?function Qv(e){if(!e)return null;const t=e.filter($v);return 0==t.length?null:function(i){return function $U(...e){const t=$a(e),{args:i,keys:n}=Ev(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?Iv(n,o):o),a.complete())}))}});return t?r.pipe(Q8(t)):r}(Kv(i,t).map(Wv)).pipe(He(qv))}}(Yv(e)):null}function Jv(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function e5(e){return e?Array.isArray(e)?e:[e]:[]}function ko(e,t){return Array.isArray(e)?e.includes(t):e===t}function t_(e,t){const i=e5(t);return e5(e).forEach(r=>{ko(i,r)||i.push(r)}),i}function n_(e,t){return e5(t).filter(i=>!ko(e,i))}class i_{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=J8(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=X8(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 x2 extends i_{get formDirective(){return null}get path(){return null}}class Kn extends i_{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class r_{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 S1=(()=>{var e;class t extends r_{constructor(n){super(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(w(Kn,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 Er="VALID",Fo="INVALID",X4="PENDING",Ir="DISABLED";function Bo(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class c_{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===Er}get invalid(){return this.status===Fo}get pending(){return this.status==X4}get disabled(){return this.status===Ir}get enabled(){return this.status!==Ir}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(t_(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(t_(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(n_(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(n_(t,this._rawAsyncValidators))}hasValidator(t){return ko(this._rawValidators,t)}hasAsyncValidator(t){return ko(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=X4,!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=Ir,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=Er,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===Er||this.status===X4)&&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()?Ir:Er}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=X4,this._hasOwnPendingAsyncValidator=!0;const i=Wv(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()?Ir:this.errors?Fo:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(X4)?X4:this._anyControlsHaveStatus(Fo)?Fo:Er}_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){Bo(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 nj(e){return Array.isArray(e)?J8(e):e||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function ij(e){return Array.isArray(e)?X8(e):e||null}(this._rawAsyncValidators)}}const ei=new te("CallSetDisabledState",{providedIn:"root",factory:()=>Uo}),Uo="always";function Tr(e,t,i=Uo){(function s5(e,t){const i=function Xv(e){return e._rawValidators}(e);null!==t.validator?e.setValidators(Jv(i,t.validator)):"function"==typeof i&&e.setValidators([i]);const n=function e_(e){return e._rawAsyncValidators}(e);null!==t.asyncValidator?e.setAsyncValidators(Jv(n,t.asyncValidator)):"function"==typeof n&&e.setAsyncValidators([n]);const r=()=>e.updateValueAndValidity();$o(t._rawValidators,r),$o(t._rawAsyncValidators,r)})(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||"always"===i)&&t.valueAccessor.setDisabledState?.(e.disabled),function sj(e,t){t.valueAccessor.registerOnChange(i=>{e._pendingValue=i,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&l_(e,t)})}(e,t),function cj(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 oj(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&l_(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function aj(e,t){if(t.valueAccessor.setDisabledState){const i=n=>{t.valueAccessor.setDisabledState(n)};e.registerOnDisabledChange(i),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(i)})}}(e,t)}function $o(e,t){e.forEach(i=>{i.registerOnValidatorChange&&i.registerOnValidatorChange(t)})}function l_(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function d_(e,t){const i=e.indexOf(t);i>-1&&e.splice(i,1)}function h_(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const p_=class extends c_{constructor(t=null,i,n){super(function i5(e){return(Bo(e)?e.validators:e)||null}(i),function r5(e,t){return(Bo(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}),Bo(i)&&(i.nonNullable||i.initialValueIsDefault)&&(this.defaultValue=h_(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){d_(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){d_(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){h_(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}},gj={provide:Kn,useExisting:ge(()=>M1)},v_=(()=>Promise.resolve())();let M1=(()=>{var e;class t extends Kn{constructor(n,r,a,s,o,c){super(),this._changeDetectorRef=o,this.callSetDisabledState=c,this.control=new p_,this._registered=!1,this.name="",this.update=new ee,this._parent=n,this._setValidators(r),this._setAsyncValidators(a),this.valueAccessor=function l5(e,t){if(!t)return null;let i,n,r;return Array.isArray(t),t.forEach(a=>{a.constructor===$n?i=a:function fj(e){return Object.getPrototypeOf(e.constructor)===M3}(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 c5(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(){Tr(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){v_.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){const r=n.isDisabled.currentValue,a=0!==r&&Q4(r);v_.then(()=>{a&&!this.control.disabled?this.control.disable():!a&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?function jo(e,t){return[...t.path,e]}(n,this._parent):[n]}}return(e=t).\u0275fac=function(n){return new(n||e)(w(x2,9),w(l2,10),w(qn,10),w(gt,10),w(J2,8),w(ei,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:[Ze([gj]),re,v1]}),t})();const _j={provide:gt,useExisting:ge(()=>ti),multi:!0};let ti=(()=>{var e;class t extends M3{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=E1(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&&R("input",function(s){return r.onChange(s.target.value)})("blur",function(){return r.onTouched()})},features:[Ze([_j]),re]}),t})(),__=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({}),t})();const Sj={provide:gt,useExisting:ge(()=>yn),multi:!0};function V_(e,t){return null==e?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let yn=(()=>{var e;class t extends M3{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=V_(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 zj(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=E1(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&&R("change",function(s){return r.onChange(s.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[Ze([Sj]),re]}),t})(),b3=(()=>{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(V_(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(Ne),w(c2),w(yn,9))},e.\u0275dir=j({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const xj={provide:gt,useExisting:ge(()=>p5),multi:!0};function D_(e,t){return null==e?`${t}`:("string"==typeof t&&(t=`'${t}'`),t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let p5=(()=>{var e;class t extends M3{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 Lj(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=E1(e)))(r||e)}}(),e.\u0275dir=j({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(n,r){1&n&&R("change",function(s){return r.onChange(s.target)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[Ze([xj]),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(this))}set ngValue(n){null!=this._select&&(this._value=n,this._setElementValue(D_(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(D_(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(Ne),w(c2),w(p5,9))},e.\u0275dir=j({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})(),H3=(()=>{var e;class t{constructor(){this._validator=Ro}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):Ro,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 Tj={provide:l2,useExisting:ge(()=>g5),multi:!0};let g5=(()=>{var e;class t extends H3{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=Q4,this.createValidator=n=>Bv}enabled(n){return n}}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=E1(e)))(r||e)}}(),e.\u0275dir=j({type:e,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[Ze([Tj]),re]}),t})(),Pj=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({imports:[__]}),t})(),Bj=(()=>{var e;class t{static withConfig(n){return{ngModule:t,providers:[{provide:ei,useValue:n.callSetDisabledState??Uo}]}}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({imports:[Pj]}),t})();const Uj=["addListener","removeListener"],jj=["addEventListener","removeEventListener"],Gj=["on","off"];function e2(e,t,i,n){if(Q(i)&&(n=i,i=void 0),n)return e2(e,t,i).pipe(Q8(n));const[r,a]=function qj(e){return Q(e.addEventListener)&&Q(e.removeEventListener)}(e)?jj.map(s=>o=>e[s](t,o,i)):function $j(e){return Q(e.addListener)&&Q(e.removeListener)}(e)?Uj.map(T_(e,t)):function Wj(e){return Q(e.on)&&Q(e.off)}(e)?Gj.map(T_(e,t)):[];if(!r&&D6(e))return F1(s=>e2(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 T_(e,t){return i=>n=>e[i](t,n)}class Kj extends De{constructor(t,i){super()}schedule(t,i=0){return this}}const qo={setInterval(e,t,...i){const{delegate:n}=qo;return n?.setInterval?n.setInterval(e,t,...i):setInterval(e,t,...i)},clearInterval(e){const{delegate:t}=qo;return(t?.clearInterval||clearInterval)(e)},delegate:void 0},O_={now:()=>(O_.delegate||Date).now(),delegate:void 0};class Rr{constructor(t,i=Rr.now){this.schedulerActionCtor=t,this.now=i}schedule(t,i=0,n){return new this.schedulerActionCtor(this,t).schedule(n,i)}}Rr.now=O_.now;const R_=new class Zj extends Rr{constructor(t,i=Rr.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 Yj extends Kj{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 qo.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&&qo.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,Je(n,this),null!=t&&(this.id=this.recycleAsyncId(i,t,null)),this.delay=null,super.unsubscribe()}}}),Qj=R_;function k_(e=0,t,i=Qj){let n=-1;return null!=t&&(nf(t)?i=t:n=t),new We(r=>{let a=function Jj(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:Xj}=Array;function P_(e){return 1===e.length&&Xj(e[0])?e[0]:e}function F_(...e){return 1===(e=P_(e)).length?j1(e[0]):new We(function eG(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 v5(...e){const t=$a(e),i=P_(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 kr(...e){return function tG(){return J3(1)}()(Q1(e,xi(e)))}function R1(e){return f1((t,i)=>{j1(e).subscribe(qe(i,()=>i.complete(),Z1)),!i.closed&&t.subscribe(i)})}function z1(e,t){return f1((i,n)=>{let r=0;i.subscribe(qe(n,a=>e.call(t,a,r++)&&n.next(a)))})}function t2(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 _5(...e){const t=$a(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 B_(e){return He(()=>e)}function U_(e,t){return t?i=>kr(t.pipe(t2(1),function iG(){return f1((e,t)=>{e.subscribe(qe(t,Z1))})}()),i.pipe(U_(e))):F1((i,n)=>j1(e(i,n)).pipe(t2(1),B_(i)))}function j_(e,t=R_){const i=k_(e,t);return U_(()=>i)}var aG={left:"right",right:"left",bottom:"top",top:"bottom"};function Ko(e){return e.replace(/left|right|bottom|top/g,function(t){return aG[t]})}function en(e){return e.split("-")[0]}var sG={start:"end",end:"start"};function $_(e){return e.replace(/start|end/g,function(t){return sG[t]})}var et="top",Nt="bottom",At="right",tt="left",C5="auto",Pr=[et,Nt,At,tt],ni="start",Fr="end",W_="viewport",Br="popper",q_=Pr.reduce(function(e,t){return e.concat([t+"-"+ni,t+"-"+Fr])},[]),K_=[].concat(Pr,[C5]).reduce(function(e,t){return e.concat([t,t+"-"+ni,t+"-"+Fr])},[]),_G=["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 V3(e){return e instanceof nt(e).Element||e instanceof Element}function vt(e){return e instanceof nt(e).HTMLElement||e instanceof HTMLElement}function y5(e){return!(typeof ShadowRoot>"u")&&(e instanceof nt(e).ShadowRoot||e instanceof ShadowRoot)}function Yn(e){return((V3(e)?e.ownerDocument:e.document)||window.document).documentElement}var D3=Math.max,Yo=Math.min,ii=Math.round;function M5(){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 Y_(){return!/^((?!chrome|android).)*safari/i.test(M5())}function ri(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var n=e.getBoundingClientRect(),r=1,a=1;t&&vt(e)&&(r=e.offsetWidth>0&&ii(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ii(n.height)/e.offsetHeight||1);var o=(V3(e)?nt(e):window).visualViewport,c=!Y_()&&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 b5(e){var t=nt(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function w5(e){return ri(Yn(e)).left+b5(e).scrollLeft}function Mn(e){return nt(e).getComputedStyle(e)}function tn(e){return e?(e.nodeName||"").toLowerCase():null}function Zo(e){return"html"===tn(e)?e:e.assignedSlot||e.parentNode||(y5(e)?e.host:null)||Yn(e)}function H5(e){var t=Mn(e);return/auto|scroll|overlay|hidden/.test(t.overflow+t.overflowY+t.overflowX)}function Z_(e){return["html","body","#document"].indexOf(tn(e))>=0?e.ownerDocument.body:vt(e)&&H5(e)?e:Z_(Zo(e))}function Ur(e,t){var i;void 0===t&&(t=[]);var n=Z_(e),r=n===(null==(i=e.ownerDocument)?void 0:i.body),a=nt(n),s=r?[a].concat(a.visualViewport||[],H5(n)?n:[]):n,o=t.concat(s);return r?o:o.concat(Ur(Zo(s)))}function MG(e){return["table","td","th"].indexOf(tn(e))>=0}function Q_(e){return vt(e)&&"fixed"!==Mn(e).position?e.offsetParent:null}function jr(e){for(var t=nt(e),i=Q_(e);i&&MG(i)&&"static"===Mn(i).position;)i=Q_(i);return i&&("html"===tn(i)||"body"===tn(i)&&"static"===Mn(i).position)?t:i||function bG(e){var t=/firefox/i.test(M5());if(/Trident/i.test(M5())&&vt(e)&&"fixed"===Mn(e).position)return null;var r=Zo(e);for(y5(r)&&(r=r.host);vt(r)&&["html","body"].indexOf(tn(r))<0;){var a=Mn(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 J_(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&y5(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function V5(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function X_(e,t,i){return t===W_?V5(function CG(e,t){var i=nt(e),n=Yn(e),r=i.visualViewport,a=n.clientWidth,s=n.clientHeight,o=0,c=0;if(r){a=r.width,s=r.height;var l=Y_();(l||!l&&"fixed"===t)&&(o=r.offsetLeft,c=r.offsetTop)}return{width:a,height:s,x:o+w5(e),y:c}}(e,i)):V3(t)?function wG(e,t){var i=ri(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):V5(function yG(e){var t,i=Yn(e),n=b5(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+w5(e),c=-n.scrollTop;return"rtl"===Mn(r||i).direction&&(o+=D3(i.clientWidth,r?r.clientWidth:0)-a),{width:a,height:s,x:o,y:c}}(Yn(e)))}function ai(e){return e.split("-")[1]}function D5(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function eC(e){var c,t=e.reference,i=e.element,n=e.placement,r=n?en(n):null,a=n?ai(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 Nt:c={x:s,y:t.y+t.height};break;case At: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?D5(r):null;if(null!=l){var u="y"===l?"height":"width";switch(a){case ni:c[l]=c[l]-(t[u]/2-i[u]/2);break;case Fr:c[l]=c[l]+(t[u]/2-i[u]/2)}}return c}function nC(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function iC(e,t){return t.reduce(function(i,n){return i[n]=e,i},{})}function S5(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?W_:l,d=t.elementContext,p=void 0===d?Br:d,m=t.altBoundary,H=void 0!==m&&m,D=t.padding,x=void 0===D?0:D,E=nC("number"!=typeof x?x:iC(x,Pr)),B=e.rects.popper,U=e.elements[H?p===Br?"reference":Br:p],G=function VG(e,t,i,n){var r="clippingParents"===t?function HG(e){var t=Ur(Zo(e)),n=["absolute","fixed"].indexOf(Mn(e).position)>=0&&vt(e)?jr(e):e;return V3(n)?t.filter(function(r){return V3(r)&&J_(r,n)&&"body"!==tn(r)}):[]}(e):[].concat(t),a=[].concat(r,[i]),o=a.reduce(function(c,l){var u=X_(e,l,n);return c.top=D3(u.top,c.top),c.right=Yo(u.right,c.right),c.bottom=Yo(u.bottom,c.bottom),c.left=D3(u.left,c.left),c},X_(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}(V3(U)?U:U.contextElement||Yn(e.elements.popper),c,u,s),ie=ri(e.elements.reference),ve=eC({reference:ie,element:B,strategy:"absolute",placement:r}),we=V5(Object.assign({},B,ve)),ke=p===Br?we:ie,b1={top:G.top-ke.top+E.top,bottom:ke.bottom-G.bottom+E.bottom,left:G.left-ke.left+E.left,right:ke.right-G.right+E.right},n2=e.modifiersData.offset;if(p===Br&&n2){var Ot=n2[r];Object.keys(b1).forEach(function(N2){var j3=[At,Nt].indexOf(N2)>=0?1:-1,G3=[et,Nt].indexOf(N2)>=0?"y":"x";b1[N2]+=Ot[G3]*j3})}return b1}const xG={name:"flip",enabled:!0,phase:"main",fn:function zG(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,D=i.allowedAutoPlacements,x=t.options.placement,E=en(x),B=c||(E!==x&&H?function SG(e){if(en(e)===C5)return[];var t=Ko(e);return[$_(e),t,$_(t)]}(x):[Ko(x)]),U=[x].concat(B).reduce(function(wi,n3){return wi.concat(en(n3)===C5?function DG(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?K_:c,u=ai(t.placement),d=u?o?q_:q_.filter(function(H){return ai(H)===u}):Pr,p=d.filter(function(H){return l.indexOf(H)>=0});0===p.length&&(p=d);var m=p.reduce(function(H,D){return H[D]=S5(e,{placement:D,boundary:r,rootBoundary:a,padding:s})[en(D)],H},{});return Object.keys(m).sort(function(H,D){return m[H]-m[D]})}(t,{placement:n3,boundary:u,rootBoundary:d,padding:l,flipVariations:H,allowedAutoPlacements:D}):n3)},[]),G=t.rects.reference,ie=t.rects.popper,ve=new Map,we=!0,ke=U[0],b1=0;b1<U.length;b1++){var n2=U[b1],Ot=en(n2),N2=ai(n2)===ni,j3=[et,Nt].indexOf(Ot)>=0,G3=j3?"width":"height",rt=S5(t,{placement:n2,boundary:u,rootBoundary:d,altBoundary:p,padding:l}),Rt=j3?N2?At:tt:N2?Nt:et;G[G3]>ie[G3]&&(Rt=Ko(Rt));var h6=Ko(Rt),$3=[];if(a&&$3.push(rt[Ot]<=0),o&&$3.push(rt[Rt]<=0,rt[h6]<=0),$3.every(function(wi){return wi})){ke=n2,we=!1;break}ve.set(n2,$3)}if(we)for(var Bu=function(n3){var Ta=U.find(function(g6){var W3=ve.get(g6);if(W3)return W3.slice(0,n3).every(function(Uu){return Uu})});if(Ta)return ke=Ta,"break"},Ia=H?3:1;Ia>0&&"break"!==Bu(Ia);Ia--);t.placement!==ke&&(t.modifiersData[n]._skip=!0,t.placement=ke,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Gr(e,t,i){return D3(e,Yo(t,i))}function z5(e){var t=ri(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 EG={name:"preventOverflow",enabled:!0,phase:"main",fn:function AG(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,D=void 0===H?0:H,x=S5(t,{boundary:i.boundary,rootBoundary:i.rootBoundary,padding:i.padding,altBoundary:i.altBoundary}),E=en(t.placement),z=ai(t.placement),B=!z,U=D5(E),G=function LG(e){return"x"===e?"y":"x"}(U),ie=t.modifiersData.popperOffsets,ve=t.rects.reference,we=t.rects.popper,ke="function"==typeof D?D(Object.assign({},t.rects,{placement:t.placement})):D,b1="number"==typeof ke?{mainAxis:ke,altAxis:ke}:Object.assign({mainAxis:0,altAxis:0},ke),n2=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Ot={x:0,y:0};if(ie){if(a){var N2,j3="y"===U?et:tt,G3="y"===U?Nt:At,rt="y"===U?"height":"width",Rt=ie[U],h6=Rt+x[j3],$3=Rt-x[G3],p6=m?-we[rt]/2:0,Bu=z===ni?ve[rt]:we[rt],Ia=z===ni?-we[rt]:-ve[rt],m6=t.elements.arrow,wi=m&&m6?z5(m6):{width:0,height:0},n3=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Ta=n3[j3],g6=n3[G3],W3=Gr(0,ve[rt],wi[rt]),Uu=B?ve[rt]/2-p6-W3-Ta-b1.mainAxis:Bu-W3-Ta-b1.mainAxis,Uve=B?-ve[rt]/2+p6+W3+g6+b1.mainAxis:Ia+W3+g6+b1.mainAxis,ju=t.elements.arrow&&jr(t.elements.arrow),jve=ju?"y"===U?ju.clientTop||0:ju.clientLeft||0:0,Jx=null!=(N2=n2?.[U])?N2:0,$ve=Rt+Uve-Jx,Xx=Gr(m?Yo(h6,Rt+Uu-Jx-jve):h6,Rt,m?D3($3,$ve):$3);ie[U]=Xx,Ot[U]=Xx-Rt}if(o){var eL,q3=ie[G],v6="y"===G?"height":"width",tL=q3+x["x"===U?et:tt],nL=q3-x["x"===U?Nt:At],Gu=-1!==[et,tt].indexOf(E),iL=null!=(eL=n2?.[G])?eL:0,rL=Gu?tL:q3-ve[v6]-we[v6]-iL+b1.altAxis,aL=Gu?q3+ve[v6]+we[v6]-iL-b1.altAxis:nL,sL=m&&Gu?function NG(e,t,i){var n=Gr(e,t,i);return n>i?i:n}(rL,q3,aL):Gr(m?rL:tL,q3,m?aL:nL);ie[G]=sL,Ot[G]=sL-q3}t.modifiersData[n]=Ot}},requiresIfExists:["offset"]},RG={name:"arrow",enabled:!0,phase:"main",fn:function TG(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=D5(o),u=[tt,At].indexOf(o)>=0?"height":"width";if(a&&s){var d=function(t,i){return nC("number"!=typeof(t="function"==typeof t?t(Object.assign({},i.rects,{placement:i.placement})):t)?t:iC(t,Pr))}(r.padding,i),p=z5(a),m="y"===c?et:tt,H="y"===c?Nt:At,D=i.rects.reference[u]+i.rects.reference[c]-s[c]-i.rects.popper[u],x=s[c]-i.rects.reference[c],E=jr(a),z=E?"y"===c?E.clientHeight||0:E.clientWidth||0:0,ie=z/2-p[u]/2+(D/2-x/2),ve=Gr(d[m],ie,z-p[u]-d[H]);i.modifiersData[n]=((t={})[c]=ve,t.centerOffset=ve-ie,t)}},effect:function OG(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))||J_(t.elements.popper,r)&&(t.elements.arrow=r))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function BG(e,t,i){void 0===i&&(i=!1);var n=vt(t),r=vt(t)&&function FG(e){var t=e.getBoundingClientRect(),i=ii(t.width)/e.offsetWidth||1,n=ii(t.height)/e.offsetHeight||1;return 1!==i||1!==n}(t),a=Yn(t),s=ri(e,r,i),o={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!i)&&(("body"!==tn(t)||H5(a))&&(o=function PG(e){return e!==nt(e)&&vt(e)?function kG(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(e):b5(e)}(t)),vt(t)?((c=ri(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=w5(a))),{x:s.left+o.scrollLeft-c.x,y:s.top+o.scrollTop-c.y,width:s.width,height:s.height}}function UG(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 GG(e){var t;return function(){return t||(t=new Promise(function(i){Promise.resolve().then(function(){t=void 0,i(e())})})),t}}var rC={placement:"bottom",modifiers:[],strategy:"absolute"};function aC(){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 WG(e){void 0===e&&(e={});var i=e.defaultModifiers,n=void 0===i?[]:i,r=e.defaultOptions,a=void 0===r?rC:r;return function(o,c,l){void 0===l&&(l=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},rC,a),modifiersData:{},elements:{reference:o,popper:c},attributes:{},styles:{}},d=[],p=!1,m={state:u,setOptions:function(E){var z="function"==typeof E?E(u.options):E;D(),u.options=Object.assign({},a,u.options,z),u.scrollParents={reference:V3(o)?Ur(o):o.contextElement?Ur(o.contextElement):[],popper:Ur(c)};var B=function jG(e){var t=UG(e);return _G.reduce(function(i,n){return i.concat(t.filter(function(r){return r.phase===n}))},[])}(function $G(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(x){var z=x.options,U=x.effect;if("function"==typeof U){var G=U({state:u,name:x.name,instance:m,options:void 0===z?{}:z});d.push(G||function(){})}})}(),m.update()},forceUpdate:function(){if(!p){var E=u.elements,z=E.reference,B=E.popper;if(aC(z,B)){u.rects={reference:BG(z,jr(B),"fixed"===u.options.strategy),popper:z5(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:GG(function(){return new Promise(function(x){m.forceUpdate(),x(u)})}),destroy:function(){D(),p=!0}};if(!aC(o,c))return m;function D(){d.forEach(function(x){return x()}),d=[]}return m.setOptions(l).then(function(x){!p&&l.onFirstUpdate&&l.onFirstUpdate(x)}),m}}var Qo={passive:!0},QG={top:"auto",right:"auto",bottom:"auto",left:"auto"};function sC(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,D=void 0===H?0:H,x="function"==typeof u?u({x:m,y:D}):{x:m,y:D};m=x.x,D=x.y;var E=s.hasOwnProperty("x"),z=s.hasOwnProperty("y"),B=tt,U=et,G=window;if(l){var ie=jr(i),ve="clientHeight",we="clientWidth";ie===nt(i)&&"static"!==Mn(ie=Yn(i)).position&&"absolute"===o&&(ve="scrollHeight",we="scrollWidth"),(r===et||(r===tt||r===At)&&a===Fr)&&(U=Nt,D-=(d&&ie===G&&G.visualViewport?G.visualViewport.height:ie[ve])-n.height,D*=c?1:-1),r!==tt&&(r!==et&&r!==Nt||a!==Fr)||(B=At,m-=(d&&ie===G&&G.visualViewport?G.visualViewport.width:ie[we])-n.width,m*=c?1:-1)}var N2,n2=Object.assign({position:o},l&&QG),Ot=!0===u?function JG(e,t){var n=e.y,r=t.devicePixelRatio||1;return{x:ii(e.x*r)/r||0,y:ii(n*r)/r||0}}({x:m,y:D},nt(i)):{x:m,y:D};return m=Ot.x,D=Ot.y,Object.assign({},n2,c?((N2={})[U]=z?"0":"",N2[B]=E?"0":"",N2.transform=(G.devicePixelRatio||1)<=1?"translate("+m+"px, "+D+"px)":"translate3d("+m+"px, "+D+"px, 0)",N2):((t={})[U]=z?D+"px":"",t[B]=E?m+"px":"",t.transform="",t))}var r$=WG({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function qG(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,Qo)}),o&&c.addEventListener("resize",i.update,Qo),function(){a&&l.forEach(function(u){u.removeEventListener("scroll",i.update,Qo)}),o&&c.removeEventListener("resize",i.update,Qo)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function YG(e){var t=e.state;t.modifiersData[e.name]=eC({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function XG(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:ai(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,sC(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,sC(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 t$(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];!vt(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 n$(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},{});!vt(r)||!tn(r)||(Object.assign(r.style,o),Object.keys(a).forEach(function(c){r.removeAttribute(c)}))})}},requires:["computeStyles"]}]});const o$={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function s$(e){var t=e.state,n=e.name,r=e.options.offset,a=void 0===r?[0,0]:r,s=K_.reduce(function(u,d){return u[d]=function a$(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,At].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 c$(e,t){}function l$(e,t){if(1&e&&(g(0,"button",3),M(1),O(2,c$,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 u$(e,t){}function f$(e,t){}function d$(e,t){if(1&e){const i=I1();g(0,"div",8),R("ngbRef",function(r){return Y(i),Z(I().$implicit.panelDiv=r)}),g(1,"div",9),O(2,f$,0,0,"ng-template",4),_()()}if(2&e){const i=I().$implicit;Al("id",i.id),W("aria-labelledby",i.id+"-header"),C(2),b("ngTemplateOutlet",(null==i.contentTpl?null:i.contentTpl.templateRef)||null)}}const h$=function(e,t){return{$implicit:e,opened:t}};function p$(e,t){if(1&e&&(g(0,"div")(1,"div",5),O(2,u$,0,0,"ng-template",6),_(),O(3,d$,3,3,"div",7),_()),2&e){const i=t.$implicit,n=I(),r=k2(1);gn("accordion-item "+(i.cardClass||"")),C(1),gn("accordion-header "+(i.type?"bg-"+i.type:n.type?"bg-"+n.type:"")),G4("id","",i.id,"-header"),C(1),b("ngTemplateOutlet",(null==i.headerTpl?null:i.headerTpl.templateRef)||r)("ngTemplateOutletContext",br(8,h$,i,i.isOpen)),C(1),b("ngIf",!n.destroyOnHide||i.isOpen||i.transitionRunning)}}function m$(e,t){if(1&e){const i=I1();g(0,"button",1),R("click",function(){return Y(i),Z(I().close())}),_()}}const Jo=["*"],$$=["dialog"];function MW(e,t){1&e&&M(0),2&e&&ht(I(2).title)}function bW(e,t){}function wW(e,t){if(1&e&&(g(0,"h3",3),O(1,MW,1,1,"ng-template",null,4,S2),O(3,bW,0,0,"ng-template",5),_()),2&e){const i=k2(2),n=I();C(3),b("ngTemplateOutlet",n.isTitleTemplate()?n.title:i)("ngTemplateOutletContext",n.context)}}function bn(e){return"string"==typeof e}function S3(e){return null!=e}function si(e){return(e||document.body).getBoundingClientRect()}const dC={animation:!0,transitionTimerDelayMs:5},kW=()=>{},{transitionTimerDelayMs:PW}=dC,$r=new Map,L2=(e,t,i,n)=>{let r=n.context||{};const a=$r.get(t);if(a)switch(n.runningTransition){case"continue":return ot;case"stop":e.run(()=>a.transition$.complete()),r=Object.assign(a.context,r),$r.delete(t)}const s=i(t,n.animation,r)||kW;if(!n.animation||"none"===window.getComputedStyle(t).transitionProperty)return e.run(()=>s()),ae(void 0).pipe(function OW(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 nG(...e){return t=>kr(t,ae(...e))}(!0));$r.set(t,{transition$:o,complete:()=>{c.next(),c.complete()},context:r});const u=function RW(e){const{transitionDelay:t,transitionDuration:i}=window.getComputedStyle(e);return 1e3*(parseFloat(t)+parseFloat(i))}(t);return e.runOutsideAngular(()=>{const d=e2(t,"transitionend").pipe(R1(l),z1(({target:m})=>m===t));F_(k_(u+PW).pipe(R1(l)),d,c).pipe(R1(l)).subscribe(()=>{$r.delete(t),e.run(()=>{s(),o.next(),o.complete()})})}),o.asObservable()},L5=(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 FW(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"),si(e),s.add("collapsing")),e.style[a]="show"===n?r:"0px",()=>{o(),s.remove("collapsing"),e.style[a]=""};o()};let z3=(()=>{var e;class t{constructor(){this.animation=dC.animation}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),hC=(()=>{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(z3))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),BW=0,Xo=(()=>{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})(),N5=(()=>{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})(),A5=(()=>{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})(),ec=(()=>{var e;class t{constructor(){this.disabled=!1,this.id="ngb-panel-"+BW++,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,N5,4),C1(a,Xo,4),C1(a,A5,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})(),UW=(()=>{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(Ne))},e.\u0275dir=j({type:e,selectors:[["","ngbRef",""]],outputs:{ngbRef:"ngbRef"},standalone:!0}),t})(),E5=(()=>{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(ge(()=>I5)),w(ec,9))},e.\u0275dir=j({type:e,selectors:[["button","ngbPanelToggle",""]],hostAttrs:["type","button"],hostVars:5,hostBindings:function(n,r){1&n&&R("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})(),I5=(()=>{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(){bn(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(t2(1)).subscribe(()=>{this.panels.forEach(n=>{const r=n.panelDiv;r?n.initClassDone||(n.initClassDone=!0,L2(this._ngZone,r,L5,{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&&L2(this._ngZone,r.panelDiv,L5,{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(hC),w(Me),w(J2))},e.\u0275cmp=oe({type:e,selectors:[["ngb-accordion"]],contentQueries:function(n,r,a){if(1&n&&C1(a,ec,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:[D2],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&&(O(0,l$,3,3,"ng-template",0,1,S2),O(2,p$,4,11,"ng-template",2)),2&n&&(C(2),b("ngForOf",r.panels))},dependencies:[Xt,y3,E5,UW,Xo,O1],encapsulation:2}),t})(),vC=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({}),t})();const KW=({classList:e})=>{e.remove("show")};let YW=(()=>{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(z3))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),_C=(()=>{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=L2(this._zone,this._element.nativeElement,KW,{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(YW),w(c2),w(Ne),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,D2],ngContentSelectors:Jo,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&&(U4(),j4(0),O(1,m$,1,0,"button",0)),2&n&&(C(1),b("ngIf",r.dismissible))},dependencies:[O1],styles:["ngb-alert{display:block}\n"],encapsulation:2,changeDetection:0}),t})(),CC=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({}),t})(),bC=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({}),t})(),wC=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({}),t})();var Qe=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}(Qe||{});const sc=(e,t)=>!!t&&t.some(i=>i.contains(e)),zC=(e,t)=>!t||null!=function TW(e,t){return!t||typeof e.closest>"u"?null:e.closest(t)}(e,t),gq=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 oc(e,t,i,n,r,a,s,o){i&&e.runOutsideAngular((e=>gq?()=>setTimeout(()=>e(),100):e)(()=>{const l=e2(t,"keydown").pipe(R1(r),z1(p=>p.which===Qe.Escape),q1(p=>p.preventDefault())),u=e2(t,"mousedown").pipe(He(p=>{const m=p.target;return 2!==p.button&&!sc(m,s)&&("inside"===i?sc(m,a)&&zC(m,o):"outside"===i?!sc(m,a):zC(m,o)||!sc(m,a))}),R1(r)),d=e2(t,"mouseup").pipe(_5(u),z1(([p,m])=>m),j_(0),R1(r));F_([l.pipe(He(p=>0)),d.pipe(He(p=>1))]).subscribe(p=>e.run(()=>n(p)))}))}const xC=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function LC(e){const t=Array.from(e.querySelectorAll(xC)).filter(i=>-1!==i.tabIndex);return[t[0],t[t.length-1]]}let _q=(()=>{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(y1))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const Cq=/\s+/,yq=/ +/gi,Mq={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"]},wq=/^left/,Hq=/^right/,Vq=/^start/,Dq=/^end/;function AC({placement:e,baseClass:t},i){let n=Array.isArray(e)?e:e.split(Cq),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 bq(e,t){const[i,n]=Mq[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 Sq(e,t){let[i,n]=t.split("-");const r=i.replace(wq,"start").replace(Hq,"end");let a=[r];if(n){let s=n;("left"===i||"right"===i)&&(s=s.replace(Vq,"top").replace(Dq,"bottom")),a.push(`${r}-${s}`)}return e&&(a=a.map(s=>`${e}-${s}`)),a.join(" ")}(t,p)}`,m=m.trim().replace(yq," "),d.className=m}},xG,EG,RG,{enabled:!0,name:"flip",options:{fallbackPlacements:s}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function EC(e){return e}function cc(){const e=J(_q);let t=null;return{createPopper(i){if(!t){let r=(i.updatePopperOptions||EC)(AC(i,e));t=r$(i.hostElement,i.targetElement,r)}},update(){t&&t.update()},setOptions(i){if(t){let r=(i.updatePopperOptions||EC)(AC(i,e));t.setOptions(r)}},destroy(){t&&(t.destroy(),t=null)}}}new Date(1882,10,12),new Date(2174,10,25);let BC=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({}),t})(),GC=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({}),t})();class E3{constructor(t,i,n){this.nodes=t,this.viewRef=i,this.componentRef=n}}class $C{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(t2(1),F1(()=>L2(this._ngZone,r,({classList:s})=>s.add("show"),{animation:n,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:a}}close(t=!1){return this._windowRef?L2(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 E3([n.rootNodes],n)}return new E3([[this._renderer.createText(`${t}`)]])}return new E3([])}}let Fq=(()=>{var e;class t{constructor(n,r){this._el=n,this._zone=r}ngOnInit(){this._zone.onStable.asObservable().pipe(t2(1)).subscribe(()=>{L2(this._zone,this._el.nativeElement,(n,r)=>{r&&si(n),n.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return L2(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(Ne),w(Me))},e.\u0275cmp=oe({type:e,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(n,r){2&n&&(gn("modal-backdrop"+(r.backdropClass?" "+r.backdropClass:"")),ze("show",!r.animation)("fade",r.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},standalone:!0,features:[D2],decls:0,vars:0,template:function(n,r){},encapsulation:2}),t})();class WC{update(t){}close(t){}dismiss(t){}}const Bq=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],Uq=["animation","backdropClass"];class jq{_applyWindowOptions(t,i){Bq.forEach(n=>{S3(i[n])&&(t[n]=i[n])})}_applyBackdropOptions(t,i){Uq.forEach(n=>{S3(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(R1(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(R1(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 cC(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}}),v5(t,i).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var Yr=function(e){return e[e.BACKDROP_CLICK=0]="BACKDROP_CLICK",e[e.ESC=1]="ESC",e}(Yr||{});let Gq=(()=>{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":bn(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(n){this.dismissEvent.emit(n)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(t2(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:n}=this._elRef,r={animation:this.animation,runningTransition:"stop"},o=v5(L2(this._zone,n,()=>n.classList.remove("show"),r),L2(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"};v5(L2(this._zone,this._elRef.nativeElement,(s,o)=>{o&&si(s),s.classList.add("show")},n),L2(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(()=>{e2(n,"keydown").pipe(R1(this._closed$),z1(a=>a.which===Qe.Escape)).subscribe(a=>{this.keyboard?requestAnimationFrame(()=>{a.defaultPrevented||this._zone.run(()=>this.dismiss(Yr.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let r=!1;e2(this._dialogEl.nativeElement,"mousedown").pipe(R1(this._closed$),q1(()=>r=!1),Mt(()=>e2(n,"mouseup").pipe(R1(this._closed$),t2(1))),z1(({target:a})=>n===a)).subscribe(()=>{r=!0}),e2(n,"click").pipe(R1(this._closed$)).subscribe(({target:a})=>{n===a&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!r&&this._zone.run(()=>this.dismiss(Yr.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=LC(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&&L2(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(y1),w(Ne),w(Me))},e.\u0275cmp=oe({type:e,selectors:[["ngb-modal-window"]],viewQuery:function(n,r){if(1&n&&function _3(e,t,i){const n=Le();n.firstCreatePass&&(Fm(n,new Rm(e,t,i),-1),2==(2&t)&&(n.staticViewQueries=!0)),Pm(n,k(),t)}($$,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),gn("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:[D2],ngContentSelectors:Jo,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(n,r){1&n&&(U4(),g(0,"div",0,1)(2,"div",2),j4(3),_()()),2&n&&gn("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})(),$q=(()=>{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(y1))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),Wq=(()=>{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=e2(t,"focusin").pipe(R1(i),He(a=>a.target));e2(t,"keydown").pipe(R1(i),z1(a=>a.which===Qe.Tab),_5(r)).subscribe(([a,s])=>{const[o,c]=LC(t);(s===o||s===t)&&a.shiftKey&&(c.focus(),a.preventDefault()),s===c&&!a.shiftKey&&(o.focus(),a.preventDefault())}),n&&e2(t,"click").pipe(R1(i),_5(r),He(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:S3(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 WC,l=(n=a.injector||n).get(R2,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 jq(p,u,d,a.beforeDismiss);return this._registerModalRef(m),this._registerWindowCmpt(p),m.hidden.pipe(t2(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=M8(Fq,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(r.hostView),n.appendChild(r.location.nativeElement),r}_attachWindowComponent(n,r){let a=M8(Gq,{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):bn(a)?this._createFromString(a):this._createFromComponent(n,r,a,s,o):new E3([])}_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 E3([s.rootNodes],s)}_createFromString(n){const r=this._document.createTextNode(`${n}`);return new E3([[r]])}_createFromComponent(n,r,a,s,o){const l=M8(a,{environmentInjector:r,elementInjector:B1.create({providers:[{provide:WC,useValue:s}],parent:n})}),u=l.location.nativeElement;return o.scrollable&&u.classList.add("component-host-scrollable"),this._applicationRef.attachView(l.hostView),new E3([[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(R2),q(y1),q($q),q(il),q(Me))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),qq=(()=>{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(z3))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),qC=(()=>{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(Wq),q(qq))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),KC=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({providers:[qC]}),t})(),QC=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({}),t})(),ay=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({}),t})();class nK{constructor(t,i){this.open=t,this.close=i,i||(this.close=t)}isManual(){return"manual"===this.open||"manual"===this.close}}const iK={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},sy=e=>e>0?j_(e):t=>t;function oy(e,t,i,n,r,a,s=0,o=0){const c=function rK(e,t=iK){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 nK(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 aK(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 sK(e,t,i){return n=>{let r=null;const a=n.pipe(He(c=>({open:c})),z1(c=>{const l=i();return l===c.open||r&&r.open!==l?(r&&r.open!==c.open&&(r=null),!1):(r=c,!0)}),x6());return z6(a.pipe(z1(c=>c.open),sy(e)),a.pipe(z1(c=>!c.open),sy(t))).pipe(z1(c=>c===r&&(r=null,c.open!==i())),He(c=>c.open))}}(s,o,n)).subscribe(u=>u?r():a());return()=>l.unsubscribe()}let oK=(()=>{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(z3))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),cK=0,lK=(()=>{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),gn("popover"+(r.popoverClass?" "+r.popoverClass:"")),ze("fade",r.animation))},inputs:{animation:"animation",title:"title",id:"id",popoverClass:"popoverClass",context:"context"},standalone:!0,features:[D2],ngContentSelectors:Jo,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&&(U4(),P(0,"div",0),O(1,wW,4,2,"h3",1),g(2,"div",2),j4(3),_()),2&n&&(C(1),b("ngIf",r.title))},dependencies:[y3,O1],encapsulation:2,changeDetection:0}),t})(),uK=(()=>{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-"+cK++,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=cc(),this._popupService=new $C(lK,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 B5(e){return t=>(t.modifiers.push(o$,{name:"offset",options:{offset:()=>e}}),t)}([0,8])(s))}),Promise.resolve().then(()=>{this._positioning.update(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update())})}),oc(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=oy(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(bn(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget)||this._elementRef.nativeElement}}return(e=t).\u0275fac=function(n){return new(n||e)(w(Ne),w(c2),w(B1),w(F2),w(oK),w(Me),w(y1),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})(),cy=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({}),t})(),ly=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({}),t})(),uy=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({}),t})(),fy=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({}),t})(),dy=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({}),t})(),hy=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({}),t})(),mK=(()=>{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(z3))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),gK=0,vK=(()=>{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),gn("tooltip"+(r.tooltipClass?" "+r.tooltipClass:"")),ze("fade",r.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},standalone:!0,features:[D2],ngContentSelectors:Jo,decls:3,vars:0,consts:[["data-popper-arrow","",1,"tooltip-arrow"],[1,"tooltip-inner"]],template:function(n,r){1&n&&(U4(),P(0,"div",0),g(1,"div",1),j4(2),_())},encapsulation:2,changeDetection:0}),t})(),_K=(()=>{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-"+gK++,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 $C(vK,a,s,r,this._ngZone,d),this._positioning=cc()}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())})}),oc(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=oy(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(bn(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget)||this._elementRef.nativeElement}}return(e=t).\u0275fac=function(n){return new(n||e)(w(Ne),w(c2),w(B1),w(F2),w(mK),w(Me),w(y1),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})(),py=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({}),t})();new te("live announcer delay",{providedIn:"root",factory:function CK(){return 100}});let my=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({}),t})(),gy=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({}),t})();const MK=[vC,CC,bC,wC,BC,GC,KC,QC,gy,ay,cy,ly,uy,fy,dy,hy,py,my];let bK=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({imports:[MK,vC,CC,bC,wC,BC,GC,KC,QC,gy,ay,cy,ly,uy,fy,dy,hy,py,my]}),t})();function vy(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?vy(Object(i),!0).forEach(function(n){Y1(e,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):vy(Object(i)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))})}return e}function mc(e){return(mc="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 _y(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 Y1(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function W5(e,t){return function SK(e){if(Array.isArray(e))return e}(e)||function xK(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)||Cy(e,t)||function NK(){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 Jr(e){return function DK(e){if(Array.isArray(e))return q5(e)}(e)||function zK(e){if(typeof Symbol<"u"&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Cy(e)||function LK(){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 Cy(e,t){if(e){if("string"==typeof e)return q5(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 q5(e,t)}}function q5(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 yy=function(){},K5={},My={},by=null,wy={mark:yy,measure:yy};try{typeof window<"u"&&(K5=window),typeof document<"u"&&(My=document),typeof MutationObserver<"u"&&(by=MutationObserver),typeof performance<"u"&&(wy=performance)}catch{}var _c,Cc,yc,Mc,bc,Hy=(K5.navigator||{}).userAgent,Vy=void 0===Hy?"":Hy,Zn=K5,c1=My,Dy=by,vc=wy,wn=!!c1.documentElement&&!!c1.head&&"function"==typeof c1.addEventListener&&"function"==typeof c1.createElement,Sy=~Vy.indexOf("MSIE")||~Vy.indexOf("Trident/"),Hn="___FONT_AWESOME___",zy="fa",xy="svg-inline--fa",I3="data-fa-i2svg",Z5="data-fa-pseudo-element",EK="data-fa-pseudo-element-pending",Q5="data-prefix",J5="data-icon",Ly="fontawesome-i2svg",IK="async",TK=["HTML","HEAD","STYLE","SCRIPT"],Ny=function(){try{return!0}catch{return!1}}(),l1="classic",x1="sharp",X5=[l1,x1];function Xr(e){return new Proxy(e,{get:function(i,n){return n in i?i[n]:i[l1]}})}var ea=Xr((Y1(_c={},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"}),Y1(_c,x1,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light"}),_c)),ta=Xr((Y1(Cc={},l1,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),Y1(Cc,x1,{solid:"fass",regular:"fasr",light:"fasl"}),Cc)),na=Xr((Y1(yc={},l1,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),Y1(yc,x1,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light"}),yc)),OK=Xr((Y1(Mc={},l1,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),Y1(Mc,x1,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl"}),Mc)),RK=/fa(s|r|l|t|d|b|k|ss|sr|sl)?[\-\ ]/,Ay="fa-layers-text",kK=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,PK=Xr((Y1(bc={},l1,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),Y1(bc,x1,{900:"fass",400:"fasr",300:"fasl"}),bc)),Ey=[1,2,3,4,5,6,7,8,9,10],FK=Ey.concat([11,12,13,14,15,16,17,18,19,20]),BK=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],T3={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},ia=new Set;Object.keys(ta[l1]).map(ia.add.bind(ia)),Object.keys(ta[x1]).map(ia.add.bind(ia));var UK=[].concat(X5,Jr(ia),["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",T3.GROUP,T3.SWAP_OPACITY,T3.PRIMARY,T3.SECONDARY]).concat(Ey.map(function(e){return"".concat(e,"x")})).concat(FK.map(function(e){return"w-".concat(e)})),ra=Zn.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=W5(e,2),n=t[1],r=function GK(e){return""===e||"false"!==e&&("true"===e||e)}(function jK(e){var t=c1.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(t[0]));null!=r&&(ra[n]=r)});var Iy={styleDefault:"solid",familyDefault:"classic",cssPrefix:zy,replacementClass:xy,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};ra.familyPrefix&&(ra.cssPrefix=ra.familyPrefix);var ui=X(X({},Iy),ra);ui.autoReplaceSvg||(ui.observeMutations=!1);var ne={};Object.keys(Iy).forEach(function(e){Object.defineProperty(ne,e,{enumerable:!0,set:function(i){ui[e]=i,aa.forEach(function(n){return n(ne)})},get:function(){return ui[e]}})}),Object.defineProperty(ne,"familyPrefix",{enumerable:!0,set:function(t){ui.cssPrefix=t,aa.forEach(function(i){return i(ne)})},get:function(){return ui.cssPrefix}}),Zn.FontAwesomeConfig=ne;var aa=[],nn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1},KK="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function sa(){for(var e=12,t="";e-- >0;)t+=KK[62*Math.random()|0];return t}function fi(e){for(var t=[],i=(e||[]).length>>>0;i--;)t[i]=e[i];return t}function e7(e){return e.classList?fi(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function Ty(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function wc(e){return Object.keys(e||{}).reduce(function(t,i){return t+"".concat(i,": ").concat(e[i].trim(),";")},"")}function t7(e){return e.size!==nn.size||e.x!==nn.x||e.y!==nn.y||e.rotate!==nn.rotate||e.flipX||e.flipY}var JK=':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 Oy(){var e=zy,t=xy,i=ne.cssPrefix,n=ne.replacementClass,r=JK;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 Ry=!1;function n7(){ne.autoAddCss&&!Ry&&(function qK(e){if(e&&wn){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)}}(Oy()),Ry=!0)}var XK={mixout:function(){return{dom:{css:Oy,insertCss:n7}}},hooks:function(){return{beforeDOMElementCreation:function(){n7()},beforeI2svg:function(){n7()}}}},Vn=Zn||{};Vn[Hn]||(Vn[Hn]={}),Vn[Hn].styles||(Vn[Hn].styles={}),Vn[Hn].hooks||(Vn[Hn].hooks={}),Vn[Hn].shims||(Vn[Hn].shims=[]);var It=Vn[Hn],ky=[],Hc=!1;function oa(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?Ty(e):"<".concat(t," ").concat(function YK(e){return Object.keys(e||{}).reduce(function(t,i){return t+"".concat(i,'="').concat(Ty(e[i]),'" ')},"").trim()}(n),">").concat(a.map(oa).join(""),"</").concat(t,">")}function Py(e,t,i){if(e&&e[t]&&e[t][i])return{prefix:t,iconName:i,icon:e[t][i]}}wn&&((Hc=(c1.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(c1.readyState))||c1.addEventListener("DOMContentLoaded",function e(){c1.removeEventListener("DOMContentLoaded",e),Hc=1,ky.map(function(t){return t()})}));var i7=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 r7(e){var t=function iY(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 Fy(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 a7(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,r=void 0!==n&&n,a=Fy(t);"function"!=typeof It.hooks.addPack||r?It.styles[e]=X(X({},It.styles[e]||{}),a):It.hooks.addPack(e,Fy(t)),"fas"===e&&a7("fa",t)}var Vc,Dc,Sc,di=It.styles,aY=It.shims,sY=(Y1(Vc={},l1,Object.values(na[l1])),Y1(Vc,x1,Object.values(na[x1])),Vc),s7=null,By={},Uy={},jy={},Gy={},$y={},oY=(Y1(Dc={},l1,Object.keys(ea[l1])),Y1(Dc,x1,Object.keys(ea[x1])),Dc);var Wy=function(){var t=function(a){return i7(di,function(s,o,c){return s[c]=i7(o,a,{}),s},{})};By=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}),Uy=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}),$y=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 di||ne.autoFetchSvg,n=i7(aY,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:{}});jy=n.names,Gy=n.unicodes,s7=zc(ne.styleDefault,{family:ne.familyDefault})};function o7(e,t){return(By[e]||{})[t]}function O3(e,t){return($y[e]||{})[t]}function qy(e){return jy[e]||{prefix:null,iconName:null}}function Jn(){return s7}(function WK(e){aa.push(e)})(function(e){s7=zc(e.styleDefault,{family:ne.familyDefault})}),Wy();var c7=function(){return{prefix:null,iconName:null,rest:[]}};function zc(e){var i=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).family,n=void 0===i?l1:i;return ta[n][e]||ta[n][ea[n][e]]||(e in It.styles?e:null)||null}var Ky=(Y1(Sc={},l1,Object.keys(na[l1])),Y1(Sc,x1,Object.keys(na[x1])),Sc);function xc(e){var t,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).skipLookups,r=void 0!==n&&n,a=(Y1(t={},l1,"".concat(ne.cssPrefix,"-").concat(l1)),Y1(t,x1,"".concat(ne.cssPrefix,"-").concat(x1)),t),s=null,o=l1;(e.includes(a[l1])||e.some(function(l){return Ky[l1].includes(l)}))&&(o=l1),(e.includes(a[x1])||e.some(function(l){return Ky[x1].includes(l)}))&&(o=x1);var c=e.reduce(function(l,u){var d=function lY(e,t){var i=t.split("-"),n=i[0],r=i.slice(1).join("-");return n!==e||""===r||function cY(e){return~UK.indexOf(e)}(r)?null:r}(ne.cssPrefix,u);if(di[u]?(u=sY[o].includes(u)?OK[o][u]:u,s=u,l.prefix=u):oY[o].indexOf(u)>-1?(s=u,l.prefix=zc(u,{family:o})):d?l.iconName=d:u!==ne.replacementClass&&u!==a[l1]&&u!==a[x1]&&l.rest.push(u),!r&&l.prefix&&l.iconName){var p="fa"===s?qy(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&&!di.far&&di.fas&&!ne.autoFetchSvg&&(l.prefix="fas")}return l},c7());return(e.includes("fa-brands")||e.includes("fab"))&&(c.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(c.prefix="fad"),!c.prefix&&o===x1&&(di.fass||ne.autoFetchSvg)&&(c.prefix="fass",c.iconName=O3(c.prefix,c.iconName)||c.iconName),("fa"===c.prefix||"fa"===s)&&(c.prefix=Jn()||"fas"),c}var dY=function(){function e(){(function wK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.definitions={}}return function HK(e,t,i){t&&_y(e.prototype,t),i&&_y(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]),a7(o,s[o]);var c=na[l1][o];c&&a7(c,s[o]),Wy()})}},{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}(),Yy=[],hi={},pi={},hY=Object.keys(pi);function l7(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(hi[e]||[]).forEach(function(s){t=s.apply(null,[t].concat(n))}),t}function R3(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];(hi[e]||[]).forEach(function(a){a.apply(null,i)})}function Dn(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return pi[e]?pi[e].apply(null,t):void 0}function u7(e){"fa"===e.prefix&&(e.prefix="fas");var t=e.iconName,i=e.prefix||Jn();if(t)return t=O3(i,t)||t,Py(Zy.definitions,i,t)||Py(It.styles,i,t)}var Zy=new dY,gY={i2svg:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return wn?(R3("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 tY(e){wn&&(Hc?setTimeout(e,0):ky.push(e))}(function(){_Y({autoReplaceSvgRoot:i}),R3("watch",t)})}},it={noAuto:function(){ne.autoReplaceSvg=!1,ne.observeMutations=!1,R3("noAuto")},config:ne,dom:gY,parse:{icon:function(t){if(null===t)return null;if("object"===mc(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=zc(t[0]);return{prefix:n,iconName:O3(n,i)||i}}if("string"==typeof t&&(t.indexOf("".concat(ne.cssPrefix,"-"))>-1||t.match(RK))){var r=xc(t.split(" "),{skipLookups:!0});return{prefix:r.prefix||Jn(),iconName:O3(r.prefix,r.iconName)||r.iconName}}if("string"==typeof t){var a=Jn();return{prefix:a,iconName:O3(a,t)||t}}}},library:Zy,findIconDefinition:u7,toHtml:oa},_Y=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)&&wn&&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 oa(n)})}}),Object.defineProperty(e,"node",{get:function(){if(wn){var n=c1.createElement("div");return n.innerHTML=e.html,n.children}}}),e}function f7(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,D=H.width,x=H.height,E="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(D," ").concat(x)})},U=E&&!~d.classes.indexOf("fa-fw")?{width:"".concat(D/x*16*.0625,"em")}:{};m&&(B.attributes[I3]=""),c&&(B.children.push({tag:"title",attributes:{id:B.attributes["aria-labelledby"]||"title-".concat(u||sa())},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:{}},we=ie.attributes;return G.children=ie.children,G.attributes=we,o?function yY(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 CY(e){var t=e.children,i=e.main,n=e.mask,r=e.attributes,a=e.styles,s=e.transform;if(t7(s)&&i.found&&!n.found){var l={x:i.width/i.height/2,y:.5};r.style=wc(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 Qy(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);t7(r)&&(u.transform=function QK(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&&Sy?"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=wc(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 d7=It.styles;function h7(e){var t=e[0],i=e[1],a=W5(e.slice(4),1)[0];return{found:!0,width:t,height:i,icon:Array.isArray(a)?{tag:"g",attributes:{class:"".concat(ne.cssPrefix,"-").concat(T3.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ne.cssPrefix,"-").concat(T3.SECONDARY),fill:"currentColor",d:a[0]}},{tag:"path",attributes:{class:"".concat(ne.cssPrefix,"-").concat(T3.PRIMARY),fill:"currentColor",d:a[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:a}}}}var bY={found:!1,width:512,height:512};function p7(e,t){var i=t;return"fa"===t&&null!==ne.styleDefault&&(t=Jn()),new Promise(function(n,r){if(Dn("missingIconAbstract"),"fa"===i){var s=qy(e)||{};e=s.iconName||e,t=s.prefix||t}if(e&&t&&d7[t]&&d7[t][e])return n(h7(d7[t][e]));(function wY(e,t){!Ny&&!ne.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))})(e,t),n(X(X({},bY),{},{icon:ne.showMissingIcons&&e&&Dn("missingIconAbstract")||{}}))})}var Jy=function(){},m7=ne.measurePerformance&&vc&&vc.mark&&vc.measure?vc:{mark:Jy,measure:Jy},ca='FA "6.4.2"',Xy=function(t){m7.mark("".concat(ca," ").concat(t," ends")),m7.measure("".concat(ca," ").concat(t),"".concat(ca," ").concat(t," begins"),"".concat(ca," ").concat(t," ends"))},g7={begin:function(t){return m7.mark("".concat(ca," ").concat(t," begins")),function(){return Xy(t)}},end:Xy},Nc=function(){};function eM(e){return"string"==typeof(e.getAttribute?e.getAttribute(I3):null)}function zY(e){return c1.createElementNS("http://www.w3.org/2000/svg",e)}function xY(e){return c1.createElement(e)}function tM(e){var i=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).ceFn,n=void 0===i?"svg"===e.tag?zY:xY: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(tM(s,{ceFn:n}))}),r}var Ac={replace:function(t){var i=t[0];if(i.parentNode)if(t[1].forEach(function(r){i.parentNode.insertBefore(tM(r),i)}),null===i.getAttribute(I3)&&ne.keepOriginalSource){var n=c1.createComment(function LY(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(~e7(i).indexOf(ne.replacementClass))return Ac.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 oa(o)}).join("\n");i.setAttribute(I3,""),i.innerHTML=s}};function nM(e){e()}function iM(e,t){var i="function"==typeof t?t:Nc;if(0===e.length)i();else{var n=nM;ne.mutateApproach===IK&&(n=Zn.requestAnimationFrame||nM),n(function(){var r=function SY(){return!0===ne.autoReplaceSvg?Ac.replace:Ac[ne.autoReplaceSvg]||Ac.replace}(),a=g7.begin("mutate");e.map(r),a(),i()})}}var v7=!1;function rM(){v7=!0}function _7(){v7=!1}var Ec=null;function aM(e){if(Dy&&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;Ec=new Dy(function(l){if(!v7){var u=Jn();fi(l).forEach(function(d){if("childList"===d.type&&d.addedNodes.length>0&&!eM(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&&eM(d.target)&&~BK.indexOf(d.attributeName))if("class"===d.attributeName&&function VY(e){var t=e.getAttribute?e.getAttribute(Q5):null,i=e.getAttribute?e.getAttribute(J5):null;return t&&i}(d.target)){var p=xc(e7(d.target)),H=p.iconName;d.target.setAttribute(Q5,p.prefix||u),H&&d.target.setAttribute(J5,H)}else(function DY(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ne.replacementClass)})(d.target)&&r(d.target)})}}),wn&&Ec.observe(c,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function sM(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},i=function EY(e){var t=e.getAttribute("data-prefix"),i=e.getAttribute("data-icon"),n=void 0!==e.innerText?e.innerText.trim():"",r=xc(e7(e));return r.prefix||(r.prefix=Jn()),t&&i&&(r.prefix=t,r.iconName=i),r.iconName&&r.prefix||(r.prefix&&n.length>0&&(r.iconName=function uY(e,t){return(Uy[e]||{})[t]}(r.prefix,e.innerText)||o7(r.prefix,r7(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 IY(e){var t=fi(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||sa()):(t["aria-hidden"]="true",t.focusable="false")),t}(e),o=l7("parseNodeAttributes",{},e),c=t.styleParser?function AY(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 OY=It.styles;function oM(e){var t="nest"===ne.autoReplaceSvg?sM(e,{styleParser:!1}):sM(e);return~t.extra.classes.indexOf(Ay)?Dn("generateLayersText",e,t):Dn("generateSvgReplacementMutation",e,t)}var Xn=new Set;function cM(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!wn)return Promise.resolve();var i=c1.documentElement.classList,n=function(d){return i.add("".concat(Ly,"-").concat(d))},r=function(d){return i.remove("".concat(Ly,"-").concat(d))},a=ne.autoFetchSvg?Xn:X5.map(function(u){return"fa-".concat(u)}).concat(Object.keys(OY));a.includes("fa")||a.push("fa");var s=[".".concat(Ay,":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=fi(e.querySelectorAll(s))}catch{}if(!(o.length>0))return Promise.resolve();n("pending"),r("complete");var c=g7.begin("onTree"),l=o.reduce(function(u,d){try{var p=oM(d);p&&u.push(p)}catch(m){Ny||"MissingIcon"===m.name&&console.error(m)}return u},[]);return new Promise(function(u,d){Promise.all(l).then(function(p){iM(p,function(){n("active"),n("complete"),r("pending"),"function"==typeof t&&t(),c(),u()})}).catch(function(p){c(),d(p)})})}function RY(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;oM(e).then(function(i){i&&iM([i],t)})}X5.map(function(e){Xn.add("fa-".concat(e))}),Object.keys(ea[l1]).map(Xn.add.bind(Xn)),Object.keys(ea[x1]).map(Xn.add.bind(Xn)),Xn=Jr(Xn);var PY=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,D=i.classes,x=void 0===D?[]:D,E=i.attributes,z=void 0===E?{}:E,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 R3("beforeDOMElementCreation",{iconDefinition:t,params:i}),ne.autoA11y&&(p?z["aria-labelledby"]="".concat(ne.replacementClass,"-title-").concat(H||sa()):(z["aria-hidden"]="true",z.focusable="false")),f7({icons:{main:h7(ve),mask:c?h7(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:x}})})}},FY={mixout:function(){return{icon:(e=PY,function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(t||{}).icon?t:u7(t||{}),r=i.mask;return r&&(r=(r||{}).icon?r:u7(r||{})),e(n,X(X({},i),{},{mask:r}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(i){return i.treeCallback=cM,i.nodeCallback=RY,i}}},provides:function(t){t.i2svg=function(i){var n=i.node,a=i.callback;return cM(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([p7(r,o),u.iconName?p7(u.iconName,u.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(D){var x=W5(D,2);m([i,f7({icons:{main:x[0],mask:x[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=wc(i.styles);return c.length>0&&(r.style=c),t7(s)&&(l=Dn("generateAbstractTransformGrouping",{main:a,transform:s,containerWidth:a.width,iconWidth:a.width})),n.push(l||a.icon),{children:n,attributes:r}}}},BY={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(){R3("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(Jr(a)).join(" ")},children:s}]})}}}},UY={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 R3("beforeDOMElementCreation",{content:i,params:n}),function MY(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=wc(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(Jr(o))}})})}}}},jY={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 R3("beforeDOMElementCreation",{content:i,params:n}),Qy({content:i,transform:X(X({},nn),a),title:o,extra:{attributes:d,styles:m,classes:["".concat(ne.cssPrefix,"-layers-text")].concat(Jr(l))}})})}}},provides:function(t){t.generateLayersText=function(i,n){var r=n.title,a=n.transform,s=n.extra,o=null,c=null;if(Sy){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,Qy({content:i.innerHTML,width:o,height:c,transform:a,title:r,extra:s,watchable:!0})])}}},GY=new RegExp('"',"ug"),lM=[1105920,1112319];function uM(e,t){var i="".concat(EK).concat(t.replace(":","-"));return new Promise(function(n,r){if(null!==e.getAttribute(i))return n();var s=fi(e.children).filter(function(ve){return ve.getAttribute(Z5)===t})[0],o=Zn.getComputedStyle(e,t),c=o.getPropertyValue("font-family").match(kK),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])?x1:l1,m=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(c[2])?ta[p][c[2].toLowerCase()]:PK[p][l],H=function $Y(e){var t=e.replace(GY,""),i=function rY(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>=lM[0]&&i<=lM[1],r=2===t.length&&t[0]===t[1];return{value:r7(r?t[0]:t),isSecondary:n||r}}(d),D=H.value,x=H.isSecondary,E=c[0].startsWith("FontAwesome"),z=o7(m,D),B=z;if(E){var U=function fY(e){var t=Gy[e],i=o7("fas",e);return t||(i?{prefix:"fas",iconName:i}:null)||{prefix:null,iconName:null}}(D);U.iconName&&U.prefix&&(z=U.iconName,m=U.prefix)}if(!z||x||s&&s.getAttribute(Q5)===m&&s.getAttribute(J5)===B)n();else{e.setAttribute(i,B),s&&e.removeChild(s);var G=function TY(){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[Z5]=t,p7(z,m).then(function(ve){var we=f7(X(X({},G),{},{icons:{main:ve,mask:c7()},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=we.map(function(b1){return oa(b1)}).join("\n"),e.removeAttribute(i),n()}).catch(r)}}else n()})}function WY(e){return Promise.all([uM(e,"::before"),uM(e,"::after")])}function qY(e){return!(e.parentNode===document.head||~TK.indexOf(e.tagName.toUpperCase())||e.getAttribute(Z5)||e.parentNode&&"svg"===e.parentNode.tagName)}function fM(e){if(wn)return new Promise(function(t,i){var n=fi(e.querySelectorAll("*")).filter(qY).map(WY),r=g7.begin("searchPseudoElements");rM(),Promise.all(n).then(function(){r(),_7(),t()}).catch(function(){r(),_7(),i()})})}var dM=!1,hM=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})},C7={x:0,y:0,width:"100%",height:"100%"};function pM(e){return e.attributes&&(e.attributes.fill||!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(e.attributes.fill="black"),e}!function pY(e,t){var i=t.mixoutsTo;Yy=e,hi={},Object.keys(pi).forEach(function(n){-1===hY.indexOf(n)&&delete pi[n]}),Yy.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"===mc(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){hi[s]||(hi[s]=[]),hi[s].push(a[s])})}n.provides&&n.provides(pi)})}([XK,FY,BY,UY,jY,{hooks:function(){return{mutationObserverCallbacks:function(i){return i.pseudoElementsCallback=fM,i}}},provides:function(t){t.pseudoElements2svg=function(i){var n=i.node;ne.searchPseudoElements&&fM(void 0===n?c1:n)}}},{mixout:function(){return{dom:{unwatch:function(){rM(),dM=!0}}}},hooks:function(){return{bootstrap:function(){aM(l7("mutationObserverCallbacks",{}))},noAuto:function(){!function NY(){Ec&&Ec.disconnect()}()},watch:function(i){var n=i.observeMutationsRoot;dM?_7():aM(l7("mutationObserverCallbacks",{observeMutationsRoot:n}))}}}},{mixout:function(){return{parse:{transform:function(i){return hM(i)}}}},hooks:function(){return{parseNodeAttributes:function(i,n){var r=n.getAttribute("data-fa-transform");return r&&(i.transform=hM(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?xc(r.split(" ").map(function(s){return s.trim()})):c7();return a.prefix||(a.prefix=Jn()),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 ZK(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({},C7),{},{fill:"white"})},D=u.children?{children:u.children.map(pM)}:{},x={tag:"g",attributes:X({},m.inner),children:[pM(X({tag:u.tag,attributes:X(X({},u.attributes),m.path)},D))]},E={tag:"g",attributes:X({},m.outer),children:[x]},z="mask-".concat(o||sa()),B="clip-".concat(o||sa()),U={tag:"mask",attributes:X(X({},C7),{},{id:z,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[H,E]},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,")")},C7)}),{children:n,attributes:r}}}},{provides:function(t){var i=!1;Zn.matchMedia&&(i=Zn.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 nZ=it.parse,iZ=it.icon;const rZ=["*"],oZ=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 uZ=(()=>{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})(),fZ=(()=>{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})(),dZ=(()=>{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})(),hZ=(()=>{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(Ne))},e.\u0275cmp=oe({type:e,selectors:[["fa-stack"]],inputs:{size:"size"},features:[v1],ngContentSelectors:rZ,decls:1,vars:0,template:function(n,r){1&n&&(U4(),j4(0))},encapsulation:2}),t})(),mM=(()=>{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?nZ.transform(this.transform):this.transform;return{title:this.title,transform:r,classes:[...oZ(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=iZ(n,r);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(a.html.join("\n"))}}return(e=t).\u0275fac=function(n){return new(n||e)(w(Lv),w(uZ),w(fZ),w(dZ,8),w(hZ,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,_d),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})(),pZ=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({}),t})();function y7(...e){const t=xi(e),i=$a(e),{args:n,keys:r}=Ev(e);if(0===n.length)return Q1([],t);const a=new We(function gZ(e,t,i=yt){return n=>{gM(t,()=>{const{length:r}=e,a=new Array(r);let s=r,o=r;for(let c=0;c<r;c++)gM(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=>Iv(r,s):yt));return i?a.pipe(Q8(i)):a}function gM(e,t,i){e?sn(i,e,t):t()}const Ic=f2(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function vM(e){return new We(t=>{j1(e()).subscribe(t)})}function la(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 M7(){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 _M extends We{constructor(t,i){super(),this.source=t,this.subjectFactory=i,this._subject=null,this._refCount=0,this._connection=null,Si(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 De;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=De.EMPTY)}return t}refCount(){return M7()(this)}}function Tc(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 CM(e=vZ){return f1((t,i)=>{let n=!1;t.subscribe(qe(i,r=>{n=!0,i.next(r)},()=>n?i.complete():i.error(e())))})}function vZ(){return new Ic}function k3(e,t){const i=arguments.length>=2;return n=>n.pipe(e?z1((r,a)=>e(r,a,n)):yt,t2(1),i?Tc(t):CM(()=>new Ic))}function ua(e,t){return Q(t)?F1(e,t,1):F1(e,1)}function P3(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,P3(e)(t))),n?(n.unsubscribe(),n=null,a.subscribe(i)):r=!0})),r&&(n.unsubscribe(),n=null,a.subscribe(i))})}function b7(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 w7(e){return f1((t,i)=>{try{t.subscribe(i)}finally{i.add(e)}})}const _e="primary",fa=Symbol("RouteTitle");class MZ{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 mi(e){return new MZ(e)}function bZ(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],!yM(e[r],t[r]))return!1;return!0}function yM(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 MM(e){return e.length>0?e[e.length-1]:null}function e3(e){return function mZ(e){return!!e&&(e instanceof We||Q(e.lift)&&Q(e.subscribe))}(e)?e:hr(e)?Q1(Promise.resolve(e)):ae(e)}const HZ={exact:function HM(e,t,i){if(!F3(e.segments,t.segments)||!Oc(e.segments,t.segments,i)||e.numberOfChildren!==t.numberOfChildren)return!1;for(const n in t.children)if(!e.children[n]||!HM(e.children[n],t.children[n],i))return!1;return!0},subset:VM},bM={exact:function VZ(e,t){return rn(e,t)},subset:function DZ(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(i=>yM(e[i],t[i]))},ignored:()=>!0};function wM(e,t,i){return HZ[i.paths](e.root,t.root,i.matrixParams)&&bM[i.queryParams](e.queryParams,t.queryParams)&&!("exact"===i.fragment&&e.fragment!==t.fragment)}function VM(e,t,i){return DM(e,t,t.segments,i)}function DM(e,t,i,n){if(e.segments.length>i.length){const r=e.segments.slice(0,i.length);return!(!F3(r,i)||t.hasChildren()||!Oc(r,i,n))}if(e.segments.length===i.length){if(!F3(e.segments,i)||!Oc(e.segments,i,n))return!1;for(const r in t.children)if(!e.children[r]||!VM(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!!(F3(e.segments,r)&&Oc(e.segments,r,n)&&e.children[_e])&&DM(e.children[_e],t,a,n)}}function Oc(e,t,i){return t.every((n,r)=>bM[i](e[r].parameters,n.parameters))}class gi{constructor(t=new $e([],{}),i={},n=null){this.root=t,this.queryParams=i,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=mi(this.queryParams)),this._queryParamMap}toString(){return xZ.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 Rc(this)}}class da{constructor(t,i){this.path=t,this.parameters=i}get parameterMap(){return this._parameterMap||(this._parameterMap=mi(this.parameters)),this._parameterMap}toString(){return xM(this)}}function F3(e,t){return e.length===t.length&&e.every((i,n)=>i.path===t[n].path)}let ha=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:function(){return new H7},providedIn:"root"}),t})();class H7{parse(t){const i=new FZ(t);return new gi(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(t){const i=`/${pa(t.root,!0)}`,n=function AZ(e){const t=Object.keys(e).map(i=>{const n=e[i];return Array.isArray(n)?n.map(r=>`${kc(i)}=${kc(r)}`).join("&"):`${kc(i)}=${kc(n)}`}).filter(i=>!!i);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${i}${n}${"string"==typeof t.fragment?`#${function LZ(e){return encodeURI(e)}(t.fragment)}`:""}`}}const xZ=new H7;function Rc(e){return e.segments.map(t=>xM(t)).join("/")}function pa(e,t){if(!e.hasChildren())return Rc(e);if(t){const i=e.children[_e]?pa(e.children[_e],!1):"",n=[];return Object.entries(e.children).forEach(([r,a])=>{r!==_e&&n.push(`${r}:${pa(a,!1)}`)}),n.length>0?`${i}(${n.join("//")})`:i}{const i=function zZ(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?[pa(e.children[_e],!1)]:[`${r}:${pa(n,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[_e]?`${Rc(e)}/${i[0]}`:`${Rc(e)}/(${i.join("//")})`}}function SM(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function kc(e){return SM(e).replace(/%3B/gi,";")}function V7(e){return SM(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Pc(e){return decodeURIComponent(e)}function zM(e){return Pc(e.replace(/\+/g,"%20"))}function xM(e){return`${V7(e.path)}${function NZ(e){return Object.keys(e).map(t=>`;${V7(t)}=${V7(e[t])}`).join("")}(e.parameters)}`}const EZ=/^[^\/()?;#]+/;function D7(e){const t=e.match(EZ);return t?t[0]:""}const IZ=/^[^\/()?;=#]+/,OZ=/^[^=?&#]+/,kZ=/^[^&#]+/;class FZ{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=D7(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new F(4009,!1);return this.capture(t),new da(Pc(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const i=function TZ(e){const t=e.match(IZ);return t?t[0]:""}(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){const r=D7(this.remaining);r&&(n=r,this.capture(n))}t[Pc(i)]=Pc(n)}parseQueryParam(t){const i=function RZ(e){const t=e.match(OZ);return t?t[0]:""}(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){const s=function PZ(e){const t=e.match(kZ);return t?t[0]:""}(this.remaining);s&&(n=s,this.capture(n))}const r=zM(i),a=zM(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=D7(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 LM(e){return e.segments.length>0?new $e([],{[_e]:e}):e}function NM(e){const t={};for(const n of Object.keys(e.children)){const a=NM(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 BZ(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 B3(e){return e instanceof gi}function AM(e){let t;const r=LM(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 EM(e,t,i,n){let r=e;for(;r.parent;)r=r.parent;if(0===t.length)return S7(r,r,r,i,n);const a=function jZ(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new TM(!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 TM(i,t,n)}(t);if(a.toRoot())return S7(r,r,new $e([],{}),i,n);const s=function GZ(e,t,i){if(e.isAbsolute)return new Bc(t,!0,0);if(!i)return new Bc(t,!1,NaN);if(null===i.parent)return new Bc(i,!0,0);const n=Fc(e.commands[0])?0:1;return function $Z(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 Bc(n,!1,r-a)}(i,i.segments.length-1+n,e.numberOfDoubleDots)}(a,r,e),o=s.processChildren?ga(s.segmentGroup,s.index,a.commands):OM(s.segmentGroup,s.index,a.commands);return S7(r,s.segmentGroup,o,i,n)}function Fc(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function ma(e){return"object"==typeof e&&null!=e&&e.outlets}function S7(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:IM(e,t,i);const o=LM(NM(s));return new gi(o,a,r)}function IM(e,t,i){const n={};return Object.entries(e.children).forEach(([r,a])=>{n[r]=a===t?i:IM(a,t,i)}),new $e(e.segments,n)}class TM{constructor(t,i,n){if(this.isAbsolute=t,this.numberOfDoubleDots=i,this.commands=n,t&&n.length>0&&Fc(n[0]))throw new F(4003,!1);const r=n.find(ma);if(r&&r!==MM(n))throw new F(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Bc{constructor(t,i,n){this.segmentGroup=t,this.processChildren=i,this.index=n}}function OM(e,t,i){if(e||(e=new $e([],{})),0===e.segments.length&&e.hasChildren())return ga(e,t,i);const n=function qZ(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(ma(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(!kM(c,l,s))return a;n+=2}else{if(!kM(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),ga(a,0,r)}return n.match&&0===r.length?new $e(e.segments,{}):n.match&&!e.hasChildren()?z7(e,t,i):n.match?ga(e,0,r):z7(e,t,i)}function ga(e,t,i){if(0===i.length)return new $e(e.segments,{});{const n=function WZ(e){return ma(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=ga(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]=OM(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 z7(e,t,i){const n=e.segments.slice(0,t);let r=0;for(;r<i.length;){const a=i[r];if(ma(a)){const c=KZ(a.outlets);return new $e(n,c)}if(0===r&&Fc(i[0])){n.push(new da(e.segments[t].path,RM(i[0]))),r++;continue}const s=ma(a)?a.outlets[_e]:`${a}`,o=r<i.length-1?i[r+1]:null;s&&o&&Fc(o)?(n.push(new da(s,RM(o))),r+=2):(n.push(new da(s,{})),r++)}return new $e(n,{})}function KZ(e){const t={};return Object.entries(e).forEach(([i,n])=>{"string"==typeof n&&(n=[n]),null!==n&&(t[i]=z7(new $e([],{}),0,n))}),t}function RM(e){const t={};return Object.entries(e).forEach(([i,n])=>t[i]=`${n}`),t}function kM(e,t,i){return e==i.path&&rn(t,i.parameters)}const va="imperative";class an{constructor(t,i){this.id=t,this.url=i}}class _a 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 t3 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 Ca 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 vi extends an{constructor(t,i,n,r){super(t,i),this.reason=n,this.code=r,this.type=16}}class Uc 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 PM 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 YZ 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 ZZ 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 QZ 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 JZ 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 XZ{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class eQ{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class tQ{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class nQ{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class iQ{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class rQ{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class FM{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 x7{}class L7{constructor(t){this.url=t}}class aQ{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new ya,this.attachRef=null}}let ya=(()=>{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 aQ,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 BM{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=N7(t,this._root);return i?i.children.map(n=>n.value):[]}firstChild(t){const i=N7(t,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(t){const i=A7(t,this._root);return i.length<2?[]:i[i.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return A7(t,this._root).map(i=>i.value)}}function N7(e,t){if(e===t.value)return t;for(const i of t.children){const n=N7(e,i);if(n)return n}return null}function A7(e,t){if(e===t.value)return[t];for(const i of t.children){const n=A7(e,i);if(n.length)return n.unshift(t),n}return[]}class Sn{constructor(t,i){this.value=t,this.children=i}toString(){return`TreeNode(${this.value})`}}function _i(e){const t={};return e&&e.children.forEach(i=>t[i.value.outlet]=i),t}class UM extends BM{constructor(t,i){super(t),this.snapshot=i,E7(this,t)}toString(){return this.snapshot.toString()}}function jM(e,t){const i=function sQ(e,t){const s=new jc([],{},{},"",{},_e,t,null,{});return new $M("",new Sn(s,[]))}(0,t),n=new ct([new da("",{})]),r=new ct({}),a=new ct({}),s=new ct({}),o=new ct(""),c=new zn(n,r,s,o,a,_e,t,i.root);return c.snapshot=i.root,new UM(new Sn(c,[]),i)}class zn{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(He(l=>l[fa]))??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(He(t=>mi(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(He(t=>mi(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function GM(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 oQ(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 jc{get title(){return this.data?.[fa]}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=mi(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=mi(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(n=>n.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class $M extends BM{constructor(t,i){super(i),this.url=t,E7(this,i)}toString(){return WM(this._root)}}function E7(e,t){t.value._routerState=e,t.children.forEach(i=>E7(e,i))}function WM(e){const t=e.children.length>0?` { ${e.children.map(WM).join(", ")} } `:"";return`${e.value}${t}`}function I7(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 wZ(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 T7(e,t){const i=rn(e.params,t.params)&&function SZ(e,t){return F3(e,t)&&e.every((i,n)=>rn(i.parameters,t[n].parameters))}(e.url,t.url);return i&&!(!e.parent!=!t.parent)&&(!e.parent||T7(e.parent,t.parent))}let O7=(()=>{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(ya),this.location=J(F2),this.changeDetector=J(J2),this.environmentInjector=J(R2),this.inputBinder=J(Gc,{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 cQ(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 cQ{constructor(t,i,n){this.route=t,this.childContexts=i,this.parent=n}get(t,i){return t===zn?this.route:t===ya?this.childContexts:this.parent.get(t,i)}}const Gc=new te("");let qM=(()=>{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=y7([r.queryParams,r.params,r.data]).pipe(Mt(([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 dF(e){const t=xe(e);if(!t)return null;const i=new or(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 Ma(e,t,i){if(i&&e.shouldReuseRoute(t.value,i.value.snapshot)){const n=i.value;n._futureSnapshot=t.value;const r=function uQ(e,t,i){return t.children.map(n=>{for(const r of i.children)if(e.shouldReuseRoute(n.value,r.value.snapshot))return Ma(e,n,r);return Ma(e,n)})}(e,t,i);return new Sn(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=>Ma(e,o)),s}}const n=function fQ(e){return new zn(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=>Ma(e,a));return new Sn(n,r)}}const R7="ngNavigationCancelingError";function KM(e,t){const{redirectTo:i,navigationBehaviorOptions:n}=B3(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,r=YM(!1,0,t);return r.url=i,r.navigationBehaviorOptions=n,r}function YM(e,t,i){const n=new Error("NavigationCancelingError: "+(e||""));return n[R7]=!0,n.cancellationCode=t,i&&(n.url=i),n}function ZM(e){return e&&e[R7]}let QM=(()=>{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:[D2],decls:1,vars:0,template:function(n,r){1&n&&P(0,"router-outlet")},dependencies:[O7],encapsulation:2}),t})();function k7(e){const t=e.children&&e.children.map(k7),i=t?{...e,children:t}:{...e};return!i.component&&!i.loadComponent&&(t||i.loadChildren)&&i.outlet&&i.outlet!==_e&&(i.component=QM),i}function Tt(e){return e.outlet||_e}function ba(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 CQ{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),I7(this.futureState.root),this.activateChildRoutes(i,n,t)}deactivateChildRoutes(t,i,n){const r=_i(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=_i(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=_i(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=_i(i);t.children.forEach(a=>{this.activateRoutes(a,r[a.value.outlet],n),this.forwardEvent(new rQ(a.value.snapshot))}),t.children.length&&this.forwardEvent(new nQ(t.value.snapshot))}activateRoutes(t,i,n){const r=t.value,a=i?i.value:null;if(I7(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),I7(o.route.value),this.activateChildRoutes(t,null,s.children)}else{const o=ba(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 JM{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class $c{constructor(t,i){this.component=t,this.route=i}}function yQ(e,t,i){const n=e._root;return wa(n,t?t._root:null,i,[n.value])}function Ci(e,t){const i=Symbol(),n=t.get(e,i);return n===i?"function"!=typeof e||function EL(e){return null!==Ka(e)}(e)?t.get(e):e:n}function wa(e,t,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const a=_i(t);return e.children.forEach(s=>{(function bQ(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 wQ(e,t,i){if("function"==typeof i)return i(e,t);switch(i){case"pathParamsChange":return!F3(e.url,t.url);case"pathParamsOrQueryParamsChange":return!F3(e.url,t.url)||!rn(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!T7(e,t)||!rn(e.queryParams,t.queryParams);default:return!T7(e,t)}}(s,a,a.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new JM(n)):(a.data=s.data,a._resolvedData=s._resolvedData),wa(e,t,a.component?o?o.children:null:i,n,r),c&&o&&o.outlet&&o.outlet.isActivated&&r.canDeactivateChecks.push(new $c(o.outlet.component,s))}else s&&Ha(t,o,r),r.canActivateChecks.push(new JM(n)),wa(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])=>Ha(o,i.getContext(s),r)),r}function Ha(e,t,i){const n=_i(e),r=e.value;Object.entries(n).forEach(([a,s])=>{Ha(s,r.component?t?t.children.getContext(a):null:t,i)}),i.canDeactivateChecks.push(new $c(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}function Va(e){return"function"==typeof e}function XM(e){return e instanceof Ic||"EmptyError"===e?.name}const Wc=Symbol("INITIAL_VALUE");function yi(){return Mt(e=>y7(e.map(t=>t.pipe(t2(1),function G_(...e){const t=xi(e);return f1((i,n)=>{(t?kr(e,i,t):kr(e,i)).subscribe(n)})}(Wc)))).pipe(He(t=>{for(const i of t)if(!0!==i){if(i===Wc)return Wc;if(!1===i||i instanceof gi)return i}return!0}),z1(t=>t!==Wc),t2(1)))}function eb(e){return function Ra(...e){return Di(e)}(q1(t=>{if(B3(t))throw KM(0,t)}),He(t=>!0===t))}class qc{constructor(t){this.segmentGroup=t||null}}class tb{constructor(t){this.urlTree=t}}function Mi(e){return la(new qc(e))}function nb(e){return la(new tb(e))}class jQ{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 la(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 gi(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 P7={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function GQ(e,t,i,n,r){const a=F7(e,t,i);return a.matched?(n=function hQ(e,t){return e.providers&&!e._injector&&(e._injector=$l(e.providers,t,`Route: ${e.path}`)),e._injector??t}(t,n),function FQ(e,t,i,n){const r=t.canMatch;return r&&0!==r.length?ae(r.map(s=>{const o=Ci(s,e);return e3(function xQ(e){return e&&Va(e.canMatch)}(o)?o.canMatch(t,i):e.runInContext(()=>o(t,i)))})).pipe(yi(),eb()):ae(!0)}(n,t,i).pipe(He(s=>!0===s?a:{...P7}))):ae(a)}function F7(e,t,i){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||i.length>0)?{...P7}:{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};const r=(t.matcher||bZ)(i,e,t);if(!r)return{...P7};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 ib(e,t,i,n){return i.length>0&&function qQ(e,t,i){return i.some(n=>Kc(e,t,n)&&Tt(n)!==_e)}(e,i,n)?{segmentGroup:new $e(t,WQ(n,new $e(i,e.children))),slicedSegments:[]}:0===i.length&&function KQ(e,t,i){return i.some(n=>Kc(e,t,n))}(e,i,n)?{segmentGroup:new $e(e.segments,$Q(e,0,i,n,e.children)),slicedSegments:i}:{segmentGroup:new $e(e.segments,e.children),slicedSegments:i}}function $Q(e,t,i,n,r){const a={};for(const s of n)if(Kc(e,i,s)&&!r[Tt(s)]){const o=new $e([],{});a[Tt(s)]=o}return{...r,...a}}function WQ(e,t){const i={};i[_e]=t;for(const n of e)if(""===n.path&&Tt(n)!==_e){const r=new $e([],{});i[Tt(n)]=r}return i}function Kc(e,t,i){return(!(e.hasChildren()||t.length>0)||"full"!==i.pathMatch)&&""===i.path}class JQ{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 jQ(this.urlSerializer,this.urlTree)}noMatchError(t){return new F(4002,!1)}recognize(){const t=ib(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,_e).pipe(P3(i=>{if(i instanceof tb)return this.allowRedirects=!1,this.urlTree=i.urlTree,this.match(i.urlTree);throw i instanceof qc?this.noMatchError(i):i}),He(i=>{const n=new jc([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},_e,this.rootComponentType,null,{}),r=new Sn(n,i),a=new $M("",r),s=function UZ(e,t,i=null,n=null){return EM(AM(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(P3(n=>{throw n instanceof qc?this.noMatchError(n):n}))}inheritParamsAndData(t){const i=t.value,n=GM(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(ua(a=>{const s=n.children[a],o=function vQ(e,t){const i=e.filter(n=>Tt(n)===t);return i.push(...e.filter(n=>Tt(n)!==t)),i}(i,a);return this.processSegmentGroup(t,o,s,a)}),function CZ(e,t){return f1(function _Z(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)),Tc(null),function yZ(e,t){const i=arguments.length>=2;return n=>n.pipe(e?z1((r,a)=>e(r,a,n)):yt,b7(1),i?Tc(t):CM(()=>new Ic))}(),F1(a=>{if(null===a)return Mi(n);const s=rb(a);return function XQ(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(ua(o=>this.processSegmentAgainstRoute(o._injector??t,i,o,n,r,a,s).pipe(P3(c=>{if(c instanceof qc)return ae(null);throw c}))),k3(o=>!!o),P3(o=>{if(XM(o))return function ZQ(e,t,i){return 0===t.length&&!e.children[i]}(n,r,a)?ae([]):Mi(n);throw o}))}processSegmentAgainstRoute(t,i,n,r,a,s,o){return function YQ(e,t,i,n){return!!(Tt(e)===n||n!==_e&&Kc(t,i,e))&&("**"===e.path||F7(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):Mi(r):Mi(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("/")?nb(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}=F7(i,r,a);if(!o)return Mi(i);const d=this.applyRedirects.applyRedirectCommands(c,r.redirectTo,u);return r.redirectTo.startsWith("/")?nb(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?MM(r).parameters:{};o=ae({snapshot:new jc(r,c,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,ab(n),Tt(n),n.component??n._loadedComponent??null,n,sb(n)),consumedSegments:[],remainingSegments:[]}),i.children={}}else o=GQ(i,n,r,t).pipe(He(({matched:c,consumedSegments:l,remainingSegments:u,parameters:d})=>c?{snapshot:new jc(l,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,ab(n),Tt(n),n.component??n._loadedComponent??null,n,sb(n)),consumedSegments:l,remainingSegments:u}:null));return o.pipe(Mt(c=>null===c?Mi(i):this.getChildConfig(t=n._injector??t,n,r).pipe(Mt(({routes:l})=>{const u=n._loadedInjector??t,{snapshot:d,consumedSegments:p,remainingSegments:m}=c,{segmentGroup:H,slicedSegments:D}=ib(i,p,m,l);if(0===D.length&&H.hasChildren())return this.processChildren(u,l,H).pipe(He(E=>null===E?null:[new Sn(d,E)]));if(0===l.length&&0===D.length)return ae([new Sn(d,[])]);const x=Tt(n)===a;return this.processSegment(u,l,H,D,x?_e:a,!0).pipe(He(E=>[new Sn(d,E)]))}))))}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 PQ(e,t,i,n){const r=t.canLoad;return void 0===r||0===r.length?ae(!0):ae(r.map(s=>{const o=Ci(s,e);return e3(function VQ(e){return e&&Va(e.canLoad)}(o)?o.canLoad(t,i):e.runInContext(()=>o(t,i)))})).pipe(yi(),eb())}(t,i,n).pipe(F1(r=>r?this.configLoader.loadChildren(t,i).pipe(q1(a=>{i._loadedRoutes=a.routes,i._loadedInjector=a.injector})):function UQ(e){return la(YM(!1,3))}())):ae({routes:[],injector:t})}}function eJ(e){const t=e.value.routeConfig;return t&&""===t.path}function rb(e){const t=[],i=new Set;for(const n of e){if(!eJ(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=rb(n.children);t.push(new Sn(n.value,r))}return t.filter(n=>!i.has(n))}function ab(e){return e.data||{}}function sb(e){return e.resolve||{}}function ob(e){return"string"==typeof e.title||null===e.title}function B7(e){return Mt(t=>{const i=e(t);return i?Q1(i).pipe(He(()=>t)):ae(t)})}const bi=new te("ROUTES");let U7=(()=>{var e;class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=J(sg)}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=e3(n.loadComponent()).pipe(He(cb),q1(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),w7(()=>{this.componentLoaders.delete(n)})),a=new _M(r,()=>new fe).pipe(M7());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=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe(He(c=>{this.onLoadEndListener&&this.onLoadEndListener(r);let l,u;return Array.isArray(c)?u=c:(l=c.create(n).injector,u=l.get(bi,[],ye.Self|ye.Optional).flat()),{routes:u.map(k7),injector:l}}),w7(()=>{this.childrenLoaders.delete(r)})),o=new _M(s,()=>new fe).pipe(M7());return this.childrenLoaders.set(r,o),o}loadModuleFactoryOrRoutes(n){return e3(n()).pipe(He(cb),F1(r=>r instanceof mm||Array.isArray(r)?ae(r):Q1(this.compiler.compileModuleAsync(r))))}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function cb(e){return function oJ(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let Yc=(()=>{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(U7),this.environmentInjector=J(R2),this.urlSerializer=J(ha),this.rootContexts=J(ya),this.inputBindingEnabled=null!==J(Gc,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>ae(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=a=>this.events.next(new eQ(a)),this.configLoader.onLoadStartListener=a=>this.events.next(new XZ(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:va,restoredState:null,currentSnapshot:a.snapshot,targetSnapshot:null,currentRouterState:a,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(z1(s=>0!==s.id),He(s=>({...s,extractedUrl:n.urlHandlingStrategy.extract(s.rawUrl)})),Mt(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}}),Mt(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 vi(l.id,this.urlSerializer.serialize(l.rawUrl),m,0)),l.resolve(null),ot}if(n.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return ae(l).pipe(Mt(m=>{const H=this.transitions?.getValue();return this.events.next(new _a(m.id,this.urlSerializer.serialize(m.extractedUrl),m.source,m.restoredState)),H!==this.transitions?.getValue()?ot:Promise.resolve(m)}),function tJ(e,t,i,n,r,a){return F1(s=>function QQ(e,t,i,n,r,a,s="emptyOnly"){return new JQ(e,t,i,n,r,s,a).recognize()}(e,t,i,n,s.extractedUrl,r,a).pipe(He(({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 PM(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:D,restoredState:x,extras:E}=l,z=new _a(m,this.urlSerializer.serialize(H),D,x);this.events.next(z);const B=jM(0,this.rootComponentType).snapshot;return this.currentTransition=s={...l,targetSnapshot:B,urlAfterRedirects:H,extras:{...E,skipLocationChange:!1,replaceUrl:!1}},ae(s)}{const m="";return this.events.next(new vi(l.id,this.urlSerializer.serialize(l.extractedUrl),m,1)),l.resolve(null),ot}}),q1(l=>{const u=new YZ(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(u)}),He(l=>(this.currentTransition=s={...l,guards:yQ(l.targetSnapshot,l.currentSnapshot,this.rootContexts)},s)),function NQ(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 AQ(e,t,i,n){return Q1(e).pipe(F1(r=>function kQ(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=ba(t)??r,l=Ci(o,c);return e3(function zQ(e){return e&&Va(e.canDeactivate)}(l)?l.canDeactivate(e,t,i,n):c.runInContext(()=>l(e,t,i,n))).pipe(k3())})).pipe(yi()):ae(!0)}(r.component,r.route,i,t,n)),k3(r=>!0!==r,!0))}(s,n,r,e).pipe(F1(o=>o&&function HQ(e){return"boolean"==typeof e}(o)?function EQ(e,t,i,n){return Q1(t).pipe(ua(r=>kr(function TQ(e,t){return null!==e&&t&&t(new tQ(e)),ae(!0)}(r.route.parent,n),function IQ(e,t){return null!==e&&t&&t(new iQ(e)),ae(!0)}(r.route,n),function RQ(e,t,i){const n=t[t.length-1],a=t.slice(0,t.length-1).reverse().map(s=>function MQ(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=>vM(()=>ae(s.guards.map(c=>{const l=ba(s.node)??i,u=Ci(c,l);return e3(function SQ(e){return e&&Va(e.canActivateChild)}(u)?u.canActivateChild(n,e):l.runInContext(()=>u(n,e))).pipe(k3())})).pipe(yi())));return ae(a).pipe(yi())}(e,r.path,i),function OQ(e,t,i){const n=t.routeConfig?t.routeConfig.canActivate:null;if(!n||0===n.length)return ae(!0);const r=n.map(a=>vM(()=>{const s=ba(t)??i,o=Ci(a,s);return e3(function DQ(e){return e&&Va(e.canActivate)}(o)?o.canActivate(t,e):s.runInContext(()=>o(t,e))).pipe(k3())}));return ae(r).pipe(yi())}(e,r.route,i))),k3(r=>!0!==r,!0))}(n,a,e,t):ae(o)),He(o=>({...i,guardsResult:o})))})}(this.environmentInjector,l=>this.events.next(l)),q1(l=>{if(s.guardsResult=l.guardsResult,B3(l.guardsResult))throw KM(0,l.guardsResult);const u=new ZZ(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(u)}),z1(l=>!!l.guardsResult||(this.cancelNavigationTransition(l,"",3),!1)),B7(l=>{if(l.guards.canActivateChecks.length)return ae(l).pipe(q1(u=>{const d=new QZ(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}),Mt(u=>{let d=!1;return ae(u).pipe(function nJ(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(ua(s=>function iJ(e,t,i,n){const r=e.routeConfig,a=e._resolve;return void 0!==r?.title&&!ob(r)&&(a[fa]=r.title),function rJ(e,t,i,n){const r=function aJ(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===r.length)return ae({});const a={};return Q1(r).pipe(F1(s=>function sJ(e,t,i,n){const r=ba(t)??n,a=Ci(e,r);return e3(a.resolve?a.resolve(t,i):r.runInContext(()=>a(t,i)))}(e[s],t,i,n).pipe(k3(),q1(o=>{a[s]=o}))),b7(1),B_(a),P3(s=>XM(s)?ot:la(s)))}(a,e,t,n).pipe(He(s=>(e._resolvedData=s,e.data=GM(e,i).resolve,r&&ob(r)&&(e.data[fa]=r.title),null)))}(s.route,n,e,t)),q1(()=>a++),b7(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 JZ(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}))}),B7(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}),He(()=>{})));for(const m of d.children)p.push(...u(m));return p};return y7(u(l.targetSnapshot.root)).pipe(Tc(),t2(1))}),B7(()=>this.afterPreactivation()),He(l=>{const u=function lQ(e,t,i){const n=Ma(e,t._root,i?i._root:void 0);return new UM(n,t)}(n.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=s={...l,targetRouterState:u},s}),q1(()=>{this.events.next(new x7)}),((e,t,i,n)=>He(r=>(new CQ(t,r.targetRouterState,r.currentRouterState,i,n).activate(e),r)))(this.rootContexts,n.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),t2(1),q1({next:l=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new t3(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),n.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{o=!0}}),R1(this.transitionAbortSubject.pipe(q1(l=>{throw l}))),w7(()=>{o||c||this.cancelNavigationTransition(s,"",1),this.currentNavigation?.id===s.id&&(this.currentNavigation=null)}),P3(l=>{if(c=!0,ZM(l))this.events.next(new Ca(s.id,this.urlSerializer.serialize(s.extractedUrl),l.message,l.cancellationCode)),function dQ(e){return ZM(e)&&B3(e.url)}(l)?this.events.next(new L7(l.url)):s.resolve(!1);else{this.events.next(new Uc(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 Ca(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 lb(e){return e!==va}let ub=(()=>{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[fa]}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:function(){return J(cJ)},providedIn:"root"}),t})(),cJ=(()=>{var e;class t extends ub{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(Sv))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),lJ=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:function(){return J(fJ)},providedIn:"root"}),t})();class uJ{shouldDetach(t){return!1}store(t,i){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,i){return t.routeConfig===i.routeConfig}}let fJ=(()=>{var e;class t extends uJ{}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=E1(e)))(r||e)}}(),e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const Zc=new te("",{providedIn:"root",factory:()=>({})});let dJ=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:function(){return J(hJ)},providedIn:"root"}),t})(),hJ=(()=>{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 Da=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(Da||{});function fb(e,t){e.events.pipe(z1(i=>i instanceof t3||i instanceof Ca||i instanceof Uc||i instanceof vi),He(i=>i instanceof t3||i instanceof vi?Da.COMPLETE:i instanceof Ca&&(0===i.code||1===i.code)?Da.REDIRECTING:Da.FAILED),z1(i=>i!==Da.REDIRECTING),t2(1)).subscribe(()=>{t()})}function pJ(e){throw e}function mJ(e,t,i){return t.parse("/")}const gJ={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},vJ={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(rg),this.isNgZoneEnabled=!1,this._events=new fe,this.options=J(Zc,{optional:!0})||{},this.pendingTasks=J(ag),this.errorHandler=this.options.errorHandler||pJ,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||mJ,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=J(dJ),this.routeReuseStrategy=J(lJ),this.titleStrategy=J(ub),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(bi,{optional:!0})?.flat()??[],this.navigationTransitions=J(Yc),this.urlSerializer=J(ha),this.location=J(V8),this.componentInputBindingEnabled=!!J(Gc,{optional:!0}),this.eventsSubscription=new De,this.isNgZoneEnabled=J(Me)instanceof Me&&Me.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new gi,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=jM(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(db(r)&&this._events.next(r));if(r instanceof _a)lb(a.source)&&(this.browserUrlTree=a.extractedUrl);else if(r instanceof vi)this.rawUrlTree=a.rawUrl;else if(r instanceof PM){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 x7)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 Ca)0!==r.code&&1!==r.code&&(this.navigated=!0),(3===r.code||2===r.code)&&this.restoreHistory(a);else if(r instanceof L7){const s=this.urlHandlingStrategy.merge(r.url,a.currentRawUrl),o={skipLocationChange:a.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||lb(a.source)};this.scheduleNavigation(s,va,null,o,{resolve:a.resolve,reject:a.reject,promise:a.promise})}r instanceof Uc&&this.restoreHistory(a,!0),r instanceof t3&&(this.navigated=!0),db(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),va,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(k7),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=AM(a?a.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof n[0]||!n[0].startsWith("/"))&&(n=[]),p=this.currentUrlTree.root}return EM(p,n,d,u??null)}navigateByUrl(n,r={skipLocationChange:!1}){const a=B3(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(a,this.rawUrlTree);return this.scheduleNavigation(s,va,null,r)}navigate(n,r={skipLocationChange:!1}){return function _J(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?{...gJ}:!1===r?{...vJ}:r,B3(n))return wM(this.currentUrlTree,n,a);const s=this.parseUrl(n);return wM(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 fb(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 db(e){return!(e instanceof x7||e instanceof L7)}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 t3&&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 yd(e,t,i){return function kE(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Cd:H4}(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(zn),function l3(e){return function nA(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(yf(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(Ne),w(jn))},e.\u0275dir=j({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,r){1&n&&R("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",Q4],skipLocationChange:["skipLocationChange","skipLocationChange",Q4],replaceUrl:["replaceUrl","replaceUrl",Q4],routerLink:"routerLink"},standalone:!0,features:[Ah,v1]}),t})();class hb{}let MJ=(()=>{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(z1(n=>n instanceof t3),ua(()=>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=$l(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(J3())}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(J3()):s})}}return(e=t).\u0275fac=function(n){return new(n||e)(q(_2),q(sg),q(R2),q(hb),q(U7))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const j7=new te("");let pb=(()=>{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 _a?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof t3?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof vi&&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 FM&&(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 FM(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 ah(){throw new Error("invalid")}()},e.\u0275prov=$({token:e,factory:e.\u0275fac}),t})();function Ln(e,t){return{\u0275kind:e,\u0275providers:t}}function gb(){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(vb);1===e.get(G7)&&n.initialNavigation(),e.get(_b,null,ye.Optional)?.setUpPreloading(),e.get(j7,null,ye.Optional)?.init(),n.resetRootComponentType(i.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}const vb=new te("",{factory:()=>new fe}),G7=new te("",{providedIn:"root",factory:()=>1}),_b=new te("");function VJ(e){return Ln(0,[{provide:_b,useExisting:MJ},{provide:hb,useExisting:e}])}const Cb=new te("ROUTER_FORROOT_GUARD"),SJ=[V8,{provide:ha,useClass:H7},_2,ya,{provide:zn,useFactory:function mb(e){return e.routerState.root},deps:[_2]},U7,[]];function zJ(){return new hg("Router",_2)}let yb=(()=>{var e;class t{constructor(n){}static forRoot(n,r){return{ngModule:t,providers:[SJ,[],{provide:bi,multi:!0,useValue:n},{provide:Cb,useFactory:AJ,deps:[[_2,new ys,new Ms]]},{provide:Zc,useValue:r||{}},r?.useHash?{provide:jn,useClass:Gg}:{provide:jn,useClass:jg},{provide:j7,useFactory:()=>{const e=J(TB),t=J(Me),i=J(Zc),n=J(Yc),r=J(ha);return i.scrollOffset&&e.setOffset(i.scrollOffset),new pb(r,n,e,t,i)}},r?.preloadingStrategy?VJ(r.preloadingStrategy).\u0275providers:[],{provide:hg,multi:!0,useFactory:zJ},r?.initialNavigation?EJ(r):[],r?.bindToComponentInputs?Ln(8,[qM,{provide:Gc,useExisting:qM}]).\u0275providers:[],[{provide:Mb,useFactory:gb},{provide:p8,multi:!0,useExisting:Mb}]]}}static forChild(n){return{ngModule:t,providers:[{provide:bi,multi:!0,useValue:n}]}}}return(e=t).\u0275fac=function(n){return new(n||e)(q(Cb,8))},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({}),t})();function AJ(e){return"guarded"}function EJ(e){return["disabled"===e.initialNavigation?Ln(3,[{provide:s8,multi:!0,useFactory:()=>{const t=J(_2);return()=>{t.setUpLocationChangeListener()}}},{provide:G7,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?Ln(2,[{provide:G7,useValue:0},{provide:s8,multi:!0,deps:[B1],useFactory:t=>{const i=t.get(mF,Promise.resolve());return()=>i.then(()=>new Promise(n=>{const r=t.get(_2),a=t.get(vb);fb(r,()=>{n(!0)}),t.get(Yc).afterPreactivation=()=>(n(!0),a.closed?ae(void 0):a),r.initialNavigation()}))}}]).\u0275providers:[]]}const Mb=new te("");let TJ=(()=>{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),M(4," Welcome to"),P(5,"br"),g(6,"b",4),M(7,"Eufy Security Plugin"),_()(),g(8,"h6",3),M(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),M(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,H4))},dependencies:[O7],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 bb(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 Se(e){return function(){var t=this,i=arguments;return new Promise(function(n,r){var a=e.apply(t,i);function s(c){bb(a,n,r,s,o,"next",c)}function o(c){bb(a,n,r,s,o,"throw",c)}s(void 0)})}}var Ab={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"]},Uw={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"]},cu={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"]},tD={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"]},xu={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"]},cx={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"]},L=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.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}(L||{});class Aa{static isDoorbell(t){return t===L.DOORBELL||t===L.BATTERY_DOORBELL||t===L.BATTERY_DOORBELL_2||t===L.BATTERY_DOORBELL_PLUS||t===L.DOORBELL_SOLO}static isCamera(t){return t===L.CAMERA||t===L.CAMERA2||t===L.CAMERA_E||t===L.CAMERA2C||t===L.INDOOR_CAMERA||t===L.INDOOR_PT_CAMERA||t===L.FLOODLIGHT||t===L.DOORBELL||t===L.BATTERY_DOORBELL||t===L.BATTERY_DOORBELL_2||t===L.BATTERY_DOORBELL_PLUS||t===L.DOORBELL_SOLO||t===L.CAMERA2C_PRO||t===L.CAMERA2_PRO||t===L.CAMERA3||t===L.CAMERA3C||t===L.INDOOR_CAMERA_1080||t===L.INDOOR_PT_CAMERA_1080||t===L.SOLO_CAMERA||t===L.SOLO_CAMERA_PRO||t===L.SOLO_CAMERA_SPOTLIGHT_1080||t===L.SOLO_CAMERA_SPOTLIGHT_2K||t===L.SOLO_CAMERA_SPOTLIGHT_SOLAR||t===L.INDOOR_OUTDOOR_CAMERA_1080P||t===L.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT||t===L.INDOOR_OUTDOOR_CAMERA_2K||t===L.INDOOR_COST_DOWN_CAMERA||t===L.FLOODLIGHT_CAMERA_8422||t===L.FLOODLIGHT_CAMERA_8423||t===L.FLOODLIGHT_CAMERA_8424||t===L.WALL_LIGHT_CAM||t===L.WALL_LIGHT_CAM_81A0||t===L.CAMERA_GARAGE_T8453_COMMON||t===L.CAMERA_GARAGE_T8453||t===L.CAMERA_GARAGE_T8452||t===L.CAMERA_FG}static supportsRTSP(t){return t===L.CAMERA||t===L.CAMERA2||t===L.CAMERA2C||t===L.CAMERA2C_PRO||t===L.CAMERA3||t===L.CAMERA3C||t===L.CAMERA_E||t===L.INDOOR_CAMERA||t===L.INDOOR_CAMERA_1080||t===L.INDOOR_OUTDOOR_CAMERA_1080P||t===L.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT||t===L.INDOOR_OUTDOOR_CAMERA_2K||t===L.INDOOR_PT_CAMERA||t===L.INDOOR_PT_CAMERA_1080||t===L.INDOOR_COST_DOWN_CAMERA||t===L.FLOODLIGHT_CAMERA_8423||t===L.CAMERA_GARAGE_T8453_COMMON||t===L.CAMERA_GARAGE_T8453||t===L.CAMERA_GARAGE_T8452||t===L.CAMERA_FG}static supportsTalkback(t){return t===L.CAMERA2||t===L.CAMERA2C||t===L.CAMERA2C_PRO||t===L.CAMERA2_PRO||t===L.CAMERA3||t===L.CAMERA3C||t===L.DOORBELL||t===L.BATTERY_DOORBELL||t===L.BATTERY_DOORBELL_2||t===L.BATTERY_DOORBELL_PLUS||t===L.DOORBELL_SOLO||t===L.INDOOR_CAMERA||t===L.INDOOR_CAMERA_1080||t===L.INDOOR_OUTDOOR_CAMERA_1080P||t===L.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT||t===L.INDOOR_OUTDOOR_CAMERA_2K||t===L.INDOOR_PT_CAMERA||t===L.INDOOR_PT_CAMERA_1080||t===L.INDOOR_COST_DOWN_CAMERA||t===L.SOLO_CAMERA||t===L.SOLO_CAMERA_PRO||t===L.SOLO_CAMERA_SPOTLIGHT_1080||t===L.SOLO_CAMERA_SPOTLIGHT_2K||t===L.SOLO_CAMERA_SPOTLIGHT_SOLAR||t===L.FLOODLIGHT||t===L.FLOODLIGHT_CAMERA_8422||t===L.FLOODLIGHT_CAMERA_8423||t===L.FLOODLIGHT_CAMERA_8424||t===L.WALL_LIGHT_CAM||t===L.WALL_LIGHT_CAM_81A0||t===L.CAMERA_GARAGE_T8453_COMMON||t===L.CAMERA_GARAGE_T8453||t===L.CAMERA_GARAGE_T8452||t===L.CAMERA_FG}}const Pu=new Map([[L.STATION,{image:"homebase2_large.jpg",padding:"0px"}],[L.HB3,{image:"homebase3_large.jpg",padding:"0px"}],[L.CAMERA,{image:"eufycam_large.jpg",padding:"0px"}],[L.SENSOR,{image:"sensor_large.jpg",padding:"0px"}],[L.FLOODLIGHT,{image:"floodlight_large.jpg",padding:"0px"}],[L.CAMERA_E,{image:"eufycam_large.jpg",padding:"0px"}],[L.DOORBELL,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[L.BATTERY_DOORBELL,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[L.CAMERA2C,{image:"eufycam2c_large.jpg",padding:"0px"}],[L.CAMERA2,{image:"eufycam2_large.jpg",padding:"0px"}],[L.CAMERA3C,{image:"eufycam3c_large.jpg",padding:"0px"}],[L.CAMERA3,{image:"eufycam3_large.jpg",padding:"0px"}],[L.MOTION_SENSOR,{image:"motionsensor_large.jpg",padding:"0px"}],[L.KEYPAD,{image:"keypad_large.jpg",padding:"0px"}],[L.CAMERA2_PRO,{image:"eufycam2pro_large.jpg",padding:"0px"}],[L.CAMERA2C_PRO,{image:"eufycam2cpro_large.jpg",padding:"0px"}],[L.BATTERY_DOORBELL_2,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[L.INDOOR_CAMERA,{image:"indoorcammini_large.jpg",padding:"0px"}],[L.INDOOR_PT_CAMERA,{image:"indoorcamp24_large.jpg",padding:"0px"}],[L.SOLO_CAMERA,{image:"solocame20_large.jpg",padding:"0px"}],[L.SOLO_CAMERA_PRO,{image:"solocame20_large.jpg",padding:"0px"}],[L.INDOOR_CAMERA_1080,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[L.INDOOR_PT_CAMERA_1080,{image:"indoorcamp24_large.jpg",padding:"0px"}],[L.FLOODLIGHT_CAMERA_8422,{image:"floodlight_large.jpg",padding:"0px"}],[L.FLOODLIGHT_CAMERA_8423,{image:"floodlight2pro_large.jpg",padding:"0px"}],[L.FLOODLIGHT_CAMERA_8424,{image:"floodlight2_large.jpg",padding:"0px"}],[L.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[L.INDOOR_OUTDOOR_CAMERA_2K,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[L.INDOOR_OUTDOOR_CAMERA_1080P,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[L.LOCK_BLE,{image:"smartlock_touch_t8510_large.jpg",padding:"0px"}],[L.LOCK_WIFI,{image:"smartlock_touch_t8510_large.jpg",padding:"0px"}],[L.LOCK_BLE_NO_FINGER,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[L.LOCK_WIFI_NO_FINGER,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[L.LOCK_8503,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[L.LOCK_8530,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[L.LOCK_85A3,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[L.LOCK_8592,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[L.LOCK_8504,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[L.SOLO_CAMERA_SPOTLIGHT_1080,{image:"solooutdoorcamc24_large.jpg",padding:"15px"}],[L.SOLO_CAMERA_SPOTLIGHT_2K,{image:"solooutdoorcamc24_large.jpg",padding:"15px"}],[L.SOLO_CAMERA_SPOTLIGHT_SOLAR,{image:"solocams40_large.jpg",padding:"10px"}],[L.SMART_DROP,{image:"smartdrop_t8790_large.jpg",padding:"20px"}],[L.BATTERY_DOORBELL_PLUS,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[L.DOORBELL_SOLO,{image:"wireddoorbelldual_large.jpg",padding:"0px"}],[L.INDOOR_COST_DOWN_CAMERA,{image:"indoorcammini_large.jpg",padding:"0px"}],[L.CAMERA_GUN,{image:"unknown.png",padding:"20px"}],[L.CAMERA_SNAIL,{image:"unknown.png",padding:"20px"}],[L.CAMERA_FG,{image:"4g_lte_starlight_large.jpg",padding:"20px"}],[L.SMART_SAFE_7400,{image:"smartsafe_s10_t7400_large.jpg",padding:"20px"}],[L.SMART_SAFE_7401,{image:"smartsafe_s12_t7401_large.jpg",padding:"20px"}],[L.SMART_SAFE_7402,{image:"unknown.png",padding:"20px"}],[L.SMART_SAFE_7403,{image:"unknown.png",padding:"20px"}],[L.WALL_LIGHT_CAM,{image:"walllight_s100_large.jpg",padding:"20px"}],[L.SMART_TRACK_LINK,{image:"unknown.png",padding:"20px"}],[L.SMART_TRACK_CARD,{image:"unknown.png",padding:"20px"}],[L.LOCK_8502,{image:"unknown.png",padding:"20px"}],[L.LOCK_8506,{image:"unknown.png",padding:"20px"}],[L.WALL_LIGHT_CAM_81A0,{image:"walllight_s100_large",padding:"20px"}],[L.CAMERA_GARAGE_T8452,{image:"garage_camera_t8452_small.jpg",padding:"20px"}],[L.CAMERA_GARAGE_T8453,{image:"unknown.png",padding:"20px"}],[L.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$",e2(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 Se(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 Se(function*(){return n.config?Promise.resolve(n.config):n.getPlatformConfig()})()}updateConfig(n,r){var a=this;return Se(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 Se(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 Se(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 ige(e,t){if(1&e){const i=I1();g(0,"div",2)(1,"h4",3),M(2,"Refresh stations and devices"),_(),g(3,"button",4),R("click",function(){return Z(Y(i).$implicit.dismiss("Cross click"))}),_()(),g(4,"div",5)(5,"div",6),M(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),M(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"),M(11," Otherwise you might experience glitches like no longer working push notifications for the plugin (see "),g(12,"a",8),M(13,"here"),_(),M(14," for more information). "),_()(),g(15,"div",9)(16,"a",10),R("click",function(){return Z(Y(i).$implicit.close("Login"))}),M(17,"Login with eufy"),_()()}}function rge(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),M(6," Loading Accessories... "),g(7,"div",17),P(8,"div",18),_()()()(),P(9,"div",13),_()())}function age(e,t){if(1&e&&(g(0,"span",42),P(1,"fa-icon",43),_()),2&e){const i=I(3);C(1),b("icon",i.ignoreIcon)}}function sge(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),_(),O(8,age,2,1,"span",39),_()()()(),g(9,"span",40),M(10),_(),g(11,"span",41),M(12),_()()),2&e){const i=t.$implicit,n=I(2);let r;C(3),G4("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"),H4),W("style",n.getDevicePanelStyle(i),hn),C(2),b("icon",n.settingsIcon),C(1),b("ngIf",i.ignored),C(2),ht(i.cachedName?i.cachedName:i.displayName),C(2),Q2("(",i.uniqueId,")")}}function oge(e,t){if(1&e&&(g(0,"span",42),P(1,"fa-icon",43),_()),2&e){const i=I(3);C(1),b("icon",i.ignoreIcon)}}function cge(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),_(),O(8,oge,2,1,"span",39),_()()()(),g(9,"span",40),M(10),_(),g(11,"span",41),M(12),_()()),2&e){const i=t.$implicit,n=I(2);let r;C(3),G4("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"),H4),W("style",n.getDevicePanelStyle(i),hn),C(2),b("icon",n.settingsIcon),C(1),b("ngIf",i.ignored),C(2),ht(i.cachedName?i.cachedName:i.displayName),C(2),Q2("(",i.uniqueId,")")}}function lge(e,t){if(1&e){const i=I1();g(0,"div",11)(1,"div",19)(2,"div",20)(3,"button",21),R("click",function(){Y(i);const r=I(),a=k2(1);return Z(r.openReloadModal(a))}),P(4,"fa-icon",22),_()(),g(5,"div",23)(6,"a",24),M(7,"Plugin Settings"),_()()(),P(8,"p"),g(9,"span"),M(10,"Click on any device below to access its settings."),_(),P(11,"p"),g(12,"div",25)(13,"div",26),M(14," Stations "),_(),g(15,"div",27)(16,"div",19),O(17,sge,13,7,"div",28),_()()(),P(18,"p"),g(19,"div",25)(20,"div",26),M(21," Devices "),_(),g(22,"div",29)(23,"div",19),O(24,cge,13,7,"div",28),_()()(),P(25,"p"),g(26,"span")(27,"i"),M(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),M(30,"Github page."),_()()()()}if(2&e){const i=I();C(4),b("icon",i.reloadIcon),C(13),b("ngForOf",i.stations),C(7),b("ngForOf",i.devices)}}let uge=(()=>{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",cu),V(this,"ignoreIcon",Uw),V(this,"reloadIcon",xu),V(this,"DeviceImage",Pu),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 Se(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===Yr.ESC?"by pressing ESC":n===Yr.BACKDROP_CLICK?"by clicking on a backdrop":`with: ${n}`}getDevicePanelStyle(n){let r="";return n.ignored&&(r+="opacity: 0.2;"),Pu.get(n.type)?r+="padding:"+Pu.get(n.type)?.padding:r+="padding:20px",r}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(qC),w(r1),w(zn),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&&(O(0,ige,18,0,"ng-template",null,0,S2),O(2,rge,10,0,"div",1),O(3,lge,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,O1,xn,mM],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 U3={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=U3,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 Se(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 Se(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 Se(function*(){let r=yield n.pluginService.getConfig();if(i||(r={...U3,...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 fge=(()=>{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"),M(3,"Debug Mode"),_(),g(4,"div",2)(5,"input",3),R("ngModelChange",function(s){return r.model=s})("change",function(){return r.update()}),_()()(),g(6,"small")(7,"i"),M(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,S1,M1],encapsulation:2})),t})(),dge=(()=>{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"),M(3,"Polling Interval"),_(),g(4,"div",2)(5,"div",3)(6,"input",4),R("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),_(),g(7,"div",5)(8,"span",6),M(9,"minutes"),_()()()()(),g(10,"small")(11,"i"),M(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:[$n,ti,S1,M1],encapsulation:2})),t})(),hge=(()=>{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"),M(3,"Maximum Livestream Duration"),_(),g(4,"div",2)(5,"div",3)(6,"input",4),R("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),_(),g(7,"div",5)(8,"span",6),M(9,"seconds"),_()()()()(),g(10,"small")(11,"i"),M(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:[$n,ti,S1,M1],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-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),M(3,"Change username, password and country"),_(),g(4,"a",3),M(5,"New Login"),_()()())},dependencies:[xn],encapsulation:2})),t})(),mge=(()=>{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"),M(3,"Clean cache automatically"),_(),g(4,"div",2)(5,"input",3),R("ngModelChange",function(s){return r.model=s})("change",function(){return r.update()}),_()()(),g(6,"small")(7,"i"),M(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,S1,M1],encapsulation:2})),t})(),gge=(()=>{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:U3.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"),M(3,"Unbridge Camera"),_(),g(4,"div",2)(5,"input",3),R("ngModelChange",function(s){return r.model=s})("change",function(){return r.update()}),_()()(),g(6,"small")(7,"i"),M(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),M(10,"here"),_(),M(11," for mor details. "),_()()()),2&n&&(C(5),b("ngModel",r.model))},dependencies:[v2,S1,M1],encapsulation:2})),t})();function vge(e,t){1&e&&(g(0,"span"),M(1,"These settings will only apply for this station. The global mappings can be found in the plugin settings."),_())}function _ge(e,t){1&e&&(g(0,"option",6),M(1,"Use global setting"),_()),2&e&&b("ngValue",void 0)}function Cge(e,t){1&e&&(g(0,"option",6),M(1,"Use global setting"),_()),2&e&&b("ngValue",void 0)}function yge(e,t){1&e&&(g(0,"option",6),M(1,"Use global setting"),_()),2&e&&b("ngValue",void 0)}function Mge(e,t){1&e&&(g(0,"option",6),M(1,"Use global setting"),_()),2&e&&b("ngValue",void 0)}let bge=(()=>{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 Se(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=U3.hkHome),r&&Object.prototype.hasOwnProperty.call(r,"hkAway")?n.hkAway=r.hkAway:n.accessory||(n.hkAway=U3.hkAway),r&&Object.prototype.hasOwnProperty.call(r,"hkNight")?n.hkNight=r.hkNight:n.accessory||(n.hkNight=U3.hkNight),r&&Object.prototype.hasOwnProperty.call(r,"hkOff")?n.hkOff=r.hkOff:n.accessory||(n.hkOff=U3.hkOff)})()}update(){var n=this;return Se(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"),M(2,"Change how each mode in the HomeKit security system is mapped to the modes in the Eufy App."),_(),P(3,"p"),O(4,vge,2,0,"span",1),P(5,"p"),g(6,"div",2)(7,"label",3),M(8,"HomeKit Home"),_(),g(9,"select",4),R("ngModelChange",function(s){return r.hkHome=s})("change",function(){return r.update()}),O(10,_ge,2,1,"option",5),g(11,"option",6),M(12,"Eufy Home"),_(),g(13,"option",6),M(14,"Eufy Away"),_(),g(15,"option",6),M(16,"Eufy Schedule"),_(),g(17,"option",6),M(18,"Eufy Custom 1 (Night)"),_(),g(19,"option",6),M(20,"Eufy Custom 2"),_(),g(21,"option",6),M(22,"Eufy Custom 3"),_(),g(23,"option",6),M(24,"Eufy Geofencing"),_(),g(25,"option",6),M(26,"Eufy Disarmed"),_()()(),g(27,"div",2)(28,"label",7),M(29,"HomeKit Away"),_(),g(30,"select",8),R("ngModelChange",function(s){return r.hkAway=s})("change",function(){return r.update()}),O(31,Cge,2,1,"option",5),g(32,"option",6),M(33,"Eufy Home"),_(),g(34,"option",6),M(35,"Eufy Away"),_(),g(36,"option",6),M(37,"Eufy Schedule"),_(),g(38,"option",6),M(39,"Eufy Custom 1 (Night)"),_(),g(40,"option",6),M(41,"Eufy Custom 2"),_(),g(42,"option",6),M(43,"Eufy Custom 3"),_(),g(44,"option",6),M(45,"Eufy Geofencing"),_(),g(46,"option",6),M(47,"Eufy Disarmed"),_()()(),g(48,"div",2)(49,"label",9),M(50,"HomeKit Night"),_(),g(51,"select",10),R("ngModelChange",function(s){return r.hkNight=s})("change",function(){return r.update()}),O(52,yge,2,1,"option",5),g(53,"option",6),M(54,"Eufy Home"),_(),g(55,"option",6),M(56,"Eufy Away"),_(),g(57,"option",6),M(58,"Eufy Schedule"),_(),g(59,"option",6),M(60,"Eufy Custom 1 (Night)"),_(),g(61,"option",6),M(62,"Eufy Custom 2"),_(),g(63,"option",6),M(64,"Eufy Custom 3"),_(),g(65,"option",6),M(66,"Eufy Geofencing"),_(),g(67,"option",6),M(68,"Eufy Disarmed"),_()()(),g(69,"div",2)(70,"label",11),M(71,"HomeKit Off"),_(),g(72,"select",12),R("ngModelChange",function(s){return r.hkOff=s})("change",function(){return r.update()}),O(73,Mge,2,1,"option",5),g(74,"option",6),M(75,"Eufy Home"),_(),g(76,"option",6),M(77,"Eufy Away"),_(),g(78,"option",6),M(79,"Eufy Schedule"),_(),g(80,"option",6),M(81,"Eufy Custom 1 (Night)"),_(),g(82,"option",6),M(83,"Eufy Custom 2"),_(),g(84,"option",6),M(85,"Eufy Custom 3"),_(),g(86,"option",6),M(87,"Eufy Geofencing"),_(),g(88,"option",6),M(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:[O1,b3,w3,yn,S1,M1],encapsulation:2})),t})(),wge=(()=>{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),M(3,"Reset Plugin"),_(),g(4,"a",3),M(5,"Remove everything"),_()(),g(6,"small")(7,"i"),M(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})(),Hge=(()=>{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"),M(3,"Don't store log files"),_(),g(4,"div",2)(5,"input",3),R("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),_()()(),g(6,"small")(7,"i"),M(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,S1,M1],encapsulation:2})),t})();var Vge=u1(7);function Dge(e,t){if(1&e&&(g(0,"div",7),M(1),_()),2&e){const i=I();C(1),Q2(" ",i.failureMessage," ")}}function Sge(e,t){1&e&&P(0,"span",10)}function zge(e,t){1&e&&(g(0,"span"),M(1,"Download Logs"),_())}function xge(e,t){1&e&&(g(0,"span"),M(1," Generating Log File..."),_())}function Lge(e,t){if(1&e){const i=I1();g(0,"button",8),R("click",function(){return Y(i),Z(I().downloadLogs())}),O(1,Sge,1,0,"span",9),O(2,zge,2,0,"span",6),O(3,xge,2,0,"span",6),_()}if(2&e){const i=I();W("disabled",!!i.isDownloading||null),C(1),b("ngIf",i.isDownloading),C(1),b("ngIf",!i.isDownloading),C(1),b("ngIf",i.isDownloading)}}function Nge(e,t){if(1&e){const i=I1();g(0,"a",11),R("click",function(){return Y(i),Z(I().openLink())}),g(1,"span"),M(2,"Download Logs"),_()()}}function Age(e,t){if(1&e&&(g(0,"small")(1,"i"),M(2),_()()),2&e){const i=I();C(2),Q2(" ",i.downloadMessage," ")}}function Ege(e,t){1&e&&(g(0,"small")(1,"i"),M(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"),M(5,"Please make sure that you have pop-ups allowed for this site. If you're not sure, maybe this "),g(6,"a",12),M(7,"site"),_(),M(8," can help."),_()()())}let Ige=(()=>{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 _a&&""!==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 Se(function*(){try{n.isDownloading=!0;const r=yield window.homebridge.request("/downloadLogs"),a=Vge.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),O(1,Dge,2,1,"div",1),g(2,"div",2)(3,"span",3),M(4,"Download Logs"),_(),O(5,Lge,4,4,"button",4),O(6,Nge,3,0,"a",5),_(),O(7,Age,3,1,"small",6),O(8,Ege,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:[O1],encapsulation:2})),t})(),Tge=(()=>{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),M(1,"Back to Devices List"),_(),g(2,"div",1)(3,"div",2),M(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,fge,dge,hge,pge,mge,gge,bge,wge,Hge,Ige],encapsulation:2})),t})(),Qx=(()=>{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 Se(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 Se(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"),M(3),_(),g(4,"div",2)(5,"input",3),R("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,S1,M1],encapsulation:2})),t})();function Oge(e,t){1&e&&(g(0,"small")(1,"i"),M(2," This option is disabled since doorbells are handled always as cameras. "),_()())}function Rge(e,t){1&e&&(g(0,"small")(1,"i"),M(2," Cameras are handled as Motion Sensor by default, switch this setting to use as Camera "),_()())}let kge=(()=>{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 Se(function*(){n.accessory&&Aa.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"),M(3,"Operation Mode"),_(),g(4,"div",2)(5,"select",3),R("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),g(6,"option",4),M(7,"Motion Sensor"),_(),g(8,"option",5),M(9,"Camera"),_()()()(),O(10,Oge,3,0,"small",6),O(11,Rge,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:[O1,b3,w3,yn,S1,M1],encapsulation:2})),t})(),Pge=(()=>{var e;class t extends L1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"enableCameraButton",!0),V(this,"enableMotionButton",!0)}ngOnInit(){this.readValue()}readValue(){var n=this;return Se(function*(){const r=yield n.getCameraConfig(n.accessory?.uniqueId||"");r&&Object.prototype.hasOwnProperty.call(r,"enableButton")&&(n.enableCameraButton=r.enableButton),r&&Object.prototype.hasOwnProperty.call(r,"motionButton")&&(n.enableMotionButton=r.motionButton)})()}update(){this.updateConfig({enableButton:this.enableCameraButton,motionButton:this.enableMotionButton},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:17,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"],["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"),M(3,"Display HomeKit button to switch camera on/off"),_(),g(4,"div",2)(5,"input",3),R("ngModelChange",function(s){return r.enableCameraButton=s})("change",function(){return r.update()}),_()()(),g(6,"div",1)(7,"span"),M(8,"Display HomeKit button to switch motion detection on/off"),_(),g(9,"div",2)(10,"input",3),R("ngModelChange",function(s){return r.enableMotionButton=s})("change",function(){return r.update()}),_()()(),g(11,"small")(12,"i"),M(13," When changing these settings you might need to clear accessory cache (homebridge settings) so it can take effect. See "),g(14,"a",4),M(15,"here"),_(),M(16," for more details. "),_()()()),2&n&&(C(5),b("ngModel",r.enableCameraButton),C(5),b("ngModel",r.enableMotionButton))},dependencies:[v2,S1,M1],encapsulation:2})),t})(),Fge=(()=>{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 Se(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"),M(3,"Use Local Livestream Caching"),_(),g(4,"div",2)(5,"input",3),R("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),_()()(),g(6,"small")(7,"i")(8,"b"),M(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"),M(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,S1,M1],encapsulation:2})),t})();function Bge(e,t){1&e&&(g(0,"div",5),M(1," Talkback will not work while 'RTSP Streaming' is enabled! "),_())}let Uge=(()=>{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 Se(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"),M(3,"Use RTSP streaming"),_(),g(4,"div",2)(5,"input",3),R("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),_()()(),O(6,Bge,2,0,"div",4),g(7,"small")(8,"i"),M(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:[O1,v2,S1,M1],encapsulation:2})),t})(),jge=(()=>{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 Se(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 Se(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"),M(3,"Enable Audio"),_(),g(4,"div",2)(5,"input",3),R("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),_()()(),g(6,"small")(7,"i"),M(8," Try to enable audio streaming for this device."),P(9,"br"),M(10," If you encounter problems try to disable this setting. "),_()(),P(11,"p"),g(12,"div",4)(13,"span"),M(14,"Force Audio Sample Rate"),_(),g(15,"div",5)(16,"select",6),R("ngModelChange",function(s){return r.samplerate=s})("change",function(){return r.update()}),g(17,"option",7),M(18,"Default Sample Rate"),_(),g(19,"option",7),M(20,"8 kHz"),_(),g(21,"option",7),M(22,"16 kHz"),_(),g(23,"option",7),M(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:[b3,w3,v2,yn,S1,M1],encapsulation:2})),t})(),Gge=(()=>{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 Se(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"),M(3,"Force Refresh Snapshot (Deprecated)"),_(),g(4,"div",2)(5,"input",3),R("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),_()()(),g(6,"small")(7,"i"),M(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"),M(10," This option is only used if you have disabled enhanced snapshot handling. "),_()()()),2&n&&(C(5),b("ngModel",r.value))},dependencies:[v2,S1,M1],encapsulation:2})),t})();function $ge(e,t){if(1&e&&(g(0,"small")(1,"i")(2,"b"),M(3,"Description:"),_(),M(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"),M(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),M(9," Up-to-date Snapshots (events)"),P(10,"br")(11,"fa-icon",6),M(12," Up-to-date Snapshots (HomeKit View)"),P(13,"br")(14,"fa-icon",7),M(15," Performance"),P(16,"br")(17,"fa-icon",7),M(18," Battery life"),P(19,"br"),_()()),2&e){const i=I();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 Wge(e,t){if(1&e&&(g(0,"small")(1,"i")(2,"b"),M(3,"Description:"),_(),M(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"),M(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),M(9," Up-to-date Snapshots (events)"),P(10,"br")(11,"fa-icon",8),M(12," Up-to-date Snapshots (HomeKit View)"),P(13,"br")(14,"fa-icon",6),M(15," Performance"),P(16,"br")(17,"fa-icon",7),M(18," Battery life"),P(19,"br"),_()()),2&e){const i=I();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 qge(e,t){if(1&e&&(g(0,"small")(1,"i")(2,"b"),M(3,"Description:"),_(),M(4," The plugin will preferablly use cloud snapshots from eufy to fulfill snapshot requests as fast as possible."),P(5,"br"),M(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),M(9," Up-to-date Snapshots (events)"),P(10,"br")(11,"fa-icon",7),M(12," Up-to-date Snapshots (HomeKit View)"),P(13,"br")(14,"fa-icon",6),M(15," Performance"),P(16,"br")(17,"fa-icon",6),M(18," Battery life"),P(19,"br"),_()()),2&e){const i=I();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 Kge=(()=>{var e;class t extends L1{constructor(n){super(n),V(this,"plusIcon",cx),V(this,"minusIcon",Ab),V(this,"mediumIcon",tD),V(this,"accessory",void 0),V(this,"value",3)}ngOnInit(){this.readValue()}readValue(){var n=this;return Se(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"),M(3,"Snapshot Handling Method"),_(),g(4,"div",2)(5,"select",3),R("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),g(6,"option",4),M(7,"Force Refresh Snapshots"),_(),g(8,"option",4),M(9,"Balanced"),_(),g(10,"option",4),M(11,"Cloud Snapshots"),_()()()(),O(12,$ge,20,4,"small",5),O(13,Wge,20,4,"small",5),O(14,qge,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:[O1,b3,w3,yn,S1,M1,mM],encapsulation:2})),t})(),Yge=(()=>{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 Se(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"),M(3,"Immediate Notification on ring events"),_(),g(4,"div",2)(5,"input",3),R("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),_()()(),g(6,"small")(7,"i"),M(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"),M(11,"This option however delivers most likely an empty (black) snapshot on those events!"),_()()()()),2&n&&(C(5),b("ngModel",r.value))},dependencies:[v2,S1,M1],encapsulation:2})),t})(),Zge=(()=>{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 Se(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"),M(3,"Night-Vision Improvement for camera snapshots"),_(),g(4,"div",2)(5,"input",3),R("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),_()()(),g(6,"small")(7,"i"),M(8," Force night vision on dark snapshots to improve the image."),P(9,"br"),g(10,"b"),M(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,S1,M1],encapsulation:2})),t})(),Qge=(()=>{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 Se(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"),M(3,"Periodic Snapshot Refresh"),_(),g(4,"div",2)(5,"input",3),R("change",function(){return r.switchSetting()}),_()()(),g(6,"div",4)(7,"span"),M(8,"Refresh Interval"),_(),g(9,"div",5)(10,"div",6)(11,"input",7),R("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),_(),g(12,"div",8)(13,"span",9),M(14,"minutes"),_()()()()(),g(15,"small")(16,"i"),M(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"),M(19," Best used with 'Cloud Snapshots' handling method."),P(20,"br"),M(21," Every setting below 5 minutes will be discarded due to performance reasons."),P(22,"br"),g(23,"b"),M(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:[$n,ti,S1,M1],encapsulation:2})),t})();function Jge(e,t){1&e&&(g(0,"span")(1,"b"),M(2,"Advanced Video Config"),_()())}function Xge(e,t){1&e&&(g(0,"button",4)(1,"span")(2,"b"),M(3,"Advanced Video Config"),_()()())}function eve(e,t){if(1&e&&(g(0,"div"),M(1),_()),2&e){const i=I(2);C(1),Q2(" ",i.presetDescription," ")}}function tve(e,t){if(1&e){const i=I1();M(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"),M(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),R("ngModelChange",function(r){return Y(i),Z(I().preset=r)})("change",function(){return Y(i),Z(I().loadPreset())}),g(7,"option",8),M(8,"No Preset (default)"),_(),g(9,"option",8),M(10,"Copy"),_(),g(11,"option",8),M(12,"Performance"),_(),g(13,"option",8),M(14,"Custom"),_()()()(),O(15,eve,2,1,"div",9),P(16,"p"),g(17,"div",10)(18,"div",11)(19,"input",12),R("ngModelChange",function(r){return Y(i),Z(I().debug=r)})("change",function(){return Y(i),Z(I().update())}),_()(),g(20,"span",13),M(21,"ffmpeg debug"),_()(),g(22,"div",10)(23,"div",11)(24,"input",12),R("ngModelChange",function(r){return Y(i),Z(I().useSeparateProcesses=r)})("change",function(){return Y(i),Z(I().update())}),_()(),g(25,"span",13),M(26,"use separate processes for video and audio"),_()(),g(27,"div",10)(28,"div",11)(29,"input",12),R("ngModelChange",function(r){return Y(i),Z(I().readRate=r)})("change",function(){return Y(i),Z(I().update())}),_()(),g(30,"span",13),M(31,"readRate"),_()(),g(32,"div",10)(33,"div",11)(34,"input",14),R("change",function(){Y(i);const r=I();return r.vcodec=void 0===r.vcodec?"":void 0,Z(r.update())}),_()(),g(35,"span",13),M(36,"vcodec"),_(),g(37,"input",15),R("ngModelChange",function(r){return Y(i),Z(I().vcodec=r)})("change",function(){return Y(i),Z(I().update())}),_()(),g(38,"div",10)(39,"div",11)(40,"input",14),R("change",function(){Y(i);const r=I();return r.acodec=void 0===r.acodec?"":void 0,Z(r.update())}),_()(),g(41,"span",13),M(42,"acodec"),_(),g(43,"input",16),R("ngModelChange",function(r){return Y(i),Z(I().acodec=r)})("change",function(){return Y(i),Z(I().update())}),_()(),g(44,"div",10)(45,"div",11)(46,"input",14),R("change",function(){Y(i);const r=I();return r.videoFilter=void 0===r.videoFilter?"":void 0,Z(r.update())}),_()(),g(47,"span",13),M(48,"videoFilter"),_(),g(49,"input",17),R("ngModelChange",function(r){return Y(i),Z(I().videoFilter=r)})("change",function(){return Y(i),Z(I().update())}),_()(),g(50,"div",10)(51,"div",11)(52,"input",14),R("change",function(){Y(i);const r=I();return r.encoderOptions=void 0===r.encoderOptions?"":void 0,Z(r.update())}),_()(),g(53,"span",13),M(54,"encoderOptions"),_(),g(55,"input",18),R("ngModelChange",function(r){return Y(i),Z(I().encoderOptions=r)})("change",function(){return Y(i),Z(I().update())}),_()(),g(56,"div",10)(57,"div",11)(58,"input",14),R("change",function(){Y(i);const r=I();return r.probeSize=void 0===r.probeSize?0:void 0,Z(r.update())}),_()(),g(59,"span",13),M(60,"probeSize"),_(),g(61,"input",19),R("ngModelChange",function(r){return Y(i),Z(I().probeSize=r)})("change",function(){return Y(i),Z(I().update())}),_()(),g(62,"div",10)(63,"div",11)(64,"input",14),R("change",function(){Y(i);const r=I();return r.analyzeDuration=void 0===r.analyzeDuration?0:void 0,Z(r.update())}),_()(),g(65,"span",13),M(66,"analyzeDuration"),_(),g(67,"input",19),R("ngModelChange",function(r){return Y(i),Z(I().analyzeDuration=r)})("change",function(){return Y(i),Z(I().update())}),_()(),g(68,"div",10)(69,"div",11)(70,"input",14),R("change",function(){Y(i);const r=I();return r.maxStreams=void 0===r.maxStreams?0:void 0,Z(r.update())}),_()(),g(71,"span",13),M(72,"maxStreams"),_(),g(73,"input",19),R("ngModelChange",function(r){return Y(i),Z(I().maxStreams=r)})("change",function(){return Y(i),Z(I().update())}),_()(),g(74,"div",10)(75,"div",11)(76,"input",14),R("change",function(){Y(i);const r=I();return r.maxWidth=void 0===r.maxWidth?0:void 0,Z(r.update())}),_()(),g(77,"span",13),M(78,"maxWidth"),_(),g(79,"input",19),R("ngModelChange",function(r){return Y(i),Z(I().maxWidth=r)})("change",function(){return Y(i),Z(I().update())}),_()(),g(80,"div",10)(81,"div",11)(82,"input",14),R("change",function(){Y(i);const r=I();return r.maxHeight=void 0===r.maxHeight?0:void 0,Z(r.update())}),_()(),g(83,"span",13),M(84,"maxHeight"),_(),g(85,"input",19),R("ngModelChange",function(r){return Y(i),Z(I().maxHeight=r)})("change",function(){return Y(i),Z(I().update())}),_()(),g(86,"div",10)(87,"div",11)(88,"input",14),R("change",function(){Y(i);const r=I();return r.maxFPS=void 0===r.maxFPS?0:void 0,Z(r.update())}),_()(),g(89,"span",13),M(90,"fps"),_(),g(91,"input",19),R("ngModelChange",function(r){return Y(i),Z(I().maxFPS=r)})("change",function(){return Y(i),Z(I().update())}),_()(),g(92,"div",10)(93,"div",11)(94,"input",14),R("change",function(){Y(i);const r=I();return r.maxBitrate=void 0===r.maxBitrate?0:void 0,Z(r.update())}),_()(),g(95,"span",13),M(96,"bitrate"),_(),g(97,"input",19),R("ngModelChange",function(r){return Y(i),Z(I().maxBitrate=r)})("change",function(){return Y(i),Z(I().update())}),_()()}if(2&e){const i=I();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 nve=(()=>{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 Se(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 Se(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"),O(3,Jge,3,0,"ng-template",1),O(4,Xge,4,0,"ng-template",2),O(5,tve,98,54,"ng-template",3),_()())},dependencies:[O1,b3,w3,$n,ti,v2,yn,S1,M1,I5,ec,N5,A5,Xo,E5],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 ive(e,t){1&e&&(g(0,"div",5),M(1," Talkback will not work while 'RTSP Streaming' is enabled! "),_())}let rve=(()=>{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 Se(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"),M(3,"Enable Talkback (Two way communication)"),_(),g(4,"div",2)(5,"input",3),R("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),_()()(),O(6,ive,2,0,"div",4),g(7,"small")(8,"i"),M(9," Enables you to talk with someone infront of the camera while streaming. "),P(10,"p"),M(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:[O1,v2,S1,M1],encapsulation:2})),t})();function ave(e,t){1&e&&P(0,"hr")}function sve(e,t){1&e&&P(0,"app-rtsp-streaming",6),2&e&&b("accessory",I(3).accessory)}function ove(e,t){1&e&&P(0,"hr")}function cve(e,t){1&e&&P(0,"app-talkback",6),2&e&&b("accessory",I(3).accessory)}function lve(e,t){if(1&e&&(g(0,"div"),P(1,"hr")(2,"app-enable-camera",6)(3,"hr")(4,"app-livestream-cache",6),O(5,ave,1,0,"hr",2),O(6,sve,1,1,"app-rtsp-streaming",7),P(7,"hr")(8,"app-enable-audio",6),O(9,ove,1,0,"hr",2),O(10,cve,1,1,"app-talkback",7),_()),2&e){const i=I(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 uve(e,t){if(1&e&&(g(0,"div",3)(1,"div",4)(2,"b"),M(3,"Camera Settings"),_(),M(4," for "),g(5,"i"),M(6),_()(),g(7,"div",5),P(8,"app-ignore-accessory",6),O(9,lve,11,7,"div",2),_()()),2&e){const i=I();C(6),W4("",i.accessory.displayName," (",i.accessory.uniqueId,")"),C(2),b("accessory",i.accessory),C(1),b("ngIf",i.isCamera)}}function fve(e,t){if(1&e&&(g(0,"div",3)(1,"div",4)(2,"b"),M(3,"HomeKit Behaviour"),_(),M(4," for "),g(5,"i"),M(6),_()(),g(7,"div",5),P(8,"app-camera-buttons",6),_()()),2&e){const i=I(2);C(6),W4("",i.accessory.displayName," (",i.accessory.uniqueId,")"),C(2),b("accessory",i.accessory)}}function dve(e,t){1&e&&P(0,"hr")}function hve(e,t){1&e&&P(0,"app-immediate-notification-on-ring",6),2&e&&b("accessory",I(3).accessory)}function pve(e,t){if(1&e&&(g(0,"div"),P(1,"app-force-refreshsnap",6),_()),2&e){const i=I(3);C(1),b("accessory",i.accessory)}}function mve(e,t){if(1&e&&(g(0,"div",3)(1,"div",4)(2,"b"),M(3,"Snapshot Behaviour"),_(),M(4," for "),g(5,"i"),M(6),_()(),g(7,"div",5),P(8,"app-snapshot-handling-method",6),O(9,dve,1,0,"hr",2),O(10,hve,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),O(15,pve,2,1,"div",2),_()()),2&e){const i=I(2);C(6),W4("",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 gve(e,t){if(1&e&&(g(0,"div"),P(1,"p"),O(2,fve,9,3,"div",1),P(3,"p"),O(4,mve,16,8,"div",1),P(5,"p")(6,"app-advanced-videoconfig",6),_()),2&e){const i=I();C(2),b("ngIf",i.accessory),C(2),b("ngIf",i.accessory),C(2),b("accessory",i.accessory)}}let vve=(()=>{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=Aa.isDoorbell(this.accessory.type),this.isCamera=Aa.isCamera(this.accessory.type),this.supportsRTSP=Aa.supportsRTSP(this.accessory.type),this.supportsTalkback=Aa.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(zn))}),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),M(1,"Back to Devices List"),_(),O(2,uve,10,4,"div",1),O(3,gve,7,3,"div",2)),2&n&&(C(2),b("ngIf",r.accessory),C(1),b("ngIf",r.isCamera))},dependencies:[O1,xn,Qx,kge,Pge,Fge,Uge,jge,Gge,Kge,Yge,Zge,Qge,nve,rve],encapsulation:2})),t})();var Fu=function(e){return e[e.UNKNOWN=0]="UNKNOWN",e[e.CAPTCHA=1]="CAPTCHA",e[e.TFA=2]="TFA",e[e.TIMEOUT=3]="TIMEOUT",e}(Fu||{});const _ve={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 Cve=(()=>{var e;class t{constructor(n){V(this,"pluginService",void 0),this.pluginService=n}getCredentials(){var n=this;return Se(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 Se(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 Se(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 yve(e,t){1&e&&(l4(),M(0," If you login here the new connection might interfere with any already established connection that was made by the eufy plugin itself."),u4(),P(1,"p"),g(2,"i"),M(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 Mve(e,t){if(1&e){const i=I1();g(0,"p",10)(1,"ngb-alert",11),R("closed",function(){return Y(i),Z(I().resetLoginFailed())}),l4(),g(2,"svg",12),P(3,"use",13),_(),u4(),g(4,"strong"),M(5,"Login was not successful!"),_()()()}2&e&&(C(1),b("dismissible",!0))}function bve(e,t){if(1&e&&(g(0,"div",32),l4(),g(1,"svg",33),P(2,"use",34),_(),u4(),g(3,"div"),M(4," Please make sure to restart plugin after you're done. "),g(5,"u",35),M(6," Tell me why... "),_()()()),2&e){I(2);const i=k2(6);C(5),b("autoClose","outside")("ngbPopover",i)}}function wve(e,t){1&e&&(M(0,"You can leave this field blank."),P(1,"p"),M(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),M(4,"this disussion"),_(),M(5," to learn more."))}function Hve(e,t){if(1&e&&(g(0,"option"),M(1),_()),2&e){const i=t.$implicit,n=I(2);W("value",i.short)("selected",n.credentials.country===i.short||null),C(1),Q2("",i.long," ")}}function Vve(e,t){1&e&&P(0,"span",37)}function Dve(e,t){1&e&&(g(0,"span"),M(1,"..."),_())}function Sve(e,t){if(1&e){const i=I1();g(0,"div"),O(1,bve,7,2,"div",14),g(2,"div",15)(3,"input",16),R("ngModelChange",function(r){return Y(i),Z(I().credentials.username=r)}),_(),g(4,"label",17),M(5,"Email address"),_()(),P(6,"p"),g(7,"div",15)(8,"input",18),R("ngModelChange",function(r){return Y(i),Z(I().credentials.password=r)}),_(),g(9,"label",19),M(10,"Password"),_()(),P(11,"p"),g(12,"div",15),O(13,wve,6,0,"ng-template",null,20,S2),g(15,"input",21),R("ngModelChange",function(r){return Y(i),Z(I().credentials.deviceName=r)}),_(),g(16,"label",22),M(17,"Device Name"),_()(),g(18,"div",23)(19,"div",24)(20,"select",25),R("ngModelChange",function(r){return Y(i),Z(I().credentials.country=r)}),O(21,Hve,2,3,"option",26),_(),g(22,"small")(23,"i"),M(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),R("click",function(){return Y(i),Z(I().login())}),O(28,Vve,1,0,"span",30),M(29," Login "),O(30,Dve,2,0,"span",9),_(),g(31,"button",31),R("click",function(){return Y(i),Z(I().cancelLogin())}),M(32," Cancel "),_()()()()}if(2&e){const i=k2(14),n=I();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 zve(e,t){1&e&&P(0,"span",37)}function xve(e,t){1&e&&(g(0,"span"),M(1,"..."),_())}function Lve(e,t){if(1&e){const i=I1();g(0,"div")(1,"div",38),M(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),R("ngModelChange",function(r){return Y(i),Z(I().otp=r)}),_(),g(6,"label",41),M(7,"2FA Code"),_()()(),g(8,"div",42)(9,"div",43)(10,"button",44),R("click",function(){return Y(i),Z(I().login())}),O(11,zve,1,0,"span",30),M(12," Verify "),O(13,xve,2,0,"span",9),_()()(),g(14,"div",6)(15,"div",43)(16,"button",31),R("click",function(){return Y(i),Z(I().cancelLogin())}),M(17," Cancel "),_()()()()}if(2&e){const i=I();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 Nve(e,t){1&e&&P(0,"span",37)}function Ave(e,t){1&e&&(g(0,"span"),M(1,"..."),_())}function Eve(e,t){if(1&e){const i=I1();g(0,"div")(1,"div",38),M(2,"Please enter the captcha below."),_(),g(3,"div",42),P(4,"img",45),_(),g(5,"div",6)(6,"div",39)(7,"input",40),R("ngModelChange",function(r){return Y(i),Z(I().captcha=r)}),_(),g(8,"label",41),M(9,"Captcha"),_()()(),g(10,"div",42)(11,"div",43)(12,"button",44),R("click",function(){return Y(i),Z(I().login())}),O(13,Nve,1,0,"span",30),M(14," Verify "),O(15,Ave,2,0,"span",9),_()()(),g(16,"div",6)(17,"div",43)(18,"button",31),R("click",function(){return Y(i),Z(I().cancelLogin())}),M(19," Cancel "),_()()()()}if(2&e){const i=I();C(4),b("src",i.captchaImageData,H4),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 _t=function(e){return e[e.LOGIN=1]="LOGIN",e[e.TFA=2]="TFA",e[e.CAPTCHA=3]="CAPTCHA",e}(_t||{});let Ive=(()=>{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",_t.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(_ve).forEach(([n,r])=>{this.countries.push({short:n,long:r})})}login(){this.inputIsInvalid()||(this.resetLoginFailed(),this.loginInProgress=!0,this.loginStep===_t.LOGIN&&this.loginWithCredentials(),this.loginStep===_t.TFA&&this.loginWithTFA(),this.loginStep===_t.CAPTCHA&&this.loginWithCaptcha())}loginWithCredentials(){var n=this;return Se(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 Se(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 Se(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===Fu.TFA)return void(this.loginStep=_t.TFA);if(n&&n.failReason&&n.failReason===Fu.CAPTCHA&&n.data&&n.data.id&&n.data.captcha)return this.loginStep=_t.CAPTCHA,this.captchaId=n.data.id,void(this.captchaImageData=n.data.captcha);this.loginStep=_t.LOGIN,this.loginFailed=!0}}inputIsInvalid(){this.emailIsValid=!0,this.passwordIsValid=!0,this.otpIsValid=!0;let n=!1;return this.loginStep===_t.LOGIN&&this.credentials.username.length<4&&(this.emailIsValid=!1,n=!0),this.loginStep===_t.LOGIN&&this.credentials.password.length<4&&(this.passwordIsValid=!1,n=!0),this.loginStep===_t.TFA&&this.otp.length<6&&(this.otpIsValid=!1,n=!0),this.loginStep===_t.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(Cve),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&&(l4(),g(0,"svg",0)(1,"symbol",1),P(2,"path",2),_(),g(3,"symbol",3),P(4,"path",4),_()(),O(5,yve,4,0,"ng-template",null,5,S2),u4(),g(7,"div",6),O(8,Mve,6,1,"p",7),g(9,"div",8),O(10,Sve,33,19,"div",9),O(11,Lve,18,7,"div",9),O(12,Eve,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,O1,b3,w3,$n,yn,S1,g5,M1,_C,uK,_K],encapsulation:2})),t})(),Tve=(()=>{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 Se(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),M(2,"Manual Alarm Trigger Modes"),_(),g(3,"div",2)(4,"span"),M(5,"HomeKit Home"),_(),g(6,"div",3)(7,"input",4),R("change",function(){return r.toggle(0),r.update()}),_()()(),g(8,"div",2)(9,"span"),M(10,"HomeKit Away"),_(),g(11,"div",3)(12,"input",4),R("change",function(){return r.toggle(1),r.update()}),_()()(),g(13,"div",2)(14,"span"),M(15,"HomeKit Night"),_(),g(16,"div",3)(17,"input",4),R("change",function(){return r.toggle(2),r.update()}),_()()(),g(18,"div",2)(19,"span"),M(20,"HomeKit Off/Disarmed"),_(),g(21,"div",3)(22,"input",4),R("change",function(){return r.toggle(3),r.update()}),_()()(),g(23,"small")(24,"i"),M(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"),M(27," In order to do so, you must specify in which station mode the alarm can be triggered. "),P(28,"p"),M(29," Please be aware that this setting can only be set on a per station basis and not per automation."),P(30,"br"),M(31," By default the alarm cause will be shown as 'motion detected' in the eufy app. "),P(32,"p"),M(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"),M(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 Ove(e,t){if(1&e&&(g(0,"div",2)(1,"div",3)(2,"b"),M(3,"Station Settings"),_(),M(4," for "),g(5,"i"),M(6),_()(),g(7,"div",4),P(8,"app-ignore-accessory",5)(9,"hr")(10,"app-manual-alarm-modes",5),_()()),2&e){const i=I();C(6),W4("",i.accessory.displayName," (",i.accessory.uniqueId,")"),C(2),b("accessory",i.accessory),C(2),b("accessory",i.accessory)}}function kve(e,t){if(1&e){const i=I1();g(0,"p",7)(1,"ngb-alert",8),R("closed",function(){return Y(i),Z(I().failed=!1)}),l4(),g(2,"svg",9),P(3,"use",10),_(),u4(),g(4,"strong"),M(5,"Reset was not successful!"),_()()()}2&e&&(C(1),b("dismissible",!0))}const Pve=[{path:"",redirectTo:"/accessories",pathMatch:"full"},{path:"accessories",component:uge},{path:"advancedConfig",component:Tge},{path:"cameraConfig/:uniqueId",component:vve},{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(zn))}),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),M(1,"Back to Devices List"),_(),O(2,Ove,11,4,"div",1)),2&n&&(C(2),b("ngIf",r.accessory))},dependencies:[O1,xn,Qx,Tve],encapsulation:2})),t})()},{path:"login",component:Ive},{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 Se(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),O(1,kve,6,1,"p",1),g(2,"div",2)(3,"h3",3),M(4,"Are you sure that you want to erase everything?"),_(),g(5,"div",4)(6,"button",5),R("click",function(){return r.cancel()}),M(7,"No"),_(),g(8,"button",6),R("click",function(){return r.resetEverything()}),M(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:[O1,_C],encapsulation:2})),t})()},{path:"**",redirectTo:"/accessories"}];let Fve=(()=>{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",Te({imports:[yb.forRoot(Pve,{scrollPositionRestoration:"enabled"}),yb]})),t})(),Bve=(()=>{var e;class t{}return e=t,V(t,"\u0275fac",function(n){return new(n||e)}),V(t,"\u0275mod",Fe({type:e,bootstrap:[TJ]})),V(t,"\u0275inj",Te({providers:[{provide:jn,useClass:Gg}],imports:[xU,Bj,bK,Fve,pZ]})),t})();SU().bootstrapModule(Bve).catch(e=>console.error(e))},919:(K3,G2)=>{"use strict";G2.byteLength=function a1(le){var be=Ee(le),g1=be[1];return 3*(be[0]+g1)/4-g1},G2.toByteArray=function k1(le){var be,h2,Ke=Ee(le),g1=Ke[0],H1=Ke[1],Xe=new f2(function A(le,be,Ke){return 3*(be+Ke)/4-Ke}(0,g1,H1)),d2=0,at=H1>0?g1-4:g1;for(h2=0;h2<at;h2+=4)be=Q[le.charCodeAt(h2)]<<18|Q[le.charCodeAt(h2+1)]<<12|Q[le.charCodeAt(h2+2)]<<6|Q[le.charCodeAt(h2+3)],Xe[d2++]=be>>16&255,Xe[d2++]=be>>8&255,Xe[d2++]=255&be;return 2===H1&&(be=Q[le.charCodeAt(h2)]<<2|Q[le.charCodeAt(h2+1)]>>4,Xe[d2++]=255&be),1===H1&&(be=Q[le.charCodeAt(h2)]<<10|Q[le.charCodeAt(h2+1)]<<4|Q[le.charCodeAt(h2+2)]>>2,Xe[d2++]=be>>8&255,Xe[d2++]=255&be),Xe},G2.fromByteArray=function Z1(le){for(var be,Ke=le.length,g1=Ke%3,H1=[],d2=0,at=Ke-g1;d2<at;d2+=16383)H1.push(P1(le,d2,d2+16383>at?at:d2+16383));return 1===g1?H1.push(u1[(be=le[Ke-1])>>2]+u1[be<<4&63]+"=="):2===g1&&H1.push(u1[(be=(le[Ke-2]<<8)+le[Ke-1])>>10]+u1[be>>4&63]+u1[be<<2&63]+"="),H1.join("")};for(var u1=[],Q=[],f2=typeof Uint8Array<"u"?Uint8Array:Array,w1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Je=0;Je<64;++Je)u1[Je]=w1[Je],Q[w1.charCodeAt(Je)]=Je;function Ee(le){var be=le.length;if(be%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var Ke=le.indexOf("=");return-1===Ke&&(Ke=be),[Ke,Ke===be?0:4-Ke%4]}function s1(le){return u1[le>>18&63]+u1[le>>12&63]+u1[le>>6&63]+u1[63&le]}function P1(le,be,Ke){for(var H1=[],Xe=be;Xe<Ke;Xe+=3)H1.push(s1((le[Xe]<<16&16711680)+(le[Xe+1]<<8&65280)+(255&le[Xe+2])));return H1.join("")}Q["-".charCodeAt(0)]=62,Q["_".charCodeAt(0)]=63},7:(K3,G2,u1)=>{"use strict";const f2=u1(919),w1=u1(601),Je="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;G2.lW=A,G2.h2=50;const De=2147483647;function a1(v){if(v>De)throw new RangeError('The value "'+v+'" is invalid for option "size"');const f=new Uint8Array(v);return Object.setPrototypeOf(f,A.prototype),f}function A(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"),!A.isEncoding(f))throw new TypeError("Unknown encoding: "+f);const h=0|at(v,f);let y=a1(h);const S=y.write(v,f);return S!==h&&(y=y.slice(0,S)),y}(v,f);if(ArrayBuffer.isView(v))return function Ke(v){if(st(v,Uint8Array)){const f=new Uint8Array(v);return g1(f.buffer,f.byteOffset,f.byteLength)}return be(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 y=v.valueOf&&v.valueOf();if(null!=y&&y!==v)return A.from(y,f,h);const S=function H1(v){if(A.isBuffer(v)){const f=0|Xe(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||i3(v.length)?a1(0):be(v):"Buffer"===v.type&&Array.isArray(v.data)?be(v.data):void 0}(v);if(S)return S;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof v[Symbol.toPrimitive])return A.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|Xe(v))}function be(v){const f=v.length<0?0:0|Xe(v.length),h=a1(f);for(let y=0;y<f;y+=1)h[y]=255&v[y];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 y;return y=void 0===f&&void 0===h?new Uint8Array(v):void 0===h?new Uint8Array(v,f):new Uint8Array(v,f,h),Object.setPrototypeOf(y,A.prototype),y}function Xe(v){if(v>=De)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+De.toString(16)+" bytes");return 0|v}function at(v,f){if(A.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,y=arguments.length>2&&!0===arguments[2];if(!y&&0===h)return 0;let S=!1;for(;;)switch(f){case"ascii":case"latin1":case"binary":return h;case"utf8":case"utf-8":return Ba(v).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*h;case"hex":return h>>>1;case"base64":return ja(v).length;default:if(S)return y?-1:Ba(v).length;f=(""+f).toLowerCase(),S=!0}}function h2(v,f,h){let y=!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 M6(this,f,h);case"utf8":case"utf-8":return Ra(this,f,h);case"ascii":return ka(this,f,h);case"latin1":case"binary":return y6(this,f,h);case"base64":return yt(this,f,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return b6(this,f,h);default:if(y)throw new TypeError("Unknown encoding: "+v);v=(v+"").toLowerCase(),y=!0}}function Ct(v,f,h){const y=v[f];v[f]=v[h],v[h]=y}function Oa(v,f,h,y,S){if(0===v.length)return-1;if("string"==typeof h?(y=h,h=0):h>2147483647?h=2147483647:h<-2147483648&&(h=-2147483648),i3(h=+h)&&(h=S?0:v.length-1),h<0&&(h=v.length+h),h>=v.length){if(S)return-1;h=v.length-1}else if(h<0){if(!S)return-1;h=0}if("string"==typeof f&&(f=A.from(f,y)),A.isBuffer(f))return 0===f.length?-1:Nn(v,f,h,y,S);if("number"==typeof f)return f&=255,"function"==typeof Uint8Array.prototype.indexOf?S?Uint8Array.prototype.indexOf.call(v,f,h):Uint8Array.prototype.lastIndexOf.call(v,f,h):Nn(v,[f],h,y,S);throw new TypeError("val must be string, number or Buffer")}function Nn(v,f,h,y,S){let e1,N=1,T=v.length,Ce=f.length;if(void 0!==y&&("ucs2"===(y=String(y).toLowerCase())||"ucs-2"===y||"utf16le"===y||"utf-16le"===y)){if(v.length<2||f.length<2)return-1;N=2,T/=2,Ce/=2,h/=2}function d1(h1,Be){return 1===N?h1[Be]:h1.readUInt16BE(Be*N)}if(S){let h1=-1;for(e1=h;e1<T;e1++)if(d1(v,e1)===d1(f,-1===h1?0:e1-h1)){if(-1===h1&&(h1=e1),e1-h1+1===Ce)return h1*N}else-1!==h1&&(e1-=e1-h1),h1=-1}else for(h+Ce>T&&(h=T-Ce),e1=h;e1>=0;e1--){let h1=!0;for(let Be=0;Be<Ce;Be++)if(d1(v,e1+Be)!==d1(f,Be)){h1=!1;break}if(h1)return e1}return-1}function Y3(v,f,h,y){h=Number(h)||0;const S=v.length-h;y?(y=Number(y))>S&&(y=S):y=S;const N=f.length;let T;for(y>N/2&&(y=N/2),T=0;T<y;++T){const Ce=parseInt(f.substr(2*T,2),16);if(i3(Ce))return T;v[h+T]=Ce}return T}function _6(v,f,h,y){return En(Ba(f,v.length-h),v,h,y)}function Hi(v,f,h,y){return En(function H6(v){const f=[];for(let h=0;h<v.length;++h)f.push(255&v.charCodeAt(h));return f}(f),v,h,y)}function C6(v,f,h,y){return En(ja(f),v,h,y)}function Vi(v,f,h,y){return En(function Ua(v,f){let h,y,S;const N=[];for(let T=0;T<v.length&&!((f-=2)<0);++T)h=v.charCodeAt(T),y=h>>8,S=h%256,N.push(S),N.push(y);return N}(f,v.length-h),v,h,y)}function yt(v,f,h){return f2.fromByteArray(0===f&&h===v.length?v:v.slice(f,h))}function Ra(v,f,h){h=Math.min(v.length,h);const y=[];let S=f;for(;S<h;){const N=v[S];let T=null,Ce=N>239?4:N>223?3:N>191?2:1;if(S+Ce<=h){let d1,e1,h1,Be;switch(Ce){case 1:N<128&&(T=N);break;case 2:d1=v[S+1],128==(192&d1)&&(Be=(31&N)<<6|63&d1,Be>127&&(T=Be));break;case 3:d1=v[S+1],e1=v[S+2],128==(192&d1)&&128==(192&e1)&&(Be=(15&N)<<12|(63&d1)<<6|63&e1,Be>2047&&(Be<55296||Be>57343)&&(T=Be));break;case 4:d1=v[S+1],e1=v[S+2],h1=v[S+3],128==(192&d1)&&128==(192&e1)&&128==(192&h1)&&(Be=(15&N)<<18|(63&d1)<<12|(63&e1)<<6|63&h1,Be>65535&&Be<1114112&&(T=Be))}}null===T?(T=65533,Ce=1):T>65535&&(T-=65536,y.push(T>>>10&1023|55296),T=56320|1023&T),y.push(T),S+=Ce}return function We(v){const f=v.length;if(f<=Di)return String.fromCharCode.apply(String,v);let h="",y=0;for(;y<f;)h+=String.fromCharCode.apply(String,v.slice(y,y+=Di));return h}(y)}!(A.TYPED_ARRAY_SUPPORT=function Ee(){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(A.prototype,"parent",{enumerable:!0,get:function(){if(A.isBuffer(this))return this.buffer}}),Object.defineProperty(A.prototype,"offset",{enumerable:!0,get:function(){if(A.isBuffer(this))return this.byteOffset}}),A.poolSize=8192,A.from=function(v,f,h){return k1(v,f,h)},Object.setPrototypeOf(A.prototype,Uint8Array.prototype),Object.setPrototypeOf(A,Uint8Array),A.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)},A.allocUnsafe=function(v){return Z1(v)},A.allocUnsafeSlow=function(v){return Z1(v)},A.isBuffer=function(f){return null!=f&&!0===f._isBuffer&&f!==A.prototype},A.compare=function(f,h){if(st(f,Uint8Array)&&(f=A.from(f,f.offset,f.byteLength)),st(h,Uint8Array)&&(h=A.from(h,h.offset,h.byteLength)),!A.isBuffer(f)||!A.isBuffer(h))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(f===h)return 0;let y=f.length,S=h.length;for(let N=0,T=Math.min(y,S);N<T;++N)if(f[N]!==h[N]){y=f[N],S=h[N];break}return y<S?-1:S<y?1:0},A.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}},A.concat=function(f,h){if(!Array.isArray(f))throw new TypeError('"list" argument must be an Array of Buffers');if(0===f.length)return A.alloc(0);let y;if(void 0===h)for(h=0,y=0;y<f.length;++y)h+=f[y].length;const S=A.allocUnsafe(h);let N=0;for(y=0;y<f.length;++y){let T=f[y];if(st(T,Uint8Array))N+T.length>S.length?(A.isBuffer(T)||(T=A.from(T)),T.copy(S,N)):Uint8Array.prototype.set.call(S,T,N);else{if(!A.isBuffer(T))throw new TypeError('"list" argument must be an Array of Buffers');T.copy(S,N)}N+=T.length}return S},A.byteLength=at,A.prototype._isBuffer=!0,A.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)Ct(this,h,h+1);return this},A.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)Ct(this,h,h+3),Ct(this,h+1,h+2);return this},A.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)Ct(this,h,h+7),Ct(this,h+1,h+6),Ct(this,h+2,h+5),Ct(this,h+3,h+4);return this},A.prototype.toLocaleString=A.prototype.toString=function(){const f=this.length;return 0===f?"":0===arguments.length?Ra(this,0,f):h2.apply(this,arguments)},A.prototype.equals=function(f){if(!A.isBuffer(f))throw new TypeError("Argument must be a Buffer");return this===f||0===A.compare(this,f)},A.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+">"},Je&&(A.prototype[Je]=A.prototype.inspect),A.prototype.compare=function(f,h,y,S,N){if(st(f,Uint8Array)&&(f=A.from(f,f.offset,f.byteLength)),!A.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===y&&(y=f?f.length:0),void 0===S&&(S=0),void 0===N&&(N=this.length),h<0||y>f.length||S<0||N>this.length)throw new RangeError("out of range index");if(S>=N&&h>=y)return 0;if(S>=N)return-1;if(h>=y)return 1;if(this===f)return 0;let T=(N>>>=0)-(S>>>=0),Ce=(y>>>=0)-(h>>>=0);const d1=Math.min(T,Ce),e1=this.slice(S,N),h1=f.slice(h,y);for(let Be=0;Be<d1;++Be)if(e1[Be]!==h1[Be]){T=e1[Be],Ce=h1[Be];break}return T<Ce?-1:Ce<T?1:0},A.prototype.includes=function(f,h,y){return-1!==this.indexOf(f,h,y)},A.prototype.indexOf=function(f,h,y){return Oa(this,f,h,y,!0)},A.prototype.lastIndexOf=function(f,h,y){return Oa(this,f,h,y,!1)},A.prototype.write=function(f,h,y,S){if(void 0===h)S="utf8",y=this.length,h=0;else if(void 0===y&&"string"==typeof h)S=h,y=this.length,h=0;else{if(!isFinite(h))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");h>>>=0,isFinite(y)?(y>>>=0,void 0===S&&(S="utf8")):(S=y,y=void 0)}const N=this.length-h;if((void 0===y||y>N)&&(y=N),f.length>0&&(y<0||h<0)||h>this.length)throw new RangeError("Attempt to write outside buffer bounds");S||(S="utf8");let T=!1;for(;;)switch(S){case"hex":return Y3(this,f,h,y);case"utf8":case"utf-8":return _6(this,f,h,y);case"ascii":case"latin1":case"binary":return Hi(this,f,h,y);case"base64":return C6(this,f,h,y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Vi(this,f,h,y);default:if(T)throw new TypeError("Unknown encoding: "+S);S=(""+S).toLowerCase(),T=!0}},A.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const Di=4096;function ka(v,f,h){let y="";h=Math.min(v.length,h);for(let S=f;S<h;++S)y+=String.fromCharCode(127&v[S]);return y}function y6(v,f,h){let y="";h=Math.min(v.length,h);for(let S=f;S<h;++S)y+=String.fromCharCode(v[S]);return y}function M6(v,f,h){const y=v.length;(!f||f<0)&&(f=0),(!h||h<0||h>y)&&(h=y);let S="";for(let N=f;N<h;++N)S+=Ga[v[N]];return S}function b6(v,f,h){const y=v.slice(f,h);let S="";for(let N=0;N<y.length-1;N+=2)S+=String.fromCharCode(y[N]+256*y[N+1]);return S}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 r2(v,f,h,y,S,N){if(!A.isBuffer(v))throw new TypeError('"buffer" argument must be a Buffer instance');if(f>S||f<N)throw new RangeError('"value" argument is out of bounds');if(h+y>v.length)throw new RangeError("Index out of range")}function Si(v,f,h,y,S){Fa(f,y,S,v,h,7);let N=Number(f&BigInt(4294967295));v[h++]=N,N>>=8,v[h++]=N,N>>=8,v[h++]=N,N>>=8,v[h++]=N;let T=Number(f>>BigInt(32)&BigInt(4294967295));return v[h++]=T,T>>=8,v[h++]=T,T>>=8,v[h++]=T,T>>=8,v[h++]=T,h}function f1(v,f,h,y,S){Fa(f,y,S,v,h,7);let N=Number(f&BigInt(4294967295));v[h+7]=N,N>>=8,v[h+6]=N,N>>=8,v[h+5]=N,N>>=8,v[h+4]=N;let T=Number(f>>BigInt(32)&BigInt(4294967295));return v[h+3]=T,T>>=8,v[h+2]=T,T>>=8,v[h+1]=T,T>>=8,v[h]=T,h+8}function qe(v,f,h,y,S,N){if(h+y>v.length)throw new RangeError("Index out of range");if(h<0)throw new RangeError("Index out of range")}function Pa(v,f,h,y,S){return f=+f,h>>>=0,S||qe(v,0,h,4),w1.write(v,f,h,y,23,4),h+4}function He(v,f,h,y,S){return f=+f,h>>>=0,S||qe(v,0,h,8),w1.write(v,f,h,y,52,8),h+8}A.prototype.slice=function(f,h){const y=this.length;(f=~~f)<0?(f+=y)<0&&(f=0):f>y&&(f=y),(h=void 0===h?y:~~h)<0?(h+=y)<0&&(h=0):h>y&&(h=y),h<f&&(h=f);const S=this.subarray(f,h);return Object.setPrototypeOf(S,A.prototype),S},A.prototype.readUintLE=A.prototype.readUIntLE=function(f,h,y){f>>>=0,h>>>=0,y||fe(f,h,this.length);let S=this[f],N=1,T=0;for(;++T<h&&(N*=256);)S+=this[f+T]*N;return S},A.prototype.readUintBE=A.prototype.readUIntBE=function(f,h,y){f>>>=0,h>>>=0,y||fe(f,h,this.length);let S=this[f+--h],N=1;for(;h>0&&(N*=256);)S+=this[f+--h]*N;return S},A.prototype.readUint8=A.prototype.readUInt8=function(f,h){return f>>>=0,h||fe(f,1,this.length),this[f]},A.prototype.readUint16LE=A.prototype.readUInt16LE=function(f,h){return f>>>=0,h||fe(f,2,this.length),this[f]|this[f+1]<<8},A.prototype.readUint16BE=A.prototype.readUInt16BE=function(f,h){return f>>>=0,h||fe(f,2,this.length),this[f]<<8|this[f+1]},A.prototype.readUint32LE=A.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]},A.prototype.readUint32BE=A.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])},A.prototype.readBigUInt64LE=Pt(function(f){An(f>>>=0,"offset");const h=this[f],y=this[f+7];(void 0===h||void 0===y)&&Q3(f,this.length-8);const S=h+256*this[++f]+65536*this[++f]+this[++f]*2**24,N=this[++f]+256*this[++f]+65536*this[++f]+y*2**24;return BigInt(S)+(BigInt(N)<<BigInt(32))}),A.prototype.readBigUInt64BE=Pt(function(f){An(f>>>=0,"offset");const h=this[f],y=this[f+7];(void 0===h||void 0===y)&&Q3(f,this.length-8);const S=h*2**24+65536*this[++f]+256*this[++f]+this[++f],N=this[++f]*2**24+65536*this[++f]+256*this[++f]+y;return(BigInt(S)<<BigInt(32))+BigInt(N)}),A.prototype.readIntLE=function(f,h,y){f>>>=0,h>>>=0,y||fe(f,h,this.length);let S=this[f],N=1,T=0;for(;++T<h&&(N*=256);)S+=this[f+T]*N;return N*=128,S>=N&&(S-=Math.pow(2,8*h)),S},A.prototype.readIntBE=function(f,h,y){f>>>=0,h>>>=0,y||fe(f,h,this.length);let S=h,N=1,T=this[f+--S];for(;S>0&&(N*=256);)T+=this[f+--S]*N;return N*=128,T>=N&&(T-=Math.pow(2,8*h)),T},A.prototype.readInt8=function(f,h){return f>>>=0,h||fe(f,1,this.length),128&this[f]?-1*(255-this[f]+1):this[f]},A.prototype.readInt16LE=function(f,h){f>>>=0,h||fe(f,2,this.length);const y=this[f]|this[f+1]<<8;return 32768&y?4294901760|y:y},A.prototype.readInt16BE=function(f,h){f>>>=0,h||fe(f,2,this.length);const y=this[f+1]|this[f]<<8;return 32768&y?4294901760|y:y},A.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},A.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]},A.prototype.readBigInt64LE=Pt(function(f){An(f>>>=0,"offset");const h=this[f],y=this[f+7];return(void 0===h||void 0===y)&&Q3(f,this.length-8),(BigInt(this[f+4]+256*this[f+5]+65536*this[f+6]+(y<<24))<<BigInt(32))+BigInt(h+256*this[++f]+65536*this[++f]+this[++f]*2**24)}),A.prototype.readBigInt64BE=Pt(function(f){An(f>>>=0,"offset");const h=this[f],y=this[f+7];(void 0===h||void 0===y)&&Q3(f,this.length-8);const S=(h<<24)+65536*this[++f]+256*this[++f]+this[++f];return(BigInt(S)<<BigInt(32))+BigInt(this[++f]*2**24+65536*this[++f]+256*this[++f]+y)}),A.prototype.readFloatLE=function(f,h){return f>>>=0,h||fe(f,4,this.length),w1.read(this,f,!0,23,4)},A.prototype.readFloatBE=function(f,h){return f>>>=0,h||fe(f,4,this.length),w1.read(this,f,!1,23,4)},A.prototype.readDoubleLE=function(f,h){return f>>>=0,h||fe(f,8,this.length),w1.read(this,f,!0,52,8)},A.prototype.readDoubleBE=function(f,h){return f>>>=0,h||fe(f,8,this.length),w1.read(this,f,!1,52,8)},A.prototype.writeUintLE=A.prototype.writeUIntLE=function(f,h,y,S){f=+f,h>>>=0,y>>>=0,S||r2(this,f,h,y,Math.pow(2,8*y)-1,0);let N=1,T=0;for(this[h]=255&f;++T<y&&(N*=256);)this[h+T]=f/N&255;return h+y},A.prototype.writeUintBE=A.prototype.writeUIntBE=function(f,h,y,S){f=+f,h>>>=0,y>>>=0,S||r2(this,f,h,y,Math.pow(2,8*y)-1,0);let N=y-1,T=1;for(this[h+N]=255&f;--N>=0&&(T*=256);)this[h+N]=f/T&255;return h+y},A.prototype.writeUint8=A.prototype.writeUInt8=function(f,h,y){return f=+f,h>>>=0,y||r2(this,f,h,1,255,0),this[h]=255&f,h+1},A.prototype.writeUint16LE=A.prototype.writeUInt16LE=function(f,h,y){return f=+f,h>>>=0,y||r2(this,f,h,2,65535,0),this[h]=255&f,this[h+1]=f>>>8,h+2},A.prototype.writeUint16BE=A.prototype.writeUInt16BE=function(f,h,y){return f=+f,h>>>=0,y||r2(this,f,h,2,65535,0),this[h]=f>>>8,this[h+1]=255&f,h+2},A.prototype.writeUint32LE=A.prototype.writeUInt32LE=function(f,h,y){return f=+f,h>>>=0,y||r2(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},A.prototype.writeUint32BE=A.prototype.writeUInt32BE=function(f,h,y){return f=+f,h>>>=0,y||r2(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},A.prototype.writeBigUInt64LE=Pt(function(f,h=0){return Si(this,f,h,BigInt(0),BigInt("0xffffffffffffffff"))}),A.prototype.writeBigUInt64BE=Pt(function(f,h=0){return f1(this,f,h,BigInt(0),BigInt("0xffffffffffffffff"))}),A.prototype.writeIntLE=function(f,h,y,S){if(f=+f,h>>>=0,!S){const d1=Math.pow(2,8*y-1);r2(this,f,h,y,d1-1,-d1)}let N=0,T=1,Ce=0;for(this[h]=255&f;++N<y&&(T*=256);)f<0&&0===Ce&&0!==this[h+N-1]&&(Ce=1),this[h+N]=(f/T>>0)-Ce&255;return h+y},A.prototype.writeIntBE=function(f,h,y,S){if(f=+f,h>>>=0,!S){const d1=Math.pow(2,8*y-1);r2(this,f,h,y,d1-1,-d1)}let N=y-1,T=1,Ce=0;for(this[h+N]=255&f;--N>=0&&(T*=256);)f<0&&0===Ce&&0!==this[h+N+1]&&(Ce=1),this[h+N]=(f/T>>0)-Ce&255;return h+y},A.prototype.writeInt8=function(f,h,y){return f=+f,h>>>=0,y||r2(this,f,h,1,127,-128),f<0&&(f=255+f+1),this[h]=255&f,h+1},A.prototype.writeInt16LE=function(f,h,y){return f=+f,h>>>=0,y||r2(this,f,h,2,32767,-32768),this[h]=255&f,this[h+1]=f>>>8,h+2},A.prototype.writeInt16BE=function(f,h,y){return f=+f,h>>>=0,y||r2(this,f,h,2,32767,-32768),this[h]=f>>>8,this[h+1]=255&f,h+2},A.prototype.writeInt32LE=function(f,h,y){return f=+f,h>>>=0,y||r2(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},A.prototype.writeInt32BE=function(f,h,y){return f=+f,h>>>=0,y||r2(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},A.prototype.writeBigInt64LE=Pt(function(f,h=0){return Si(this,f,h,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),A.prototype.writeBigInt64BE=Pt(function(f,h=0){return f1(this,f,h,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),A.prototype.writeFloatLE=function(f,h,y){return Pa(this,f,h,!0,y)},A.prototype.writeFloatBE=function(f,h,y){return Pa(this,f,h,!1,y)},A.prototype.writeDoubleLE=function(f,h,y){return He(this,f,h,!0,y)},A.prototype.writeDoubleBE=function(f,h,y){return He(this,f,h,!1,y)},A.prototype.copy=function(f,h,y,S){if(!A.isBuffer(f))throw new TypeError("argument should be a Buffer");if(y||(y=0),!S&&0!==S&&(S=this.length),h>=f.length&&(h=f.length),h||(h=0),S>0&&S<y&&(S=y),S===y||0===f.length||0===this.length)return 0;if(h<0)throw new RangeError("targetStart out of bounds");if(y<0||y>=this.length)throw new RangeError("Index out of range");if(S<0)throw new RangeError("sourceEnd out of bounds");S>this.length&&(S=this.length),f.length-h<S-y&&(S=f.length-h+y);const N=S-y;return this===f&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(h,y,S):Uint8Array.prototype.set.call(f,this.subarray(y,S),h),N},A.prototype.fill=function(f,h,y,S){if("string"==typeof f){if("string"==typeof h?(S=h,h=0,y=this.length):"string"==typeof y&&(S=y,y=this.length),void 0!==S&&"string"!=typeof S)throw new TypeError("encoding must be a string");if("string"==typeof S&&!A.isEncoding(S))throw new TypeError("Unknown encoding: "+S);if(1===f.length){const T=f.charCodeAt(0);("utf8"===S&&T<128||"latin1"===S)&&(f=T)}}else"number"==typeof f?f&=255:"boolean"==typeof f&&(f=Number(f));if(h<0||this.length<h||this.length<y)throw new RangeError("Out of range index");if(y<=h)return this;let N;if(h>>>=0,y=void 0===y?this.length:y>>>0,f||(f=0),"number"==typeof f)for(N=h;N<y;++N)this[N]=f;else{const T=A.isBuffer(f)?f:A.from(f,S),Ce=T.length;if(0===Ce)throw new TypeError('The value "'+f+'" is invalid for argument "value"');for(N=0;N<y-h;++N)this[N+h]=T[N%Ce]}return this};const kt={};function zi(v,f,h){kt[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(S){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:S,writable:!0})}toString(){return`${this.name} [${v}]: ${this.message}`}}}function Z3(v){let f="",h=v.length;const y="-"===v[0]?1:0;for(;h>=y+4;h-=3)f=`_${v.slice(h-3,h)}${f}`;return`${v.slice(0,h)}${f}`}function Fa(v,f,h,y,S,N){if(v>h||v<f){const T="bigint"==typeof f?"n":"";let Ce;throw Ce=N>3?0===f||f===BigInt(0)?`>= 0${T} and < 2${T} ** ${8*(N+1)}${T}`:`>= -(2${T} ** ${8*(N+1)-1}${T}) and < 2 ** ${8*(N+1)-1}${T}`:`>= ${f}${T} and <= ${h}${T}`,new kt.ERR_OUT_OF_RANGE("value",Ce,v)}!function w6(v,f,h){An(f,"offset"),(void 0===v[f]||void 0===v[f+h])&&Q3(f,v.length-(h+1))}(y,S,N)}function An(v,f){if("number"!=typeof v)throw new kt.ERR_INVALID_ARG_TYPE(f,"number",v)}function Q3(v,f,h){throw Math.floor(v)!==v?(An(v,h),new kt.ERR_OUT_OF_RANGE(h||"offset","an integer",v)):f<0?new kt.ERR_BUFFER_OUT_OF_BOUNDS:new kt.ERR_OUT_OF_RANGE(h||"offset",`>= ${h?1:0} and <= ${f}`,v)}zi("ERR_BUFFER_OUT_OF_BOUNDS",function(v){return v?`${v} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),zi("ERR_INVALID_ARG_TYPE",function(v,f){return`The "${v}" argument must be of type number. Received type ${typeof f}`},TypeError),zi("ERR_OUT_OF_RANGE",function(v,f,h){let y=`The value of "${v}" is out of range.`,S=h;return Number.isInteger(h)&&Math.abs(h)>2**32?S=Z3(String(h)):"bigint"==typeof h&&(S=String(h),(h>BigInt(2)**BigInt(32)||h<-(BigInt(2)**BigInt(32)))&&(S=Z3(S)),S+="n"),y+=` It must be ${f}. Received ${S}`,y},RangeError);const $u=/[^+/0-9A-Za-z-_]/g;function Ba(v,f){let h;f=f||1/0;const y=v.length;let S=null;const N=[];for(let T=0;T<y;++T){if(h=v.charCodeAt(T),h>55295&&h<57344){if(!S){if(h>56319){(f-=3)>-1&&N.push(239,191,189);continue}if(T+1===y){(f-=3)>-1&&N.push(239,191,189);continue}S=h;continue}if(h<56320){(f-=3)>-1&&N.push(239,191,189),S=h;continue}h=65536+(S-55296<<10|h-56320)}else S&&(f-=3)>-1&&N.push(239,191,189);if(S=null,h<128){if((f-=1)<0)break;N.push(h)}else if(h<2048){if((f-=2)<0)break;N.push(h>>6|192,63&h|128)}else if(h<65536){if((f-=3)<0)break;N.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;N.push(h>>18|240,h>>12&63|128,h>>6&63|128,63&h|128)}}return N}function ja(v){return f2.toByteArray(function Wu(v){if((v=(v=v.split("=")[0]).trim().replace($u,"")).length<2)return"";for(;v.length%4!=0;)v+="=";return v}(v))}function En(v,f,h,y){let S;for(S=0;S<y&&!(S+h>=f.length||S>=v.length);++S)f[S+h]=v[S];return S}function st(v,f){return v instanceof f||null!=v&&null!=v.constructor&&null!=v.constructor.name&&v.constructor.name===f.name}function i3(v){return v!=v}const Ga=function(){const v="0123456789abcdef",f=new Array(256);for(let h=0;h<16;++h){const y=16*h;for(let S=0;S<16;++S)f[y+S]=v[h]+v[S]}return f}();function Pt(v){return typeof BigInt>"u"?V6:v}function V6(){throw new Error("BigInt not supported")}},601:(K3,G2)=>{G2.read=function(u1,Q,f2,w1,Je){var De,Ee,a1=8*Je-w1-1,A=(1<<a1)-1,k1=A>>1,s1=-7,P1=f2?Je-1:0,Z1=f2?-1:1,le=u1[Q+P1];for(P1+=Z1,De=le&(1<<-s1)-1,le>>=-s1,s1+=a1;s1>0;De=256*De+u1[Q+P1],P1+=Z1,s1-=8);for(Ee=De&(1<<-s1)-1,De>>=-s1,s1+=w1;s1>0;Ee=256*Ee+u1[Q+P1],P1+=Z1,s1-=8);if(0===De)De=1-k1;else{if(De===A)return Ee?NaN:1/0*(le?-1:1);Ee+=Math.pow(2,w1),De-=k1}return(le?-1:1)*Ee*Math.pow(2,De-w1)},G2.write=function(u1,Q,f2,w1,Je,De){var Ee,a1,A,k1=8*De-Je-1,s1=(1<<k1)-1,P1=s1>>1,Z1=23===Je?Math.pow(2,-24)-Math.pow(2,-77):0,le=w1?0:De-1,be=w1?1:-1,Ke=Q<0||0===Q&&1/Q<0?1:0;for(Q=Math.abs(Q),isNaN(Q)||Q===1/0?(a1=isNaN(Q)?1:0,Ee=s1):(Ee=Math.floor(Math.log(Q)/Math.LN2),Q*(A=Math.pow(2,-Ee))<1&&(Ee--,A*=2),(Q+=Ee+P1>=1?Z1/A:Z1*Math.pow(2,1-P1))*A>=2&&(Ee++,A/=2),Ee+P1>=s1?(a1=0,Ee=s1):Ee+P1>=1?(a1=(Q*A-1)*Math.pow(2,Je),Ee+=P1):(a1=Q*Math.pow(2,P1-1)*Math.pow(2,Je),Ee=0));Je>=8;u1[f2+le]=255&a1,le+=be,a1/=256,Je-=8);for(Ee=Ee<<Je|a1,k1+=Je;k1>0;u1[f2+le]=255&Ee,le+=be,Ee/=256,k1-=8);u1[f2+le-be]|=128*Ke}}},K3=>{K3(K3.s=841)}]);