homebridge-eufy-security 2.2.1 → 2.2.2

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],{514:(P3,S2,a1)=>{"use strict";function Y(e){return"function"==typeof e}function c2(e){const t=e(i=>{Error.call(i),i.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const v1=c2(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((i,a)=>`${a+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function $e(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class we{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const r of t)r.remove(this);else t.remove(this);const{initialTeardown:i}=this;if(Y(i))try{i()}catch(r){n=r instanceof v1?r.errors:[r]}const{_finalizers:a}=this;if(a){this._finalizers=null;for(const r of a)try{S(r)}catch(c){n=null!=n?n:[],c instanceof v1?n=[...n,...c.errors]:n.push(c)}}if(n)throw new v1(n)}}add(n){var t;if(n&&n!==this)if(this.closed)S(n);else{if(n instanceof we){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(n)}}_hasParent(n){const{_parentage:t}=this;return t===n||Array.isArray(t)&&t.includes(n)}_addParent(n){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n}_removeParent(n){const{_parentage:t}=this;t===n?this._parentage=null:Array.isArray(t)&&$e(t,n)}remove(n){const{_finalizers:t}=this;t&&$e(t,n),n instanceof we&&n._removeParent(this)}}we.EMPTY=(()=>{const e=new we;return e.closed=!0,e})();const xe=we.EMPTY;function Xe(e){return e instanceof we||e&&"closed"in e&&Y(e.remove)&&Y(e.add)&&Y(e.unsubscribe)}function S(e){Y(e)?e():e.unsubscribe()}const S1={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},e1={setTimeout(e,n,...t){const{delegate:i}=e1;return(null==i?void 0:i.setTimeout)?i.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=e1;return((null==n?void 0:n.clearTimeout)||clearTimeout)(e)},delegate:void 0};function A1(e){e1.setTimeout(()=>{const{onUnhandledError:n}=S1;if(!n)throw e;n(e)})}function R1(){}const ne=f1("C",void 0,void 0);function f1(e,n,t){return{kind:e,value:n,error:t}}let _1=null;function We(e){if(S1.useDeprecatedSynchronousErrorHandling){const n=!_1;if(n&&(_1={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:i}=_1;if(_1=null,t)throw i}}else e()}class Q2 extends we{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,Xe(n)&&n.add(this)):this.destination=is}static create(n,t,i){return new bn(n,t,i)}next(n){this.isStopped?ii(function Be(e){return f1("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?ii(function _e(e){return f1("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?ii(ne,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const s2=Function.prototype.bind;function lt(e,n){return s2.call(e,n)}class Xa{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(i){F3(i)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(i){F3(i)}else F3(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){F3(t)}}}class bn extends Q2{constructor(n,t,i){let a;if(super(),Y(n)||!n)a={next:null!=n?n:void 0,error:null!=t?t:void 0,complete:null!=i?i:void 0};else{let r;this&&S1.useDeprecatedNextContext?(r=Object.create(n),r.unsubscribe=()=>this.unsubscribe(),a={next:n.next&&lt(n.next,r),error:n.error&&lt(n.error,r),complete:n.complete&&lt(n.complete,r)}):a=n}this.destination=new Xa(a)}}function F3(e){S1.useDeprecatedSynchronousErrorHandling?function o2(e){S1.useDeprecatedSynchronousErrorHandling&&_1&&(_1.errorThrown=!0,_1.error=e)}(e):A1(e)}function ii(e,n){const{onStoppedNotification:t}=S1;t&&e1.setTimeout(()=>t(e,n))}const is={closed:!0,next:R1,error:function ns(e){throw e},complete:R1},ai="function"==typeof Symbol&&Symbol.observable||"@@observable";function ut(e){return e}let Te=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){const i=new e;return i.source=this,i.operator=t,i}subscribe(t,i,a){const r=function cs(e){return e&&e instanceof Q2||function rs(e){return e&&Y(e.next)&&Y(e.error)&&Y(e.complete)}(e)&&Xe(e)}(t)?t:new bn(t,i,a);return We(()=>{const{operator:c,source:o}=this;r.add(c?c.call(r,o):o?this._subscribe(r):this._trySubscribe(r))}),r}_trySubscribe(t){try{return this._subscribe(t)}catch(i){t.error(i)}}forEach(t,i){return new(i=er(i))((a,r)=>{const c=new bn({next:o=>{try{t(o)}catch(s){r(s),c.unsubscribe()}},error:r,complete:a});this.subscribe(c)})}_subscribe(t){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(t)}[ai](){return this}pipe(...t){return function ri(e){return 0===e.length?ut:1===e.length?e[0]:function(t){return e.reduce((i,a)=>a(i),t)}}(t)(this)}toPromise(t){return new(t=er(t))((i,a)=>{let r;this.subscribe(c=>r=c,c=>a(c),()=>i(r))})}}return e.create=n=>new e(n),e})();function er(e){var n;return null!==(n=null!=e?e:S1.Promise)&&void 0!==n?n:Promise}const os=c2(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let fe=(()=>{class e extends Te{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const i=new Q1(this,this);return i.operator=t,i}_throwIfClosed(){if(this.closed)throw new os}next(t){We(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(t)}})}error(t){We(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:i}=this;for(;i.length;)i.shift().error(t)}})}complete(){We(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:i,isStopped:a,observers:r}=this;return i||a?xe:(this.currentObservers=null,r.push(t),new we(()=>{this.currentObservers=null,$e(r,t)}))}_checkFinalizedStatuses(t){const{hasError:i,thrownError:a,isStopped:r}=this;i?t.error(a):r&&t.complete()}asObservable(){const t=new Te;return t.source=this,t}}return e.create=(n,t)=>new Q1(n,t),e})();class Q1 extends fe{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===i||i.call(t,n)}error(n){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===i||i.call(t,n)}complete(){var n,t;null===(t=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===t||t.call(n)}_subscribe(n){var t,i;return null!==(i=null===(t=this.source)||void 0===t?void 0:t.subscribe(n))&&void 0!==i?i:xe}}function ci(e){return Y(null==e?void 0:e.lift)}function r1(e){return n=>{if(ci(n))return n.lift(function(t){try{return e(t,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function Re(e,n,t,i,a){return new tr(e,n,t,i,a)}class tr extends Q2{constructor(n,t,i,a,r,c){super(n),this.onFinalize=r,this.shouldUnsubscribe=c,this._next=t?function(o){try{t(o)}catch(s){n.error(s)}}:super._next,this._error=a?function(o){try{a(o)}catch(s){n.error(s)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(o){n.error(o)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function me(e,n){return r1((t,i)=>{let a=0;t.subscribe(Re(i,r=>{i.next(e.call(n,r,a++))}))})}function f(e){return this instanceof f?(this.v=e,this):new f(e)}function h(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a,i=t.apply(e,n||[]),r=[];return a={},c("next"),c("throw"),c("return"),a[Symbol.asyncIterator]=function(){return this},a;function c(p){i[p]&&(a[p]=function(g){return new Promise(function(w,V){r.push([p,g,w,V])>1||o(p,g)})})}function o(p,g){try{!function s(p){p.value instanceof f?Promise.resolve(p.value.v).then(l,u):d(r[0][2],p)}(i[p](g))}catch(w){d(r[0][3],w)}}function l(p){o("next",p)}function u(p){o("throw",p)}function d(p,g){p(g),r.shift(),r.length&&o(r[0][0],r[0][1])}}function D(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function Qn(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],i=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(r){t[r]=e[r]&&function(c){return new Promise(function(o,s){!function a(r,c,o,s){Promise.resolve(s).then(function(l){r({value:l,done:o})},c)}(o,s,(c=e[r](c)).done,c.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const fs=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function m7(e){return Y(null==e?void 0:e.then)}function g7(e){return Y(e[ai])}function v7(e){return Symbol.asyncIterator&&Y(null==e?void 0:e[Symbol.asyncIterator])}function _7(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 C7=function sz(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function y7(e){return Y(null==e?void 0:e[C7])}function M7(e){return h(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:i,done:a}=yield f(t.read());if(a)return yield f(void 0);yield yield f(i)}}finally{t.releaseLock()}})}function b7(e){return Y(null==e?void 0:e.getReader)}function Z1(e){if(e instanceof Te)return e;if(null!=e){if(g7(e))return function lz(e){return new Te(n=>{const t=e[ai]();if(Y(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(fs(e))return function uz(e){return new Te(n=>{for(let t=0;t<e.length&&!n.closed;t++)n.next(e[t]);n.complete()})}(e);if(m7(e))return function fz(e){return new Te(n=>{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,A1)})}(e);if(v7(e))return H7(e);if(y7(e))return function dz(e){return new Te(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(b7(e))return function hz(e){return H7(M7(e))}(e)}throw _7(e)}function H7(e){return new Te(n=>{(function pz(e,n){var t,i,a,r;return function ar(e,n,t,i){return new(t||(t=Promise))(function(r,c){function o(u){try{l(i.next(u))}catch(d){c(d)}}function s(u){try{l(i.throw(u))}catch(d){c(d)}}function l(u){u.done?r(u.value):function a(r){return r instanceof t?r:new t(function(c){c(r)})}(u.value).then(o,s)}l((i=i.apply(e,n||[])).next())})}(this,void 0,void 0,function*(){try{for(t=D(e);!(i=yield t.next()).done;)if(n.next(i.value),n.closed)return}catch(c){a={error:c}}finally{try{i&&!i.done&&(r=t.return)&&(yield r.call(t))}finally{if(a)throw a.error}}n.complete()})})(e,n).catch(t=>n.error(t))})}function Zt(e,n,t,i=0,a=!1){const r=n.schedule(function(){t(),a?e.add(this.schedule(null,i)):this.unsubscribe()},i);if(e.add(r),!a)return r}function V1(e,n,t=1/0){return Y(n)?V1((i,a)=>me((r,c)=>n(i,r,a,c))(Z1(e(i,a))),t):("number"==typeof n&&(t=n),r1((i,a)=>function mz(e,n,t,i,a,r,c,o){const s=[];let l=0,u=0,d=!1;const p=()=>{d&&!s.length&&!l&&n.complete()},g=V=>l<i?w(V):s.push(V),w=V=>{r&&n.next(V),l++;let N=!1;Z1(t(V,u++)).subscribe(Re(n,A=>{null==a||a(A),r?g(A):n.next(A)},()=>{N=!0},void 0,()=>{if(N)try{for(l--;s.length&&l<i;){const A=s.shift();c?Zt(n,c,()=>w(A)):w(A)}p()}catch(A){n.error(A)}}))};return e.subscribe(Re(n,g,()=>{d=!0,p()})),()=>{null==o||o()}}(i,a,e,t)))}function si(e=1/0){return V1(ut,e)}const ft=new Te(e=>e.complete());function w7(e){return e&&Y(e.schedule)}function ds(e){return e[e.length-1]}function or(e){return Y(ds(e))?e.pop():void 0}function li(e){return w7(ds(e))?e.pop():void 0}function V7(e,n=0){return r1((t,i)=>{t.subscribe(Re(i,a=>Zt(i,e,()=>i.next(a),n),()=>Zt(i,e,()=>i.complete(),n),a=>Zt(i,e,()=>i.error(a),n)))})}function D7(e,n=0){return r1((t,i)=>{i.add(e.schedule(()=>t.subscribe(i),n))})}function z7(e,n){if(!e)throw new Error("Iterable cannot be null");return new Te(t=>{Zt(t,n,()=>{const i=e[Symbol.asyncIterator]();Zt(t,n,()=>{i.next().then(a=>{a.done?t.complete():t.next(a.value)})},0,!0)})})}function J1(e,n){return n?function Hz(e,n){if(null!=e){if(g7(e))return function _z(e,n){return Z1(e).pipe(D7(n),V7(n))}(e,n);if(fs(e))return function yz(e,n){return new Te(t=>{let i=0;return n.schedule(function(){i===e.length?t.complete():(t.next(e[i++]),t.closed||this.schedule())})})}(e,n);if(m7(e))return function Cz(e,n){return Z1(e).pipe(D7(n),V7(n))}(e,n);if(v7(e))return z7(e,n);if(y7(e))return function Mz(e,n){return new Te(t=>{let i;return Zt(t,n,()=>{i=e[C7](),Zt(t,n,()=>{let a,r;try{({value:a,done:r}=i.next())}catch(c){return void t.error(c)}r?t.complete():t.next(a)},0,!0)}),()=>Y(null==i?void 0:i.return)&&i.return()})}(e,n);if(b7(e))return function bz(e,n){return z7(M7(e),n)}(e,n)}throw _7(e)}(e,n):Z1(e)}function N7(...e){const n=li(e),t=function vz(e,n){return"number"==typeof ds(e)?e.pop():n}(e,1/0),i=e;return i.length?1===i.length?Z1(i[0]):si(t)(J1(i,n)):ft}function x7(e={}){const{connector:n=(()=>new fe),resetOnError:t=!0,resetOnComplete:i=!0,resetOnRefCountZero:a=!0}=e;return r=>{let c,o,s,l=0,u=!1,d=!1;const p=()=>{null==o||o.unsubscribe(),o=void 0},g=()=>{p(),c=s=void 0,u=d=!1},w=()=>{const V=c;g(),null==V||V.unsubscribe()};return r1((V,N)=>{l++,!d&&!u&&p();const A=s=null!=s?s:n();N.add(()=>{l--,0===l&&!d&&!u&&(o=hs(w,a))}),A.subscribe(N),!c&&l>0&&(c=new bn({next:z=>A.next(z),error:z=>{d=!0,p(),o=hs(g,t,z),A.error(z)},complete:()=>{u=!0,p(),o=hs(g,i),A.complete()}}),Z1(V).subscribe(c))})(r)}}function hs(e,n,...t){if(!0===n)return void e();if(!1===n)return;const i=new bn({next:()=>{i.unsubscribe(),e()}});return n(...t).subscribe(i)}function Ue(e){for(let n in e)if(e[n]===Ue)return n;throw Error("Could not find renamed property on target object.")}function ps(e,n){for(const t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function Ie(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Ie).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const n=e.toString();if(null==n)return""+n;const t=n.indexOf("\n");return-1===t?n:n.substring(0,t)}function ms(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}const wz=Ue({__forward_ref__:Ue});function Ne(e){return e.__forward_ref__=Ne,e.toString=function(){return Ie(this())},e}function de(e){return L7(e)?e():e}function L7(e){return"function"==typeof e&&e.hasOwnProperty(wz)&&e.__forward_ref__===Ne}class Ve extends Error{constructor(n,t){super(function gs(e,n){return`NG0${Math.abs(e)}${n?": "+n:""}`}(n,t)),this.code=n}}function oe(e){return"string"==typeof e?e:null==e?"":String(e)}function X1(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():oe(e)}function sr(e,n){const t=n?` in ${n}`:"";throw new Ve(-201,`No provider for ${X1(e)} found${t}`)}function E2(e,n){null==e&&function Oe(e,n,t,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${t} ${i} ${n} <=Actual]`))}(n,e,null,"!=")}function Z(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Le(e){return{providers:e.providers||[],imports:e.imports||[]}}function vs(e){return S7(e,lr)||S7(e,E7)}function S7(e,n){return e.hasOwnProperty(n)?e[n]:null}function A7(e){return e&&(e.hasOwnProperty(_s)||e.hasOwnProperty(Sz))?e[_s]:null}const lr=Ue({\u0275prov:Ue}),_s=Ue({\u0275inj:Ue}),E7=Ue({ngInjectableDef:Ue}),Sz=Ue({ngInjectorDef:Ue});var ae=(()=>((ae=ae||{})[ae.Default=0]="Default",ae[ae.Host=1]="Host",ae[ae.Self=2]="Self",ae[ae.SkipSelf=4]="SkipSelf",ae[ae.Optional=8]="Optional",ae))();let Cs;function Vn(e){const n=Cs;return Cs=e,n}function T7(e,n,t){const i=vs(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:t&ae.Optional?null:void 0!==n?n:void sr(Ie(e),"Injector")}function Dn(e){return{toString:e}.toString()}var dt=(()=>((dt=dt||{})[dt.OnPush=0]="OnPush",dt[dt.Default=1]="Default",dt))(),Et=(()=>{return(e=Et||(Et={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",Et;var e})();const Ez="undefined"!=typeof globalThis&&globalThis,Tz="undefined"!=typeof window&&window,kz="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Pe=Ez||"undefined"!=typeof global&&global||Tz||kz,j3={},je=[],ur=Ue({\u0275cmp:Ue}),ys=Ue({\u0275dir:Ue}),Ms=Ue({\u0275pipe:Ue}),k7=Ue({\u0275mod:Ue}),Xt=Ue({\u0275fac:Ue}),ui=Ue({__NG_ELEMENT_ID__:Ue});let Iz=0;function re(e){return Dn(()=>{const t={},i={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===dt.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||je,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Et.Emulated,id:"c",styles:e.styles||je,_:null,setInput:null,schemas:e.schemas||null,tView:null},a=e.directives,r=e.features,c=e.pipes;return i.id+=Iz++,i.inputs=P7(e.inputs,t),i.outputs=P7(e.outputs),r&&r.forEach(o=>o(i)),i.directiveDefs=a?()=>("function"==typeof a?a():a).map(I7):null,i.pipeDefs=c?()=>("function"==typeof c?c():c).map(O7):null,i})}function I7(e){return e2(e)||function zn(e){return e[ys]||null}(e)}function O7(e){return function Zn(e){return e[Ms]||null}(e)}const R7={};function Ae(e){return Dn(()=>{const n={type:e.type,bootstrap:e.bootstrap||je,declarations:e.declarations||je,imports:e.imports||je,exports:e.exports||je,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(R7[e.id]=e.type),n})}function P7(e,n){if(null==e)return j3;const t={};for(const i in e)if(e.hasOwnProperty(i)){let a=e[i],r=a;Array.isArray(a)&&(r=a[1],a=a[0]),t[a]=i,n&&(n[a]=r)}return t}const U=re;function e2(e){return e[ur]||null}function J2(e,n){const t=e[k7]||null;if(!t&&!0===n)throw new Error(`Type ${Ie(e)} does not have '\u0275mod' property.`);return t}function Tt(e){return Array.isArray(e)&&"object"==typeof e[1]}function pt(e){return Array.isArray(e)&&!0===e[1]}function ws(e){return 0!=(8&e.flags)}function pr(e){return 2==(2&e.flags)}function mr(e){return 1==(1&e.flags)}function mt(e){return null!==e.template}function Uz(e){return 0!=(512&e[2])}function t3(e,n){return e.hasOwnProperty(Xt)?e[Xt]:null}class $z{constructor(n,t,i){this.previousValue=n,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}}function D1(){return B7}function B7(e){return e.type.prototype.ngOnChanges&&(e.setInput=qz),Wz}function Wz(){const e=j7(this),n=null==e?void 0:e.current;if(n){const t=e.previous;if(t===j3)e.previous=n;else for(let i in n)t[i]=n[i];e.current=null,this.ngOnChanges(n)}}function qz(e,n,t,i){const a=j7(e)||function Yz(e,n){return e[U7]=n}(e,{previous:j3,current:null}),r=a.current||(a.current={}),c=a.previous,o=this.declaredInputs[t],s=c[o];r[o]=new $z(s&&s.currentValue,n,c===j3),e[i]=n}D1.ngInherit=!0;const U7="__ngSimpleChanges__";function j7(e){return e[U7]||null}let xs;function Ls(){return void 0!==xs?xs:"undefined"!=typeof document?document:void 0}function y1(e){return!!e.listen}const G7={createRenderer:(e,n)=>Ls()};function E1(e){for(;Array.isArray(e);)e=e[0];return e}function gr(e,n){return E1(n[e])}function k2(e,n){return E1(n[e.index])}function Ss(e,n){return e.data[n]}function I2(e,n){const t=n[e];return Tt(t)?t:t[0]}function $7(e){return 4==(4&e[2])}function As(e){return 128==(128&e[2])}function Nn(e,n){return null==n?null:e[n]}function W7(e){e[18]=0}function Es(e,n){e[5]+=n;let t=e,i=e[3];for(;null!==i&&(1===n&&1===t[5]||-1===n&&0===t[5]);)i[5]+=n,t=i,i=i[3]}const se={lFrame:tu(null),bindingsEnabled:!0};function Y7(){return se.bindingsEnabled}function I(){return se.lFrame.lView}function De(){return se.lFrame.tView}function W(e){return se.lFrame.contextLView=e,e[8]}function P1(){let e=K7();for(;null!==e&&64===e.type;)e=e.parent;return e}function K7(){return se.lFrame.currentTNode}function kt(e,n){const t=se.lFrame;t.currentTNode=e,t.isParent=n}function Ts(){return se.lFrame.isParent}function ks(){se.lFrame.isParent=!1}function K3(){return se.lFrame.bindingIndex++}function tn(e){const n=se.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function fN(e,n){const t=se.lFrame;t.bindingIndex=t.bindingRootIndex=e,Is(n)}function Is(e){se.lFrame.currentDirectiveIndex=e}function J7(){return se.lFrame.currentQueryIndex}function Rs(e){se.lFrame.currentQueryIndex=e}function hN(e){const n=e[1];return 2===n.type?n.declTNode:1===n.type?e[6]:null}function X7(e,n,t){if(t&ae.SkipSelf){let a=n,r=e;for(;!(a=a.parent,null!==a||t&ae.Host||(a=hN(r),null===a||(r=r[15],10&a.type))););if(null===a)return!1;n=a,e=r}const i=se.lFrame=eu();return i.currentTNode=n,i.lView=e,!0}function _r(e){const n=eu(),t=e[1];se.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function eu(){const e=se.lFrame,n=null===e?null:e.child;return null===n?tu(e):n}function tu(e){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=n),n}function nu(){const e=se.lFrame;return se.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const iu=nu;function Cr(){const e=nu();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 se.lFrame.selectedIndex}function xn(e){se.lFrame.selectedIndex=e}function d1(){const e=se.lFrame;return Ss(e.tView,e.selectedIndex)}function Q3(){se.lFrame.currentNamespace="svg"}function Z3(){!function vN(){se.lFrame.currentNamespace=null}()}function yr(e,n){for(let t=n.directiveStart,i=n.directiveEnd;t<i;t++){const r=e.data[t].type.prototype,{ngAfterContentInit:c,ngAfterContentChecked:o,ngAfterViewInit:s,ngAfterViewChecked:l,ngOnDestroy:u}=r;c&&(e.contentHooks||(e.contentHooks=[])).push(-t,c),o&&((e.contentHooks||(e.contentHooks=[])).push(t,o),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(t,o)),s&&(e.viewHooks||(e.viewHooks=[])).push(-t,s),l&&((e.viewHooks||(e.viewHooks=[])).push(t,l),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(t,l)),null!=u&&(e.destroyHooks||(e.destroyHooks=[])).push(t,u)}}function Mr(e,n,t){au(e,n,3,t)}function br(e,n,t,i){(3&e[2])===t&&au(e,n,t,i)}function Ps(e,n){let t=e[2];(3&t)===n&&(t&=2047,t+=1,e[2]=t)}function au(e,n,t,i){const r=null!=i?i:-1,c=n.length-1;let o=0;for(let s=void 0!==i?65535&e[18]:0;s<c;s++)if("number"==typeof n[s+1]){if(o=n[s],null!=i&&o>=i)break}else n[s]<0&&(e[18]+=65536),(o<r||-1==r)&&(yN(e,t,n,s),e[18]=(4294901760&e[18])+s+2),s++}function yN(e,n,t,i){const a=t[i]<0,r=t[i+1],o=e[a?-t[i]:t[i]];if(a){if(e[2]>>11<e[18]>>16&&(3&e[2])===n){e[2]+=2048;try{r.call(o)}finally{}}}else try{r.call(o)}finally{}}class mi{constructor(n,t,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=i}}function Hr(e,n,t){const i=y1(e);let a=0;for(;a<t.length;){const r=t[a];if("number"==typeof r){if(0!==r)break;a++;const c=t[a++],o=t[a++],s=t[a++];i?e.setAttribute(n,o,s,c):n.setAttributeNS(c,o,s)}else{const c=r,o=t[++a];Bs(c)?i&&e.setProperty(n,c,o):i?e.setAttribute(n,c,o):n.setAttribute(c,o),a++}}return a}function ru(e){return 3===e||4===e||6===e}function Bs(e){return 64===e.charCodeAt(0)}function wr(e,n){if(null!==n&&0!==n.length)if(null===e||0===e.length)e=n.slice();else{let t=-1;for(let i=0;i<n.length;i++){const a=n[i];"number"==typeof a?t=a:0===t||cu(e,t,a,null,-1===t||2===t?n[++i]:null)}}return e}function cu(e,n,t,i,a){let r=0,c=e.length;if(-1===n)c=-1;else for(;r<e.length;){const o=e[r++];if("number"==typeof o){if(o===n){c=-1;break}if(o>n){c=r-1;break}}}for(;r<e.length;){const o=e[r];if("number"==typeof o)break;if(o===t){if(null===i)return void(null!==a&&(e[r+1]=a));if(i===e[r+1])return void(e[r+2]=a)}r++,null!==i&&r++,null!==a&&r++}-1!==c&&(e.splice(c,0,n),r=c+1),e.splice(r++,0,t),null!==i&&e.splice(r++,0,i),null!==a&&e.splice(r++,0,a)}function ou(e){return-1!==e}function J3(e){return 32767&e}function X3(e,n){let t=function VN(e){return e>>16}(e),i=n;for(;t>0;)i=i[15],t--;return i}let Us=!0;function Vr(e){const n=Us;return Us=e,n}let DN=0;function vi(e,n){const t=Gs(e,n);if(-1!==t)return t;const i=n[1];i.firstCreatePass&&(e.injectorIndex=n.length,js(i.data,e),js(n,null),js(i.blueprint,null));const a=Dr(e,n),r=e.injectorIndex;if(ou(a)){const c=J3(a),o=X3(a,n),s=o[1].data;for(let l=0;l<8;l++)n[r+l]=o[c+l]|s[c+l]}return n[r+8]=a,r}function js(e,n){e.push(0,0,0,0,0,0,0,0,n)}function Gs(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function Dr(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let t=0,i=null,a=n;for(;null!==a;){const r=a[1],c=r.type;if(i=2===c?r.declTNode:1===c?a[6]:null,null===i)return-1;if(t++,a=a[15],-1!==i.injectorIndex)return i.injectorIndex|t<<16}return-1}function zr(e,n,t){!function zN(e,n,t){let i;"string"==typeof t?i=t.charCodeAt(0)||0:t.hasOwnProperty(ui)&&(i=t[ui]),null==i&&(i=t[ui]=DN++);const a=255&i;n.data[e+(a>>5)]|=1<<a}(e,n,t)}function uu(e,n,t){if(t&ae.Optional)return e;sr(n,"NodeInjector")}function fu(e,n,t,i){if(t&ae.Optional&&void 0===i&&(i=null),0==(t&(ae.Self|ae.Host))){const a=e[9],r=Vn(void 0);try{return a?a.get(n,i,t&ae.Optional):T7(n,i,t&ae.Optional)}finally{Vn(r)}}return uu(i,n,t)}function du(e,n,t,i=ae.Default,a){if(null!==e){const r=function SN(e){if("string"==typeof e)return e.charCodeAt(0)||0;const n=e.hasOwnProperty(ui)?e[ui]:void 0;return"number"==typeof n?n>=0?255&n:xN:n}(t);if("function"==typeof r){if(!X7(n,e,i))return i&ae.Host?uu(a,t,i):fu(n,t,i,a);try{const c=r(i);if(null!=c||i&ae.Optional)return c;sr(t)}finally{iu()}}else if("number"==typeof r){let c=null,o=Gs(e,n),s=-1,l=i&ae.Host?n[16][6]:null;for((-1===o||i&ae.SkipSelf)&&(s=-1===o?Dr(e,n):n[o+8],-1!==s&&mu(i,!1)?(c=n[1],o=J3(s),n=X3(s,n)):o=-1);-1!==o;){const u=n[1];if(pu(r,o,u.data)){const d=LN(o,n,t,c,i,l);if(d!==hu)return d}s=n[o+8],-1!==s&&mu(i,n[1].data[o+8]===l)&&pu(r,o,n)?(c=u,o=J3(s),n=X3(s,n)):o=-1}}}return fu(n,t,i,a)}const hu={};function xN(){return new e4(P1(),I())}function LN(e,n,t,i,a,r){const c=n[1],o=c.data[e+8],u=Nr(o,c,t,null==i?pr(o)&&Us:i!=c&&0!=(3&o.type),a&ae.Host&&r===o);return null!==u?_i(n,c,u,o):hu}function Nr(e,n,t,i,a){const r=e.providerIndexes,c=n.data,o=1048575&r,s=e.directiveStart,u=r>>20,p=a?o+u:e.directiveEnd;for(let g=i?o:o+u;g<p;g++){const w=c[g];if(g<s&&t===w||g>=s&&w.type===t)return g}if(a){const g=c[s];if(g&&mt(g)&&g.type===t)return s}return null}function _i(e,n,t,i){let a=e[t];const r=n.data;if(function MN(e){return e instanceof mi}(a)){const c=a;c.resolving&&function Vz(e,n){const t=n?`. Dependency path: ${n.join(" > ")} > ${e}`:"";throw new Ve(-200,`Circular dependency in DI detected for ${e}${t}`)}(X1(r[t]));const o=Vr(c.canSeeViewProviders);c.resolving=!0;const s=c.injectImpl?Vn(c.injectImpl):null;X7(e,i,ae.Default);try{a=e[t]=c.factory(void 0,r,e,i),n.firstCreatePass&&t>=i.directiveStart&&function CN(e,n,t){const{ngOnChanges:i,ngOnInit:a,ngDoCheck:r}=n.type.prototype;if(i){const c=B7(n);(t.preOrderHooks||(t.preOrderHooks=[])).push(e,c),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,c)}a&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-e,a),r&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e,r),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,r))}(t,r[t],n)}finally{null!==s&&Vn(s),Vr(o),c.resolving=!1,iu()}}return a}function pu(e,n,t){return!!(t[n+(e>>5)]&1<<e)}function mu(e,n){return!(e&ae.Self||e&ae.Host&&n)}class e4{constructor(n,t){this._tNode=n,this._lView=t}get(n,t,i){return du(this._tNode,this._lView,n,i,t)}}function u2(e){return Dn(()=>{const n=e.prototype.constructor,t=n[Xt]||$s(n),i=Object.prototype;let a=Object.getPrototypeOf(e.prototype).constructor;for(;a&&a!==i;){const r=a[Xt]||$s(a);if(r&&r!==t)return r;a=Object.getPrototypeOf(a)}return r=>new r})}function $s(e){return L7(e)?()=>{const n=$s(de(e));return n&&n()}:t3(e)}const n4="__parameters__";function a4(e,n,t){return Dn(()=>{const i=function Ws(e){return function(...t){if(e){const i=e(...t);for(const a in i)this[a]=i[a]}}}(n);function a(...r){if(this instanceof a)return i.apply(this,r),this;const c=new a(...r);return o.annotation=c,o;function o(s,l,u){const d=s.hasOwnProperty(n4)?s[n4]:Object.defineProperty(s,n4,{value:[]})[n4];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(c),s}}return t&&(a.prototype=Object.create(t.prototype)),a.prototype.ngMetadataName=e,a.annotationCls=a,a})}class ve{constructor(n,t){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=Z({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const EN=new ve("AnalyzeForEntryComponents");function tt(e,n){void 0===n&&(n=e);for(let t=0;t<e.length;t++){let i=e[t];Array.isArray(i)?(n===e&&(n=e.slice(0,t)),tt(i,n)):n!==e&&n.push(i)}return n}function It(e,n){e.forEach(t=>Array.isArray(t)?It(t,n):n(t))}function vu(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function xr(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function Mi(e,n){const t=[];for(let i=0;i<e;i++)t.push(n);return t}function O2(e,n,t){let i=r4(e,n);return i>=0?e[1|i]=t:(i=~i,function IN(e,n,t,i){let a=e.length;if(a==n)e.push(t,i);else if(1===a)e.push(i,e[0]),e[0]=t;else{for(a--,e.push(e[a-1],e[a]);a>n;)e[a]=e[a-2],a--;e[n]=t,e[n+1]=i}}(e,i,n,t)),i}function Ys(e,n){const t=r4(e,n);if(t>=0)return e[1|t]}function r4(e,n){return function yu(e,n,t){let i=0,a=e.length>>t;for(;a!==i;){const r=i+(a-i>>1),c=e[r<<t];if(n===c)return r<<t;c>n?a=r:i=r+1}return~(a<<t)}(e,n,1)}const bi={},Qs="__NG_DI_FLAG__",Sr="ngTempTokenPath",jN=/\n/gm,bu="__source",$N=Ue({provide:String,useValue:Ue});let Hi;function Hu(e){const n=Hi;return Hi=e,n}function WN(e,n=ae.Default){if(void 0===Hi)throw new Ve(203,"");return null===Hi?T7(e,void 0,n):Hi.get(e,n&ae.Optional?null:void 0,n)}function q(e,n=ae.Default){return(function Az(){return Cs}()||WN)(de(e),n)}const qN=q;function Zs(e){const n=[];for(let t=0;t<e.length;t++){const i=de(e[t]);if(Array.isArray(i)){if(0===i.length)throw new Ve(900,"");let a,r=ae.Default;for(let c=0;c<i.length;c++){const o=i[c],s=YN(o);"number"==typeof s?-1===s?a=o.token:r|=s:a=o}n.push(q(a,r))}else n.push(q(i))}return n}function wi(e,n){return e[Qs]=n,e.prototype[Qs]=n,e}function YN(e){return e[Qs]}const Ar=wi(a4("Inject",e=>({token:e})),-1),Sn=wi(a4("Optional"),8),Vi=wi(a4("SkipSelf"),4);var R2=(()=>((R2=R2||{})[R2.Important=1]="Important",R2[R2.DashCase=2]="DashCase",R2))();const Su="__ngContext__";function f2(e,n){e[Su]=n}function e6(e){const n=function zi(e){return e[Su]||null}(e);return n?Array.isArray(n)?n:n.lView:null}function n6(e,n){return undefined(e,n)}function Ni(e){const n=e[3];return pt(n)?n[3]:n}function i6(e){return Ru(e[13])}function a6(e){return Ru(e[4])}function Ru(e){for(;null!==e&&!pt(e);)e=e[4];return e}function o4(e,n,t,i,a){if(null!=i){let r,c=!1;pt(i)?r=i:Tt(i)&&(c=!0,i=i[0]);const o=E1(i);0===e&&null!==t?null==a?Gu(n,t,o):a3(n,t,o,a||null,!0):1===e&&null!==t?a3(n,t,o,a||null,!0):2===e?function f6(e,n,t){const i=Tr(e,n);i&&function Vx(e,n,t,i){y1(e)?e.removeChild(n,t,i):n.removeChild(t)}(e,i,n,t)}(n,o,c):3===e&&n.destroyNode(o),null!=r&&function Nx(e,n,t,i,a){const r=t[7];r!==E1(t)&&o4(n,e,i,r,a);for(let o=10;o<t.length;o++){const s=t[o];xi(s[1],s,e,n,i,r)}}(n,e,r,t,a)}}function c6(e,n,t){if(y1(e))return e.createElement(n,t);{const i=null!==t?function Jz(e){const n=e.toLowerCase();return"svg"===n?"http://www.w3.org/2000/svg":"math"===n?"http://www.w3.org/1998/MathML/":null}(t):null;return null===i?e.createElement(n):e.createElementNS(i,n)}}function Fu(e,n){const t=e[9],i=t.indexOf(n),a=n[3];1024&n[2]&&(n[2]&=-1025,Es(a,-1)),t.splice(i,1)}function o6(e,n){if(e.length<=10)return;const t=10+n,i=e[t];if(i){const a=i[17];null!==a&&a!==e&&Fu(a,i),n>0&&(e[t-1][4]=i[4]);const r=xr(e,10+n);!function vx(e,n){xi(e,n,n[11],2,null,null),n[0]=null,n[6]=null}(i[1],i);const c=r[19];null!==c&&c.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function Bu(e,n){if(!(256&n[2])){const t=n[11];y1(t)&&t.destroyNode&&xi(e,n,t,3,null,null),function yx(e){let n=e[13];if(!n)return s6(e[1],e);for(;n;){let t=null;if(Tt(n))t=n[13];else{const i=n[10];i&&(t=i)}if(!t){for(;n&&!n[4]&&n!==e;)Tt(n)&&s6(n[1],n),n=n[3];null===n&&(n=e),Tt(n)&&s6(n[1],n),t=n&&n[4]}n=t}}(n)}}function s6(e,n){if(!(256&n[2])){n[2]&=-129,n[2]|=256,function wx(e,n){let t;if(null!=e&&null!=(t=e.destroyHooks))for(let i=0;i<t.length;i+=2){const a=n[t[i]];if(!(a instanceof mi)){const r=t[i+1];if(Array.isArray(r))for(let c=0;c<r.length;c+=2){const o=a[r[c]],s=r[c+1];try{s.call(o)}finally{}}else try{r.call(a)}finally{}}}}(e,n),function Hx(e,n){const t=e.cleanup,i=n[7];let a=-1;if(null!==t)for(let r=0;r<t.length-1;r+=2)if("string"==typeof t[r]){const c=t[r+1],o="function"==typeof c?c(n):E1(n[c]),s=i[a=t[r+2]],l=t[r+3];"boolean"==typeof l?o.removeEventListener(t[r],s,l):l>=0?i[a=l]():i[a=-l].unsubscribe(),r+=2}else{const c=i[a=t[r+1]];t[r].call(c)}if(null!==i){for(let r=a+1;r<i.length;r++)i[r]();n[7]=null}}(e,n),1===n[1].type&&y1(n[11])&&n[11].destroy();const t=n[17];if(null!==t&&pt(n[3])){t!==n[3]&&Fu(t,n);const i=n[19];null!==i&&i.detachView(e)}}}function Uu(e,n,t){return function ju(e,n,t){let i=n;for(;null!==i&&40&i.type;)i=(n=i).parent;if(null===i)return t[0];if(2&i.flags){const a=e.data[i.directiveStart].encapsulation;if(a===Et.None||a===Et.Emulated)return null}return k2(i,t)}(e,n.parent,t)}function a3(e,n,t,i,a){y1(e)?e.insertBefore(n,t,i,a):n.insertBefore(t,i,a)}function Gu(e,n,t){y1(e)?e.appendChild(n,t):n.appendChild(t)}function $u(e,n,t,i,a){null!==i?a3(e,n,t,i,a):Gu(e,n,t)}function Tr(e,n){return y1(e)?e.parentNode(n):n.parentNode}function Wu(e,n,t){return Yu(e,n,t)}let Or,Rr,Yu=function qu(e,n,t){return 40&e.type?k2(e,t):null};function kr(e,n,t,i){const a=Uu(e,i,n),r=n[11],o=Wu(i.parent||n[6],i,n);if(null!=a)if(Array.isArray(t))for(let s=0;s<t.length;s++)$u(r,a,t[s],o,!1);else $u(r,a,t,o,!1)}function Ir(e,n){if(null!==n){const t=n.type;if(3&t)return k2(n,e);if(4&t)return u6(-1,e[n.index]);if(8&t){const i=n.child;if(null!==i)return Ir(e,i);{const a=e[n.index];return pt(a)?u6(-1,a):E1(a)}}if(32&t)return n6(n,e)()||E1(e[n.index]);{const i=Qu(e,n);return null!==i?Array.isArray(i)?i[0]:Ir(Ni(e[16]),i):Ir(e,n.next)}}return null}function Qu(e,n){return null!==n?e[16][6].projection[n.projection]:null}function u6(e,n){const t=10+e+1;if(t<n.length){const i=n[t],a=i[1].firstChild;if(null!==a)return Ir(i,a)}return n[7]}function d6(e,n,t,i,a,r,c){for(;null!=t;){const o=i[t.index],s=t.type;if(c&&0===n&&(o&&f2(E1(o),i),t.flags|=4),64!=(64&t.flags))if(8&s)d6(e,n,t.child,i,a,r,!1),o4(n,e,a,o,r);else if(32&s){const l=n6(t,i);let u;for(;u=l();)o4(n,e,a,u,r);o4(n,e,a,o,r)}else 16&s?Zu(e,n,i,t,a,r):o4(n,e,a,o,r);t=c?t.projectionNext:t.next}}function xi(e,n,t,i,a,r){d6(t,i,e.firstChild,n,a,r,!1)}function Zu(e,n,t,i,a,r){const c=t[16],s=c[6].projection[i.projection];if(Array.isArray(s))for(let l=0;l<s.length;l++)o4(n,e,a,s[l],r);else d6(e,n,s,c[3],a,r,!0)}function Ju(e,n,t){y1(e)?e.setAttribute(n,"style",t):n.style.cssText=t}function h6(e,n,t){y1(e)?""===t?e.removeAttribute(n,"class"):e.setAttribute(n,"class",t):n.className=t}function r3(e){var n;return(null===(n=function p6(){if(void 0===Or&&(Or=null,Pe.trustedTypes))try{Or=Pe.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Or}())||void 0===n?void 0:n.createHTML(e))||e}function Xu(e){var n;return(null===(n=function m6(){if(void 0===Rr&&(Rr=null,Pe.trustedTypes))try{Rr=Pe.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Rr}())||void 0===n?void 0:n.createHTML(e))||e}class c3{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Ex extends c3{getTypeName(){return"HTML"}}class Tx extends c3{getTypeName(){return"Style"}}class kx extends c3{getTypeName(){return"Script"}}class Ix extends c3{getTypeName(){return"URL"}}class Ox extends c3{getTypeName(){return"ResourceURL"}}function P2(e){return e instanceof c3?e.changingThisBreaksApplicationSecurity:e}function Ot(e,n){const t=nf(e);if(null!=t&&t!==n){if("ResourceURL"===t&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${t} (see https://g.co/ng/security#xss)`)}return t===n}function nf(e){return e instanceof c3&&e.getTypeName()||null}class jx{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{const t=(new window.DOMParser).parseFromString(r3(n),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(n):(t.removeChild(t.firstChild),t)}catch(t){return null}}}class Gx{constructor(n){if(this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const i=this.inertDocument.createElement("body");t.appendChild(i)}}getInertBodyElement(n){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=r3(n),t;const i=this.inertDocument.createElement("body");return i.innerHTML=r3(n),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(n){const t=n.attributes;for(let a=t.length-1;0<a;a--){const c=t.item(a).name;("xmlns:ns1"===c||0===c.indexOf("ns1:"))&&n.removeAttribute(c)}let i=n.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const Wx=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,qx=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Li(e){return(e=String(e)).match(Wx)||e.match(qx)?e:"unsafe:"+e}function Rt(e){const n={};for(const t of e.split(","))n[t]=!0;return n}function Si(...e){const n={};for(const t of e)for(const i in t)t.hasOwnProperty(i)&&(n[i]=!0);return n}const cf=Rt("area,br,col,hr,img,wbr"),sf=Rt("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),lf=Rt("rp,rt"),g6=Si(cf,Si(sf,Rt("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")),Si(lf,Rt("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")),Si(lf,sf)),v6=Rt("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),_6=Rt("srcset"),uf=Si(v6,_6,Rt("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,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Rt("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")),Yx=Rt("script,style,template");class Kx{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let t=n.firstChild,i=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?i=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,i&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let a=this.checkClobberedElement(t,t.nextSibling);if(a){t=a;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(n){const t=n.nodeName.toLowerCase();if(!g6.hasOwnProperty(t))return this.sanitizedSomething=!0,!Yx.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const i=n.attributes;for(let a=0;a<i.length;a++){const r=i.item(a),c=r.name,o=c.toLowerCase();if(!uf.hasOwnProperty(o)){this.sanitizedSomething=!0;continue}let s=r.value;v6[o]&&(s=Li(s)),_6[o]&&(e=s,s=(e=String(e)).split(",").map(n=>Li(n.trim())).join(", ")),this.buf.push(" ",c,'="',ff(s),'"')}var e;return this.buf.push(">"),!0}endElement(n){const t=n.nodeName.toLowerCase();g6.hasOwnProperty(t)&&!cf.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(n){this.buf.push(ff(n))}checkClobberedElement(n,t){if(t&&(n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return t}}const Qx=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Zx=/([^\#-~ |!])/g;function ff(e){return e.replace(/&/g,"&amp;").replace(Qx,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(Zx,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Pr;function df(e,n){let t=null;try{Pr=Pr||function af(e){const n=new Gx(e);return function $x(){try{return!!(new window.DOMParser).parseFromString(r3(""),"text/html")}catch(e){return!1}}()?new jx(n):n}(e);let i=n?String(n):"";t=Pr.getInertBodyElement(i);let a=5,r=i;do{if(0===a)throw new Error("Failed to sanitize html because the input is unstable");a--,i=r,r=t.innerHTML,t=Pr.getInertBodyElement(i)}while(i!==r);return r3((new Kx).sanitizeChildren(C6(t)||t))}finally{if(t){const i=C6(t)||t;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function C6(e){return"content"in e&&function Jx(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Ke=(()=>((Ke=Ke||{})[Ke.NONE=0]="NONE",Ke[Ke.HTML=1]="HTML",Ke[Ke.STYLE=2]="STYLE",Ke[Ke.SCRIPT=3]="SCRIPT",Ke[Ke.URL=4]="URL",Ke[Ke.RESOURCE_URL=5]="RESOURCE_URL",Ke))();function hf(e){const n=Ai();return n?Xu(n.sanitize(Ke.HTML,e)||""):Ot(e,"HTML")?Xu(P2(e)):df(Ls(),oe(e))}function nn(e){const n=Ai();return n?n.sanitize(Ke.STYLE,e)||"":Ot(e,"Style")?P2(e):oe(e)}function o3(e){const n=Ai();return n?n.sanitize(Ke.URL,e)||"":Ot(e,"URL")?P2(e):Li(oe(e))}function Ai(){const e=I();return e&&e[12]}function M6(e){return e.ngOriginalError}function oL(e,...n){e.error(...n)}class Ei{constructor(){this._console=console}handleError(n){const t=this._findOriginalError(n),i=function cL(e){return e&&e.ngErrorLogger||oL}(n);i(this._console,"ERROR",n),t&&i(this._console,"ORIGINAL ERROR",t)}_findOriginalError(n){let t=n&&M6(n);for(;t&&M6(t);)t=M6(t);return t||null}}const pL=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Pe))();function Pt(e){return e instanceof Function?e():e}function gf(e,n,t){let i=e.length;for(;;){const a=e.indexOf(n,t);if(-1===a)return a;if(0===a||e.charCodeAt(a-1)<=32){const r=n.length;if(a+r===i||e.charCodeAt(a+r)<=32)return a}t=a+1}}const vf="ng-template";function _L(e,n,t){let i=0;for(;i<e.length;){let a=e[i++];if(t&&"class"===a){if(a=e[i],-1!==gf(a.toLowerCase(),n,0))return!0}else if(1===a){for(;i<e.length&&"string"==typeof(a=e[i++]);)if(a.toLowerCase()===n)return!0;return!1}}return!1}function _f(e){return 4===e.type&&e.value!==vf}function CL(e,n,t){return n===(4!==e.type||t?e.value:vf)}function yL(e,n,t){let i=4;const a=e.attrs||[],r=function HL(e){for(let n=0;n<e.length;n++)if(ru(e[n]))return n;return e.length}(a);let c=!1;for(let o=0;o<n.length;o++){const s=n[o];if("number"!=typeof s){if(!c)if(4&i){if(i=2|1&i,""!==s&&!CL(e,s,t)||""===s&&1===n.length){if(gt(i))return!1;c=!0}}else{const l=8&i?s:n[++o];if(8&i&&null!==e.attrs){if(!_L(e.attrs,l,t)){if(gt(i))return!1;c=!0}continue}const d=ML(8&i?"class":s,a,_f(e),t);if(-1===d){if(gt(i))return!1;c=!0;continue}if(""!==l){let p;p=d>r?"":a[d+1].toLowerCase();const g=8&i?p:null;if(g&&-1!==gf(g,l,0)||2&i&&l!==p){if(gt(i))return!1;c=!0}}}}else{if(!c&&!gt(i)&&!gt(s))return!1;if(c&&gt(s))continue;c=!1,i=s|1&i}}return gt(i)||c}function gt(e){return 0==(1&e)}function ML(e,n,t,i){if(null===n)return-1;let a=0;if(i||!t){let r=!1;for(;a<n.length;){const c=n[a];if(c===e)return a;if(3===c||6===c)r=!0;else{if(1===c||2===c){let o=n[++a];for(;"string"==typeof o;)o=n[++a];continue}if(4===c)break;if(0===c){a+=4;continue}}a+=r?1:2}return-1}return function wL(e,n){let t=e.indexOf(4);if(t>-1)for(t++;t<e.length;){const i=e[t];if("number"==typeof i)return-1;if(i===n)return t;t++}return-1}(n,e)}function Cf(e,n,t=!1){for(let i=0;i<n.length;i++)if(yL(e,n[i],t))return!0;return!1}function VL(e,n){e:for(let t=0;t<n.length;t++){const i=n[t];if(e.length===i.length){for(let a=0;a<e.length;a++)if(e[a]!==i[a])continue e;return!0}}return!1}function yf(e,n){return e?":not("+n.trim()+")":n}function DL(e){let n=e[0],t=1,i=2,a="",r=!1;for(;t<e.length;){let c=e[t];if("string"==typeof c)if(2&i){const o=e[++t];a+="["+c+(o.length>0?'="'+o+'"':"")+"]"}else 8&i?a+="."+c:4&i&&(a+=" "+c);else""!==a&&!gt(c)&&(n+=yf(r,a),a=""),i=c,r=r||!gt(i);t++}return""!==a&&(n+=yf(r,a)),n}const le={};function y(e){Mf(De(),I(),b2()+e,!1)}function Mf(e,n,t,i){if(!i)if(3==(3&n[2])){const r=e.preOrderCheckHooks;null!==r&&Mr(n,r,t)}else{const r=e.preOrderHooks;null!==r&&br(n,r,0,t)}xn(t)}function Fr(e,n){return e<<17|n<<2}function vt(e){return e>>17&32767}function b6(e){return 2|e}function an(e){return(131068&e)>>2}function H6(e,n){return-131069&e|n<<2}function w6(e){return 1|e}function Af(e,n){const t=e.contentQueries;if(null!==t)for(let i=0;i<t.length;i+=2){const a=t[i],r=t[i+1];if(-1!==r){const c=e.data[r];Rs(a),c.contentQueries(2,n[r],r)}}}function Ti(e,n,t,i,a,r,c,o,s,l){const u=n.blueprint.slice();return u[0]=a,u[2]=140|i,W7(u),u[3]=u[15]=e,u[8]=t,u[10]=c||e&&e[10],u[11]=o||e&&e[11],u[12]=s||e&&e[12]||null,u[9]=l||e&&e[9]||null,u[6]=r,u[16]=2==n.type?e[16]:u,u}function l4(e,n,t,i,a){let r=e.data[n];if(null===r)r=function E6(e,n,t,i,a){const r=K7(),c=Ts(),s=e.data[n]=function GL(e,n,t,i,a,r){return{type:t,index:i,insertBeforeIndex:null,injectorIndex:n?n.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:a,attrs:r,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,c?r:r&&r.parent,t,n,i,a);return null===e.firstChild&&(e.firstChild=s),null!==r&&(c?null==r.child&&null!==s.parent&&(r.child=s):null===r.next&&(r.next=s)),s}(e,n,t,i,a),function uN(){return se.lFrame.inI18n}()&&(r.flags|=64);else if(64&r.type){r.type=t,r.value=i,r.attrs=a;const c=function pi(){const e=se.lFrame,n=e.currentTNode;return e.isParent?n:n.parent}();r.injectorIndex=null===c?-1:c.injectorIndex}return kt(r,!0),r}function u4(e,n,t,i){if(0===t)return-1;const a=n.length;for(let r=0;r<t;r++)n.push(i),e.blueprint.push(i),e.data.push(null);return a}function ki(e,n,t){_r(n);try{const i=e.viewQuery;null!==i&&U6(1,i,t);const a=e.template;null!==a&&Ef(e,n,a,1,t),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Af(e,n),e.staticViewQueries&&U6(2,e.viewQuery,t);const r=e.components;null!==r&&function BL(e,n){for(let t=0;t<n.length;t++)sS(e,n[t])}(n,r)}catch(i){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),i}finally{n[2]&=-5,Cr()}}function f4(e,n,t,i){const a=n[2];if(256!=(256&a)){_r(n);try{W7(n),function Q7(e){return se.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==t&&Ef(e,n,t,2,i);const c=3==(3&a);if(c){const l=e.preOrderCheckHooks;null!==l&&Mr(n,l,null)}else{const l=e.preOrderHooks;null!==l&&br(n,l,0,null),Ps(n,0)}if(function cS(e){for(let n=i6(e);null!==n;n=a6(n)){if(!n[2])continue;const t=n[9];for(let i=0;i<t.length;i++){const a=t[i],r=a[3];0==(1024&a[2])&&Es(r,1),a[2]|=1024}}}(n),function rS(e){for(let n=i6(e);null!==n;n=a6(n))for(let t=10;t<n.length;t++){const i=n[t],a=i[1];As(i)&&f4(a,i,a.template,i[8])}}(n),null!==e.contentQueries&&Af(e,n),c){const l=e.contentCheckHooks;null!==l&&Mr(n,l)}else{const l=e.contentHooks;null!==l&&br(n,l,1),Ps(n,1)}!function PL(e,n){const t=e.hostBindingOpCodes;if(null!==t)try{for(let i=0;i<t.length;i++){const a=t[i];if(a<0)xn(~a);else{const r=a,c=t[++i],o=t[++i];fN(c,r),o(2,n[r])}}}finally{xn(-1)}}(e,n);const o=e.components;null!==o&&function FL(e,n){for(let t=0;t<n.length;t++)oS(e,n[t])}(n,o);const s=e.viewQuery;if(null!==s&&U6(2,s,i),c){const l=e.viewCheckHooks;null!==l&&Mr(n,l)}else{const l=e.viewHooks;null!==l&&br(n,l,2),Ps(n,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),n[2]&=-73,1024&n[2]&&(n[2]&=-1025,Es(n[3],-1))}finally{Cr()}}}function UL(e,n,t,i){const a=n[10],c=$7(n);try{!c&&a.begin&&a.begin(),c&&ki(e,n,i),f4(e,n,t,i)}finally{!c&&a.end&&a.end()}}function Ef(e,n,t,i,a){const r=b2(),c=2&i;try{xn(-1),c&&n.length>20&&Mf(e,n,20,!1),t(i,a)}finally{xn(r)}}function T6(e,n,t){!Y7()||(function ZL(e,n,t,i){const a=t.directiveStart,r=t.directiveEnd;e.firstCreatePass||vi(t,n),f2(i,n);const c=t.initialInputs;for(let o=a;o<r;o++){const s=e.data[o],l=mt(s);l&&nS(n,t,s);const u=_i(n,e,o,t);f2(u,n),null!==c&&iS(0,o-a,u,s,0,c),l&&(I2(t.index,n)[8]=u)}}(e,n,t,k2(t,n)),128==(128&t.flags)&&function JL(e,n,t){const i=t.directiveStart,a=t.directiveEnd,c=t.index,o=function dN(){return se.lFrame.currentDirectiveIndex}();try{xn(c);for(let s=i;s<a;s++){const l=e.data[s],u=n[s];Is(s),(null!==l.hostBindings||0!==l.hostVars||null!==l.hostAttrs)&&Uf(l,u)}}finally{xn(-1),Is(o)}}(e,n,t))}function k6(e,n,t=k2){const i=n.localNames;if(null!==i){let a=n.index+1;for(let r=0;r<i.length;r+=2){const c=i[r+1],o=-1===c?t(n,e):e[c];e[a++]=o}}}function kf(e){const n=e.tView;return null===n||n.incompleteFirstPass?e.tView=jr(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):n}function jr(e,n,t,i,a,r,c,o,s,l){const u=20+i,d=u+a,p=function jL(e,n){const t=[];for(let i=0;i<n;i++)t.push(i<e?null:le);return t}(u,d),g="function"==typeof l?l():l;return p[1]={type:e,blueprint:p,template:t,queries:null,viewQuery:o,declTNode:n,data:p.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,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 r?r():r,pipeRegistry:"function"==typeof c?c():c,firstChild:null,schemas:s,consts:g,incompleteFirstPass:!1}}function Rf(e,n,t,i){const a=Yf(n);null===t?a.push(i):(a.push(t),e.firstCreatePass&&Kf(e).push(i,a.length-1))}function Pf(e,n,t){for(let i in e)if(e.hasOwnProperty(i)){const a=e[i];(t=null===t?{}:t).hasOwnProperty(i)?t[i].push(n,a):t[i]=[n,a]}return t}function F2(e,n,t,i,a,r,c,o){const s=k2(n,t);let u,l=n.inputs;!o&&null!=l&&(u=l[i])?(Jf(e,t,u,i,a),pr(n)&&function qL(e,n){const t=I2(n,e);16&t[2]||(t[2]|=64)}(t,n.index)):3&n.type&&(i=function WL(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(i),a=null!=c?c(a,n.value||"",i):a,y1(r)?r.setProperty(s,i,a):Bs(i)||(s.setProperty?s.setProperty(i,a):s[i]=a))}function I6(e,n,t,i){let a=!1;if(Y7()){const r=function XL(e,n,t){const i=e.directiveRegistry;let a=null;if(i)for(let r=0;r<i.length;r++){const c=i[r];Cf(t,c.selectors,!1)&&(a||(a=[]),zr(vi(t,n),e,c.type),mt(c)?(jf(e,t),a.unshift(c)):a.push(c))}return a}(e,n,t),c=null===i?null:{"":-1};if(null!==r){a=!0,Gf(t,e.data.length,r.length);for(let u=0;u<r.length;u++){const d=r[u];d.providersResolver&&d.providersResolver(d)}let o=!1,s=!1,l=u4(e,n,r.length,null);for(let u=0;u<r.length;u++){const d=r[u];t.mergedAttrs=wr(t.mergedAttrs,d.hostAttrs),$f(e,t,n,l,d),tS(l,d,c),null!==d.contentQueries&&(t.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(t.flags|=128);const p=d.type.prototype;!o&&(p.ngOnChanges||p.ngOnInit||p.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t.index),o=!0),!s&&(p.ngOnChanges||p.ngDoCheck)&&((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t.index),s=!0),l++}!function $L(e,n){const i=n.directiveEnd,a=e.data,r=n.attrs,c=[];let o=null,s=null;for(let l=n.directiveStart;l<i;l++){const u=a[l],d=u.inputs,p=null===r||_f(n)?null:aS(d,r);c.push(p),o=Pf(d,l,o),s=Pf(u.outputs,l,s)}null!==o&&(o.hasOwnProperty("class")&&(n.flags|=16),o.hasOwnProperty("style")&&(n.flags|=32)),n.initialInputs=c,n.inputs=o,n.outputs=s}(e,t)}c&&function eS(e,n,t){if(n){const i=e.localNames=[];for(let a=0;a<n.length;a+=2){const r=t[n[a+1]];if(null==r)throw new Ve(-301,!1);i.push(n[a],r)}}}(t,i,c)}return t.mergedAttrs=wr(t.mergedAttrs,t.attrs),a}function Bf(e,n,t,i,a,r){const c=r.hostBindings;if(c){let o=e.hostBindingOpCodes;null===o&&(o=e.hostBindingOpCodes=[]);const s=~n.index;(function QL(e){let n=e.length;for(;n>0;){const t=e[--n];if("number"==typeof t&&t<0)return t}return 0})(o)!=s&&o.push(s),o.push(i,a,c)}}function Uf(e,n){null!==e.hostBindings&&e.hostBindings(1,n)}function jf(e,n){n.flags|=2,(e.components||(e.components=[])).push(n.index)}function tS(e,n,t){if(t){if(n.exportAs)for(let i=0;i<n.exportAs.length;i++)t[n.exportAs[i]]=e;mt(n)&&(t[""]=e)}}function Gf(e,n,t){e.flags|=1,e.directiveStart=n,e.directiveEnd=n+t,e.providerIndexes=n}function $f(e,n,t,i,a){e.data[i]=a;const r=a.factory||(a.factory=t3(a.type)),c=new mi(r,mt(a),null);e.blueprint[i]=c,t[i]=c,Bf(e,n,0,i,u4(e,t,a.hostVars,le),a)}function nS(e,n,t){const i=k2(n,e),a=kf(t),r=e[10],c=Gr(e,Ti(e,a,null,t.onPush?64:16,i,n,r,r.createRenderer(i,t),null,null));e[n.index]=c}function Ft(e,n,t,i,a,r){const c=k2(e,n);!function O6(e,n,t,i,a,r,c){if(null==r)y1(e)?e.removeAttribute(n,a,t):n.removeAttribute(a);else{const o=null==c?oe(r):c(r,i||"",a);y1(e)?e.setAttribute(n,a,o,t):t?n.setAttributeNS(t,a,o):n.setAttribute(a,o)}}(n[11],c,r,e.value,t,i,a)}function iS(e,n,t,i,a,r){const c=r[n];if(null!==c){const o=i.setInput;for(let s=0;s<c.length;){const l=c[s++],u=c[s++],d=c[s++];null!==o?i.setInput(t,d,l,u):t[u]=d}}}function aS(e,n){let t=null,i=0;for(;i<n.length;){const a=n[i];if(0!==a)if(5!==a){if("number"==typeof a)break;e.hasOwnProperty(a)&&(null===t&&(t=[]),t.push(a,e[a],n[i+1])),i+=2}else i+=2;else i+=4}return t}function Wf(e,n,t,i){return new Array(e,!0,!1,n,null,0,i,t,null,null)}function oS(e,n){const t=I2(n,e);if(As(t)){const i=t[1];80&t[2]?f4(i,t,i.template,t[8]):t[5]>0&&R6(t)}}function R6(e){for(let i=i6(e);null!==i;i=a6(i))for(let a=10;a<i.length;a++){const r=i[a];if(1024&r[2]){const c=r[1];f4(c,r,c.template,r[8])}else r[5]>0&&R6(r)}const t=e[1].components;if(null!==t)for(let i=0;i<t.length;i++){const a=I2(t[i],e);As(a)&&a[5]>0&&R6(a)}}function sS(e,n){const t=I2(n,e),i=t[1];(function lS(e,n){for(let t=n.length;t<e.blueprint.length;t++)n.push(e.blueprint[t])})(i,t),ki(i,t,t[8])}function Gr(e,n){return e[13]?e[14][4]=n:e[13]=n,e[14]=n,n}function P6(e){for(;e;){e[2]|=64;const n=Ni(e);if(Uz(e)&&!n)return e;e=n}return null}function qf(e){!function F6(e){for(let n=0;n<e.components.length;n++){const t=e.components[n],i=e6(t),a=i[1];UL(a,i,a.template,t)}}(e[8])}function U6(e,n,t){Rs(0),n(e,t)}const fS=(()=>Promise.resolve(null))();function Yf(e){return e[7]||(e[7]=[])}function Kf(e){return e.cleanup||(e.cleanup=[])}function Zf(e,n){const t=e[9],i=t?t.get(Ei,null):null;i&&i.handleError(n)}function Jf(e,n,t,i,a){for(let r=0;r<t.length;){const c=t[r++],o=t[r++],s=n[c],l=e.data[c];null!==l.setInput?l.setInput(s,a,i,o):s[o]=a}}function rn(e,n,t){const i=gr(n,e);!function Pu(e,n,t){y1(e)?e.setValue(n,t):n.textContent=t}(e[11],i,t)}function $r(e,n,t){let i=t?e.styles:null,a=t?e.classes:null,r=0;if(null!==n)for(let c=0;c<n.length;c++){const o=n[c];"number"==typeof o?r=o:1==r?a=ms(a,o):2==r&&(i=ms(i,o+": "+n[++c]+";"))}t?e.styles=i:e.stylesWithoutHost=i,t?e.classes=a:e.classesWithoutHost=a}const j6=new ve("INJECTOR",-1);class Xf{get(n,t=bi){if(t===bi){const i=new Error(`NullInjectorError: No provider for ${Ie(n)}!`);throw i.name="NullInjectorError",i}return t}}const G6=new ve("Set Injector scope."),Ii={},pS={};let $6;function e9(){return void 0===$6&&($6=new Xf),$6}function t9(e,n=null,t=null,i){const a=n9(e,n,t,i);return a._resolveInjectorDefTypes(),a}function n9(e,n=null,t=null,i){return new mS(e,t,n||e9(),i)}class mS{constructor(n,t,i,a=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const r=[];t&&It(t,o=>this.processProvider(o,n,t)),It([n],o=>this.processInjectorType(o,[],r)),this.records.set(j6,d4(void 0,this));const c=this.records.get(G6);this.scope=null!=c?c.value:null,this.source=a||("object"==typeof n?null:Ie(n))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(n=>n.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(n,t=bi,i=ae.Default){this.assertNotDestroyed();const a=Hu(this),r=Vn(void 0);try{if(!(i&ae.SkipSelf)){let o=this.records.get(n);if(void 0===o){const s=function HS(e){return"function"==typeof e||"object"==typeof e&&e instanceof ve}(n)&&vs(n);o=s&&this.injectableDefInScope(s)?d4(W6(n),Ii):null,this.records.set(n,o)}if(null!=o)return this.hydrate(n,o)}return(i&ae.Self?e9():this.parent).get(n,t=i&ae.Optional&&t===bi?null:t)}catch(c){if("NullInjectorError"===c.name){if((c[Sr]=c[Sr]||[]).unshift(Ie(n)),a)throw c;return function KN(e,n,t,i){const a=e[Sr];throw n[bu]&&a.unshift(n[bu]),e.message=function QN(e,n,t,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let a=Ie(n);if(Array.isArray(n))a=n.map(Ie).join(" -> ");else if("object"==typeof n){let r=[];for(let c in n)if(n.hasOwnProperty(c)){let o=n[c];r.push(c+":"+("string"==typeof o?JSON.stringify(o):Ie(o)))}a=`{${r.join(", ")}}`}return`${t}${i?"("+i+")":""}[${a}]: ${e.replace(jN,"\n ")}`}("\n"+e.message,a,t,i),e.ngTokenPath=a,e[Sr]=null,e}(c,n,"R3InjectorError",this.source)}throw c}finally{Vn(r),Hu(a)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(n=>this.get(n))}toString(){const n=[];return this.records.forEach((i,a)=>n.push(Ie(a))),`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Ve(205,!1)}processInjectorType(n,t,i){if(!(n=de(n)))return!1;let a=A7(n);const r=null==a&&n.ngModule||void 0,c=void 0===r?n:r,o=-1!==i.indexOf(c);if(void 0!==r&&(a=A7(r)),null==a)return!1;if(null!=a.imports&&!o){let u;i.push(c);try{It(a.imports,d=>{this.processInjectorType(d,t,i)&&(void 0===u&&(u=[]),u.push(d))})}finally{}if(void 0!==u)for(let d=0;d<u.length;d++){const{ngModule:p,providers:g}=u[d];It(g,w=>this.processProvider(w,p,g||je))}}this.injectorDefTypes.add(c);const s=t3(c)||(()=>new c);this.records.set(c,d4(s,Ii));const l=a.providers;if(null!=l&&!o){const u=n;It(l,d=>this.processProvider(d,u,l))}return void 0!==r&&void 0!==n.providers}processProvider(n,t,i){let a=h4(n=de(n))?n:de(n&&n.provide);const r=function vS(e,n,t){return a9(e)?d4(void 0,e.useValue):d4(i9(e),Ii)}(n);if(h4(n)||!0!==n.multi)this.records.get(a);else{let c=this.records.get(a);c||(c=d4(void 0,Ii,!0),c.factory=()=>Zs(c.multi),this.records.set(a,c)),a=n,c.multi.push(n)}this.records.set(a,r)}hydrate(n,t){return t.value===Ii&&(t.value=pS,t.value=t.factory()),"object"==typeof t.value&&t.value&&function bS(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this.onDestroy.add(t.value),t.value}injectableDefInScope(n){if(!n.providedIn)return!1;const t=de(n.providedIn);return"string"==typeof t?"any"===t||t===this.scope:this.injectorDefTypes.has(t)}}function W6(e){const n=vs(e),t=null!==n?n.factory:t3(e);if(null!==t)return t;if(e instanceof ve)throw new Ve(204,!1);if(e instanceof Function)return function gS(e){const n=e.length;if(n>0)throw Mi(n,"?"),new Ve(204,!1);const t=function xz(e){const n=e&&(e[lr]||e[E7]);if(n){const t=function Lz(e){if(e.hasOwnProperty("name"))return e.name;const n=(""+e).match(/^function\s*([^\s(]+)/);return null===n?"":n[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${t}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${t}" class.`),n}return null}(e);return null!==t?()=>t.factory(e):()=>new e}(e);throw new Ve(204,!1)}function i9(e,n,t){let i;if(h4(e)){const a=de(e);return t3(a)||W6(a)}if(a9(e))i=()=>de(e.useValue);else if(function CS(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...Zs(e.deps||[]));else if(function _S(e){return!(!e||!e.useExisting)}(e))i=()=>q(de(e.useExisting));else{const a=de(e&&(e.useClass||e.provide));if(!function MS(e){return!!e.deps}(e))return t3(a)||W6(a);i=()=>new a(...Zs(e.deps))}return i}function d4(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function a9(e){return null!==e&&"object"==typeof e&&$N in e}function h4(e){return"function"==typeof e}let T1=(()=>{class e{static create(t,i){var a;if(Array.isArray(t))return t9({name:""},i,t,"");{const r=null!==(a=t.name)&&void 0!==a?a:"";return t9({name:r},t.parent,t.providers,r)}}}return e.THROW_IF_NOT_FOUND=bi,e.NULL=new Xf,e.\u0275prov=Z({token:e,providedIn:"any",factory:()=>q(j6)}),e.__NG_ELEMENT_ID__=-1,e})();function SS(e,n){yr(e6(e)[1],P1())}function X(e){let n=function g9(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),t=!0;const i=[e];for(;n;){let a;if(mt(e))a=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new Ve(903,"");a=n.\u0275dir}if(a){if(t){i.push(a);const c=e;c.inputs=K6(e.inputs),c.declaredInputs=K6(e.declaredInputs),c.outputs=K6(e.outputs);const o=a.hostBindings;o&&kS(e,o);const s=a.viewQuery,l=a.contentQueries;if(s&&ES(e,s),l&&TS(e,l),ps(e.inputs,a.inputs),ps(e.declaredInputs,a.declaredInputs),ps(e.outputs,a.outputs),mt(a)&&a.data.animation){const u=e.data;u.animation=(u.animation||[]).concat(a.data.animation)}}const r=a.features;if(r)for(let c=0;c<r.length;c++){const o=r[c];o&&o.ngInherit&&o(e),o===X&&(t=!1)}}n=Object.getPrototypeOf(n)}!function AS(e){let n=0,t=null;for(let i=e.length-1;i>=0;i--){const a=e[i];a.hostVars=n+=a.hostVars,a.hostAttrs=wr(a.hostAttrs,t=wr(t,a.hostAttrs))}}(i)}function K6(e){return e===j3?{}:e===je?[]:e}function ES(e,n){const t=e.viewQuery;e.viewQuery=t?(i,a)=>{n(i,a),t(i,a)}:n}function TS(e,n){const t=e.contentQueries;e.contentQueries=t?(i,a,r)=>{n(i,a,r),t(i,a,r)}:n}function kS(e,n){const t=e.hostBindings;e.hostBindings=t?(i,a)=>{n(i,a),t(i,a)}:n}let Wr=null;function p4(){if(!Wr){const e=Pe.Symbol;if(e&&e.iterator)Wr=e.iterator;else{const n=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<n.length;++t){const i=n[t];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(Wr=i)}}}return Wr}function Oi(e){return!!function Q6(e){return null!==e&&("function"==typeof e||"object"==typeof e)}(e)&&(Array.isArray(e)||!(e instanceof Map)&&p4()in e)}function d2(e,n,t){return!Object.is(e[n],t)&&(e[n]=t,!0)}function s3(e,n,t,i){const a=d2(e,n,t);return d2(e,n+1,i)||a}function j(e,n,t,i){const a=I();return d2(a,K3(),n)&&(De(),Ft(d1(),a,e,n,t,i)),j}function g4(e,n,t,i){return d2(e,K3(),t)?n+oe(t)+i:le}function v4(e,n,t,i,a,r){const o=s3(e,function en(){return se.lFrame.bindingIndex}(),t,a);return tn(2),o?n+oe(t)+i+oe(a)+r:le}function P(e,n,t,i,a,r,c,o){const s=I(),l=De(),u=e+20,d=l.firstCreatePass?function US(e,n,t,i,a,r,c,o,s){const l=n.consts,u=l4(n,e,4,c||null,Nn(l,o));I6(n,t,u,Nn(l,s)),yr(n,u);const d=u.tViews=jr(2,u,i,a,r,n.directiveRegistry,n.pipeRegistry,null,n.schemas,l);return null!==n.queries&&(n.queries.template(n,u),d.queries=n.queries.embeddedTView(u)),u}(u,l,s,n,t,i,a,r,c):l.data[u];kt(d,!1);const p=s[11].createComment("");kr(l,s,p,d),f2(p,s),Gr(s,s[u]=Wf(p,s,p,d)),mr(d)&&T6(l,s,d),null!=c&&k6(s,d,o)}function B2(e){return function Y3(e,n){return e[n]}(function lN(){return se.lFrame.contextLView}(),20+e)}function H(e,n=ae.Default){const t=I();return null===t?q(e,n):du(P1(),t,de(e),n)}function t0(){throw new Error("invalid")}function b(e,n,t){const i=I();return d2(i,K3(),n)&&F2(De(),d1(),i,e,n,i[11],t,!1),b}function n0(e,n,t,i,a){const c=a?"class":"style";Jf(e,t,n.inputs[c],c,i)}function v(e,n,t,i){const a=I(),r=De(),c=20+e,o=a[11],s=a[c]=c6(o,n,function _N(){return se.lFrame.currentNamespace}()),l=r.firstCreatePass?function lA(e,n,t,i,a,r,c){const o=n.consts,l=l4(n,e,2,a,Nn(o,r));return I6(n,t,l,Nn(o,c)),null!==l.attrs&&$r(l,l.attrs,!1),null!==l.mergedAttrs&&$r(l,l.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,l),l}(c,r,a,0,n,t,i):r.data[c];kt(l,!0);const u=l.mergedAttrs;null!==u&&Hr(o,s,u);const d=l.classes;null!==d&&h6(o,s,d);const p=l.styles;return null!==p&&Ju(o,s,p),64!=(64&l.flags)&&kr(r,a,s,l),0===function aN(){return se.lFrame.elementDepthCount}()&&f2(s,a),function rN(){se.lFrame.elementDepthCount++}(),mr(l)&&(T6(r,a,l),function Tf(e,n,t){if(ws(n)){const a=n.directiveEnd;for(let r=n.directiveStart;r<a;r++){const c=e.data[r];c.contentQueries&&c.contentQueries(1,t[r],r)}}}(r,l,a)),null!==i&&k6(a,l),v}function _(){let e=P1();Ts()?ks():(e=e.parent,kt(e,!1));const n=e;!function cN(){se.lFrame.elementDepthCount--}();const t=De();return t.firstCreatePass&&(yr(t,e),ws(e)&&t.queries.elementEnd(e)),null!=n.classesWithoutHost&&function HN(e){return 0!=(16&e.flags)}(n)&&n0(t,n,I(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function wN(e){return 0!=(32&e.flags)}(n)&&n0(t,n,I(),n.stylesWithoutHost,!1),_}function O(e,n,t,i){return v(e,n,t,i),_(),O}function z1(){return I()}function Pi(e){return!!e&&"function"==typeof e.then}const c0=function O9(e){return!!e&&"function"==typeof e.subscribe};function k(e,n,t,i){const a=I(),r=De(),c=P1();return function P9(e,n,t,i,a,r,c,o){const s=mr(i),u=e.firstCreatePass&&Kf(e),d=n[8],p=Yf(n);let g=!0;if(3&i.type||o){const N=k2(i,n),A=o?o(N):N,z=p.length,R=o?F=>o(E1(F[i.index])):i.index;if(y1(t)){let F=null;if(!o&&s&&(F=function fA(e,n,t,i){const a=e.cleanup;if(null!=a)for(let r=0;r<a.length-1;r+=2){const c=a[r];if(c===t&&a[r+1]===i){const o=n[7],s=a[r+2];return o.length>s?o[s]:null}"string"==typeof c&&(r+=2)}return null}(e,n,a,i.index)),null!==F)(F.__ngLastListenerFn__||F).__ngNextListenerFn__=r,F.__ngLastListenerFn__=r,g=!1;else{r=o0(i,n,d,r,!1);const B=t.listen(A,a,r);p.push(r,B),u&&u.push(a,R,z,z+1)}}else r=o0(i,n,d,r,!0),A.addEventListener(a,r,c),p.push(r),u&&u.push(a,R,z,c)}else r=o0(i,n,d,r,!1);const w=i.outputs;let V;if(g&&null!==w&&(V=w[a])){const N=V.length;if(N)for(let A=0;A<N;A+=2){const J=n[V[A]][V[A+1]].subscribe(r),pe=p.length;p.push(r,J),u&&u.push(a,i.index,pe,-(pe+1))}}}(r,a,a[11],c,e,n,!!t,i),k}function F9(e,n,t,i){try{return!1!==t(i)}catch(a){return Zf(e,a),!1}}function o0(e,n,t,i,a){return function r(c){if(c===Function)return i;const o=2&e.flags?I2(e.index,n):n;0==(32&n[2])&&P6(o);let s=F9(n,0,i,c),l=r.__ngNextListenerFn__;for(;l;)s=F9(n,0,l,c)&&s,l=l.__ngNextListenerFn__;return a&&!1===s&&(c.preventDefault(),c.returnValue=!1),s}}function T(e=1){return function pN(e){return(se.lFrame.contextLView=function mN(e,n){for(;e>0;)n=n[15],e--;return n}(e,se.lFrame.contextLView))[8]}(e)}function dA(e,n){let t=null;const i=function bL(e){const n=e.attrs;if(null!=n){const t=n.indexOf(5);if(0==(1&t))return n[t+1]}return null}(e);for(let a=0;a<n.length;a++){const r=n[a];if("*"!==r){if(null===i?Cf(e,r,!0):VL(i,r))return a}else t=a}return t}function V4(e){const n=I()[16][6];if(!n.projection){const i=n.projection=Mi(e?e.length:1,null),a=i.slice();let r=n.child;for(;null!==r;){const c=e?dA(r,e):0;null!==c&&(a[c]?a[c].projectionNext=r:i[c]=r,a[c]=r),r=r.next}}}function D4(e,n=0,t){const i=I(),a=De(),r=l4(a,20+e,16,null,t||null);null===r.projection&&(r.projection=n),ks(),64!=(64&r.flags)&&function zx(e,n,t){Zu(n[11],0,n,t,Uu(e,t,n),Wu(t.parent||n[6],t,n))}(a,i,r)}function s0(e,n,t){return z4(e,"",n,"",t),s0}function z4(e,n,t,i,a){const r=I(),c=g4(r,n,t,i);return c!==le&&F2(De(),d1(),r,e,c,r[11],a,!1),z4}function K9(e,n,t,i,a){const r=e[t+1],c=null===n;let o=i?vt(r):an(r),s=!1;for(;0!==o&&(!1===s||c);){const u=e[o+1];mA(e[o],n)&&(s=!0,e[o+1]=i?w6(u):b6(u)),o=i?vt(u):an(u)}s&&(e[t+1]=i?b6(r):w6(r))}function mA(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&r4(e,n)>=0}const B1={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Q9(e){return e.substring(B1.key,B1.keyEnd)}function Z9(e,n){const t=B1.textEnd;return t===n?-1:(n=B1.keyEnd=function CA(e,n,t){for(;n<t&&e.charCodeAt(n)>32;)n++;return n}(e,B1.key=n,t),N4(e,n,t))}function N4(e,n,t){for(;n<t&&e.charCodeAt(n)<=32;)n++;return n}function Qe(e,n){return function Ct(e,n,t,i){const a=I(),r=De(),c=tn(2);r.firstUpdatePass&&id(r,e,c,i),n!==le&&d2(a,c,n)&&rd(r,r.data[b2()],a,a[11],e,a[c+1]=function xA(e,n){return null==e||("string"==typeof n?e+=n:"object"==typeof e&&(e=Ie(P2(e)))),e}(n,t),i,c)}(e,n,null,!0),Qe}function cn(e){!function yt(e,n,t,i){const a=De(),r=tn(2);a.firstUpdatePass&&id(a,null,r,i);const c=I();if(t!==le&&d2(c,r,t)){const o=a.data[b2()];if(od(o,i)&&!nd(a,r)){let s=i?o.classesWithoutHost:o.stylesWithoutHost;null!==s&&(t=ms(s,t||"")),n0(a,o,c,t,i)}else!function NA(e,n,t,i,a,r,c,o){a===le&&(a=je);let s=0,l=0,u=0<a.length?a[0]:null,d=0<r.length?r[0]:null;for(;null!==u||null!==d;){const p=s<a.length?a[s+1]:void 0,g=l<r.length?r[l+1]:void 0;let V,w=null;u===d?(s+=2,l+=2,p!==g&&(w=d,V=g)):null===d||null!==u&&u<d?(s+=2,w=u):(l+=2,w=d,V=g),null!==w&&rd(e,n,t,i,w,V,c,o),u=s<a.length?a[s]:null,d=l<r.length?r[l]:null}}(a,o,c,c[11],c[r+1],c[r+1]=function zA(e,n,t){if(null==t||""===t)return je;const i=[],a=P2(t);if(Array.isArray(a))for(let r=0;r<a.length;r++)e(i,a[r],!0);else if("object"==typeof a)for(const r in a)a.hasOwnProperty(r)&&e(i,r,a[r]);else"string"==typeof a&&n(i,a);return i}(e,n,t),i,r)}}(O2,jt,e,!0)}function jt(e,n){for(let t=function vA(e){return function X9(e){B1.key=0,B1.keyEnd=0,B1.value=0,B1.valueEnd=0,B1.textEnd=e.length}(e),Z9(e,N4(e,0,B1.textEnd))}(n);t>=0;t=Z9(n,t))O2(e,Q9(n),!0)}function nd(e,n){return n>=e.expandoStartIndex}function id(e,n,t,i){const a=e.data;if(null===a[t+1]){const r=a[b2()],c=nd(e,t);od(r,i)&&null===n&&!c&&(n=!1),n=function HA(e,n,t,i){const a=function Os(e){const n=se.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}(e);let r=i?n.residualClasses:n.residualStyles;if(null===a)0===(i?n.classBindings:n.styleBindings)&&(t=Fi(t=u0(null,e,n,t,i),n.attrs,i),r=null);else{const c=n.directiveStylingLast;if(-1===c||e[c]!==a)if(t=u0(a,e,n,t,i),null===r){let s=function wA(e,n,t){const i=t?n.classBindings:n.styleBindings;if(0!==an(i))return e[vt(i)]}(e,n,i);void 0!==s&&Array.isArray(s)&&(s=u0(null,e,n,s[1],i),s=Fi(s,n.attrs,i),function VA(e,n,t,i){e[vt(t?n.classBindings:n.styleBindings)]=i}(e,n,i,s))}else r=function DA(e,n,t){let i;const a=n.directiveEnd;for(let r=1+n.directiveStylingLast;r<a;r++)i=Fi(i,e[r].hostAttrs,t);return Fi(i,n.attrs,t)}(e,n,i)}return void 0!==r&&(i?n.residualClasses=r:n.residualStyles=r),t}(a,r,n,i),function hA(e,n,t,i,a,r){let c=r?n.classBindings:n.styleBindings,o=vt(c),s=an(c);e[i]=t;let u,l=!1;if(Array.isArray(t)){const d=t;u=d[1],(null===u||r4(d,u)>0)&&(l=!0)}else u=t;if(a)if(0!==s){const p=vt(e[o+1]);e[i+1]=Fr(p,o),0!==p&&(e[p+1]=H6(e[p+1],i)),e[o+1]=function xL(e,n){return 131071&e|n<<17}(e[o+1],i)}else e[i+1]=Fr(o,0),0!==o&&(e[o+1]=H6(e[o+1],i)),o=i;else e[i+1]=Fr(s,0),0===o?o=i:e[s+1]=H6(e[s+1],i),s=i;l&&(e[i+1]=b6(e[i+1])),K9(e,u,i,!0),K9(e,u,i,!1),function pA(e,n,t,i,a){const r=a?e.residualClasses:e.residualStyles;null!=r&&"string"==typeof n&&r4(r,n)>=0&&(t[i+1]=w6(t[i+1]))}(n,u,e,i,r),c=Fr(o,s),r?n.classBindings=c:n.styleBindings=c}(a,r,n,t,c,i)}}function u0(e,n,t,i,a){let r=null;const c=t.directiveEnd;let o=t.directiveStylingLast;for(-1===o?o=t.directiveStart:o++;o<c&&(r=n[o],i=Fi(i,r.hostAttrs,a),r!==e);)o++;return null!==e&&(t.directiveStylingLast=o),i}function Fi(e,n,t){const i=t?1:2;let a=-1;if(null!==n)for(let r=0;r<n.length;r++){const c=n[r];"number"==typeof c?a=c:a===i&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),O2(e,c,!!t||n[++r]))}return void 0===e?null:e}function rd(e,n,t,i,a,r,c,o){if(!(3&n.type))return;const s=e.data,l=s[o+1];Kr(function wf(e){return 1==(1&e)}(l)?cd(s,n,t,a,an(l),c):void 0)||(Kr(r)||function Hf(e){return 2==(2&e)}(l)&&(r=cd(s,null,t,a,o,c)),function xx(e,n,t,i,a){const r=y1(e);if(n)a?r?e.addClass(t,i):t.classList.add(i):r?e.removeClass(t,i):t.classList.remove(i);else{let c=-1===i.indexOf("-")?void 0:R2.DashCase;if(null==a)r?e.removeStyle(t,i,c):t.style.removeProperty(i);else{const o="string"==typeof a&&a.endsWith("!important");o&&(a=a.slice(0,-10),c|=R2.Important),r?e.setStyle(t,i,a,c):t.style.setProperty(i,a,o?"important":"")}}}(i,c,gr(b2(),t),a,r))}function cd(e,n,t,i,a,r){const c=null===n;let o;for(;a>0;){const s=e[a],l=Array.isArray(s),u=l?s[1]:s,d=null===u;let p=t[a+1];p===le&&(p=d?je:void 0);let g=d?Ys(p,i):u===i?p:void 0;if(l&&!Kr(g)&&(g=Ys(s,i)),Kr(g)&&(o=g,c))return o;const w=e[a+1];a=c?vt(w):an(w)}if(null!==n){let s=r?n.residualClasses:n.residualStyles;null!=s&&(o=Ys(s,i))}return o}function Kr(e){return void 0!==e}function od(e,n){return 0!=(e.flags&(n?16:32))}function M(e,n=""){const t=I(),i=De(),a=e+20,r=i.firstCreatePass?l4(i,a,1,n,null):i.data[a],c=t[a]=function r6(e,n){return y1(e)?e.createText(n):e.createTextNode(n)}(t[11],n);kr(i,t,c,r),kt(r,!1)}function Bi(e){return it("",e,""),Bi}function it(e,n,t){const i=I(),a=g4(i,e,n,t);return a!==le&&rn(i,b2(),a),it}function x4(e,n,t,i,a){const r=I(),c=v4(r,e,n,t,i,a);return c!==le&&rn(r,b2(),c),x4}function Mt(e,n,t){const i=I();return d2(i,K3(),n)&&F2(De(),d1(),i,e,n,i[11],t,!0),Mt}const Qr="en-US";let zd=Qr;function p0(e,n,t,i,a){if(e=de(e),Array.isArray(e))for(let r=0;r<e.length;r++)p0(e[r],n,t,i,a);else{const r=De(),c=I();let o=h4(e)?e:de(e.provide),s=i9(e);const l=P1(),u=1048575&l.providerIndexes,d=l.directiveStart,p=l.providerIndexes>>20;if(h4(e)||!e.multi){const g=new mi(s,a,H),w=g0(o,n,a?u:u+p,d);-1===w?(zr(vi(l,c),r,o),m0(r,e,n.length),n.push(o),l.directiveStart++,l.directiveEnd++,a&&(l.providerIndexes+=1048576),t.push(g),c.push(g)):(t[w]=g,c[w]=g)}else{const g=g0(o,n,u+p,d),w=g0(o,n,u,u+p),V=g>=0&&t[g],N=w>=0&&t[w];if(a&&!N||!a&&!V){zr(vi(l,c),r,o);const A=function WE(e,n,t,i,a){const r=new mi(e,t,H);return r.multi=[],r.index=n,r.componentProviders=0,Zd(r,a,i&&!t),r}(a?$E:GE,t.length,a,i,s);!a&&N&&(t[w].providerFactory=A),m0(r,e,n.length,0),n.push(o),l.directiveStart++,l.directiveEnd++,a&&(l.providerIndexes+=1048576),t.push(A),c.push(A)}else m0(r,e,g>-1?g:w,Zd(t[a?w:g],s,!a&&i));!a&&i&&N&&t[w].componentProviders++}}}function m0(e,n,t,i){const a=h4(n),r=function yS(e){return!!e.useClass}(n);if(a||r){const s=(r?de(n.useClass):n).prototype.ngOnDestroy;if(s){const l=e.destroyHooks||(e.destroyHooks=[]);if(!a&&n.multi){const u=l.indexOf(t);-1===u?l.push(t,[i,s]):l[u+1].push(i,s)}else l.push(t,s)}}}function Zd(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function g0(e,n,t,i){for(let a=t;a<i;a++)if(n[a]===e)return a;return-1}function GE(e,n,t,i){return v0(this.multi,[])}function $E(e,n,t,i){const a=this.multi;let r;if(this.providerFactory){const c=this.providerFactory.componentProviders,o=_i(t,t[1],this.providerFactory.index,i);r=o.slice(0,c),v0(a,r);for(let s=c;s<o.length;s++)r.push(o[s])}else r=[],v0(a,r);return r}function v0(e,n){for(let t=0;t<e.length;t++)n.push((0,e[t])());return n}function Ge(e,n=[]){return t=>{t.providersResolver=(i,a)=>function jE(e,n,t){const i=De();if(i.firstCreatePass){const a=mt(e);p0(t,i.data,i.blueprint,a,!0),p0(n,i.data,i.blueprint,a,!1)}}(i,a?a(e):e,n)}}class Jd{}class KE{resolveComponentFactory(n){throw function YE(e){const n=Error(`No component factory found for ${Ie(e)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=e,n}(n)}}let A4=(()=>{class e{}return e.NULL=new KE,e})();function QE(){return E4(P1(),I())}function E4(e,n){return new Ee(k2(e,n))}let Ee=(()=>{class e{constructor(t){this.nativeElement=t}}return e.__NG_ELEMENT_ID__=QE,e})();function ZE(e){return e instanceof Ee?e.nativeElement:e}class _0{}let h2=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function XE(){const e=I(),t=I2(P1().index,e);return function JE(e){return e[11]}(Tt(t)?t:e)}(),e})(),eT=(()=>{class e{}return e.\u0275prov=Z({token:e,providedIn:"root",factory:()=>null}),e})();class Wi{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const tT=new Wi("13.3.12"),C0={};function tc(e,n,t,i,a=!1){for(;null!==t;){const r=n[t.index];if(null!==r&&i.push(E1(r)),pt(r))for(let o=10;o<r.length;o++){const s=r[o],l=s[1].firstChild;null!==l&&tc(s[1],s,l,i)}const c=t.type;if(8&c)tc(e,n,t.child,i);else if(32&c){const o=n6(t,n);let s;for(;s=o();)i.push(s)}else if(16&c){const o=Qu(n,t);if(Array.isArray(o))i.push(...o);else{const s=Ni(n[16]);tc(s[1],s,o,i,!0)}}t=a?t.projectionNext:t.next}return i}class qi{constructor(n,t){this._lView=n,this._cdRefInjectingView=t,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const n=this._lView,t=n[1];return tc(t,n,t.firstChild,[])}get context(){return this._lView[8]}set context(n){this._lView[8]=n}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[3];if(pt(n)){const t=n[8],i=t?t.indexOf(this):-1;i>-1&&(o6(n,i),xr(t,i))}this._attachedToViewContainer=!1}Bu(this._lView[1],this._lView)}onDestroy(n){Rf(this._lView[1],this._lView,null,n)}markForCheck(){P6(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function B6(e,n,t){const i=n[10];i.begin&&i.begin();try{f4(e,n,e.template,t)}catch(a){throw Zf(n,a),a}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Ve(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Cx(e,n){xi(e,n,n[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new Ve(902,"");this._appRef=n}}class nT extends qi{constructor(n){super(n),this._view=n}detectChanges(){qf(this._view)}checkNoChanges(){}get context(){return null}}class eh extends A4{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const t=e2(n);return new y0(t,this.ngModule)}}function th(e){const n=[];for(let t in e)e.hasOwnProperty(t)&&n.push({propName:e[t],templateName:t});return n}class y0 extends Jd{constructor(n,t){super(),this.componentDef=n,this.ngModule=t,this.componentType=n.type,this.selector=function zL(e){return e.map(DL).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return th(this.componentDef.inputs)}get outputs(){return th(this.componentDef.outputs)}create(n,t,i,a){const r=(a=a||this.ngModule)?function aT(e,n){return{get:(t,i,a)=>{const r=e.get(t,C0,a);return r!==C0||i===C0?r:n.get(t,i,a)}}}(n,a.injector):n,c=r.get(_0,G7),o=r.get(eT,null),s=c.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",u=i?function Of(e,n,t){if(y1(e))return e.selectRootElement(n,t===Et.ShadowDom);let i="string"==typeof n?e.querySelector(n):n;return i.textContent="",i}(s,i,this.componentDef.encapsulation):c6(c.createRenderer(null,this.componentDef),l,function iT(e){const n=e.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(l)),d=this.componentDef.onPush?576:528,p=function m9(e,n){return{components:[],scheduler:e||pL,clean:fS,playerHandler:n||null,flags:0}}(),g=jr(0,null,null,1,0,null,null,null,null,null),w=Ti(null,g,p,d,null,null,c,s,o,r);let V,N;_r(w);try{const A=function h9(e,n,t,i,a,r){const c=t[1];t[20]=e;const s=l4(c,20,2,"#host",null),l=s.mergedAttrs=n.hostAttrs;null!==l&&($r(s,l,!0),null!==e&&(Hr(a,e,l),null!==s.classes&&h6(a,e,s.classes),null!==s.styles&&Ju(a,e,s.styles)));const u=i.createRenderer(e,n),d=Ti(t,kf(n),null,n.onPush?64:16,t[20],s,i,u,r||null,null);return c.firstCreatePass&&(zr(vi(s,t),c,n.type),jf(c,s),Gf(s,t.length,1)),Gr(t,d),t[20]=d}(u,this.componentDef,w,c,s);if(u)if(i)Hr(s,u,["ng-version",tT.full]);else{const{attrs:z,classes:R}=function NL(e){const n=[],t=[];let i=1,a=2;for(;i<e.length;){let r=e[i];if("string"==typeof r)2===a?""!==r&&n.push(r,e[++i]):8===a&&t.push(r);else{if(!gt(a))break;a=r}i++}return{attrs:n,classes:t}}(this.componentDef.selectors[0]);z&&Hr(s,u,z),R&&R.length>0&&h6(s,u,R.join(" "))}if(N=Ss(g,20),void 0!==t){const z=N.projection=[];for(let R=0;R<this.ngContentSelectors.length;R++){const F=t[R];z.push(null!=F?Array.from(F):null)}}V=function p9(e,n,t,i,a){const r=t[1],c=function KL(e,n,t){const i=P1();e.firstCreatePass&&(t.providersResolver&&t.providersResolver(t),$f(e,i,n,u4(e,n,1,null),t));const a=_i(n,e,i.directiveStart,i);f2(a,n);const r=k2(i,n);return r&&f2(r,n),a}(r,t,n);if(i.components.push(c),e[8]=c,a&&a.forEach(s=>s(c,n)),n.contentQueries){const s=P1();n.contentQueries(1,c,s.directiveStart)}const o=P1();return!r.firstCreatePass||null===n.hostBindings&&null===n.hostAttrs||(xn(o.index),Bf(t[1],o,0,o.directiveStart,o.directiveEnd,n),Uf(n,c)),c}(A,this.componentDef,w,p,[SS]),ki(g,w,null)}finally{Cr()}return new cT(this.componentType,V,E4(N,w),w,N)}}class cT extends class qE{}{constructor(n,t,i,a,r){super(),this.location=i,this._rootLView=a,this._tNode=r,this.instance=t,this.hostView=this.changeDetectorRef=new nT(a),this.componentType=n}get injector(){return new e4(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}class on{}class nh{}const T4=new Map;class rh extends on{constructor(n,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new eh(this);const i=J2(n);this._bootstrapComponents=Pt(i.bootstrap),this._r3Injector=n9(n,t,[{provide:on,useValue:this},{provide:A4,useValue:this.componentFactoryResolver}],Ie(n)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(n)}get(n,t=T1.THROW_IF_NOT_FOUND,i=ae.Default){return n===T1||n===on||n===j6?this:this._r3Injector.get(n,t,i)}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class M0 extends nh{constructor(n){super(),this.moduleType=n,null!==J2(n)&&function sT(e){const n=new Set;!function t(i){const a=J2(i,!0),r=a.id;null!==r&&(function ih(e,n,t){if(n&&n!==t)throw new Error(`Duplicate module registered for ${e} - ${Ie(n)} vs ${Ie(n.name)}`)}(r,T4.get(r),i),T4.set(r,i));const c=Pt(a.imports);for(const o of c)n.has(o)||(n.add(o),t(o))}(e)}(n)}create(n){return new rh(this.moduleType,n)}}function Yi(e,n,t,i,a){return function oh(e,n,t,i,a,r,c){const o=n+t;return s3(e,o,a,r)?function Bt(e,n,t){return e[n]=t}(e,o+2,c?i.call(c,a,r):i(a,r)):function Ki(e,n){const t=e[n];return t===le?void 0:t}(e,o+2)}(I(),function M2(){const e=se.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}(),e,n,t,i,a)}function H0(e){return n=>{setTimeout(e,void 0,n)}}const ie=class HT extends fe{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,t,i){var a,r,c;let o=n,s=t||(()=>null),l=i;if(n&&"object"==typeof n){const d=n;o=null===(a=d.next)||void 0===a?void 0:a.bind(d),s=null===(r=d.error)||void 0===r?void 0:r.bind(d),l=null===(c=d.complete)||void 0===c?void 0:c.bind(d)}this.__isAsync&&(s=H0(s),o&&(o=H0(o)),l&&(l=H0(l)));const u=super.subscribe({next:o,error:s,complete:l});return n instanceof we&&n.add(u),u}};function wT(){return this._results[p4()]()}class w0{constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=p4(),i=w0.prototype;i[t]||(i[t]=wT)}get changes(){return this._changes||(this._changes=new ie)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,t){return this._results.reduce(n,t)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,t){const i=this;i.dirty=!1;const a=tt(n);(this._changesDetected=!function TN(e,n,t){if(e.length!==n.length)return!1;for(let i=0;i<e.length;i++){let a=e[i],r=n[i];if(t&&(a=t(a),r=t(r)),r!==a)return!1}return!0}(i._results,a,t))&&(i._results=a,i.length=a.length,i.last=a[this.length-1],i.first=a[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let l1=(()=>{class e{}return e.__NG_ELEMENT_ID__=zT,e})();const VT=l1,DT=class extends VT{constructor(n,t,i){super(),this._declarationLView=n,this._declarationTContainer=t,this.elementRef=i}createEmbeddedView(n){const t=this._declarationTContainer.tViews,i=Ti(this._declarationLView,t,n,16,null,t.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const r=this._declarationLView[19];return null!==r&&(i[19]=r.createEmbeddedView(t)),ki(t,i,n),new qi(i)}};function zT(){return ic(P1(),I())}function ic(e,n){return 4&e.type?new DT(n,e,E4(e,n)):null}let U2=(()=>{class e{}return e.__NG_ELEMENT_ID__=NT,e})();function NT(){return hh(P1(),I())}const xT=U2,fh=class extends xT{constructor(n,t,i){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=i}get element(){return E4(this._hostTNode,this._hostLView)}get injector(){return new e4(this._hostTNode,this._hostLView)}get parentInjector(){const n=Dr(this._hostTNode,this._hostLView);if(ou(n)){const t=X3(n,this._hostLView),i=J3(n);return new e4(t[1].data[i+8],t)}return new e4(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=dh(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-10}createEmbeddedView(n,t,i){const a=n.createEmbeddedView(t||{});return this.insert(a,i),a}createComponent(n,t,i,a,r){const c=n&&!function yi(e){return"function"==typeof e}(n);let o;if(c)o=t;else{const d=t||{};o=d.index,i=d.injector,a=d.projectableNodes,r=d.ngModuleRef}const s=c?n:new y0(e2(n)),l=i||this.parentInjector;if(!r&&null==s.ngModule){const p=(c?l:this.parentInjector).get(on,null);p&&(r=p)}const u=s.create(l,a,void 0,r);return this.insert(u.hostView,o),u}insert(n,t){const i=n._lView,a=i[1];if(function iN(e){return pt(e[3])}(i)){const u=this.indexOf(n);if(-1!==u)this.detach(u);else{const d=i[3],p=new fh(d,d[6],d[3]);p.detach(p.indexOf(n))}}const r=this._adjustIndex(t),c=this._lContainer;!function Mx(e,n,t,i){const a=10+i,r=t.length;i>0&&(t[a-1][4]=n),i<r-10?(n[4]=t[a],vu(t,10+i,n)):(t.push(n),n[4]=null),n[3]=t;const c=n[17];null!==c&&t!==c&&function bx(e,n){const t=e[9];n[16]!==n[3][3][16]&&(e[2]=!0),null===t?e[9]=[n]:t.push(n)}(c,n);const o=n[19];null!==o&&o.insertView(e),n[2]|=128}(a,i,c,r);const o=u6(r,c),s=i[11],l=Tr(s,c[7]);return null!==l&&function _x(e,n,t,i,a,r){i[0]=a,i[6]=n,xi(e,i,t,1,a,r)}(a,c[6],s,i,l,o),n.attachToViewContainerRef(),vu(V0(c),r,n),n}move(n,t){return this.insert(n,t)}indexOf(n){const t=dh(this._lContainer);return null!==t?t.indexOf(n):-1}remove(n){const t=this._adjustIndex(n,-1),i=o6(this._lContainer,t);i&&(xr(V0(this._lContainer),t),Bu(i[1],i))}detach(n){const t=this._adjustIndex(n,-1),i=o6(this._lContainer,t);return i&&null!=xr(V0(this._lContainer),t)?new qi(i):null}_adjustIndex(n,t=0){return null==n?this.length+t:n}};function dh(e){return e[8]}function V0(e){return e[8]||(e[8]=[])}function hh(e,n){let t;const i=n[e.index];if(pt(i))t=i;else{let a;if(8&e.type)a=E1(i);else{const r=n[11];a=r.createComment("");const c=k2(e,n);a3(r,Tr(r,c),a,function Dx(e,n){return y1(e)?e.nextSibling(n):n.nextSibling}(r,c),!1)}n[e.index]=t=Wf(i,n,a,e),Gr(n,t)}return new fh(t,e,n)}class D0{constructor(n){this.queryList=n,this.matches=null}clone(){return new D0(this.queryList)}setDirty(){this.queryList.setDirty()}}class z0{constructor(n=[]){this.queries=n}createEmbeddedView(n){const t=n.queries;if(null!==t){const i=null!==n.contentQueries?n.contentQueries[0]:t.length,a=[];for(let r=0;r<i;r++){const c=t.getByIndex(r);a.push(this.queries[c.indexInDeclarationView].clone())}return new z0(a)}return null}insertView(n){this.dirtyQueriesWithMatches(n)}detachView(n){this.dirtyQueriesWithMatches(n)}dirtyQueriesWithMatches(n){for(let t=0;t<this.queries.length;t++)null!==_h(n,t).matches&&this.queries[t].setDirty()}}class ph{constructor(n,t,i=null){this.predicate=n,this.flags=t,this.read=i}}class N0{constructor(n=[]){this.queries=n}elementStart(n,t){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(n,t)}elementEnd(n){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(n)}embeddedTView(n){let t=null;for(let i=0;i<this.length;i++){const a=null!==t?t.length:0,r=this.getByIndex(i).embeddedTView(n,a);r&&(r.indexInDeclarationView=i,null!==t?t.push(r):t=[r])}return null!==t?new N0(t):null}template(n,t){for(let i=0;i<this.queries.length;i++)this.queries[i].template(n,t)}getByIndex(n){return this.queries[n]}get length(){return this.queries.length}track(n){this.queries.push(n)}}class x0{constructor(n,t=-1){this.metadata=n,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}elementStart(n,t){this.isApplyingToNode(t)&&this.matchTNode(n,t)}elementEnd(n){this._declarationNodeIndex===n.index&&(this._appliesToNextNode=!1)}template(n,t){this.elementStart(n,t)}embeddedTView(n,t){return this.isApplyingToNode(n)?(this.crossesNgTemplate=!0,this.addMatch(-n.index,t),new x0(this.metadata)):null}isApplyingToNode(n){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const t=this._declarationNodeIndex;let i=n.parent;for(;null!==i&&8&i.type&&i.index!==t;)i=i.parent;return t===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(n,t){const i=this.metadata.predicate;if(Array.isArray(i))for(let a=0;a<i.length;a++){const r=i[a];this.matchTNodeWithReadOption(n,t,AT(t,r)),this.matchTNodeWithReadOption(n,t,Nr(t,n,r,!1,!1))}else i===l1?4&t.type&&this.matchTNodeWithReadOption(n,t,-1):this.matchTNodeWithReadOption(n,t,Nr(t,n,i,!1,!1))}matchTNodeWithReadOption(n,t,i){if(null!==i){const a=this.metadata.read;if(null!==a)if(a===Ee||a===U2||a===l1&&4&t.type)this.addMatch(t.index,-2);else{const r=Nr(t,n,a,!1,!1);null!==r&&this.addMatch(t.index,r)}else this.addMatch(t.index,i)}}addMatch(n,t){null===this.matches?this.matches=[n,t]:this.matches.push(n,t)}}function AT(e,n){const t=e.localNames;if(null!==t)for(let i=0;i<t.length;i+=2)if(t[i]===n)return t[i+1];return null}function TT(e,n,t,i){return-1===t?function ET(e,n){return 11&e.type?E4(e,n):4&e.type?ic(e,n):null}(n,e):-2===t?function kT(e,n,t){return t===Ee?E4(n,e):t===l1?ic(n,e):t===U2?hh(n,e):void 0}(e,n,i):_i(e,e[1],t,n)}function mh(e,n,t,i){const a=n[19].queries[i];if(null===a.matches){const r=e.data,c=t.matches,o=[];for(let s=0;s<c.length;s+=2){const l=c[s];o.push(l<0?null:TT(n,r[l],c[s+1],t.metadata.read))}a.matches=o}return a.matches}function L0(e,n,t,i){const a=e.queries.getByIndex(t),r=a.matches;if(null!==r){const c=mh(e,n,a,t);for(let o=0;o<r.length;o+=2){const s=r[o];if(s>0)i.push(c[o/2]);else{const l=r[o+1],u=n[-s];for(let d=10;d<u.length;d++){const p=u[d];p[17]===p[3]&&L0(p[1],p,l,i)}if(null!==u[9]){const d=u[9];for(let p=0;p<d.length;p++){const g=d[p];L0(g[1],g,l,i)}}}}}return i}function h1(e){const n=I(),t=De(),i=J7();Rs(i+1);const a=_h(t,i);if(e.dirty&&$7(n)===(2==(2&a.metadata.flags))){if(null===a.matches)e.reset([]);else{const r=a.crossesNgTemplate?L0(t,n,i,[]):mh(t,n,a,i);e.reset(r,ZE),e.notifyOnChanges()}return!0}return!1}function N1(e,n,t,i){const a=De();if(a.firstCreatePass){const r=P1();vh(a,new ph(n,t,i),r.index),function OT(e,n){const t=e.contentQueries||(e.contentQueries=[]);n!==(t.length?t[t.length-1]:-1)&&t.push(e.queries.length-1,n)}(a,e),2==(2&t)&&(a.staticContentQueries=!0)}gh(a,I(),t)}function p1(){return function IT(e,n){return e[19].queries[n].queryList}(I(),J7())}function gh(e,n,t){const i=new w0(4==(4&t));Rf(e,n,i,i.destroy),null===n[19]&&(n[19]=new z0),n[19].queries.push(new D0(i))}function vh(e,n,t){null===e.queries&&(e.queries=new N0),e.queries.track(new x0(n,t))}function _h(e,n){return e.queries.getByIndex(n)}function j2(e,n){return ic(e,n)}function cc(...e){}const O0=new ve("Application Initializer");let R0=(()=>{class e{constructor(t){this.appInits=t,this.resolve=cc,this.reject=cc,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,a)=>{this.resolve=i,this.reject=a})}runInitializers(){if(this.initialized)return;const t=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let a=0;a<this.appInits.length;a++){const r=this.appInits[a]();if(Pi(r))t.push(r);else if(c0(r)){const c=new Promise((o,s)=>{r.subscribe({complete:o,error:s})});t.push(c)}}Promise.all(t).then(()=>{i()}).catch(a=>{this.reject(a)}),0===t.length&&i(),this.initialized=!0}}return e.\u0275fac=function(t){return new(t||e)(q(O0,8))},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ji=new ve("AppId",{providedIn:"root",factory:function kh(){return`${P0()}${P0()}${P0()}`}});function P0(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Ih=new ve("Platform Initializer"),F0=new ve("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Oh=new ve("appBootstrapListener");let ek=(()=>{class e{log(t){console.log(t)}warn(t){console.warn(t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const kn=new ve("LocaleId",{providedIn:"root",factory:()=>qN(kn,ae.Optional|ae.SkipSelf)||function tk(){return"undefined"!=typeof $localize&&$localize.locale||Qr}()});class ik{constructor(n,t){this.ngModuleFactory=n,this.componentFactories=t}}let Rh=(()=>{class e{compileModuleSync(t){return new M0(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const i=this.compileModuleSync(t),r=Pt(J2(t).declarations).reduce((c,o)=>{const s=e2(o);return s&&c.push(new y0(s)),c},[]);return new ik(i,r)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const rk=(()=>Promise.resolve(0))();function B0(e){"undefined"==typeof Zone?rk.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Fe{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ie(!1),this.onMicrotaskEmpty=new ie(!1),this.onStable=new ie(!1),this.onError=new ie(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const a=this;a._nesting=0,a._outer=a._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(a._inner=a._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!i&&t,a.shouldCoalesceRunChangeDetection=i,a.lastRequestAnimationFrameId=-1,a.nativeRequestAnimationFrame=function ck(){let e=Pe.requestAnimationFrame,n=Pe.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&n){const t=e[Zone.__symbol__("OriginalDelegate")];t&&(e=t);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function lk(e){const n=()=>{!function sk(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Pe,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,j0(e),e.isCheckStableRunning=!0,U0(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),j0(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,i,a,r,c,o)=>{try{return Ph(e),t.invokeTask(a,r,c,o)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||e.shouldCoalesceRunChangeDetection)&&n(),Fh(e)}},onInvoke:(t,i,a,r,c,o,s)=>{try{return Ph(e),t.invoke(a,r,c,o,s)}finally{e.shouldCoalesceRunChangeDetection&&n(),Fh(e)}},onHasTask:(t,i,a,r)=>{t.hasTask(a,r),i===a&&("microTask"==r.change?(e._hasPendingMicrotasks=r.microTask,j0(e),U0(e)):"macroTask"==r.change&&(e.hasPendingMacrotasks=r.macroTask))},onHandleError:(t,i,a,r)=>(t.handleError(a,r),e.runOutsideAngular(()=>e.onError.emit(r)),!1)})}(a)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Fe.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Fe.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(n,t,i){return this._inner.run(n,t,i)}runTask(n,t,i,a){const r=this._inner,c=r.scheduleEventTask("NgZoneEvent: "+a,n,ok,cc,cc);try{return r.runTask(c,t,i)}finally{r.cancelTask(c)}}runGuarded(n,t,i){return this._inner.runGuarded(n,t,i)}runOutsideAngular(n){return this._outer.run(n)}}const ok={};function U0(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 j0(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Ph(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Fh(e){e._nesting--,U0(e)}class uk{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ie,this.onMicrotaskEmpty=new ie,this.onStable=new ie,this.onError=new ie}run(n,t,i){return n.apply(t,i)}runGuarded(n,t,i){return n.apply(t,i)}runOutsideAngular(n){return n()}runTask(n,t,i,a){return n.apply(t,i)}}let G0=(()=>{class e{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?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:()=>{Fe.assertNotInAngularZone(),B0(()=>{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())B0(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(t)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,i,a){let r=-1;i&&i>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(c=>c.timeoutId!==r),t(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:t,timeoutId:r,updateCb:a})}whenStable(t,i,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(t,i,a),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,i,a){return[]}}return e.\u0275fac=function(t){return new(t||e)(q(Fe))},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})(),fk=(()=>{class e{constructor(){this._applications=new Map,$0.addToWindow(this)}registerApplication(t,i){this._applications.set(t,i)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,i=!0){return $0.findTestabilityInTree(this,t,i)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();class dk{addToWindow(n){}findTestabilityInTree(n,t,i){return null}}let $0=new dk,u3=null;const Bh=new ve("AllowMultipleToken"),Uh=new ve("PlatformOnDestroy");class jh{constructor(n,t){this.name=n,this.token=t}}function Gh(e,n,t=[]){const i=`Platform: ${n}`,a=new ve(i);return(r=[])=>{let c=W0();if(!c||c.injector.get(Bh,!1)){const o=[...t,...r,{provide:a,useValue:!0}];e?e(o):function gk(e){if(u3&&!u3.get(Bh,!1))throw new Ve(400,"");u3=e;const n=e.get($h),t=e.get(Ih,null);t&&t.forEach(i=>i())}(function _k(e=[],n){return T1.create({name:n,providers:[{provide:G6,useValue:"platform"},{provide:Uh,useValue:()=>u3=null},...e]})}(o,i))}return function vk(e){const n=W0();if(!n)throw new Ve(401,"");return n}()}}function W0(){var e;return null!==(e=null==u3?void 0:u3.get($h))&&void 0!==e?e:null}let $h=(()=>{class e{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,i){const o=function Ck(e,n){let t;return t="noop"===e?new uk:("zone.js"===e?void 0:e)||new Fe({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==n?void 0:n.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==n?void 0:n.ngZoneRunCoalescing)}),t}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),s=[{provide:Fe,useValue:o}];return o.run(()=>{const l=T1.create({providers:s,parent:this.injector,name:t.moduleType.name}),u=t.create(l),d=u.injector.get(Ei,null);if(!d)throw new Ve(402,"");return o.runOutsideAngular(()=>{const p=o.onError.subscribe({next:g=>{d.handleError(g)}});u.onDestroy(()=>{q0(this._modules,u),p.unsubscribe()})}),function yk(e,n,t){try{const i=t();return Pi(i)?i.catch(a=>{throw n.runOutsideAngular(()=>e.handleError(a)),a}):i}catch(i){throw n.runOutsideAngular(()=>e.handleError(i)),i}}(d,o,()=>{const p=u.injector.get(R0);return p.runInitializers(),p.donePromise.then(()=>(function eE(e){E2(e,"Expected localeId to be defined"),"string"==typeof e&&(zd=e.toLowerCase().replace(/_/g,"-"))}(u.injector.get(kn,Qr)||Qr),this._moduleDoBootstrap(u),u))})})}bootstrapModule(t,i=[]){const a=Wh({},i);return function pk(e,n,t){const i=new M0(t);return Promise.resolve(i)}(0,0,t).then(r=>this.bootstrapModuleFactory(r,a))}_moduleDoBootstrap(t){const i=t.injector.get(I4);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(a=>i.bootstrap(a));else{if(!t.instance.ngDoBootstrap)throw new Ve(403,"");t.instance.ngDoBootstrap(i)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Ve(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const t=this._injector.get(Uh,null);null==t||t(),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(t){return new(t||e)(q(T1))},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function Wh(e,n){return Array.isArray(n)?n.reduce(Wh,e):Object.assign(Object.assign({},e),n)}let I4=(()=>{class e{constructor(t,i,a,r){this._zone=t,this._injector=i,this._exceptionHandler=a,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const c=new Te(s=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{s.next(this._stable),s.complete()})}),o=new Te(s=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{Fe.assertNotInAngularZone(),B0(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,s.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{Fe.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{s.next(!1)}))});return()=>{l.unsubscribe(),u.unsubscribe()}});this.isStable=N7(c,o.pipe(x7()))}bootstrap(t,i){if(!this._initStatus.done)throw new Ve(405,"");let a;a=t instanceof Jd?t:this._injector.get(A4).resolveComponentFactory(t),this.componentTypes.push(a.componentType);const r=function mk(e){return e.isBoundToModule}(a)?void 0:this._injector.get(on),o=a.create(T1.NULL,[],i||a.selector,r),s=o.location.nativeElement,l=o.injector.get(G0,null),u=l&&o.injector.get(fk);return l&&u&&u.registerApplication(s,l),o.onDestroy(()=>{this.detachView(o.hostView),q0(this.components,o),u&&u.unregisterApplication(s)}),this._loadComponent(o),o}tick(){if(this._runningTick)throw new Ve(101,"");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const i=t;this._views.push(i),i.attachToAppRef(this)}detachView(t){const i=t;q0(this._views,i),i.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Oh,[]).concat(this._bootstrapListeners).forEach(a=>a(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(t){return new(t||e)(q(Fe),q(T1),q(Ei),q(R0))},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function q0(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}let Yh=!0,G2=(()=>{class e{}return e.__NG_ELEMENT_ID__=Hk,e})();function Hk(e){return function wk(e,n,t){if(pr(e)&&!t){const i=I2(e.index,n);return new qi(i,i)}return 47&e.type?new qi(n[16],n):null}(P1(),I(),16==(16&e))}class Xh{constructor(){}supports(n){return Oi(n)}create(n){return new Lk(n)}}const xk=(e,n)=>n;class Lk{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||xk}forEachItem(n){let t;for(t=this._itHead;null!==t;t=t._next)n(t)}forEachOperation(n){let t=this._itHead,i=this._removalsHead,a=0,r=null;for(;t||i;){const c=!i||t&&t.currentIndex<tp(i,a,r)?t:i,o=tp(c,a,r),s=c.currentIndex;if(c===i)a--,i=i._nextRemoved;else if(t=t._next,null==c.previousIndex)a++;else{r||(r=[]);const l=o-a,u=s-a;if(l!=u){for(let p=0;p<l;p++){const g=p<r.length?r[p]:r[p]=0,w=g+p;u<=w&&w<l&&(r[p]=g+1)}r[c.previousIndex]=u-l}}o!==s&&n(c,o,s)}}forEachPreviousItem(n){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)n(t)}forEachAddedItem(n){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)n(t)}forEachMovedItem(n){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)n(t)}forEachRemovedItem(n){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)n(t)}forEachIdentityChange(n){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)n(t)}diff(n){if(null==n&&(n=[]),!Oi(n))throw new Ve(900,"");return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let a,r,c,t=this._itHead,i=!1;if(Array.isArray(n)){this.length=n.length;for(let o=0;o<this.length;o++)r=n[o],c=this._trackByFn(o,r),null!==t&&Object.is(t.trackById,c)?(i&&(t=this._verifyReinsertion(t,r,c,o)),Object.is(t.item,r)||this._addIdentityChange(t,r)):(t=this._mismatch(t,r,c,o),i=!0),t=t._next}else a=0,function BS(e,n){if(Array.isArray(e))for(let t=0;t<e.length;t++)n(e[t]);else{const t=e[p4()]();let i;for(;!(i=t.next()).done;)n(i.value)}}(n,o=>{c=this._trackByFn(a,o),null!==t&&Object.is(t.trackById,c)?(i&&(t=this._verifyReinsertion(t,o,c,a)),Object.is(t.item,o)||this._addIdentityChange(t,o)):(t=this._mismatch(t,o,c,a),i=!0),t=t._next,a++}),this.length=a;return this._truncate(t),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,t,i,a){let r;return null===n?r=this._itTail:(r=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._reinsertAfter(n,r,a)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,a))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._moveAfter(n,r,a)):n=this._addAfter(new Sk(t,i),r,a),n}_verifyReinsertion(n,t,i,a){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?n=this._reinsertAfter(r,n._prev,a):n.currentIndex!=a&&(n.currentIndex=a,this._addToMoves(n,a)),n}_truncate(n){for(;null!==n;){const t=n._next;this._addToRemovals(this._unlink(n)),n=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,t,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const a=n._prevRemoved,r=n._nextRemoved;return null===a?this._removalsHead=r:a._nextRemoved=r,null===r?this._removalsTail=a:r._prevRemoved=a,this._insertAfter(n,t,i),this._addToMoves(n,i),n}_moveAfter(n,t,i){return this._unlink(n),this._insertAfter(n,t,i),this._addToMoves(n,i),n}_addAfter(n,t,i){return this._insertAfter(n,t,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,t,i){const a=null===t?this._itHead:t._next;return n._next=a,n._prev=t,null===a?this._itTail=n:a._prev=n,null===t?this._itHead=n:t._next=n,null===this._linkedRecords&&(this._linkedRecords=new ep),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const t=n._prev,i=n._next;return null===t?this._itHead=i:t._next=i,null===i?this._itTail=t:i._prev=t,n}_addToMoves(n,t){return n.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ep),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,t){return n.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class Sk{constructor(n,t){this.item=n,this.trackById=t,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 Ak{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,t){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===t||t<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const t=n._prevDup,i=n._nextDup;return null===t?this._head=i:t._nextDup=i,null===i?this._tail=t:i._prevDup=t,null===this._head}}class ep{constructor(){this.map=new Map}put(n){const t=n.trackById;let i=this.map.get(t);i||(i=new Ak,this.map.set(t,i)),i.add(n)}get(n,t){const a=this.map.get(n);return a?a.get(n,t):null}remove(n){const t=n.trackById;return this.map.get(t).remove(n)&&this.map.delete(t),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function tp(e,n,t){const i=e.previousIndex;if(null===i)return i;let a=0;return t&&i<t.length&&(a=t[i]),i+n+a}function ip(){return new lc([new Xh])}let lc=(()=>{class e{constructor(t){this.factories=t}static create(t,i){if(null!=i){const a=i.factories.slice();t=t.concat(a)}return new e(t)}static extend(t){return{provide:e,useFactory:i=>e.create(t,i||ip()),deps:[[e,new Vi,new Sn]]}}find(t){const i=this.factories.find(a=>a.supports(t));if(null!=i)return i;throw new Ve(901,"")}}return e.\u0275prov=Z({token:e,providedIn:"root",factory:ip}),e})();const Ok=Gh(null,"core",[]);let Rk=(()=>{class e{constructor(t){}}return e.\u0275fac=function(t){return new(t||e)(q(I4))},e.\u0275mod=Ae({type:e}),e.\u0275inj=Le({}),e})(),uc=null;function Gt(){return uc}const x1=new ve("DocumentToken");let d3=(()=>{class e{historyGo(t){throw new Error("Not implemented")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:function(){return function Uk(){return q(rp)}()},providedIn:"platform"}),e})();const jk=new ve("Location Initialized");let rp=(()=>{class e extends d3{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Gt().getBaseHref(this._doc)}onPopState(t){const i=Gt().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",t,!1),()=>i.removeEventListener("popstate",t)}onHashChange(t){const i=Gt().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",t,!1),()=>i.removeEventListener("hashchange",t)}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(t){this.location.pathname=t}pushState(t,i,a){cp()?this._history.pushState(t,i,a):this.location.hash=a}replaceState(t,i,a){cp()?this._history.replaceState(t,i,a):this.location.hash=a}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return e.\u0275fac=function(t){return new(t||e)(q(x1))},e.\u0275prov=Z({token:e,factory:function(){return function Gk(){return new rp(q(x1))}()},providedIn:"platform"}),e})();function cp(){return!!window.history.pushState}function J0(e,n){if(0==e.length)return n;if(0==n.length)return e;let t=0;return e.endsWith("/")&&t++,n.startsWith("/")&&t++,2==t?e+n.substring(1):1==t?e+n:e+"/"+n}function op(e){const n=e.match(/#|\?|$/),t=n&&n.index||e.length;return e.slice(0,t-("/"===e[t-1]?1:0))+e.slice(t)}function sn(e){return e&&"?"!==e[0]?"?"+e:e}let h3=(()=>{class e{historyGo(t){throw new Error("Not implemented")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:function(){return function $k(e){const n=q(x1).location;return new sp(q(d3),n&&n.origin||"")}()},providedIn:"root"}),e})();const X0=new ve("appBaseHref");let sp=(()=>{class e extends h3{constructor(t,i){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=i}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return J0(this._baseHref,t)}path(t=!1){const i=this._platformLocation.pathname+sn(this._platformLocation.search),a=this._platformLocation.hash;return a&&t?`${i}${a}`:i}pushState(t,i,a,r){const c=this.prepareExternalUrl(a+sn(r));this._platformLocation.pushState(t,i,c)}replaceState(t,i,a,r){const c=this.prepareExternalUrl(a+sn(r));this._platformLocation.replaceState(t,i,c)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var i,a;null===(a=(i=this._platformLocation).historyGo)||void 0===a||a.call(i,t)}}return e.\u0275fac=function(t){return new(t||e)(q(d3),q(X0,8))},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})(),lp=(()=>{class e extends h3{constructor(t,i){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(t){const i=J0(this._baseHref,t);return i.length>0?"#"+i:i}pushState(t,i,a,r){let c=this.prepareExternalUrl(a+sn(r));0==c.length&&(c=this._platformLocation.pathname),this._platformLocation.pushState(t,i,c)}replaceState(t,i,a,r){let c=this.prepareExternalUrl(a+sn(r));0==c.length&&(c=this._platformLocation.pathname),this._platformLocation.replaceState(t,i,c)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var i,a;null===(a=(i=this._platformLocation).historyGo)||void 0===a||a.call(i,t)}}return e.\u0275fac=function(t){return new(t||e)(q(d3),q(X0,8))},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})(),e8=(()=>{class e{constructor(t,i){this._subject=new ie,this._urlChangeListeners=[],this._platformStrategy=t;const a=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=op(up(a)),this._platformStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,i=""){return this.path()==this.normalize(t+sn(i))}normalize(t){return e.stripTrailingSlash(function qk(e,n){return e&&n.startsWith(e)?n.substring(e.length):n}(this._baseHref,up(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,i="",a=null){this._platformStrategy.pushState(a,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+sn(i)),a)}replaceState(t,i="",a=null){this._platformStrategy.replaceState(a,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+sn(i)),a)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var i,a;null===(a=(i=this._platformStrategy).historyGo)||void 0===a||a.call(i,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(t="",i){this._urlChangeListeners.forEach(a=>a(t,i))}subscribe(t,i,a){return this._subject.subscribe({next:t,error:i,complete:a})}}return e.normalizeQueryParams=sn,e.joinWithSlash=J0,e.stripTrailingSlash=op,e.\u0275fac=function(t){return new(t||e)(q(h3),q(d3))},e.\u0275prov=Z({token:e,factory:function(){return function Wk(){return new e8(q(h3),q(d3))}()},providedIn:"root"}),e})();function up(e){return e.replace(/\/index.html$/,"")}class EI{constructor(n,t,i,a){this.$implicit=n,this.ngForOf=t,this.index=i,this.count=a}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 p3=(()=>{class e{constructor(t,i,a){this._viewContainer=t,this._template=i,this._differs=a,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const i=this._viewContainer;t.forEachOperation((a,r,c)=>{if(null==a.previousIndex)i.createEmbeddedView(this._template,new EI(a.item,this._ngForOf,-1,-1),null===c?void 0:c);else if(null==c)i.remove(null===r?void 0:r);else if(null!==r){const o=i.get(r);i.move(o,c),Cp(o,a)}});for(let a=0,r=i.length;a<r;a++){const o=i.get(a).context;o.index=a,o.count=r,o.ngForOf=this._ngForOf}t.forEachIdentityChange(a=>{Cp(i.get(a.currentIndex),a)})}static ngTemplateContextGuard(t,i){return!0}}return e.\u0275fac=function(t){return new(t||e)(H(U2),H(l1),H(lc))},e.\u0275dir=U({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e})();function Cp(e,n){e.context.$implicit=n.item}let j1=(()=>{class e{constructor(t,i){this._viewContainer=t,this._context=new TI,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){yp("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){yp("ngIfElse",t),this._elseTemplateRef=t,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(t,i){return!0}}return e.\u0275fac=function(t){return new(t||e)(H(U2),H(l1))},e.\u0275dir=U({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e})();class TI{constructor(){this.$implicit=null,this.ngIf=null}}function yp(e,n){if(n&&!n.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Ie(n)}'.`)}let O4=(()=>{class e{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(t.ngTemplateOutlet){const i=this._viewContainerRef;this._viewRef&&i.remove(i.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?i.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return e.\u0275fac=function(t){return new(t||e)(H(U2))},e.\u0275dir=U({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[D1]}),e})(),$2=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ae({type:e}),e.\u0275inj=Le({}),e})();let uO=(()=>{class e{}return e.\u0275prov=Z({token:e,providedIn:"root",factory:()=>new fO(q(x1),window)}),e})();class fO{constructor(n,t){this.document=n,this.window=t,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const t=function dO(e,n){const t=e.getElementById(n)||e.getElementsByName(n)[0];if(t)return t;if("function"==typeof e.createTreeWalker&&e.body&&(e.body.createShadowRoot||e.body.attachShadow)){const i=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let a=i.currentNode;for(;a;){const r=a.shadowRoot;if(r){const c=r.getElementById(n)||r.querySelector(`[name="${n}"]`);if(c)return c}a=i.nextNode()}}return null}(this.document,n);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=n)}}scrollToElement(n){const t=n.getBoundingClientRect(),i=t.left+this.window.pageXOffset,a=t.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(i-r[0],a-r[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=wp(this.window.history)||wp(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch(n){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(n){return!1}}}function wp(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class p8 extends class pO extends class Bk{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function Fk(e){uc||(uc=e)}(new p8)}onAndCancel(n,t,i){return n.addEventListener(t,i,!1),()=>{n.removeEventListener(t,i,!1)}}dispatchEvent(n,t){n.dispatchEvent(t)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,t){return(t=t||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,t){return"window"===t?window:"document"===t?n:"body"===t?n.body:null}getBaseHref(n){const t=function mO(){return na=na||document.querySelector("base"),na?na.getAttribute("href"):null}();return null==t?null:function gO(e){yc=yc||document.createElement("a"),yc.setAttribute("href",e);const n=yc.pathname;return"/"===n.charAt(0)?n:`/${n}`}(t)}resetBaseElement(){na=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return function LI(e,n){n=encodeURIComponent(n);for(const t of e.split(";")){const i=t.indexOf("="),[a,r]=-1==i?[t,""]:[t.slice(0,i),t.slice(i+1)];if(a.trim()===n)return decodeURIComponent(r)}return null}(document.cookie,n)}}let yc,na=null;const Vp=new ve("TRANSITION_ID"),_O=[{provide:O0,useFactory:function vO(e,n,t){return()=>{t.get(R0).donePromise.then(()=>{const i=Gt(),a=n.querySelectorAll(`style[ng-transition="${e}"]`);for(let r=0;r<a.length;r++)i.remove(a[r])})}},deps:[Vp,x1,T1],multi:!0}];class m8{static init(){!function hk(e){$0=e}(new m8)}addToWindow(n){Pe.getAngularTestability=(i,a=!0)=>{const r=n.findTestabilityInTree(i,a);if(null==r)throw new Error("Could not find testability for element.");return r},Pe.getAllAngularTestabilities=()=>n.getAllTestabilities(),Pe.getAllAngularRootElements=()=>n.getAllRootElements(),Pe.frameworkStabilizers||(Pe.frameworkStabilizers=[]),Pe.frameworkStabilizers.push(i=>{const a=Pe.getAllAngularTestabilities();let r=a.length,c=!1;const o=function(s){c=c||s,r--,0==r&&i(c)};a.forEach(function(s){s.whenStable(o)})})}findTestabilityInTree(n,t,i){if(null==t)return null;const a=n.getTestability(t);return null!=a?a:i?Gt().isShadowRoot(t)?this.findTestabilityInTree(n,t.host,!0):this.findTestabilityInTree(n,t.parentElement,!0):null}}let CO=(()=>{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})();const Mc=new ve("EventManagerPlugins");let bc=(()=>{class e{constructor(t,i){this._zone=i,this._eventNameToPlugin=new Map,t.forEach(a=>a.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,i,a){return this._findPluginFor(i).addEventListener(t,i,a)}addGlobalEventListener(t,i,a){return this._findPluginFor(i).addGlobalEventListener(t,i,a)}getZone(){return this._zone}_findPluginFor(t){const i=this._eventNameToPlugin.get(t);if(i)return i;const a=this._plugins;for(let r=0;r<a.length;r++){const c=a[r];if(c.supports(t))return this._eventNameToPlugin.set(t,c),c}throw new Error(`No event manager plugin found for event ${t}`)}}return e.\u0275fac=function(t){return new(t||e)(q(Mc),q(Fe))},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})();class Dp{constructor(n){this._doc=n}addGlobalEventListener(n,t,i){const a=Gt().getGlobalEventTarget(this._doc,n);if(!a)throw new Error(`Unsupported event target ${a} for event ${t}`);return this.addEventListener(a,t,i)}}let zp=(()=>{class e{constructor(){this._stylesSet=new Set}addStyles(t){const i=new Set;t.forEach(a=>{this._stylesSet.has(a)||(this._stylesSet.add(a),i.add(a))}),this.onStylesAdded(i)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})(),ia=(()=>{class e extends zp{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,i,a){t.forEach(r=>{const c=this._doc.createElement("style");c.textContent=r,a.push(i.appendChild(c))})}addHost(t){const i=[];this._addStylesToHost(this._stylesSet,t,i),this._hostNodes.set(t,i)}removeHost(t){const i=this._hostNodes.get(t);i&&i.forEach(Np),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((i,a)=>{this._addStylesToHost(t,a,i)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(Np))}}return e.\u0275fac=function(t){return new(t||e)(q(x1))},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})();function Np(e){Gt().remove(e)}const g8={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/"},v8=/%COMP%/g;function Hc(e,n,t){for(let i=0;i<n.length;i++){let a=n[i];Array.isArray(a)?Hc(e,a,t):(a=a.replace(v8,e),t.push(a))}return t}function Sp(e){return n=>{if("__ngUnwrap__"===n)return e;!1===e(n)&&(n.preventDefault(),n.returnValue=!1)}}let _8=(()=>{class e{constructor(t,i,a){this.eventManager=t,this.sharedStylesHost=i,this.appId=a,this.rendererByCompId=new Map,this.defaultRenderer=new C8(t)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;switch(i.encapsulation){case Et.Emulated:{let a=this.rendererByCompId.get(i.id);return a||(a=new VO(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,a)),a.applyToHost(t),a}case 1:case Et.ShadowDom:return new DO(this.eventManager,this.sharedStylesHost,t,i);default:if(!this.rendererByCompId.has(i.id)){const a=Hc(i.id,i.styles,[]);this.sharedStylesHost.addStyles(a),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(t){return new(t||e)(q(bc),q(ia),q(Ji))},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})();class C8{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,t){return t?document.createElementNS(g8[t]||t,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,t){n.appendChild(t)}insertBefore(n,t,i){n&&n.insertBefore(t,i)}removeChild(n,t){n&&n.removeChild(t)}selectRootElement(n,t){let i="string"==typeof n?document.querySelector(n):n;if(!i)throw new Error(`The selector "${n}" did not match any elements`);return t||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,t,i,a){if(a){t=a+":"+t;const r=g8[a];r?n.setAttributeNS(r,t,i):n.setAttribute(t,i)}else n.setAttribute(t,i)}removeAttribute(n,t,i){if(i){const a=g8[i];a?n.removeAttributeNS(a,t):n.removeAttribute(`${i}:${t}`)}else n.removeAttribute(t)}addClass(n,t){n.classList.add(t)}removeClass(n,t){n.classList.remove(t)}setStyle(n,t,i,a){a&(R2.DashCase|R2.Important)?n.style.setProperty(t,i,a&R2.Important?"important":""):n.style[t]=i}removeStyle(n,t,i){i&R2.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,i){n[t]=i}setValue(n,t){n.nodeValue=t}listen(n,t,i){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,t,Sp(i)):this.eventManager.addEventListener(n,t,Sp(i))}}class VO extends C8{constructor(n,t,i,a){super(n),this.component=i;const r=Hc(a+"-"+i.id,i.styles,[]);t.addStyles(r),this.contentAttr=function bO(e){return"_ngcontent-%COMP%".replace(v8,e)}(a+"-"+i.id),this.hostAttr=function HO(e){return"_nghost-%COMP%".replace(v8,e)}(a+"-"+i.id)}applyToHost(n){super.setAttribute(n,this.hostAttr,"")}createElement(n,t){const i=super.createElement(n,t);return super.setAttribute(i,this.contentAttr,""),i}}class DO extends C8{constructor(n,t,i,a){super(n),this.sharedStylesHost=t,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const r=Hc(a.id,a.styles,[]);for(let c=0;c<r.length;c++){const o=document.createElement("style");o.textContent=r[c],this.shadowRoot.appendChild(o)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(n,t){return super.appendChild(this.nodeOrShadowRoot(n),t)}insertBefore(n,t,i){return super.insertBefore(this.nodeOrShadowRoot(n),t,i)}removeChild(n,t){return super.removeChild(this.nodeOrShadowRoot(n),t)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}}let zO=(()=>{class e extends Dp{constructor(t){super(t)}supports(t){return!0}addEventListener(t,i,a){return t.addEventListener(i,a,!1),()=>this.removeEventListener(t,i,a)}removeEventListener(t,i,a){return t.removeEventListener(i,a)}}return e.\u0275fac=function(t){return new(t||e)(q(x1))},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})();const Ep=["alt","control","meta","shift"],xO={"\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"},Tp={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},LO={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let SO=(()=>{class e extends Dp{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,i,a){const r=e.parseEventName(i),c=e.eventCallback(r.fullKey,a,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Gt().onAndCancel(t,r.domEventName,c))}static parseEventName(t){const i=t.toLowerCase().split("."),a=i.shift();if(0===i.length||"keydown"!==a&&"keyup"!==a)return null;const r=e._normalizeKey(i.pop());let c="";if(Ep.forEach(s=>{const l=i.indexOf(s);l>-1&&(i.splice(l,1),c+=s+".")}),c+=r,0!=i.length||0===r.length)return null;const o={};return o.domEventName=a,o.fullKey=c,o}static getEventFullKey(t){let i="",a=function AO(e){let n=e.key;if(null==n){if(n=e.keyIdentifier,null==n)return"Unidentified";n.startsWith("U+")&&(n=String.fromCharCode(parseInt(n.substring(2),16)),3===e.location&&Tp.hasOwnProperty(n)&&(n=Tp[n]))}return xO[n]||n}(t);return a=a.toLowerCase()," "===a?a="space":"."===a&&(a="dot"),Ep.forEach(r=>{r!=a&&LO[r](t)&&(i+=r+".")}),i+=a,i}static eventCallback(t,i,a){return r=>{e.getEventFullKey(r)===t&&a.runGuarded(()=>i(r))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return e.\u0275fac=function(t){return new(t||e)(q(x1))},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})();const IO=Gh(Ok,"browser",[{provide:F0,useValue:"browser"},{provide:Ih,useValue:function EO(){p8.makeCurrent(),m8.init()},multi:!0},{provide:x1,useFactory:function kO(){return function Xz(e){xs=e}(document),document},deps:[]}]),OO=[{provide:G6,useValue:"root"},{provide:Ei,useFactory:function TO(){return new Ei},deps:[]},{provide:Mc,useClass:zO,multi:!0,deps:[x1,Fe,F0]},{provide:Mc,useClass:SO,multi:!0,deps:[x1]},{provide:_8,useClass:_8,deps:[bc,ia,Ji]},{provide:_0,useExisting:_8},{provide:zp,useExisting:ia},{provide:ia,useClass:ia,deps:[x1]},{provide:G0,useClass:G0,deps:[Fe]},{provide:bc,useClass:bc,deps:[Mc,Fe]},{provide:class hO{},useClass:CO,deps:[]}];let RO=(()=>{class e{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:e,providers:[{provide:Ji,useValue:t.appId},{provide:Vp,useExisting:Ji},_O]}}}return e.\u0275fac=function(t){return new(t||e)(q(e,12))},e.\u0275mod=Ae({type:e}),e.\u0275inj=Le({providers:OO,imports:[$2,Rk]}),e})();"undefined"!=typeof window&&window;let Op=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:function(t){let i=null;return i=t?new(t||e):q(Rp),i},providedIn:"root"}),e})(),Rp=(()=>{class e extends Op{constructor(t){super(),this._doc=t}sanitize(t,i){if(null==i)return null;switch(t){case Ke.NONE:return i;case Ke.HTML:return Ot(i,"HTML")?P2(i):df(this._doc,String(i)).toString();case Ke.STYLE:return Ot(i,"Style")?P2(i):i;case Ke.SCRIPT:if(Ot(i,"Script"))return P2(i);throw new Error("unsafe value used in a script context");case Ke.URL:return nf(i),Ot(i,"URL")?P2(i):Li(String(i));case Ke.RESOURCE_URL:if(Ot(i,"ResourceURL"))return P2(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return function Rx(e){return new Ex(e)}(t)}bypassSecurityTrustStyle(t){return function Px(e){return new Tx(e)}(t)}bypassSecurityTrustScript(t){return function Fx(e){return new kx(e)}(t)}bypassSecurityTrustUrl(t){return function Bx(e){return new Ix(e)}(t)}bypassSecurityTrustResourceUrl(t){return function Ux(e){return new Ox(e)}(t)}}return e.\u0275fac=function(t){return new(t||e)(q(x1))},e.\u0275prov=Z({token:e,factory:function(t){let i=null;return i=t?new t:function YO(e){return new Rp(e.get(x1))}(q(T1)),i},providedIn:"root"}),e})();const{isArray:KO}=Array,{getPrototypeOf:QO,prototype:ZO,keys:JO}=Object;function Pp(e){if(1===e.length){const n=e[0];if(KO(n))return{args:n,keys:null};if(function XO(e){return e&&"object"==typeof e&&QO(e)===ZO}(n)){const t=JO(n);return{args:t.map(i=>n[i]),keys:t}}}return{args:e,keys:null}}const{isArray:eR}=Array;function M8(e){return me(n=>function tR(e,n){return eR(n)?e(...n):e(n)}(e,n))}function Fp(e,n){return e.reduce((t,i,a)=>(t[i]=n[a],t),{})}let Bp=(()=>{class e{constructor(t,i){this._renderer=t,this._elementRef=i,this.onChange=a=>{},this.onTouched=()=>{}}setProperty(t,i){this._renderer.setProperty(this._elementRef.nativeElement,t,i)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return e.\u0275fac=function(t){return new(t||e)(H(h2),H(Ee))},e.\u0275dir=U({type:e}),e})(),m3=(()=>{class e extends Bp{}return e.\u0275fac=function(){let n;return function(i){return(n||(n=u2(e)))(i||e)}}(),e.\u0275dir=U({type:e,features:[X]}),e})();const ct=new ve("NgValueAccessor"),iR={provide:ct,useExisting:Ne(()=>p2),multi:!0};let p2=(()=>{class e extends m3{writeValue(t){this.setProperty("checked",t)}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=u2(e)))(i||e)}}(),e.\u0275dir=U({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,i){1&t&&k("change",function(r){return i.onChange(r.target.checked)})("blur",function(){return i.onTouched()})},features:[Ge([iR]),X]}),e})();const aR={provide:ct,useExisting:Ne(()=>On),multi:!0},cR=new ve("CompositionEventMode");let On=(()=>{class e extends Bp{constructor(t,i,a){super(t,i),this._compositionMode=a,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function rR(){const e=Gt()?Gt().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(t){this.setProperty("value",null==t?"":t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return e.\u0275fac=function(t){return new(t||e)(H(h2),H(Ee),H(cR,8))},e.\u0275dir=U({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(t,i){1&t&&k("input",function(r){return i._handleInput(r.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(r){return i._compositionEnd(r.target.value)})},features:[Ge([aR]),X]}),e})();const m2=new ve("NgValidators"),Pn=new ve("NgAsyncValidators"),oR=/^(?=.{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 qp(e){return function Rn(e){return null==e||0===e.length}(e.value)||oR.test(e.value)?null:{email:!0}}function wc(e){return null}function Zp(e){return null!=e}function Jp(e){const n=Pi(e)?J1(e):e;return c0(n),n}function Xp(e){let n={};return e.forEach(t=>{n=null!=t?Object.assign(Object.assign({},n),t):n}),0===Object.keys(n).length?null:n}function em(e,n){return n.map(t=>t(e))}function tm(e){return e.map(n=>function sR(e){return!e.validate}(n)?n:t=>n.validate(t))}function b8(e){return null!=e?function nm(e){if(!e)return null;const n=e.filter(Zp);return 0==n.length?null:function(t){return Xp(em(t,n))}}(tm(e)):null}function H8(e){return null!=e?function im(e){if(!e)return null;const n=e.filter(Zp);return 0==n.length?null:function(t){return function nR(...e){const n=or(e),{args:t,keys:i}=Pp(e),a=new Te(r=>{const{length:c}=t;if(!c)return void r.complete();const o=new Array(c);let s=c,l=c;for(let u=0;u<c;u++){let d=!1;Z1(t[u]).subscribe(Re(r,p=>{d||(d=!0,l--),o[u]=p},()=>s--,void 0,()=>{(!s||!d)&&(l||r.next(i?Fp(i,o):o),r.complete())}))}});return n?a.pipe(M8(n)):a}(em(t,n).map(Jp)).pipe(me(Xp))}}(tm(e)):null}function am(e,n){return null===e?[n]:Array.isArray(e)?[...e,n]:[e,n]}function w8(e){return e?Array.isArray(e)?e:[e]:[]}function Vc(e,n){return Array.isArray(e)?e.includes(n):e===n}function om(e,n){const t=w8(n);return w8(e).forEach(a=>{Vc(t,a)||t.push(a)}),t}function sm(e,n){return w8(n).filter(t=>!Vc(e,t))}class lm{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=b8(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=H8(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,t){return!!this.control&&this.control.hasError(n,t)}getError(n,t){return this.control?this.control.getError(n,t):null}}class Fn extends lm{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class D2 extends lm{get formDirective(){return null}get path(){return null}}let b1=(()=>{class e extends class um{constructor(n){this._cd=n}is(n){var t,i,a;return"submitted"===n?!!(null===(t=this._cd)||void 0===t?void 0:t.submitted):!!(null===(a=null===(i=this._cd)||void 0===i?void 0:i.control)||void 0===a?void 0:a[n])}}{constructor(t){super(t)}}return e.\u0275fac=function(t){return new(t||e)(H(Fn,2))},e.\u0275dir=U({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,i){2&t&&Qe("ng-untouched",i.is("untouched"))("ng-touched",i.is("touched"))("ng-pristine",i.is("pristine"))("ng-dirty",i.is("dirty"))("ng-valid",i.is("valid"))("ng-invalid",i.is("invalid"))("ng-pending",i.is("pending"))},features:[X]}),e})();function aa(e,n){(function z8(e,n){const t=function rm(e){return e._rawValidators}(e);null!==n.validator?e.setValidators(am(t,n.validator)):"function"==typeof t&&e.setValidators([t]);const i=function cm(e){return e._rawAsyncValidators}(e);null!==n.asyncValidator?e.setAsyncValidators(am(i,n.asyncValidator)):"function"==typeof i&&e.setAsyncValidators([i]);const a=()=>e.updateValueAndValidity();xc(n._rawValidators,a),xc(n._rawAsyncValidators,a)})(e,n),n.valueAccessor.writeValue(e.value),function vR(e,n){n.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&dm(e,n)})}(e,n),function CR(e,n){const t=(i,a)=>{n.valueAccessor.writeValue(i),a&&n.viewToModelUpdate(i)};e.registerOnChange(t),n._registerOnDestroy(()=>{e._unregisterOnChange(t)})}(e,n),function _R(e,n){n.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&dm(e,n),"submit"!==e.updateOn&&e.markAsTouched()})}(e,n),function gR(e,n){if(n.valueAccessor.setDisabledState){const t=i=>{n.valueAccessor.setDisabledState(i)};e.registerOnDisabledChange(t),n._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}(e,n)}function xc(e,n){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function dm(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function L8(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}const ra="VALID",Sc="INVALID",R4="PENDING",ca="DISABLED";function A8(e){return(Ac(e)?e.validators:e)||null}function gm(e){return Array.isArray(e)?b8(e):e||null}function E8(e,n){return(Ac(n)?n.asyncValidators:e)||null}function vm(e){return Array.isArray(e)?H8(e):e||null}function Ac(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}const T8=e=>e instanceof I8;function Cm(e){return(e=>e instanceof bm)(e)?e.value:e.getRawValue()}function ym(e,n){const t=T8(e),i=e.controls;if(!(t?Object.keys(i):i).length)throw new Ve(1e3,"");if(!i[n])throw new Ve(1001,"")}function Mm(e,n){T8(e),e._forEachChild((i,a)=>{if(void 0===n[a])throw new Ve(1002,"")})}class k8{constructor(n,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=n,this._rawAsyncValidators=t,this._composedValidatorFn=gm(this._rawValidators),this._composedAsyncValidatorFn=vm(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===ra}get invalid(){return this.status===Sc}get pending(){return this.status==R4}get disabled(){return this.status===ca}get enabled(){return this.status!==ca}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._rawValidators=n,this._composedValidatorFn=gm(n)}setAsyncValidators(n){this._rawAsyncValidators=n,this._composedAsyncValidatorFn=vm(n)}addValidators(n){this.setValidators(om(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(om(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(sm(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(sm(n,this._rawAsyncValidators))}hasValidator(n){return Vc(this._rawValidators,n)}hasAsyncValidator(n){return Vc(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=R4,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=ca,this.errors=null,this._forEachChild(i=>{i.disable(Object.assign(Object.assign({},n),{onlySelf:!0}))}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},n),{skipPristineCheck:t})),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=ra,this._forEachChild(i=>{i.enable(Object.assign(Object.assign({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},n),{skipPristineCheck:t})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ra||this.status===R4)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ca:ra}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=R4,this._hasOwnPendingAsyncValidator=!0;const t=Jp(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,t={}){this.errors=n,this._updateControlsErrors(!1!==t.emitEvent)}get(n){return function HR(e,n,t){if(null==n||(Array.isArray(n)||(n=n.split(t)),Array.isArray(n)&&0===n.length))return null;let i=e;return n.forEach(a=>{i=T8(i)?i.controls.hasOwnProperty(a)?i.controls[a]:null:(e=>e instanceof VR)(i)&&i.at(a)||null}),i}(this,n,".")}getError(n,t){const i=t?this.get(t):this;return i&&i.errors?i.errors[n]:null}hasError(n,t){return!!this.getError(n,t)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new ie,this.statusChanges=new ie}_calculateStatus(){return this._allControlsDisabled()?ca:this.errors?Sc:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(R4)?R4:this._anyControlsHaveStatus(Sc)?Sc:ra}_anyControlsHaveStatus(n){return this._anyControls(t=>t.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_isBoxedValue(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){Ac(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class bm extends k8{constructor(n=null,t,i){super(A8(t),E8(i,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Ac(t)&&t.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(n)?n.value:n)}setValue(n,t={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(n,t={}){this.setValue(n,t)}reset(n=this.defaultValue,t={}){this._applyFormState(n),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){L8(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){L8(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){this._isBoxedValue(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}}class I8 extends k8{constructor(n,t,i){super(A8(t),E8(i,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,t){return this.controls[n]?this.controls[n]:(this.controls[n]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(n,t,i={}){this.registerControl(n,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,t={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(n,t,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],t&&this.registerControl(n,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,t={}){Mm(this,n),Object.keys(n).forEach(i=>{ym(this,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(Object.keys(n).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(n[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n={},t={}){this._forEachChild((i,a)=>{i.reset(n[a],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(n,t,i)=>(n[i]=Cm(t),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(t,i)=>!!i._syncPendingControls()||t);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(t=>{const i=this.controls[t];i&&n(i,t)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const t of Object.keys(this.controls)){const i=this.controls[t];if(this.contains(t)&&n(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(n,t,i)=>((t.enabled||this.disabled)&&(n[i]=t.value),n))}_reduceChildren(n,t){let i=n;return this._forEachChild((a,r)=>{i=t(i,a,r)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class VR extends k8{constructor(n,t,i){super(A8(t),E8(i,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[n]}push(n,t={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(n,t,i={}){this.controls.splice(n,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,t={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(n,t,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),t&&(this.controls.splice(n,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,t={}){Mm(this,n),n.forEach((i,a)=>{ym(this,a),this.at(a).setValue(i,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(n.forEach((i,a)=>{this.at(a)&&this.at(a).patchValue(i,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n=[],t={}){this._forEachChild((i,a)=>{i.reset(n[a],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(n=>Cm(n))}clear(n={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_syncPendingControls(){let n=this.controls.reduce((t,i)=>!!i._syncPendingControls()||t,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((t,i)=>{n(t,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(t=>t.enabled&&n(t))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}}const NR={provide:Fn,useExisting:Ne(()=>g1)},Vm=(()=>Promise.resolve(null))();let g1=(()=>{class e extends Fn{constructor(t,i,a,r,c){super(),this._changeDetectorRef=c,this.control=new bm,this._registered=!1,this.update=new ie,this._parent=t,this._setValidators(i),this._setAsyncValidators(a),this.valueAccessor=function x8(e,n){if(!n)return null;let t,i,a;return Array.isArray(n),n.forEach(r=>{r.constructor===On?t=r:function bR(e){return Object.getPrototypeOf(e.constructor)===m3}(r)?i=r:a=r}),a||i||t||null}(0,r)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){const i=t.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),function N8(e,n){if(!e.hasOwnProperty("model"))return!1;const t=e.model;return!!t.isFirstChange()||!Object.is(n,t.currentValue)}(t,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(t){this.viewModel=t,this.update.emit(t)}_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(){aa(this.control,this),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(t){Vm.then(()=>{var i;this.control.setValue(t,{emitViewToModelChange:!1}),null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()})}_updateDisabled(t){const i=t.isDisabled.currentValue,a=""===i||i&&"false"!==i;Vm.then(()=>{var r;a&&!this.control.disabled?this.control.disable():!a&&this.control.disabled&&this.control.enable(),null===(r=this._changeDetectorRef)||void 0===r||r.markForCheck()})}_getPath(t){return this._parent?function zc(e,n){return[...n.path,e]}(t,this._parent):[t]}}return e.\u0275fac=function(t){return new(t||e)(H(D2,9),H(m2,10),H(Pn,10),H(ct,10),H(G2,8))},e.\u0275dir=U({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:[Ge([NR]),X,D1]}),e})();const LR={provide:ct,useExisting:Ne(()=>P4),multi:!0};let P4=(()=>{class e extends m3{writeValue(t){this.setProperty("value",null==t?"":t)}registerOnChange(t){this.onChange=i=>{t(""==i?null:parseFloat(i))}}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=u2(e)))(i||e)}}(),e.\u0275dir=U({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,i){1&t&&k("input",function(r){return i.onChange(r.target.value)})("blur",function(){return i.onTouched()})},features:[Ge([LR]),X]}),e})(),Dm=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ae({type:e}),e.\u0275inj=Le({}),e})();const PR={provide:ct,useExisting:Ne(()=>un),multi:!0};function Em(e,n){return null==e?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${e}: ${n}`.slice(0,50))}let un=(()=>{class e extends m3{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const a=Em(this._getOptionId(t),t);this.setProperty("value",a)}registerOnChange(t){this.onChange=i=>{this.value=this._getOptionValue(i),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const i of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(i),t))return i;return null}_getOptionValue(t){const i=function FR(e){return e.split(":")[0]}(t);return this._optionMap.has(i)?this._optionMap.get(i):t}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=u2(e)))(i||e)}}(),e.\u0275dir=U({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,i){1&t&&k("change",function(r){return i.onChange(r.target.value)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[Ge([PR]),X]}),e})(),g3=(()=>{class e{constructor(t,i,a){this._element=t,this._renderer=i,this._select=a,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(Em(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return e.\u0275fac=function(t){return new(t||e)(H(Ee),H(h2),H(un,9))},e.\u0275dir=U({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})();const BR={provide:ct,useExisting:Ne(()=>B8),multi:!0};function Tm(e,n){return null==e?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${e}: ${n}`.slice(0,50))}let B8=(()=>{class e extends m3{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let i;if(this.value=t,Array.isArray(t)){const a=t.map(r=>this._getOptionId(r));i=(r,c)=>{r._setSelected(a.indexOf(c.toString())>-1)}}else i=(a,r)=>{a._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(t){this.onChange=i=>{const a=[],r=i.selectedOptions;if(void 0!==r){const c=r;for(let o=0;o<c.length;o++){const l=this._getOptionValue(c[o].value);a.push(l)}}else{const c=i.options;for(let o=0;o<c.length;o++){const s=c[o];if(s.selected){const l=this._getOptionValue(s.value);a.push(l)}}}this.value=a,t(a)}}_registerOption(t){const i=(this._idCounter++).toString();return this._optionMap.set(i,t),i}_getOptionId(t){for(const i of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(i)._value,t))return i;return null}_getOptionValue(t){const i=function UR(e){return e.split(":")[0]}(t);return this._optionMap.has(i)?this._optionMap.get(i)._value:t}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=u2(e)))(i||e)}}(),e.\u0275dir=U({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(t,i){1&t&&k("change",function(r){return i.onChange(r.target)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[Ge([BR]),X]}),e})(),v3=(()=>{class e{constructor(t,i,a){this._element=t,this._renderer=i,this._select=a,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(Tm(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(Tm(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return e.\u0275fac=function(t){return new(t||e)(H(Ee),H(h2),H(B8,9))},e.\u0275dir=U({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})(),_3=(()=>{class e{constructor(){this._validator=wc}ngOnChanges(t){if(this.inputName in t){const i=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):wc,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return null!=t}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=U({type:e,features:[D1]}),e})();const YR={provide:m2,useExisting:Ne(()=>j8),multi:!0};let j8=(()=>{class e extends _3{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=t=>""===t||!0===t||"true"===t,this.createValidator=t=>qp}enabled(t){return t}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=u2(e)))(i||e)}}(),e.\u0275dir=U({type:e,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[Ge([YR]),X]}),e})(),JR=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ae({type:e}),e.\u0275inj=Le({imports:[[Dm]]}),e})(),jm=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ae({type:e}),e.\u0275inj=Le({imports:[JR]}),e})();function ce(...e){return J1(e,li(e))}const XR=["addListener","removeListener"],eP=["addEventListener","removeEventListener"],tP=["on","off"];function g2(e,n,t,i){if(Y(t)&&(i=t,t=void 0),i)return g2(e,n,t).pipe(M8(i));const[a,r]=function aP(e){return Y(e.addEventListener)&&Y(e.removeEventListener)}(e)?eP.map(c=>o=>e[c](n,o,t)):function nP(e){return Y(e.addListener)&&Y(e.removeListener)}(e)?XR.map(Gm(e,n)):function iP(e){return Y(e.on)&&Y(e.off)}(e)?tP.map(Gm(e,n)):[];if(!a&&fs(e))return V1(c=>g2(c,n,t))(Z1(e));if(!a)throw new TypeError("Invalid event target");return new Te(c=>{const o=(...s)=>c.next(1<s.length?s:s[0]);return a(o),()=>r(o)})}function Gm(e,n){return t=>i=>e[t](n,i)}class rP extends we{constructor(n,t){super()}schedule(n,t=0){return this}}const Ec={setInterval(e,n,...t){const{delegate:i}=Ec;return(null==i?void 0:i.setInterval)?i.setInterval(e,n,...t):setInterval(e,n,...t)},clearInterval(e){const{delegate:n}=Ec;return((null==n?void 0:n.clearInterval)||clearInterval)(e)},delegate:void 0},$m={now:()=>($m.delegate||Date).now(),delegate:void 0};class sa{constructor(n,t=sa.now){this.schedulerActionCtor=n,this.now=t}schedule(n,t=0,i){return new this.schedulerActionCtor(this,n).schedule(i,t)}}sa.now=$m.now;const Wm=new class oP extends sa{constructor(n,t=sa.now){super(n,t),this.actions=[],this._active=!1}flush(n){const{actions:t}=this;if(this._active)return void t.push(n);let i;this._active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=t.shift());if(this._active=!1,i){for(;n=t.shift();)n.unsubscribe();throw i}}}(class cP extends rP{constructor(n,t){super(n,t),this.scheduler=n,this.work=t,this.pending=!1}schedule(n,t=0){var i;if(this.closed)return this;this.state=n;const a=this.id,r=this.scheduler;return null!=a&&(this.id=this.recycleAsyncId(r,a,t)),this.pending=!0,this.delay=t,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(r,this.id,t),this}requestAsyncId(n,t,i=0){return Ec.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,t,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return t;null!=t&&Ec.clearInterval(t)}execute(n,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,t);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,t){let a,i=!1;try{this.work(n)}catch(r){i=!0,a=r||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),a}unsubscribe(){if(!this.closed){const{id:n,scheduler:t}=this,{actions:i}=t;this.work=this.state=this.scheduler=null,this.pending=!1,$e(i,this),null!=n&&(this.id=this.recycleAsyncId(t,n,null)),this.delay=null,super.unsubscribe()}}}),sP=Wm;function G8(e=0,n,t=sP){let i=-1;return null!=n&&(w7(n)?t=n:i=n),new Te(a=>{let r=function lP(e){return e instanceof Date&&!isNaN(e)}(e)?+e-t.now():e;r<0&&(r=0);let c=0;return t.schedule(function(){a.closed||(a.next(c++),0<=i?this.schedule(void 0,i):a.complete())},r)})}const{isArray:uP}=Array;function qm(e){return 1===e.length&&uP(e[0])?e[0]:e}function Ym(...e){return 1===(e=qm(e)).length?Z1(e[0]):new Te(function fP(e){return n=>{let t=[];for(let i=0;t&&!n.closed&&i<e.length;i++)t.push(Z1(e[i]).subscribe(Re(n,a=>{if(t){for(let r=0;r<t.length;r++)r!==i&&t[r].unsubscribe();t=null}n.next(a)})))}}(e))}class K1 extends fe{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const t=super._subscribe(n);return!t.closed&&n.next(this._value),t}getValue(){const{hasError:n,thrownError:t,_value:i}=this;if(n)throw t;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}function Km(e,n,t){e?Zt(t,e,n):n()}function Tc(...e){const n=or(e),t=qm(e);return t.length?new Te(i=>{let a=t.map(()=>[]),r=t.map(()=>!1);i.add(()=>{a=r=null});for(let c=0;!i.closed&&c<t.length;c++)Z1(t[c]).subscribe(Re(i,o=>{if(a[c].push(o),a.every(s=>s.length)){const s=a.map(l=>l.shift());i.next(n?n(...s):s),a.some((l,u)=>!l.length&&r[u])&&i.complete()}},()=>{r[c]=!0,!a[c].length&&i.complete()}));return()=>{a=r=null}}):ft}function la(...e){return function hP(){return si(1)}()(J1(e,li(e)))}function G1(e){return r1((n,t)=>{Z1(e).subscribe(Re(t,()=>t.complete(),R1)),!t.closed&&n.subscribe(t)})}function t2(e,n){return r1((t,i)=>{let a=0;t.subscribe(Re(i,r=>e.call(n,r,a++)&&i.next(r)))})}function v2(e){return e<=0?()=>ft:r1((n,t)=>{let i=0;n.subscribe(Re(t,a=>{++i<=e&&(t.next(a),e<=i&&t.complete())}))})}function fn(e,n){return r1((t,i)=>{let a=null,r=0,c=!1;const o=()=>c&&!a&&i.complete();t.subscribe(Re(i,s=>{null==a||a.unsubscribe();let l=0;const u=r++;Z1(e(s,u)).subscribe(a=Re(i,d=>i.next(n?n(s,d,u,l++):d),()=>{a=null,o()}))},()=>{c=!0,o()}))})}function _2(e,n,t){const i=Y(e)||n||t?{next:e,error:n,complete:t}:e;return i?r1((a,r)=>{var c;null===(c=i.subscribe)||void 0===c||c.call(i);let o=!0;a.subscribe(Re(r,s=>{var l;null===(l=i.next)||void 0===l||l.call(i,s),r.next(s)},()=>{var s;o=!1,null===(s=i.complete)||void 0===s||s.call(i),r.complete()},s=>{var l;o=!1,null===(l=i.error)||void 0===l||l.call(i,s),r.error(s)},()=>{var s,l;o&&(null===(s=i.unsubscribe)||void 0===s||s.call(i)),null===(l=i.finalize)||void 0===l||l.call(i)}))}):ut}function q8(...e){const n=or(e);return r1((t,i)=>{const a=e.length,r=new Array(a);let c=e.map(()=>!1),o=!1;for(let s=0;s<a;s++)Z1(e[s]).subscribe(Re(i,l=>{r[s]=l,!o&&!c[s]&&(c[s]=!0,(o=c.every(ut))&&(c=null))},R1));t.subscribe(Re(i,s=>{if(o){const l=[s,...r];i.next(n?n(...l):l)}}))})}function Zm(e,n){return n?t=>la(n.pipe(v2(1),function gP(){return r1((e,n)=>{e.subscribe(Re(n,R1))})}()),t.pipe(Zm(e))):V1((t,i)=>e(t,i).pipe(v2(1),function vP(e){return me(()=>e)}(t)))}function Jm(e,n=Wm){const t=G8(e,n);return Zm(()=>t)}new Te(R1);var CP={left:"right",right:"left",bottom:"top",top:"bottom"};function Ic(e){return e.replace(/left|right|bottom|top/g,function(n){return CP[n]})}function $t(e){return e.split("-")[0]}var yP={start:"end",end:"start"};function Xm(e){return e.replace(/start|end/g,function(n){return yP[n]})}var W2="top",wt="bottom",Vt="right",q2="left",Y8="auto",ua=[W2,wt,Vt,q2],F4="start",fa="end",eg="viewport",da="popper",tg=ua.reduce(function(e,n){return e.concat([n+"-"+F4,n+"-"+fa])},[]),ng=[].concat(ua,[Y8]).reduce(function(e,n){return e.concat([n,n+"-"+F4,n+"-"+fa])},[]),AP=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Y2(e){if(null==e)return window;if("[object Window]"!==e.toString()){var n=e.ownerDocument;return n&&n.defaultView||window}return e}function C3(e){return e instanceof Y2(e).Element||e instanceof Element}function ot(e){return e instanceof Y2(e).HTMLElement||e instanceof HTMLElement}function K8(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Y2(e).ShadowRoot||e instanceof ShadowRoot)}function Bn(e){return((C3(e)?e.ownerDocument:e.document)||window.document).documentElement}var y3=Math.max,Oc=Math.min,B4=Math.round;function Q8(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function ig(){return!/^((?!chrome|android).)*safari/i.test(Q8())}function U4(e,n,t){void 0===n&&(n=!1),void 0===t&&(t=!1);var i=e.getBoundingClientRect(),a=1,r=1;n&&ot(e)&&(a=e.offsetWidth>0&&B4(i.width)/e.offsetWidth||1,r=e.offsetHeight>0&&B4(i.height)/e.offsetHeight||1);var o=(C3(e)?Y2(e):window).visualViewport,s=!ig()&&t,l=(i.left+(s&&o?o.offsetLeft:0))/a,u=(i.top+(s&&o?o.offsetTop:0))/r,d=i.width/a,p=i.height/r;return{width:d,height:p,top:u,right:l+d,bottom:u+p,left:l,x:l,y:u}}function Z8(e){var n=Y2(e);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function J8(e){return U4(Bn(e)).left+Z8(e).scrollLeft}function dn(e){return Y2(e).getComputedStyle(e)}function Wt(e){return e?(e.nodeName||"").toLowerCase():null}function Rc(e){return"html"===Wt(e)?e:e.assignedSlot||e.parentNode||(K8(e)?e.host:null)||Bn(e)}function X8(e){var n=dn(e);return/auto|scroll|overlay|hidden/.test(n.overflow+n.overflowY+n.overflowX)}function ag(e){return["html","body","#document"].indexOf(Wt(e))>=0?e.ownerDocument.body:ot(e)&&X8(e)?e:ag(Rc(e))}function ha(e,n){var t;void 0===n&&(n=[]);var i=ag(e),a=i===(null==(t=e.ownerDocument)?void 0:t.body),r=Y2(i),c=a?[r].concat(r.visualViewport||[],X8(i)?i:[]):i,o=n.concat(c);return a?o:o.concat(ha(Rc(c)))}function kP(e){return["table","td","th"].indexOf(Wt(e))>=0}function rg(e){return ot(e)&&"fixed"!==dn(e).position?e.offsetParent:null}function pa(e){for(var n=Y2(e),t=rg(e);t&&kP(t)&&"static"===dn(t).position;)t=rg(t);return t&&("html"===Wt(t)||"body"===Wt(t)&&"static"===dn(t).position)?n:t||function IP(e){var n=/firefox/i.test(Q8());if(/Trident/i.test(Q8())&&ot(e)&&"fixed"===dn(e).position)return null;var a=Rc(e);for(K8(a)&&(a=a.host);ot(a)&&["html","body"].indexOf(Wt(a))<0;){var r=dn(a);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||n&&"filter"===r.willChange||n&&r.filter&&"none"!==r.filter)return a;a=a.parentNode}return null}(e)||n}function cg(e,n){var t=n.getRootNode&&n.getRootNode();if(e.contains(n))return!0;if(t&&K8(t)){var i=n;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function el(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function og(e,n,t){return n===eg?el(function EP(e,n){var t=Y2(e),i=Bn(e),a=t.visualViewport,r=i.clientWidth,c=i.clientHeight,o=0,s=0;if(a){r=a.width,c=a.height;var l=ig();(l||!l&&"fixed"===n)&&(o=a.offsetLeft,s=a.offsetTop)}return{width:r,height:c,x:o+J8(e),y:s}}(e,t)):C3(n)?function OP(e,n){var t=U4(e,!1,"fixed"===n);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(n,t):el(function TP(e){var n,t=Bn(e),i=Z8(e),a=null==(n=e.ownerDocument)?void 0:n.body,r=y3(t.scrollWidth,t.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),c=y3(t.scrollHeight,t.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),o=-i.scrollLeft+J8(e),s=-i.scrollTop;return"rtl"===dn(a||t).direction&&(o+=y3(t.clientWidth,a?a.clientWidth:0)-r),{width:r,height:c,x:o,y:s}}(Bn(e)))}function j4(e){return e.split("-")[1]}function tl(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function sg(e){var s,n=e.reference,t=e.element,i=e.placement,a=i?$t(i):null,r=i?j4(i):null,c=n.x+n.width/2-t.width/2,o=n.y+n.height/2-t.height/2;switch(a){case W2:s={x:c,y:n.y-t.height};break;case wt:s={x:c,y:n.y+n.height};break;case Vt:s={x:n.x+n.width,y:o};break;case q2:s={x:n.x-t.width,y:o};break;default:s={x:n.x,y:n.y}}var l=a?tl(a):null;if(null!=l){var u="y"===l?"height":"width";switch(r){case F4:s[l]=s[l]-(n[u]/2-t[u]/2);break;case fa:s[l]=s[l]+(n[u]/2-t[u]/2)}}return s}function ug(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function fg(e,n){return n.reduce(function(t,i){return t[i]=e,t},{})}function nl(e,n){void 0===n&&(n={});var i=n.placement,a=void 0===i?e.placement:i,r=n.strategy,c=void 0===r?e.strategy:r,o=n.boundary,s=void 0===o?"clippingParents":o,l=n.rootBoundary,u=void 0===l?eg:l,d=n.elementContext,p=void 0===d?da:d,g=n.altBoundary,w=void 0!==g&&g,V=n.padding,N=void 0===V?0:V,A=ug("number"!=typeof N?N:fg(N,ua)),R=e.rects.popper,F=e.elements[w?p===da?"reference":da:p],B=function PP(e,n,t,i){var a="clippingParents"===n?function RP(e){var n=ha(Rc(e)),i=["absolute","fixed"].indexOf(dn(e).position)>=0&&ot(e)?pa(e):e;return C3(i)?n.filter(function(a){return C3(a)&&cg(a,i)&&"body"!==Wt(a)}):[]}(e):[].concat(n),r=[].concat(a,[t]),o=r.reduce(function(s,l){var u=og(e,l,i);return s.top=y3(u.top,s.top),s.right=Oc(u.right,s.right),s.bottom=Oc(u.bottom,s.bottom),s.left=y3(u.left,s.left),s},og(e,r[0],i));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}(C3(F)?F:F.contextElement||Bn(e.elements.popper),s,u,c),J=U4(e.elements.reference),pe=sg({reference:J,element:R,strategy:"absolute",placement:a}),ze=el(Object.assign({},R,pe)),Se=p===da?ze:J,i1={top:B.top-Se.top+A.top,bottom:Se.bottom-B.bottom+A.bottom,left:B.left-Se.left+A.left,right:Se.right-B.right+A.right},O1=e.modifiersData.offset;if(p===da&&O1){var z2=O1[a];Object.keys(i1).forEach(function(q1){var Nt=[Vt,wt].indexOf(q1)>=0?1:-1,xt=[W2,wt].indexOf(q1)>=0?"y":"x";i1[q1]+=z2[xt]*Nt})}return i1}const jP={name:"flip",enabled:!0,phase:"main",fn:function UP(e){var n=e.state,t=e.options,i=e.name;if(!n.modifiersData[i]._skip){for(var a=t.mainAxis,r=void 0===a||a,c=t.altAxis,o=void 0===c||c,s=t.fallbackPlacements,l=t.padding,u=t.boundary,d=t.rootBoundary,p=t.altBoundary,g=t.flipVariations,w=void 0===g||g,V=t.allowedAutoPlacements,N=n.options.placement,A=$t(N),R=s||(A!==N&&w?function BP(e){if($t(e)===Y8)return[];var n=Ic(e);return[Xm(e),n,Xm(n)]}(N):[Ic(N)]),F=[N].concat(R).reduce(function(ni,Kn){return ni.concat($t(Kn)===Y8?function FP(e,n){void 0===n&&(n={});var a=n.boundary,r=n.rootBoundary,c=n.padding,o=n.flipVariations,s=n.allowedAutoPlacements,l=void 0===s?ng:s,u=j4(n.placement),d=u?o?tg:tg.filter(function(w){return j4(w)===u}):ua,p=d.filter(function(w){return l.indexOf(w)>=0});0===p.length&&(p=d);var g=p.reduce(function(w,V){return w[V]=nl(e,{placement:V,boundary:a,rootBoundary:r,padding:c})[$t(V)],w},{});return Object.keys(g).sort(function(w,V){return g[w]-g[V]})}(n,{placement:Kn,boundary:u,rootBoundary:d,padding:l,flipVariations:w,allowedAutoPlacements:V}):Kn)},[]),B=n.rects.reference,J=n.rects.popper,pe=new Map,ze=!0,Se=F[0],i1=0;i1<F.length;i1++){var O1=F[i1],z2=$t(O1),q1=j4(O1)===F4,Nt=[W2,wt].indexOf(z2)>=0,xt=Nt?"width":"height",r2=nl(n,{placement:O1,boundary:u,rootBoundary:d,altBoundary:p,padding:l}),Lt=Nt?q1?Vt:q2:q1?wt:W2;B[xt]>J[xt]&&(Lt=Ic(Lt));var Zo=Ic(Lt),I3=[];if(r&&I3.push(r2[z2]<=0),o&&I3.push(r2[Lt]<=0,r2[Zo]<=0),I3.every(function(ni){return ni})){Se=O1,ze=!1;break}pe.set(O1,I3)}if(ze)for(var l7=function(Kn){var Ja=F.find(function(es){var O3=pe.get(es);if(O3)return O3.slice(0,Kn).every(function(u7){return u7})});if(Ja)return Se=Ja,"break"},Za=w?3:1;Za>0&&"break"!==l7(Za);Za--);n.placement!==Se&&(n.modifiersData[i]._skip=!0,n.placement=Se,n.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ma(e,n,t){return y3(e,Oc(n,t))}function il(e){var n=U4(e),t=e.offsetWidth,i=e.offsetHeight;return Math.abs(n.width-t)<=1&&(t=n.width),Math.abs(n.height-i)<=1&&(i=n.height),{x:e.offsetLeft,y:e.offsetTop,width:t,height:i}}const qP={name:"preventOverflow",enabled:!0,phase:"main",fn:function WP(e){var n=e.state,t=e.options,i=e.name,a=t.mainAxis,r=void 0===a||a,c=t.altAxis,o=void 0!==c&&c,p=t.tether,g=void 0===p||p,w=t.tetherOffset,V=void 0===w?0:w,N=nl(n,{boundary:t.boundary,rootBoundary:t.rootBoundary,padding:t.padding,altBoundary:t.altBoundary}),A=$t(n.placement),z=j4(n.placement),R=!z,F=tl(A),B=function GP(e){return"x"===e?"y":"x"}(F),J=n.modifiersData.popperOffsets,pe=n.rects.reference,ze=n.rects.popper,Se="function"==typeof V?V(Object.assign({},n.rects,{placement:n.placement})):V,i1="number"==typeof Se?{mainAxis:Se,altAxis:Se}:Object.assign({mainAxis:0,altAxis:0},Se),O1=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,z2={x:0,y:0};if(J){if(r){var q1,Nt="y"===F?W2:q2,xt="y"===F?wt:Vt,r2="y"===F?"height":"width",Lt=J[F],Zo=Lt+N[Nt],I3=Lt-N[xt],Jo=g?-ze[r2]/2:0,l7=z===F4?pe[r2]:ze[r2],Za=z===F4?-ze[r2]:-pe[r2],Xo=n.elements.arrow,ni=g&&Xo?il(Xo):{width:0,height:0},Kn=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Ja=Kn[Nt],es=Kn[xt],O3=ma(0,pe[r2],ni[r2]),u7=R?pe[r2]/2-Jo-O3-Ja-i1.mainAxis:l7-O3-Ja-i1.mainAxis,_de=R?-pe[r2]/2+Jo+O3+es+i1.mainAxis:Za+O3+es+i1.mainAxis,f7=n.elements.arrow&&pa(n.elements.arrow),QD=null!=(q1=null==O1?void 0:O1[F])?q1:0,Mde=Lt+_de-QD,ZD=ma(g?Oc(Zo,Lt+u7-QD-(f7?"y"===F?f7.clientTop||0:f7.clientLeft||0:0)):Zo,Lt,g?y3(I3,Mde):I3);J[F]=ZD,z2[F]=ZD-Lt}if(o){var JD,R3=J[B],ts="y"===B?"height":"width",XD=R3+N["x"===F?W2:q2],ez=R3-N["x"===F?wt:Vt],d7=-1!==[W2,q2].indexOf(A),tz=null!=(JD=null==O1?void 0:O1[B])?JD:0,nz=d7?XD:R3-pe[ts]-ze[ts]-tz+i1.altAxis,iz=d7?R3+pe[ts]+ze[ts]-tz-i1.altAxis:ez,az=g&&d7?function $P(e,n,t){var i=ma(e,n,t);return i>t?t:i}(nz,R3,iz):ma(g?nz:XD,R3,g?iz:ez);J[B]=az,z2[B]=az-R3}n.modifiersData[i]=z2}},requiresIfExists:["offset"]},ZP={name:"arrow",enabled:!0,phase:"main",fn:function KP(e){var n,t=e.state,i=e.name,a=e.options,r=t.elements.arrow,c=t.modifiersData.popperOffsets,o=$t(t.placement),s=tl(o),u=[q2,Vt].indexOf(o)>=0?"height":"width";if(r&&c){var d=function(n,t){return ug("number"!=typeof(n="function"==typeof n?n(Object.assign({},t.rects,{placement:t.placement})):n)?n:fg(n,ua))}(a.padding,t),p=il(r),g="y"===s?W2:q2,w="y"===s?wt:Vt,V=t.rects.reference[u]+t.rects.reference[s]-c[s]-t.rects.popper[u],N=c[s]-t.rects.reference[s],A=pa(r),z=A?"y"===s?A.clientHeight||0:A.clientWidth||0:0,J=z/2-p[u]/2+(V/2-N/2),pe=ma(d[g],J,z-p[u]-d[w]);t.modifiersData[i]=((n={})[s]=pe,n.centerOffset=pe-J,n)}},effect:function QP(e){var n=e.state,i=e.options.element,a=void 0===i?"[data-popper-arrow]":i;null!=a&&("string"==typeof a&&!(a=n.elements.popper.querySelector(a))||!cg(n.elements.popper,a)||(n.elements.arrow=a))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function tF(e,n,t){void 0===t&&(t=!1);var i=ot(n),a=ot(n)&&function eF(e){var n=e.getBoundingClientRect(),t=B4(n.width)/e.offsetWidth||1,i=B4(n.height)/e.offsetHeight||1;return 1!==t||1!==i}(n),r=Bn(n),c=U4(e,a,t),o={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(i||!i&&!t)&&(("body"!==Wt(n)||X8(r))&&(o=function XP(e){return e!==Y2(e)&&ot(e)?function JP(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(e):Z8(e)}(n)),ot(n)?((s=U4(n,!0)).x+=n.clientLeft,s.y+=n.clientTop):r&&(s.x=J8(r))),{x:c.left+o.scrollLeft-s.x,y:c.top+o.scrollTop-s.y,width:c.width,height:c.height}}function nF(e){var n=new Map,t=new Set,i=[];function a(r){t.add(r.name),[].concat(r.requires||[],r.requiresIfExists||[]).forEach(function(o){if(!t.has(o)){var s=n.get(o);s&&a(s)}}),i.push(r)}return e.forEach(function(r){n.set(r.name,r)}),e.forEach(function(r){t.has(r.name)||a(r)}),i}function aF(e){var n;return function(){return n||(n=new Promise(function(t){Promise.resolve().then(function(){n=void 0,t(e())})})),n}}var dg={placement:"bottom",modifiers:[],strategy:"absolute"};function hg(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return!n.some(function(i){return!(i&&"function"==typeof i.getBoundingClientRect)})}function cF(e){void 0===e&&(e={});var t=e.defaultModifiers,i=void 0===t?[]:t,a=e.defaultOptions,r=void 0===a?dg:a;return function(o,s,l){void 0===l&&(l=r);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},dg,r),modifiersData:{},elements:{reference:o,popper:s},attributes:{},styles:{}},d=[],p=!1,g={state:u,setOptions:function(A){var z="function"==typeof A?A(u.options):A;V(),u.options=Object.assign({},r,u.options,z),u.scrollParents={reference:C3(o)?ha(o):o.contextElement?ha(o.contextElement):[],popper:ha(s)};var R=function iF(e){var n=nF(e);return AP.reduce(function(t,i){return t.concat(n.filter(function(a){return a.phase===i}))},[])}(function rF(e){var n=e.reduce(function(t,i){var a=t[i.name];return t[i.name]=a?Object.assign({},a,i,{options:Object.assign({},a.options,i.options),data:Object.assign({},a.data,i.data)}):i,t},{});return Object.keys(n).map(function(t){return n[t]})}([].concat(i,u.options.modifiers)));return u.orderedModifiers=R.filter(function(F){return F.enabled}),function w(){u.orderedModifiers.forEach(function(N){var z=N.options,F=N.effect;if("function"==typeof F){var B=F({state:u,name:N.name,instance:g,options:void 0===z?{}:z});d.push(B||function(){})}})}(),g.update()},forceUpdate:function(){if(!p){var A=u.elements,z=A.reference,R=A.popper;if(hg(z,R)){u.rects={reference:tF(z,pa(R),"fixed"===u.options.strategy),popper:il(R)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(i1){return u.modifiersData[i1.name]=Object.assign({},i1.data)});for(var F=0;F<u.orderedModifiers.length;F++)if(!0!==u.reset){var B=u.orderedModifiers[F],J=B.fn,pe=B.options;"function"==typeof J&&(u=J({state:u,options:void 0===pe?{}:pe,name:B.name,instance:g})||u)}else u.reset=!1,F=-1}}},update:aF(function(){return new Promise(function(N){g.forceUpdate(),N(u)})}),destroy:function(){V(),p=!0}};if(!hg(o,s))return g;function V(){d.forEach(function(N){return N()}),d=[]}return g.setOptions(l).then(function(N){!p&&l.onFirstUpdate&&l.onFirstUpdate(N)}),g}}var Pc={passive:!0},fF={top:"auto",right:"auto",bottom:"auto",left:"auto"};function pg(e){var n,t=e.popper,i=e.popperRect,a=e.placement,r=e.variation,c=e.offsets,o=e.position,s=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=c.x,g=void 0===p?0:p,w=c.y,V=void 0===w?0:w,N="function"==typeof u?u({x:g,y:V}):{x:g,y:V};g=N.x,V=N.y;var A=c.hasOwnProperty("x"),z=c.hasOwnProperty("y"),R=q2,F=W2,B=window;if(l){var J=pa(t),pe="clientHeight",ze="clientWidth";J===Y2(t)&&"static"!==dn(J=Bn(t)).position&&"absolute"===o&&(pe="scrollHeight",ze="scrollWidth"),(a===W2||(a===q2||a===Vt)&&r===fa)&&(F=wt,V-=(d&&J===B&&B.visualViewport?B.visualViewport.height:J[pe])-i.height,V*=s?1:-1),a!==q2&&(a!==W2&&a!==wt||r!==fa)||(R=Vt,g-=(d&&J===B&&B.visualViewport?B.visualViewport.width:J[ze])-i.width,g*=s?1:-1)}var q1,O1=Object.assign({position:o},l&&fF),z2=!0===u?function dF(e,n){var i=e.y,a=n.devicePixelRatio||1;return{x:B4(e.x*a)/a||0,y:B4(i*a)/a||0}}({x:g,y:V},Y2(t)):{x:g,y:V};return g=z2.x,V=z2.y,Object.assign({},O1,s?((q1={})[F]=z?"0":"",q1[R]=A?"0":"",q1.transform=(B.devicePixelRatio||1)<=1?"translate("+g+"px, "+V+"px)":"translate3d("+g+"px, "+V+"px, 0)",q1):((n={})[F]=z?V+"px":"",n[R]=A?g+"px":"",n.transform="",n))}var _F=cF({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function oF(e){var n=e.state,t=e.instance,i=e.options,a=i.scroll,r=void 0===a||a,c=i.resize,o=void 0===c||c,s=Y2(n.elements.popper),l=[].concat(n.scrollParents.reference,n.scrollParents.popper);return r&&l.forEach(function(u){u.addEventListener("scroll",t.update,Pc)}),o&&s.addEventListener("resize",t.update,Pc),function(){r&&l.forEach(function(u){u.removeEventListener("scroll",t.update,Pc)}),o&&s.removeEventListener("resize",t.update,Pc)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function lF(e){var n=e.state;n.modifiersData[e.name]=sg({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function hF(e){var n=e.state,t=e.options,i=t.gpuAcceleration,a=void 0===i||i,r=t.adaptive,c=void 0===r||r,o=t.roundOffsets,s=void 0===o||o,l={placement:$t(n.placement),variation:j4(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:a,isFixed:"fixed"===n.options.strategy};null!=n.modifiersData.popperOffsets&&(n.styles.popper=Object.assign({},n.styles.popper,pg(Object.assign({},l,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:c,roundOffsets:s})))),null!=n.modifiersData.arrow&&(n.styles.arrow=Object.assign({},n.styles.arrow,pg(Object.assign({},l,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function mF(e){var n=e.state;Object.keys(n.elements).forEach(function(t){var i=n.styles[t]||{},a=n.attributes[t]||{},r=n.elements[t];!ot(r)||!Wt(r)||(Object.assign(r.style,i),Object.keys(a).forEach(function(c){var o=a[c];!1===o?r.removeAttribute(c):r.setAttribute(c,!0===o?"":o)}))})},effect:function gF(e){var n=e.state,t={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,t.popper),n.styles=t,n.elements.arrow&&Object.assign(n.elements.arrow.style,t.arrow),function(){Object.keys(n.elements).forEach(function(i){var a=n.elements[i],r=n.attributes[i]||{},o=Object.keys(n.styles.hasOwnProperty(i)?n.styles[i]:t[i]).reduce(function(s,l){return s[l]="",s},{});!ot(a)||!Wt(a)||(Object.assign(a.style,o),Object.keys(r).forEach(function(s){a.removeAttribute(s)}))})}},requires:["computeStyles"]}]});const MF={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function yF(e){var n=e.state,i=e.name,a=e.options.offset,r=void 0===a?[0,0]:a,c=ng.reduce(function(u,d){return u[d]=function CF(e,n,t){var i=$t(e),a=[q2,W2].indexOf(i)>=0?-1:1,r="function"==typeof t?t(Object.assign({},n,{placement:e})):t,c=r[0],o=r[1];return c=c||0,o=(o||0)*a,[q2,Vt].indexOf(i)>=0?{x:o,y:c}:{x:c,y:o}}(d,n.rects,r),u},{}),o=c[n.placement],l=o.y;null!=n.modifiersData.popperOffsets&&(n.modifiersData.popperOffsets.x+=o.x,n.modifiersData.popperOffsets.y+=l),n.modifiersData[i]=c}};function bF(e,n){}function HF(e,n){if(1&e&&(v(0,"button",3),M(1),P(2,bF,0,0,"ng-template",4),_()),2&e){const t=n.$implicit;b("ngbPanelToggle",t),y(1),it(" ",t.title,""),y(1),b("ngTemplateOutlet",null==t.titleTpl?null:t.titleTpl.templateRef)}}function wF(e,n){}function VF(e,n){}function DF(e,n){if(1&e){const t=z1();v(0,"div",8),k("ngbRef",function(a){return W(t),T().$implicit.panelDiv=a}),v(1,"div",9),P(2,VF,0,0,"ng-template",4),_()()}if(2&e){const t=T().$implicit;s0("id",t.id),j("aria-labelledby",t.id+"-header"),y(2),b("ngTemplateOutlet",(null==t.contentTpl?null:t.contentTpl.templateRef)||null)}}const zF=function(e,n){return{$implicit:e,opened:n}};function NF(e,n){if(1&e&&(v(0,"div")(1,"div",5),P(2,wF,0,0,"ng-template",6),_(),P(3,DF,3,3,"div",7),_()),2&e){const t=n.$implicit,i=T(),a=B2(1);cn("accordion-item "+(t.cardClass||"")),y(1),cn("accordion-header "+(t.type?"bg-"+t.type:i.type?"bg-"+i.type:"")),z4("id","",t.id,"-header"),y(1),b("ngTemplateOutlet",(null==t.headerTpl?null:t.headerTpl.templateRef)||a)("ngTemplateOutletContext",Yi(8,zF,t,t.isOpen)),y(1),b("ngIf",!i.destroyOnHide||t.isOpen||t.transitionRunning)}}function xF(e,n){if(1&e){const t=z1();v(0,"button",1),k("click",function(){return W(t),T().close()}),_()}}const Fc=["*"],qF=["dialog"];function VB(e,n){1&e&&M(0),2&e&&Bi(T(2).title)}function DB(e,n){}function zB(e,n){if(1&e&&(v(0,"h3",3),P(1,VB,1,1,"ng-template",null,4,j2),P(3,DB,0,0,"ng-template",5),_()),2&e){const t=B2(2),i=T();y(3),b("ngTemplateOutlet",i.isTitleTemplate()?i.title:t)("ngTemplateOutletContext",i.context)}}function rl(e){return"string"==typeof e}function M3(e){return null!=e}function G4(e){return(e||document.body).getBoundingClientRect()}const gg={animation:!0,transitionTimerDelayMs:5},UB=()=>{},{transitionTimerDelayMs:jB}=gg,ga=new Map,C2=(e,n,t,i)=>{let a=i.context||{};const r=ga.get(n);if(r)switch(i.runningTransition){case"continue":return ft;case"stop":e.run(()=>r.transition$.complete()),a=Object.assign(r.context,a),ga.delete(n)}const c=t(n,i.animation,a)||UB;if(!i.animation||"none"===window.getComputedStyle(n).transitionProperty)return e.run(()=>c()),ce(void 0).pipe(function FB(e){return n=>new Te(t=>n.subscribe({next:c=>e.run(()=>t.next(c)),error:c=>e.run(()=>t.error(c)),complete:()=>e.run(()=>t.complete())}))}(e));const o=new fe,s=new fe,l=o.pipe(function pP(...e){return n=>la(n,ce(...e))}(!0));ga.set(n,{transition$:o,complete:()=>{s.next(),s.complete()},context:a});const u=function BB(e){const{transitionDelay:n,transitionDuration:t}=window.getComputedStyle(e);return 1e3*(parseFloat(n)+parseFloat(t))}(n);return e.runOutsideAngular(()=>{const d=g2(n,"transitionend").pipe(G1(l),t2(({target:g})=>g===n));Ym(G8(u+jB).pipe(G1(l)),d,s).pipe(G1(l)).subscribe(()=>{ga.delete(n),e.run(()=>{c(),o.next(),o.complete()})})}),o.asObservable()},vg=(e,n,t)=>{let{direction:i,maxHeight:a}=t;const{classList:r}=e;function c(){r.add("collapse"),"show"===i?r.add("show"):r.remove("show")}if(n)return a||(a=function $B(e){if("undefined"==typeof navigator)return"0px";const{classList:n}=e,t=n.contains("show");t||n.add("show"),e.style.height="";const i=e.getBoundingClientRect().height+"px";return t||n.remove("show"),i}(e),t.maxHeight=a,e.style.height="show"!==i?a:"0px",r.remove("collapse"),r.remove("collapsing"),r.remove("show"),G4(e),r.add("collapsing")),e.style.height="show"===i?a:"0px",()=>{c(),r.remove("collapsing"),e.style.height=""};c()};let b3=(()=>{class e{constructor(){this.animation=gg.animation}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),WB=(()=>{class e{constructor(t){this._ngbConfig=t,this.closeOthers=!1}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(t){this._animation=t}}return e.\u0275fac=function(t){return new(t||e)(q(b3))},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),qB=0,Uc=(()=>{class e{constructor(t){this.templateRef=t}}return e.\u0275fac=function(t){return new(t||e)(H(l1))},e.\u0275dir=U({type:e,selectors:[["ng-template","ngbPanelHeader",""]]}),e})(),ol=(()=>{class e{constructor(t){this.templateRef=t}}return e.\u0275fac=function(t){return new(t||e)(H(l1))},e.\u0275dir=U({type:e,selectors:[["ng-template","ngbPanelTitle",""]]}),e})(),sl=(()=>{class e{constructor(t){this.templateRef=t}}return e.\u0275fac=function(t){return new(t||e)(H(l1))},e.\u0275dir=U({type:e,selectors:[["ng-template","ngbPanelContent",""]]}),e})(),jc=(()=>{class e{constructor(){this.disabled=!1,this.id="ngb-panel-"+qB++,this.isOpen=!1,this.initClassDone=!1,this.transitionRunning=!1,this.shown=new ie,this.hidden=new ie}ngAfterContentChecked(){this.titleTpl=this.titleTpls.first,this.headerTpl=this.headerTpls.first,this.contentTpl=this.contentTpls.first}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=U({type:e,selectors:[["ngb-panel"]],contentQueries:function(t,i,a){if(1&t&&(N1(a,ol,4),N1(a,Uc,4),N1(a,sl,4)),2&t){let r;h1(r=p1())&&(i.titleTpls=r),h1(r=p1())&&(i.headerTpls=r),h1(r=p1())&&(i.contentTpls=r)}},inputs:{disabled:"disabled",id:"id",title:"title",type:"type",cardClass:"cardClass"},outputs:{shown:"shown",hidden:"hidden"}}),e})(),YB=(()=>{class e{constructor(t){this._El=t,this.ngbRef=new ie}ngOnInit(){this.ngbRef.emit(this._El.nativeElement)}ngOnDestroy(){this.ngbRef.emit(null)}}return e.\u0275fac=function(t){return new(t||e)(H(Ee))},e.\u0275dir=U({type:e,selectors:[["","ngbRef",""]],outputs:{ngbRef:"ngbRef"}}),e})(),ll=(()=>{class e{constructor(t,i,a){this._ngZone=i,this._changeDetector=a,this.activeIds=[],this.destroyOnHide=!0,this.panelChange=new ie,this.shown=new ie,this.hidden=new ie,this.animation=t.animation,this.type=t.type,this.closeOtherPanels=t.closeOthers}isExpanded(t){return this.activeIds.indexOf(t)>-1}expand(t){this._changeOpenState(this._findPanelById(t),!0)}expandAll(){this.closeOtherPanels?0===this.activeIds.length&&this.panels.length&&this._changeOpenState(this.panels.first,!0):this.panels.forEach(t=>this._changeOpenState(t,!0))}collapse(t){this._changeOpenState(this._findPanelById(t),!1)}collapseAll(){this.panels.forEach(t=>{this._changeOpenState(t,!1)})}toggle(t){const i=this._findPanelById(t);i&&this._changeOpenState(i,!i.isOpen)}ngAfterContentChecked(){rl(this.activeIds)&&(this.activeIds=this.activeIds.split(/\s*,\s*/)),this.panels.forEach(t=>{t.isOpen=!t.disabled&&this.activeIds.indexOf(t.id)>-1}),this.activeIds.length>1&&this.closeOtherPanels&&(this._closeOthers(this.activeIds[0],!1),this._updateActiveIds()),this._ngZone.onStable.pipe(v2(1)).subscribe(()=>{this.panels.forEach(t=>{const i=t.panelDiv;i?t.initClassDone||(t.initClassDone=!0,C2(this._ngZone,i,vg,{animation:!1,runningTransition:"continue",context:{direction:t.isOpen?"show":"hide"}})):t.initClassDone=!1})})}_changeOpenState(t,i){if(null!=t&&!t.disabled&&t.isOpen!==i){let a=!1;this.panelChange.emit({panelId:t.id,nextState:i,preventDefault:()=>{a=!0}}),a||(t.isOpen=i,t.transitionRunning=!0,i&&this.closeOtherPanels&&this._closeOthers(t.id),this._updateActiveIds(),this._runTransitions(this.animation))}}_closeOthers(t,i=!0){this.panels.forEach(a=>{a.id!==t&&a.isOpen&&(a.isOpen=!1,a.transitionRunning=i)})}_findPanelById(t){return this.panels.find(i=>i.id===t)||null}_updateActiveIds(){this.activeIds=this.panels.filter(t=>t.isOpen&&!t.disabled).map(t=>t.id)}_runTransitions(t){this._changeDetector.detectChanges(),this.panels.forEach(i=>{i.transitionRunning&&C2(this._ngZone,i.panelDiv,vg,{animation:t,runningTransition:"stop",context:{direction:i.isOpen?"show":"hide"}}).subscribe(()=>{i.transitionRunning=!1;const{id:r}=i;i.isOpen?(i.shown.emit(),this.shown.emit(r)):(i.hidden.emit(),this.hidden.emit(r))})})}}return e.\u0275fac=function(t){return new(t||e)(H(WB),H(Fe),H(G2))},e.\u0275cmp=re({type:e,selectors:[["ngb-accordion"]],contentQueries:function(t,i,a){if(1&t&&N1(a,jc,4),2&t){let r;h1(r=p1())&&(i.panels=r)}},hostAttrs:["role","tablist",1,"accordion"],hostVars:1,hostBindings:function(t,i){2&t&&j("aria-multiselectable",!i.closeOtherPanels)},inputs:{animation:"animation",activeIds:"activeIds",closeOtherPanels:["closeOthers","closeOtherPanels"],destroyOnHide:"destroyOnHide",type:"type"},outputs:{panelChange:"panelChange",shown:"shown",hidden:"hidden"},exportAs:["ngbAccordion"],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(t,i){1&t&&(P(0,HF,3,3,"ng-template",0,1,j2),P(2,NF,4,11,"ng-template",2)),2&t&&(y(2),b("ngForOf",i.panels))},directives:function(){return[Uc,ul,O4,p3,j1,YB]},encapsulation:2}),e})(),ul=(()=>{class e{constructor(t,i){this.accordion=t,this.panel=i}set ngbPanelToggle(t){t&&(this.panel=t)}}return e.\u0275fac=function(t){return new(t||e)(H(ll),H(jc,9))},e.\u0275dir=U({type:e,selectors:[["button","ngbPanelToggle",""]],hostAttrs:["type","button"],hostVars:5,hostBindings:function(t,i){1&t&&k("click",function(){return i.accordion.toggle(i.panel.id)}),2&t&&(Mt("disabled",i.panel.disabled),j("aria-expanded",i.panel.isOpen)("aria-controls",i.panel.id),Qe("collapsed",!i.panel.isOpen))},inputs:{ngbPanelToggle:"ngbPanelToggle"}}),e})(),_g=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ae({type:e}),e.\u0275inj=Le({imports:[[$2]]}),e})();const KB=({classList:e})=>{e.remove("show")};let QB=(()=>{class e{constructor(t){this._ngbConfig=t,this.dismissible=!0,this.type="warning"}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(t){this._animation=t}}return e.\u0275fac=function(t){return new(t||e)(q(b3))},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Cg=(()=>{class e{constructor(t,i,a,r){this._renderer=i,this._element=a,this._zone=r,this.closed=new ie,this.dismissible=t.dismissible,this.type=t.type,this.animation=t.animation}close(){const t=C2(this._zone,this._element.nativeElement,KB,{animation:this.animation,runningTransition:"continue"});return t.subscribe(()=>this.closed.emit()),t}ngOnChanges(t){const i=t.type;i&&!i.firstChange&&(this._renderer.removeClass(this._element.nativeElement,`alert-${i.previousValue}`),this._renderer.addClass(this._element.nativeElement,`alert-${i.currentValue}`))}ngOnInit(){this._renderer.addClass(this._element.nativeElement,`alert-${this.type}`)}}return e.\u0275fac=function(t){return new(t||e)(H(QB),H(h2),H(Ee),H(Fe))},e.\u0275cmp=re({type:e,selectors:[["ngb-alert"]],hostAttrs:["role","alert",1,"alert","show"],hostVars:4,hostBindings:function(t,i){2&t&&Qe("fade",i.animation)("alert-dismissible",i.dismissible)},inputs:{animation:"animation",dismissible:"dismissible",type:"type"},outputs:{closed:"closed"},exportAs:["ngbAlert"],features:[D1],ngContentSelectors:Fc,decls:2,vars:1,consts:function(){let n;return n=$localize`:@@ngb.alert.close:Close`,[["type","button","class","btn-close","aria-label",n,3,"click",4,"ngIf"],["type","button","aria-label",n,1,"btn-close",3,"click"]]},template:function(t,i){1&t&&(V4(),D4(0),P(1,xF,1,0,"button",0)),2&t&&(y(1),b("ngIf",i.dismissible))},directives:[j1],styles:["ngb-alert{display:block}\n"],encapsulation:2,changeDetection:0}),e})(),yg=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ae({type:e}),e.\u0275inj=Le({imports:[[$2]]}),e})(),bg=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ae({type:e}),e.\u0275inj=Le({}),e})(),Vg=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ae({type:e}),e.\u0275inj=Le({imports:[[$2]]}),e})(),Dg=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ae({type:e}),e.\u0275inj=Le({}),e})();var $1=(()=>{return(e=$1||($1={}))[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",$1;var e})();const $c=(e,n)=>!!n&&n.some(t=>t.contains(e)),zg=(e,n)=>!n||null!=function PB(e,n){return n&&void 0!==e.closest?e.closest(n):null}(e,n),uU="undefined"!=typeof navigator&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));function dl(e,n,t,i,a,r,c,o){t&&e.runOutsideAngular((e=>uU?()=>setTimeout(()=>e(),100):e)(()=>{const l=g2(n,"keydown").pipe(G1(a),t2(p=>p.which===$1.Escape),_2(p=>p.preventDefault())),u=g2(n,"mousedown").pipe(me(p=>{const g=p.target;return 2!==p.button&&!$c(g,c)&&("inside"===t?$c(g,r)&&zg(g,o):"outside"===t?!$c(g,r):zg(g,o)||!$c(g,r))}),G1(a)),d=g2(n,"mouseup").pipe(q8(u),t2(([p,g])=>g),Jm(0),G1(a));Ym([l.pipe(me(p=>0)),d.pipe(me(p=>1))]).subscribe(p=>e.run(()=>i(p)))}))}const Ng=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function xg(e){const n=Array.from(e.querySelectorAll(Ng)).filter(t=>-1!==t.tabIndex);return[n[0],n[n.length-1]]}const hU=/\s+/,pU=/ +/gi,mU=/^start/,gU=/^end/,vU=/-(top|left)$/,_U=/-(bottom|right)$/,yU=/^left/,MU=/^right/,bU=/^start/,HU=/^end/;function Lg({placement:e,baseClass:n}){let t=Array.isArray(e)?e:e.split(hU),a=t.findIndex(s=>"auto"===s);a>=0&&["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end","start-top","start-bottom","end-top","end-bottom"].forEach(function(s){null==t.find(l=>-1!==l.search("^"+s))&&t.splice(a++,1,s)});const r=t.map(s=>function CU(e){return e.replace(mU,"left").replace(gU,"right").replace(vU,"-start").replace(_U,"-end")}(s));return{placement:r.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!n,phase:"write",fn({state:s}){const l=new RegExp(n+"(-[a-z]+)*","gi"),u=s.elements.popper,d=s.placement;let p=u.className;p=p.replace(l,""),p+=` ${function wU(e,n){let[t,i]=n.split("-");const a=t.replace(yU,"start").replace(MU,"end");let r=[a];if(i){let c=i;("left"===t||"right"===t)&&(c=c.replace(bU,"top").replace(HU,"bottom")),r.push(`${a}-${c}`)}return e&&(r=r.map(c=>`${e}-${c}`)),r.join(" ")}(n,d)}`,p=p.trim().replace(pU," "),u.className=p}},jP,qP,ZP,{enabled:!0,name:"flip",options:{fallbackPlacements:r}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function Sg(e){return e}function hl(){let e=null;return{createPopper(n){if(!e){let i=(n.updatePopperOptions||Sg)(Lg(n));e=_F(n.hostElement,n.targetElement,i)}},update(){e&&e.update()},setOptions(n){if(e){let i=(n.updatePopperOptions||Sg)(Lg(n));e.setOptions(i)}},destroy(){e&&(e.destroy(),e=null)}}}function Ag(e){return n=>(n.modifiers.push(MF,{name:"offset",options:{offset:()=>e}}),n)}new Date(1882,10,12),new Date(2174,10,25);let Rg=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ae({type:e}),e.\u0275inj=Le({imports:[[$2,jm]]}),e})(),Ug=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ae({type:e}),e.\u0275inj=Le({}),e})();class D3{constructor(n,t,i){this.nodes=n,this.viewRef=t,this.componentRef=i}}class jg{constructor(n,t,i,a,r,c){this._type=n,this._injector=t,this._viewContainerRef=i,this._renderer=a,this._ngZone=r,this._applicationRef=c,this._windowRef=null,this._contentRef=null}open(n,t,i=!1){this._windowRef||(this._contentRef=this._getContentRef(n,t),this._windowRef=this._viewContainerRef.createComponent(this._type,{index:this._viewContainerRef.length,injector:this._injector,projectableNodes:this._contentRef.nodes}));const{nativeElement:a}=this._windowRef.location,r=this._ngZone.onStable.pipe(v2(1),V1(()=>C2(this._ngZone,a,({classList:c})=>c.add("show"),{animation:i,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:r}}close(n=!1){return this._windowRef?C2(this._ngZone,this._windowRef.location.nativeElement,({classList:t})=>t.remove("show"),{animation:n,runningTransition:"stop"}).pipe(_2(()=>{var t;this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),(null===(t=this._contentRef)||void 0===t?void 0:t.viewRef)&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):ce(void 0)}_getContentRef(n,t){if(n){if(n instanceof l1){const i=n.createEmbeddedView(t);return this._applicationRef.attachView(i),new D3([i.rootNodes],i)}return new D3([[this._renderer.createText(`${n}`)]])}return new D3([])}}let kU=(()=>{class e{constructor(t,i){this._el=t,this._zone=i}ngOnInit(){this._zone.onStable.asObservable().pipe(v2(1)).subscribe(()=>{C2(this._zone,this._el.nativeElement,(t,i)=>{i&&G4(t),t.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return C2(this._zone,this._el.nativeElement,({classList:t})=>t.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return e.\u0275fac=function(t){return new(t||e)(H(Ee),H(Fe))},e.\u0275cmp=re({type:e,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(t,i){2&t&&(cn("modal-backdrop"+(i.backdropClass?" "+i.backdropClass:"")),Qe("show",!i.animation)("fade",i.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(t,i){},encapsulation:2}),e})();class Gg{close(n){}dismiss(n){}}class IU{constructor(n,t,i,a){this._windowCmptRef=n,this._contentRef=t,this._backdropCmptRef=i,this._beforeDismiss=a,this._closed=new fe,this._dismissed=new fe,this._hidden=new fe,n.instance.dismissEvent.subscribe(r=>{this.dismiss(r)}),this.result=new Promise((r,c)=>{this._resolve=r,this._reject=c}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(G1(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(G1(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}close(n){this._windowCmptRef&&(this._closed.next(n),this._resolve(n),this._removeModalElements())}_dismiss(n){this._dismissed.next(n),this._reject(n),this._removeModalElements()}dismiss(n){if(this._windowCmptRef)if(this._beforeDismiss){const t=this._beforeDismiss();!function mg(e){return e&&e.then}(t)?!1!==t&&this._dismiss(n):t.then(i=>{!1!==i&&this._dismiss(n)},()=>{})}else this._dismiss(n)}_removeModalElements(){const n=this._windowCmptRef.instance.hide(),t=this._backdropCmptRef?this._backdropCmptRef.instance.hide():ce(void 0);n.subscribe(()=>{const{nativeElement:i}=this._windowCmptRef.location;i.parentNode.removeChild(i),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),t.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:i}=this._backdropCmptRef.location;i.parentNode.removeChild(i),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),Tc(n,t).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var z3=(()=>{return(e=z3||(z3={}))[e.BACKDROP_CLICK=0]="BACKDROP_CLICK",e[e.ESC=1]="ESC",z3;var e})();let OU=(()=>{class e{constructor(t,i,a){this._document=t,this._elRef=i,this._zone=a,this._closed$=new fe,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new ie,this.shown=new fe,this.hidden=new fe}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":rl(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(t){this.dismissEvent.emit(t)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(v2(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:t}=this._elRef,i={animation:this.animation,runningTransition:"stop"},c=Tc(C2(this._zone,t,()=>t.classList.remove("show"),i),C2(this._zone,this._dialogEl.nativeElement,()=>{},i));return c.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),c}_show(){const t={animation:this.animation,runningTransition:"continue"};Tc(C2(this._zone,this._elRef.nativeElement,(r,c)=>{c&&G4(r),r.classList.add("show")},t),C2(this._zone,this._dialogEl.nativeElement,()=>{},t)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:t}=this._elRef;this._zone.runOutsideAngular(()=>{g2(t,"keydown").pipe(G1(this._closed$),t2(a=>a.which===$1.Escape)).subscribe(a=>{this.keyboard?requestAnimationFrame(()=>{a.defaultPrevented||this._zone.run(()=>this.dismiss(z3.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let i=!1;g2(this._dialogEl.nativeElement,"mousedown").pipe(G1(this._closed$),_2(()=>i=!1),fn(()=>g2(t,"mouseup").pipe(G1(this._closed$),v2(1))),t2(({target:a})=>t===a)).subscribe(()=>{i=!0}),g2(t,"click").pipe(G1(this._closed$)).subscribe(({target:a})=>{t===a&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!i&&this._zone.run(()=>this.dismiss(z3.BACKDROP_CLICK))),i=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:t}=this._elRef;if(!t.contains(document.activeElement)){const i=t.querySelector("[ngbAutofocus]"),a=xg(t)[0];(i||a||t).focus()}}_restoreFocus(){const t=this._document.body,i=this._elWithFocus;let a;a=i&&i.focus&&t.contains(i)?i:t,this._zone.runOutsideAngular(()=>{setTimeout(()=>a.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&C2(this._zone,this._elRef.nativeElement,({classList:t})=>(t.add("modal-static"),()=>t.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return e.\u0275fac=function(t){return new(t||e)(H(x1),H(Ee),H(Fe))},e.\u0275cmp=re({type:e,selectors:[["ngb-modal-window"]],viewQuery:function(t,i){if(1&t&&function S0(e,n,t){const i=De();i.firstCreatePass&&(vh(i,new ph(e,n,t),-1),2==(2&n)&&(i.staticViewQueries=!0)),gh(i,I(),n)}(qF,7),2&t){let a;h1(a=p1())&&(i._dialogEl=a.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(t,i){2&t&&(j("aria-modal",!0)("aria-labelledby",i.ariaLabelledBy)("aria-describedby",i.ariaDescribedBy),cn("modal d-block"+(i.windowClass?" "+i.windowClass:"")),Qe("fade",i.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"},ngContentSelectors:Fc,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(t,i){1&t&&(V4(),v(0,"div",0,1)(2,"div",2),D4(3),_()()),2&t&&cn("modal-dialog"+(i.size?" modal-"+i.size:"")+(i.centered?" modal-dialog-centered":"")+i.fullscreenClass+(i.scrollable?" modal-dialog-scrollable":"")+(i.modalDialogClass?" "+i.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}\n"],encapsulation:2}),e})(),RU=(()=>{class e{constructor(t){this._document=t}hide(){const t=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),i=this._document.body,a=i.style,{overflow:r,paddingRight:c}=a;if(t>0){const o=parseFloat(window.getComputedStyle(i).paddingRight);a.paddingRight=`${o+t}px`}return a.overflow="hidden",()=>{t>0&&(a.paddingRight=c),a.overflow=r}}}return e.\u0275fac=function(t){return new(t||e)(q(x1))},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),PU=(()=>{class e{constructor(t,i,a,r,c,o){this._applicationRef=t,this._injector=i,this._document=a,this._scrollBar=r,this._rendererFactory=c,this._ngZone=o,this._activeWindowCmptHasChanged=new fe,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._backdropAttributes=["animation","backdropClass"],this._modalRefs=[],this._windowAttributes=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],this._windowCmpts=[],this._activeInstances=new ie,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const s=this._windowCmpts[this._windowCmpts.length-1];((e,n,t,i=!1)=>{this._ngZone.runOutsideAngular(()=>{const a=g2(n,"focusin").pipe(G1(t),me(r=>r.target));g2(n,"keydown").pipe(G1(t),t2(r=>r.which===$1.Tab),q8(a)).subscribe(([r,c])=>{const[o,s]=xg(n);(c===o||c===n)&&r.shiftKey&&(s.focus(),r.preventDefault()),c===s&&!r.shiftKey&&(o.focus(),r.preventDefault())}),i&&g2(n,"click").pipe(G1(t),q8(a),me(r=>r[1])).subscribe(r=>r.focus())})})(0,s.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(s.location.nativeElement)}})}_restoreScrollBar(){const t=this._scrollBarRestoreFn;t&&(this._scrollBarRestoreFn=null,t())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(t,i,a,r){const c=r.container instanceof HTMLElement?r.container:M3(r.container)?this._document.querySelector(r.container):this._document.body,o=this._rendererFactory.createRenderer(null,null);if(!c)throw new Error(`The specified modal container "${r.container||"body"}" was not found in the DOM.`);this._hideScrollBar();const s=new Gg,l=this._getContentRef(t,r.injector||i,a,s,r);let u=!1!==r.backdrop?this._attachBackdrop(t,c):void 0,d=this._attachWindowComponent(t,c,l),p=new IU(d,l,u,r.beforeDismiss);return this._registerModalRef(p),this._registerWindowCmpt(d),p.hidden.pipe(v2(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(o.removeClass(this._document.body,"modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),s.close=g=>{p.close(g)},s.dismiss=g=>{p.dismiss(g)},this._applyWindowOptions(d.instance,r),1===this._modalRefs.length&&o.addClass(this._document.body,"modal-open"),u&&u.instance&&(this._applyBackdropOptions(u.instance,r),u.changeDetectorRef.detectChanges()),d.changeDetectorRef.detectChanges(),p}get activeInstances(){return this._activeInstances}dismissAll(t){this._modalRefs.forEach(i=>i.dismiss(t))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(t,i){let r=t.resolveComponentFactory(kU).create(this._injector);return this._applicationRef.attachView(r.hostView),i.appendChild(r.location.nativeElement),r}_attachWindowComponent(t,i,a){let c=t.resolveComponentFactory(OU).create(this._injector,a.nodes);return this._applicationRef.attachView(c.hostView),i.appendChild(c.location.nativeElement),c}_applyWindowOptions(t,i){this._windowAttributes.forEach(a=>{M3(i[a])&&(t[a]=i[a])})}_applyBackdropOptions(t,i){this._backdropAttributes.forEach(a=>{M3(i[a])&&(t[a]=i[a])})}_getContentRef(t,i,a,r,c){return a?a instanceof l1?this._createFromTemplateRef(a,r):rl(a)?this._createFromString(a):this._createFromComponent(t,i,a,r,c):new D3([])}_createFromTemplateRef(t,i){const r=t.createEmbeddedView({$implicit:i,close(c){i.close(c)},dismiss(c){i.dismiss(c)}});return this._applicationRef.attachView(r),new D3([r.rootNodes],r)}_createFromString(t){const i=this._document.createTextNode(`${t}`);return new D3([[i]])}_createFromComponent(t,i,a,r,c){const o=t.resolveComponentFactory(a),s=T1.create({providers:[{provide:Gg,useValue:r}],parent:i}),l=o.create(s),u=l.location.nativeElement;return c.scrollable&&u.classList.add("component-host-scrollable"),this._applicationRef.attachView(l.hostView),new D3([[u]],l.hostView,l)}_setAriaHidden(t){const i=t.parentElement;i&&t!==this._document.body&&(Array.from(i.children).forEach(a=>{a!==t&&"SCRIPT"!==a.nodeName&&(this._ariaHiddenValues.set(a,a.getAttribute("aria-hidden")),a.setAttribute("aria-hidden","true"))}),this._setAriaHidden(i))}_revertAriaHidden(){this._ariaHiddenValues.forEach((t,i)=>{t?i.setAttribute("aria-hidden",t):i.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(t){const i=()=>{const a=this._modalRefs.indexOf(t);a>-1&&(this._modalRefs.splice(a,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(t),this._activeInstances.emit(this._modalRefs),t.result.then(i,i)}_registerWindowCmpt(t){this._windowCmpts.push(t),this._activeWindowCmptHasChanged.next(),t.onDestroy(()=>{const i=this._windowCmpts.indexOf(t);i>-1&&(this._windowCmpts.splice(i,1),this._activeWindowCmptHasChanged.next())})}}return e.\u0275fac=function(t){return new(t||e)(q(I4),q(T1),q(x1),q(RU),q(_0),q(Fe))},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),FU=(()=>{class e{constructor(t){this._ngbConfig=t,this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(t){this._animation=t}}return e.\u0275fac=function(t){return new(t||e)(q(b3))},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),$g=(()=>{class e{constructor(t,i,a,r){this._moduleCFR=t,this._injector=i,this._modalStack=a,this._config=r}open(t,i={}){const a=Object.assign(Object.assign(Object.assign({},this._config),{animation:this._config.animation}),i);return this._modalStack.open(this._moduleCFR,this._injector,t,a)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(t){this._modalStack.dismissAll(t)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return e.\u0275fac=function(t){return new(t||e)(q(A4),q(T1),q(PU),q(FU))},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Wg=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ae({type:e}),e.\u0275inj=Le({providers:[$g]}),e})(),Qg=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ae({type:e}),e.\u0275inj=Le({imports:[[$2]]}),e})(),av=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ae({type:e}),e.\u0275inj=Le({imports:[[$2]]}),e})();class WU{constructor(n,t){this.open=n,this.close=t,t||(this.close=n)}isManual(){return"manual"===this.open||"manual"===this.close}}const qU={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},rv=e=>e>0?Jm(e):n=>n;function cv(e,n,t,i,a,r,c=0,o=0){const s=function YU(e,n=qU){const t=(e||"").trim();if(0===t.length)return[];const i=t.split(/\s+/).map(r=>r.split(":")).map(r=>{let c=n[r[0]]||r;return new WU(c[0],c[1])}),a=i.filter(r=>r.isManual());if(a.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===a.length&&i.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return i}(t);if(1===s.length&&s[0].isManual())return()=>{};const l=function KU(e,n,t,i){return new Te(a=>{const r=[],c=()=>a.next(!0),o=()=>a.next(!1),s=()=>a.next(!i());return t.forEach(l=>{l.open===l.close?r.push(e.listen(n,l.open,s)):r.push(e.listen(n,l.open,c),e.listen(n,l.close,o))}),()=>{r.forEach(l=>l())}})}(e,n,s,i).pipe(function QU(e,n,t){return i=>{let a=null;const r=i.pipe(me(s=>({open:s})),t2(s=>{const l=t();return l===s.open||a&&a.open!==l?(a&&a.open!==s.open&&(a=null),!1):(a=s,!0)}),x7());return N7(r.pipe(t2(s=>s.open),rv(e)),r.pipe(t2(s=>!s.open),rv(n))).pipe(t2(s=>s===a&&(a=null,s.open!==t())),me(s=>s.open))}}(c,o,i)).subscribe(u=>u?a():r());return()=>l.unsubscribe()}let ZU=(()=>{class e{constructor(t){this._ngbConfig=t,this.autoClose=!0,this.placement="auto",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(t){this._animation=t}}return e.\u0275fac=function(t){return new(t||e)(q(b3))},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),JU=0,XU=(()=>{class e{isTitleTemplate(){return this.title instanceof l1}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=re({type:e,selectors:[["ngb-popover-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(t,i){2&t&&(Mt("id",i.id),cn("popover"+(i.popoverClass?" "+i.popoverClass:"")),Qe("fade",i.animation))},inputs:{animation:"animation",title:"title",id:"id",popoverClass:"popoverClass",context:"context"},ngContentSelectors:Fc,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(t,i){1&t&&(V4(),O(0,"div",0),P(1,zB,4,2,"h3",1),v(2,"div",2),D4(3),_()),2&t&&(y(1),b("ngIf",i.title))},directives:[j1,O4],encapsulation:2,changeDetection:0}),e})(),ej=(()=>{class e{constructor(t,i,a,r,c,o,s,l,u){this._elementRef=t,this._renderer=i,this._ngZone=o,this._document=s,this._changeDetector=l,this.shown=new ie,this.hidden=new ie,this._ngbPopoverWindowId="ngb-popover-"+JU++,this._windowRef=null,this._positioning=hl(),this.animation=c.animation,this.autoClose=c.autoClose,this.placement=c.placement,this.triggers=c.triggers,this.container=c.container,this.disablePopover=c.disablePopover,this.popoverClass=c.popoverClass,this.openDelay=c.openDelay,this.closeDelay=c.closeDelay,this._popupService=new jg(XU,a,r,i,this._ngZone,u)}_isDisabled(){return!(!this.disablePopover&&(this.ngbPopover||this.popoverTitle))}open(t){if(!this._windowRef&&!this._isDisabled()){const{windowRef:i,transition$:a}=this._popupService.open(this.ngbPopover,t,this.animation);this._windowRef=i,this._windowRef.instance.animation=this.animation,this._windowRef.instance.title=this.popoverTitle,this._windowRef.instance.context=t,this._windowRef.instance.popoverClass=this.popoverClass,this._windowRef.instance.id=this._ngbPopoverWindowId,this._renderer.setAttribute(this._elementRef.nativeElement,"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._elementRef.nativeElement,targetElement:this._windowRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,baseClass:"bs-popover",updatePopperOptions:Ag([0,8])}),Promise.resolve().then(()=>{this._positioning.update(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update())})}),dl(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),a.subscribe(()=>this.shown.emit())}}close(t=this.animation){this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(t).subscribe(()=>{var i;this._windowRef=null,this._positioning.destroy(),null===(i=this._zoneSubscription)||void 0===i||i.unsubscribe(),this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=cv(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:t,popoverTitle:i,disablePopover:a,popoverClass:r}){r&&this.isOpen()&&(this._windowRef.instance.popoverClass=r.currentValue),(t||i||a)&&this._isDisabled()&&this.close()}ngOnDestroy(){var t;this.close(!1),null===(t=this._unregisterListenersFn)||void 0===t||t.call(this)}}return e.\u0275fac=function(t){return new(t||e)(H(Ee),H(h2),H(T1),H(U2),H(ZU),H(Fe),H(x1),H(G2),H(I4))},e.\u0275dir=U({type:e,selectors:[["","ngbPopover",""]],inputs:{animation:"animation",autoClose:"autoClose",ngbPopover:"ngbPopover",popoverTitle:"popoverTitle",placement:"placement",triggers:"triggers",container:"container",disablePopover:"disablePopover",popoverClass:"popoverClass",openDelay:"openDelay",closeDelay:"closeDelay"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbPopover"],features:[D1]}),e})(),ov=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ae({type:e}),e.\u0275inj=Le({imports:[[$2]]}),e})(),sv=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ae({type:e}),e.\u0275inj=Le({imports:[[$2]]}),e})(),lv=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ae({type:e}),e.\u0275inj=Le({imports:[[$2]]}),e})(),uv=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ae({type:e}),e.\u0275inj=Le({imports:[[$2]]}),e})(),fv=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ae({type:e}),e.\u0275inj=Le({imports:[[$2]]}),e})(),ij=(()=>{class e{constructor(t){this._ngbConfig=t,this.autoClose=!0,this.placement="auto",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(t){this._animation=t}}return e.\u0275fac=function(t){return new(t||e)(q(b3))},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),aj=0,rj=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=re({type:e,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(t,i){2&t&&(Mt("id",i.id),cn("tooltip"+(i.tooltipClass?" "+i.tooltipClass:"")),Qe("fade",i.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},ngContentSelectors:Fc,decls:3,vars:0,consts:[["data-popper-arrow","",1,"tooltip-arrow"],[1,"tooltip-inner"]],template:function(t,i){1&t&&(V4(),O(0,"div",0),v(1,"div",1),D4(2),_())},encapsulation:2,changeDetection:0}),e})(),cj=(()=>{class e{constructor(t,i,a,r,c,o,s,l,u){this._elementRef=t,this._renderer=i,this._ngZone=o,this._document=s,this._changeDetector=l,this.shown=new ie,this.hidden=new ie,this._ngbTooltipWindowId="ngb-tooltip-"+aj++,this._windowRef=null,this._positioning=hl(),this.animation=c.animation,this.autoClose=c.autoClose,this.placement=c.placement,this.triggers=c.triggers,this.container=c.container,this.disableTooltip=c.disableTooltip,this.tooltipClass=c.tooltipClass,this.openDelay=c.openDelay,this.closeDelay=c.closeDelay,this._popupService=new jg(rj,a,r,i,this._ngZone,u)}set ngbTooltip(t){this._ngbTooltip=t,!t&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(t){if(!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){const{windowRef:i,transition$:a}=this._popupService.open(this._ngbTooltip,t,this.animation);this._windowRef=i,this._windowRef.instance.animation=this.animation,this._windowRef.instance.tooltipClass=this.tooltipClass,this._windowRef.instance.id=this._ngbTooltipWindowId,this._renderer.setAttribute(this._elementRef.nativeElement,"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._elementRef.nativeElement,targetElement:this._windowRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,baseClass:"bs-tooltip"}),Promise.resolve().then(()=>{this._positioning.update(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update())})}),dl(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),a.subscribe(()=>this.shown.emit())}}close(t=this.animation){null!=this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(t).subscribe(()=>{var i;this._windowRef=null,this._positioning.destroy(),null===(i=this._zoneSubscription)||void 0===i||i.unsubscribe(),this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=cv(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:t}){t&&this.isOpen()&&(this._windowRef.instance.tooltipClass=t.currentValue)}ngOnDestroy(){var t;this.close(!1),null===(t=this._unregisterListenersFn)||void 0===t||t.call(this)}}return e.\u0275fac=function(t){return new(t||e)(H(Ee),H(h2),H(T1),H(U2),H(ij),H(Fe),H(x1),H(G2),H(I4))},e.\u0275dir=U({type:e,selectors:[["","ngbTooltip",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",triggers:"triggers",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],features:[D1]}),e})(),dv=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ae({type:e}),e.\u0275inj=Le({}),e})();new ve("live announcer delay",{providedIn:"root",factory:function oj(){return 100}});let hv=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ae({type:e}),e.\u0275inj=Le({imports:[[$2]]}),e})(),pv=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ae({type:e}),e.\u0275inj=Le({}),e})();const sj=[_g,yg,bg,Vg,Dg,Rg,Ug,Wg,Qg,pv,av,ov,sv,lv,uv,fv,dv,hv];let lj=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ae({type:e}),e.\u0275inj=Le({imports:[sj,_g,yg,bg,Vg,Dg,Rg,Ug,Wg,Qg,pv,av,ov,sv,lv,uv,fv,dv,hv]}),e})();function mv(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),t.push.apply(t,i)}return t}function K(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?mv(Object(t),!0).forEach(function(i){W1(e,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):mv(Object(t)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))})}return e}function Zc(e){return(Zc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(e)}function gv(e,n){for(var t=0;t<n.length;t++){var i=n[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function W1(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function yl(e,n){return function pj(e){if(Array.isArray(e))return e}(e)||function gj(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var c,o,i=[],a=!0,r=!1;try{for(t=t.call(e);!(a=(c=t.next()).done)&&(i.push(c.value),!n||i.length!==n);a=!0);}catch(s){r=!0,o=s}finally{try{!a&&null!=t.return&&t.return()}finally{if(r)throw o}}return i}}(e,n)||vv(e,n)||function _j(){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 Ma(e){return function hj(e){if(Array.isArray(e))return Ml(e)}(e)||function mj(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||vv(e)||function vj(){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 vv(e,n){if(e){if("string"==typeof e)return Ml(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Ml(e,n)}}function Ml(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t<n;t++)i[t]=e[t];return i}var _v=function(){},bl={},Cv={},yv=null,Mv={mark:_v,measure:_v};try{"undefined"!=typeof window&&(bl=window),"undefined"!=typeof document&&(Cv=document),"undefined"!=typeof MutationObserver&&(yv=MutationObserver),"undefined"!=typeof performance&&(Mv=performance)}catch(e){}var eo,to,no,io,ao,bv=(bl.navigator||{}).userAgent,Hv=void 0===bv?"":bv,jn=bl,t1=Cv,wv=yv,Xc=Mv,pn=!!t1.documentElement&&!!t1.head&&"function"==typeof t1.addEventListener&&"function"==typeof t1.createElement,Vv=~Hv.indexOf("MSIE")||~Hv.indexOf("Trident/"),mn="___FONT_AWESOME___",zv="svg-inline--fa",N3="data-fa-i2svg",wl="data-fa-pseudo-element",Vl="data-prefix",Dl="data-icon",Nv="fontawesome-i2svg",bj=["HTML","HEAD","STYLE","SCRIPT"],xv=function(){try{return!0}catch(e){return!1}}(),n1="classic",H1="sharp",zl=[n1,H1];function ba(e){return new Proxy(e,{get:function(t,i){return i in t?t[i]:t[n1]}})}var Ha=ba((W1(eo={},n1,{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"}),W1(eo,H1,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light"}),eo)),wa=ba((W1(to={},n1,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),W1(to,H1,{solid:"fass",regular:"fasr",light:"fasl"}),to)),Va=ba((W1(no={},n1,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),W1(no,H1,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light"}),no)),Hj=ba((W1(io={},n1,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),W1(io,H1,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl"}),io)),wj=/fa(s|r|l|t|d|b|k|ss|sr|sl)?[\-\ ]/,Lv="fa-layers-text",Vj=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,Dj=ba((W1(ao={},n1,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),W1(ao,H1,{900:"fass",400:"fasr",300:"fasl"}),ao)),Sv=[1,2,3,4,5,6,7,8,9,10],zj=Sv.concat([11,12,13,14,15,16,17,18,19,20]),Nj=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Da=new Set;Object.keys(wa[n1]).map(Da.add.bind(Da)),Object.keys(wa[H1]).map(Da.add.bind(Da));var xj=[].concat(zl,Ma(Da),["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","duotone-group","swap-opacity","primary","secondary"]).concat(Sv.map(function(e){return"".concat(e,"x")})).concat(zj.map(function(e){return"w-".concat(e)})),za=jn.FontAwesomeConfig||{};t1&&"function"==typeof t1.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 n=yl(e,2),i=n[1],a=function Sj(e){return""===e||"false"!==e&&("true"===e||e)}(function Lj(e){var n=t1.querySelector("script["+e+"]");if(n)return n.getAttribute(e)}(n[0]));null!=a&&(za[i]=a)});var Av={styleDefault:"solid",familyDefault:"classic",cssPrefix:"fa",replacementClass:zv,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};za.familyPrefix&&(za.cssPrefix=za.familyPrefix);var W4=K(K({},Av),za);W4.autoReplaceSvg||(W4.observeMutations=!1);var Q={};Object.keys(Av).forEach(function(e){Object.defineProperty(Q,e,{enumerable:!0,set:function(t){W4[e]=t,Na.forEach(function(i){return i(Q)})},get:function(){return W4[e]}})}),Object.defineProperty(Q,"familyPrefix",{enumerable:!0,set:function(n){W4.cssPrefix=n,Na.forEach(function(t){return t(Q)})},get:function(){return W4.cssPrefix}}),jn.FontAwesomeConfig=Q;var Na=[],Yt={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function xa(){for(var e=12,n="";e-- >0;)n+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return n}function q4(e){for(var n=[],t=(e||[]).length>>>0;t--;)n[t]=e[t];return n}function Nl(e){return e.classList?q4(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(n){return n})}function Ev(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function ro(e){return Object.keys(e||{}).reduce(function(n,t){return n+"".concat(t,": ").concat(e[t].trim(),";")},"")}function xl(e){return e.size!==Yt.size||e.x!==Yt.x||e.y!==Yt.y||e.rotate!==Yt.rotate||e.flipX||e.flipY}function Tv(){var e="fa",n=zv,t=Q.cssPrefix,i=Q.replacementClass,a=':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}';if(t!==e||i!==n){var r=new RegExp("\\.".concat(e,"\\-"),"g"),c=new RegExp("\\--".concat(e,"\\-"),"g"),o=new RegExp("\\.".concat(n),"g");a=a.replace(r,".".concat(t,"-")).replace(c,"--".concat(t,"-")).replace(o,".".concat(i))}return a}var kv=!1;function Ll(){Q.autoAddCss&&!kv&&(function Tj(e){if(e&&pn){var n=t1.createElement("style");n.setAttribute("type","text/css"),n.innerHTML=e;for(var t=t1.head.childNodes,i=null,a=t.length-1;a>-1;a--){var r=t[a],c=(r.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(c)>-1&&(i=r)}t1.head.insertBefore(n,i)}}(Tv()),kv=!0)}var Fj={mixout:function(){return{dom:{css:Tv,insertCss:Ll}}},hooks:function(){return{beforeDOMElementCreation:function(){Ll()},beforeI2svg:function(){Ll()}}}},gn=jn||{};gn[mn]||(gn[mn]={}),gn[mn].styles||(gn[mn].styles={}),gn[mn].hooks||(gn[mn].hooks={}),gn[mn].shims||(gn[mn].shims=[]);var zt=gn[mn],Iv=[],co=!1;function Uj(e){!pn||(co?setTimeout(e,0):Iv.push(e))}function La(e){var n=e.tag,t=e.attributes,i=void 0===t?{}:t,a=e.children,r=void 0===a?[]:a;return"string"==typeof e?Ev(e):"<".concat(n," ").concat(function Ij(e){return Object.keys(e||{}).reduce(function(n,t){return n+"".concat(t,'="').concat(Ev(e[t]),'" ')},"").trim()}(i),">").concat(r.map(La).join(""),"</").concat(n,">")}function Ov(e,n,t){if(e&&e[n]&&e[n][t])return{prefix:n,iconName:t,icon:e[n][t]}}pn&&((co=(t1.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(t1.readyState))||t1.addEventListener("DOMContentLoaded",function e(){t1.removeEventListener("DOMContentLoaded",e),co=1,Iv.map(function(n){return n()})}));var Sl=function(n,t,i,a){var s,l,u,r=Object.keys(n),c=r.length,o=void 0!==a?function(n,t){return function(i,a,r,c){return n.call(t,i,a,r,c)}}(t,a):t;for(void 0===i?(s=1,u=n[r[0]]):(s=0,u=i);s<c;s++)u=o(u,n[l=r[s]],l,n);return u};function Al(e){var n=function Gj(e){for(var n=[],t=0,i=e.length;t<i;){var a=e.charCodeAt(t++);if(a>=55296&&a<=56319&&t<i){var r=e.charCodeAt(t++);56320==(64512&r)?n.push(((1023&a)<<10)+(1023&r)+65536):(n.push(a),t--)}else n.push(a)}return n}(e);return 1===n.length?n[0].toString(16):null}function Rv(e){return Object.keys(e).reduce(function(n,t){var i=e[t];return i.icon?n[i.iconName]=i.icon:n[t]=i,n},{})}function El(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t.skipHooks,a=void 0!==i&&i,r=Rv(n);"function"!=typeof zt.hooks.addPack||a?zt.styles[e]=K(K({},zt.styles[e]||{}),r):zt.hooks.addPack(e,Rv(n)),"fas"===e&&El("fa",n)}var oo,so,lo,Y4=zt.styles,Wj=zt.shims,qj=(W1(oo={},n1,Object.values(Va[n1])),W1(oo,H1,Object.values(Va[H1])),oo),Tl=null,Pv={},Fv={},Bv={},Uv={},jv={},Yj=(W1(so={},n1,Object.keys(Ha[n1])),W1(so,H1,Object.keys(Ha[H1])),so);function Qj(e,n){var t=n.split("-"),i=t[0],a=t.slice(1).join("-");return i!==e||""===a||function Kj(e){return~xj.indexOf(e)}(a)?null:a}var Gv=function(){var n=function(r){return Sl(Y4,function(c,o,s){return c[s]=Sl(o,r,{}),c},{})};Pv=n(function(a,r,c){return r[3]&&(a[r[3]]=c),r[2]&&r[2].filter(function(s){return"number"==typeof s}).forEach(function(s){a[s.toString(16)]=c}),a}),Fv=n(function(a,r,c){return a[c]=c,r[2]&&r[2].filter(function(s){return"string"==typeof s}).forEach(function(s){a[s]=c}),a}),jv=n(function(a,r,c){var o=r[2];return a[c]=c,o.forEach(function(s){a[s]=c}),a});var t="far"in Y4||Q.autoFetchSvg,i=Sl(Wj,function(a,r){var c=r[0],o=r[1],s=r[2];return"far"===o&&!t&&(o="fas"),"string"==typeof c&&(a.names[c]={prefix:o,iconName:s}),"number"==typeof c&&(a.unicodes[c.toString(16)]={prefix:o,iconName:s}),a},{names:{},unicodes:{}});Bv=i.names,Uv=i.unicodes,Tl=uo(Q.styleDefault,{family:Q.familyDefault})};function kl(e,n){return(Pv[e]||{})[n]}function L3(e,n){return(jv[e]||{})[n]}function $v(e){return Bv[e]||{prefix:null,iconName:null}}function $n(){return Tl}function uo(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.family,i=void 0===t?n1:t,a=Ha[i][e],r=wa[i][e]||wa[i][a],c=e in zt.styles?e:null;return r||c||null}(function Ej(e){Na.push(e)})(function(e){Tl=uo(e.styleDefault,{family:Q.familyDefault})}),Gv();var Wv=(W1(lo={},n1,Object.keys(Va[n1])),W1(lo,H1,Object.keys(Va[H1])),lo);function fo(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.skipLookups,a=void 0!==i&&i,r=(W1(n={},n1,"".concat(Q.cssPrefix,"-").concat(n1)),W1(n,H1,"".concat(Q.cssPrefix,"-").concat(H1)),n),c=null,o=n1;(e.includes(r[n1])||e.some(function(l){return Wv[n1].includes(l)}))&&(o=n1),(e.includes(r[H1])||e.some(function(l){return Wv[H1].includes(l)}))&&(o=H1);var s=e.reduce(function(l,u){var d=Qj(Q.cssPrefix,u);if(Y4[u]?(u=qj[o].includes(u)?Hj[o][u]:u,c=u,l.prefix=u):Yj[o].indexOf(u)>-1?(c=u,l.prefix=uo(u,{family:o})):d?l.iconName=d:u!==Q.replacementClass&&u!==r[n1]&&u!==r[H1]&&l.rest.push(u),!a&&l.prefix&&l.iconName){var p="fa"===c?$v(l.iconName):{},g=L3(l.prefix,l.iconName);p.prefix&&(c=null),l.iconName=p.iconName||g||l.iconName,l.prefix=p.prefix||l.prefix,"far"===l.prefix&&!Y4.far&&Y4.fas&&!Q.autoFetchSvg&&(l.prefix="fas")}return l},{prefix:null,iconName:null,rest:[]});return(e.includes("fa-brands")||e.includes("fab"))&&(s.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(s.prefix="fad"),!s.prefix&&o===H1&&(Y4.fass||Q.autoFetchSvg)&&(s.prefix="fass",s.iconName=L3(s.prefix,s.iconName)||s.iconName),("fa"===s.prefix||"fa"===c)&&(s.prefix=$n()||"fas"),s}var Xj=function(){function e(){(function uj(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")})(this,e),this.definitions={}}return function fj(e,n,t){n&&gv(e.prototype,n),t&&gv(e,t),Object.defineProperty(e,"prototype",{writable:!1})}(e,[{key:"add",value:function(){for(var t=this,i=arguments.length,a=new Array(i),r=0;r<i;r++)a[r]=arguments[r];var c=a.reduce(this._pullDefinitions,{});Object.keys(c).forEach(function(o){t.definitions[o]=K(K({},t.definitions[o]||{}),c[o]),El(o,c[o]);var s=Va[n1][o];s&&El(s,c[o]),Gv()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(t,i){var a=i.prefix&&i.iconName&&i.icon?{0:i}:i;return Object.keys(a).map(function(r){var c=a[r],o=c.prefix,s=c.iconName,l=c.icon,u=l[2];t[o]||(t[o]={}),u.length>0&&u.forEach(function(d){"string"==typeof d&&(t[o][d]=l)}),t[o][s]=l}),t}}]),e}(),qv=[],K4={},Q4={},eG=Object.keys(Q4);function Ol(e,n){for(var t=arguments.length,i=new Array(t>2?t-2:0),a=2;a<t;a++)i[a-2]=arguments[a];var r=K4[e]||[];return r.forEach(function(c){n=c.apply(null,[n].concat(i))}),n}function S3(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),i=1;i<n;i++)t[i-1]=arguments[i];var a=K4[e]||[];a.forEach(function(r){r.apply(null,t)})}function vn(){var e=arguments[0],n=Array.prototype.slice.call(arguments,1);return Q4[e]?Q4[e].apply(null,n):void 0}function Rl(e){"fa"===e.prefix&&(e.prefix="fas");var n=e.iconName,t=e.prefix||$n();if(n)return n=L3(t,n)||n,Ov(Yv.definitions,t,n)||Ov(zt.styles,t,n)}var Yv=new Xj,iG={i2svg:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return pn?(S3("beforeI2svg",n),vn("pseudoElements2svg",n),vn("i2svg",n)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.autoReplaceSvgRoot;!1===Q.autoReplaceSvg&&(Q.autoReplaceSvg=!0),Q.observeMutations=!0,Uj(function(){rG({autoReplaceSvgRoot:t}),S3("watch",n)})}},K2={noAuto:function(){Q.autoReplaceSvg=!1,Q.observeMutations=!1,S3("noAuto")},config:Q,dom:iG,parse:{icon:function(n){if(null===n)return null;if("object"===Zc(n)&&n.prefix&&n.iconName)return{prefix:n.prefix,iconName:L3(n.prefix,n.iconName)||n.iconName};if(Array.isArray(n)&&2===n.length){var t=0===n[1].indexOf("fa-")?n[1].slice(3):n[1],i=uo(n[0]);return{prefix:i,iconName:L3(i,t)||t}}if("string"==typeof n&&(n.indexOf("".concat(Q.cssPrefix,"-"))>-1||n.match(wj))){var a=fo(n.split(" "),{skipLookups:!0});return{prefix:a.prefix||$n(),iconName:L3(a.prefix,a.iconName)||a.iconName}}if("string"==typeof n){var r=$n();return{prefix:r,iconName:L3(r,n)||n}}}},library:Yv,findIconDefinition:Rl,toHtml:La},rG=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.autoReplaceSvgRoot,i=void 0===t?t1:t;(Object.keys(zt.styles).length>0||Q.autoFetchSvg)&&pn&&Q.autoReplaceSvg&&K2.dom.i2svg({node:i})};function ho(e,n){return Object.defineProperty(e,"abstract",{get:n}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(i){return La(i)})}}),Object.defineProperty(e,"node",{get:function(){if(pn){var i=t1.createElement("div");return i.innerHTML=e.html,i.children}}}),e}function Pl(e){var n=e.icons,t=n.main,i=n.mask,a=e.prefix,r=e.iconName,c=e.transform,o=e.symbol,s=e.title,l=e.maskId,u=e.titleId,d=e.extra,p=e.watchable,g=void 0!==p&&p,w=i.found?i:t,V=w.width,N=w.height,A="fak"===a,z=[Q.replacementClass,r?"".concat(Q.cssPrefix,"-").concat(r):""].filter(function(Se){return-1===d.classes.indexOf(Se)}).filter(function(Se){return""!==Se||!!Se}).concat(d.classes).join(" "),R={children:[],attributes:K(K({},d.attributes),{},{"data-prefix":a,"data-icon":r,class:z,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(V," ").concat(N)})},F=A&&!~d.classes.indexOf("fa-fw")?{width:"".concat(V/N*16*.0625,"em")}:{};g&&(R.attributes[N3]=""),s&&(R.children.push({tag:"title",attributes:{id:R.attributes["aria-labelledby"]||"title-".concat(u||xa())},children:[s]}),delete R.attributes.title);var B=K(K({},R),{},{prefix:a,iconName:r,main:t,mask:i,maskId:l,transform:c,symbol:o,styles:K(K({},F),d.styles)}),J=i.found&&t.found?vn("generateAbstractMask",B)||{children:[],attributes:{}}:vn("generateAbstractIcon",B)||{children:[],attributes:{}},ze=J.attributes;return B.children=J.children,B.attributes=ze,o?function oG(e){var t=e.iconName,i=e.children,a=e.attributes,r=e.symbol,c=!0===r?"".concat(e.prefix,"-").concat(Q.cssPrefix,"-").concat(t):r;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:K(K({},a),{},{id:c}),children:i}]}]}(B):function cG(e){var n=e.children,t=e.main,i=e.mask,a=e.attributes,r=e.styles,c=e.transform;if(xl(c)&&t.found&&!i.found){var l={x:t.width/t.height/2,y:.5};a.style=ro(K(K({},r),{},{"transform-origin":"".concat(l.x+c.x/16,"em ").concat(l.y+c.y/16,"em")}))}return[{tag:"svg",attributes:a,children:n}]}(B)}function Kv(e){var n=e.content,t=e.width,i=e.height,a=e.transform,r=e.title,c=e.extra,o=e.watchable,s=void 0!==o&&o,l=K(K(K({},c.attributes),r?{title:r}:{}),{},{class:c.classes.join(" ")});s&&(l[N3]="");var u=K({},c.styles);xl(a)&&(u.transform=function Rj(e){var n=e.transform,t=e.width,a=e.height,r=void 0===a?16:a,c=e.startCentered,o=void 0!==c&&c,s="";return s+=o&&Vv?"translate(".concat(n.x/16-(void 0===t?16:t)/2,"em, ").concat(n.y/16-r/2,"em) "):o?"translate(calc(-50% + ".concat(n.x/16,"em), calc(-50% + ").concat(n.y/16,"em)) "):"translate(".concat(n.x/16,"em, ").concat(n.y/16,"em) "),(s+="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "))+"rotate(".concat(n.rotate,"deg) ")}({transform:a,startCentered:!0,width:t,height:i}),u["-webkit-transform"]=u.transform);var d=ro(u);d.length>0&&(l.style=d);var p=[];return p.push({tag:"span",attributes:l,children:[n]}),r&&p.push({tag:"span",attributes:{class:"sr-only"},children:[r]}),p}function sG(e){var n=e.content,t=e.title,i=e.extra,a=K(K(K({},i.attributes),t?{title:t}:{}),{},{class:i.classes.join(" ")}),r=ro(i.styles);r.length>0&&(a.style=r);var c=[];return c.push({tag:"span",attributes:a,children:[n]}),t&&c.push({tag:"span",attributes:{class:"sr-only"},children:[t]}),c}var Fl=zt.styles;function Bl(e){var n=e[0],t=e[1],r=yl(e.slice(4),1)[0];return{found:!0,width:n,height:t,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(Q.cssPrefix,"-").concat("duotone-group")},children:[{tag:"path",attributes:{class:"".concat(Q.cssPrefix,"-").concat("secondary"),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(Q.cssPrefix,"-").concat("primary"),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}var lG={found:!1,width:512,height:512};function Ul(e,n){var t=n;return"fa"===n&&null!==Q.styleDefault&&(n=$n()),new Promise(function(i,a){if(vn("missingIconAbstract"),"fa"===t){var c=$v(e)||{};e=c.iconName||e,n=c.prefix||n}if(e&&n&&Fl[n]&&Fl[n][e])return i(Bl(Fl[n][e]));(function uG(e,n){!xv&&!Q.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(n,'" is missing.'))})(e,n),i(K(K({},lG),{},{icon:Q.showMissingIcons&&e&&vn("missingIconAbstract")||{}}))})}var Qv=function(){},jl=Q.measurePerformance&&Xc&&Xc.mark&&Xc.measure?Xc:{mark:Qv,measure:Qv},Sa='FA "6.4.2"',Gl_begin=function(n){return jl.mark("".concat(Sa," ").concat(n," begins")),function(){return function(n){jl.mark("".concat(Sa," ").concat(n," ends")),jl.measure("".concat(Sa," ").concat(n),"".concat(Sa," ").concat(n," begins"),"".concat(Sa," ").concat(n," ends"))}(n)}},po=function(){};function Jv(e){return"string"==typeof(e.getAttribute?e.getAttribute(N3):null)}function mG(e){return t1.createElementNS("http://www.w3.org/2000/svg",e)}function gG(e){return t1.createElement(e)}function Xv(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.ceFn,i=void 0===t?"svg"===e.tag?mG:gG:t;if("string"==typeof e)return t1.createTextNode(e);var a=i(e.tag);Object.keys(e.attributes||[]).forEach(function(c){a.setAttribute(c,e.attributes[c])});var r=e.children||[];return r.forEach(function(c){a.appendChild(Xv(c,{ceFn:i}))}),a}var mo={replace:function(n){var t=n[0];if(t.parentNode)if(n[1].forEach(function(a){t.parentNode.insertBefore(Xv(a),t)}),null===t.getAttribute(N3)&&Q.keepOriginalSource){var i=t1.createComment(function vG(e){var n=" ".concat(e.outerHTML," ");return"".concat(n,"Font Awesome fontawesome.com ")}(t));t.parentNode.replaceChild(i,t)}else t.remove()},nest:function(n){var t=n[0],i=n[1];if(~Nl(t).indexOf(Q.replacementClass))return mo.replace(n);var a=new RegExp("".concat(Q.cssPrefix,"-.*"));if(delete i[0].attributes.id,i[0].attributes.class){var r=i[0].attributes.class.split(" ").reduce(function(o,s){return s===Q.replacementClass||s.match(a)?o.toSvg.push(s):o.toNode.push(s),o},{toNode:[],toSvg:[]});i[0].attributes.class=r.toSvg.join(" "),0===r.toNode.length?t.removeAttribute("class"):t.setAttribute("class",r.toNode.join(" "))}var c=i.map(function(o){return La(o)}).join("\n");t.setAttribute(N3,""),t.innerHTML=c}};function e_(e){e()}function t_(e,n){var t="function"==typeof n?n:po;if(0===e.length)t();else{var i=e_;"async"===Q.mutateApproach&&(i=jn.requestAnimationFrame||e_),i(function(){var a=function pG(){return!0===Q.autoReplaceSvg?mo.replace:mo[Q.autoReplaceSvg]||mo.replace}(),r=Gl_begin("mutate");e.map(a),r(),t()})}}var $l=!1;function n_(){$l=!0}function Wl(){$l=!1}var go=null;function i_(e){if(wv&&Q.observeMutations){var n=e.treeCallback,t=void 0===n?po:n,i=e.nodeCallback,a=void 0===i?po:i,r=e.pseudoElementsCallback,c=void 0===r?po:r,o=e.observeMutationsRoot,s=void 0===o?t1:o;go=new wv(function(l){if(!$l){var u=$n();q4(l).forEach(function(d){if("childList"===d.type&&d.addedNodes.length>0&&!Jv(d.addedNodes[0])&&(Q.searchPseudoElements&&c(d.target),t(d.target)),"attributes"===d.type&&d.target.parentNode&&Q.searchPseudoElements&&c(d.target.parentNode),"attributes"===d.type&&Jv(d.target)&&~Nj.indexOf(d.attributeName))if("class"===d.attributeName&&function dG(e){var n=e.getAttribute?e.getAttribute(Vl):null,t=e.getAttribute?e.getAttribute(Dl):null;return n&&t}(d.target)){var p=fo(Nl(d.target)),w=p.iconName;d.target.setAttribute(Vl,p.prefix||u),w&&d.target.setAttribute(Dl,w)}else(function hG(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(Q.replacementClass)})(d.target)&&a(d.target)})}}),pn&&go.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function CG(e){var n=e.getAttribute("style"),t=[];return n&&(t=n.split(";").reduce(function(i,a){var r=a.split(":"),c=r[0],o=r.slice(1);return c&&o.length>0&&(i[c]=o.join(":").trim()),i},{})),t}function yG(e){var n=e.getAttribute("data-prefix"),t=e.getAttribute("data-icon"),i=void 0!==e.innerText?e.innerText.trim():"",a=fo(Nl(e));return a.prefix||(a.prefix=$n()),n&&t&&(a.prefix=n,a.iconName=t),a.iconName&&a.prefix||(a.prefix&&i.length>0&&(a.iconName=function Zj(e,n){return(Fv[e]||{})[n]}(a.prefix,e.innerText)||kl(a.prefix,Al(e.innerText))),!a.iconName&&Q.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(a.iconName=e.firstChild.data)),a}function MG(e){var n=q4(e.attributes).reduce(function(a,r){return"class"!==a.name&&"style"!==a.name&&(a[r.name]=r.value),a},{}),t=e.getAttribute("title"),i=e.getAttribute("data-fa-title-id");return Q.autoA11y&&(t?n["aria-labelledby"]="".concat(Q.replacementClass,"-title-").concat(i||xa()):(n["aria-hidden"]="true",n.focusable="false")),n}function a_(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},t=yG(e),i=t.iconName,a=t.prefix,r=t.rest,c=MG(e),o=Ol("parseNodeAttributes",{},e),s=n.styleParser?CG(e):[];return K({iconName:i,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:a,transform:Yt,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:r,styles:s,attributes:c}},o)}var HG=zt.styles;function r_(e){var n="nest"===Q.autoReplaceSvg?a_(e,{styleParser:!1}):a_(e);return~n.extra.classes.indexOf(Lv)?vn("generateLayersText",e,n):vn("generateSvgReplacementMutation",e,n)}var Wn=new Set;function c_(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!pn)return Promise.resolve();var t=t1.documentElement.classList,i=function(d){return t.add("".concat(Nv,"-").concat(d))},a=function(d){return t.remove("".concat(Nv,"-").concat(d))},r=Q.autoFetchSvg?Wn:zl.map(function(u){return"fa-".concat(u)}).concat(Object.keys(HG));r.includes("fa")||r.push("fa");var c=[".".concat(Lv,":not([").concat(N3,"])")].concat(r.map(function(u){return".".concat(u,":not([").concat(N3,"])")})).join(", ");if(0===c.length)return Promise.resolve();var o=[];try{o=q4(e.querySelectorAll(c))}catch(u){}if(!(o.length>0))return Promise.resolve();i("pending"),a("complete");var s=Gl_begin("onTree"),l=o.reduce(function(u,d){try{var p=r_(d);p&&u.push(p)}catch(g){xv||"MissingIcon"===g.name&&console.error(g)}return u},[]);return new Promise(function(u,d){Promise.all(l).then(function(p){t_(p,function(){i("active"),i("complete"),a("pending"),"function"==typeof n&&n(),s(),u()})}).catch(function(p){s(),d(p)})})}function wG(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;r_(e).then(function(t){t&&t_([t],n)})}zl.map(function(e){Wn.add("fa-".concat(e))}),Object.keys(Ha[n1]).map(Wn.add.bind(Wn)),Object.keys(Ha[H1]).map(Wn.add.bind(Wn)),Wn=Ma(Wn);var DG=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.transform,a=void 0===i?Yt:i,r=t.symbol,c=void 0!==r&&r,o=t.mask,s=void 0===o?null:o,l=t.maskId,u=void 0===l?null:l,d=t.title,p=void 0===d?null:d,g=t.titleId,w=void 0===g?null:g,V=t.classes,N=void 0===V?[]:V,A=t.attributes,z=void 0===A?{}:A,R=t.styles,F=void 0===R?{}:R;if(n){var B=n.prefix,J=n.iconName,pe=n.icon;return ho(K({type:"icon"},n),function(){return S3("beforeDOMElementCreation",{iconDefinition:n,params:t}),Q.autoA11y&&(p?z["aria-labelledby"]="".concat(Q.replacementClass,"-title-").concat(w||xa()):(z["aria-hidden"]="true",z.focusable="false")),Pl({icons:{main:Bl(pe),mask:s?Bl(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:B,iconName:J,transform:K(K({},Yt),a),symbol:c,title:p,maskId:u,titleId:w,extra:{attributes:z,styles:F,classes:N}})})}},zG={mixout:function(){return{icon:(e=DG,function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(n||{}).icon?n:Rl(n||{}),a=t.mask;return a&&(a=(a||{}).icon?a:Rl(a||{})),e(i,K(K({},t),{},{mask:a}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(t){return t.treeCallback=c_,t.nodeCallback=wG,t}}},provides:function(n){n.i2svg=function(t){var i=t.node,r=t.callback;return c_(void 0===i?t1:i,void 0===r?function(){}:r)},n.generateSvgReplacementMutation=function(t,i){var a=i.iconName,r=i.title,c=i.titleId,o=i.prefix,s=i.transform,l=i.symbol,u=i.mask,d=i.maskId,p=i.extra;return new Promise(function(g,w){Promise.all([Ul(a,o),u.iconName?Ul(u.iconName,u.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(V){var N=yl(V,2);g([t,Pl({icons:{main:N[0],mask:N[1]},prefix:o,iconName:a,transform:s,symbol:l,maskId:d,title:r,titleId:c,extra:p,watchable:!0})])}).catch(w)})},n.generateAbstractIcon=function(t){var l,i=t.children,a=t.attributes,r=t.main,c=t.transform,s=ro(t.styles);return s.length>0&&(a.style=s),xl(c)&&(l=vn("generateAbstractTransformGrouping",{main:r,transform:c,containerWidth:r.width,iconWidth:r.width})),i.push(l||r.icon),{children:i,attributes:a}}}},NG={mixout:function(){return{layer:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.classes,r=void 0===a?[]:a;return ho({type:"layer"},function(){S3("beforeDOMElementCreation",{assembler:t,params:i});var c=[];return t(function(o){Array.isArray(o)?o.map(function(s){c=c.concat(s.abstract)}):c=c.concat(o.abstract)}),[{tag:"span",attributes:{class:["".concat(Q.cssPrefix,"-layers")].concat(Ma(r)).join(" ")},children:c}]})}}}},xG={mixout:function(){return{counter:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.title,r=void 0===a?null:a,c=i.classes,o=void 0===c?[]:c,s=i.attributes,l=void 0===s?{}:s,u=i.styles,d=void 0===u?{}:u;return ho({type:"counter",content:t},function(){return S3("beforeDOMElementCreation",{content:t,params:i}),sG({content:t.toString(),title:r,extra:{attributes:l,styles:d,classes:["".concat(Q.cssPrefix,"-layers-counter")].concat(Ma(o))}})})}}}},LG={mixout:function(){return{text:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.transform,r=void 0===a?Yt:a,c=i.title,o=void 0===c?null:c,s=i.classes,l=void 0===s?[]:s,u=i.attributes,d=void 0===u?{}:u,p=i.styles,g=void 0===p?{}:p;return ho({type:"text",content:t},function(){return S3("beforeDOMElementCreation",{content:t,params:i}),Kv({content:t,transform:K(K({},Yt),r),title:o,extra:{attributes:d,styles:g,classes:["".concat(Q.cssPrefix,"-layers-text")].concat(Ma(l))}})})}}},provides:function(n){n.generateLayersText=function(t,i){var a=i.title,r=i.transform,c=i.extra,o=null,s=null;if(Vv){var l=parseInt(getComputedStyle(t).fontSize,10),u=t.getBoundingClientRect();o=u.width/l,s=u.height/l}return Q.autoA11y&&!a&&(c.attributes["aria-hidden"]="true"),Promise.resolve([t,Kv({content:t.innerHTML,width:o,height:s,transform:r,title:a,extra:c,watchable:!0})])}}},SG=new RegExp('"',"ug"),o_=[1105920,1112319];function s_(e,n){var t="".concat("data-fa-pseudo-element-pending").concat(n.replace(":","-"));return new Promise(function(i,a){if(null!==e.getAttribute(t))return i();var c=q4(e.children).filter(function(pe){return pe.getAttribute(wl)===n})[0],o=jn.getComputedStyle(e,n),s=o.getPropertyValue("font-family").match(Vj),l=o.getPropertyValue("font-weight"),u=o.getPropertyValue("content");if(c&&!s)return e.removeChild(c),i();if(s&&"none"!==u&&""!==u){var d=o.getPropertyValue("content"),p=~["Sharp"].indexOf(s[2])?H1:n1,g=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(s[2])?wa[p][s[2].toLowerCase()]:Dj[p][l],w=function AG(e){var n=e.replace(SG,""),t=function $j(e,n){var a,t=e.length,i=e.charCodeAt(n);return i>=55296&&i<=56319&&t>n+1&&(a=e.charCodeAt(n+1))>=56320&&a<=57343?1024*(i-55296)+a-56320+65536:i}(n,0),i=t>=o_[0]&&t<=o_[1],a=2===n.length&&n[0]===n[1];return{value:Al(a?n[0]:n),isSecondary:i||a}}(d),V=w.value,N=w.isSecondary,A=s[0].startsWith("FontAwesome"),z=kl(g,V),R=z;if(A){var F=function Jj(e){var n=Uv[e],t=kl("fas",e);return n||(t?{prefix:"fas",iconName:t}:null)||{prefix:null,iconName:null}}(V);F.iconName&&F.prefix&&(z=F.iconName,g=F.prefix)}if(!z||N||c&&c.getAttribute(Vl)===g&&c.getAttribute(Dl)===R)i();else{e.setAttribute(t,R),c&&e.removeChild(c);var B=function bG(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Yt,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),J=B.extra;J.attributes[wl]=n,Ul(z,g).then(function(pe){var ze=Pl(K(K({},B),{},{icons:{main:pe,mask:{prefix:null,iconName:null,rest:[]}},prefix:g,iconName:R,extra:J,watchable:!0})),Se=t1.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===n?e.insertBefore(Se,e.firstChild):e.appendChild(Se),Se.outerHTML=ze.map(function(i1){return La(i1)}).join("\n"),e.removeAttribute(t),i()}).catch(a)}}else i()})}function EG(e){return Promise.all([s_(e,"::before"),s_(e,"::after")])}function TG(e){return!(e.parentNode===document.head||~bj.indexOf(e.tagName.toUpperCase())||e.getAttribute(wl)||e.parentNode&&"svg"===e.parentNode.tagName)}function l_(e){if(pn)return new Promise(function(n,t){var i=q4(e.querySelectorAll("*")).filter(TG).map(EG),a=Gl_begin("searchPseudoElements");n_(),Promise.all(i).then(function(){a(),Wl(),n()}).catch(function(){a(),Wl(),t()})})}var u_=!1,f_=function(n){return n.toLowerCase().split(" ").reduce(function(i,a){var r=a.toLowerCase().split("-"),c=r[0],o=r.slice(1).join("-");if(c&&"h"===o)return i.flipX=!0,i;if(c&&"v"===o)return i.flipY=!0,i;if(o=parseFloat(o),isNaN(o))return i;switch(c){case"grow":i.size=i.size+o;break;case"shrink":i.size=i.size-o;break;case"left":i.x=i.x-o;break;case"right":i.x=i.x+o;break;case"up":i.y=i.y-o;break;case"down":i.y=i.y+o;break;case"rotate":i.rotate=i.rotate+o}return i},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},ql={x:0,y:0,width:"100%",height:"100%"};function d_(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||n)&&(e.attributes.fill="black"),e}!function tG(e,n){var t=n.mixoutsTo;qv=e,K4={},Object.keys(Q4).forEach(function(i){-1===eG.indexOf(i)&&delete Q4[i]}),qv.forEach(function(i){var a=i.mixout?i.mixout():{};if(Object.keys(a).forEach(function(c){"function"==typeof a[c]&&(t[c]=a[c]),"object"===Zc(a[c])&&Object.keys(a[c]).forEach(function(o){t[c]||(t[c]={}),t[c][o]=a[c][o]})}),i.hooks){var r=i.hooks();Object.keys(r).forEach(function(c){K4[c]||(K4[c]=[]),K4[c].push(r[c])})}i.provides&&i.provides(Q4)})}([Fj,zG,NG,xG,LG,{hooks:function(){return{mutationObserverCallbacks:function(t){return t.pseudoElementsCallback=l_,t}}},provides:function(n){n.pseudoElements2svg=function(t){var i=t.node;Q.searchPseudoElements&&l_(void 0===i?t1:i)}}},{mixout:function(){return{dom:{unwatch:function(){n_(),u_=!0}}}},hooks:function(){return{bootstrap:function(){i_(Ol("mutationObserverCallbacks",{}))},noAuto:function(){!function _G(){!go||go.disconnect()}()},watch:function(t){var i=t.observeMutationsRoot;u_?Wl():i_(Ol("mutationObserverCallbacks",{observeMutationsRoot:i}))}}}},{mixout:function(){return{parse:{transform:function(t){return f_(t)}}}},hooks:function(){return{parseNodeAttributes:function(t,i){var a=i.getAttribute("data-fa-transform");return a&&(t.transform=f_(a)),t}}},provides:function(n){n.generateAbstractTransformGrouping=function(t){var i=t.main,a=t.transform,c=t.iconWidth,o={transform:"translate(".concat(t.containerWidth/2," 256)")},s="translate(".concat(32*a.x,", ").concat(32*a.y,") "),l="scale(".concat(a.size/16*(a.flipX?-1:1),", ").concat(a.size/16*(a.flipY?-1:1),") "),u="rotate(".concat(a.rotate," 0 0)"),g={outer:o,inner:{transform:"".concat(s," ").concat(l," ").concat(u)},path:{transform:"translate(".concat(c/2*-1," -256)")}};return{tag:"g",attributes:K({},g.outer),children:[{tag:"g",attributes:K({},g.inner),children:[{tag:i.icon.tag,children:i.icon.children,attributes:K(K({},i.icon.attributes),g.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(t,i){var a=i.getAttribute("data-fa-mask"),r=a?fo(a.split(" ").map(function(c){return c.trim()})):{prefix:null,iconName:null,rest:[]};return r.prefix||(r.prefix=$n()),t.mask=r,t.maskId=i.getAttribute("data-fa-mask-id"),t}}},provides:function(n){n.generateAbstractMask=function(t){var e,i=t.children,a=t.attributes,r=t.main,c=t.mask,o=t.maskId,u=r.icon,p=c.icon,g=function Oj(e){var n=e.transform,i=e.iconWidth,a={transform:"translate(".concat(e.containerWidth/2," 256)")},r="translate(".concat(32*n.x,", ").concat(32*n.y,") "),c="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),o="rotate(".concat(n.rotate," 0 0)");return{outer:a,inner:{transform:"".concat(r," ").concat(c," ").concat(o)},path:{transform:"translate(".concat(i/2*-1," -256)")}}}({transform:t.transform,containerWidth:c.width,iconWidth:r.width}),w={tag:"rect",attributes:K(K({},ql),{},{fill:"white"})},V=u.children?{children:u.children.map(d_)}:{},N={tag:"g",attributes:K({},g.inner),children:[d_(K({tag:u.tag,attributes:K(K({},u.attributes),g.path)},V))]},A={tag:"g",attributes:K({},g.outer),children:[N]},z="mask-".concat(o||xa()),R="clip-".concat(o||xa()),F={tag:"mask",attributes:K(K({},ql),{},{id:z,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[w,A]},B={tag:"defs",children:[{tag:"clipPath",attributes:{id:R},children:(e=p,"g"===e.tag?e.children:[e])},F]};return i.push(B,{tag:"rect",attributes:K({fill:"currentColor","clip-path":"url(#".concat(R,")"),mask:"url(#".concat(z,")")},ql)}),{children:i,attributes:a}}}},{provides:function(n){var t=!1;jn.matchMedia&&(t=jn.matchMedia("(prefers-reduced-motion: reduce)").matches),n.missingIconAbstract=function(){var i=[],a={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};i.push({tag:"path",attributes:K(K({},a),{},{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 c=K(K({},r),{},{attributeName:"opacity"}),o={tag:"circle",attributes:K(K({},a),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||o.children.push({tag:"animate",attributes:K(K({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:K(K({},c),{},{values:"1;0;1;1;0;1;"})}),i.push(o),i.push({tag:"path",attributes:K(K({},a),{},{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:t?[]:[{tag:"animate",attributes:K(K({},c),{},{values:"1;0;0;0;0;1;"})}]}),t||i.push({tag:"path",attributes:K(K({},a),{},{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:K(K({},c),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:i}}}},{hooks:function(){return{parseNodeAttributes:function(t,i){var a=i.getAttribute("data-fa-symbol");return t.symbol=null!==a&&(""===a||a),t}}}}],{mixoutsTo:K2});var jG=K2.parse,GG=K2.icon;const $G=["*"],YG=e=>{const n={"fa-spin":e.spin,"fa-pulse":e.pulse,"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(n).map(t=>n[t]?t:null).filter(t=>t)};let ZG=(()=>{class e{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),JG=(()=>{class e{constructor(){this.definitions={}}addIcons(...t){for(const i of t){i.prefix in this.definitions||(this.definitions[i.prefix]={}),this.definitions[i.prefix][i.iconName]=i;for(const a of i.icon[2])"string"==typeof a&&(this.definitions[i.prefix][a]=i)}}addIconPacks(...t){for(const i of t){const a=Object.keys(i).map(r=>i[r]);this.addIcons(...a)}}getIconDefinition(t,i){return t in this.definitions&&i in this.definitions[t]?this.definitions[t][i]:null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),XG=(()=>{class e{constructor(){this.stackItemSize="1x"}ngOnChanges(t){if("size"in t)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.\u0275fac=function(t){return new(t||e)},e.\u0275dir=U({type:e,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[D1]}),e})(),e$=(()=>{class e{constructor(t,i){this.renderer=t,this.elementRef=i}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(t){"size"in t&&(null!=t.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${t.size.currentValue}`),null!=t.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${t.size.previousValue}`))}}return e.\u0275fac=function(t){return new(t||e)(H(h2),H(Ee))},e.\u0275cmp=re({type:e,selectors:[["fa-stack"]],inputs:{size:"size"},features:[D1],ngContentSelectors:$G,decls:1,vars:0,template:function(t,i){1&t&&(V4(),D4(0))},encapsulation:2}),e})(),h_=(()=>{class e{constructor(t,i,a,r,c){this.sanitizer=t,this.config=i,this.iconLibrary=a,this.stackItem=r,this.classes=[],null!=c&&null==r&&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(t){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let i=null;if(i=null==this.icon?this.config.fallbackIcon:this.icon,t){const a=this.findIconDefinition(i);if(null!=a){const r=this.buildParams();this.renderIcon(a,r)}}}render(){this.ngOnChanges({})}findIconDefinition(t){const i=((e,n)=>(e=>void 0!==e.prefix&&void 0!==e.iconName)(e)?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:n,iconName:e}:void 0)(t,this.config.defaultPrefix);if("icon"in i)return i;const a=this.iconLibrary.getIconDefinition(i.prefix,i.iconName);return null!=a?a:((e=>{throw new Error(`Could not find icon with iconName=${e.iconName} and prefix=${e.prefix} in the icon library.`)})(i),null)}buildParams(){const t={flip:this.flip,spin:this.spin,pulse:this.pulse,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},i="string"==typeof this.transform?jG.transform(this.transform):this.transform;return{title:this.title,transform:i,classes:[...YG(t),...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(t,i){const a=GG(t,i);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(a.html.join("\n"))}}return e.\u0275fac=function(t){return new(t||e)(H(Op),H(ZG),H(JG),H(XG,8),H(e$,8))},e.\u0275cmp=re({type:e,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(t,i){2&t&&(Mt("innerHTML",i.renderedIconHTML,hf),j("title",i.title))},inputs:{icon:"icon",title:"title",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:[D1],decls:0,vars:0,template:function(t,i){},encapsulation:2}),e})(),t$=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ae({type:e}),e.\u0275inj=Le({}),e})();function vo(e,n){const t=Y(e)?e:()=>e,i=a=>a.error(t());return new Te(n?a=>n.schedule(i,0,a):i)}const _o=c2(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function p_(e){return new Te(n=>{Z1(e()).subscribe(n)})}function m_(){return r1((e,n)=>{let t=null;e._refCount++;const i=Re(n,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(t=null);const a=e._connection,r=t;t=null,a&&(!r||a===r)&&a.unsubscribe(),n.unsubscribe()});e.subscribe(i),i.closed||(t=e.connect())})}class n$ extends Te{constructor(n,t){super(),this.source=n,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,ci(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,null==n||n.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new we;const t=this.getSubject();n.add(this.source.subscribe(Re(t,void 0,()=>{this._teardown(),t.complete()},i=>{this._teardown(),t.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=we.EMPTY)}return n}refCount(){return m_()(this)}}function i$(e,n,t,i,a){return(r,c)=>{let o=t,s=n,l=0;r.subscribe(Re(c,u=>{const d=l++;s=o?e(s,u,d):(o=!0,u),i&&c.next(s)},a&&(()=>{o&&c.next(s),c.complete()})))}}function g_(e,n){return r1(i$(e,n,arguments.length>=2,!0))}function qn(e){return r1((n,t)=>{let r,i=null,a=!1;i=n.subscribe(Re(t,void 0,void 0,c=>{r=Z1(e(c,qn(e)(n))),i?(i.unsubscribe(),i=null,r.subscribe(t)):a=!0})),a&&(i.unsubscribe(),i=null,r.subscribe(t))})}function Aa(e,n){return Y(n)?V1(e,n,1):V1(e,1)}function Yl(e){return e<=0?()=>ft:r1((n,t)=>{let i=[];n.subscribe(Re(t,a=>{i.push(a),e<i.length&&i.shift()},()=>{for(const a of i)t.next(a);t.complete()},void 0,()=>{i=null}))})}function v_(e=a$){return r1((n,t)=>{let i=!1;n.subscribe(Re(t,a=>{i=!0,t.next(a)},()=>i?t.complete():t.error(e())))})}function a$(){return new _o}function __(e){return r1((n,t)=>{let i=!1;n.subscribe(Re(t,a=>{i=!0,t.next(a)},()=>{i||t.next(e),t.complete()}))})}function Z4(e,n){const t=arguments.length>=2;return i=>i.pipe(e?t2((a,r)=>e(a,r,i)):ut,v2(1),t?__(n):v_(()=>new _o))}class _n{constructor(n,t){this.id=n,this.url=t}}class Co extends _n{constructor(n,t,i="imperative",a=null){super(n,t),this.navigationTrigger=i,this.restoredState=a}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ea extends _n{constructor(n,t,i){super(n,t),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class C_ extends _n{constructor(n,t,i){super(n,t),this.reason=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class o$ extends _n{constructor(n,t,i){super(n,t),this.error=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class s$ extends _n{constructor(n,t,i,a){super(n,t),this.urlAfterRedirects=i,this.state=a}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class l$ extends _n{constructor(n,t,i,a){super(n,t),this.urlAfterRedirects=i,this.state=a}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class u$ extends _n{constructor(n,t,i,a,r){super(n,t),this.urlAfterRedirects=i,this.state=a,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class f$ extends _n{constructor(n,t,i,a){super(n,t),this.urlAfterRedirects=i,this.state=a}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class d$ extends _n{constructor(n,t,i,a){super(n,t),this.urlAfterRedirects=i,this.state=a}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class y_{constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class M_{constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class h${constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class p${constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class m${constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class g${constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class b_{constructor(n,t,i){this.routerEvent=n,this.position=t,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const ye="primary";class v${constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t[0]:t}return null}getAll(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function J4(e){return new v$(e)}const H_="ngNavigationCancelingError";function Kl(e){const n=Error("NavigationCancelingError: "+e);return n[H_]=!0,n}function C$(e,n,t){const i=t.path.split("/");if(i.length>e.length||"full"===t.pathMatch&&(n.hasChildren()||i.length<e.length))return null;const a={};for(let r=0;r<i.length;r++){const c=i[r],o=e[r];if(c.startsWith(":"))a[c.substring(1)]=o;else if(c!==o.path)return null}return{consumed:e.slice(0,i.length),posParams:a}}function Kt(e,n){const t=e?Object.keys(e):void 0,i=n?Object.keys(n):void 0;if(!t||!i||t.length!=i.length)return!1;let a;for(let r=0;r<t.length;r++)if(a=t[r],!w_(e[a],n[a]))return!1;return!0}function w_(e,n){if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return!1;const t=[...e].sort(),i=[...n].sort();return t.every((a,r)=>i[r]===a)}return e===n}function V_(e){return Array.prototype.concat.apply([],e)}function D_(e){return e.length>0?e[e.length-1]:null}function n2(e,n){for(const t in e)e.hasOwnProperty(t)&&n(e[t],t)}function Qt(e){return c0(e)?e:Pi(e)?J1(Promise.resolve(e)):ce(e)}const b$={exact:function x_(e,n,t){if(!E3(e.segments,n.segments)||!yo(e.segments,n.segments,t)||e.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!e.children[i]||!x_(e.children[i],n.children[i],t))return!1;return!0},subset:L_},z_={exact:function H$(e,n){return Kt(e,n)},subset:function w$(e,n){return Object.keys(n).length<=Object.keys(e).length&&Object.keys(n).every(t=>w_(e[t],n[t]))},ignored:()=>!0};function N_(e,n,t){return b$[t.paths](e.root,n.root,t.matrixParams)&&z_[t.queryParams](e.queryParams,n.queryParams)&&!("exact"===t.fragment&&e.fragment!==n.fragment)}function L_(e,n,t){return S_(e,n,n.segments,t)}function S_(e,n,t,i){if(e.segments.length>t.length){const a=e.segments.slice(0,t.length);return!(!E3(a,t)||n.hasChildren()||!yo(a,t,i))}if(e.segments.length===t.length){if(!E3(e.segments,t)||!yo(e.segments,t,i))return!1;for(const a in n.children)if(!e.children[a]||!L_(e.children[a],n.children[a],i))return!1;return!0}{const a=t.slice(0,e.segments.length),r=t.slice(e.segments.length);return!!(E3(e.segments,a)&&yo(e.segments,a,i)&&e.children[ye])&&S_(e.children[ye],n,r,i)}}function yo(e,n,t){return n.every((i,a)=>z_[t](e[a].parameters,i.parameters))}class A3{constructor(n,t,i){this.root=n,this.queryParams=t,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=J4(this.queryParams)),this._queryParamMap}toString(){return z$.serialize(this)}}class He{constructor(n,t){this.segments=n,this.children=t,this.parent=null,n2(t,(i,a)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Mo(this)}}class Ta{constructor(n,t){this.path=n,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=J4(this.parameters)),this._parameterMap}toString(){return I_(this)}}function E3(e,n){return e.length===n.length&&e.every((t,i)=>t.path===n[i].path)}class A_{}class E_{parse(n){const t=new I$(n);return new A3(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(n){const t=`/${ka(n.root,!0)}`,i=function L$(e){const n=Object.keys(e).map(t=>{const i=e[t];return Array.isArray(i)?i.map(a=>`${bo(t)}=${bo(a)}`).join("&"):`${bo(t)}=${bo(i)}`}).filter(t=>!!t);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${t}${i}${"string"==typeof n.fragment?`#${function N$(e){return encodeURI(e)}(n.fragment)}`:""}`}}const z$=new E_;function Mo(e){return e.segments.map(n=>I_(n)).join("/")}function ka(e,n){if(!e.hasChildren())return Mo(e);if(n){const t=e.children[ye]?ka(e.children[ye],!1):"",i=[];return n2(e.children,(a,r)=>{r!==ye&&i.push(`${r}:${ka(a,!1)}`)}),i.length>0?`${t}(${i.join("//")})`:t}{const t=function D$(e,n){let t=[];return n2(e.children,(i,a)=>{a===ye&&(t=t.concat(n(i,a)))}),n2(e.children,(i,a)=>{a!==ye&&(t=t.concat(n(i,a)))}),t}(e,(i,a)=>a===ye?[ka(e.children[ye],!1)]:[`${a}:${ka(i,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[ye]?`${Mo(e)}/${t[0]}`:`${Mo(e)}/(${t.join("//")})`}}function T_(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function bo(e){return T_(e).replace(/%3B/gi,";")}function Ql(e){return T_(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ho(e){return decodeURIComponent(e)}function k_(e){return Ho(e.replace(/\+/g,"%20"))}function I_(e){return`${Ql(e.path)}${function x$(e){return Object.keys(e).map(n=>`;${Ql(n)}=${Ql(e[n])}`).join("")}(e.parameters)}`}const S$=/^[^\/()?;=#]+/;function wo(e){const n=e.match(S$);return n?n[0]:""}const A$=/^[^=?&#]+/,T$=/^[^&#]+/;class I${constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new He([],{}):new He([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(t).length>0)&&(i[ye]=new He(n,t)),i}parseSegment(){const n=wo(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(n),new Ta(Ho(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const t=wo(this.remaining);if(!t)return;this.capture(t);let i="";if(this.consumeOptional("=")){const a=wo(this.remaining);a&&(i=a,this.capture(i))}n[Ho(t)]=Ho(i)}parseQueryParam(n){const t=function E$(e){const n=e.match(A$);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let i="";if(this.consumeOptional("=")){const c=function k$(e){const n=e.match(T$);return n?n[0]:""}(this.remaining);c&&(i=c,this.capture(i))}const a=k_(t),r=k_(i);if(n.hasOwnProperty(a)){let c=n[a];Array.isArray(c)||(c=[c],n[a]=c),c.push(r)}else n[a]=r}parseParens(n){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=wo(this.remaining),a=this.remaining[i.length];if("/"!==a&&")"!==a&&";"!==a)throw new Error(`Cannot parse url '${this.url}'`);let r;i.indexOf(":")>-1?(r=i.substr(0,i.indexOf(":")),this.capture(r),this.capture(":")):n&&(r=ye);const c=this.parseChildren();t[r]=1===Object.keys(c).length?c[ye]:new He([],c),this.consumeOptional("//")}return t}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new Error(`Expected "${n}".`)}}class O_{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const t=this.pathFromRoot(n);return t.length>1?t[t.length-2]:null}children(n){const t=Zl(n,this._root);return t?t.children.map(i=>i.value):[]}firstChild(n){const t=Zl(n,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(n){const t=Jl(n,this._root);return t.length<2?[]:t[t.length-2].children.map(a=>a.value).filter(a=>a!==n)}pathFromRoot(n){return Jl(n,this._root).map(t=>t.value)}}function Zl(e,n){if(e===n.value)return n;for(const t of n.children){const i=Zl(e,t);if(i)return i}return null}function Jl(e,n){if(e===n.value)return[n];for(const t of n.children){const i=Jl(e,t);if(i.length)return i.unshift(n),i}return[]}class Cn{constructor(n,t){this.value=n,this.children=t}toString(){return`TreeNode(${this.value})`}}function X4(e){const n={};return e&&e.children.forEach(t=>n[t.value.outlet]=t),n}class R_ extends O_{constructor(n,t){super(n),this.snapshot=t,Xl(this,n)}toString(){return this.snapshot.toString()}}function P_(e,n){const t=function O$(e,n){const c=new Vo([],{},{},"",{},ye,n,null,e.root,-1,{});return new B_("",new Cn(c,[]))}(e,n),i=new K1([new Ta("",{})]),a=new K1({}),r=new K1({}),c=new K1({}),o=new K1(""),s=new yn(i,a,c,o,r,ye,n,t.root);return s.snapshot=t.root,new R_(new Cn(s,[]),t)}class yn{constructor(n,t,i,a,r,c,o,s){this.url=n,this.params=t,this.queryParams=i,this.fragment=a,this.data=r,this.outlet=c,this.component=o,this._futureSnapshot=s}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(me(n=>J4(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(me(n=>J4(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function F_(e,n="emptyOnly"){const t=e.pathFromRoot;let i=0;if("always"!==n)for(i=t.length-1;i>=1;){const a=t[i],r=t[i-1];if(a.routeConfig&&""===a.routeConfig.path)i--;else{if(r.component)break;i--}}return function R$(e){return e.reduce((n,t)=>({params:Object.assign(Object.assign({},n.params),t.params),data:Object.assign(Object.assign({},n.data),t.data),resolve:Object.assign(Object.assign({},n.resolve),t._resolvedData)}),{params:{},data:{},resolve:{}})}(t.slice(i))}class Vo{constructor(n,t,i,a,r,c,o,s,l,u,d){this.url=n,this.params=t,this.queryParams=i,this.fragment=a,this.data=r,this.outlet=c,this.component=o,this.routeConfig=s,this._urlSegment=l,this._lastPathIndex=u,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=J4(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=J4(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class B_ extends O_{constructor(n,t){super(t),this.url=n,Xl(this,t)}toString(){return U_(this._root)}}function Xl(e,n){n.value._routerState=e,n.children.forEach(t=>Xl(e,t))}function U_(e){const n=e.children.length>0?` { ${e.children.map(U_).join(", ")} } `:"";return`${e.value}${n}`}function e5(e){if(e.snapshot){const n=e.snapshot,t=e._futureSnapshot;e.snapshot=t,Kt(n.queryParams,t.queryParams)||e.queryParams.next(t.queryParams),n.fragment!==t.fragment&&e.fragment.next(t.fragment),Kt(n.params,t.params)||e.params.next(t.params),function y$(e,n){if(e.length!==n.length)return!1;for(let t=0;t<e.length;++t)if(!Kt(e[t],n[t]))return!1;return!0}(n.url,t.url)||e.url.next(t.url),Kt(n.data,t.data)||e.data.next(t.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function t5(e,n){const t=Kt(e.params,n.params)&&function V$(e,n){return E3(e,n)&&e.every((t,i)=>Kt(t.parameters,n[i].parameters))}(e.url,n.url);return t&&!(!e.parent!=!n.parent)&&(!e.parent||t5(e.parent,n.parent))}function Ia(e,n,t){if(t&&e.shouldReuseRoute(n.value,t.value.snapshot)){const i=t.value;i._futureSnapshot=n.value;const a=function F$(e,n,t){return n.children.map(i=>{for(const a of t.children)if(e.shouldReuseRoute(i.value,a.value.snapshot))return Ia(e,i,a);return Ia(e,i)})}(e,n,t);return new Cn(i,a)}{if(e.shouldAttach(n.value)){const r=e.retrieve(n.value);if(null!==r){const c=r.route;return c.value._futureSnapshot=n.value,c.children=n.children.map(o=>Ia(e,o)),c}}const i=function B$(e){return new yn(new K1(e.url),new K1(e.params),new K1(e.queryParams),new K1(e.fragment),new K1(e.data),e.outlet,e.component,e)}(n.value),a=n.children.map(r=>Ia(e,r));return new Cn(i,a)}}function Do(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Oa(e){return"object"==typeof e&&null!=e&&e.outlets}function n5(e,n,t,i,a){let r={};if(i&&n2(i,(o,s)=>{r[s]=Array.isArray(o)?o.map(l=>`${l}`):`${o}`}),e===n)return new A3(t,r,a);const c=j_(e,n,t);return new A3(c,r,a)}function j_(e,n,t){const i={};return n2(e.children,(a,r)=>{i[r]=a===n?t:j_(a,n,t)}),new He(e.segments,i)}class G_{constructor(n,t,i){if(this.isAbsolute=n,this.numberOfDoubleDots=t,this.commands=i,n&&i.length>0&&Do(i[0]))throw new Error("Root segment cannot have matrix parameters");const a=i.find(Oa);if(a&&a!==D_(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class i5{constructor(n,t,i){this.segmentGroup=n,this.processChildren=t,this.index=i}}function $_(e,n,t){if(e||(e=new He([],{})),0===e.segments.length&&e.hasChildren())return zo(e,n,t);const i=function q$(e,n,t){let i=0,a=n;const r={match:!1,pathIndex:0,commandIndex:0};for(;a<e.segments.length;){if(i>=t.length)return r;const c=e.segments[a],o=t[i];if(Oa(o))break;const s=`${o}`,l=i<t.length-1?t[i+1]:null;if(a>0&&void 0===s)break;if(s&&l&&"object"==typeof l&&void 0===l.outlets){if(!q_(s,l,c))return r;i+=2}else{if(!q_(s,{},c))return r;i++}a++}return{match:!0,pathIndex:a,commandIndex:i}}(e,n,t),a=t.slice(i.commandIndex);if(i.match&&i.pathIndex<e.segments.length){const r=new He(e.segments.slice(0,i.pathIndex),{});return r.children[ye]=new He(e.segments.slice(i.pathIndex),e.children),zo(r,0,a)}return i.match&&0===a.length?new He(e.segments,{}):i.match&&!e.hasChildren()?a5(e,n,t):i.match?zo(e,0,a):a5(e,n,t)}function zo(e,n,t){if(0===t.length)return new He(e.segments,{});{const i=function W$(e){return Oa(e[0])?e[0].outlets:{[ye]:e}}(t),a={};return n2(i,(r,c)=>{"string"==typeof r&&(r=[r]),null!==r&&(a[c]=$_(e.children[c],n,r))}),n2(e.children,(r,c)=>{void 0===i[c]&&(a[c]=r)}),new He(e.segments,a)}}function a5(e,n,t){const i=e.segments.slice(0,n);let a=0;for(;a<t.length;){const r=t[a];if(Oa(r)){const s=Y$(r.outlets);return new He(i,s)}if(0===a&&Do(t[0])){i.push(new Ta(e.segments[n].path,W_(t[0]))),a++;continue}const c=Oa(r)?r.outlets[ye]:`${r}`,o=a<t.length-1?t[a+1]:null;c&&o&&Do(o)?(i.push(new Ta(c,W_(o))),a+=2):(i.push(new Ta(c,{})),a++)}return new He(i,{})}function Y$(e){const n={};return n2(e,(t,i)=>{"string"==typeof t&&(t=[t]),null!==t&&(n[i]=a5(new He([],{}),0,t))}),n}function W_(e){const n={};return n2(e,(t,i)=>n[i]=`${t}`),n}function q_(e,n,t){return e==t.path&&Kt(n,t.parameters)}class Q${constructor(n,t,i,a){this.routeReuseStrategy=n,this.futureState=t,this.currState=i,this.forwardEvent=a}activate(n){const t=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,i,n),e5(this.futureState.root),this.activateChildRoutes(t,i,n)}deactivateChildRoutes(n,t,i){const a=X4(t);n.children.forEach(r=>{const c=r.value.outlet;this.deactivateRoutes(r,a[c],i),delete a[c]}),n2(a,(r,c)=>{this.deactivateRouteAndItsChildren(r,i)})}deactivateRoutes(n,t,i){const a=n.value,r=t?t.value:null;if(a===r)if(a.component){const c=i.getContext(a.outlet);c&&this.deactivateChildRoutes(n,t,c.children)}else this.deactivateChildRoutes(n,t,i);else r&&this.deactivateRouteAndItsChildren(t,i)}deactivateRouteAndItsChildren(n,t){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,t):this.deactivateRouteAndOutlet(n,t)}detachAndStoreRouteSubtree(n,t){const i=t.getContext(n.value.outlet),a=i&&n.value.component?i.children:t,r=X4(n);for(const c of Object.keys(r))this.deactivateRouteAndItsChildren(r[c],a);if(i&&i.outlet){const c=i.outlet.detach(),o=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:c,route:n,contexts:o})}}deactivateRouteAndOutlet(n,t){const i=t.getContext(n.value.outlet),a=i&&n.value.component?i.children:t,r=X4(n);for(const c of Object.keys(r))this.deactivateRouteAndItsChildren(r[c],a);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(n,t,i){const a=X4(t);n.children.forEach(r=>{this.activateRoutes(r,a[r.value.outlet],i),this.forwardEvent(new g$(r.value.snapshot))}),n.children.length&&this.forwardEvent(new p$(n.value.snapshot))}activateRoutes(n,t,i){const a=n.value,r=t?t.value:null;if(e5(a),a===r)if(a.component){const c=i.getOrCreateContext(a.outlet);this.activateChildRoutes(n,t,c.children)}else this.activateChildRoutes(n,t,i);else if(a.component){const c=i.getOrCreateContext(a.outlet);if(this.routeReuseStrategy.shouldAttach(a.snapshot)){const o=this.routeReuseStrategy.retrieve(a.snapshot);this.routeReuseStrategy.store(a.snapshot,null),c.children.onOutletReAttached(o.contexts),c.attachRef=o.componentRef,c.route=o.route.value,c.outlet&&c.outlet.attach(o.componentRef,o.route.value),e5(o.route.value),this.activateChildRoutes(n,null,c.children)}else{const o=function Z$(e){for(let n=e.parent;n;n=n.parent){const t=n.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(a.snapshot),s=o?o.module.componentFactoryResolver:null;c.attachRef=null,c.route=a,c.resolver=s,c.outlet&&c.outlet.activateWith(a,s),this.activateChildRoutes(n,null,c.children)}}else this.activateChildRoutes(n,null,i)}}class r5{constructor(n,t){this.routes=n,this.module=t}}function Yn(e){return"function"==typeof e}function T3(e){return e instanceof A3}const Ra=Symbol("INITIAL_VALUE");function Pa(){return fn(e=>function $8(...e){const n=li(e),t=or(e),{args:i,keys:a}=Pp(e);if(0===i.length)return J1([],n);const r=new Te(function dP(e,n,t=ut){return i=>{Km(n,()=>{const{length:a}=e,r=new Array(a);let c=a,o=a;for(let s=0;s<a;s++)Km(n,()=>{const l=J1(e[s],n);let u=!1;l.subscribe(Re(i,d=>{r[s]=d,u||(u=!0,o--),o||i.next(t(r.slice()))},()=>{--c||i.complete()}))},i)},i)}}(i,n,a?c=>Fp(a,c):ut));return t?r.pipe(M8(t)):r}(e.map(n=>n.pipe(v2(1),function kc(...e){const n=li(e);return r1((t,i)=>{(n?la(e,t,n):la(e,t)).subscribe(i)})}(Ra)))).pipe(g_((n,t)=>{let i=!1;return t.reduce((a,r,c)=>a!==Ra?a:(r===Ra&&(i=!0),i||!1!==r&&c!==t.length-1&&!T3(r)?a:r),n)},Ra),t2(n=>n!==Ra),me(n=>T3(n)?n:!0===n),v2(1)))}class iW{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Fa,this.attachRef=null}}class Fa{constructor(){this.contexts=new Map}onChildOutletCreated(n,t){const i=this.getOrCreateContext(n);i.outlet=t,this.contexts.set(n,i)}onChildOutletDestroyed(n){const t=this.getContext(n);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let t=this.getContext(n);return t||(t=new iW,this.contexts.set(n,t)),t}getContext(n){return this.contexts.get(n)||null}}let c5=(()=>{class e{constructor(t,i,a,r,c){this.parentContexts=t,this.location=i,this.resolver=a,this.changeDetector=c,this.activated=null,this._activatedRoute=null,this.activateEvents=new ie,this.deactivateEvents=new ie,this.attachEvents=new ie,this.detachEvents=new ie,this.name=r||ye,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,i){this.activated=t,this._activatedRoute=i,this.location.insert(t.hostView),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,i){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const c=(i=i||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),o=this.parentContexts.getOrCreateContext(this.name).children,s=new aW(t,o,this.location.injector);this.activated=this.location.createComponent(c,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(t){return new(t||e)(H(Fa),H(U2),H(A4),function n3(e){return function NN(e,n){if("class"===n)return e.classes;if("style"===n)return e.styles;const t=e.attrs;if(t){const i=t.length;let a=0;for(;a<i;){const r=t[a];if(ru(r))break;if(0===r)a+=2;else if("number"==typeof r)for(a++;a<i&&"string"==typeof t[a];)a++;else{if(r===n)return t[a+1];a+=2}}}return null}(P1(),e)}("name"),H(G2))},e.\u0275dir=U({type:e,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),e})();class aW{constructor(n,t,i){this.route=n,this.childContexts=t,this.parent=i}get(n,t){return n===yn?this.route:n===Fa?this.childContexts:this.parent.get(n,t)}}let Y_=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=re({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,i){1&t&&O(0,"router-outlet")},directives:[c5],encapsulation:2}),e})();function K_(e,n=""){for(let t=0;t<e.length;t++){const i=e[t];rW(i,cW(n,i))}}function rW(e,n){e.children&&K_(e.children,n)}function cW(e,n){return n?e||n.path?e&&!n.path?`${e}/`:!e&&n.path?n.path:`${e}/${n.path}`:"":e}function o5(e){const n=e.children&&e.children.map(o5),t=n?Object.assign(Object.assign({},e),{children:n}):Object.assign({},e);return!t.component&&(n||t.loadChildren)&&t.outlet&&t.outlet!==ye&&(t.component=Y_),t}function st(e){return e.outlet||ye}function Q_(e,n){const t=e.filter(i=>st(i)===n);return t.push(...e.filter(i=>st(i)!==n)),t}const Z_={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function No(e,n,t){var i;if(""===n.path)return"full"===n.pathMatch&&(e.hasChildren()||t.length>0)?Object.assign({},Z_):{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const r=(n.matcher||C$)(t,e,n);if(!r)return Object.assign({},Z_);const c={};n2(r.posParams,(s,l)=>{c[l]=s.path});const o=r.consumed.length>0?Object.assign(Object.assign({},c),r.consumed[r.consumed.length-1].parameters):c;return{matched:!0,consumedSegments:r.consumed,remainingSegments:t.slice(r.consumed.length),parameters:o,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function xo(e,n,t,i,a="corrected"){if(t.length>0&&function lW(e,n,t){return t.some(i=>Lo(e,n,i)&&st(i)!==ye)}(e,t,i)){const c=new He(n,function sW(e,n,t,i){const a={};a[ye]=i,i._sourceSegment=e,i._segmentIndexShift=n.length;for(const r of t)if(""===r.path&&st(r)!==ye){const c=new He([],{});c._sourceSegment=e,c._segmentIndexShift=n.length,a[st(r)]=c}return a}(e,n,i,new He(t,e.children)));return c._sourceSegment=e,c._segmentIndexShift=n.length,{segmentGroup:c,slicedSegments:[]}}if(0===t.length&&function uW(e,n,t){return t.some(i=>Lo(e,n,i))}(e,t,i)){const c=new He(e.segments,function oW(e,n,t,i,a,r){const c={};for(const o of i)if(Lo(e,t,o)&&!a[st(o)]){const s=new He([],{});s._sourceSegment=e,s._segmentIndexShift="legacy"===r?e.segments.length:n.length,c[st(o)]=s}return Object.assign(Object.assign({},a),c)}(e,n,t,i,e.children,a));return c._sourceSegment=e,c._segmentIndexShift=n.length,{segmentGroup:c,slicedSegments:t}}const r=new He(e.segments,e.children);return r._sourceSegment=e,r._segmentIndexShift=n.length,{segmentGroup:r,slicedSegments:t}}function Lo(e,n,t){return(!(e.hasChildren()||n.length>0)||"full"!==t.pathMatch)&&""===t.path}function J_(e,n,t,i){return!!(st(e)===i||i!==ye&&Lo(n,t,e))&&("**"===e.path||No(n,e,t).matched)}function X_(e,n,t){return 0===n.length&&!e.children[t]}class So{constructor(n){this.segmentGroup=n||null}}class eC{constructor(n){this.urlTree=n}}function Ba(e){return vo(new So(e))}function tC(e){return vo(new eC(e))}class pW{constructor(n,t,i,a,r){this.configLoader=t,this.urlSerializer=i,this.urlTree=a,this.config=r,this.allowRedirects=!0,this.ngModule=n.get(on)}apply(){const n=xo(this.urlTree.root,[],[],this.config).segmentGroup,t=new He(n.segments,n.children);return this.expandSegmentGroup(this.ngModule,this.config,t,ye).pipe(me(r=>this.createUrlTree(s5(r),this.urlTree.queryParams,this.urlTree.fragment))).pipe(qn(r=>{if(r instanceof eC)return this.allowRedirects=!1,this.match(r.urlTree);throw r instanceof So?this.noMatchError(r):r}))}match(n){return this.expandSegmentGroup(this.ngModule,this.config,n.root,ye).pipe(me(a=>this.createUrlTree(s5(a),n.queryParams,n.fragment))).pipe(qn(a=>{throw a instanceof So?this.noMatchError(a):a}))}noMatchError(n){return new Error(`Cannot match any routes. URL Segment: '${n.segmentGroup}'`)}createUrlTree(n,t,i){const a=n.segments.length>0?new He([],{[ye]:n}):n;return new A3(a,t,i)}expandSegmentGroup(n,t,i,a){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(n,t,i).pipe(me(r=>new He([],r))):this.expandSegment(n,i,t,i.segments,a,!0)}expandChildren(n,t,i){const a=[];for(const r of Object.keys(i.children))"primary"===r?a.unshift(r):a.push(r);return J1(a).pipe(Aa(r=>{const c=i.children[r],o=Q_(t,r);return this.expandSegmentGroup(n,o,c,r).pipe(me(s=>({segment:s,outlet:r})))}),g_((r,c)=>(r[c.outlet]=c.segment,r),{}),function r$(e,n){const t=arguments.length>=2;return i=>i.pipe(e?t2((a,r)=>e(a,r,i)):ut,Yl(1),t?__(n):v_(()=>new _o))}())}expandSegment(n,t,i,a,r,c){return J1(i).pipe(Aa(o=>this.expandSegmentAgainstRoute(n,t,i,o,a,r,c).pipe(qn(l=>{if(l instanceof So)return ce(null);throw l}))),Z4(o=>!!o),qn((o,s)=>{if(o instanceof _o||"EmptyError"===o.name)return X_(t,a,r)?ce(new He([],{})):Ba(t);throw o}))}expandSegmentAgainstRoute(n,t,i,a,r,c,o){return J_(a,t,r,c)?void 0===a.redirectTo?this.matchSegmentAgainstRoute(n,t,a,r,c):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,t,i,a,r,c):Ba(t):Ba(t)}expandSegmentAgainstRouteUsingRedirect(n,t,i,a,r,c){return"**"===a.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,i,a,c):this.expandRegularSegmentAgainstRouteUsingRedirect(n,t,i,a,r,c)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,t,i,a){const r=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?tC(r):this.lineralizeSegments(i,r).pipe(V1(c=>{const o=new He(c,{});return this.expandSegment(n,o,t,c,a,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,t,i,a,r,c){const{matched:o,consumedSegments:s,remainingSegments:l,positionalParamSegments:u}=No(t,a,r);if(!o)return Ba(t);const d=this.applyRedirectCommands(s,a.redirectTo,u);return a.redirectTo.startsWith("/")?tC(d):this.lineralizeSegments(a,d).pipe(V1(p=>this.expandSegment(n,t,i,p.concat(l),c,!1)))}matchSegmentAgainstRoute(n,t,i,a,r){if("**"===i.path)return i.loadChildren?(i._loadedConfig?ce(i._loadedConfig):this.configLoader.load(n.injector,i)).pipe(me(d=>(i._loadedConfig=d,new He(a,{})))):ce(new He(a,{}));const{matched:c,consumedSegments:o,remainingSegments:s}=No(t,i,a);return c?this.getChildConfig(n,i,a).pipe(V1(u=>{const d=u.module,p=u.routes,{segmentGroup:g,slicedSegments:w}=xo(t,o,s,p),V=new He(g.segments,g.children);if(0===w.length&&V.hasChildren())return this.expandChildren(d,p,V).pipe(me(R=>new He(o,R)));if(0===p.length&&0===w.length)return ce(new He(o,{}));const N=st(i)===r;return this.expandSegment(d,V,p,w,N?ye:r,!0).pipe(me(z=>new He(o.concat(z.segments),z.children)))})):Ba(t)}getChildConfig(n,t,i){return t.children?ce(new r5(t.children,n)):t.loadChildren?void 0!==t._loadedConfig?ce(t._loadedConfig):this.runCanLoadGuards(n.injector,t,i).pipe(V1(a=>a?this.configLoader.load(n.injector,t).pipe(me(r=>(t._loadedConfig=r,r))):function dW(e){return vo(Kl(`Cannot load children because the guard of the route "path: '${e.path}'" returned false`))}(t))):ce(new r5([],n))}runCanLoadGuards(n,t,i){const a=t.canLoad;return a&&0!==a.length?ce(a.map(c=>{const o=n.get(c);let s;if(function X$(e){return e&&Yn(e.canLoad)}(o))s=o.canLoad(t,i);else{if(!Yn(o))throw new Error("Invalid CanLoad guard");s=o(t,i)}return Qt(s)})).pipe(Pa(),_2(c=>{if(!T3(c))return;const o=Kl(`Redirecting to "${this.urlSerializer.serialize(c)}"`);throw o.url=c,o}),me(c=>!0===c)):ce(!0)}lineralizeSegments(n,t){let i=[],a=t.root;for(;;){if(i=i.concat(a.segments),0===a.numberOfChildren)return ce(i);if(a.numberOfChildren>1||!a.children[ye])return vo(new Error(`Only absolute redirects can have named outlets. redirectTo: '${n.redirectTo}'`));a=a.children[ye]}}applyRedirectCommands(n,t,i){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),n,i)}applyRedirectCreatreUrlTree(n,t,i,a){const r=this.createSegmentGroup(n,t.root,i,a);return new A3(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(n,t){const i={};return n2(n,(a,r)=>{if("string"==typeof a&&a.startsWith(":")){const o=a.substring(1);i[r]=t[o]}else i[r]=a}),i}createSegmentGroup(n,t,i,a){const r=this.createSegments(n,t.segments,i,a);let c={};return n2(t.children,(o,s)=>{c[s]=this.createSegmentGroup(n,o,i,a)}),new He(r,c)}createSegments(n,t,i,a){return t.map(r=>r.path.startsWith(":")?this.findPosParam(n,r,a):this.findOrReturn(r,i))}findPosParam(n,t,i){const a=i[t.path.substring(1)];if(!a)throw new Error(`Cannot redirect to '${n}'. Cannot find '${t.path}'.`);return a}findOrReturn(n,t){let i=0;for(const a of t){if(a.path===n.path)return t.splice(i),a;i++}return n}}function s5(e){const n={};for(const i of Object.keys(e.children)){const r=s5(e.children[i]);(r.segments.length>0||r.hasChildren())&&(n[i]=r)}return function mW(e){if(1===e.numberOfChildren&&e.children[ye]){const n=e.children[ye];return new He(e.segments.concat(n.segments),n.children)}return e}(new He(e.segments,n))}class nC{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class Ao{constructor(n,t){this.component=n,this.route=t}}function vW(e,n,t){const i=e._root;return Ua(i,n?n._root:null,t,[i.value])}function Eo(e,n,t){const i=function CW(e){if(!e)return null;for(let n=e.parent;n;n=n.parent){const t=n.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(n);return(i?i.module.injector:t).get(e)}function Ua(e,n,t,i,a={canDeactivateChecks:[],canActivateChecks:[]}){const r=X4(n);return e.children.forEach(c=>{(function yW(e,n,t,i,a={canDeactivateChecks:[],canActivateChecks:[]}){const r=e.value,c=n?n.value:null,o=t?t.getContext(e.value.outlet):null;if(c&&r.routeConfig===c.routeConfig){const s=function MW(e,n,t){if("function"==typeof t)return t(e,n);switch(t){case"pathParamsChange":return!E3(e.url,n.url);case"pathParamsOrQueryParamsChange":return!E3(e.url,n.url)||!Kt(e.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!t5(e,n)||!Kt(e.queryParams,n.queryParams);default:return!t5(e,n)}}(c,r,r.routeConfig.runGuardsAndResolvers);s?a.canActivateChecks.push(new nC(i)):(r.data=c.data,r._resolvedData=c._resolvedData),Ua(e,n,r.component?o?o.children:null:t,i,a),s&&o&&o.outlet&&o.outlet.isActivated&&a.canDeactivateChecks.push(new Ao(o.outlet.component,c))}else c&&ja(n,o,a),a.canActivateChecks.push(new nC(i)),Ua(e,null,r.component?o?o.children:null:t,i,a)})(c,r[c.value.outlet],t,i.concat([c.value]),a),delete r[c.value.outlet]}),n2(r,(c,o)=>ja(c,t.getContext(o),a)),a}function ja(e,n,t){const i=X4(e),a=e.value;n2(i,(r,c)=>{ja(r,a.component?n?n.children.getContext(c):null:n,t)}),t.canDeactivateChecks.push(new Ao(a.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,a))}class LW{}function iC(e){return new Te(n=>n.error(e))}class AW{constructor(n,t,i,a,r,c){this.rootComponentType=n,this.config=t,this.urlTree=i,this.url=a,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=c}recognize(){const n=xo(this.urlTree.root,[],[],this.config.filter(c=>void 0===c.redirectTo),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,n,ye);if(null===t)return null;const i=new Vo([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},ye,this.rootComponentType,null,this.urlTree.root,-1,{}),a=new Cn(i,t),r=new B_(this.url,a);return this.inheritParamsAndData(r._root),r}inheritParamsAndData(n){const t=n.value,i=F_(t,this.paramsInheritanceStrategy);t.params=Object.freeze(i.params),t.data=Object.freeze(i.data),n.children.forEach(a=>this.inheritParamsAndData(a))}processSegmentGroup(n,t,i){return 0===t.segments.length&&t.hasChildren()?this.processChildren(n,t):this.processSegment(n,t,t.segments,i)}processChildren(n,t){const i=[];for(const r of Object.keys(t.children)){const c=t.children[r],o=Q_(n,r),s=this.processSegmentGroup(o,c,r);if(null===s)return null;i.push(...s)}const a=aC(i);return function EW(e){e.sort((n,t)=>n.value.outlet===ye?-1:t.value.outlet===ye?1:n.value.outlet.localeCompare(t.value.outlet))}(a),a}processSegment(n,t,i,a){for(const r of n){const c=this.processSegmentAgainstRoute(r,t,i,a);if(null!==c)return c}return X_(t,i,a)?[]:null}processSegmentAgainstRoute(n,t,i,a){if(n.redirectTo||!J_(n,t,i,a))return null;let r,c=[],o=[];if("**"===n.path){const g=i.length>0?D_(i).parameters:{};r=new Vo(i,g,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,oC(n),st(n),n.component,n,rC(t),cC(t)+i.length,sC(n))}else{const g=No(t,n,i);if(!g.matched)return null;c=g.consumedSegments,o=g.remainingSegments,r=new Vo(c,g.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,oC(n),st(n),n.component,n,rC(t),cC(t)+c.length,sC(n))}const s=function TW(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(n),{segmentGroup:l,slicedSegments:u}=xo(t,c,o,s.filter(g=>void 0===g.redirectTo),this.relativeLinkResolution);if(0===u.length&&l.hasChildren()){const g=this.processChildren(s,l);return null===g?null:[new Cn(r,g)]}if(0===s.length&&0===u.length)return[new Cn(r,[])];const d=st(n)===a,p=this.processSegment(s,l,u,d?ye:a);return null===p?null:[new Cn(r,p)]}}function kW(e){const n=e.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function aC(e){const n=[],t=new Set;for(const i of e){if(!kW(i)){n.push(i);continue}const a=n.find(r=>i.value.routeConfig===r.value.routeConfig);void 0!==a?(a.children.push(...i.children),t.add(a)):n.push(i)}for(const i of t){const a=aC(i.children);n.push(new Cn(i.value,a))}return n.filter(i=>!t.has(i))}function rC(e){let n=e;for(;n._sourceSegment;)n=n._sourceSegment;return n}function cC(e){let n=e,t=n._segmentIndexShift?n._segmentIndexShift:0;for(;n._sourceSegment;)n=n._sourceSegment,t+=n._segmentIndexShift?n._segmentIndexShift:0;return t-1}function oC(e){return e.data||{}}function sC(e){return e.resolve||{}}function lC(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function l5(e){return fn(n=>{const t=e(n);return t?J1(t).pipe(me(()=>n)):ce(n)})}class jW extends class UW{shouldDetach(n){return!1}store(n,t){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,t){return n.routeConfig===t.routeConfig}}{}const u5=new ve("ROUTES");class uC{constructor(n,t,i,a){this.injector=n,this.compiler=t,this.onLoadStartListener=i,this.onLoadEndListener=a}load(n,t){if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);const a=this.loadModuleFactory(t.loadChildren).pipe(me(r=>{this.onLoadEndListener&&this.onLoadEndListener(t);const c=r.create(n);return new r5(V_(c.injector.get(u5,void 0,ae.Self|ae.Optional)).map(o5),c)}),qn(r=>{throw t._loader$=void 0,r}));return t._loader$=new n$(a,()=>new fe).pipe(m_()),t._loader$}loadModuleFactory(n){return Qt(n()).pipe(V1(t=>t instanceof nh?ce(t):J1(this.compiler.compileModuleAsync(t))))}}class $W{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,t){return n}}function WW(e){throw e}function qW(e,n,t){return n.parse("/")}function fC(e,n){return ce(null)}const YW={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},KW={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let a2=(()=>{class e{constructor(t,i,a,r,c,o,s){this.rootComponentType=t,this.urlSerializer=i,this.rootContexts=a,this.location=r,this.config=s,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new fe,this.errorHandler=WW,this.malformedUriErrorHandler=qW,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:fC,afterPreactivation:fC},this.urlHandlingStrategy=new $W,this.routeReuseStrategy=new jW,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=c.get(on),this.console=c.get(ek);const d=c.get(Fe);this.isNgZoneEnabled=d instanceof Fe&&Fe.isInAngularZone(),this.resetConfig(s),this.currentUrlTree=function M$(){return new A3(new He([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new uC(c,o,p=>this.triggerEvent(new y_(p)),p=>this.triggerEvent(new M_(p))),this.routerState=P_(this.currentUrlTree,this.rootComponentType),this.transitions=new K1({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var t;return null===(t=this.location.getState())||void 0===t?void 0:t.\u0275routerPageId}setupNavigations(t){const i=this.events;return t.pipe(t2(a=>0!==a.id),me(a=>Object.assign(Object.assign({},a),{extractedUrl:this.urlHandlingStrategy.extract(a.rawUrl)})),fn(a=>{let r=!1,c=!1;return ce(a).pipe(_2(o=>{this.currentNavigation={id:o.id,initialUrl:o.currentRawUrl,extractedUrl:o.extractedUrl,trigger:o.source,extras:o.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),fn(o=>{const s=this.browserUrlTree.toString(),l=!this.navigated||o.extractedUrl.toString()!==s||s!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||l)&&this.urlHandlingStrategy.shouldProcessUrl(o.rawUrl))return dC(o.source)&&(this.browserUrlTree=o.extractedUrl),ce(o).pipe(fn(d=>{const p=this.transitions.getValue();return i.next(new Co(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),p!==this.transitions.getValue()?ft:Promise.resolve(d)}),function gW(e,n,t,i){return fn(a=>function hW(e,n,t,i,a){return new pW(e,n,t,i,a).apply()}(e,n,t,a.extractedUrl,i).pipe(me(r=>Object.assign(Object.assign({},a),{urlAfterRedirects:r}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),_2(d=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:d.urlAfterRedirects})}),function IW(e,n,t,i,a){return V1(r=>function SW(e,n,t,i,a="emptyOnly",r="legacy"){try{const c=new AW(e,n,t,i,a,r).recognize();return null===c?iC(new LW):ce(c)}catch(c){return iC(c)}}(e,n,r.urlAfterRedirects,t(r.urlAfterRedirects),i,a).pipe(me(c=>Object.assign(Object.assign({},r),{targetSnapshot:c}))))}(this.rootComponentType,this.config,d=>this.serializeUrl(d),this.paramsInheritanceStrategy,this.relativeLinkResolution),_2(d=>{if("eager"===this.urlUpdateStrategy){if(!d.extras.skipLocationChange){const g=this.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);this.setBrowserUrl(g,d)}this.browserUrlTree=d.urlAfterRedirects}const p=new s$(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);i.next(p)}));if(l&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:p,extractedUrl:g,source:w,restoredState:V,extras:N}=o,A=new Co(p,this.serializeUrl(g),w,V);i.next(A);const z=P_(g,this.rootComponentType).snapshot;return ce(Object.assign(Object.assign({},o),{targetSnapshot:z,urlAfterRedirects:g,extras:Object.assign(Object.assign({},N),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=o.rawUrl,o.resolve(null),ft}),l5(o=>{const{targetSnapshot:s,id:l,extractedUrl:u,rawUrl:d,extras:{skipLocationChange:p,replaceUrl:g}}=o;return this.hooks.beforePreactivation(s,{navigationId:l,appliedUrlTree:u,rawUrlTree:d,skipLocationChange:!!p,replaceUrl:!!g})}),_2(o=>{const s=new l$(o.id,this.serializeUrl(o.extractedUrl),this.serializeUrl(o.urlAfterRedirects),o.targetSnapshot);this.triggerEvent(s)}),me(o=>Object.assign(Object.assign({},o),{guards:vW(o.targetSnapshot,o.currentSnapshot,this.rootContexts)})),function bW(e,n){return V1(t=>{const{targetSnapshot:i,currentSnapshot:a,guards:{canActivateChecks:r,canDeactivateChecks:c}}=t;return 0===c.length&&0===r.length?ce(Object.assign(Object.assign({},t),{guardsResult:!0})):function HW(e,n,t,i){return J1(e).pipe(V1(a=>function xW(e,n,t,i,a){const r=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return r&&0!==r.length?ce(r.map(o=>{const s=Eo(o,n,a);let l;if(function nW(e){return e&&Yn(e.canDeactivate)}(s))l=Qt(s.canDeactivate(e,n,t,i));else{if(!Yn(s))throw new Error("Invalid CanDeactivate guard");l=Qt(s(e,n,t,i))}return l.pipe(Z4())})).pipe(Pa()):ce(!0)}(a.component,a.route,t,n,i)),Z4(a=>!0!==a,!0))}(c,i,a,e).pipe(V1(o=>o&&function J$(e){return"boolean"==typeof e}(o)?function wW(e,n,t,i){return J1(n).pipe(Aa(a=>la(function DW(e,n){return null!==e&&n&&n(new h$(e)),ce(!0)}(a.route.parent,i),function VW(e,n){return null!==e&&n&&n(new m$(e)),ce(!0)}(a.route,i),function NW(e,n,t){const i=n[n.length-1],r=n.slice(0,n.length-1).reverse().map(c=>function _W(e){const n=e.routeConfig?e.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:e,guards:n}:null}(c)).filter(c=>null!==c).map(c=>p_(()=>ce(c.guards.map(s=>{const l=Eo(s,c.node,t);let u;if(function tW(e){return e&&Yn(e.canActivateChild)}(l))u=Qt(l.canActivateChild(i,e));else{if(!Yn(l))throw new Error("Invalid CanActivateChild guard");u=Qt(l(i,e))}return u.pipe(Z4())})).pipe(Pa())));return ce(r).pipe(Pa())}(e,a.path,t),function zW(e,n,t){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return ce(!0);const a=i.map(r=>p_(()=>{const c=Eo(r,n,t);let o;if(function eW(e){return e&&Yn(e.canActivate)}(c))o=Qt(c.canActivate(n,e));else{if(!Yn(c))throw new Error("Invalid CanActivate guard");o=Qt(c(n,e))}return o.pipe(Z4())}));return ce(a).pipe(Pa())}(e,a.route,t))),Z4(a=>!0!==a,!0))}(i,r,e,n):ce(o)),me(o=>Object.assign(Object.assign({},t),{guardsResult:o})))})}(this.ngModule.injector,o=>this.triggerEvent(o)),_2(o=>{if(T3(o.guardsResult)){const l=Kl(`Redirecting to "${this.serializeUrl(o.guardsResult)}"`);throw l.url=o.guardsResult,l}const s=new u$(o.id,this.serializeUrl(o.extractedUrl),this.serializeUrl(o.urlAfterRedirects),o.targetSnapshot,!!o.guardsResult);this.triggerEvent(s)}),t2(o=>!!o.guardsResult||(this.restoreHistory(o),this.cancelNavigationTransition(o,""),!1)),l5(o=>{if(o.guards.canActivateChecks.length)return ce(o).pipe(_2(s=>{const l=new f$(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot);this.triggerEvent(l)}),fn(s=>{let l=!1;return ce(s).pipe(function OW(e,n){return V1(t=>{const{targetSnapshot:i,guards:{canActivateChecks:a}}=t;if(!a.length)return ce(t);let r=0;return J1(a).pipe(Aa(c=>function RW(e,n,t,i){return function PW(e,n,t,i){const a=lC(e);if(0===a.length)return ce({});const r={};return J1(a).pipe(V1(c=>function FW(e,n,t,i){const a=Eo(e,n,i);return Qt(a.resolve?a.resolve(n,t):a(n,t))}(e[c],n,t,i).pipe(_2(o=>{r[c]=o}))),Yl(1),V1(()=>lC(r).length===a.length?ce(r):ft))}(e._resolve,e,n,i).pipe(me(r=>(e._resolvedData=r,e.data=Object.assign(Object.assign({},e.data),F_(e,t).resolve),null)))}(c.route,i,e,n)),_2(()=>r++),Yl(1),V1(c=>r===a.length?ce(t):ft))})}(this.paramsInheritanceStrategy,this.ngModule.injector),_2({next:()=>l=!0,complete:()=>{l||(this.restoreHistory(s),this.cancelNavigationTransition(s,"At least one route resolver didn't emit any value."))}}))}),_2(s=>{const l=new d$(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot);this.triggerEvent(l)}))}),l5(o=>{const{targetSnapshot:s,id:l,extractedUrl:u,rawUrl:d,extras:{skipLocationChange:p,replaceUrl:g}}=o;return this.hooks.afterPreactivation(s,{navigationId:l,appliedUrlTree:u,rawUrlTree:d,skipLocationChange:!!p,replaceUrl:!!g})}),me(o=>{const s=function P$(e,n,t){const i=Ia(e,n._root,t?t._root:void 0);return new R_(i,n)}(this.routeReuseStrategy,o.targetSnapshot,o.currentRouterState);return Object.assign(Object.assign({},o),{targetRouterState:s})}),_2(o=>{this.currentUrlTree=o.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(o.urlAfterRedirects,o.rawUrl),this.routerState=o.targetRouterState,"deferred"===this.urlUpdateStrategy&&(o.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,o),this.browserUrlTree=o.urlAfterRedirects)}),((e,n,t)=>me(i=>(new Q$(n,i.targetRouterState,i.currentRouterState,t).activate(e),i)))(this.rootContexts,this.routeReuseStrategy,o=>this.triggerEvent(o)),_2({next(){r=!0},complete(){r=!0}}),function c$(e){return r1((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})}(()=>{var o;r||c||this.cancelNavigationTransition(a,`Navigation ID ${a.id} is not equal to the current navigation id ${this.navigationId}`),(null===(o=this.currentNavigation)||void 0===o?void 0:o.id)===a.id&&(this.currentNavigation=null)}),qn(o=>{if(c=!0,function _$(e){return e&&e[H_]}(o)){const s=T3(o.url);s||(this.navigated=!0,this.restoreHistory(a,!0));const l=new C_(a.id,this.serializeUrl(a.extractedUrl),o.message);i.next(l),s?setTimeout(()=>{const u=this.urlHandlingStrategy.merge(o.url,this.rawUrlTree),d={skipLocationChange:a.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||dC(a.source)};this.scheduleNavigation(u,"imperative",null,d,{resolve:a.resolve,reject:a.reject,promise:a.promise})},0):a.resolve(!1)}else{this.restoreHistory(a,!0);const s=new o$(a.id,this.serializeUrl(a.extractedUrl),o);i.next(s);try{a.resolve(this.errorHandler(o))}catch(l){a.reject(l)}}return ft}))}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const i="popstate"===t.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{var a;const r={replaceUrl:!0},c=(null===(a=t.state)||void 0===a?void 0:a.navigationId)?t.state:null;if(c){const s=Object.assign({},c);delete s.navigationId,delete s.\u0275routerPageId,0!==Object.keys(s).length&&(r.state=s)}const o=this.parseUrl(t.url);this.scheduleNavigation(o,i,c,r)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){K_(t),this.config=t.map(o5),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,i={}){const{relativeTo:a,queryParams:r,fragment:c,queryParamsHandling:o,preserveFragment:s}=i,l=a||this.routerState.root,u=s?this.currentUrlTree.fragment:c;let d=null;switch(o){case"merge":d=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=r||null}return null!==d&&(d=this.removeEmptyProps(d)),function U$(e,n,t,i,a){if(0===t.length)return n5(n.root,n.root,n.root,i,a);const r=function j$(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new G_(!0,0,e);let n=0,t=!1;const i=e.reduce((a,r,c)=>{if("object"==typeof r&&null!=r){if(r.outlets){const o={};return n2(r.outlets,(s,l)=>{o[l]="string"==typeof s?s.split("/"):s}),[...a,{outlets:o}]}if(r.segmentPath)return[...a,r.segmentPath]}return"string"!=typeof r?[...a,r]:0===c?(r.split("/").forEach((o,s)=>{0==s&&"."===o||(0==s&&""===o?t=!0:".."===o?n++:""!=o&&a.push(o))}),a):[...a,r]},[]);return new G_(t,n,i)}(t);if(r.toRoot())return n5(n.root,n.root,new He([],{}),i,a);const c=function G$(e,n,t){if(e.isAbsolute)return new i5(n.root,!0,0);if(-1===t.snapshot._lastPathIndex){const r=t.snapshot._urlSegment;return new i5(r,r===n.root,0)}const i=Do(e.commands[0])?0:1;return function $$(e,n,t){let i=e,a=n,r=t;for(;r>a;){if(r-=a,i=i.parent,!i)throw new Error("Invalid number of '../'");a=i.segments.length}return new i5(i,!1,a-r)}(t.snapshot._urlSegment,t.snapshot._lastPathIndex+i,e.numberOfDoubleDots)}(r,n,e),o=c.processChildren?zo(c.segmentGroup,c.index,r.commands):$_(c.segmentGroup,c.index,r.commands);return n5(n.root,c.segmentGroup,o,i,a)}(l,this.currentUrlTree,t,d,null!=u?u:null)}navigateByUrl(t,i={skipLocationChange:!1}){const a=T3(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(a,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,i)}navigate(t,i={skipLocationChange:!1}){return function QW(e){for(let n=0;n<e.length;n++){const t=e[n];if(null==t)throw new Error(`The requested path contains ${t} segment at index ${n}`)}}(t),this.navigateByUrl(this.createUrlTree(t,i),i)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){let i;try{i=this.urlSerializer.parse(t)}catch(a){i=this.malformedUriErrorHandler(a,this.urlSerializer,t)}return i}isActive(t,i){let a;if(a=!0===i?Object.assign({},YW):!1===i?Object.assign({},KW):i,T3(t))return N_(this.currentUrlTree,t,a);const r=this.parseUrl(t);return N_(this.currentUrlTree,r,a)}removeEmptyProps(t){return Object.keys(t).reduce((i,a)=>{const r=t[a];return null!=r&&(i[a]=r),i},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new Ea(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)})}scheduleNavigation(t,i,a,r,c){var o,s;if(this.disposed)return Promise.resolve(!1);let l,u,d;c?(l=c.resolve,u=c.reject,d=c.promise):d=new Promise((w,V)=>{l=w,u=V});const p=++this.navigationId;let g;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(a=this.location.getState()),g=a&&a.\u0275routerPageId?a.\u0275routerPageId:r.replaceUrl||r.skipLocationChange?null!==(o=this.browserPageId)&&void 0!==o?o:0:(null!==(s=this.browserPageId)&&void 0!==s?s:0)+1):g=0,this.setTransition({id:p,targetPageId:g,source:i,restoredState:a,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:r,resolve:l,reject:u,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(w=>Promise.reject(w))}setBrowserUrl(t,i){const a=this.urlSerializer.serialize(t),r=Object.assign(Object.assign({},i.extras.state),this.generateNgRouterState(i.id,i.targetPageId));this.location.isCurrentPathEqualTo(a)||i.extras.replaceUrl?this.location.replaceState(a,"",r):this.location.go(a,"",r)}restoreHistory(t,i=!1){var a,r;if("computed"===this.canceledNavigationResolution){const c=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(a=this.currentNavigation)||void 0===a?void 0:a.finalUrl)||0===c?this.currentUrlTree===(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)&&0===c&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(c)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,i){const a=new C_(t.id,this.serializeUrl(t.extractedUrl),i);this.triggerEvent(a),t.resolve(!1)}generateNgRouterState(t,i){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:i}:{navigationId:t}}}return e.\u0275fac=function(t){t0()},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})();function dC(e){return"imperative"!==e}let Mn=(()=>{class e{constructor(t,i,a){this.router=t,this.route=i,this.locationStrategy=a,this.commands=null,this.href=null,this.onChanges=new fe,this.subscription=t.events.subscribe(r=>{r instanceof Ea&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:null}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,i,a,r,c){if(0!==t||i||a||r||c||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const o={skipLocationChange:ei(this.skipLocationChange),replaceUrl:ei(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ei(this.preserveFragment)})}}return e.\u0275fac=function(t){return new(t||e)(H(a2),H(yn),H(h3))},e.\u0275dir=U({type:e,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,i){1&t&&k("click",function(r){return i.onClick(r.button,r.ctrlKey,r.shiftKey,r.altKey,r.metaKey)}),2&t&&j("target",i.target)("href",i.href,o3)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[D1]}),e})();function ei(e){return""===e||!!e}class hC{}class pC{preload(n,t){return ce(null)}}let mC=(()=>{class e{constructor(t,i,a,r){this.router=t,this.injector=a,this.preloadingStrategy=r,this.loader=new uC(a,i,s=>t.triggerEvent(new y_(s)),s=>t.triggerEvent(new M_(s)))}setUpPreloading(){this.subscription=this.router.events.pipe(t2(t=>t instanceof Ea),Aa(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(on);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,i){const a=[];for(const r of i)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const c=r._loadedConfig;a.push(this.processRoutes(c.module,c.routes))}else r.loadChildren&&!r.canLoad?a.push(this.preloadConfig(t,r)):r.children&&a.push(this.processRoutes(t,r.children));return J1(a).pipe(si(),me(r=>{}))}preloadConfig(t,i){return this.preloadingStrategy.preload(i,()=>(i._loadedConfig?ce(i._loadedConfig):this.loader.load(t.injector,i)).pipe(V1(r=>(i._loadedConfig=r,this.processRoutes(r.module,r.routes)))))}}return e.\u0275fac=function(t){return new(t||e)(q(a2),q(Rh),q(T1),q(hC))},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})(),d5=(()=>{class e{constructor(t,i,a={}){this.router=t,this.viewportScroller=i,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration=a.scrollPositionRestoration||"disabled",a.anchorScrolling=a.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Co?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Ea&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof b_&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,i){this.router.triggerEvent(new b_(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return e.\u0275fac=function(t){t0()},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})();const k3=new ve("ROUTER_CONFIGURATION"),gC=new ve("ROUTER_FORROOT_GUARD"),eq=[e8,{provide:A_,useClass:E_},{provide:a2,useFactory:function rq(e,n,t,i,a,r,c={},o,s){const l=new a2(null,e,n,t,i,a,V_(r));return o&&(l.urlHandlingStrategy=o),s&&(l.routeReuseStrategy=s),function cq(e,n){e.errorHandler&&(n.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(n.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(n.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(n.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(n.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(n.urlUpdateStrategy=e.urlUpdateStrategy),e.canceledNavigationResolution&&(n.canceledNavigationResolution=e.canceledNavigationResolution)}(c,l),c.enableTracing&&l.events.subscribe(u=>{var d,p;null===(d=console.group)||void 0===d||d.call(console,`Router Event: ${u.constructor.name}`),console.log(u.toString()),console.log(u),null===(p=console.groupEnd)||void 0===p||p.call(console)}),l},deps:[A_,Fa,e8,T1,Rh,u5,k3,[class GW{},new Sn],[class BW{},new Sn]]},Fa,{provide:yn,useFactory:function oq(e){return e.routerState.root},deps:[a2]},mC,pC,class XW{preload(n,t){return t().pipe(qn(()=>ce(null)))}},{provide:k3,useValue:{enableTracing:!1}}];function tq(){return new jh("Router",a2)}let vC=(()=>{class e{constructor(t,i){}static forRoot(t,i){return{ngModule:e,providers:[eq,_C(t),{provide:gC,useFactory:aq,deps:[[a2,new Sn,new Vi]]},{provide:k3,useValue:i||{}},{provide:h3,useFactory:iq,deps:[d3,[new Ar(X0),new Sn],k3]},{provide:d5,useFactory:nq,deps:[a2,uO,k3]},{provide:hC,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:pC},{provide:jh,multi:!0,useFactory:tq},[h5,{provide:O0,multi:!0,useFactory:sq,deps:[h5]},{provide:CC,useFactory:lq,deps:[h5]},{provide:Oh,multi:!0,useExisting:CC}]]}}static forChild(t){return{ngModule:e,providers:[_C(t)]}}}return e.\u0275fac=function(t){return new(t||e)(q(gC,8),q(a2,8))},e.\u0275mod=Ae({type:e}),e.\u0275inj=Le({}),e})();function nq(e,n,t){return t.scrollOffset&&n.setOffset(t.scrollOffset),new d5(e,n,t)}function iq(e,n,t={}){return t.useHash?new lp(e,n):new sp(e,n)}function aq(e){return"guarded"}function _C(e){return[{provide:EN,multi:!0,useValue:e},{provide:u5,multi:!0,useValue:e}]}let h5=(()=>{class e{constructor(t){this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new fe}appInitializer(){return this.injector.get(jk,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let i=null;const a=new Promise(o=>i=o),r=this.injector.get(a2),c=this.injector.get(k3);return"disabled"===c.initialNavigation?(r.setUpLocationChangeListener(),i(!0)):"enabled"===c.initialNavigation||"enabledBlocking"===c.initialNavigation?(r.hooks.afterPreactivation=()=>this.initNavigation?ce(null):(this.initNavigation=!0,i(!0),this.resultOfPreactivationDone),r.initialNavigation()):i(!0),a})}bootstrapListener(t){const i=this.injector.get(k3),a=this.injector.get(mC),r=this.injector.get(d5),c=this.injector.get(a2),o=this.injector.get(I4);t===o.components[0]&&(("enabledNonBlocking"===i.initialNavigation||void 0===i.initialNavigation)&&c.initialNavigation(),a.setUpPreloading(),r.init(),c.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return e.\u0275fac=function(t){return new(t||e)(q(T1))},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})();function sq(e){return e.appInitializer.bind(e)}function lq(e){return e.bootstrapListener.bind(e)}const CC=new ve("Router Initializer");let fq=(()=>{class e{constructor(){this.title="config-ui",this.logoSrc="assets/images/homebridge-eufy-security.png"}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=re({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(t,i){1&t&&(v(0,"div",0)(1,"div",1),O(2,"img",2),_(),v(3,"h3",3),M(4," Welcome to"),O(5,"br"),v(6,"b",4),M(7,"Eufy Security Plugin"),_()(),v(8,"h6",3),M(9,"Homebridge plugin for Eufy Security Devices"),_(),O(10,"hr"),v(11,"div",5),O(12,"router-outlet"),_(),O(13,"hr"),v(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&t&&(y(2),b("src",i.logoSrc,o3))},directives:[c5],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}"]}),e})();function yC(e,n,t,i,a,r,c){try{var o=e[r](c),s=o.value}catch(l){return void t(l)}o.done?n(s):Promise.resolve(s).then(i,a)}function be(e){return function(){var n=this,t=arguments;return new Promise(function(i,a){var r=e.apply(n,t);function c(s){yC(r,i,a,c,o,"next",s)}function o(s){yC(r,i,a,c,o,"throw",s)}c(void 0)})}}var LC={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"]},Fy={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"]},S5={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"]},Xb={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"]},J5={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"]},cD={prefix:"fas",iconName:"circle-plus",icon:[512,512,["plus-circle"],"f055","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM232 344V280H168c-13.3 0-24-10.7-24-24s10.7-24 24-24h64V168c0-13.3 10.7-24 24-24s24 10.7 24 24v64h64c13.3 0 24 10.7 24 24s-10.7 24-24 24H280v64c0 13.3-10.7 24-24 24s-24-10.7-24-24z"]},x=(()=>{return(e=x||(x={}))[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",x;var e})();class Ka{static isDoorbell(n){return n===x.DOORBELL||n===x.BATTERY_DOORBELL||n===x.BATTERY_DOORBELL_2||n===x.BATTERY_DOORBELL_PLUS||n===x.DOORBELL_SOLO}static isCamera(n){return n===x.CAMERA||n===x.CAMERA2||n===x.CAMERA_E||n===x.CAMERA2C||n===x.INDOOR_CAMERA||n===x.INDOOR_PT_CAMERA||n===x.FLOODLIGHT||n===x.DOORBELL||n===x.BATTERY_DOORBELL||n===x.BATTERY_DOORBELL_2||n===x.BATTERY_DOORBELL_PLUS||n===x.DOORBELL_SOLO||n===x.CAMERA2C_PRO||n===x.CAMERA2_PRO||n===x.CAMERA3||n===x.CAMERA3C||n===x.INDOOR_CAMERA_1080||n===x.INDOOR_PT_CAMERA_1080||n===x.SOLO_CAMERA||n===x.SOLO_CAMERA_PRO||n===x.SOLO_CAMERA_SPOTLIGHT_1080||n===x.SOLO_CAMERA_SPOTLIGHT_2K||n===x.SOLO_CAMERA_SPOTLIGHT_SOLAR||n===x.INDOOR_OUTDOOR_CAMERA_1080P||n===x.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT||n===x.INDOOR_OUTDOOR_CAMERA_2K||n===x.INDOOR_COST_DOWN_CAMERA||n===x.FLOODLIGHT_CAMERA_8422||n===x.FLOODLIGHT_CAMERA_8423||n===x.FLOODLIGHT_CAMERA_8424||n===x.WALL_LIGHT_CAM||n===x.WALL_LIGHT_CAM_81A0||n===x.CAMERA_GARAGE_T8453_COMMON||n===x.CAMERA_GARAGE_T8453||n===x.CAMERA_GARAGE_T8452||n===x.CAMERA_FG}static supportsRTSP(n){return n===x.CAMERA||n===x.CAMERA2||n===x.CAMERA2C||n===x.CAMERA2C_PRO||n===x.CAMERA3||n===x.CAMERA3C||n===x.CAMERA_E||n===x.INDOOR_CAMERA||n===x.INDOOR_CAMERA_1080||n===x.INDOOR_OUTDOOR_CAMERA_1080P||n===x.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT||n===x.INDOOR_OUTDOOR_CAMERA_2K||n===x.INDOOR_PT_CAMERA||n===x.INDOOR_PT_CAMERA_1080||n===x.INDOOR_COST_DOWN_CAMERA||n===x.FLOODLIGHT_CAMERA_8423||n===x.CAMERA_GARAGE_T8453_COMMON||n===x.CAMERA_GARAGE_T8453||n===x.CAMERA_GARAGE_T8452||n===x.CAMERA_FG}static supportsTalkback(n){return n===x.CAMERA2||n===x.CAMERA2C||n===x.CAMERA2C_PRO||n===x.CAMERA2_PRO||n===x.CAMERA3||n===x.CAMERA3C||n===x.DOORBELL||n===x.BATTERY_DOORBELL||n===x.BATTERY_DOORBELL_2||n===x.BATTERY_DOORBELL_PLUS||n===x.DOORBELL_SOLO||n===x.INDOOR_CAMERA||n===x.INDOOR_CAMERA_1080||n===x.INDOOR_OUTDOOR_CAMERA_1080P||n===x.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT||n===x.INDOOR_OUTDOOR_CAMERA_2K||n===x.INDOOR_PT_CAMERA||n===x.INDOOR_PT_CAMERA_1080||n===x.INDOOR_COST_DOWN_CAMERA||n===x.SOLO_CAMERA||n===x.SOLO_CAMERA_PRO||n===x.SOLO_CAMERA_SPOTLIGHT_1080||n===x.SOLO_CAMERA_SPOTLIGHT_2K||n===x.SOLO_CAMERA_SPOTLIGHT_SOLAR||n===x.FLOODLIGHT||n===x.FLOODLIGHT_CAMERA_8422||n===x.FLOODLIGHT_CAMERA_8423||n===x.FLOODLIGHT_CAMERA_8424||n===x.WALL_LIGHT_CAM||n===x.WALL_LIGHT_CAM_81A0||n===x.CAMERA_GARAGE_T8453_COMMON||n===x.CAMERA_GARAGE_T8453||n===x.CAMERA_GARAGE_T8452||n===x.CAMERA_FG}}const s7=new Map([[x.STATION,{image:"homebase2_large.jpg",padding:"0px"}],[x.HB3,{image:"homebase3_large.jpg",padding:"0px"}],[x.CAMERA,{image:"eufycam_large.jpg",padding:"0px"}],[x.SENSOR,{image:"sensor_large.jpg",padding:"0px"}],[x.FLOODLIGHT,{image:"floodlight_large.jpg",padding:"0px"}],[x.CAMERA_E,{image:"eufycam_large.jpg",padding:"0px"}],[x.DOORBELL,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[x.BATTERY_DOORBELL,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[x.CAMERA2C,{image:"eufycam2c_large.jpg",padding:"0px"}],[x.CAMERA2,{image:"eufycam2_large.jpg",padding:"0px"}],[x.CAMERA3C,{image:"eufycam3c_large.jpg",padding:"0px"}],[x.CAMERA3,{image:"eufycam3_large.jpg",padding:"0px"}],[x.MOTION_SENSOR,{image:"motionsensor_large.jpg",padding:"0px"}],[x.KEYPAD,{image:"keypad_large.jpg",padding:"0px"}],[x.CAMERA2_PRO,{image:"eufycam2pro_large.jpg",padding:"0px"}],[x.CAMERA2C_PRO,{image:"eufycam2cpro_large.jpg",padding:"0px"}],[x.BATTERY_DOORBELL_2,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[x.INDOOR_CAMERA,{image:"indoorcammini_large.jpg",padding:"0px"}],[x.INDOOR_PT_CAMERA,{image:"indoorcamp24_large.jpg",padding:"0px"}],[x.SOLO_CAMERA,{image:"solocame20_large.jpg",padding:"0px"}],[x.SOLO_CAMERA_PRO,{image:"solocame20_large.jpg",padding:"0px"}],[x.INDOOR_CAMERA_1080,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[x.INDOOR_PT_CAMERA_1080,{image:"indoorcamp24_large.jpg",padding:"0px"}],[x.FLOODLIGHT_CAMERA_8422,{image:"floodlight_large.jpg",padding:"0px"}],[x.FLOODLIGHT_CAMERA_8423,{image:"floodlight2pro_large.jpg",padding:"0px"}],[x.FLOODLIGHT_CAMERA_8424,{image:"floodlight2_large.jpg",padding:"0px"}],[x.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[x.INDOOR_OUTDOOR_CAMERA_2K,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[x.INDOOR_OUTDOOR_CAMERA_1080P,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[x.LOCK_BLE,{image:"smartlock_touch_t8510_large.jpg",padding:"0px"}],[x.LOCK_WIFI,{image:"smartlock_touch_t8510_large.jpg",padding:"0px"}],[x.LOCK_BLE_NO_FINGER,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[x.LOCK_WIFI_NO_FINGER,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[x.LOCK_8503,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[x.LOCK_8530,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[x.LOCK_85A3,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[x.LOCK_8592,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[x.LOCK_8504,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[x.SOLO_CAMERA_SPOTLIGHT_1080,{image:"solooutdoorcamc24_large.jpg",padding:"15px"}],[x.SOLO_CAMERA_SPOTLIGHT_2K,{image:"solooutdoorcamc24_large.jpg",padding:"15px"}],[x.SOLO_CAMERA_SPOTLIGHT_SOLAR,{image:"solocams40_large.jpg",padding:"10px"}],[x.SMART_DROP,{image:"smartdrop_t8790_large.jpg",padding:"20px"}],[x.BATTERY_DOORBELL_PLUS,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[x.DOORBELL_SOLO,{image:"wireddoorbelldual_large.jpg",padding:"0px"}],[x.INDOOR_COST_DOWN_CAMERA,{image:"indoorcammini_large.jpg",padding:"0px"}],[x.CAMERA_GUN,{image:"unknown.png",padding:"20px"}],[x.CAMERA_SNAIL,{image:"unknown.png",padding:"20px"}],[x.CAMERA_FG,{image:"4g_lte_starlight_large.jpg",padding:"20px"}],[x.SMART_SAFE_7400,{image:"smartsafe_s10_t7400_large.jpg",padding:"20px"}],[x.SMART_SAFE_7401,{image:"smartsafe_s12_t7401_large.jpg",padding:"20px"}],[x.SMART_SAFE_7402,{image:"unknown.png",padding:"20px"}],[x.SMART_SAFE_7403,{image:"unknown.png",padding:"20px"}],[x.WALL_LIGHT_CAM,{image:"walllight_s100_large.jpg",padding:"20px"}],[x.SMART_TRACK_LINK,{image:"unknown.png",padding:"20px"}],[x.SMART_TRACK_CARD,{image:"unknown.png",padding:"20px"}],[x.LOCK_8502,{image:"unknown.png",padding:"20px"}],[x.LOCK_8506,{image:"unknown.png",padding:"20px"}],[x.WALL_LIGHT_CAM_81A0,{image:"walllight_s100_large",padding:"20px"}],[x.CAMERA_GARAGE_T8452,{image:"garage_camera_t8452_small.jpg",padding:"20px"}],[x.CAMERA_GARAGE_T8453,{image:"unknown.png",padding:"20px"}],[x.CAMERA_GARAGE_T8453_COMMON,{image:"unknown.png",padding:"20px"}]]);let Je=(()=>{class e extends EventTarget{constructor(){super(),this.stations=[],this.devices=[],this.accessories$=g2(window.homebridge,"addAccessory"),this.init()}init(){this.accessories$.subscribe(t=>{this.loadStoredAccessories()}),this.loadStoredAccessories()}getStations(){return this.stations}getDevices(){return this.devices}getStation(t){return this.stations.find(i=>i.uniqueId===t)}getDevice(t){return this.devices.find(i=>i.uniqueId===t)}loadStoredAccessories(){var t=this;return be(function*(){try{const i=yield window.homebridge.request("/storedAccessories");return i.forEach(a=>{t.addAccessory(a)}),0!==i.length&&t.dispatchEvent(new Event("newAccessories")),Promise.resolve(0!==i.length)}catch(i){return Promise.reject(i)}})()}addAccessory(t){const i=t.station?this.stations:this.devices;i.find(a=>a.uniqueId===t.uniqueId)||i.push(t)}getConfig(){var t=this;return be(function*(){return t.config?Promise.resolve(t.config):t.getPlatformConfig()})()}updateConfig(t,i){var a=this;return be(function*(){try{yield window.homebridge.updatePluginConfig([t]),a.config=t,i&&(yield window.homebridge.savePluginConfig()),a.dispatchEvent(new Event("configChanged"))}catch(r){console.log("There was an error updating the credentials in your config: "+r)}})()}getPlatformConfig(){var t=this;return be(function*(){try{const i=yield window.homebridge.getPluginConfig();return i.length>0?(t.config=i[0],t.config.platform="EufySecurity",Promise.resolve(i[0])):Promise.reject("Could not get Platform config")}catch(i){return Promise.reject(i)}})()}getCachedName(t){return be(function*(){let a;return(yield window.homebridge.getCachedAccessories()).forEach(r=>{r.context&&r.context.device&&r.context.device.uniqueId===t.uniqueId&&r.context.device.station===t.station&&(a=r.context.device.displayName)}),Promise.resolve(a)})()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Efe(e,n){if(1&e){const t=z1();v(0,"div",2)(1,"h4",3),M(2,"Refresh stations and devices"),_(),v(3,"button",4),k("click",function(){return W(t).$implicit.dismiss("Cross click")}),_()(),v(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. "),O(7,"p"),v(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."),_(),O(10,"p"),M(11," Otherwise you might experience glitches like no longer working push notifications for the plugin (see "),v(12,"a",8),M(13,"here"),_(),M(14," for more information). "),_()(),v(15,"div",9)(16,"a",10),k("click",function(){return W(t).$implicit.close("Login")}),M(17,"Login with eufy"),_()()}}function Tfe(e,n){1&e&&(v(0,"div",11)(1,"div",12),O(2,"div",13),v(3,"div",14)(4,"div",15)(5,"div",16),M(6," Loading Accessories... "),v(7,"div",17),O(8,"div",18),_()()()(),O(9,"div",13),_()())}function kfe(e,n){if(1&e&&(v(0,"span",42),O(1,"fa-icon",43),_()),2&e){const t=T(3);y(1),b("icon",t.ignoreIcon)}}function Ife(e,n){if(1&e&&(v(0,"div",31)(1,"div",32)(2,"div",33)(3,"a",34)(4,"div",35),O(5,"img",36),v(6,"span",37),O(7,"fa-icon",38),_(),P(8,kfe,2,1,"span",39),_()()()(),v(9,"span",40),M(10),_(),v(11,"span",41),M(12),_()()),2&e){const t=n.$implicit,i=T(2);let a;y(3),z4("routerLink","/stationConfig/",t.uniqueId,""),y(2),b("src","assets/devices/"+(i.DeviceImage.get(t.type)?null==(a=i.DeviceImage.get(t.type))?null:a.image:"unknown.png"),o3),j("style",i.getDevicePanelStyle(t),nn),y(2),b("icon",i.settingsIcon),y(1),b("ngIf",t.ignored),y(2),Bi(t.cachedName?t.cachedName:t.displayName),y(2),it("(",t.uniqueId,")")}}function Ofe(e,n){if(1&e&&(v(0,"span",42),O(1,"fa-icon",43),_()),2&e){const t=T(3);y(1),b("icon",t.ignoreIcon)}}function Rfe(e,n){if(1&e&&(v(0,"div",31)(1,"div",32)(2,"div",33)(3,"a",34)(4,"div",35),O(5,"img",36),v(6,"span",37),O(7,"fa-icon",38),_(),P(8,Ofe,2,1,"span",39),_()()()(),v(9,"span",40),M(10),_(),v(11,"span",41),M(12),_()()),2&e){const t=n.$implicit,i=T(2);let a;y(3),z4("routerLink","/cameraConfig/",t.uniqueId,""),y(2),b("src","assets/devices/"+(i.DeviceImage.get(t.type)?null==(a=i.DeviceImage.get(t.type))?null:a.image:"unknown.png"),o3),j("style",i.getDevicePanelStyle(t),nn),y(2),b("icon",i.settingsIcon),y(1),b("ngIf",t.ignored),y(2),Bi(t.cachedName?t.cachedName:t.displayName),y(2),it("(",t.uniqueId,")")}}function Pfe(e,n){if(1&e){const t=z1();v(0,"div",11)(1,"div",19)(2,"div",20)(3,"button",21),k("click",function(){W(t);const a=T(),r=B2(1);return a.openReloadModal(r)}),O(4,"fa-icon",22),_()(),v(5,"div",23)(6,"a",24),M(7,"Plugin Settings"),_()()(),O(8,"p"),v(9,"span"),M(10,"Click on any device below to access its settings."),_(),O(11,"p"),v(12,"div",25)(13,"div",26),M(14," Stations "),_(),v(15,"div",27)(16,"div",19),P(17,Ife,13,7,"div",28),_()()(),O(18,"p"),v(19,"div",25)(20,"div",26),M(21," Devices "),_(),v(22,"div",29)(23,"div",19),P(24,Rfe,13,7,"div",28),_()()(),O(25,"p"),v(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 "),v(29,"a",30),M(30,"Github page."),_()()()()}if(2&e){const t=T();y(4),b("icon",t.reloadIcon),y(13),b("ngForOf",t.stations),y(7),b("ngForOf",t.devices)}}let Ffe=(()=>{class e{constructor(t,i,a,r){this.modalService=t,this.pluginService=i,this.route=a,this.routerService=r,this.stations=[],this.devices=[],this.settingsIcon=S5,this.ignoreIcon=Fy,this.reloadIcon=J5,this.DeviceImage=s7,this.closeResult=""}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(t=>{t||this.routerService.navigateByUrl("/login")}).catch(t=>{this.routerService.navigateByUrl("/login")})}updateStations(){this.stations=this.pluginService.getStations(),this.updateProperties()}updateDevices(){this.devices=this.pluginService.getDevices(),this.updateProperties()}updateProperties(){var t=this;return be(function*(){const i=yield t.pluginService.getConfig();Array.isArray(i.ignoreStations)&&t.stations.forEach(a=>{a.ignored=void 0!==i.ignoreStations.find(r=>r===a.uniqueId)}),Array.isArray(i.ignoreDevices)&&t.devices.forEach(a=>{a.ignored=void 0!==i.ignoreDevices.find(r=>r===a.uniqueId)}),t.stations.forEach(a=>{t.pluginService.getCachedName(a).then(r=>a.cachedName=r)}),t.devices.forEach(a=>{t.pluginService.getCachedName(a).then(r=>a.cachedName=r)})})()}openReloadModal(t){this.modalService.open(t,{ariaLabelledBy:"modal-basic-title",centered:!0}).result.then(i=>{this.closeResult=`Closed with: ${i}`},i=>{this.closeResult=`Dismissed ${this.getDismissReason(i)}`})}getDismissReason(t){return t===z3.ESC?"by pressing ESC":t===z3.BACKDROP_CLICK?"by clicking on a backdrop":`with: ${t}`}getDevicePanelStyle(t){var i;let a="";return t.ignored&&(a+="opacity: 0.2;"),s7.get(t.type)?a+="padding:"+(null===(i=s7.get(t.type))||void 0===i?void 0:i.padding):a+="padding:20px",a}}return e.\u0275fac=function(t){return new(t||e)(H($g),H(Je),H(yn),H(a2))},e.\u0275cmp=re({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(t,i){1&t&&(P(0,Efe,18,0,"ng-template",null,0,j2),P(2,Tfe,10,0,"div",1),P(3,Pfe,31,3,"div",1)),2&t&&(y(2),b("ngIf",0===i.stations.length&&0===i.devices.length),y(1),b("ngIf",0!==i.stations.length||0!==i.devices.length))},directives:[Mn,j1,h_,p3],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}"]}),e})(),Bfe=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=re({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(t,i){1&t&&(v(0,"div",0)(1,"div",1)(2,"span",2),M(3,"Change username, password and country"),_(),v(4,"a",3),M(5,"New Login"),_()()())},directives:[Mn],encapsulation:2}),e})();class w1{constructor(n){this.pluginService=n,this.config={},this.pluginService.getConfig().then(t=>{this.config=t}).catch(t=>console.log("Could not get config in config interpreter: "+t))}getCameraConfig(n){var t=this;return be(function*(){const i=yield t.pluginService.getConfig();return Array.isArray(i.cameras)?Promise.resolve(i.cameras.find(a=>a.serialNumber===n)):Promise.resolve(void 0)})()}getStationConfig(n){var t=this;return be(function*(){const i=yield t.pluginService.getConfig();return Array.isArray(i.stations)?Promise.resolve(i.stations.find(a=>a.serialNumber===n)):Promise.resolve(void 0)})()}updateConfig(n,t){var i=this;return be(function*(){let a=yield i.pluginService.getConfig();if(t||(a=Object.assign(Object.assign({},a),n)),t&&!1===t.station){Array.isArray(a.cameras)||(a.cameras=[]);let r=-1;a.cameras.forEach((c,o)=>{c.serialNumber===t.uniqueId&&(r=o)}),r>=0?a.cameras[r]=Object.assign(Object.assign({},a.cameras[r]),n):a.cameras.push(Object.assign({serialNumber:t.uniqueId},n))}else if(t&&!0===t.station){Array.isArray(a.stations)||(a.stations=[]);let r=-1;a.stations.forEach((c,o)=>{c.serialNumber===t.uniqueId&&(r=o)}),r>=0?a.stations[r]=Object.assign(Object.assign({},a.stations[r]),n):a.stations.push(Object.assign({serialNumber:t.uniqueId},n))}i.pluginService.updateConfig(a)})()}}let Ufe=(()=>{class e extends w1{constructor(t){super(t),this.value=10,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.\u0275fac=function(t){return new(t||e)(H(Je))},e.\u0275cmp=re({type:e,selectors:[["app-polling-interval-minutes"]],features:[X],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(t,i){1&t&&(v(0,"div",0)(1,"div",1)(2,"span"),M(3,"Polling Interval"),_(),v(4,"div",2)(5,"div",3)(6,"input",4),k("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),_(),v(7,"div",5)(8,"span",6),M(9,"minutes"),_()()()()(),v(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&t&&(y(6),b("ngModel",i.value),j("class",i.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},directives:[P4,On,b1,g1],encapsulation:2}),e})(),jfe=(()=>{class e extends w1{constructor(t){super(t),this.value=30,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.\u0275fac=function(t){return new(t||e)(H(Je))},e.\u0275cmp=re({type:e,selectors:[["app-livestream-duration-seconds"]],features:[X],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(t,i){1&t&&(v(0,"div",0)(1,"div",1)(2,"span"),M(3,"Maximum Livestream Duration"),_(),v(4,"div",2)(5,"div",3)(6,"input",4),k("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),_(),v(7,"div",5)(8,"span",6),M(9,"seconds"),_()()()()(),v(10,"small")(11,"i"),M(12," Time in second before ending the livestream automatically (longer livestreams imply shorter batterylife) "),_()()()),2&t&&(y(6),b("ngModel",i.value),j("class",i.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},directives:[P4,On,b1,g1],encapsulation:2}),e})(),Gfe=(()=>{class e extends w1{constructor(t){super(t),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.\u0275fac=function(t){return new(t||e)(H(Je))},e.\u0275cmp=re({type:e,selectors:[["app-enable-detailed-logging"]],features:[X],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(t,i){1&t&&(v(0,"div",0)(1,"div",1)(2,"span"),M(3,"Debug Mode"),_(),v(4,"div",2)(5,"input",3),k("ngModelChange",function(r){return i.model=r})("change",function(){return i.update()}),_()()(),v(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&t&&(y(5),b("ngModel",i.model))},directives:[p2,b1,g1],encapsulation:2}),e})(),$fe=(()=>{class e extends w1{constructor(t){super(t),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.\u0275fac=function(t){return new(t||e)(H(Je))},e.\u0275cmp=re({type:e,selectors:[["app-omit-log-files"]],features:[X],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(t,i){1&t&&(v(0,"div",0)(1,"div",1)(2,"span"),M(3,"Don't store log files"),_(),v(4,"div",2)(5,"input",3),k("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),_()()(),v(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&t&&(y(5),b("ngModel",i.value))},directives:[p2,b1,g1],encapsulation:2}),e})(),Wfe=(()=>{class e extends w1{constructor(t){super(t),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.\u0275fac=function(t){return new(t||e)(H(Je))},e.\u0275cmp=re({type:e,selectors:[["app-clean-cache"]],features:[X],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(t,i){1&t&&(v(0,"div",0)(1,"div",1)(2,"span"),M(3,"Clean cache automatically"),_(),v(4,"div",2)(5,"input",3),k("ngModelChange",function(r){return i.model=r})("change",function(){return i.update()}),_()()(),v(6,"small")(7,"i"),M(8," When enabled, you let the plugin clean accessory when removed from the Eufy app. "),_()()()),2&t&&(y(5),b("ngModel",i.model))},directives:[p2,b1,g1],encapsulation:2}),e})();function qfe(e,n){1&e&&(v(0,"span"),M(1,"These settings will only apply for this station. The global mappings can be found in the plugin settings."),_())}function Yfe(e,n){1&e&&(v(0,"option",6),M(1,"Use global setting"),_()),2&e&&b("ngValue",void 0)}function Kfe(e,n){1&e&&(v(0,"option",6),M(1,"Use global setting"),_()),2&e&&b("ngValue",void 0)}function Qfe(e,n){1&e&&(v(0,"option",6),M(1,"Use global setting"),_()),2&e&&b("ngValue",void 0)}function Zfe(e,n){1&e&&(v(0,"option",6),M(1,"Use global setting"),_()),2&e&&b("ngValue",void 0)}let Jfe=(()=>{class e extends w1{constructor(t){super(t),this.hkHome=void 0,this.hkAway=void 0,this.hkNight=void 0,this.hkOff=void 0}ngOnInit(){this.readValue()}readValue(){var t=this;return be(function*(){const i=t.accessory?yield t.getStationConfig(t.accessory.uniqueId):yield t.pluginService.getConfig();i&&Object.prototype.hasOwnProperty.call(i,"hkHome")?t.hkHome=i.hkHome:t.accessory||(t.hkHome=1),i&&Object.prototype.hasOwnProperty.call(i,"hkAway")?t.hkAway=i.hkAway:t.accessory||(t.hkAway=0),i&&Object.prototype.hasOwnProperty.call(i,"hkNight")?t.hkNight=i.hkNight:t.accessory||(t.hkNight=3),i&&Object.prototype.hasOwnProperty.call(i,"hkOff")?t.hkOff=i.hkOff:t.accessory||(t.hkOff=63)})()}update(){var t=this;return be(function*(){let i=t.accessory?yield t.getStationConfig(t.accessory.uniqueId):yield t.pluginService.getConfig();void 0===i&&(i={}),void 0===t.hkHome&&Object.prototype.hasOwnProperty.call(i,"hkHome")?delete i.hkHome:i.hkHome=t.hkHome,void 0===t.hkAway&&Object.prototype.hasOwnProperty.call(i,"hkAway")?delete i.hkAway:i.hkAway=t.hkAway,void 0===t.hkNight&&Object.prototype.hasOwnProperty.call(i,"hkNight")?delete i.hkNight:i.hkNight=t.hkNight,void 0===t.hkOff&&Object.prototype.hasOwnProperty.call(i,"hkOff")?delete i.hkOff:i.hkOff=t.hkOff;let a=yield t.pluginService.getConfig();if(t.accessory){Array.isArray(a.stations)||(a.stations=[]);let r=-1;a.stations.forEach((c,o)=>{var s;c.serialNumber===(null===(s=t.accessory)||void 0===s?void 0:s.uniqueId)&&(r=o)}),r>=0?a.stations[r]=i:(i.serialNumber=t.accessory.uniqueId,a.stations.push(i))}else a=i;t.pluginService.updateConfig(a)})()}}return e.\u0275fac=function(t){return new(t||e)(H(Je))},e.\u0275cmp=re({type:e,selectors:[["app-guard-modes-mapping"]],inputs:{accessory:"accessory"},features:[X],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(t,i){1&t&&(v(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."),_(),O(3,"p"),P(4,qfe,2,0,"span",1),O(5,"p"),v(6,"div",2)(7,"label",3),M(8,"HomeKit Home"),_(),v(9,"select",4),k("ngModelChange",function(r){return i.hkHome=r})("change",function(){return i.update()}),P(10,Yfe,2,1,"option",5),v(11,"option",6),M(12,"Eufy Home"),_(),v(13,"option",6),M(14,"Eufy Away"),_(),v(15,"option",6),M(16,"Eufy Schedule"),_(),v(17,"option",6),M(18,"Eufy Custom 1 (Night)"),_(),v(19,"option",6),M(20,"Eufy Custom 2"),_(),v(21,"option",6),M(22,"Eufy Custom 3"),_(),v(23,"option",6),M(24,"Eufy Geofencing"),_(),v(25,"option",6),M(26,"Eufy Disarmed"),_()()(),v(27,"div",2)(28,"label",7),M(29,"HomeKit Away"),_(),v(30,"select",8),k("ngModelChange",function(r){return i.hkAway=r})("change",function(){return i.update()}),P(31,Kfe,2,1,"option",5),v(32,"option",6),M(33,"Eufy Home"),_(),v(34,"option",6),M(35,"Eufy Away"),_(),v(36,"option",6),M(37,"Eufy Schedule"),_(),v(38,"option",6),M(39,"Eufy Custom 1 (Night)"),_(),v(40,"option",6),M(41,"Eufy Custom 2"),_(),v(42,"option",6),M(43,"Eufy Custom 3"),_(),v(44,"option",6),M(45,"Eufy Geofencing"),_(),v(46,"option",6),M(47,"Eufy Disarmed"),_()()(),v(48,"div",2)(49,"label",9),M(50,"HomeKit Night"),_(),v(51,"select",10),k("ngModelChange",function(r){return i.hkNight=r})("change",function(){return i.update()}),P(52,Qfe,2,1,"option",5),v(53,"option",6),M(54,"Eufy Home"),_(),v(55,"option",6),M(56,"Eufy Away"),_(),v(57,"option",6),M(58,"Eufy Schedule"),_(),v(59,"option",6),M(60,"Eufy Custom 1 (Night)"),_(),v(61,"option",6),M(62,"Eufy Custom 2"),_(),v(63,"option",6),M(64,"Eufy Custom 3"),_(),v(65,"option",6),M(66,"Eufy Geofencing"),_(),v(67,"option",6),M(68,"Eufy Disarmed"),_()()(),v(69,"div",2)(70,"label",11),M(71,"HomeKit Off"),_(),v(72,"select",12),k("ngModelChange",function(r){return i.hkOff=r})("change",function(){return i.update()}),P(73,Zfe,2,1,"option",5),v(74,"option",6),M(75,"Eufy Home"),_(),v(76,"option",6),M(77,"Eufy Away"),_(),v(78,"option",6),M(79,"Eufy Schedule"),_(),v(80,"option",6),M(81,"Eufy Custom 1 (Night)"),_(),v(82,"option",6),M(83,"Eufy Custom 2"),_(),v(84,"option",6),M(85,"Eufy Custom 3"),_(),v(86,"option",6),M(87,"Eufy Geofencing"),_(),v(88,"option",6),M(89,"Eufy Disarmed"),_()()()()),2&t&&(y(4),b("ngIf",i.accessory),y(5),b("ngModel",i.hkHome),y(1),b("ngIf",i.accessory),y(1),b("ngValue",1),y(2),b("ngValue",0),y(2),b("ngValue",2),y(2),b("ngValue",3),y(2),b("ngValue",4),y(2),b("ngValue",5),y(2),b("ngValue",47),y(2),b("ngValue",63),y(5),b("ngModel",i.hkAway),y(1),b("ngIf",i.accessory),y(1),b("ngValue",1),y(2),b("ngValue",0),y(2),b("ngValue",2),y(2),b("ngValue",3),y(2),b("ngValue",4),y(2),b("ngValue",5),y(2),b("ngValue",47),y(2),b("ngValue",63),y(5),b("ngModel",i.hkNight),y(1),b("ngIf",i.accessory),y(1),b("ngValue",1),y(2),b("ngValue",0),y(2),b("ngValue",2),y(2),b("ngValue",3),y(2),b("ngValue",4),y(2),b("ngValue",5),y(2),b("ngValue",47),y(2),b("ngValue",63),y(5),b("ngModel",i.hkOff),y(1),b("ngIf",i.accessory),y(1),b("ngValue",1),y(2),b("ngValue",0),y(2),b("ngValue",2),y(2),b("ngValue",3),y(2),b("ngValue",4),y(2),b("ngValue",5),y(2),b("ngValue",47),y(2),b("ngValue",63))},directives:[j1,un,b1,g1,g3,v3],encapsulation:2}),e})();var Xfe=a1(172);function e9e(e,n){if(1&e&&(v(0,"div",7),M(1),_()),2&e){const t=T();y(1),it(" ",t.failureMessage," ")}}function t9e(e,n){1&e&&O(0,"span",10)}function n9e(e,n){1&e&&(v(0,"span"),M(1,"Download Logs"),_())}function i9e(e,n){1&e&&(v(0,"span"),M(1," Generating Log File..."),_())}function a9e(e,n){if(1&e){const t=z1();v(0,"button",8),k("click",function(){return W(t),T().downloadLogs()}),P(1,t9e,1,0,"span",9),P(2,n9e,2,0,"span",6),P(3,i9e,2,0,"span",6),_()}if(2&e){const t=T();j("disabled",!!t.isDownloading||null),y(1),b("ngIf",t.isDownloading),y(1),b("ngIf",!t.isDownloading),y(1),b("ngIf",t.isDownloading)}}function r9e(e,n){if(1&e){const t=z1();v(0,"a",11),k("click",function(){return W(t),T().openLink()}),v(1,"span"),M(2,"Download Logs"),_()()}}function c9e(e,n){if(1&e&&(v(0,"small")(1,"i"),M(2),_()()),2&e){const t=T();y(2),it(" ",t.downloadMessage," ")}}function o9e(e,n){1&e&&(v(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."),O(3,"br"),v(4,"b"),M(5,"Please make sure that you have pop-ups allowed for this site. If you're not sure, maybe this "),v(6,"a",12),M(7,"site"),_(),M(8," can help."),_()()())}let s9e=(()=>{class e{constructor(t,i){this.router=t,this.zone=i,this.failed=!1,this.isDownloading=!1,this.hasDownloaded=!1,this.failureMessage="",this.logFileLocation=""}ngOnInit(){this.routeSub=this.router.events.subscribe(t=>{t instanceof Co&&""!==this.logFileLocation&&(console.log("revoke log zip file blob location url."),window.URL.revokeObjectURL(this.logFileLocation),this.logFileLocation="")}),window.homebridge.addEventListener("downloadLogsFileCount",t=>{this.updateDownloadMessage(`Compressing ${t.data.numberOfFiles} log files...`)})}downloadLogs(){var t=this;return be(function*(){try{t.isDownloading=!0;const i=yield window.homebridge.request("/downloadLogs"),a=Xfe.lW.from(i.data),r=new File([a],"logs.zip",{type:"application/zip"}),c=window.URL.createObjectURL(r);t.logFileLocation=c,window.open(t.logFileLocation),t.updateDownloadMessage(void 0),t.hasDownloaded=!0}catch(i){console.log(i);const a=i;t.failed=!0,t.updateDownloadMessage(void 0),t.failureMessage=`Generating of compressed logs.zip file did not complete: ${a.message}`}finally{t.isDownloading=!1}})()}openLink(){window.open(this.logFileLocation)}updateDownloadMessage(t){this.zone.run(()=>{this.downloadMessage=t})}}return e.\u0275fac=function(t){return new(t||e)(H(a2),H(Fe))},e.\u0275cmp=re({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(t,i){1&t&&(v(0,"div",0),P(1,e9e,2,1,"div",1),v(2,"div",2)(3,"span",3),M(4,"Download Logs"),_(),P(5,a9e,4,4,"button",4),P(6,r9e,3,0,"a",5),_(),P(7,c9e,3,1,"small",6),P(8,o9e,9,0,"small",6),_()),2&t&&(y(1),b("ngIf",i.failed),y(4),b("ngIf",!i.hasDownloaded),y(1),b("ngIf",i.hasDownloaded),y(1),b("ngIf",i.downloadMessage),y(1),b("ngIf",i.hasDownloaded))},directives:[j1],encapsulation:2}),e})(),l9e=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=re({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(t,i){1&t&&(v(0,"div",0)(1,"div",1)(2,"span",2),M(3,"Reset Plugin"),_(),v(4,"a",3),M(5,"Remove everything"),_()(),v(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. "),_()()())},directives:[Mn],encapsulation:2}),e})(),u9e=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=re({type:e,selectors:[["app-advanced-config-options"]],decls:23,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(t,i){1&t&&(v(0,"a",0),M(1,"Back to Devices List"),_(),v(2,"div",1)(3,"div",2),M(4," Advanced Settings "),_(),v(5,"div",3),O(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-guard-modes-mapping")(19,"hr")(20,"app-download-logs")(21,"hr")(22,"app-reset-plugin"),_()())},directives:[Mn,Bfe,Ufe,jfe,Gfe,$fe,Wfe,Jfe,s9e,l9e],encapsulation:2}),e})(),KD=(()=>{class e extends w1{constructor(t){super(t),this.value=!1}ngOnInit(){this.readValue()}readValue(){var t=this;return be(function*(){if(t.config=yield t.pluginService.getConfig(),t.accessory){const i=t.accessory.station?"ignoreStations":"ignoreDevices";Array.isArray(t.config[i])&&(t.value=void 0!==t.config[i].find(a=>a===t.accessory.uniqueId))}})()}update(){var t=this;return be(function*(){if(!t.accessory)return;const i=t.accessory.station?"ignoreStations":"ignoreDevices";t.config=yield t.pluginService.getConfig(),t.value?Array.isArray(t.config[i])&&!t.config[i].find(a=>a===t.accessory.uniqueId)?t.config[i].push(t.accessory.uniqueId):Array.isArray(t.config[i])||(t.config[i]=[t.accessory.uniqueId]):Array.isArray(t.config[i])&&void 0!==t.config[i].find(a=>a===t.accessory.uniqueId)&&(t.config[i]=t.config[i].filter(a=>a!==t.accessory.uniqueId)),t.pluginService.updateConfig(t.config)})()}}return e.\u0275fac=function(t){return new(t||e)(H(Je))},e.\u0275cmp=re({type:e,selectors:[["app-ignore-accessory"]],inputs:{accessory:"accessory"},features:[X],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(t,i){1&t&&(v(0,"div",0)(1,"div",1)(2,"span"),M(3),_(),v(4,"div",2)(5,"input",3),k("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),_()()()()),2&t&&(y(3),it("Ignore ",i.accessory&&i.accessory.station?"Station":"Device",""),y(2),b("ngModel",i.value))},directives:[p2,b1,g1],encapsulation:2}),e})();function f9e(e,n){1&e&&(v(0,"small")(1,"i"),M(2," This option is disabled since doorbells are handled always as cameras. "),_()())}function d9e(e,n){1&e&&(v(0,"small")(1,"i"),M(2," Cameras are handled as Motion Sensor by default, switch this setting to use as Camera "),_()())}let h9e=(()=>{class e extends w1{constructor(t){super(t),this.value=!1,this.disabled=!1}ngOnInit(){this.readValue()}readValue(){var t=this;return be(function*(){var i;t.accessory&&Ka.isDoorbell(t.accessory.type)&&(t.value=!0,t.disabled=!0,t.update());const a=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");a&&Object.prototype.hasOwnProperty.call(a,"enableCamera")&&(t.value=a.enableCamera)})()}update(){this.updateConfig({enableCamera:this.value},this.accessory)}}return e.\u0275fac=function(t){return new(t||e)(H(Je))},e.\u0275cmp=re({type:e,selectors:[["app-enable-camera"]],inputs:{accessory:"accessory"},features:[X],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(t,i){1&t&&(v(0,"div",0)(1,"div",1)(2,"span"),M(3,"Operation Mode"),_(),v(4,"div",2)(5,"select",3),k("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),v(6,"option",4),M(7,"Motion Sensor"),_(),v(8,"option",5),M(9,"Camera"),_()()()(),P(10,f9e,3,0,"small",6),P(11,d9e,3,0,"small",6),_()),2&t&&(y(5),b("ngModel",i.value),j("disabled",!!i.disabled||null),y(5),b("ngIf",i.disabled),y(1),b("ngIf",!i.disabled))},directives:[un,b1,g1,g3,v3,j1],encapsulation:2}),e})(),p9e=(()=>{class e extends w1{constructor(t){super(t),this.value=false}ngOnInit(){this.readValue()}readValue(){var t=this;return be(function*(){var i;const a=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");a&&Object.prototype.hasOwnProperty.call(a,"useCachedLocalLivestream")&&(t.value=a.useCachedLocalLivestream)})()}update(){this.updateConfig({useCachedLocalLivestream:this.value},this.accessory)}}return e.\u0275fac=function(t){return new(t||e)(H(Je))},e.\u0275cmp=re({type:e,selectors:[["app-livestream-cache"]],inputs:{accessory:"accessory"},features:[X],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(t,i){1&t&&(v(0,"div",0)(1,"div",1)(2,"span"),M(3,"Use Local Livestream Caching"),_(),v(4,"div",2)(5,"input",3),k("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),_()()(),v(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)."),_(),O(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&t&&(y(5),b("ngModel",i.value))},directives:[p2,b1,g1],encapsulation:2}),e})();function m9e(e,n){1&e&&(v(0,"div",5),M(1," Talkback will not work while 'RTSP Streaming' is enabled! "),_())}let g9e=(()=>{class e extends w1{constructor(t){super(t),this.value=!1,this.talkbackIsEnabled=!1}ngOnInit(){this.readValue(),this.pluginService.addEventListener("configChanged",()=>this.readValue())}readValue(){var t=this;return be(function*(){var i;const a=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");a&&Object.prototype.hasOwnProperty.call(a,"rtsp")&&(t.value=a.rtsp),a&&Object.prototype.hasOwnProperty.call(a,"talkback")&&(t.talkbackIsEnabled=a.talkback)})()}update(){this.updateConfig({rtsp:this.value},this.accessory)}}return e.\u0275fac=function(t){return new(t||e)(H(Je))},e.\u0275cmp=re({type:e,selectors:[["app-rtsp-streaming"]],inputs:{accessory:"accessory"},features:[X],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(t,i){1&t&&(v(0,"div",0)(1,"div",1)(2,"span"),M(3,"Use RTSP streaming"),_(),v(4,"div",2)(5,"input",3),k("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),_()()(),P(6,m9e,2,0,"div",4),v(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!"),O(10,"br"),_()()()),2&t&&(y(5),b("ngModel",i.value),y(1),b("ngIf",i.talkbackIsEnabled&&i.value))},directives:[p2,b1,g1,j1],encapsulation:2}),e})(),v9e=(()=>{class e extends w1{constructor(t){super(t),this.value=!1,this.samplerate=0}ngOnInit(){this.readValue()}readValue(){var t=this;return be(function*(){var i;const a=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");if(a&&a.videoConfig&&Object.prototype.hasOwnProperty.call(a.videoConfig,"audio")&&(t.value=a.videoConfig.audio),a&&a.videoConfig&&Object.prototype.hasOwnProperty.call(a.videoConfig,"audioSampleRate")){const r=a.videoConfig.audioSampleRate;(8===r||16===r||24===r)&&(t.samplerate=r)}})()}update(){var t=this;return be(function*(){var i,a;if(!t.accessory)return;let r=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");r||(r={serialNumber:null===(a=t.accessory)||void 0===a?void 0:a.uniqueId,videoConfig:{}}),Object.prototype.hasOwnProperty.call(r,"videoConfig")||(r.videoConfig={}),r.videoConfig.audio=t.value,r.videoConfig.audioSampleRate=t.samplerate,t.updateConfig(r,t.accessory)})()}}return e.\u0275fac=function(t){return new(t||e)(H(Je))},e.\u0275cmp=re({type:e,selectors:[["app-enable-audio"]],inputs:{accessory:"accessory"},features:[X],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(t,i){1&t&&(v(0,"div",0)(1,"div",1)(2,"span"),M(3,"Enable Audio"),_(),v(4,"div",2)(5,"input",3),k("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),_()()(),v(6,"small")(7,"i"),M(8," Try to enable audio streaming for this device."),O(9,"br"),M(10," If you encounter problems try to disable this setting. "),_()(),O(11,"p"),v(12,"div",4)(13,"span"),M(14,"Force Audio Sample Rate"),_(),v(15,"div",5)(16,"select",6),k("ngModelChange",function(r){return i.samplerate=r})("change",function(){return i.update()}),v(17,"option",7),M(18,"Default Sample Rate"),_(),v(19,"option",7),M(20,"8 kHz"),_(),v(21,"option",7),M(22,"16 kHz"),_(),v(23,"option",7),M(24,"24 kHz"),_()()()()()),2&t&&(y(5),b("ngModel",i.value),y(11),b("ngModel",i.samplerate),j("disabled",!i.value||null),y(1),b("ngValue",0),y(2),b("ngValue",8),y(2),b("ngValue",16),y(2),b("ngValue",24))},directives:[p2,b1,g1,un,g3,v3],encapsulation:2}),e})();function _9e(e,n){1&e&&(v(0,"div",5),M(1," Talkback will not work while 'RTSP Streaming' is enabled! "),_())}let C9e=(()=>{class e extends w1{constructor(t){super(t),this.value=!1,this.rtspIsEnabled=!1}ngOnInit(){this.readValue(),this.pluginService.addEventListener("configChanged",()=>this.readValue())}readValue(){var t=this;return be(function*(){var i;const a=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");a&&Object.prototype.hasOwnProperty.call(a,"talkback")&&(t.value=a.talkback),a&&Object.prototype.hasOwnProperty.call(a,"rtsp")&&(t.rtspIsEnabled=a.rtsp)})()}update(){this.updateConfig({talkback:this.value},this.accessory)}}return e.\u0275fac=function(t){return new(t||e)(H(Je))},e.\u0275cmp=re({type:e,selectors:[["app-talkback"]],inputs:{accessory:"accessory"},features:[X],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(t,i){1&t&&(v(0,"div",0)(1,"div",1)(2,"span"),M(3,"Enable Talkback (Two way communication)"),_(),v(4,"div",2)(5,"input",3),k("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),_()()(),P(6,_9e,2,0,"div",4),v(7,"small")(8,"i"),M(9," Enables you to talk with someone infront of the camera while streaming. "),O(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."),O(12,"br"),_()()()),2&t&&(y(5),b("ngModel",i.value),y(1),b("ngIf",i.rtspIsEnabled&&i.value))},directives:[p2,b1,g1,j1],encapsulation:2}),e})(),y9e=(()=>{class e extends w1{constructor(t){super(t),this.enableCameraButton=!0,this.enableMotionButton=!0}ngOnInit(){this.readValue()}readValue(){var t=this;return be(function*(){var i;const a=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");a&&Object.prototype.hasOwnProperty.call(a,"enableButton")&&(t.enableCameraButton=a.enableButton),a&&Object.prototype.hasOwnProperty.call(a,"motionButton")&&(t.enableMotionButton=a.motionButton)})()}update(){this.updateConfig({enableButton:this.enableCameraButton,motionButton:this.enableMotionButton},this.accessory)}}return e.\u0275fac=function(t){return new(t||e)(H(Je))},e.\u0275cmp=re({type:e,selectors:[["app-camera-buttons"]],inputs:{accessory:"accessory"},features:[X],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(t,i){1&t&&(v(0,"div",0)(1,"div",1)(2,"span"),M(3,"Display HomeKit button to switch camera on/off"),_(),v(4,"div",2)(5,"input",3),k("ngModelChange",function(r){return i.enableCameraButton=r})("change",function(){return i.update()}),_()()(),v(6,"div",1)(7,"span"),M(8,"Display HomeKit button to switch motion detection on/off"),_(),v(9,"div",2)(10,"input",3),k("ngModelChange",function(r){return i.enableMotionButton=r})("change",function(){return i.update()}),_()()(),v(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 "),v(14,"a",4),M(15,"here"),_(),M(16," for more details. "),_()()()),2&t&&(y(5),b("ngModel",i.enableCameraButton),y(5),b("ngModel",i.enableMotionButton))},directives:[p2,b1,g1],encapsulation:2}),e})(),M9e=(()=>{class e extends w1{constructor(t){super(t),this.value=false}ngOnInit(){this.readValue()}readValue(){var t=this;return be(function*(){var i;const a=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");a&&Object.prototype.hasOwnProperty.call(a,"unbridge")&&(t.value=a.unbridge)})()}update(){this.updateConfig({unbridge:this.value},this.accessory)}}return e.\u0275fac=function(t){return new(t||e)(H(Je))},e.\u0275cmp=re({type:e,selectors:[["app-unbridge-accessory"]],inputs:{accessory:"accessory"},features:[X],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(t,i){1&t&&(v(0,"div",0)(1,"div",1)(2,"span"),M(3,"Unbridge Camera"),_(),v(4,"div",2)(5,"input",3),k("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),_()()(),v(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 "),v(9,"a",4),M(10,"here"),_(),M(11," for mor details. "),_()()()),2&t&&(y(5),b("ngModel",i.value))},directives:[p2,b1,g1],encapsulation:2}),e})();function b9e(e,n){if(1&e&&(v(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."),O(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. "),O(7,"p")(8,"fa-icon",6),M(9," Up-to-date Snapshots (events)"),O(10,"br")(11,"fa-icon",6),M(12," Up-to-date Snapshots (HomeKit View)"),O(13,"br")(14,"fa-icon",7),M(15," Performance"),O(16,"br")(17,"fa-icon",7),M(18," Battery life"),O(19,"br"),_()()),2&e){const t=T();y(8),b("icon",t.plusIcon),y(3),b("icon",t.plusIcon),y(3),b("icon",t.minusIcon),y(3),b("icon",t.minusIcon)}}function H9e(e,n){if(1&e&&(v(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."),O(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. "),O(7,"p")(8,"fa-icon",6),M(9," Up-to-date Snapshots (events)"),O(10,"br")(11,"fa-icon",8),M(12," Up-to-date Snapshots (HomeKit View)"),O(13,"br")(14,"fa-icon",6),M(15," Performance"),O(16,"br")(17,"fa-icon",7),M(18," Battery life"),O(19,"br"),_()()),2&e){const t=T();y(8),b("icon",t.plusIcon),y(3),b("icon",t.mediumIcon),y(3),b("icon",t.plusIcon),y(3),b("icon",t.minusIcon)}}function w9e(e,n){if(1&e&&(v(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."),O(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). "),O(7,"p")(8,"fa-icon",6),M(9," Up-to-date Snapshots (events)"),O(10,"br")(11,"fa-icon",7),M(12," Up-to-date Snapshots (HomeKit View)"),O(13,"br")(14,"fa-icon",6),M(15," Performance"),O(16,"br")(17,"fa-icon",6),M(18," Battery life"),O(19,"br"),_()()),2&e){const t=T();y(8),b("icon",t.plusIcon),y(3),b("icon",t.minusIcon),y(3),b("icon",t.plusIcon),y(3),b("icon",t.plusIcon)}}let V9e=(()=>{class e extends w1{constructor(t){super(t),this.plusIcon=cD,this.minusIcon=LC,this.mediumIcon=Xb,this.value=3}ngOnInit(){this.readValue()}readValue(){var t=this;return be(function*(){var i;const a=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");a&&Object.prototype.hasOwnProperty.call(a,"snapshotHandlingMethod")?t.value=a.snapshotHandlingMethod:a&&Object.prototype.hasOwnProperty.call(a,"forcerefreshsnap")&&(t.value=a.forcerefreshsnap?1:3)})()}update(){this.updateConfig({snapshotHandlingMethod:this.value},this.accessory)}}return e.\u0275fac=function(t){return new(t||e)(H(Je))},e.\u0275cmp=re({type:e,selectors:[["app-snapshot-handling-method"]],inputs:{accessory:"accessory"},features:[X],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(t,i){1&t&&(v(0,"div",0)(1,"div",1)(2,"span"),M(3,"Snapshot Handling Method"),_(),v(4,"div",2)(5,"select",3),k("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),v(6,"option",4),M(7,"Force Refresh Snapshots"),_(),v(8,"option",4),M(9,"Balanced"),_(),v(10,"option",4),M(11,"Cloud Snapshots"),_()()()(),P(12,b9e,20,4,"small",5),P(13,H9e,20,4,"small",5),P(14,w9e,20,4,"small",5),_()),2&t&&(y(5),b("ngModel",i.value),y(1),b("ngValue",1),y(2),b("ngValue",2),y(2),b("ngValue",3),y(2),b("ngIf",1===i.value),y(1),b("ngIf",2===i.value),y(1),b("ngIf",3===i.value))},directives:[un,b1,g1,g3,v3,j1,h_],encapsulation:2}),e})(),D9e=(()=>{class e extends w1{constructor(t){super(t),this.value=false}ngOnInit(){this.readValue()}readValue(){var t=this;return be(function*(){var i;const a=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");a&&Object.prototype.hasOwnProperty.call(a,"immediateRingNotificationWithoutSnapshot")&&(t.value=a.immediateRingNotificationWithoutSnapshot)})()}update(){this.updateConfig({immediateRingNotificationWithoutSnapshot:this.value},this.accessory)}}return e.\u0275fac=function(t){return new(t||e)(H(Je))},e.\u0275cmp=re({type:e,selectors:[["app-immediate-notification-on-ring"]],inputs:{accessory:"accessory"},features:[X],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(t,i){1&t&&(v(0,"div",0)(1,"div",1)(2,"span"),M(3,"Immediate Notification on ring events"),_(),v(4,"div",2)(5,"input",3),k("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),_()()(),v(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."),O(9,"br"),v(10,"b"),M(11,"This option however delivers most likely an empty (black) snapshot on those events!"),_()()()()),2&t&&(y(5),b("ngModel",i.value))},directives:[p2,b1,g1],encapsulation:2}),e})(),z9e=(()=>{class e extends w1{constructor(t){super(t),this.value=false}ngOnInit(){this.readValue()}readValue(){var t=this;return be(function*(){var i;const a=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");a&&Object.prototype.hasOwnProperty.call(a,"delayCameraSnapshot")&&(t.value=a.delayCameraSnapshot)})()}update(){this.updateConfig({delayCameraSnapshot:this.value},this.accessory)}}return e.\u0275fac=function(t){return new(t||e)(H(Je))},e.\u0275cmp=re({type:e,selectors:[["app-delay-camera-snapshots"]],inputs:{accessory:"accessory"},features:[X],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(t,i){1&t&&(v(0,"div",0)(1,"div",1)(2,"span"),M(3,"Night-Vision Improvement for camera snapshots"),_(),v(4,"div",2)(5,"input",3),k("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),_()()(),v(6,"small")(7,"i"),M(8," Force night vision on dark snapshots to improve the image."),O(9,"br"),v(10,"b"),M(11,"The snapshot request will be delayed by half a second if you enable this setting."),_()()()()),2&t&&(y(5),b("ngModel",i.value))},directives:[p2,b1,g1],encapsulation:2}),e})(),N9e=(()=>{class e extends w1{constructor(t){super(t),this.value=0,this.inputIsInvalid=!1}ngOnInit(){this.readValue()}readValue(){var t=this;return be(function*(){var i;const a=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");a&&Object.prototype.hasOwnProperty.call(a,"refreshSnapshotIntervalMinutes")&&(t.value=a.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.\u0275fac=function(t){return new(t||e)(H(Je))},e.\u0275cmp=re({type:e,selectors:[["app-periodic-snapshot-refresh"]],inputs:{accessory:"accessory"},features:[X],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(t,i){1&t&&(v(0,"div",0)(1,"div",1)(2,"span"),M(3,"Periodic Snapshot Refresh"),_(),v(4,"div",2)(5,"input",3),k("change",function(){return i.switchSetting()}),_()()(),v(6,"div",4)(7,"span"),M(8,"Refresh Interval"),_(),v(9,"div",5)(10,"div",6)(11,"input",7),k("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),_(),v(12,"div",8)(13,"span",9),M(14,"minutes"),_()()()()(),v(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."),O(18,"br"),M(19," Best used with 'Cloud Snapshots' handling method."),O(20,"br"),M(21," Every setting below 5 minutes will be discarded due to performance reasons."),O(22,"br"),v(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&t&&(y(5),j("checked",i.value>0||null),y(6),b("ngModel",i.value),j("class",i.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},directives:[P4,On,b1,g1],encapsulation:2}),e})(),x9e=(()=>{class e extends w1{constructor(t){super(t),this.value=!1}ngOnInit(){this.readValue()}readValue(){var t=this;return be(function*(){var i;const a=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");a&&Object.prototype.hasOwnProperty.call(a,"forcerefreshsnap")&&(t.value=a.forcerefreshsnap)})()}update(){this.updateConfig({forcerefreshsnap:this.value},this.accessory)}}return e.\u0275fac=function(t){return new(t||e)(H(Je))},e.\u0275cmp=re({type:e,selectors:[["app-force-refreshsnap"]],inputs:{accessory:"accessory"},features:[X],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(t,i){1&t&&(v(0,"div",0)(1,"div",1)(2,"span"),M(3,"Force Refresh Snapshot (Deprecated)"),_(),v(4,"div",2)(5,"input",3),k("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),_()()(),v(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)."),O(9,"br"),M(10," This option is only used if you have disabled enhanced snapshot handling. "),_()()()),2&t&&(y(5),b("ngModel",i.value))},directives:[p2,b1,g1],encapsulation:2}),e})();function L9e(e,n){1&e&&(v(0,"span")(1,"b"),M(2,"Advanced Video Config"),_()())}function S9e(e,n){1&e&&(v(0,"button",4)(1,"span")(2,"b"),M(3,"Advanced Video Config"),_()()())}function A9e(e,n){if(1&e&&(v(0,"div"),M(1),_()),2&e){const t=T(2);y(1),it(" ",t.presetDescription," ")}}function E9e(e,n){if(1&e){const t=z1();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. "),O(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."),O(3,"p"),v(4,"div",5)(5,"div",6)(6,"select",7),k("ngModelChange",function(a){return W(t),T().preset=a})("change",function(){return W(t),T().loadPreset()}),v(7,"option",8),M(8,"No Preset (default)"),_(),v(9,"option",8),M(10,"Copy"),_(),v(11,"option",8),M(12,"Performance"),_(),v(13,"option",8),M(14,"Custom"),_()()()(),P(15,A9e,2,1,"div",9),O(16,"p"),v(17,"div",10)(18,"div",11)(19,"input",12),k("ngModelChange",function(a){return W(t),T().debug=a})("change",function(){return W(t),T().update()}),_()(),v(20,"span",13),M(21,"ffmpeg debug"),_()(),v(22,"div",10)(23,"div",11)(24,"input",12),k("ngModelChange",function(a){return W(t),T().useSeparateProcesses=a})("change",function(){return W(t),T().update()}),_()(),v(25,"span",13),M(26,"use separate processes for video and audio"),_()(),v(27,"div",10)(28,"div",11)(29,"input",12),k("ngModelChange",function(a){return W(t),T().readRate=a})("change",function(){return W(t),T().update()}),_()(),v(30,"span",13),M(31,"readRate"),_()(),v(32,"div",10)(33,"div",11)(34,"input",14),k("change",function(){W(t);const a=T();return a.vcodec=void 0===a.vcodec?"":void 0,a.update()}),_()(),v(35,"span",13),M(36,"vcodec"),_(),v(37,"input",15),k("ngModelChange",function(a){return W(t),T().vcodec=a})("change",function(){return W(t),T().update()}),_()(),v(38,"div",10)(39,"div",11)(40,"input",14),k("change",function(){W(t);const a=T();return a.acodec=void 0===a.acodec?"":void 0,a.update()}),_()(),v(41,"span",13),M(42,"acodec"),_(),v(43,"input",16),k("ngModelChange",function(a){return W(t),T().acodec=a})("change",function(){return W(t),T().update()}),_()(),v(44,"div",10)(45,"div",11)(46,"input",14),k("change",function(){W(t);const a=T();return a.videoFilter=void 0===a.videoFilter?"":void 0,a.update()}),_()(),v(47,"span",13),M(48,"videoFilter"),_(),v(49,"input",17),k("ngModelChange",function(a){return W(t),T().videoFilter=a})("change",function(){return W(t),T().update()}),_()(),v(50,"div",10)(51,"div",11)(52,"input",14),k("change",function(){W(t);const a=T();return a.encoderOptions=void 0===a.encoderOptions?"":void 0,a.update()}),_()(),v(53,"span",13),M(54,"encoderOptions"),_(),v(55,"input",18),k("ngModelChange",function(a){return W(t),T().encoderOptions=a})("change",function(){return W(t),T().update()}),_()(),v(56,"div",10)(57,"div",11)(58,"input",14),k("change",function(){W(t);const a=T();return a.probeSize=void 0===a.probeSize?0:void 0,a.update()}),_()(),v(59,"span",13),M(60,"probeSize"),_(),v(61,"input",19),k("ngModelChange",function(a){return W(t),T().probeSize=a})("change",function(){return W(t),T().update()}),_()(),v(62,"div",10)(63,"div",11)(64,"input",14),k("change",function(){W(t);const a=T();return a.analyzeDuration=void 0===a.analyzeDuration?0:void 0,a.update()}),_()(),v(65,"span",13),M(66,"analyzeDuration"),_(),v(67,"input",19),k("ngModelChange",function(a){return W(t),T().analyzeDuration=a})("change",function(){return W(t),T().update()}),_()(),v(68,"div",10)(69,"div",11)(70,"input",14),k("change",function(){W(t);const a=T();return a.maxStreams=void 0===a.maxStreams?0:void 0,a.update()}),_()(),v(71,"span",13),M(72,"maxStreams"),_(),v(73,"input",19),k("ngModelChange",function(a){return W(t),T().maxStreams=a})("change",function(){return W(t),T().update()}),_()(),v(74,"div",10)(75,"div",11)(76,"input",14),k("change",function(){W(t);const a=T();return a.maxWidth=void 0===a.maxWidth?0:void 0,a.update()}),_()(),v(77,"span",13),M(78,"maxWidth"),_(),v(79,"input",19),k("ngModelChange",function(a){return W(t),T().maxWidth=a})("change",function(){return W(t),T().update()}),_()(),v(80,"div",10)(81,"div",11)(82,"input",14),k("change",function(){W(t);const a=T();return a.maxHeight=void 0===a.maxHeight?0:void 0,a.update()}),_()(),v(83,"span",13),M(84,"maxHeight"),_(),v(85,"input",19),k("ngModelChange",function(a){return W(t),T().maxHeight=a})("change",function(){return W(t),T().update()}),_()(),v(86,"div",10)(87,"div",11)(88,"input",14),k("change",function(){W(t);const a=T();return a.maxFPS=void 0===a.maxFPS?0:void 0,a.update()}),_()(),v(89,"span",13),M(90,"fps"),_(),v(91,"input",19),k("ngModelChange",function(a){return W(t),T().maxFPS=a})("change",function(){return W(t),T().update()}),_()(),v(92,"div",10)(93,"div",11)(94,"input",14),k("change",function(){W(t);const a=T();return a.maxBitrate=void 0===a.maxBitrate?0:void 0,a.update()}),_()(),v(95,"span",13),M(96,"bitrate"),_(),v(97,"input",19),k("ngModelChange",function(a){return W(t),T().maxBitrate=a})("change",function(){return W(t),T().update()}),_()()}if(2&e){const t=T();y(6),b("ngModel",t.preset),y(1),b("ngValue",0),y(2),b("ngValue",1),y(2),b("ngValue",2),y(2),b("ngValue",3),y(2),b("ngIf",t.presetDescription),y(4),b("ngModel",t.debug),y(5),b("ngModel",t.useSeparateProcesses),y(5),b("ngModel",t.readRate),y(5),b("checked",void 0!==t.vcodec||null),y(3),b("ngModel",t.vcodec),j("disabled",void 0===t.vcodec||null),y(3),b("checked",void 0!==t.acodec||null),y(3),b("ngModel",t.acodec),j("disabled",void 0===t.acodec||null),y(3),b("checked",void 0!==t.videoFilter||null),j("disabled","copy"===t.vcodec||null),y(1),j("style","copy"===t.vcodec?"text-decoration: line-through; color: lightgray;":null,nn),y(2),b("ngModel",t.videoFilter),j("disabled",void 0===t.videoFilter||"copy"===t.vcodec||null),y(3),b("checked",void 0!==t.encoderOptions||null),j("disabled","copy"===t.vcodec||null),y(1),j("style","copy"===t.vcodec?"text-decoration: line-through; color: lightgray;":null,nn),y(2),b("ngModel",t.encoderOptions),j("disabled",void 0===t.encoderOptions||"copy"===t.vcodec||null),y(3),b("checked",void 0!==t.probeSize||null),y(3),b("ngModel",t.probeSize),j("disabled",void 0===t.probeSize||null),y(3),b("checked",void 0!==t.analyzeDuration||null),y(3),b("ngModel",t.analyzeDuration),j("disabled",void 0===t.analyzeDuration||null),y(3),b("checked",void 0!==t.maxStreams||null),y(3),b("ngModel",t.maxStreams),j("disabled",void 0===t.maxStreams||null),y(3),b("checked",void 0!==t.maxWidth||null),j("disabled","copy"===t.vcodec||null),y(1),j("style","copy"===t.vcodec?"text-decoration: line-through; color: lightgray;":null,nn),y(2),b("ngModel",t.maxWidth),j("disabled",void 0===t.maxWidth||"copy"===t.vcodec||null),y(3),b("checked",void 0!==t.maxHeight||null),j("disabled","copy"===t.vcodec||null),y(1),j("style","copy"===t.vcodec?"text-decoration: line-through; color: lightgray;":null,nn),y(2),b("ngModel",t.maxHeight),j("disabled",void 0===t.maxHeight||"copy"===t.vcodec||null),y(3),b("checked",void 0!==t.maxFPS||null),j("disabled","copy"===t.vcodec||null),y(1),j("style","copy"===t.vcodec?"text-decoration: line-through; color: lightgray;":null,nn),y(2),b("ngModel",t.maxFPS),j("disabled",void 0===t.maxFPS||"copy"===t.vcodec||null),y(3),b("checked",void 0!==t.maxBitrate||null),j("disabled","copy"===t.vcodec||null),y(1),j("style","copy"===t.vcodec?"text-decoration: line-through; color: lightgray;":null,nn),y(2),b("ngModel",t.maxBitrate),j("disabled",void 0===t.maxBitrate||"copy"===t.vcodec||null)}}let T9e=(()=>{class e extends w1{constructor(t){super(t),this.debug=void 0,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.preset=0}ngOnInit(){this.readValue()}readValue(){var t=this;return be(function*(){var i;const a=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");a&&Object.prototype.hasOwnProperty.call(a,"videoConfig")&&Object.entries(a.videoConfig).forEach(([r,c])=>{t[r]=c}),t.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 t=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&&(t=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&&(t=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&&(t=2),t!==this.preset&&(this.preset=t)}update(){var t=this;return be(function*(){var i;const a=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||""),r=a&&Object.prototype.hasOwnProperty.call(a,"videoConfig")?a.videoConfig:{},c={};Object.prototype.hasOwnProperty.call(r,"audio")&&(c.audio=r.audio),t.debug&&(c.debug=t.debug),t.readRate&&(c.readRate=t.readRate),t.vcodec&&""!==t.vcodec&&(c.vcodec=t.vcodec),t.acodec&&""!==t.acodec&&(c.acodec=t.acodec),t.videoFilter&&""!==t.videoFilter&&(c.videoFilter=t.videoFilter),t.encoderOptions&&""!==t.encoderOptions&&(c.encoderOptions=t.encoderOptions),void 0!==t.probeSize&&(c.probeSize=t.probeSize),void 0!==t.analyzeDuration&&(c.analyzeDuration=t.analyzeDuration),void 0!==t.maxStreams&&(c.maxStreams=t.maxStreams),void 0!==t.maxWidth&&(c.maxWidth=t.maxWidth),void 0!==t.maxHeight&&(c.maxHeight=t.maxHeight),void 0!==t.maxFPS&&(c.maxFPS=t.maxFPS),void 0!==t.maxBitrate&&(c.maxBitrate=t.maxBitrate),t.useSeparateProcesses&&(c.useSeparateProcesses=t.useSeparateProcesses),t.updateConfig({videoConfig:c},t.accessory),t.updatePreset()})()}}return e.\u0275fac=function(t){return new(t||e)(H(Je))},e.\u0275cmp=re({type:e,selectors:[["app-advanced-videoconfig"]],inputs:{accessory:"accessory"},features:[X],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(t,i){1&t&&(v(0,"ngb-accordion",null,0)(2,"ngb-panel"),P(3,L9e,3,0,"ng-template",1),P(4,S9e,4,0,"ng-template",2),P(5,E9e,98,54,"ng-template",3),_()())},directives:[ll,jc,ol,Uc,ul,sl,un,b1,g1,g3,v3,j1,p2,On,P4],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}"]}),e})();function k9e(e,n){1&e&&O(0,"hr")}function I9e(e,n){1&e&&O(0,"app-rtsp-streaming",6),2&e&&b("accessory",T(3).accessory)}function O9e(e,n){1&e&&O(0,"hr")}function R9e(e,n){1&e&&O(0,"app-talkback",6),2&e&&b("accessory",T(3).accessory)}function P9e(e,n){if(1&e&&(v(0,"div"),O(1,"hr")(2,"app-enable-camera",6)(3,"hr")(4,"app-livestream-cache",6),P(5,k9e,1,0,"hr",2),P(6,I9e,1,1,"app-rtsp-streaming",7),O(7,"hr")(8,"app-enable-audio",6),P(9,O9e,1,0,"hr",2),P(10,R9e,1,1,"app-talkback",7),_()),2&e){const t=T(2);y(2),b("accessory",t.accessory),y(2),b("accessory",t.accessory),y(1),b("ngIf",t.supportsRTSP),y(1),b("ngIf",t.supportsRTSP),y(2),b("accessory",t.accessory),y(1),b("ngIf",t.supportsTalkback),y(1),b("ngIf",t.supportsTalkback)}}function F9e(e,n){if(1&e&&(v(0,"div",3)(1,"div",4)(2,"b"),M(3,"Camera Settings"),_(),M(4," for "),v(5,"i"),M(6),_()(),v(7,"div",5),O(8,"app-ignore-accessory",6),P(9,P9e,11,7,"div",2),_()()),2&e){const t=T();y(6),x4("",t.accessory.displayName," (",t.accessory.uniqueId,")"),y(2),b("accessory",t.accessory),y(1),b("ngIf",t.isCamera)}}function B9e(e,n){if(1&e&&(v(0,"div",3)(1,"div",4)(2,"b"),M(3,"HomeKit Behaviour"),_(),M(4," for "),v(5,"i"),M(6),_()(),v(7,"div",5),O(8,"app-camera-buttons",6)(9,"hr")(10,"app-unbridge-accessory",6),_()()),2&e){const t=T(2);y(6),x4("",t.accessory.displayName," (",t.accessory.uniqueId,")"),y(2),b("accessory",t.accessory),y(2),b("accessory",t.accessory)}}function U9e(e,n){1&e&&O(0,"hr")}function j9e(e,n){1&e&&O(0,"app-immediate-notification-on-ring",6),2&e&&b("accessory",T(3).accessory)}function G9e(e,n){if(1&e&&(v(0,"div"),O(1,"app-force-refreshsnap",6),_()),2&e){const t=T(3);y(1),b("accessory",t.accessory)}}function $9e(e,n){if(1&e&&(v(0,"div",3)(1,"div",4)(2,"b"),M(3,"Snapshot Behaviour"),_(),M(4," for "),v(5,"i"),M(6),_()(),v(7,"div",5),O(8,"app-snapshot-handling-method",6),P(9,U9e,1,0,"hr",2),P(10,j9e,1,1,"app-immediate-notification-on-ring",7),O(11,"hr")(12,"app-delay-camera-snapshots",6)(13,"hr")(14,"app-periodic-snapshot-refresh",6),P(15,G9e,2,1,"div",2),_()()),2&e){const t=T(2);y(6),x4("",t.accessory.displayName," (",t.accessory.uniqueId,")"),y(2),b("accessory",t.accessory),y(1),b("ngIf",t.isDoorbell),y(1),b("ngIf",t.isDoorbell),y(2),b("accessory",t.accessory),y(2),b("accessory",t.accessory),y(1),b("ngIf",!t.showEnhancedSnapshotBehaviour)}}function W9e(e,n){if(1&e&&(v(0,"div"),O(1,"p"),P(2,B9e,11,4,"div",1),O(3,"p"),P(4,$9e,16,8,"div",1),O(5,"p")(6,"app-advanced-videoconfig",6),_()),2&e){const t=T();y(2),b("ngIf",t.accessory),y(2),b("ngIf",t.accessory),y(2),b("accessory",t.accessory)}}let q9e=(()=>{class e extends w1{constructor(t,i){super(t),this.route=i,this.showEnhancedSnapshotBehaviour=!0,this.isDoorbell=!1,this.isCamera=!1,this.supportsRTSP=!1,this.supportsTalkback=!1}ngOnInit(){const t=this.route.snapshot.paramMap.get("uniqueId");this.accessory=this.pluginService.getDevice(t),this.accessory&&(this.isDoorbell=Ka.isDoorbell(this.accessory.type),this.isCamera=Ka.isCamera(this.accessory.type),this.supportsRTSP=Ka.supportsRTSP(this.accessory.type),this.supportsTalkback=Ka.supportsTalkback(this.accessory.type),this.supportsRTSP||this.updateConfig({rtsp:!1},this.accessory),this.supportsTalkback||this.updateConfig({talkback:!1},this.accessory))}updateSnapshotView(t){this.showEnhancedSnapshotBehaviour=t}}return e.\u0275fac=function(t){return new(t||e)(H(Je),H(yn))},e.\u0275cmp=re({type:e,selectors:[["app-camera-config-options"]],features:[X],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(t,i){1&t&&(v(0,"a",0),M(1,"Back to Devices List"),_(),P(2,F9e,10,4,"div",1),P(3,W9e,7,3,"div",2)),2&t&&(y(2),b("ngIf",i.accessory),y(1),b("ngIf",i.isCamera))},directives:[Mn,j1,KD,h9e,p9e,g9e,v9e,C9e,y9e,M9e,V9e,D9e,z9e,N9e,x9e,T9e],encapsulation:2}),e})();var Qa=(()=>{return(e=Qa||(Qa={}))[e.UNKNOWN=0]="UNKNOWN",e[e.CAPTCHA=1]="CAPTCHA",e[e.TFA=2]="TFA",e[e.TIMEOUT=3]="TIMEOUT",Qa;var e})();const Y9e={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 K9e=(()=>{class e{constructor(t){this.pluginService=t}getCredentials(){var t=this;return be(function*(){try{const i=yield t.pluginService.getConfig();return i.username&&i.password?Promise.resolve({username:i.username,password:i.password,country:i.country?i.country:"US",deviceName:i.deviceName}):Promise.reject("no full credentials in config")}catch(i){return Promise.reject("no config")}})()}login(t){return be(function*(){try{const i=yield window.homebridge.request("/login",t);return Promise.resolve(i)}catch(i){return Promise.reject(i)}})()}updateConfigCredentials(t){var i=this;return be(function*(){let a={};try{a=yield i.pluginService.getConfig()}catch(r){console.log("Could not get credentials from config: "+r)}a.username=t.username,a.password=t.password,a.country=t.country,a.deviceName=t.deviceName,yield i.pluginService.updateConfig(a,!0)})()}}return e.\u0275fac=function(t){return new(t||e)(q(Je))},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Q9e(e,n){1&e&&(Q3(),M(0," If you login here the new connection might interfere with any already established connection that was made by the eufy plugin itself."),Z3(),O(1,"p"),v(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 Z9e(e,n){if(1&e){const t=z1();v(0,"p",10)(1,"ngb-alert",11),k("closed",function(){return W(t),T().resetLoginFailed()}),Q3(),v(2,"svg",12),O(3,"use",13),_(),Z3(),v(4,"strong"),M(5,"Login was not successful!"),_()()()}2&e&&(y(1),b("dismissible",!0))}function J9e(e,n){if(1&e&&(v(0,"div",32),Q3(),v(1,"svg",33),O(2,"use",34),_(),Z3(),v(3,"div"),M(4," Please make sure to restart plugin after you're done. "),v(5,"u",35),M(6," Tell me why... "),_()()()),2&e){T(2);const t=B2(6);y(5),b("autoClose","outside")("ngbPopover",t)}}function X9e(e,n){1&e&&(M(0,"You can leave this field blank."),O(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 "),v(3,"a",36),M(4,"this disussion"),_(),M(5," to learn more."))}function ede(e,n){if(1&e&&(v(0,"option"),M(1),_()),2&e){const t=n.$implicit,i=T(2);j("value",t.short)("selected",i.credentials.country===t.short||null),y(1),it("",t.long," ")}}function tde(e,n){1&e&&O(0,"span",37)}function nde(e,n){1&e&&(v(0,"span"),M(1,"..."),_())}function ide(e,n){if(1&e){const t=z1();v(0,"div"),P(1,J9e,7,2,"div",14),v(2,"div",15)(3,"input",16),k("ngModelChange",function(a){return W(t),T().credentials.username=a}),_(),v(4,"label",17),M(5,"Email address"),_()(),O(6,"p"),v(7,"div",15)(8,"input",18),k("ngModelChange",function(a){return W(t),T().credentials.password=a}),_(),v(9,"label",19),M(10,"Password"),_()(),O(11,"p"),v(12,"div",15),P(13,X9e,6,0,"ng-template",null,20,j2),v(15,"input",21),k("ngModelChange",function(a){return W(t),T().credentials.deviceName=a}),_(),v(16,"label",22),M(17,"Device Name"),_()(),v(18,"div",23)(19,"div",24)(20,"select",25),k("ngModelChange",function(a){return W(t),T().credentials.country=a}),P(21,ede,2,3,"option",26),_(),v(22,"small")(23,"i"),M(24," Make sure to use the same country that you use to login with the eufy app. "),_()()(),O(25,"span",27),v(26,"div",28)(27,"button",29),k("click",function(){return W(t),T().login()}),P(28,tde,1,0,"span",30),M(29," Login "),P(30,nde,2,0,"span",9),_(),v(31,"button",31),k("click",function(){return W(t),T().cancelLogin()}),M(32," Cancel "),_()()()()}if(2&e){const t=B2(14),i=T();y(1),b("ngIf",!i.firstLoginAssumed),y(2),b("ngModel",i.credentials.username),j("class",i.emailIsValid?"form-control":"form-control is-invalid")("disabled",!!i.loginInProgress||null),y(5),b("ngModel",i.credentials.password),j("class",i.passwordIsValid?"form-control":"form-control is-invalid")("disabled",!!i.loginInProgress||null),y(7),b("ngModel",i.credentials.deviceName)("ngbTooltip",t)("closeDelay",2500),j("class",i.passwordIsValid?"form-control":"form-control is-invalid")("disabled",!!i.loginInProgress||null),y(5),b("ngModel",i.credentials.country),j("disabled",!!i.loginInProgress||null),y(1),b("ngForOf",i.countries),y(6),j("disabled",!!i.loginInProgress||null),y(1),b("ngIf",i.loginInProgress),y(2),b("ngIf",i.loginInProgress),y(1),j("disabled",!!i.loginInProgress||null)}}function ade(e,n){1&e&&O(0,"span",37)}function rde(e,n){1&e&&(v(0,"span"),M(1,"..."),_())}function cde(e,n){if(1&e){const t=z1();v(0,"div")(1,"div",38),M(2,"You should have gotten a 2FA verification code from eufy in your mail. Please enter this below."),_(),v(3,"div",6)(4,"div",39)(5,"input",40),k("ngModelChange",function(a){return W(t),T().otp=a}),_(),v(6,"label",41),M(7,"2FA Code"),_()()(),v(8,"div",42)(9,"div",43)(10,"button",44),k("click",function(){return W(t),T().login()}),P(11,ade,1,0,"span",30),M(12," Verify "),P(13,rde,2,0,"span",9),_()()(),v(14,"div",6)(15,"div",43)(16,"button",31),k("click",function(){return W(t),T().cancelLogin()}),M(17," Cancel "),_()()()()}if(2&e){const t=T();y(5),b("ngModel",t.otp),j("class",t.otpIsValid?"form-control":"form-control is-invalid")("disabled",!!t.loginInProgress||null),y(5),j("disabled",!!t.loginInProgress||null),y(1),b("ngIf",t.loginInProgress),y(2),b("ngIf",t.loginInProgress),y(3),j("disabled",!!t.loginInProgress||null)}}function ode(e,n){1&e&&O(0,"span",37)}function sde(e,n){1&e&&(v(0,"span"),M(1,"..."),_())}function lde(e,n){if(1&e){const t=z1();v(0,"div")(1,"div",38),M(2,"Please enter the captcha below."),_(),v(3,"div",42),O(4,"img",45),_(),v(5,"div",6)(6,"div",39)(7,"input",40),k("ngModelChange",function(a){return W(t),T().captcha=a}),_(),v(8,"label",41),M(9,"Captcha"),_()()(),v(10,"div",42)(11,"div",43)(12,"button",44),k("click",function(){return W(t),T().login()}),P(13,ode,1,0,"span",30),M(14," Verify "),P(15,sde,2,0,"span",9),_()()(),v(16,"div",6)(17,"div",43)(18,"button",31),k("click",function(){return W(t),T().cancelLogin()}),M(19," Cancel "),_()()()()}if(2&e){const t=T();y(4),b("src",t.captchaImageData,o3),y(3),b("ngModel",t.captcha),j("class",t.captchaIsValid?"form-control":"form-control is-invalid")("disabled",!!t.loginInProgress||null),y(5),j("disabled",!!t.loginInProgress||null),y(1),b("ngIf",t.loginInProgress),y(2),b("ngIf",t.loginInProgress),y(3),j("disabled",!!t.loginInProgress||null)}}var L2=(()=>{return(e=L2||(L2={}))[e.LOGIN=1]="LOGIN",e[e.TFA=2]="TFA",e[e.CAPTCHA=3]="CAPTCHA",L2;var e})();let ude=(()=>{class e{constructor(t,i){this.loginService=t,this.routerService=i,this.countries=[],this.credentials={username:"",password:"",country:"US",deviceName:""},this.otp="",this.captcha="",this.captchaImageData="",this.captchaId="",this.loginInProgress=!1,this.loginFailed=!1,this.loginStep=L2.LOGIN,this.firstLoginAssumed=!1,this.emailIsValid=!0,this.passwordIsValid=!0,this.otpIsValid=!0,this.captchaIsValid=!0}ngOnInit(){this.getCredentials(),this.fillCountryArray()}getCredentials(){this.loginService.getCredentials().then(t=>this.credentials=t).catch(t=>{this.firstLoginAssumed=!0,console.log("Could not get config in login component: "+t)})}fillCountryArray(){Object.entries(Y9e).forEach(([t,i])=>{this.countries.push({short:t,long:i})})}login(){this.inputIsInvalid()||(this.resetLoginFailed(),this.loginInProgress=!0,this.loginStep===L2.LOGIN&&this.loginWithCredentials(),this.loginStep===L2.TFA&&this.loginWithTFA(),this.loginStep===L2.CAPTCHA&&this.loginWithCaptcha())}loginWithCredentials(){var t=this;return be(function*(){let i;try{i=yield t.loginService.login(t.credentials)}catch(a){console.log("login error: "+a)}t.evaluateLoginResult(i)})()}loginWithTFA(){var t=this;return be(function*(){let i;try{i=yield t.loginService.login({verifyCode:t.otp})}catch(a){console.log("login error: "+a)}t.evaluateLoginResult(i)})()}loginWithCaptcha(){var t=this;return be(function*(){let i;try{i=yield t.loginService.login({captcha:{captchaCode:t.captcha,captchaId:t.captchaId}})}catch(a){console.log("login error: "+a)}t.evaluateLoginResult(i)})()}evaluateLoginResult(t){if(this.loginInProgress=!1,t&&t.success)this.loginService.updateConfigCredentials(this.credentials),this.routerService.navigate(["/accessories",{waitForAccessories:!0}]);else{if(t&&t.failReason&&t.failReason===Qa.TFA)return void(this.loginStep=L2.TFA);if(t&&t.failReason&&t.failReason===Qa.CAPTCHA&&t.data&&t.data.id&&t.data.captcha)return this.loginStep=L2.CAPTCHA,this.captchaId=t.data.id,void(this.captchaImageData=t.data.captcha);this.loginStep=L2.LOGIN,this.loginFailed=!0}}inputIsInvalid(){this.emailIsValid=!0,this.passwordIsValid=!0,this.otpIsValid=!0;let t=!1;return this.loginStep===L2.LOGIN&&this.credentials.username.length<4&&(this.emailIsValid=!1,t=!0),this.loginStep===L2.LOGIN&&this.credentials.password.length<4&&(this.passwordIsValid=!1,t=!0),this.loginStep===L2.TFA&&this.otp.length<6&&(this.otpIsValid=!1,t=!0),this.loginStep===L2.CAPTCHA&&this.captcha.length<4&&(this.captchaIsValid=!1,t=!0),t}resetLoginFailed(){this.loginFailed=!1}cancelLogin(){this.routerService.navigate(["/accessories"])}}return e.\u0275fac=function(t){return new(t||e)(H(K9e),H(a2))},e.\u0275cmp=re({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(t,i){1&t&&(Q3(),v(0,"svg",0)(1,"symbol",1),O(2,"path",2),_(),v(3,"symbol",3),O(4,"path",4),_()(),P(5,Q9e,4,0,"ng-template",null,5,j2),Z3(),v(7,"div",6),P(8,Z9e,6,1,"p",7),v(9,"div",8),P(10,ide,33,19,"div",9),P(11,cde,18,7,"div",9),P(12,lde,20,8,"div",9),_()()),2&t&&(y(8),b("ngIf",i.loginFailed),y(2),b("ngIf",1===i.loginStep),y(1),b("ngIf",2===i.loginStep),y(1),b("ngIf",3===i.loginStep))},directives:[j1,Cg,ej,On,b1,g1,j8,cj,un,p3,g3,v3],encapsulation:2}),e})(),fde=(()=>{class e extends w1{constructor(t){super(t),this.value=[]}ngOnInit(){this.readValue()}readValue(){var t=this;return be(function*(){var i;const a=yield t.getStationConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");a&&Array.isArray(a.manualTriggerModes)&&(t.value=a.manualTriggerModes)})()}toggle(t){-1!==this.value.indexOf(t)?this.value=this.value.filter(i=>i!==t):this.value.push(t)}update(){this.updateConfig({manualTriggerModes:this.value},this.accessory)}}return e.\u0275fac=function(t){return new(t||e)(H(Je))},e.\u0275cmp=re({type:e,selectors:[["app-manual-alarm-modes"]],inputs:{accessory:"accessory"},features:[X],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(t,i){1&t&&(v(0,"div",0)(1,"span",1),M(2,"Manual Alarm Trigger Modes"),_(),v(3,"div",2)(4,"span"),M(5,"HomeKit Home"),_(),v(6,"div",3)(7,"input",4),k("change",function(){return i.toggle(0),i.update()}),_()()(),v(8,"div",2)(9,"span"),M(10,"HomeKit Away"),_(),v(11,"div",3)(12,"input",4),k("change",function(){return i.toggle(1),i.update()}),_()()(),v(13,"div",2)(14,"span"),M(15,"HomeKit Night"),_(),v(16,"div",3)(17,"input",4),k("change",function(){return i.toggle(2),i.update()}),_()()(),v(18,"div",2)(19,"span"),M(20,"HomeKit Off/Disarmed"),_(),v(21,"div",3)(22,"input",4),k("change",function(){return i.toggle(3),i.update()}),_()()(),v(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."),O(26,"p"),M(27," In order to do so, you must specify in which station mode the alarm can be triggered. "),O(28,"p"),M(29," Please be aware that this setting can only be set on a per station basis and not per automation."),O(30,"br"),M(31," By default the alarm cause will be shown as 'motion detected' in the eufy app. "),O(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."),O(34,"br"),M(35," The native alarm delay setting is currently not supported. "),_()()()),2&t&&(y(7),j("checked",-1!==i.value.indexOf(0)||null),y(5),j("checked",-1!==i.value.indexOf(1)||null),y(5),j("checked",-1!==i.value.indexOf(2)||null),y(5),j("checked",-1!==i.value.indexOf(3)||null))},encapsulation:2}),e})();function dde(e,n){if(1&e&&(v(0,"div",2)(1,"div",3)(2,"b"),M(3,"Station Settings"),_(),M(4," for "),v(5,"i"),M(6),_()(),v(7,"div",4),O(8,"app-ignore-accessory",5)(9,"hr")(10,"app-manual-alarm-modes",5),_()()),2&e){const t=T();y(6),x4("",t.accessory.displayName," (",t.accessory.uniqueId,")"),y(2),b("accessory",t.accessory),y(2),b("accessory",t.accessory)}}function pde(e,n){if(1&e){const t=z1();v(0,"p",7)(1,"ngb-alert",8),k("closed",function(){return W(t),T().failed=!1}),Q3(),v(2,"svg",9),O(3,"use",10),_(),Z3(),v(4,"strong"),M(5,"Reset was not successful!"),_()()()}2&e&&(y(1),b("dismissible",!0))}const mde=[{path:"",redirectTo:"/accessories",pathMatch:"full"},{path:"accessories",component:Ffe},{path:"advancedConfig",component:u9e},{path:"cameraConfig/:uniqueId",component:q9e},{path:"stationConfig/:uniqueId",component:(()=>{class e{constructor(t,i){this.pluginService=t,this.route=i}ngOnInit(){const t=this.route.snapshot.paramMap.get("uniqueId");this.accessory=this.pluginService.getStation(t)}}return e.\u0275fac=function(t){return new(t||e)(H(Je),H(yn))},e.\u0275cmp=re({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(t,i){1&t&&(v(0,"a",0),M(1,"Back to Devices List"),_(),P(2,dde,11,4,"div",1)),2&t&&(y(2),b("ngIf",i.accessory))},directives:[Mn,j1,KD,fde],encapsulation:2}),e})()},{path:"login",component:ude},{path:"reset",component:(()=>{class e{constructor(t,i){this.routerService=t,this.pluginService=i,this.disabled=!1,this.failed=!1}cancel(){this.routerService.navigateByUrl("/accessories")}resetEverything(){var t=this;return be(function*(){t.disabled=!0;try{const i=yield window.homebridge.request("/reset");t.failed=1!==i.result}catch(i){t.failed=!0}t.disabled=!1,t.failed||(yield t.pluginService.updateConfig({},!0),window.homebridge.closeSettings())})()}}return e.\u0275fac=function(t){return new(t||e)(H(a2),H(Je))},e.\u0275cmp=re({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(t,i){1&t&&(v(0,"div",0),P(1,pde,6,1,"p",1),v(2,"div",2)(3,"h3",3),M(4,"Are you sure that you want to erase everything?"),_(),v(5,"div",4)(6,"button",5),k("click",function(){return i.cancel()}),M(7,"No"),_(),v(8,"button",6),k("click",function(){return i.resetEverything()}),M(9,"Do it!"),_()()()()),2&t&&(y(1),b("ngIf",i.failed),y(5),j("disabled",!!i.disabled||null),y(2),j("disabled",!!i.disabled||null))},directives:[j1,Cg],encapsulation:2}),e})()},{path:"**",redirectTo:"/accessories"}];let gde=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ae({type:e}),e.\u0275inj=Le({imports:[[vC.forRoot(mde,{scrollPositionRestoration:"enabled"})],vC]}),e})(),vde=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ae({type:e,bootstrap:[fq]}),e.\u0275inj=Le({providers:[{provide:h3,useClass:lp}],imports:[[RO,jm,lj,gde,t$]]}),e})();(function bk(){Yh=!1})(),IO().bootstrapModule(vde).catch(e=>console.error(e))},343:(P3,S2)=>{"use strict";S2.byteLength=function Xe(ne){var _e=xe(ne),f1=_e[1];return 3*(_e[0]+f1)/4-f1},S2.toByteArray=function S1(ne){var _e,s2,Be=xe(ne),f1=Be[0],_1=Be[1],We=new c2(function S(ne,_e,Be){return 3*(_e+Be)/4-Be}(0,f1,_1)),o2=0,Q2=_1>0?f1-4:f1;for(s2=0;s2<Q2;s2+=4)_e=Y[ne.charCodeAt(s2)]<<18|Y[ne.charCodeAt(s2+1)]<<12|Y[ne.charCodeAt(s2+2)]<<6|Y[ne.charCodeAt(s2+3)],We[o2++]=_e>>16&255,We[o2++]=_e>>8&255,We[o2++]=255&_e;return 2===_1&&(_e=Y[ne.charCodeAt(s2)]<<2|Y[ne.charCodeAt(s2+1)]>>4,We[o2++]=255&_e),1===_1&&(_e=Y[ne.charCodeAt(s2)]<<10|Y[ne.charCodeAt(s2+1)]<<4|Y[ne.charCodeAt(s2+2)]>>2,We[o2++]=_e>>8&255,We[o2++]=255&_e),We},S2.fromByteArray=function R1(ne){for(var _e,Be=ne.length,f1=Be%3,_1=[],o2=0,Q2=Be-f1;o2<Q2;o2+=16383)_1.push(A1(ne,o2,o2+16383>Q2?Q2:o2+16383));return 1===f1?_1.push(a1[(_e=ne[Be-1])>>2]+a1[_e<<4&63]+"=="):2===f1&&_1.push(a1[(_e=(ne[Be-2]<<8)+ne[Be-1])>>10]+a1[_e>>4&63]+a1[_e<<2&63]+"="),_1.join("")};for(var a1=[],Y=[],c2="undefined"!=typeof Uint8Array?Uint8Array:Array,v1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$e=0,we=v1.length;$e<we;++$e)a1[$e]=v1[$e],Y[v1.charCodeAt($e)]=$e;function xe(ne){var _e=ne.length;if(_e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var Be=ne.indexOf("=");return-1===Be&&(Be=_e),[Be,Be===_e?0:4-Be%4]}function e1(ne){return a1[ne>>18&63]+a1[ne>>12&63]+a1[ne>>6&63]+a1[63&ne]}function A1(ne,_e,Be){for(var _1=[],We=_e;We<Be;We+=3)_1.push(e1((ne[We]<<16&16711680)+(ne[We+1]<<8&65280)+(255&ne[We+2])));return _1.join("")}Y["-".charCodeAt(0)]=62,Y["_".charCodeAt(0)]=63},172:(P3,S2,a1)=>{"use strict";const c2=a1(343),v1=a1(461),$e="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;S2.lW=S,S2.h2=50;const we=2147483647;function Xe(m){if(m>we)throw new RangeError('The value "'+m+'" is invalid for option "size"');const f=new Uint8Array(m);return Object.setPrototypeOf(f,S.prototype),f}function S(m,f,h){if("number"==typeof m){if("string"==typeof f)throw new TypeError('The "string" argument must be of type string. Received type number');return R1(m)}return S1(m,f,h)}function S1(m,f,h){if("string"==typeof m)return function ne(m,f){if(("string"!=typeof f||""===f)&&(f="utf8"),!S.isEncoding(f))throw new TypeError("Unknown encoding: "+f);const h=0|Q2(m,f);let C=Xe(h);const D=C.write(m,f);return D!==h&&(C=C.slice(0,D)),C}(m,f);if(ArrayBuffer.isView(m))return function Be(m){if(Z2(m,Uint8Array)){const f=new Uint8Array(m);return f1(f.buffer,f.byteOffset,f.byteLength)}return _e(m)}(m);if(null==m)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof m);if(Z2(m,ArrayBuffer)||m&&Z2(m.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(Z2(m,SharedArrayBuffer)||m&&Z2(m.buffer,SharedArrayBuffer)))return f1(m,f,h);if("number"==typeof m)throw new TypeError('The "value" argument must not be of type number. Received type number');const C=m.valueOf&&m.valueOf();if(null!=C&&C!==m)return S.from(C,f,h);const D=function _1(m){if(S.isBuffer(m)){const f=0|We(m.length),h=Xe(f);return 0===h.length||m.copy(h,0,0,f),h}return void 0!==m.length?"number"!=typeof m.length||Qn(m.length)?Xe(0):_e(m):"Buffer"===m.type&&Array.isArray(m.data)?_e(m.data):void 0}(m);if(D)return D;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof m[Symbol.toPrimitive])return S.from(m[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 m)}function e1(m){if("number"!=typeof m)throw new TypeError('"size" argument must be of type number');if(m<0)throw new RangeError('The value "'+m+'" is invalid for option "size"')}function R1(m){return e1(m),Xe(m<0?0:0|We(m))}function _e(m){const f=m.length<0?0:0|We(m.length),h=Xe(f);for(let C=0;C<f;C+=1)h[C]=255&m[C];return h}function f1(m,f,h){if(f<0||m.byteLength<f)throw new RangeError('"offset" is outside of buffer bounds');if(m.byteLength<f+(h||0))throw new RangeError('"length" is outside of buffer bounds');let C;return C=void 0===f&&void 0===h?new Uint8Array(m):void 0===h?new Uint8Array(m,f):new Uint8Array(m,f,h),Object.setPrototypeOf(C,S.prototype),C}function We(m){if(m>=we)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+we.toString(16)+" bytes");return 0|m}function Q2(m,f){if(S.isBuffer(m))return m.length;if(ArrayBuffer.isView(m)||Z2(m,ArrayBuffer))return m.byteLength;if("string"!=typeof m)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof m);const h=m.length,C=arguments.length>2&&!0===arguments[2];if(!C&&0===h)return 0;let D=!1;for(;;)switch(f){case"ascii":case"latin1":case"binary":return h;case"utf8":case"utf-8":return ir(m).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*h;case"hex":return h>>>1;case"base64":return rr(m).length;default:if(D)return C?-1:ir(m).length;f=(""+f).toLowerCase(),D=!0}}function s2(m,f,h){let C=!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(m||(m="utf8");;)switch(m){case"hex":return cs(this,f,h);case"utf8":case"utf-8":return as(this,f,h);case"ascii":return er(this,f,h);case"latin1":case"binary":return rs(this,f,h);case"base64":return ut(this,f,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return os(this,f,h);default:if(C)throw new TypeError("Unknown encoding: "+m);m=(m+"").toLowerCase(),C=!0}}function lt(m,f,h){const C=m[f];m[f]=m[h],m[h]=C}function Xa(m,f,h,C,D){if(0===m.length)return-1;if("string"==typeof h?(C=h,h=0):h>2147483647?h=2147483647:h<-2147483648&&(h=-2147483648),Qn(h=+h)&&(h=D?0:m.length-1),h<0&&(h=m.length+h),h>=m.length){if(D)return-1;h=m.length-1}else if(h<0){if(!D)return-1;h=0}if("string"==typeof f&&(f=S.from(f,C)),S.isBuffer(f))return 0===f.length?-1:bn(m,f,h,C,D);if("number"==typeof f)return f&=255,"function"==typeof Uint8Array.prototype.indexOf?D?Uint8Array.prototype.indexOf.call(m,f,h):Uint8Array.prototype.lastIndexOf.call(m,f,h):bn(m,[f],h,C,D);throw new TypeError("val must be string, number or Buffer")}function bn(m,f,h,C,D){let qe,L=1,E=m.length,ge=f.length;if(void 0!==C&&("ucs2"===(C=String(C).toLowerCase())||"ucs-2"===C||"utf16le"===C||"utf-16le"===C)){if(m.length<2||f.length<2)return-1;L=2,E/=2,ge/=2,h/=2}function c1(o1,ke){return 1===L?o1[ke]:o1.readUInt16BE(ke*L)}if(D){let o1=-1;for(qe=h;qe<E;qe++)if(c1(m,qe)===c1(f,-1===o1?0:qe-o1)){if(-1===o1&&(o1=qe),qe-o1+1===ge)return o1*L}else-1!==o1&&(qe-=qe-o1),o1=-1}else for(h+ge>E&&(h=E-ge),qe=h;qe>=0;qe--){let o1=!0;for(let ke=0;ke<ge;ke++)if(c1(m,qe+ke)!==c1(f,ke)){o1=!1;break}if(o1)return qe}return-1}function F3(m,f,h,C){h=Number(h)||0;const D=m.length-h;C?(C=Number(C))>D&&(C=D):C=D;const L=f.length;let E;for(C>L/2&&(C=L/2),E=0;E<C;++E){const ge=parseInt(f.substr(2*E,2),16);if(Qn(ge))return E;m[h+E]=ge}return E}function ns(m,f,h,C){return wn(ir(f,m.length-h),m,h,C)}function ii(m,f,h,C){return wn(function ls(m){const f=[];for(let h=0;h<m.length;++h)f.push(255&m.charCodeAt(h));return f}(f),m,h,C)}function is(m,f,h,C){return wn(rr(f),m,h,C)}function ai(m,f,h,C){return wn(function ar(m,f){let h,C,D;const L=[];for(let E=0;E<m.length&&!((f-=2)<0);++E)h=m.charCodeAt(E),C=h>>8,D=h%256,L.push(D),L.push(C);return L}(f,m.length-h),m,h,C)}function ut(m,f,h){return c2.fromByteArray(0===f&&h===m.length?m:m.slice(f,h))}function as(m,f,h){h=Math.min(m.length,h);const C=[];let D=f;for(;D<h;){const L=m[D];let E=null,ge=L>239?4:L>223?3:L>191?2:1;if(D+ge<=h){let c1,qe,o1,ke;switch(ge){case 1:L<128&&(E=L);break;case 2:c1=m[D+1],128==(192&c1)&&(ke=(31&L)<<6|63&c1,ke>127&&(E=ke));break;case 3:c1=m[D+1],qe=m[D+2],128==(192&c1)&&128==(192&qe)&&(ke=(15&L)<<12|(63&c1)<<6|63&qe,ke>2047&&(ke<55296||ke>57343)&&(E=ke));break;case 4:c1=m[D+1],qe=m[D+2],o1=m[D+3],128==(192&c1)&&128==(192&qe)&&128==(192&o1)&&(ke=(15&L)<<18|(63&c1)<<12|(63&qe)<<6|63&o1,ke>65535&&ke<1114112&&(E=ke))}}null===E?(E=65533,ge=1):E>65535&&(E-=65536,C.push(E>>>10&1023|55296),E=56320|1023&E),C.push(E),D+=ge}return function Te(m){const f=m.length;if(f<=4096)return String.fromCharCode.apply(String,m);let h="",C=0;for(;C<f;)h+=String.fromCharCode.apply(String,m.slice(C,C+=4096));return h}(C)}function er(m,f,h){let C="";h=Math.min(m.length,h);for(let D=f;D<h;++D)C+=String.fromCharCode(127&m[D]);return C}function rs(m,f,h){let C="";h=Math.min(m.length,h);for(let D=f;D<h;++D)C+=String.fromCharCode(m[D]);return C}function cs(m,f,h){const C=m.length;(!f||f<0)&&(f=0),(!h||h<0||h>C)&&(h=C);let D="";for(let L=f;L<h;++L)D+=cr[m[L]];return D}function os(m,f,h){const C=m.slice(f,h);let D="";for(let L=0;L<C.length-1;L+=2)D+=String.fromCharCode(C[L]+256*C[L+1]);return D}function fe(m,f,h){if(m%1!=0||m<0)throw new RangeError("offset is not uint");if(m+f>h)throw new RangeError("Trying to access beyond buffer length")}function Q1(m,f,h,C,D,L){if(!S.isBuffer(m))throw new TypeError('"buffer" argument must be a Buffer instance');if(f>D||f<L)throw new RangeError('"value" argument is out of bounds');if(h+C>m.length)throw new RangeError("Index out of range")}function ci(m,f,h,C,D){nr(f,C,D,m,h,7);let L=Number(f&BigInt(4294967295));m[h++]=L,L>>=8,m[h++]=L,L>>=8,m[h++]=L,L>>=8,m[h++]=L;let E=Number(f>>BigInt(32)&BigInt(4294967295));return m[h++]=E,E>>=8,m[h++]=E,E>>=8,m[h++]=E,E>>=8,m[h++]=E,h}function r1(m,f,h,C,D){nr(f,C,D,m,h,7);let L=Number(f&BigInt(4294967295));m[h+7]=L,L>>=8,m[h+6]=L,L>>=8,m[h+5]=L,L>>=8,m[h+4]=L;let E=Number(f>>BigInt(32)&BigInt(4294967295));return m[h+3]=E,E>>=8,m[h+2]=E,E>>=8,m[h+1]=E,E>>=8,m[h]=E,h+8}function Re(m,f,h,C,D,L){if(h+C>m.length)throw new RangeError("Index out of range");if(h<0)throw new RangeError("Index out of range")}function tr(m,f,h,C,D){return f=+f,h>>>=0,D||Re(m,0,h,4),v1.write(m,f,h,C,23,4),h+4}function me(m,f,h,C,D){return f=+f,h>>>=0,D||Re(m,0,h,8),v1.write(m,f,h,C,52,8),h+8}!(S.TYPED_ARRAY_SUPPORT=function xe(){try{const m=new Uint8Array(1),f={foo:function(){return 42}};return Object.setPrototypeOf(f,Uint8Array.prototype),Object.setPrototypeOf(m,f),42===m.foo()}catch(m){return!1}}())&&"undefined"!=typeof console&&"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(S.prototype,"parent",{enumerable:!0,get:function(){if(S.isBuffer(this))return this.buffer}}),Object.defineProperty(S.prototype,"offset",{enumerable:!0,get:function(){if(S.isBuffer(this))return this.byteOffset}}),S.poolSize=8192,S.from=function(m,f,h){return S1(m,f,h)},Object.setPrototypeOf(S.prototype,Uint8Array.prototype),Object.setPrototypeOf(S,Uint8Array),S.alloc=function(m,f,h){return function A1(m,f,h){return e1(m),m<=0?Xe(m):void 0!==f?"string"==typeof h?Xe(m).fill(f,h):Xe(m).fill(f):Xe(m)}(m,f,h)},S.allocUnsafe=function(m){return R1(m)},S.allocUnsafeSlow=function(m){return R1(m)},S.isBuffer=function(f){return null!=f&&!0===f._isBuffer&&f!==S.prototype},S.compare=function(f,h){if(Z2(f,Uint8Array)&&(f=S.from(f,f.offset,f.byteLength)),Z2(h,Uint8Array)&&(h=S.from(h,h.offset,h.byteLength)),!S.isBuffer(f)||!S.isBuffer(h))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(f===h)return 0;let C=f.length,D=h.length;for(let L=0,E=Math.min(C,D);L<E;++L)if(f[L]!==h[L]){C=f[L],D=h[L];break}return C<D?-1:D<C?1:0},S.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}},S.concat=function(f,h){if(!Array.isArray(f))throw new TypeError('"list" argument must be an Array of Buffers');if(0===f.length)return S.alloc(0);let C;if(void 0===h)for(h=0,C=0;C<f.length;++C)h+=f[C].length;const D=S.allocUnsafe(h);let L=0;for(C=0;C<f.length;++C){let E=f[C];if(Z2(E,Uint8Array))L+E.length>D.length?(S.isBuffer(E)||(E=S.from(E)),E.copy(D,L)):Uint8Array.prototype.set.call(D,E,L);else{if(!S.isBuffer(E))throw new TypeError('"list" argument must be an Array of Buffers');E.copy(D,L)}L+=E.length}return D},S.byteLength=Q2,S.prototype._isBuffer=!0,S.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)lt(this,h,h+1);return this},S.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)lt(this,h,h+3),lt(this,h+1,h+2);return this},S.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)lt(this,h,h+7),lt(this,h+1,h+6),lt(this,h+2,h+5),lt(this,h+3,h+4);return this},S.prototype.toLocaleString=S.prototype.toString=function(){const f=this.length;return 0===f?"":0===arguments.length?as(this,0,f):s2.apply(this,arguments)},S.prototype.equals=function(f){if(!S.isBuffer(f))throw new TypeError("Argument must be a Buffer");return this===f||0===S.compare(this,f)},S.prototype.inspect=function(){let f="";const h=S2.h2;return f=this.toString("hex",0,h).replace(/(.{2})/g,"$1 ").trim(),this.length>h&&(f+=" ... "),"<Buffer "+f+">"},$e&&(S.prototype[$e]=S.prototype.inspect),S.prototype.compare=function(f,h,C,D,L){if(Z2(f,Uint8Array)&&(f=S.from(f,f.offset,f.byteLength)),!S.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===C&&(C=f?f.length:0),void 0===D&&(D=0),void 0===L&&(L=this.length),h<0||C>f.length||D<0||L>this.length)throw new RangeError("out of range index");if(D>=L&&h>=C)return 0;if(D>=L)return-1;if(h>=C)return 1;if(this===f)return 0;let E=(L>>>=0)-(D>>>=0),ge=(C>>>=0)-(h>>>=0);const c1=Math.min(E,ge),qe=this.slice(D,L),o1=f.slice(h,C);for(let ke=0;ke<c1;++ke)if(qe[ke]!==o1[ke]){E=qe[ke],ge=o1[ke];break}return E<ge?-1:ge<E?1:0},S.prototype.includes=function(f,h,C){return-1!==this.indexOf(f,h,C)},S.prototype.indexOf=function(f,h,C){return Xa(this,f,h,C,!0)},S.prototype.lastIndexOf=function(f,h,C){return Xa(this,f,h,C,!1)},S.prototype.write=function(f,h,C,D){if(void 0===h)D="utf8",C=this.length,h=0;else if(void 0===C&&"string"==typeof h)D=h,C=this.length,h=0;else{if(!isFinite(h))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");h>>>=0,isFinite(C)?(C>>>=0,void 0===D&&(D="utf8")):(D=C,C=void 0)}const L=this.length-h;if((void 0===C||C>L)&&(C=L),f.length>0&&(C<0||h<0)||h>this.length)throw new RangeError("Attempt to write outside buffer bounds");D||(D="utf8");let E=!1;for(;;)switch(D){case"hex":return F3(this,f,h,C);case"utf8":case"utf-8":return ns(this,f,h,C);case"ascii":case"latin1":case"binary":return ii(this,f,h,C);case"base64":return is(this,f,h,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ai(this,f,h,C);default:if(E)throw new TypeError("Unknown encoding: "+D);D=(""+D).toLowerCase(),E=!0}},S.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},S.prototype.slice=function(f,h){const C=this.length;(f=~~f)<0?(f+=C)<0&&(f=0):f>C&&(f=C),(h=void 0===h?C:~~h)<0?(h+=C)<0&&(h=0):h>C&&(h=C),h<f&&(h=f);const D=this.subarray(f,h);return Object.setPrototypeOf(D,S.prototype),D},S.prototype.readUintLE=S.prototype.readUIntLE=function(f,h,C){f>>>=0,h>>>=0,C||fe(f,h,this.length);let D=this[f],L=1,E=0;for(;++E<h&&(L*=256);)D+=this[f+E]*L;return D},S.prototype.readUintBE=S.prototype.readUIntBE=function(f,h,C){f>>>=0,h>>>=0,C||fe(f,h,this.length);let D=this[f+--h],L=1;for(;h>0&&(L*=256);)D+=this[f+--h]*L;return D},S.prototype.readUint8=S.prototype.readUInt8=function(f,h){return f>>>=0,h||fe(f,1,this.length),this[f]},S.prototype.readUint16LE=S.prototype.readUInt16LE=function(f,h){return f>>>=0,h||fe(f,2,this.length),this[f]|this[f+1]<<8},S.prototype.readUint16BE=S.prototype.readUInt16BE=function(f,h){return f>>>=0,h||fe(f,2,this.length),this[f]<<8|this[f+1]},S.prototype.readUint32LE=S.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]},S.prototype.readUint32BE=S.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])},S.prototype.readBigUInt64LE=At(function(f){Hn(f>>>=0,"offset");const h=this[f],C=this[f+7];(void 0===h||void 0===C)&&U3(f,this.length-8);const D=h+256*this[++f]+65536*this[++f]+this[++f]*2**24,L=this[++f]+256*this[++f]+65536*this[++f]+C*2**24;return BigInt(D)+(BigInt(L)<<BigInt(32))}),S.prototype.readBigUInt64BE=At(function(f){Hn(f>>>=0,"offset");const h=this[f],C=this[f+7];(void 0===h||void 0===C)&&U3(f,this.length-8);const D=h*2**24+65536*this[++f]+256*this[++f]+this[++f],L=this[++f]*2**24+65536*this[++f]+256*this[++f]+C;return(BigInt(D)<<BigInt(32))+BigInt(L)}),S.prototype.readIntLE=function(f,h,C){f>>>=0,h>>>=0,C||fe(f,h,this.length);let D=this[f],L=1,E=0;for(;++E<h&&(L*=256);)D+=this[f+E]*L;return L*=128,D>=L&&(D-=Math.pow(2,8*h)),D},S.prototype.readIntBE=function(f,h,C){f>>>=0,h>>>=0,C||fe(f,h,this.length);let D=h,L=1,E=this[f+--D];for(;D>0&&(L*=256);)E+=this[f+--D]*L;return L*=128,E>=L&&(E-=Math.pow(2,8*h)),E},S.prototype.readInt8=function(f,h){return f>>>=0,h||fe(f,1,this.length),128&this[f]?-1*(255-this[f]+1):this[f]},S.prototype.readInt16LE=function(f,h){f>>>=0,h||fe(f,2,this.length);const C=this[f]|this[f+1]<<8;return 32768&C?4294901760|C:C},S.prototype.readInt16BE=function(f,h){f>>>=0,h||fe(f,2,this.length);const C=this[f+1]|this[f]<<8;return 32768&C?4294901760|C:C},S.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},S.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]},S.prototype.readBigInt64LE=At(function(f){Hn(f>>>=0,"offset");const h=this[f],C=this[f+7];return(void 0===h||void 0===C)&&U3(f,this.length-8),(BigInt(this[f+4]+256*this[f+5]+65536*this[f+6]+(C<<24))<<BigInt(32))+BigInt(h+256*this[++f]+65536*this[++f]+this[++f]*2**24)}),S.prototype.readBigInt64BE=At(function(f){Hn(f>>>=0,"offset");const h=this[f],C=this[f+7];(void 0===h||void 0===C)&&U3(f,this.length-8);const D=(h<<24)+65536*this[++f]+256*this[++f]+this[++f];return(BigInt(D)<<BigInt(32))+BigInt(this[++f]*2**24+65536*this[++f]+256*this[++f]+C)}),S.prototype.readFloatLE=function(f,h){return f>>>=0,h||fe(f,4,this.length),v1.read(this,f,!0,23,4)},S.prototype.readFloatBE=function(f,h){return f>>>=0,h||fe(f,4,this.length),v1.read(this,f,!1,23,4)},S.prototype.readDoubleLE=function(f,h){return f>>>=0,h||fe(f,8,this.length),v1.read(this,f,!0,52,8)},S.prototype.readDoubleBE=function(f,h){return f>>>=0,h||fe(f,8,this.length),v1.read(this,f,!1,52,8)},S.prototype.writeUintLE=S.prototype.writeUIntLE=function(f,h,C,D){f=+f,h>>>=0,C>>>=0,D||Q1(this,f,h,C,Math.pow(2,8*C)-1,0);let L=1,E=0;for(this[h]=255&f;++E<C&&(L*=256);)this[h+E]=f/L&255;return h+C},S.prototype.writeUintBE=S.prototype.writeUIntBE=function(f,h,C,D){f=+f,h>>>=0,C>>>=0,D||Q1(this,f,h,C,Math.pow(2,8*C)-1,0);let L=C-1,E=1;for(this[h+L]=255&f;--L>=0&&(E*=256);)this[h+L]=f/E&255;return h+C},S.prototype.writeUint8=S.prototype.writeUInt8=function(f,h,C){return f=+f,h>>>=0,C||Q1(this,f,h,1,255,0),this[h]=255&f,h+1},S.prototype.writeUint16LE=S.prototype.writeUInt16LE=function(f,h,C){return f=+f,h>>>=0,C||Q1(this,f,h,2,65535,0),this[h]=255&f,this[h+1]=f>>>8,h+2},S.prototype.writeUint16BE=S.prototype.writeUInt16BE=function(f,h,C){return f=+f,h>>>=0,C||Q1(this,f,h,2,65535,0),this[h]=f>>>8,this[h+1]=255&f,h+2},S.prototype.writeUint32LE=S.prototype.writeUInt32LE=function(f,h,C){return f=+f,h>>>=0,C||Q1(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},S.prototype.writeUint32BE=S.prototype.writeUInt32BE=function(f,h,C){return f=+f,h>>>=0,C||Q1(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},S.prototype.writeBigUInt64LE=At(function(f,h=0){return ci(this,f,h,BigInt(0),BigInt("0xffffffffffffffff"))}),S.prototype.writeBigUInt64BE=At(function(f,h=0){return r1(this,f,h,BigInt(0),BigInt("0xffffffffffffffff"))}),S.prototype.writeIntLE=function(f,h,C,D){if(f=+f,h>>>=0,!D){const c1=Math.pow(2,8*C-1);Q1(this,f,h,C,c1-1,-c1)}let L=0,E=1,ge=0;for(this[h]=255&f;++L<C&&(E*=256);)f<0&&0===ge&&0!==this[h+L-1]&&(ge=1),this[h+L]=(f/E>>0)-ge&255;return h+C},S.prototype.writeIntBE=function(f,h,C,D){if(f=+f,h>>>=0,!D){const c1=Math.pow(2,8*C-1);Q1(this,f,h,C,c1-1,-c1)}let L=C-1,E=1,ge=0;for(this[h+L]=255&f;--L>=0&&(E*=256);)f<0&&0===ge&&0!==this[h+L+1]&&(ge=1),this[h+L]=(f/E>>0)-ge&255;return h+C},S.prototype.writeInt8=function(f,h,C){return f=+f,h>>>=0,C||Q1(this,f,h,1,127,-128),f<0&&(f=255+f+1),this[h]=255&f,h+1},S.prototype.writeInt16LE=function(f,h,C){return f=+f,h>>>=0,C||Q1(this,f,h,2,32767,-32768),this[h]=255&f,this[h+1]=f>>>8,h+2},S.prototype.writeInt16BE=function(f,h,C){return f=+f,h>>>=0,C||Q1(this,f,h,2,32767,-32768),this[h]=f>>>8,this[h+1]=255&f,h+2},S.prototype.writeInt32LE=function(f,h,C){return f=+f,h>>>=0,C||Q1(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},S.prototype.writeInt32BE=function(f,h,C){return f=+f,h>>>=0,C||Q1(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},S.prototype.writeBigInt64LE=At(function(f,h=0){return ci(this,f,h,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),S.prototype.writeBigInt64BE=At(function(f,h=0){return r1(this,f,h,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),S.prototype.writeFloatLE=function(f,h,C){return tr(this,f,h,!0,C)},S.prototype.writeFloatBE=function(f,h,C){return tr(this,f,h,!1,C)},S.prototype.writeDoubleLE=function(f,h,C){return me(this,f,h,!0,C)},S.prototype.writeDoubleBE=function(f,h,C){return me(this,f,h,!1,C)},S.prototype.copy=function(f,h,C,D){if(!S.isBuffer(f))throw new TypeError("argument should be a Buffer");if(C||(C=0),!D&&0!==D&&(D=this.length),h>=f.length&&(h=f.length),h||(h=0),D>0&&D<C&&(D=C),D===C||0===f.length||0===this.length)return 0;if(h<0)throw new RangeError("targetStart out of bounds");if(C<0||C>=this.length)throw new RangeError("Index out of range");if(D<0)throw new RangeError("sourceEnd out of bounds");D>this.length&&(D=this.length),f.length-h<D-C&&(D=f.length-h+C);const L=D-C;return this===f&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(h,C,D):Uint8Array.prototype.set.call(f,this.subarray(C,D),h),L},S.prototype.fill=function(f,h,C,D){if("string"==typeof f){if("string"==typeof h?(D=h,h=0,C=this.length):"string"==typeof C&&(D=C,C=this.length),void 0!==D&&"string"!=typeof D)throw new TypeError("encoding must be a string");if("string"==typeof D&&!S.isEncoding(D))throw new TypeError("Unknown encoding: "+D);if(1===f.length){const E=f.charCodeAt(0);("utf8"===D&&E<128||"latin1"===D)&&(f=E)}}else"number"==typeof f?f&=255:"boolean"==typeof f&&(f=Number(f));if(h<0||this.length<h||this.length<C)throw new RangeError("Out of range index");if(C<=h)return this;let L;if(h>>>=0,C=void 0===C?this.length:C>>>0,f||(f=0),"number"==typeof f)for(L=h;L<C;++L)this[L]=f;else{const E=S.isBuffer(f)?f:S.from(f,D),ge=E.length;if(0===ge)throw new TypeError('The value "'+f+'" is invalid for argument "value"');for(L=0;L<C-h;++L)this[L+h]=E[L%ge]}return this};const St={};function oi(m,f,h){St[m]=class extends h{constructor(){super(),Object.defineProperty(this,"message",{value:f.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${m}]`,delete this.name}get code(){return m}set code(D){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:D,writable:!0})}toString(){return`${this.name} [${m}]: ${this.message}`}}}function B3(m){let f="",h=m.length;const C="-"===m[0]?1:0;for(;h>=C+4;h-=3)f=`_${m.slice(h-3,h)}${f}`;return`${m.slice(0,h)}${f}`}function nr(m,f,h,C,D,L){if(m>h||m<f){const E="bigint"==typeof f?"n":"";let ge;throw ge=L>3?0===f||f===BigInt(0)?`>= 0${E} and < 2${E} ** ${8*(L+1)}${E}`:`>= -(2${E} ** ${8*(L+1)-1}${E}) and < 2 ** ${8*(L+1)-1}${E}`:`>= ${f}${E} and <= ${h}${E}`,new St.ERR_OUT_OF_RANGE("value",ge,m)}!function ss(m,f,h){Hn(f,"offset"),(void 0===m[f]||void 0===m[f+h])&&U3(f,m.length-(h+1))}(C,D,L)}function Hn(m,f){if("number"!=typeof m)throw new St.ERR_INVALID_ARG_TYPE(f,"number",m)}function U3(m,f,h){throw Math.floor(m)!==m?(Hn(m,h),new St.ERR_OUT_OF_RANGE(h||"offset","an integer",m)):f<0?new St.ERR_BUFFER_OUT_OF_BOUNDS:new St.ERR_OUT_OF_RANGE(h||"offset",`>= ${h?1:0} and <= ${f}`,m)}oi("ERR_BUFFER_OUT_OF_BOUNDS",function(m){return m?`${m} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),oi("ERR_INVALID_ARG_TYPE",function(m,f){return`The "${m}" argument must be of type number. Received type ${typeof f}`},TypeError),oi("ERR_OUT_OF_RANGE",function(m,f,h){let C=`The value of "${m}" is out of range.`,D=h;return Number.isInteger(h)&&Math.abs(h)>2**32?D=B3(String(h)):"bigint"==typeof h&&(D=String(h),(h>BigInt(2)**BigInt(32)||h<-(BigInt(2)**BigInt(32)))&&(D=B3(D)),D+="n"),C+=` It must be ${f}. Received ${D}`,C},RangeError);const h7=/[^+/0-9A-Za-z-_]/g;function ir(m,f){let h;f=f||1/0;const C=m.length;let D=null;const L=[];for(let E=0;E<C;++E){if(h=m.charCodeAt(E),h>55295&&h<57344){if(!D){if(h>56319){(f-=3)>-1&&L.push(239,191,189);continue}if(E+1===C){(f-=3)>-1&&L.push(239,191,189);continue}D=h;continue}if(h<56320){(f-=3)>-1&&L.push(239,191,189),D=h;continue}h=65536+(D-55296<<10|h-56320)}else D&&(f-=3)>-1&&L.push(239,191,189);if(D=null,h<128){if((f-=1)<0)break;L.push(h)}else if(h<2048){if((f-=2)<0)break;L.push(h>>6|192,63&h|128)}else if(h<65536){if((f-=3)<0)break;L.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;L.push(h>>18|240,h>>12&63|128,h>>6&63|128,63&h|128)}}return L}function rr(m){return c2.toByteArray(function p7(m){if((m=(m=m.split("=")[0]).trim().replace(h7,"")).length<2)return"";for(;m.length%4!=0;)m+="=";return m}(m))}function wn(m,f,h,C){let D;for(D=0;D<C&&!(D+h>=f.length||D>=m.length);++D)f[D+h]=m[D];return D}function Z2(m,f){return m instanceof f||null!=m&&null!=m.constructor&&null!=m.constructor.name&&m.constructor.name===f.name}function Qn(m){return m!=m}const cr=function(){const m="0123456789abcdef",f=new Array(256);for(let h=0;h<16;++h){const C=16*h;for(let D=0;D<16;++D)f[C+D]=m[h]+m[D]}return f}();function At(m){return"undefined"==typeof BigInt?us:m}function us(){throw new Error("BigInt not supported")}},461:(P3,S2)=>{S2.read=function(a1,Y,c2,v1,$e){var we,xe,Xe=8*$e-v1-1,S=(1<<Xe)-1,S1=S>>1,e1=-7,A1=c2?$e-1:0,R1=c2?-1:1,ne=a1[Y+A1];for(A1+=R1,we=ne&(1<<-e1)-1,ne>>=-e1,e1+=Xe;e1>0;we=256*we+a1[Y+A1],A1+=R1,e1-=8);for(xe=we&(1<<-e1)-1,we>>=-e1,e1+=v1;e1>0;xe=256*xe+a1[Y+A1],A1+=R1,e1-=8);if(0===we)we=1-S1;else{if(we===S)return xe?NaN:1/0*(ne?-1:1);xe+=Math.pow(2,v1),we-=S1}return(ne?-1:1)*xe*Math.pow(2,we-v1)},S2.write=function(a1,Y,c2,v1,$e,we){var xe,Xe,S,S1=8*we-$e-1,e1=(1<<S1)-1,A1=e1>>1,R1=23===$e?Math.pow(2,-24)-Math.pow(2,-77):0,ne=v1?0:we-1,_e=v1?1:-1,Be=Y<0||0===Y&&1/Y<0?1:0;for(Y=Math.abs(Y),isNaN(Y)||Y===1/0?(Xe=isNaN(Y)?1:0,xe=e1):(xe=Math.floor(Math.log(Y)/Math.LN2),Y*(S=Math.pow(2,-xe))<1&&(xe--,S*=2),(Y+=xe+A1>=1?R1/S:R1*Math.pow(2,1-A1))*S>=2&&(xe++,S/=2),xe+A1>=e1?(Xe=0,xe=e1):xe+A1>=1?(Xe=(Y*S-1)*Math.pow(2,$e),xe+=A1):(Xe=Y*Math.pow(2,A1-1)*Math.pow(2,$e),xe=0));$e>=8;a1[c2+ne]=255&Xe,ne+=_e,Xe/=256,$e-=8);for(xe=xe<<$e|Xe,S1+=$e;S1>0;a1[c2+ne]=255&xe,ne+=_e,xe/=256,S1-=8);a1[c2+ne-_e]|=128*Be}}},P3=>{P3(P3.s=514)}]);