homebridge-eufy-security 2.3.2 → 2.3.3
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.
- package/CHANGELOG.md +7 -0
- package/dist/accessories/BaseAccessory.d.ts +17 -0
- package/dist/accessories/BaseAccessory.d.ts.map +1 -1
- package/dist/accessories/BaseAccessory.js +23 -0
- package/dist/accessories/BaseAccessory.js.map +1 -1
- package/dist/accessories/CameraAccessory.d.ts +8 -0
- package/dist/accessories/CameraAccessory.d.ts.map +1 -1
- package/dist/accessories/CameraAccessory.js +39 -45
- package/dist/accessories/CameraAccessory.js.map +1 -1
- package/dist/accessories/EntrySensorAccessory.d.ts +15 -3
- package/dist/accessories/EntrySensorAccessory.d.ts.map +1 -1
- package/dist/accessories/EntrySensorAccessory.js +22 -3
- package/dist/accessories/EntrySensorAccessory.js.map +1 -1
- package/dist/accessories/LockAccessory.d.ts +33 -4
- package/dist/accessories/LockAccessory.d.ts.map +1 -1
- package/dist/accessories/LockAccessory.js +116 -99
- package/dist/accessories/LockAccessory.js.map +1 -1
- package/dist/accessories/MotionSensorAccessory.d.ts +15 -3
- package/dist/accessories/MotionSensorAccessory.d.ts.map +1 -1
- package/dist/accessories/MotionSensorAccessory.js +22 -3
- package/dist/accessories/MotionSensorAccessory.js.map +1 -1
- package/dist/accessories/StationAccessory.js +5 -5
- package/dist/accessories/StationAccessory.js.map +1 -1
- package/dist/config.d.ts +17 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +18 -0
- package/dist/config.js.map +1 -1
- package/dist/controller/LocalLivestreamManager.d.ts +2 -0
- package/dist/controller/LocalLivestreamManager.d.ts.map +1 -1
- package/dist/controller/LocalLivestreamManager.js +59 -46
- package/dist/controller/LocalLivestreamManager.js.map +1 -1
- package/dist/controller/streamingDelegate.d.ts.map +1 -1
- package/dist/controller/streamingDelegate.js.map +1 -1
- package/dist/interfaces.d.ts +5 -2
- package/dist/interfaces.d.ts.map +1 -1
- package/dist/platform.d.ts +9 -2
- package/dist/platform.d.ts.map +1 -1
- package/dist/platform.js +192 -245
- package/dist/platform.js.map +1 -1
- package/dist/utils/Talkback.js +2 -2
- package/dist/utils/Talkback.js.map +1 -1
- package/dist/utils/configTypes.d.ts +18 -0
- package/dist/utils/configTypes.d.ts.map +1 -1
- package/dist/utils/configTypes.js +19 -0
- package/dist/utils/configTypes.js.map +1 -1
- package/homebridge-ui/public/index.html +1 -1
- package/homebridge-ui/public/main.c0ae6628b221d36c.js +1 -0
- package/package.json +1 -1
- package/homebridge-ui/public/main.c40b1db5eceb9425.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunkconfig_ui=self.webpackChunkconfig_ui||[]).push([[179],{275:(J4,W2,f1)=>{"use strict";function Q(e){return"function"==typeof e}function d2(e){const r=e(n=>{Error.call(n),n.stack=(new Error).stack});return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}const D1=d2(e=>function(r){e(this),this.message=r?`${r.length} errors occurred during unsubscription:\n${r.map((n,i)=>`${i+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=r});function Je(e,t){if(e){const r=e.indexOf(t);0<=r&&e.splice(r,1)}}class De{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:r}=this;if(r)if(this._parentage=null,Array.isArray(r))for(const a of r)a.remove(this);else r.remove(this);const{initialTeardown:n}=this;if(Q(n))try{n()}catch(a){t=a instanceof D1?a.errors:[a]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const a of i)try{E(a)}catch(s){t=t??[],s instanceof D1?t=[...t,...s.errors]:t.push(s)}}if(t)throw new D1(t)}}add(t){var r;if(t&&t!==this)if(this.closed)E(t);else{if(t instanceof De){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(t)}}_hasParent(t){const{_parentage:r}=this;return r===t||Array.isArray(r)&&r.includes(t)}_addParent(t){const{_parentage:r}=this;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t}_removeParent(t){const{_parentage:r}=this;r===t?this._parentage=null:Array.isArray(r)&&Je(r,t)}remove(t){const{_finalizers:r}=this;r&&Je(r,t),t instanceof De&&t._removeParent(this)}}De.EMPTY=(()=>{const e=new De;return e.closed=!0,e})();const Ee=De.EMPTY;function a1(e){return e instanceof De||e&&"closed"in e&&Q(e.remove)&&Q(e.add)&&Q(e.unsubscribe)}function E(e){Q(e)?e():e.unsubscribe()}const k1={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},s1={setTimeout(e,t,...r){const{delegate:n}=s1;return n?.setTimeout?n.setTimeout(e,t,...r):setTimeout(e,t,...r)},clearTimeout(e){const{delegate:t}=s1;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function P1(e){s1.setTimeout(()=>{const{onUnhandledError:t}=k1;if(!t)throw e;t(e)})}function Z1(){}const le=v1("C",void 0,void 0);function v1(e,t,r){return{kind:e,value:t,error:r}}let S1=null;function Xe(e){if(k1.useDeprecatedSynchronousErrorHandling){const t=!S1;if(t&&(S1={errorThrown:!1,error:null}),e(),t){const{errorThrown:r,error:n}=S1;if(S1=null,r)throw n}}else e()}class ct extends De{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,a1(t)&&t.add(this)):this.destination=b6}static create(t,r,n){return new En(t,r,n)}next(t){this.isStopped?Sr(function Ke(e){return v1("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Sr(function be(e){return v1("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Sr(le,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const p2=Function.prototype.bind;function yt(e,t){return p2.call(e,t)}class Ba{constructor(t){this.partialObserver=t}next(t){const{partialObserver:r}=this;if(r.next)try{r.next(t)}catch(n){X4(n)}}error(t){const{partialObserver:r}=this;if(r.error)try{r.error(t)}catch(n){X4(n)}else X4(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(r){X4(r)}}}class En extends ct{constructor(t,r,n){let i;if(super(),Q(t)||!t)i={next:t??void 0,error:r??void 0,complete:n??void 0};else{let a;this&&k1.useDeprecatedNextContext?(a=Object.create(t),a.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&yt(t.next,a),error:t.error&&yt(t.error,a),complete:t.complete&&yt(t.complete,a)}):i=t}this.destination=new Ba(i)}}function X4(e){k1.useDeprecatedSynchronousErrorHandling?function h2(e){k1.useDeprecatedSynchronousErrorHandling&&S1&&(S1.errorThrown=!0,S1.error=e)}(e):P1(e)}function Sr(e,t){const{onStoppedNotification:r}=k1;r&&s1.setTimeout(()=>r(e,t))}const b6={closed:!0,next:Z1,error:function y6(e){throw e},complete:Z1},Lr="function"==typeof Symbol&&Symbol.observable||"@@observable";function bt(e){return e}function xr(e){return 0===e.length?bt:1===e.length?e[0]:function(r){return e.reduce((n,i)=>i(n),r)}}let We=(()=>{class e{constructor(r){r&&(this._subscribe=r)}lift(r){const n=new e;return n.source=this,n.operator=r,n}subscribe(r,n,i){const a=function w6(e){return e&&e instanceof ct||function H6(e){return e&&Q(e.next)&&Q(e.error)&&Q(e.complete)}(e)&&a1(e)}(r)?r:new En(r,n,i);return Xe(()=>{const{operator:s,source:c}=this;a.add(s?s.call(a,c):c?this._subscribe(a):this._trySubscribe(a))}),a}_trySubscribe(r){try{return this._subscribe(r)}catch(n){r.error(n)}}forEach(r,n){return new(n=ja(n))((i,a)=>{const s=new En({next:c=>{try{r(c)}catch(o){a(o),s.unsubscribe()}},error:a,complete:i});this.subscribe(s)})}_subscribe(r){var n;return null===(n=this.source)||void 0===n?void 0:n.subscribe(r)}[Lr](){return this}pipe(...r){return xr(r)(this)}toPromise(r){return new(r=ja(r))((n,i)=>{let a;this.subscribe(s=>a=s,s=>i(s),()=>n(a))})}}return e.create=t=>new e(t),e})();function ja(e){var t;return null!==(t=e??k1.Promise)&&void 0!==t?t:Promise}const V6=d2(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let ue=(()=>{class e extends We{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(r){const n=new n2(this,this);return n.operator=r,n}_throwIfClosed(){if(this.closed)throw new V6}next(r){Xe(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const n of this.currentObservers)n.next(r)}})}error(r){Xe(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=r;const{observers:n}=this;for(;n.length;)n.shift().error(r)}})}complete(){Xe(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:r}=this;for(;r.length;)r.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var r;return(null===(r=this.observers)||void 0===r?void 0:r.length)>0}_trySubscribe(r){return this._throwIfClosed(),super._trySubscribe(r)}_subscribe(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)}_innerSubscribe(r){const{hasError:n,isStopped:i,observers:a}=this;return n||i?Ee:(this.currentObservers=null,a.push(r),new De(()=>{this.currentObservers=null,Je(a,r)}))}_checkFinalizedStatuses(r){const{hasError:n,thrownError:i,isStopped:a}=this;n?r.error(i):a&&r.complete()}asObservable(){const r=new We;return r.source=this,r}}return e.create=(t,r)=>new n2(t,r),e})();class n2 extends ue{constructor(t,r){super(),this.destination=t,this.source=r}next(t){var r,n;null===(n=null===(r=this.destination)||void 0===r?void 0:r.next)||void 0===n||n.call(r,t)}error(t){var r,n;null===(n=null===(r=this.destination)||void 0===r?void 0:r.error)||void 0===n||n.call(r,t)}complete(){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===r||r.call(t)}_subscribe(t){var r,n;return null!==(n=null===(r=this.source)||void 0===r?void 0:r.subscribe(t))&&void 0!==n?n:Ee}}function Nr(e){return Q(e?.lift)}function u1(e){return t=>{if(Nr(t))return t.lift(function(r){try{return e(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function qe(e,t,r,n,i){return new Ga(e,t,r,n,i)}class Ga extends ct{constructor(t,r,n,i,a,s){super(t),this.onFinalize=a,this.shouldUnsubscribe=s,this._next=r?function(c){try{r(c)}catch(o){t.error(o)}}:super._next,this._error=i?function(c){try{i(c)}catch(o){t.error(o)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:r}=this;super.unsubscribe(),!r&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function we(e,t){return u1((r,n)=>{let i=0;r.subscribe(qe(n,a=>{n.next(e.call(t,a,i++))}))})}function u(e){return this instanceof u?(this.v=e,this):new u(e)}function D(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,t=e[Symbol.asyncIterator];return t?t.call(e):(e=function c4(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(a){r[a]=e[a]&&function(s){return new Promise(function(c,o){!function i(a,s,c,o){Promise.resolve(o).then(function(l){a({value:l,done:c})},s)}(c,o,(s=e[a](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const L6=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function lu(e){return Q(e?.then)}function fu(e){return Q(e[Lr])}function uu(e){return Symbol.asyncIterator&&Q(e?.[Symbol.asyncIterator])}function du(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 hu=function iA(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function pu(e){return Q(e?.[hu])}function mu(e){return function h(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,n=r.apply(e,t||[]),a=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(p){n[p]&&(i[p]=function(g){return new Promise(function(w,z){a.push([p,g,w,z])>1||c(p,g)})})}function c(p,g){try{!function o(p){p.value instanceof u?Promise.resolve(p.value.v).then(l,f):d(a[0][2],p)}(n[p](g))}catch(w){d(a[0][3],w)}}function l(p){c("next",p)}function f(p){c("throw",p)}function d(p,g){p(g),a.shift(),a.length&&c(a[0][0],a[0][1])}}(this,arguments,function*(){const r=e.getReader();try{for(;;){const{value:n,done:i}=yield u(r.read());if(i)return yield u(void 0);yield yield u(n)}}finally{r.releaseLock()}})}function gu(e){return Q(e?.getReader)}function j1(e){if(e instanceof We)return e;if(null!=e){if(fu(e))return function aA(e){return new We(t=>{const r=e[Lr]();if(Q(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(L6(e))return function sA(e){return new We(t=>{for(let r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}(e);if(lu(e))return function cA(e){return new We(t=>{e.then(r=>{t.closed||(t.next(r),t.complete())},r=>t.error(r)).then(null,P1)})}(e);if(uu(e))return vu(e);if(pu(e))return function oA(e){return new We(t=>{for(const r of e)if(t.next(r),t.closed)return;t.complete()})}(e);if(gu(e))return function lA(e){return vu(mu(e))}(e)}throw du(e)}function vu(e){return new We(t=>{(function fA(e,t){var r,n,i,a;return function qa(e,t,r,n){return new(r||(r=Promise))(function(a,s){function c(f){try{l(n.next(f))}catch(d){s(d)}}function o(f){try{l(n.throw(f))}catch(d){s(d)}}function l(f){f.done?a(f.value):function i(a){return a instanceof r?a:new r(function(s){s(a)})}(f.value).then(c,o)}l((n=n.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){try{for(r=D(e);!(n=yield r.next()).done;)if(t.next(n.value),t.closed)return}catch(s){i={error:s}}finally{try{n&&!n.done&&(a=r.return)&&(yield a.call(r))}finally{if(i)throw i.error}}t.complete()})})(e,t).catch(r=>t.error(r))})}function on(e,t,r,n=0,i=!1){const a=t.schedule(function(){r(),i?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(a),!i)return a}function F1(e,t,r=1/0){return Q(t)?F1((n,i)=>we((a,s)=>t(n,a,i,s))(j1(e(n,i))),r):("number"==typeof t&&(r=t),u1((n,i)=>function uA(e,t,r,n,i,a,s,c){const o=[];let l=0,f=0,d=!1;const p=()=>{d&&!o.length&&!l&&t.complete()},g=z=>l<n?w(z):o.push(z),w=z=>{a&&t.next(z),l++;let L=!1;j1(r(z,f++)).subscribe(qe(t,T=>{i?.(T),a?g(T):t.next(T)},()=>{L=!0},void 0,()=>{if(L)try{for(l--;o.length&&l<n;){const T=o.shift();s?on(t,s,()=>w(T)):w(T)}p()}catch(T){t.error(T)}}))};return e.subscribe(qe(t,g,()=>{d=!0,p()})),()=>{c?.()}}(n,i,e,r)))}function n3(e=1/0){return F1(bt,e)}const lt=new We(e=>e.complete());function _u(e){return e&&Q(e.schedule)}function x6(e){return e[e.length-1]}function Za(e){return Q(x6(e))?e.pop():void 0}function Er(e){return _u(x6(e))?e.pop():void 0}function Cu(e,t=0){return u1((r,n)=>{r.subscribe(qe(n,i=>on(n,e,()=>n.next(i),t),()=>on(n,e,()=>n.complete(),t),i=>on(n,e,()=>n.error(i),t)))})}function Mu(e,t=0){return u1((r,n)=>{n.add(e.schedule(()=>r.subscribe(n),t))})}function yu(e,t){if(!e)throw new Error("Iterable cannot be null");return new We(r=>{on(r,t,()=>{const n=e[Symbol.asyncIterator]();on(r,t,()=>{n.next().then(i=>{i.done?r.complete():r.next(i.value)})},0,!0)})})}function Q1(e,t){return t?function CA(e,t){if(null!=e){if(fu(e))return function pA(e,t){return j1(e).pipe(Mu(t),Cu(t))}(e,t);if(L6(e))return function gA(e,t){return new We(r=>{let n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})})}(e,t);if(lu(e))return function mA(e,t){return j1(e).pipe(Mu(t),Cu(t))}(e,t);if(uu(e))return yu(e,t);if(pu(e))return function vA(e,t){return new We(r=>{let n;return on(r,t,()=>{n=e[hu](),on(r,t,()=>{let i,a;try{({value:i,done:a}=n.next())}catch(s){return void r.error(s)}a?r.complete():r.next(i)},0,!0)}),()=>Q(n?.return)&&n.return()})}(e,t);if(gu(e))return function _A(e,t){return yu(mu(e),t)}(e,t)}throw du(e)}(e,t):j1(e)}function N6(...e){const t=Er(e),r=function hA(e,t){return"number"==typeof x6(e)?e.pop():t}(e,1/0),n=e;return n.length?1===n.length?j1(n[0]):n3(r)(Q1(n,t)):lt}class ft extends ue{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const r=super._subscribe(t);return!r.closed&&t.next(this._value),r}getValue(){const{hasError:t,thrownError:r,_value:n}=this;if(t)throw r;return this._throwIfClosed(),n}next(t){super.next(this._value=t)}}function ae(...e){return Q1(e,Er(e))}function A6(e={}){const{connector:t=(()=>new ue),resetOnError:r=!0,resetOnComplete:n=!0,resetOnRefCountZero:i=!0}=e;return a=>{let s,c,o,l=0,f=!1,d=!1;const p=()=>{c?.unsubscribe(),c=void 0},g=()=>{p(),s=o=void 0,f=d=!1},w=()=>{const z=s;g(),z?.unsubscribe()};return u1((z,L)=>{l++,!d&&!f&&p();const T=o=o??t();L.add(()=>{l--,0===l&&!d&&!f&&(c=E6(w,i))}),T.subscribe(L),!s&&l>0&&(s=new En({next:S=>T.next(S),error:S=>{d=!0,p(),c=E6(g,r,S),T.error(S)},complete:()=>{f=!0,p(),c=E6(g,n),T.complete()}}),j1(z).subscribe(s))})(a)}}function E6(e,t,...r){if(!0===t)return void e();if(!1===t)return;const n=new En({next:()=>{n.unsubscribe(),e()}});return j1(t(...r)).subscribe(n)}function Ht(e,t){return u1((r,n)=>{let i=null,a=0,s=!1;const c=()=>s&&!i&&n.complete();r.subscribe(qe(n,o=>{i?.unsubscribe();let l=0;const f=a++;j1(e(o,f)).subscribe(i=qe(n,d=>n.next(t?t(o,d,f,l++):d),()=>{i=null,c()}))},()=>{s=!0,c()}))})}function MA(e,t){return e===t}function Ue(e){for(let t in e)if(e[t]===Ue)return t;throw Error("Could not find renamed property on target object.")}function Qa(e,t){for(const r in t)t.hasOwnProperty(r)&&!e.hasOwnProperty(r)&&(e[r]=t[r])}function G1(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(G1).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const r=t.indexOf("\n");return-1===r?t:t.substring(0,r)}function T6(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const yA=Ue({__forward_ref__:Ue});function me(e){return e.__forward_ref__=me,e.toString=function(){return G1(this())},e}function fe(e){return I6(e)?e():e}function I6(e){return"function"==typeof e&&e.hasOwnProperty(yA)&&e.__forward_ref__===me}function O6(e){return e&&!!e.\u0275providers}const Hu="https://g.co/ng/security#xss";class F extends Error{constructor(t,r){super(function Ja(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,r)),this.code=t}}function de(e){return"string"==typeof e?e:null==e?"":String(e)}function R6(e,t){throw new F(-201,!1)}function ut(e,t){null==e&&function ce(e,t,r,n){throw new Error(`ASSERTION ERROR: ${e}`+(null==n?"":` [Expected=> ${r} ${n} ${t} <=Actual]`))}(t,e,null,"!=")}function K(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ie(e){return{providers:e.providers||[],imports:e.imports||[]}}function Xa(e){return wu(e,ts)||wu(e,Vu)}function wu(e,t){return e.hasOwnProperty(t)?e[t]:null}function es(e){return e&&(e.hasOwnProperty(k6)||e.hasOwnProperty(LA))?e[k6]:null}const ts=Ue({\u0275prov:Ue}),k6=Ue({\u0275inj:Ue}),Vu=Ue({ngInjectableDef:Ue}),LA=Ue({ngInjectorDef:Ue});var Ve=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(Ve||{});let P6;function A2(e){const t=P6;return P6=e,t}function Du(e,t,r){const n=Xa(e);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:r&Ve.Optional?null:void 0!==t?t:void R6(G1(e))}const t1=globalThis,Tr={},G6="__NG_DI_FLAG__",ns="ngTempTokenPath",AA=/\n/gm,Lu="__source";let r3;function On(e){const t=r3;return r3=e,t}function IA(e,t=Ve.Default){if(void 0===r3)throw new F(-203,!1);return null===r3?Du(e,void 0,t):r3.get(e,t&Ve.Optional?null:void 0,t)}function Y(e,t=Ve.Default){return(function zu(){return P6}()||IA)(fe(e),t)}function J(e,t=Ve.Default){return Y(e,rs(t))}function rs(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function $6(e){const t=[];for(let r=0;r<e.length;r++){const n=fe(e[r]);if(Array.isArray(n)){if(0===n.length)throw new F(900,!1);let i,a=Ve.Default;for(let s=0;s<n.length;s++){const c=n[s],o=OA(c);"number"==typeof o?-1===o?i=c.token:a|=o:i=c}t.push(Y(i,a))}else t.push(Y(n))}return t}function Ir(e,t){return e[G6]=t,e.prototype[G6]=t,e}function OA(e){return e[G6]}function ln(e){return{toString:e}.toString()}var is=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(is||{}),wt=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(wt||{});const jt={},Te=[],as=Ue({\u0275cmp:Ue}),W6=Ue({\u0275dir:Ue}),q6=Ue({\u0275pipe:Ue}),Nu=Ue({\u0275mod:Ue}),fn=Ue({\u0275fac:Ue}),Or=Ue({__NG_ELEMENT_ID__:Ue}),Au=Ue({__NG_ENV_ID__:Ue});function Eu(e,t,r){let n=e.length;for(;;){const i=e.indexOf(t,r);if(-1===i)return i;if(0===i||e.charCodeAt(i-1)<=32){const a=t.length;if(i+a===n||e.charCodeAt(i+a)<=32)return i}r=i+1}}function K6(e,t,r){let n=0;for(;n<r.length;){const i=r[n];if("number"==typeof i){if(0!==i)break;n++;const a=r[n++],s=r[n++],c=r[n++];e.setAttribute(t,s,c,a)}else{const a=i,s=r[++n];Iu(a)?e.setProperty(t,a,s):e.setAttribute(t,a,s),n++}}return n}function Tu(e){return 3===e||4===e||6===e}function Iu(e){return 64===e.charCodeAt(0)}function Rr(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let r=-1;for(let n=0;n<t.length;n++){const i=t[n];"number"==typeof i?r=i:0===r||Ou(e,r,i,null,-1===r||2===r?t[++n]:null)}}return e}function Ou(e,t,r,n,i){let a=0,s=e.length;if(-1===t)s=-1;else for(;a<e.length;){const c=e[a++];if("number"==typeof c){if(c===t){s=-1;break}if(c>t){s=a-1;break}}}for(;a<e.length;){const c=e[a];if("number"==typeof c)break;if(c===r){if(null===n)return void(null!==i&&(e[a+1]=i));if(n===e[a+1])return void(e[a+2]=i)}a++,null!==n&&a++,null!==i&&a++}-1!==s&&(e.splice(s,0,t),a=s+1),e.splice(a++,0,r),null!==n&&e.splice(a++,0,n),null!==i&&e.splice(a++,0,i)}const Ru="ng-template";function PA(e,t,r){let n=0,i=!0;for(;n<e.length;){let a=e[n++];if("string"==typeof a&&i){const s=e[n++];if(r&&"class"===a&&-1!==Eu(s.toLowerCase(),t,0))return!0}else{if(1===a){for(;n<e.length&&"string"==typeof(a=e[n++]);)if(a.toLowerCase()===t)return!0;return!1}"number"==typeof a&&(i=!1)}}return!1}function ku(e){return 4===e.type&&e.value!==Ru}function FA(e,t,r){return t===(4!==e.type||r?e.value:Ru)}function BA(e,t,r){let n=4;const i=e.attrs||[],a=function GA(e){for(let t=0;t<e.length;t++)if(Tu(e[t]))return t;return e.length}(i);let s=!1;for(let c=0;c<t.length;c++){const o=t[c];if("number"!=typeof o){if(!s)if(4&n){if(n=2|1&n,""!==o&&!FA(e,o,r)||""===o&&1===t.length){if(Vt(n))return!1;s=!0}}else{const l=8&n?o:t[++c];if(8&n&&null!==e.attrs){if(!PA(e.attrs,l,r)){if(Vt(n))return!1;s=!0}continue}const d=UA(8&n?"class":o,i,ku(e),r);if(-1===d){if(Vt(n))return!1;s=!0;continue}if(""!==l){let p;p=d>a?"":i[d+1].toLowerCase();const g=8&n?p:null;if(g&&-1!==Eu(g,l,0)||2&n&&l!==p){if(Vt(n))return!1;s=!0}}}}else{if(!s&&!Vt(n)&&!Vt(o))return!1;if(s&&Vt(o))continue;s=!1,n=o|1&n}}return Vt(n)||s}function Vt(e){return 0==(1&e)}function UA(e,t,r,n){if(null===t)return-1;let i=0;if(n||!r){let a=!1;for(;i<t.length;){const s=t[i];if(s===e)return i;if(3===s||6===s)a=!0;else{if(1===s||2===s){let c=t[++i];for(;"string"==typeof c;)c=t[++i];continue}if(4===s)break;if(0===s){i+=4;continue}}i+=a?1:2}return-1}return function $A(e,t){let r=e.indexOf(4);if(r>-1)for(r++;r<e.length;){const n=e[r];if("number"==typeof n)return-1;if(n===t)return r;r++}return-1}(t,e)}function Pu(e,t,r=!1){for(let n=0;n<t.length;n++)if(BA(e,t[n],r))return!0;return!1}function WA(e,t){e:for(let r=0;r<t.length;r++){const n=t[r];if(e.length===n.length){for(let i=0;i<e.length;i++)if(e[i]!==n[i])continue e;return!0}}return!1}function Fu(e,t){return e?":not("+t.trim()+")":t}function qA(e){let t=e[0],r=1,n=2,i="",a=!1;for(;r<e.length;){let s=e[r];if("string"==typeof s)if(2&n){const c=e[++r];i+="["+s+(c.length>0?'="'+c+'"':"")+"]"}else 8&n?i+="."+s:4&n&&(i+=" "+s);else""!==i&&!Vt(s)&&(t+=Fu(a,i),i=""),n=s,a=a||!Vt(n);r++}return""!==i&&(t+=Fu(a,i)),t}function se(e){return ln(()=>{const t=Uu(e),r={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===is.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||wt.Emulated,styles:e.styles||Te,_:null,schemas:e.schemas||null,tView:null,id:""};ju(r);const n=e.dependencies;return r.directiveDefs=ss(n,!1),r.pipeDefs=ss(n,!0),r.id=function tE(e){let t=0;const r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const i of r)t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}(r),r})}function QA(e){return Le(e)||r2(e)}function JA(e){return null!==e}function Fe(e){return ln(()=>({type:e.type,bootstrap:e.bootstrap||Te,declarations:e.declarations||Te,imports:e.imports||Te,exports:e.exports||Te,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Bu(e,t){if(null==e)return jt;const r={};for(const n in e)if(e.hasOwnProperty(n)){let i=e[n],a=i;Array.isArray(i)&&(a=i[1],i=i[0]),r[i]=n,t&&(t[i]=a)}return r}function W(e){return ln(()=>{const t=Uu(e);return ju(t),t})}function Le(e){return e[as]||null}function r2(e){return e[W6]||null}function C2(e){return e[q6]||null}function K2(e,t){const r=e[Nu]||null;if(!r&&!0===t)throw new Error(`Type ${G1(e)} does not have '\u0275mod' property.`);return r}function Uu(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||jt,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||Te,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Bu(e.inputs,t),outputs:Bu(e.outputs)}}function ju(e){e.features?.forEach(t=>t(e))}function ss(e,t){if(!e)return null;const r=t?C2:QA;return()=>("function"==typeof e?e():e).map(n=>r(n)).filter(JA)}const L1=0,Z=1,ge=2,p1=3,zt=4,kr=5,m2=6,a3=7,E1=8,Rn=9,s3=10,he=11,Pr=12,Gu=13,c3=14,T1=15,Fr=16,o3=17,Gt=18,Br=19,$u=20,kn=21,un=22,Ur=23,jr=24,ze=25,Y6=1,Wu=2,$t=7,l3=9,a2=11;function T2(e){return Array.isArray(e)&&"object"==typeof e[Y6]}function M2(e){return Array.isArray(e)&&!0===e[Y6]}function Z6(e){return 0!=(4&e.flags)}function l4(e){return e.componentOffset>-1}function os(e){return 1==(1&e.flags)}function Dt(e){return!!e.template}function Q6(e){return 0!=(512&e[ge])}function f4(e,t){return e.hasOwnProperty(fn)?e[fn]:null}let s2=null,ls=!1;function dt(e){const t=s2;return s2=e,t}const Yu={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function Qu(e){if(!$r(e)||e.dirty){if(!e.producerMustRecompute(e)&&!e9(e))return void(e.dirty=!1);e.producerRecomputeValue(e),e.dirty=!1}}function Xu(e){e.dirty=!0,function Ju(e){if(void 0===e.liveConsumerNode)return;const t=ls;ls=!0;try{for(const r of e.liveConsumerNode)r.dirty||Xu(r)}finally{ls=t}}(e),e.consumerMarkedDirty?.(e)}function X6(e){return e&&(e.nextProducerIndex=0),dt(e)}function e0(e,t){if(dt(t),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if($r(e))for(let r=e.nextProducerIndex;r<e.producerNode.length;r++)fs(e.producerNode[r],e.producerIndexOfThis[r]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function e9(e){f3(e);for(let t=0;t<e.producerNode.length;t++){const r=e.producerNode[t],n=e.producerLastReadVersion[t];if(n!==r.version||(Qu(r),n!==r.version))return!0}return!1}function t9(e){if(f3(e),$r(e))for(let t=0;t<e.producerNode.length;t++)fs(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function fs(e,t){if(function r9(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}(e),f3(e),1===e.liveConsumerNode.length)for(let n=0;n<e.producerNode.length;n++)fs(e.producerNode[n],e.producerIndexOfThis[n]);const r=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[r],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[r],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){const n=e.liveConsumerIndexOfThis[t],i=e.liveConsumerNode[t];f3(i),i.producerIndexOfThis[n]=t}}function $r(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function f3(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let i9=null;const o9=()=>{},pE=(()=>({...Yu,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule(e.ref)},hasRun:!1,cleanupFn:o9}))();class mE{constructor(t,r,n){this.previousValue=t,this.currentValue=r,this.firstChange=n}isFirstChange(){return this.firstChange}}function _1(){return l9}function l9(e){return e.type.prototype.ngOnChanges&&(e.setInput=vE),gE}function gE(){const e=u9(this),t=e?.current;if(t){const r=e.previous;if(r===jt)e.previous=t;else for(let n in t)r[n]=t[n];e.current=null,this.ngOnChanges(t)}}function vE(e,t,r,n){const i=this.declaredInputs[r],a=u9(e)||function _E(e,t){return e[f9]=t}(e,{previous:jt,current:null}),s=a.current||(a.current={}),c=a.previous,o=c[i];s[i]=new mE(o&&o.currentValue,t,c===jt),e[n]=t}_1.ngInherit=!0;const f9="__ngSimpleChanges__";function u9(e){return e[f9]||null}const Wt=function(e,t,r){},d9="svg";function n1(e){for(;Array.isArray(e);)e=e[L1];return e}function us(e,t){return n1(t[e])}function I2(e,t){return n1(t[e.index])}function p9(e,t){return e.data[t]}function Y2(e,t){const r=t[e];return T2(r)?r:r[L1]}function Fn(e,t){return null==t?null:e[t]}function m9(e){e[o3]=0}function wE(e){1024&e[ge]||(e[ge]|=1024,v9(e,1))}function g9(e){1024&e[ge]&&(e[ge]&=-1025,v9(e,-1))}function v9(e,t){let r=e[p1];if(null===r)return;r[kr]+=t;let n=r;for(r=r[p1];null!==r&&(1===t&&1===n[kr]||-1===t&&0===n[kr]);)r[kr]+=t,n=r,r=r[p1]}const oe={lFrame:S9(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function M9(){return oe.bindingsEnabled}function d3(){return null!==oe.skipHydrationRootTNode}function P(){return oe.lFrame.lView}function xe(){return oe.lFrame.tView}function G(e){return oe.lFrame.contextLView=e,e[E1]}function $(e){return oe.lFrame.contextLView=null,e}function c2(){let e=y9();for(;null!==e&&64===e.type;)e=e.parent;return e}function y9(){return oe.lFrame.currentTNode}function qt(e,t){const r=oe.lFrame;r.currentTNode=e,r.isParent=t}function s0(){return oe.lFrame.isParent}function c0(){oe.lFrame.isParent=!1}function h3(){return oe.lFrame.bindingIndex++}function hn(e){const t=oe.lFrame,r=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,r}function OE(e,t){const r=oe.lFrame;r.bindingIndex=r.bindingRootIndex=e,o0(t)}function o0(e){oe.lFrame.currentDirectiveIndex=e}function V9(){return oe.lFrame.currentQueryIndex}function f0(e){oe.lFrame.currentQueryIndex=e}function kE(e){const t=e[Z];return 2===t.type?t.declTNode:1===t.type?e[m2]:null}function z9(e,t,r){if(r&Ve.SkipSelf){let i=t,a=e;for(;!(i=i.parent,null!==i||r&Ve.Host||(i=kE(a),null===i||(a=a[c3],10&i.type))););if(null===i)return!1;t=i,e=a}const n=oe.lFrame=D9();return n.currentTNode=t,n.lView=e,!0}function u0(e){const t=D9(),r=e[Z];oe.lFrame=t,t.currentTNode=r.firstChild,t.lView=e,t.tView=r,t.contextLView=e,t.bindingIndex=r.bindingStartIndex,t.inI18n=!1}function D9(){const e=oe.lFrame,t=null===e?null:e.child;return null===t?S9(e):t}function S9(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function L9(){const e=oe.lFrame;return oe.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const x9=L9;function d0(){const e=L9();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 oe.lFrame.selectedIndex}function u4(e){oe.lFrame.selectedIndex=e}function C1(){const e=oe.lFrame;return p9(e.tView,e.selectedIndex)}function p3(){oe.lFrame.currentNamespace=d9}function m3(){!function UE(){oe.lFrame.currentNamespace=null}()}let A9=!0;function ds(){return A9}function Bn(e){A9=e}function hs(e,t){for(let r=t.directiveStart,n=t.directiveEnd;r<n;r++){const a=e.data[r].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:c,ngAfterViewInit:o,ngAfterViewChecked:l,ngOnDestroy:f}=a;s&&(e.contentHooks??=[]).push(-r,s),c&&((e.contentHooks??=[]).push(r,c),(e.contentCheckHooks??=[]).push(r,c)),o&&(e.viewHooks??=[]).push(-r,o),l&&((e.viewHooks??=[]).push(r,l),(e.viewCheckHooks??=[]).push(r,l)),null!=f&&(e.destroyHooks??=[]).push(r,f)}}function ps(e,t,r){E9(e,t,3,r)}function ms(e,t,r,n){(3&e[ge])===r&&E9(e,t,r,n)}function h0(e,t){let r=e[ge];(3&r)===t&&(r&=8191,r+=1,e[ge]=r)}function E9(e,t,r,n){const a=n??-1,s=t.length-1;let c=0;for(let o=void 0!==n?65535&e[o3]:0;o<s;o++)if("number"==typeof t[o+1]){if(c=t[o],null!=n&&c>=n)break}else t[o]<0&&(e[o3]+=65536),(c<a||-1==a)&&(GE(e,r,t,o),e[o3]=(4294901760&e[o3])+o+2),o++}function T9(e,t){Wt(4,e,t);const r=dt(null);try{t.call(e)}finally{dt(r),Wt(5,e,t)}}function GE(e,t,r,n){const i=r[n]<0,a=r[n+1],c=e[i?-r[n]:r[n]];i?e[ge]>>13<e[o3]>>16&&(3&e[ge])===t&&(e[ge]+=8192,T9(c,a)):T9(c,a)}const g3=-1;class qr{constructor(t,r,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=n}}function m0(e){return e!==g3}function Kr(e){return 32767&e}function Yr(e,t){let r=function KE(e){return e>>16}(e),n=t;for(;r>0;)n=n[c3],r--;return n}let g0=!0;function gs(e){const t=g0;return g0=e,t}const I9=255,O9=5;let YE=0;const Kt={};function vs(e,t){const r=R9(e,t);if(-1!==r)return r;const n=t[Z];n.firstCreatePass&&(e.injectorIndex=t.length,v0(n.data,e),v0(t,null),v0(n.blueprint,null));const i=_s(e,t),a=e.injectorIndex;if(m0(i)){const s=Kr(i),c=Yr(i,t),o=c[Z].data;for(let l=0;l<8;l++)t[a+l]=c[s+l]|o[s+l]}return t[a+8]=i,a}function v0(e,t){e.push(0,0,0,0,0,0,0,0,t)}function R9(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function _s(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let r=0,n=null,i=t;for(;null!==i;){if(n=G9(i),null===n)return g3;if(r++,i=i[c3],-1!==n.injectorIndex)return n.injectorIndex|r<<16}return g3}function _0(e,t,r){!function ZE(e,t,r){let n;"string"==typeof r?n=r.charCodeAt(0)||0:r.hasOwnProperty(Or)&&(n=r[Or]),null==n&&(n=r[Or]=YE++);const i=n&I9;t.data[e+(i>>O9)]|=1<<i}(e,t,r)}function k9(e,t,r){if(r&Ve.Optional||void 0!==e)return e;R6()}function P9(e,t,r,n){if(r&Ve.Optional&&void 0===n&&(n=null),!(r&(Ve.Self|Ve.Host))){const i=e[Rn],a=A2(void 0);try{return i?i.get(t,n,r&Ve.Optional):Du(t,n,r&Ve.Optional)}finally{A2(a)}}return k9(n,0,r)}function F9(e,t,r,n=Ve.Default,i){if(null!==e){if(2048&t[ge]&&!(n&Ve.Self)){const s=function nT(e,t,r,n,i){let a=e,s=t;for(;null!==a&&null!==s&&2048&s[ge]&&!(512&s[ge]);){const c=B9(a,s,r,n|Ve.Self,Kt);if(c!==Kt)return c;let o=a.parent;if(!o){const l=s[$u];if(l){const f=l.get(r,Kt,n);if(f!==Kt)return f}o=G9(s),s=s[c3]}a=o}return i}(e,t,r,n,Kt);if(s!==Kt)return s}const a=B9(e,t,r,n,Kt);if(a!==Kt)return a}return P9(t,r,n,i)}function B9(e,t,r,n,i){const a=function XE(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(Or)?e[Or]:void 0;return"number"==typeof t?t>=0?t&I9:tT:t}(r);if("function"==typeof a){if(!z9(t,e,n))return n&Ve.Host?k9(i,0,n):P9(t,r,n,i);try{let s;if(s=a(n),null!=s||n&Ve.Optional)return s;R6()}finally{x9()}}else if("number"==typeof a){let s=null,c=R9(e,t),o=g3,l=n&Ve.Host?t[T1][m2]:null;for((-1===c||n&Ve.SkipSelf)&&(o=-1===c?_s(e,t):t[c+8],o!==g3&&j9(n,!1)?(s=t[Z],c=Kr(o),t=Yr(o,t)):c=-1);-1!==c;){const f=t[Z];if(U9(a,c,f.data)){const d=JE(c,t,r,s,n,l);if(d!==Kt)return d}o=t[c+8],o!==g3&&j9(n,t[Z].data[c+8]===l)&&U9(a,c,t)?(s=f,c=Kr(o),t=Yr(o,t)):c=-1}}return i}function JE(e,t,r,n,i,a){const s=t[Z],c=s.data[e+8],f=Cs(c,s,r,null==n?l4(c)&&g0:n!=s&&0!=(3&c.type),i&Ve.Host&&a===c);return null!==f?d4(t,s,f,c):Kt}function Cs(e,t,r,n,i){const a=e.providerIndexes,s=t.data,c=1048575&a,o=e.directiveStart,f=a>>20,p=i?c+f:e.directiveEnd;for(let g=n?c:c+f;g<p;g++){const w=s[g];if(g<o&&r===w||g>=o&&w.type===r)return g}if(i){const g=s[o];if(g&&Dt(g)&&g.type===r)return o}return null}function d4(e,t,r,n){let i=e[r];const a=t.data;if(function $E(e){return e instanceof qr}(i)){const s=i;s.resolving&&function bA(e,t){const r=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new F(-200,`Circular dependency in DI detected for ${e}${r}`)}(function Pe(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():de(e)}(a[r]));const c=gs(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?A2(s.injectImpl):null;z9(e,n,Ve.Default);try{i=e[r]=s.factory(void 0,a,e,n),t.firstCreatePass&&r>=n.directiveStart&&function jE(e,t,r){const{ngOnChanges:n,ngOnInit:i,ngDoCheck:a}=t.type.prototype;if(n){const s=l9(t);(r.preOrderHooks??=[]).push(e,s),(r.preOrderCheckHooks??=[]).push(e,s)}i&&(r.preOrderHooks??=[]).push(0-e,i),a&&((r.preOrderHooks??=[]).push(e,a),(r.preOrderCheckHooks??=[]).push(e,a))}(r,a[r],t)}finally{null!==l&&A2(l),gs(c),s.resolving=!1,x9()}}return i}function U9(e,t,r){return!!(r[t+(e>>O9)]&1<<e)}function j9(e,t){return!(e&Ve.Self||e&Ve.Host&&t)}class H2{constructor(t,r){this._tNode=t,this._lView=r}get(t,r,n){return F9(this._tNode,this._lView,t,rs(n),r)}}function tT(){return new H2(c2(),P())}function I1(e){return ln(()=>{const t=e.prototype.constructor,r=t[fn]||C0(t),n=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==n;){const a=i[fn]||C0(i);if(a&&a!==r)return a;i=Object.getPrototypeOf(i)}return a=>new a})}function C0(e){return I6(e)?()=>{const t=C0(fe(e));return t&&t()}:f4(e)}function G9(e){const t=e[Z],r=t.type;return 2===r?t.declTNode:1===r?e[m2]:null}const _3="__parameters__";function M3(e,t,r){return ln(()=>{const n=function M0(e){return function(...r){if(e){const n=e(...r);for(const i in n)this[i]=n[i]}}}(t);function i(...a){if(this instanceof i)return n.apply(this,a),this;const s=new i(...a);return c.annotation=s,c;function c(o,l,f){const d=o.hasOwnProperty(_3)?o[_3]:Object.defineProperty(o,_3,{value:[]})[_3];for(;d.length<=f;)d.push(null);return(d[f]=d[f]||[]).push(s),o}}return r&&(i.prototype=Object.create(r.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}function b3(e,t){e.forEach(r=>Array.isArray(r)?b3(r,t):t(r))}function W9(e,t,r){t>=e.length?e.push(r):e.splice(t,0,r)}function Ms(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Jr(e,t){const r=[];for(let n=0;n<e;n++)r.push(t);return r}function Z2(e,t,r){let n=H3(e,t);return n>=0?e[1|n]=r:(n=~n,function lT(e,t,r,n){let i=e.length;if(i==t)e.push(r,n);else if(1===i)e.push(n,e[0]),e[0]=r;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=r,e[t+1]=n}}(e,n,t,r)),n}function y0(e,t){const r=H3(e,t);if(r>=0)return e[1|r]}function H3(e,t){return function q9(e,t,r){let n=0,i=e.length>>r;for(;i!==n;){const a=n+(i-n>>1),s=e[a<<r];if(t===s)return a<<r;s>t?i=a:n=a+1}return~(i<<r)}(e,t,1)}const bs=Ir(M3("Optional"),8),Hs=Ir(M3("SkipSelf"),4);function Ss(e){return 128==(128&e.flags)}var Un=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Un||{});const z0=new Map;let ET=0;const S0="__ngContext__";function g2(e,t){T2(t)?(e[S0]=t[Br],function IT(e){z0.set(e[Br],e)}(t)):e[S0]=t}let L0;function x0(e,t){return L0(e,t)}function ti(e){const t=e[p1];return M2(t)?t[p1]:t}function hd(e){return md(e[Pr])}function pd(e){return md(e[zt])}function md(e){for(;null!==e&&!M2(e);)e=e[zt];return e}function z3(e,t,r,n,i){if(null!=n){let a,s=!1;M2(n)?a=n:T2(n)&&(s=!0,n=n[L1]);const c=n1(n);0===e&&null!==r?null==i?Cd(t,r,c):p4(t,r,c,i||null,!0):1===e&&null!==r?p4(t,r,c,i||null,!0):2===e?function Is(e,t,r){const n=Es(e,t);n&&function eI(e,t,r,n){e.removeChild(t,r,n)}(e,n,t,r)}(t,c,s):3===e&&t.destroyNode(c),null!=a&&function rI(e,t,r,n,i){const a=r[$t];a!==n1(r)&&z3(t,e,n,a,i);for(let c=a2;c<r.length;c++){const o=r[c];ri(o[Z],o,e,t,n,a)}}(t,e,a,r,i)}}function Ns(e,t,r){return e.createElement(t,r)}function vd(e,t){const r=e[l3],n=r.indexOf(t);g9(t),r.splice(n,1)}function As(e,t){if(e.length<=a2)return;const r=a2+t,n=e[r];if(n){const i=n[Fr];null!==i&&i!==e&&vd(i,n),t>0&&(e[r-1][zt]=n[zt]);const a=Ms(e,a2+t);!function WT(e,t){ri(e,t,t[he],2,null,null),t[L1]=null,t[m2]=null}(n[Z],n);const s=a[Gt];null!==s&&s.detachView(a[Z]),n[p1]=null,n[zt]=null,n[ge]&=-129}return n}function A0(e,t){if(!(256&t[ge])){const r=t[he];t[Ur]&&t9(t[Ur]),t[jr]&&t9(t[jr]),r.destroyNode&&ri(e,t,r,3,null,null),function YT(e){let t=e[Pr];if(!t)return E0(e[Z],e);for(;t;){let r=null;if(T2(t))r=t[Pr];else{const n=t[a2];n&&(r=n)}if(!r){for(;t&&!t[zt]&&t!==e;)T2(t)&&E0(t[Z],t),t=t[p1];null===t&&(t=e),T2(t)&&E0(t[Z],t),r=t&&t[zt]}t=r}}(t)}}function E0(e,t){if(!(256&t[ge])){t[ge]&=-129,t[ge]|=256,function XT(e,t){let r;if(null!=e&&null!=(r=e.destroyHooks))for(let n=0;n<r.length;n+=2){const i=t[r[n]];if(!(i instanceof qr)){const a=r[n+1];if(Array.isArray(a))for(let s=0;s<a.length;s+=2){const c=i[a[s]],o=a[s+1];Wt(4,c,o);try{o.call(c)}finally{Wt(5,c,o)}}else{Wt(4,i,a);try{a.call(i)}finally{Wt(5,i,a)}}}}}(e,t),function JT(e,t){const r=e.cleanup,n=t[a3];if(null!==r)for(let a=0;a<r.length-1;a+=2)if("string"==typeof r[a]){const s=r[a+3];s>=0?n[s]():n[-s].unsubscribe(),a+=2}else r[a].call(n[r[a+1]]);null!==n&&(t[a3]=null);const i=t[kn];if(null!==i){t[kn]=null;for(let a=0;a<i.length;a++)(0,i[a])()}}(e,t),1===t[Z].type&&t[he].destroy();const r=t[Fr];if(null!==r&&M2(t[p1])){r!==t[p1]&&vd(r,t);const n=t[Gt];null!==n&&n.detachView(e)}!function OT(e){z0.delete(e[Br])}(t)}}function T0(e,t,r){return function _d(e,t,r){let n=t;for(;null!==n&&40&n.type;)n=(t=n).parent;if(null===n)return r[L1];{const{componentOffset:i}=n;if(i>-1){const{encapsulation:a}=e.data[n.directiveStart+i];if(a===wt.None||a===wt.Emulated)return null}return I2(n,r)}}(e,t.parent,r)}function p4(e,t,r,n,i){e.insertBefore(t,r,n,i)}function Cd(e,t,r){e.appendChild(t,r)}function Md(e,t,r,n,i){null!==n?p4(e,t,r,n,i):Cd(e,t,r)}function Es(e,t){return e.parentNode(t)}function yd(e,t,r){return Hd(e,t,r)}let I0,Os,P0,Rs,Hd=function bd(e,t,r){return 40&e.type?I2(e,r):null};function Ts(e,t,r,n){const i=T0(e,n,t),a=t[he],c=yd(n.parent||t[m2],n,t);if(null!=i)if(Array.isArray(r))for(let o=0;o<r.length;o++)Md(a,i,r[o],c,!1);else Md(a,i,r,c,!1);void 0!==I0&&I0(a,n,t,r,i)}function ni(e,t){if(null!==t){const r=t.type;if(3&r)return I2(t,e);if(4&r)return O0(-1,e[t.index]);if(8&r){const n=t.child;if(null!==n)return ni(e,n);{const i=e[t.index];return M2(i)?O0(-1,i):n1(i)}}if(32&r)return x0(t,e)()||n1(e[t.index]);{const n=Vd(e,t);return null!==n?Array.isArray(n)?n[0]:ni(ti(e[T1]),n):ni(e,t.next)}}return null}function Vd(e,t){return null!==t?e[T1][m2].projection[t.projection]:null}function O0(e,t){const r=a2+e+1;if(r<t.length){const n=t[r],i=n[Z].firstChild;if(null!==i)return ni(n,i)}return t[$t]}function R0(e,t,r,n,i,a,s){for(;null!=r;){const c=n[r.index],o=r.type;if(s&&0===t&&(c&&g2(n1(c),n),r.flags|=2),32!=(32&r.flags))if(8&o)R0(e,t,r.child,n,i,a,!1),z3(t,e,i,c,a);else if(32&o){const l=x0(r,n);let f;for(;f=l();)z3(t,e,i,f,a);z3(t,e,i,c,a)}else 16&o?Dd(e,t,n,r,i,a):z3(t,e,i,c,a);r=s?r.projectionNext:r.next}}function ri(e,t,r,n,i,a){R0(r,n,e.firstChild,t,i,a,!1)}function Dd(e,t,r,n,i,a){const s=r[T1],o=s[m2].projection[n.projection];if(Array.isArray(o))for(let l=0;l<o.length;l++)z3(t,e,i,o[l],a);else{let l=o;const f=s[p1];Ss(n)&&(l.flags|=128),R0(e,t,l,f,i,a,!0)}}function Sd(e,t,r){""===r?e.removeAttribute(t,"class"):e.setAttribute(t,"class",r)}function Ld(e,t,r){const{mergedAttrs:n,classes:i,styles:a}=r;null!==n&&K6(e,t,n),null!==i&&Sd(e,t,i),null!==a&&function aI(e,t,r){e.setAttribute(t,"style",r)}(e,t,a)}function D3(e){return function k0(){if(void 0===Os&&(Os=null,t1.trustedTypes))try{Os=t1.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Os}()?.createHTML(e)||e}function S3(){if(void 0!==P0)return P0;if(typeof document<"u")return document;throw new F(210,!1)}function F0(){if(void 0===Rs&&(Rs=null,t1.trustedTypes))try{Rs=t1.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Rs}function xd(e){return F0()?.createHTML(e)||e}function Ad(e){return F0()?.createScriptURL(e)||e}class m4{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Hu})`}}class fI extends m4{getTypeName(){return"HTML"}}class uI extends m4{getTypeName(){return"Style"}}class dI extends m4{getTypeName(){return"Script"}}class hI extends m4{getTypeName(){return"URL"}}class pI extends m4{getTypeName(){return"ResourceURL"}}function Q2(e){return e instanceof m4?e.changingThisBreaksApplicationSecurity:e}function Yt(e,t){const r=function mI(e){return e instanceof m4&&e.getTypeName()||null}(e);if(null!=r&&r!==t){if("ResourceURL"===r&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${r} (see ${Hu})`)}return r===t}class yI{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const r=(new window.DOMParser).parseFromString(D3(t),"text/html").body;return null===r?this.inertDocumentHelper.getInertBodyElement(t):(r.removeChild(r.firstChild),r)}catch{return null}}}class bI{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const r=this.inertDocument.createElement("template");return r.innerHTML=D3(t),r}}const wI=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function ks(e){return(e=String(e)).match(wI)?e:"unsafe:"+e}function pn(e){const t={};for(const r of e.split(","))t[r]=!0;return t}function ii(...e){const t={};for(const r of e)for(const n in r)r.hasOwnProperty(n)&&(t[n]=!0);return t}const Td=pn("area,br,col,hr,img,wbr"),Id=pn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Od=pn("rp,rt"),B0=ii(Td,ii(Id,pn("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")),ii(Od,pn("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")),ii(Od,Id)),U0=pn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Rd=ii(U0,pn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),pn("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")),VI=pn("script,style,template");class zI{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let r=t.firstChild,n=!0;for(;r;)if(r.nodeType===Node.ELEMENT_NODE?n=this.startElement(r):r.nodeType===Node.TEXT_NODE?this.chars(r.nodeValue):this.sanitizedSomething=!0,n&&r.firstChild)r=r.firstChild;else for(;r;){r.nodeType===Node.ELEMENT_NODE&&this.endElement(r);let i=this.checkClobberedElement(r,r.nextSibling);if(i){r=i;break}r=this.checkClobberedElement(r,r.parentNode)}return this.buf.join("")}startElement(t){const r=t.nodeName.toLowerCase();if(!B0.hasOwnProperty(r))return this.sanitizedSomething=!0,!VI.hasOwnProperty(r);this.buf.push("<"),this.buf.push(r);const n=t.attributes;for(let i=0;i<n.length;i++){const a=n.item(i),s=a.name,c=s.toLowerCase();if(!Rd.hasOwnProperty(c)){this.sanitizedSomething=!0;continue}let o=a.value;U0[c]&&(o=ks(o)),this.buf.push(" ",s,'="',kd(o),'"')}return this.buf.push(">"),!0}endElement(t){const r=t.nodeName.toLowerCase();B0.hasOwnProperty(r)&&!Td.hasOwnProperty(r)&&(this.buf.push("</"),this.buf.push(r),this.buf.push(">"))}chars(t){this.buf.push(kd(t))}checkClobberedElement(t,r){if(r&&(t.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return r}}const DI=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,SI=/([^\#-~ |!])/g;function kd(e){return e.replace(/&/g,"&").replace(DI,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(SI,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let Ps;function Pd(e,t){let r=null;try{Ps=Ps||function Ed(e){const t=new bI(e);return function HI(){try{return!!(new window.DOMParser).parseFromString(D3(""),"text/html")}catch{return!1}}()?new yI(t):t}(e);let n=t?String(t):"";r=Ps.getInertBodyElement(n);let i=5,a=n;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,n=a,a=r.innerHTML,r=Ps.getInertBodyElement(n)}while(n!==a);return D3((new zI).sanitizeChildren(j0(r)||r))}finally{if(r){const n=j0(r)||r;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function j0(e){return"content"in e&&function LI(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var pt=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(pt||{});function Fd(e){const t=ai();return t?xd(t.sanitize(pt.HTML,e)||""):Yt(e,"HTML")?xd(Q2(e)):Pd(S3(),de(e))}function R2(e){const t=ai();return t?t.sanitize(pt.STYLE,e)||"":Yt(e,"Style")?Q2(e):de(e)}function L3(e){const t=ai();return t?t.sanitize(pt.URL,e)||"":Yt(e,"URL")?Q2(e):ks(de(e))}function Bd(e){const t=ai();if(t)return Ad(t.sanitize(pt.RESOURCE_URL,e)||"");if(Yt(e,"ResourceURL"))return Ad(Q2(e));throw new F(904,!1)}function ai(){const e=P();return e&&e[s3].sanitizer}class te{constructor(t,r){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof r?this.__NG_ELEMENT_ID__=r:void 0!==r&&(this.\u0275prov=K({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const si=new te("ENVIRONMENT_INITIALIZER"),jd=new te("INJECTOR",-1),Gd=new te("INJECTOR_DEF_TYPES");class G0{get(t,r=Tr){if(r===Tr){const n=new Error(`NullInjectorError: No provider for ${G1(t)}!`);throw n.name="NullInjectorError",n}return r}}function TI(...e){return{\u0275providers:Wd(0,e),\u0275fromNgModule:!0}}function Wd(e,...t){const r=[],n=new Set;let i;const a=s=>{r.push(s)};return b3(t,s=>{const c=s;Fs(c,a,[],n)&&(i||=[],i.push(c))}),void 0!==i&&qd(i,a),r}function qd(e,t){for(let r=0;r<e.length;r++){const{ngModule:n,providers:i}=e[r];$0(i,a=>{t(a,n)})}}function Fs(e,t,r,n){if(!(e=fe(e)))return!1;let i=null,a=es(e);const s=!a&&Le(e);if(a||s){if(s&&!s.standalone)return!1;i=e}else{const o=e.ngModule;if(a=es(o),!a)return!1;i=o}const c=n.has(i);if(s){if(c)return!1;if(n.add(i),s.dependencies){const o="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const l of o)Fs(l,t,r,n)}}else{if(!a)return!1;{if(null!=a.imports&&!c){let l;n.add(i);try{b3(a.imports,f=>{Fs(f,t,r,n)&&(l||=[],l.push(f))})}finally{}void 0!==l&&qd(l,t)}if(!c){const l=f4(i)||(()=>new i);t({provide:i,useFactory:l,deps:Te},i),t({provide:Gd,useValue:i,multi:!0},i),t({provide:si,useValue:()=>Y(i),multi:!0},i)}const o=a.providers;if(null!=o&&!c){const l=e;$0(o,f=>{t(f,l)})}}}return i!==e&&void 0!==e.providers}function $0(e,t){for(let r of e)O6(r)&&(r=r.\u0275providers),Array.isArray(r)?$0(r,t):t(r)}const II=Ue({provide:String,useValue:Ue});function W0(e){return null!==e&&"object"==typeof e&&II in e}function g4(e){return"function"==typeof e}const q0=new te("Set Injector scope."),Bs={},RI={};let K0;function Us(){return void 0===K0&&(K0=new G0),K0}class k2{}class js extends k2{get destroyed(){return this._destroyed}constructor(t,r,n,i){super(),this.parent=r,this.source=n,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Z0(t,s=>this.processProvider(s)),this.records.set(jd,x3(void 0,this)),i.has("environment")&&this.records.set(k2,x3(void 0,this));const a=this.records.get(q0);null!=a&&"string"==typeof a.value&&this.scopes.add(a.value),this.injectorDefTypes=new Set(this.get(Gd.multi,Te,Ve.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const r of this._ngOnDestroyHooks)r.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const r of t)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const r=On(this),n=A2(void 0);try{return t()}finally{On(r),A2(n)}}get(t,r=Tr,n=Ve.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(Au))return t[Au](this);n=rs(n);const a=On(this),s=A2(void 0);try{if(!(n&Ve.SkipSelf)){let o=this.records.get(t);if(void 0===o){const l=function UI(e){return"function"==typeof e||"object"==typeof e&&e instanceof te}(t)&&Xa(t);o=l&&this.injectableDefInScope(l)?x3(Y0(t),Bs):null,this.records.set(t,o)}if(null!=o)return this.hydrate(t,o)}return(n&Ve.Self?Us():this.parent).get(t,r=n&Ve.Optional&&r===Tr?null:r)}catch(c){if("NullInjectorError"===c.name){if((c[ns]=c[ns]||[]).unshift(G1(t)),a)throw c;return function RA(e,t,r,n){const i=e[ns];throw t[Lu]&&i.unshift(t[Lu]),e.message=function kA(e,t,r,n=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let i=G1(t);if(Array.isArray(t))i=t.map(G1).join(" -> ");else if("object"==typeof t){let a=[];for(let s in t)if(t.hasOwnProperty(s)){let c=t[s];a.push(s+":"+("string"==typeof c?JSON.stringify(c):G1(c)))}i=`{${a.join(", ")}}`}return`${r}${n?"("+n+")":""}[${i}]: ${e.replace(AA,"\n ")}`}("\n"+e.message,i,r,n),e.ngTokenPath=i,e[ns]=null,e}(c,t,"R3InjectorError",this.source)}throw c}finally{A2(s),On(a)}}resolveInjectorInitializers(){const t=On(this),r=A2(void 0);try{const i=this.get(si.multi,Te,Ve.Self);for(const a of i)a()}finally{On(t),A2(r)}}toString(){const t=[],r=this.records;for(const n of r.keys())t.push(G1(n));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new F(205,!1)}processProvider(t){let r=g4(t=fe(t))?t:fe(t&&t.provide);const n=function PI(e){return W0(e)?x3(void 0,e.useValue):x3(Zd(e),Bs)}(t);if(g4(t)||!0!==t.multi)this.records.get(r);else{let i=this.records.get(r);i||(i=x3(void 0,Bs,!0),i.factory=()=>$6(i.multi),this.records.set(r,i)),r=t,i.multi.push(t)}this.records.set(r,n)}hydrate(t,r){return r.value===Bs&&(r.value=RI,r.value=r.factory()),"object"==typeof r.value&&r.value&&function BI(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}injectableDefInScope(t){if(!t.providedIn)return!1;const r=fe(t.providedIn);return"string"==typeof r?"any"===r||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(t){const r=this._onDestroyHooks.indexOf(t);-1!==r&&this._onDestroyHooks.splice(r,1)}}function Y0(e){const t=Xa(e),r=null!==t?t.factory:f4(e);if(null!==r)return r;if(e instanceof te)throw new F(204,!1);if(e instanceof Function)return function kI(e){const t=e.length;if(t>0)throw Jr(t,"?"),new F(204,!1);const r=function SA(e){return e&&(e[ts]||e[Vu])||null}(e);return null!==r?()=>r.factory(e):()=>new e}(e);throw new F(204,!1)}function Zd(e,t,r){let n;if(g4(e)){const i=fe(e);return f4(i)||Y0(i)}if(W0(e))n=()=>fe(e.useValue);else if(function Yd(e){return!(!e||!e.useFactory)}(e))n=()=>e.useFactory(...$6(e.deps||[]));else if(function Kd(e){return!(!e||!e.useExisting)}(e))n=()=>Y(fe(e.useExisting));else{const i=fe(e&&(e.useClass||e.provide));if(!function FI(e){return!!e.deps}(e))return f4(i)||Y0(i);n=()=>new i(...$6(e.deps))}return n}function x3(e,t,r=!1){return{factory:e,value:t,multi:r?[]:void 0}}function Z0(e,t){for(const r of e)Array.isArray(r)?Z0(r,t):r&&O6(r)?Z0(r.\u0275providers,t):t(r)}const Gs=new te("AppId",{providedIn:"root",factory:()=>jI}),jI="ng",Qd=new te("Platform Initializer"),N3=new te("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Jd=new te("CSP nonce",{providedIn:"root",factory:()=>S3().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Xd=(e,t,r)=>null;function i8(e,t,r=!1){return Xd(e,t,r)}class XI{}class nh{}class tO{resolveComponentFactory(t){throw function eO(e){const t=Error(`No component factory found for ${G1(e)}.`);return t.ngComponent=e,t}(t)}}let Zs=(()=>{class t{}return t.NULL=new tO,t})();function nO(){return T3(c2(),P())}function T3(e,t){return new Ne(I2(e,t))}let Ne=(()=>{class t{constructor(n){this.nativeElement=n}}return t.__NG_ELEMENT_ID__=nO,t})();function rO(e){return e instanceof Ne?e.nativeElement:e}class c8{}let o2=(()=>{class t{constructor(){this.destroyNode=null}}return t.__NG_ELEMENT_ID__=()=>function iO(){const e=P(),r=Y2(c2().index,e);return(T2(r)?r:e)[he]}(),t})(),aO=(()=>{var e;class t{}return(e=t).\u0275prov=K({token:e,providedIn:"root",factory:()=>null}),t})();class li{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const sO=new li("16.2.6"),o8={};function ch(e,t=null,r=null,n){const i=oh(e,t,r,n);return i.resolveInjectorInitializers(),i}function oh(e,t=null,r=null,n,i=new Set){const a=[r||Te,TI(e)];return n=n||("object"==typeof e?void 0:G1(e)),new js(a,t||Us(),n||null,i)}let B1=(()=>{var e;class t{static create(n,i){if(Array.isArray(n))return ch({name:""},i,n,"");{const a=n.name??"";return ch({name:a},n.parent,n.providers,a)}}}return(e=t).THROW_IF_NOT_FOUND=Tr,e.NULL=new G0,e.\u0275prov=K({token:e,providedIn:"any",factory:()=>Y(jd)}),e.__NG_ELEMENT_ID__=-1,t})();function f8(e){return e.ngOriginalError}class mn{constructor(){this._console=console}handleError(t){const r=this._findOriginalError(t);this._console.error("ERROR",t),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(t){let r=t&&f8(t);for(;r&&f8(r);)r=f8(r);return r||null}}function d8(e){return t=>{setTimeout(e,void 0,t)}}const ee=class hO extends ue{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,r,n){let i=t,a=r||(()=>null),s=n;if(t&&"object"==typeof t){const o=t;i=o.next?.bind(o),a=o.error?.bind(o),s=o.complete?.bind(o)}this.__isAsync&&(a=d8(a),i&&(i=d8(i)),s&&(s=d8(s)));const c=super.subscribe({next:i,error:a,complete:s});return t instanceof De&&t.add(c),c}};function fh(...e){}class ye{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ee(!1),this.onMicrotaskEmpty=new ee(!1),this.onStable=new ee(!1),this.onError=new ee(!1),typeof Zone>"u")throw new F(908,!1);Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&r,i.shouldCoalesceRunChangeDetection=n,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function pO(){const e="function"==typeof t1.requestAnimationFrame;let t=t1[e?"requestAnimationFrame":"setTimeout"],r=t1[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&r){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=r[Zone.__symbol__("OriginalDelegate")];i&&(r=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:r}}().nativeRequestAnimationFrame,function vO(e){const t=()=>{!function gO(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(t1,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,p8(e),e.isCheckStableRunning=!0,h8(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),p8(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,n,i,a,s,c)=>{if(function CO(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(c))return r.invokeTask(i,a,s,c);try{return uh(e),r.invokeTask(i,a,s,c)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===a.type||e.shouldCoalesceRunChangeDetection)&&t(),dh(e)}},onInvoke:(r,n,i,a,s,c,o)=>{try{return uh(e),r.invoke(i,a,s,c,o)}finally{e.shouldCoalesceRunChangeDetection&&t(),dh(e)}},onHasTask:(r,n,i,a)=>{r.hasTask(i,a),n===i&&("microTask"==a.change?(e._hasPendingMicrotasks=a.microTask,p8(e),h8(e)):"macroTask"==a.change&&(e.hasPendingMacrotasks=a.macroTask))},onHandleError:(r,n,i,a)=>(r.handleError(i,a),e.runOutsideAngular(()=>e.onError.emit(a)),!1)})}(i)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ye.isInAngularZone())throw new F(909,!1)}static assertNotInAngularZone(){if(ye.isInAngularZone())throw new F(909,!1)}run(t,r,n){return this._inner.run(t,r,n)}runTask(t,r,n,i){const a=this._inner,s=a.scheduleEventTask("NgZoneEvent: "+i,t,mO,fh,fh);try{return a.runTask(s,r,n)}finally{a.cancelTask(s)}}runGuarded(t,r,n){return this._inner.runGuarded(t,r,n)}runOutsideAngular(t){return this._outer.run(t)}}const mO={};function h8(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 p8(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function uh(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function dh(e){e._nesting--,h8(e)}class _O{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ee,this.onMicrotaskEmpty=new ee,this.onStable=new ee,this.onError=new ee}run(t,r,n){return t.apply(r,n)}runGuarded(t,r,n){return t.apply(r,n)}runOutsideAngular(t){return t()}runTask(t,r,n,i){return t.apply(r,n)}}const hh=new te("",{providedIn:"root",factory:ph});function ph(){const e=J(ye);let t=!0;return N6(new We(i=>{t=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{i.next(t),i.complete()})}),new We(i=>{let a;e.runOutsideAngular(()=>{a=e.onStable.subscribe(()=>{ye.assertNotInAngularZone(),queueMicrotask(()=>{!t&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(t=!0,i.next(!0))})})});const s=e.onUnstable.subscribe(()=>{ye.assertInAngularZone(),t&&(t=!1,e.runOutsideAngular(()=>{i.next(!1)}))});return()=>{a.unsubscribe(),s.unsubscribe()}}).pipe(A6()))}function gn(e){return e instanceof Function?e():e}let m8=(()=>{var e;class t{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}}return(e=t).\u0275prov=K({token:e,providedIn:"root",factory:()=>new e}),t})();function fi(e){for(;e;){e[ge]|=64;const t=ti(e);if(Q6(e)&&!t)return e;e=t}return null}const Ch=new te("",{providedIn:"root",factory:()=>!1});let Js=null;function Hh(e,t){return e[t]??zh()}function wh(e,t){const r=zh();r.producerNode?.length&&(e[t]=Js,r.lView=e,Js=Vh())}const LO={...Yu,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{fi(e.lView)},lView:null};function Vh(){return Object.create(LO)}function zh(){return Js??=Vh(),Js}const pe={};function C(e){Dh(xe(),P(),b2()+e,!1)}function Dh(e,t,r,n){if(!n)if(3==(3&t[ge])){const a=e.preOrderCheckHooks;null!==a&&ps(t,a,r)}else{const a=e.preOrderHooks;null!==a&&ms(t,a,0,r)}u4(r)}function H(e,t=Ve.Default){const r=P();return null===r?Y(e,t):F9(c2(),r,fe(e),t)}function Xs(e,t,r,n,i,a,s,c,o,l,f){const d=t.blueprint.slice();return d[L1]=i,d[ge]=140|n,(null!==l||e&&2048&e[ge])&&(d[ge]|=2048),m9(d),d[p1]=d[c3]=e,d[E1]=r,d[s3]=s||e&&e[s3],d[he]=c||e&&e[he],d[Rn]=o||e&&e[Rn]||null,d[m2]=a,d[Br]=function TT(){return ET++}(),d[un]=f,d[$u]=l,d[T1]=2==t.type?e[T1]:d,d}function R3(e,t,r,n,i){let a=e.data[t];if(null===a)a=function g8(e,t,r,n,i){const a=y9(),s=s0(),o=e.data[t]=function RO(e,t,r,n,i,a){let s=t?t.injectorIndex:-1,c=0;return d3()&&(c|=128),{type:r,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:c,providerIndexes:0,value:i,attrs:a,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?a:a&&a.parent,r,t,n,i);return null===e.firstChild&&(e.firstChild=o),null!==a&&(s?null==a.child&&null!==o.parent&&(a.child=o):null===a.next&&(a.next=o,o.prev=a)),o}(e,t,r,n,i),function IE(){return oe.lFrame.inI18n}()&&(a.flags|=32);else if(64&a.type){a.type=r,a.value=n,a.attrs=i;const s=function Wr(){const e=oe.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();a.injectorIndex=null===s?-1:s.injectorIndex}return qt(a,!0),a}function ui(e,t,r,n){if(0===r)return-1;const i=t.length;for(let a=0;a<r;a++)t.push(n),e.blueprint.push(n),e.data.push(null);return i}function Lh(e,t,r,n,i){const a=Hh(t,Ur),s=b2(),c=2&n;try{u4(-1),c&&t.length>ze&&Dh(e,t,ze,!1),Wt(c?2:0,i);const l=c?a:null,f=X6(l);try{null!==l&&(l.dirty=!1),r(n,i)}finally{e0(l,f)}}finally{c&&null===t[Ur]&&wh(t,Ur),u4(s),Wt(c?3:1,i)}}function v8(e,t,r){if(Z6(t)){const n=dt(null);try{const a=t.directiveEnd;for(let s=t.directiveStart;s<a;s++){const c=e.data[s];c.contentQueries&&c.contentQueries(1,r[s],s)}}finally{dt(n)}}}function _8(e,t,r){M9()&&(function GO(e,t,r,n){const i=r.directiveStart,a=r.directiveEnd;l4(r)&&function QO(e,t,r){const n=I2(t,e),i=xh(r);let s=16;r.signals?s=4096:r.onPush&&(s=64);const c=ec(e,Xs(e,i,null,s,n,t,null,e[s3].rendererFactory.createRenderer(n,r),null,null,null));e[t.index]=c}(t,r,e.data[i+r.componentOffset]),e.firstCreatePass||vs(r,t),g2(n,t);const s=r.initialInputs;for(let c=i;c<a;c++){const o=e.data[c],l=d4(t,e,c,r);g2(l,t),null!==s&&JO(0,c-i,l,o,0,s),Dt(o)&&(Y2(r.index,t)[E1]=d4(t,e,c,r))}}(e,t,r,I2(r,t)),64==(64&r.flags)&&Ih(e,t,r))}function C8(e,t,r=I2){const n=t.localNames;if(null!==n){let i=t.index+1;for(let a=0;a<n.length;a+=2){const s=n[a+1],c=-1===s?r(t,e):e[s];e[i++]=c}}}function xh(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=M8(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function M8(e,t,r,n,i,a,s,c,o,l,f){const d=ze+n,p=d+i,g=function NO(e,t){const r=[];for(let n=0;n<t;n++)r.push(n<e?null:pe);return r}(d,p),w="function"==typeof l?l():l;return g[Z]={type:e,blueprint:g,template:r,queries:null,viewQuery:c,declTNode:t,data:g.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:p,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof a?a():a,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:o,consts:w,incompleteFirstPass:!1,ssrId:f}}let Nh=e=>null;function Ah(e,t,r,n){for(let i in e)if(e.hasOwnProperty(i)){r=null===r?{}:r;const a=e[i];null===n?Eh(r,t,i,a):n.hasOwnProperty(i)&&Eh(r,t,n[i],a)}return r}function Eh(e,t,r,n){e.hasOwnProperty(r)?e[r].push(t,n):e[r]=[t,n]}function J2(e,t,r,n,i,a,s,c){const o=I2(t,r);let f,l=t.inputs;!c&&null!=l&&(f=l[n])?(V8(e,r,f,n,i),l4(t)&&function FO(e,t){const r=Y2(t,e);16&r[ge]||(r[ge]|=64)}(r,t.index)):3&t.type&&(n=function PO(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(n),i=null!=s?s(i,t.value||"",n):i,a.setProperty(o,n,i))}function y8(e,t,r,n){if(M9()){const i=null===n?null:{"":-1},a=function WO(e,t){const r=e.directiveRegistry;let n=null,i=null;if(r)for(let a=0;a<r.length;a++){const s=r[a];if(Pu(t,s.selectors,!1))if(n||(n=[]),Dt(s))if(null!==s.findHostDirectiveDefs){const c=[];i=i||new Map,s.findHostDirectiveDefs(s,c,i),n.unshift(...c,s),b8(e,t,c.length)}else n.unshift(s),b8(e,t,0);else i=i||new Map,s.findHostDirectiveDefs?.(s,n,i),n.push(s)}return null===n?null:[n,i]}(e,r);let s,c;null===a?s=c=null:[s,c]=a,null!==s&&Th(e,t,r,s,i,c),i&&function qO(e,t,r){if(t){const n=e.localNames=[];for(let i=0;i<t.length;i+=2){const a=r[t[i+1]];if(null==a)throw new F(-301,!1);n.push(t[i],a)}}}(r,n,i)}r.mergedAttrs=Rr(r.mergedAttrs,r.attrs)}function Th(e,t,r,n,i,a){for(let l=0;l<n.length;l++)_0(vs(r,t),e,n[l].type);!function YO(e,t,r){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+r,e.providerIndexes=t}(r,e.data.length,n.length);for(let l=0;l<n.length;l++){const f=n[l];f.providersResolver&&f.providersResolver(f)}let s=!1,c=!1,o=ui(e,t,n.length,null);for(let l=0;l<n.length;l++){const f=n[l];r.mergedAttrs=Rr(r.mergedAttrs,f.hostAttrs),ZO(e,r,t,o,f),KO(o,f,i),null!==f.contentQueries&&(r.flags|=4),(null!==f.hostBindings||null!==f.hostAttrs||0!==f.hostVars)&&(r.flags|=64);const d=f.type.prototype;!s&&(d.ngOnChanges||d.ngOnInit||d.ngDoCheck)&&((e.preOrderHooks??=[]).push(r.index),s=!0),!c&&(d.ngOnChanges||d.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(r.index),c=!0),o++}!function kO(e,t,r){const i=t.directiveEnd,a=e.data,s=t.attrs,c=[];let o=null,l=null;for(let f=t.directiveStart;f<i;f++){const d=a[f],p=r?r.get(d):null,w=p?p.outputs:null;o=Ah(d.inputs,f,o,p?p.inputs:null),l=Ah(d.outputs,f,l,w);const z=null===o||null===s||ku(t)?null:XO(o,f,s);c.push(z)}null!==o&&(o.hasOwnProperty("class")&&(t.flags|=8),o.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=c,t.inputs=o,t.outputs=l}(e,r,a)}function Ih(e,t,r){const n=r.directiveStart,i=r.directiveEnd,a=r.index,s=function RE(){return oe.lFrame.currentDirectiveIndex}();try{u4(a);for(let c=n;c<i;c++){const o=e.data[c],l=t[c];o0(c),(null!==o.hostBindings||0!==o.hostVars||null!==o.hostAttrs)&&$O(o,l)}}finally{u4(-1),o0(s)}}function $O(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function b8(e,t,r){t.componentOffset=r,(e.components??=[]).push(t.index)}function KO(e,t,r){if(r){if(t.exportAs)for(let n=0;n<t.exportAs.length;n++)r[t.exportAs[n]]=e;Dt(t)&&(r[""]=e)}}function ZO(e,t,r,n,i){e.data[n]=i;const a=i.factory||(i.factory=f4(i.type)),s=new qr(a,Dt(i),H);e.blueprint[n]=s,r[n]=s,function UO(e,t,r,n,i){const a=i.hostBindings;if(a){let s=e.hostBindingOpCodes;null===s&&(s=e.hostBindingOpCodes=[]);const c=~t.index;(function jO(e){let t=e.length;for(;t>0;){const r=e[--t];if("number"==typeof r&&r<0)return r}return 0})(s)!=c&&s.push(c),s.push(r,n,a)}}(e,t,n,ui(e,r,i.hostVars,pe),i)}function Zt(e,t,r,n,i,a){const s=I2(e,t);!function H8(e,t,r,n,i,a,s){if(null==a)e.removeAttribute(t,i,r);else{const c=null==s?de(a):s(a,n||"",i);e.setAttribute(t,i,c,r)}}(t[he],s,a,e.value,r,n,i)}function JO(e,t,r,n,i,a){const s=a[t];if(null!==s)for(let c=0;c<s.length;)Oh(n,r,s[c++],s[c++],s[c++])}function Oh(e,t,r,n,i){const a=dt(null);try{const s=e.inputTransforms;null!==s&&s.hasOwnProperty(n)&&(i=s[n].call(t,i)),null!==e.setInput?e.setInput(t,i,r,n):t[n]=i}finally{dt(a)}}function XO(e,t,r){let n=null,i=0;for(;i<r.length;){const a=r[i];if(0!==a)if(5!==a){if("number"==typeof a)break;if(e.hasOwnProperty(a)){null===n&&(n=[]);const s=e[a];for(let c=0;c<s.length;c+=2)if(s[c]===t){n.push(a,s[c+1],r[i+1]);break}}i+=2}else i+=2;else i+=4}return n}function Rh(e,t,r,n){return[e,!0,!1,t,null,0,n,r,null,null,null]}function kh(e,t){const r=e.contentQueries;if(null!==r)for(let n=0;n<r.length;n+=2){const a=r[n+1];if(-1!==a){const s=e.data[a];f0(r[n]),s.contentQueries(2,t[a],a)}}}function ec(e,t){return e[Pr]?e[Gu][zt]=t:e[Pr]=t,e[Gu]=t,t}function w8(e,t,r){f0(0);const n=dt(null);try{t(e,r)}finally{dt(n)}}function Ph(e){return e[a3]||(e[a3]=[])}function Fh(e){return e.cleanup||(e.cleanup=[])}function Uh(e,t){const r=e[Rn],n=r?r.get(mn,null):null;n&&n.handleError(t)}function V8(e,t,r,n,i){for(let a=0;a<r.length;){const s=r[a++],c=r[a++];Oh(e.data[s],t[s],n,c,i)}}function vn(e,t,r){const n=us(t,e);!function gd(e,t,r){e.setValue(t,r)}(e[he],n,r)}function eR(e,t){const r=Y2(t,e),n=r[Z];!function tR(e,t){for(let r=t.length;r<e.blueprint.length;r++)t.push(e.blueprint[r])}(n,r);const i=r[L1];null!==i&&null===r[un]&&(r[un]=i8(i,r[Rn])),z8(n,r,r[E1])}function z8(e,t,r){u0(t);try{const n=e.viewQuery;null!==n&&w8(1,n,r);const i=e.template;null!==i&&Lh(e,t,i,1,r),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&kh(e,t),e.staticViewQueries&&w8(2,e.viewQuery,r);const a=e.components;null!==a&&function nR(e,t){for(let r=0;r<t.length;r++)eR(e,t[r])}(t,a)}catch(n){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),n}finally{t[ge]&=-5,d0()}}let jh=(()=>{var e;class t{constructor(){this.all=new Set,this.queue=new Map}create(n,i,a){const s=typeof Zone>"u"?null:Zone.current,c=function hE(e,t,r){const n=Object.create(pE);r&&(n.consumerAllowSignalWrites=!0),n.fn=e,n.schedule=t;const i=s=>{n.cleanupFn=s};return n.ref={notify:()=>Xu(n),run:()=>{if(n.dirty=!1,n.hasRun&&!e9(n))return;n.hasRun=!0;const s=X6(n);try{n.cleanupFn(),n.cleanupFn=o9,n.fn(i)}finally{e0(n,s)}},cleanup:()=>n.cleanupFn()},n.ref}(n,f=>{this.all.has(f)&&this.queue.set(f,s)},a);let o;this.all.add(c),c.notify();const l=()=>{c.cleanup(),o?.(),this.all.delete(c),this.queue.delete(c)};return o=i?.onDestroy(l),{destroy:l}}flush(){if(0!==this.queue.size)for(const[n,i]of this.queue)this.queue.delete(n),i?i.run(()=>n.run()):n.run()}get isQueueEmpty(){return 0===this.queue.size}}return(e=t).\u0275prov=K({token:e,providedIn:"root",factory:()=>new e}),t})();function tc(e,t,r){let n=r?e.styles:null,i=r?e.classes:null,a=0;if(null!==t)for(let s=0;s<t.length;s++){const c=t[s];"number"==typeof c?a=c:1==a?i=T6(i,c):2==a&&(n=T6(n,c+": "+t[++s]+";"))}r?e.styles=n:e.stylesWithoutHost=n,r?e.classes=i:e.classesWithoutHost=i}function di(e,t,r,n,i=!1){for(;null!==r;){const a=t[r.index];null!==a&&n.push(n1(a)),M2(a)&&Gh(a,n);const s=r.type;if(8&s)di(e,t,r.child,n);else if(32&s){const c=x0(r,t);let o;for(;o=c();)n.push(o)}else if(16&s){const c=Vd(t,r);if(Array.isArray(c))n.push(...c);else{const o=ti(t[T1]);di(o[Z],o,c,n,!0)}}r=i?r.projectionNext:r.next}return n}function Gh(e,t){for(let r=a2;r<e.length;r++){const n=e[r],i=n[Z].firstChild;null!==i&&di(n[Z],n,i,t)}e[$t]!==e[L1]&&t.push(e[$t])}function nc(e,t,r,n=!0){const i=t[s3],a=i.rendererFactory,s=i.afterRenderEventManager;a.begin?.(),s?.begin();try{$h(e,t,e.template,r)}catch(o){throw n&&Uh(t,o),o}finally{a.end?.(),i.effectManager?.flush(),s?.end()}}function $h(e,t,r,n){const i=t[ge];if(256!=(256&i)){t[s3].effectManager?.flush(),u0(t);try{m9(t),function H9(e){return oe.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==r&&Lh(e,t,r,2,n);const s=3==(3&i);if(s){const l=e.preOrderCheckHooks;null!==l&&ps(t,l,null)}else{const l=e.preOrderHooks;null!==l&&ms(t,l,0,null),h0(t,0)}if(function aR(e){for(let t=hd(e);null!==t;t=pd(t)){if(!t[Wu])continue;const r=t[l3];for(let n=0;n<r.length;n++){wE(r[n])}}}(t),Wh(t,2),null!==e.contentQueries&&kh(e,t),s){const l=e.contentCheckHooks;null!==l&&ps(t,l)}else{const l=e.contentHooks;null!==l&&ms(t,l,1),h0(t,1)}!function xO(e,t){const r=e.hostBindingOpCodes;if(null===r)return;const n=Hh(t,jr);try{for(let i=0;i<r.length;i++){const a=r[i];if(a<0)u4(~a);else{const s=a,c=r[++i],o=r[++i];OE(c,s),n.dirty=!1;const l=X6(n);try{o(2,t[s])}finally{e0(n,l)}}}}finally{null===t[jr]&&wh(t,jr),u4(-1)}}(e,t);const c=e.components;null!==c&&Kh(t,c,0);const o=e.viewQuery;if(null!==o&&w8(2,o,n),s){const l=e.viewCheckHooks;null!==l&&ps(t,l)}else{const l=e.viewHooks;null!==l&&ms(t,l,2),h0(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[ge]&=-73,g9(t)}finally{d0()}}}function Wh(e,t){for(let r=hd(e);null!==r;r=pd(r))for(let n=a2;n<r.length;n++)qh(r[n],t)}function sR(e,t,r){qh(Y2(t,e),r)}function qh(e,t){if(!function bE(e){return 128==(128&e[ge])}(e))return;const r=e[Z],n=e[ge];if(80&n&&0===t||1024&n||2===t)$h(r,e,r.template,e[E1]);else if(e[kr]>0){Wh(e,1);const i=r.components;null!==i&&Kh(e,i,1)}}function Kh(e,t,r){for(let n=0;n<t.length;n++)sR(e,t[n],r)}class hi{get rootNodes(){const t=this._lView,r=t[Z];return di(r,t,r.firstChild,[])}constructor(t,r){this._lView=t,this._cdRefInjectingView=r,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[E1]}set context(t){this._lView[E1]=t}get destroyed(){return 256==(256&this._lView[ge])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[p1];if(M2(t)){const r=t[8],n=r?r.indexOf(this):-1;n>-1&&(As(t,n),Ms(r,n))}this._attachedToViewContainer=!1}A0(this._lView[Z],this._lView)}onDestroy(t){!function _9(e,t){if(256==(256&e[ge]))throw new F(911,!1);null===e[kn]&&(e[kn]=[]),e[kn].push(t)}(this._lView,t)}markForCheck(){fi(this._cdRefInjectingView||this._lView)}detach(){this._lView[ge]&=-129}reattach(){this._lView[ge]|=128}detectChanges(){nc(this._lView[Z],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new F(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function KT(e,t){ri(e,t,t[he],2,null,null)}(this._lView[Z],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new F(902,!1);this._appRef=t}}class cR extends hi{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;nc(t[Z],t,t[E1],!1)}checkNoChanges(){}get context(){return null}}class Yh extends Zs{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const r=Le(t);return new pi(r,this.ngModule)}}function Zh(e){const t=[];for(let r in e)e.hasOwnProperty(r)&&t.push({propName:e[r],templateName:r});return t}class lR{constructor(t,r){this.injector=t,this.parentInjector=r}get(t,r,n){n=rs(n);const i=this.injector.get(t,o8,n);return i!==o8||r===o8?i:this.parentInjector.get(t,r,n)}}class pi extends nh{get inputs(){const t=this.componentDef,r=t.inputTransforms,n=Zh(t.inputs);if(null!==r)for(const i of n)r.hasOwnProperty(i.propName)&&(i.transform=r[i.propName]);return n}get outputs(){return Zh(this.componentDef.outputs)}constructor(t,r){super(),this.componentDef=t,this.ngModule=r,this.componentType=t.type,this.selector=function KA(e){return e.map(qA).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!r}create(t,r,n,i){let a=(i=i||this.ngModule)instanceof k2?i:i?.injector;a&&null!==this.componentDef.getStandaloneInjector&&(a=this.componentDef.getStandaloneInjector(a)||a);const s=a?new lR(t,a):t,c=s.get(c8,null);if(null===c)throw new F(407,!1);const d={rendererFactory:c,sanitizer:s.get(aO,null),effectManager:s.get(jh,null),afterRenderEventManager:s.get(m8,null)},p=c.createRenderer(null,this.componentDef),g=this.componentDef.selectors[0][0]||"div",w=n?function AO(e,t,r,n){const a=n.get(Ch,!1)||r===wt.ShadowDom,s=e.selectRootElement(t,a);return function EO(e){Nh(e)}(s),s}(p,n,this.componentDef.encapsulation,s):Ns(p,g,function oR(e){const t=e.toLowerCase();return"svg"===t?d9:"math"===t?"math":null}(g)),T=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let S=null;null!==w&&(S=i8(w,s,!0));const B=M8(0,null,null,1,0,null,null,null,null,null,null),U=Xs(null,B,null,T,null,null,d,p,s,null,S);let q,re;u0(U);try{const _e=this.componentDef;let He,ke=null;_e.findHostDirectiveDefs?(He=[],ke=new Map,_e.findHostDirectiveDefs(_e,He,ke),He.push(_e)):He=[_e];const z1=function uR(e,t){const r=e[Z],n=ze;return e[n]=t,R3(r,n,2,"#host",null)}(U,w),t2=function dR(e,t,r,n,i,a,s){const c=i[Z];!function hR(e,t,r,n){for(const i of e)t.mergedAttrs=Rr(t.mergedAttrs,i.hostAttrs);null!==t.mergedAttrs&&(tc(t,t.mergedAttrs,!0),null!==r&&Ld(n,r,t))}(n,e,t,s);let o=null;null!==t&&(o=i8(t,i[Rn]));const l=a.rendererFactory.createRenderer(t,r);let f=16;r.signals?f=4096:r.onPush&&(f=64);const d=Xs(i,xh(r),null,f,i[e.index],e,a,l,null,null,o);return c.firstCreatePass&&b8(c,e,n.length-1),ec(i,d),i[e.index]=d}(z1,w,_e,He,U,d,p);re=p9(B,ze),w&&function mR(e,t,r,n){if(n)K6(e,r,["ng-version",sO.full]);else{const{attrs:i,classes:a}=function YA(e){const t=[],r=[];let n=1,i=2;for(;n<e.length;){let a=e[n];if("string"==typeof a)2===i?""!==a&&t.push(a,e[++n]):8===i&&r.push(a);else{if(!Vt(i))break;i=a}n++}return{attrs:t,classes:r}}(t.selectors[0]);i&&K6(e,r,i),a&&a.length>0&&Sd(e,r,a.join(" "))}}(p,_e,w,n),void 0!==r&&function gR(e,t,r){const n=e.projection=[];for(let i=0;i<t.length;i++){const a=r[i];n.push(null!=a?Array.from(a):null)}}(re,this.ngContentSelectors,r),q=function pR(e,t,r,n,i,a){const s=c2(),c=i[Z],o=I2(s,i);Th(c,i,s,r,null,n);for(let f=0;f<r.length;f++)g2(d4(i,c,s.directiveStart+f,s),i);Ih(c,i,s),o&&g2(o,i);const l=d4(i,c,s.directiveStart+s.componentOffset,s);if(e[E1]=i[E1]=l,null!==a)for(const f of a)f(l,t);return v8(c,s,e),l}(t2,_e,He,ke,U,[vR]),z8(B,U,null)}finally{d0()}return new fR(this.componentType,q,T3(re,U),U,re)}}class fR extends XI{constructor(t,r,n,i,a){super(),this.location=n,this._rootLView=i,this._tNode=a,this.previousInputValues=null,this.instance=r,this.hostView=this.changeDetectorRef=new cR(i),this.componentType=t}setInput(t,r){const n=this._tNode.inputs;let i;if(null!==n&&(i=n[t])){if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),r))return;const a=this._rootLView;V8(a[Z],a,i,t,r),this.previousInputValues.set(t,r),fi(Y2(this._tNode.index,a))}}get injector(){return new H2(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function vR(){const e=c2();hs(P()[Z],e)}function ie(e){let t=function Qh(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),r=!0;const n=[e];for(;t;){let i;if(Dt(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new F(903,!1);i=t.\u0275dir}if(i){if(r){n.push(i);const s=e;s.inputs=rc(e.inputs),s.inputTransforms=rc(e.inputTransforms),s.declaredInputs=rc(e.declaredInputs),s.outputs=rc(e.outputs);const c=i.hostBindings;c&&yR(e,c);const o=i.viewQuery,l=i.contentQueries;if(o&&CR(e,o),l&&MR(e,l),Qa(e.inputs,i.inputs),Qa(e.declaredInputs,i.declaredInputs),Qa(e.outputs,i.outputs),null!==i.inputTransforms&&(null===s.inputTransforms&&(s.inputTransforms={}),Qa(s.inputTransforms,i.inputTransforms)),Dt(i)&&i.data.animation){const f=e.data;f.animation=(f.animation||[]).concat(i.data.animation)}}const a=i.features;if(a)for(let s=0;s<a.length;s++){const c=a[s];c&&c.ngInherit&&c(e),c===ie&&(r=!1)}}t=Object.getPrototypeOf(t)}!function _R(e){let t=0,r=null;for(let n=e.length-1;n>=0;n--){const i=e[n];i.hostVars=t+=i.hostVars,i.hostAttrs=Rr(i.hostAttrs,r=Rr(r,i.hostAttrs))}}(n)}function rc(e){return e===jt?{}:e===Te?[]:e}function CR(e,t){const r=e.viewQuery;e.viewQuery=r?(n,i)=>{t(n,i),r(n,i)}:t}function MR(e,t){const r=e.contentQueries;e.contentQueries=r?(n,i,a)=>{t(n,i,a),r(n,i,a)}:t}function yR(e,t){const r=e.hostBindings;e.hostBindings=r?(n,i)=>{t(n,i),r(n,i)}:t}function tp(e){const t=e.inputConfig,r={};for(const n in t)if(t.hasOwnProperty(n)){const i=t[n];Array.isArray(i)&&i[2]&&(r[n]=i[2])}e.inputTransforms=r}function ic(e){return!!function D8(e){return null!==e&&("function"==typeof e||"object"==typeof e)}(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function v2(e,t,r){return!Object.is(e[t],r)&&(e[t]=r,!0)}function v4(e,t,r,n){const i=v2(e,t,r);return v2(e,t+1,n)||i}function j(e,t,r,n){const i=P();return v2(i,h3(),t)&&(xe(),Zt(C1(),i,e,t,r,n)),j}function P3(e,t,r,n){return v2(e,h3(),r)?t+de(r)+n:pe}function F3(e,t,r,n,i,a){const c=v4(e,function dn(){return oe.lFrame.bindingIndex}(),r,i);return hn(2),c?t+de(r)+n+de(i)+a:pe}function O(e,t,r,n,i,a,s,c){const o=P(),l=xe(),f=e+ze,d=l.firstCreatePass?function $R(e,t,r,n,i,a,s,c,o){const l=t.consts,f=R3(t,e,4,s||null,Fn(l,c));y8(t,r,f,Fn(l,o)),hs(t,f);const d=f.tView=M8(2,f,n,i,a,t.directiveRegistry,t.pipeRegistry,null,t.schemas,l,null);return null!==t.queries&&(t.queries.template(t,f),d.queries=t.queries.embeddedTView(f)),f}(f,l,o,t,r,n,i,a,s):l.data[f];qt(d,!1);const p=pp(l,o,d,e);ds()&&Ts(l,o,p,d),g2(p,o),ec(o,o[f]=Rh(p,o,p,d)),os(d)&&_8(l,o,d),null!=s&&C8(o,d,c)}let pp=function mp(e,t,r,n){return Bn(!0),t[he].createComment("")};function P2(e){return function u3(e,t){return e[t]}(function TE(){return oe.lFrame.contextLView}(),ze+e)}function M(e,t,r){const n=P();return v2(n,h3(),t)&&J2(xe(),C1(),n,e,t,n[he],r,!1),M}function E8(e,t,r,n,i){const s=i?"class":"style";V8(e,r,t.inputs[s],s,n)}function m(e,t,r,n){const i=P(),a=xe(),s=ze+e,c=i[he],o=a.firstCreatePass?function YR(e,t,r,n,i,a){const s=t.consts,o=R3(t,e,2,n,Fn(s,i));return y8(t,r,o,Fn(s,a)),null!==o.attrs&&tc(o,o.attrs,!1),null!==o.mergedAttrs&&tc(o,o.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,o),o}(s,a,i,t,r,n):a.data[s],l=gp(a,i,o,c,t,e);i[s]=l;const f=os(o);return qt(o,!0),Ld(c,l,o),32!=(32&o.flags)&&ds()&&Ts(a,i,l,o),0===function zE(){return oe.lFrame.elementDepthCount}()&&g2(l,i),function DE(){oe.lFrame.elementDepthCount++}(),f&&(_8(a,i,o),v8(a,o,i)),null!==n&&C8(i,o),m}function v(){let e=c2();s0()?c0():(e=e.parent,qt(e,!1));const t=e;(function LE(e){return oe.skipHydrationRootTNode===e})(t)&&function EE(){oe.skipHydrationRootTNode=null}(),function SE(){oe.lFrame.elementDepthCount--}();const r=xe();return r.firstCreatePass&&(hs(r,e),Z6(e)&&r.queries.elementEnd(e)),null!=t.classesWithoutHost&&function WE(e){return 0!=(8&e.flags)}(t)&&E8(r,t,P(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function qE(e){return 0!=(16&e.flags)}(t)&&E8(r,t,P(),t.stylesWithoutHost,!1),v}function k(e,t,r,n){return m(e,t,r,n),v(),k}let gp=(e,t,r,n,i,a)=>(Bn(!0),Ns(n,i,function N9(){return oe.lFrame.currentNamespace}()));function M1(){return P()}function Mi(e){return!!e&&"function"==typeof e.then}function Cp(e){return!!e&&"function"==typeof e.subscribe}function I(e,t,r,n){const i=P(),a=xe(),s=c2();return function yp(e,t,r,n,i,a,s){const c=os(n),l=e.firstCreatePass&&Fh(e),f=t[E1],d=Ph(t);let p=!0;if(3&n.type||s){const z=I2(n,t),L=s?s(z):z,T=d.length,S=s?U=>s(n1(U[n.index])):n.index;let B=null;if(!s&&c&&(B=function tk(e,t,r,n){const i=e.cleanup;if(null!=i)for(let a=0;a<i.length-1;a+=2){const s=i[a];if(s===r&&i[a+1]===n){const c=t[a3],o=i[a+2];return c.length>o?c[o]:null}"string"==typeof s&&(a+=2)}return null}(e,t,i,n.index)),null!==B)(B.__ngLastListenerFn__||B).__ngNextListenerFn__=a,B.__ngLastListenerFn__=a,p=!1;else{a=Hp(n,t,f,a,!1);const U=r.listen(L,i,a);d.push(a,U),l&&l.push(i,S,T,T+1)}}else a=Hp(n,t,f,a,!1);const g=n.outputs;let w;if(p&&null!==g&&(w=g[i])){const z=w.length;if(z)for(let L=0;L<z;L+=2){const q=t[w[L]][w[L+1]].subscribe(a),re=d.length;d.push(a,q),l&&l.push(i,n.index,re,-(re+1))}}}(a,i,i[he],s,e,t,n),I}function bp(e,t,r,n){try{return Wt(6,t,r),!1!==r(n)}catch(i){return Uh(e,i),!1}finally{Wt(7,t,r)}}function Hp(e,t,r,n,i){return function a(s){if(s===Function)return n;fi(e.componentOffset>-1?Y2(e.index,t):t);let o=bp(t,r,n,s),l=a.__ngNextListenerFn__;for(;l;)o=bp(t,r,l,s)&&o,l=l.__ngNextListenerFn__;return i&&!1===o&&s.preventDefault(),o}}function x(e=1){return function PE(e){return(oe.lFrame.contextLView=function FE(e,t){for(;e>0;)t=t[c3],e--;return t}(e,oe.lFrame.contextLView))[E1]}(e)}function nk(e,t){let r=null;const n=function jA(e){const t=e.attrs;if(null!=t){const r=t.indexOf(5);if(!(1&r))return t[r+1]}return null}(e);for(let i=0;i<t.length;i++){const a=t[i];if("*"!==a){if(null===n?Pu(e,a,!0):WA(n,a))return i}else r=i}return r}function q3(e){const t=P()[T1][m2];if(!t.projection){const n=t.projection=Jr(e?e.length:1,null),i=n.slice();let a=t.child;for(;null!==a;){const s=e?nk(a,e):0;null!==s&&(i[s]?i[s].projectionNext=a:n[s]=a,i[s]=a),a=a.next}}}function K3(e,t=0,r){const n=P(),i=xe(),a=R3(i,ze+e,16,null,r||null);null===a.projection&&(a.projection=t),c0(),(!n[un]||d3())&&32!=(32&a.flags)&&function nI(e,t,r){Dd(t[he],0,t,r,T0(e,r,t),yd(r.parent||t[m2],r,t))}(i,n,a)}function O8(e,t,r){return Y3(e,"",t,"",r),O8}function Y3(e,t,r,n,i){const a=P(),s=P3(a,t,r,n);return s!==pe&&J2(xe(),C1(),a,e,s,a[he],i,!1),Y3}function lc(e,t){return e<<17|t<<2}function jn(e){return e>>17&32767}function R8(e){return 2|e}function _4(e){return(131068&e)>>2}function k8(e,t){return-131069&e|t<<2}function P8(e){return 1|e}function Ap(e,t,r,n,i){const a=e[r+1],s=null===t;let c=n?jn(a):_4(a),o=!1;for(;0!==c&&(!1===o||s);){const f=e[c+1];ok(e[c],t)&&(o=!0,e[c+1]=n?P8(f):R8(f)),c=n?jn(f):_4(f)}o&&(e[r+1]=n?R8(a):P8(a))}function ok(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&H3(e,t)>=0}const W1={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ep(e){return e.substring(W1.key,W1.keyEnd)}function Tp(e,t){const r=W1.textEnd;return r===t?-1:(t=W1.keyEnd=function dk(e,t,r){for(;t<r&&e.charCodeAt(t)>32;)t++;return t}(e,W1.key=t,r),Z3(e,t,r))}function Z3(e,t,r){for(;t<r&&e.charCodeAt(t)<=32;)t++;return t}function Se(e,t){return function St(e,t,r,n){const i=P(),a=xe(),s=hn(2);a.firstUpdatePass&&Bp(a,e,s,n),t!==pe&&v2(i,s,t)&&jp(a,a.data[b2()],i,i[he],e,i[s+1]=function Hk(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=G1(Q2(e)))),e}(t,r),n,s)}(e,t,null,!0),Se}function _n(e){!function Lt(e,t,r,n){const i=xe(),a=hn(2);i.firstUpdatePass&&Bp(i,null,a,n);const s=P();if(r!==pe&&v2(s,a,r)){const c=i.data[b2()];if($p(c,n)&&!Fp(i,a)){let o=n?c.classesWithoutHost:c.stylesWithoutHost;null!==o&&(r=T6(o,r||"")),E8(i,c,s,r,n)}else!function bk(e,t,r,n,i,a,s,c){i===pe&&(i=Te);let o=0,l=0,f=0<i.length?i[0]:null,d=0<a.length?a[0]:null;for(;null!==f||null!==d;){const p=o<i.length?i[o+1]:void 0,g=l<a.length?a[l+1]:void 0;let z,w=null;f===d?(o+=2,l+=2,p!==g&&(w=d,z=g)):null===d||null!==f&&f<d?(o+=2,w=f):(l+=2,w=d,z=g),null!==w&&jp(e,t,r,n,w,z,s,c),f=o<i.length?i[o]:null,d=l<a.length?a[l]:null}}(i,c,s,s[he],s[a+1],s[a+1]=function Mk(e,t,r){if(null==r||""===r)return Te;const n=[],i=Q2(r);if(Array.isArray(i))for(let a=0;a<i.length;a++)e(n,i[a],!0);else if("object"==typeof i)for(const a in i)i.hasOwnProperty(a)&&e(n,a,i[a]);else"string"==typeof i&&t(n,i);return n}(e,t,r),n,a)}}(yk,Xt,e,!0)}function Xt(e,t){for(let r=function fk(e){return function Op(e){W1.key=0,W1.keyEnd=0,W1.value=0,W1.valueEnd=0,W1.textEnd=e.length}(e),Tp(e,Z3(e,0,W1.textEnd))}(t);r>=0;r=Tp(t,r))Z2(e,Ep(t),!0)}function Fp(e,t){return t>=e.expandoStartIndex}function Bp(e,t,r,n){const i=e.data;if(null===i[r+1]){const a=i[b2()],s=Fp(e,r);$p(a,n)&&null===t&&!s&&(t=!1),t=function gk(e,t,r,n){const i=function l0(e){const t=oe.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let a=n?t.residualClasses:t.residualStyles;if(null===i)0===(n?t.classBindings:t.styleBindings)&&(r=yi(r=F8(null,e,t,r,n),t.attrs,n),a=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==i)if(r=F8(i,e,t,r,n),null===a){let o=function vk(e,t,r){const n=r?t.classBindings:t.styleBindings;if(0!==_4(n))return e[jn(n)]}(e,t,n);void 0!==o&&Array.isArray(o)&&(o=F8(null,e,t,o[1],n),o=yi(o,t.attrs,n),function _k(e,t,r,n){e[jn(r?t.classBindings:t.styleBindings)]=n}(e,t,n,o))}else a=function Ck(e,t,r){let n;const i=t.directiveEnd;for(let a=1+t.directiveStylingLast;a<i;a++)n=yi(n,e[a].hostAttrs,r);return yi(n,t.attrs,r)}(e,t,n)}return void 0!==a&&(n?t.residualClasses=a:t.residualStyles=a),r}(i,a,t,n),function sk(e,t,r,n,i,a){let s=a?t.classBindings:t.styleBindings,c=jn(s),o=_4(s);e[n]=r;let f,l=!1;if(Array.isArray(r)?(f=r[1],(null===f||H3(r,f)>0)&&(l=!0)):f=r,i)if(0!==o){const p=jn(e[c+1]);e[n+1]=lc(p,c),0!==p&&(e[p+1]=k8(e[p+1],n)),e[c+1]=function ik(e,t){return 131071&e|t<<17}(e[c+1],n)}else e[n+1]=lc(c,0),0!==c&&(e[c+1]=k8(e[c+1],n)),c=n;else e[n+1]=lc(o,0),0===c?c=n:e[o+1]=k8(e[o+1],n),o=n;l&&(e[n+1]=R8(e[n+1])),Ap(e,f,n,!0),Ap(e,f,n,!1),function ck(e,t,r,n,i){const a=i?e.residualClasses:e.residualStyles;null!=a&&"string"==typeof t&&H3(a,t)>=0&&(r[n+1]=P8(r[n+1]))}(t,f,e,n,a),s=lc(c,o),a?t.classBindings=s:t.styleBindings=s}(i,a,t,r,s,n)}}function F8(e,t,r,n,i){let a=null;const s=r.directiveEnd;let c=r.directiveStylingLast;for(-1===c?c=r.directiveStart:c++;c<s&&(a=t[c],n=yi(n,a.hostAttrs,i),a!==e);)c++;return null!==e&&(r.directiveStylingLast=c),n}function yi(e,t,r){const n=r?1:2;let i=-1;if(null!==t)for(let a=0;a<t.length;a++){const s=t[a];"number"==typeof s?i=s:i===n&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Z2(e,s,!!r||t[++a]))}return void 0===e?null:e}function yk(e,t,r){const n=String(t);""!==n&&!n.includes(" ")&&Z2(e,n,r)}function jp(e,t,r,n,i,a,s,c){if(!(3&t.type))return;const o=e.data,l=o[c+1],f=function ak(e){return 1==(1&e)}(l)?Gp(o,t,r,i,_4(l),s):void 0;fc(f)||(fc(a)||function rk(e){return 2==(2&e)}(l)&&(a=Gp(o,null,r,i,c,s)),function iI(e,t,r,n,i){if(t)i?e.addClass(r,n):e.removeClass(r,n);else{let a=-1===n.indexOf("-")?void 0:Un.DashCase;null==i?e.removeStyle(r,n,a):("string"==typeof i&&i.endsWith("!important")&&(i=i.slice(0,-10),a|=Un.Important),e.setStyle(r,n,i,a))}}(n,s,us(b2(),r),i,a))}function Gp(e,t,r,n,i,a){const s=null===t;let c;for(;i>0;){const o=e[i],l=Array.isArray(o),f=l?o[1]:o,d=null===f;let p=r[i+1];p===pe&&(p=d?Te:void 0);let g=d?y0(p,n):f===n?p:void 0;if(l&&!fc(g)&&(g=y0(o,n)),fc(g)&&(c=g,s))return c;const w=e[i+1];i=s?jn(w):_4(w)}if(null!==t){let o=a?t.residualClasses:t.residualStyles;null!=o&&(c=y0(o,n))}return c}function fc(e){return void 0!==e}function $p(e,t){return 0!=(e.flags&(t?8:16))}function y(e,t=""){const r=P(),n=xe(),i=e+ze,a=n.firstCreatePass?R3(n,i,1,t,null):n.data[i],s=Wp(n,r,a,t,e);r[i]=s,ds()&&Ts(n,r,s,a),qt(a,!1)}let Wp=(e,t,r,n,i)=>(Bn(!0),function xs(e,t){return e.createText(t)}(t[he],n));function X2(e){return F2("",e,""),X2}function F2(e,t,r){const n=P(),i=P3(n,e,t,r);return i!==pe&&vn(n,b2(),i),F2}function Q3(e,t,r,n,i){const a=P(),s=F3(a,e,t,r,n,i);return s!==pe&&vn(a,b2(),s),Q3}function w2(e,t,r){const n=P();return v2(n,h3(),t)&&J2(xe(),C1(),n,e,t,n[he],r,!0),w2}const X3="en-US";let dm=X3;function j8(e,t,r,n,i){if(e=fe(e),Array.isArray(e))for(let a=0;a<e.length;a++)j8(e[a],t,r,n,i);else{const a=xe(),s=P(),c=c2();let o=g4(e)?e:fe(e.provide);const l=Zd(e),f=1048575&c.providerIndexes,d=c.directiveStart,p=c.providerIndexes>>20;if(g4(e)||!e.multi){const g=new qr(l,i,H),w=$8(o,t,i?f:f+p,d);-1===w?(_0(vs(c,s),a,o),G8(a,e,t.length),t.push(o),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),r.push(g),s.push(g)):(r[w]=g,s[w]=g)}else{const g=$8(o,t,f+p,d),w=$8(o,t,f,f+p),L=w>=0&&r[w];if(i&&!L||!i&&!(g>=0&&r[g])){_0(vs(c,s),a,o);const T=function jP(e,t,r,n,i){const a=new qr(e,r,H);return a.multi=[],a.index=t,a.componentProviders=0,Rm(a,i,n&&!r),a}(i?UP:BP,r.length,i,n,l);!i&&L&&(r[w].providerFactory=T),G8(a,e,t.length,0),t.push(o),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),r.push(T),s.push(T)}else G8(a,e,g>-1?g:w,Rm(r[i?w:g],l,!i&&n));!i&&n&&L&&r[w].componentProviders++}}}function G8(e,t,r,n){const i=g4(t),a=function OI(e){return!!e.useClass}(t);if(i||a){const o=(a?fe(t.useClass):t).prototype.ngOnDestroy;if(o){const l=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){const f=l.indexOf(r);-1===f?l.push(r,[n,o]):l[f+1].push(n,o)}else l.push(r,o)}}}function Rm(e,t,r){return r&&e.componentProviders++,e.multi.push(t)-1}function $8(e,t,r,n){for(let i=r;i<n;i++)if(t[i]===e)return i;return-1}function BP(e,t,r,n){return W8(this.multi,[])}function UP(e,t,r,n){const i=this.multi;let a;if(this.providerFactory){const s=this.providerFactory.componentProviders,c=d4(r,r[Z],this.providerFactory.index,n);a=c.slice(0,s),W8(i,a);for(let o=s;o<c.length;o++)a.push(c[o])}else a=[],W8(i,a);return a}function W8(e,t){for(let r=0;r<e.length;r++)t.push((0,e[r])());return t}function Ye(e,t=[]){return r=>{r.providersResolver=(n,i)=>function FP(e,t,r){const n=xe();if(n.firstCreatePass){const i=Dt(e);j8(r,n.data,n.blueprint,i,!0),j8(t,n.data,n.blueprint,i,!1)}}(n,i?i(e):e,t)}}class M4{}class km{}class q8 extends M4{constructor(t,r,n){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Yh(this);const i=K2(t);this._bootstrapComponents=gn(i.bootstrap),this._r3Injector=oh(t,r,[{provide:M4,useValue:this},{provide:Zs,useValue:this.componentFactoryResolver},...n],G1(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class K8 extends km{constructor(t){super(),this.moduleType=t}create(t){return new q8(this.moduleType,t,[])}}class Pm extends M4{constructor(t){super(),this.componentFactoryResolver=new Yh(this),this.instance=null;const r=new js([...t.providers,{provide:M4,useValue:this},{provide:Zs,useValue:this.componentFactoryResolver}],t.parent||Us(),t.debugName,new Set(["environment"]));this.injector=r,t.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Y8(e,t,r=null){return new Pm({providers:e,parent:t,debugName:r,runEnvironmentInitializers:!0}).injector}let WP=(()=>{var e;class t{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){const i=Wd(0,n.type),a=i.length>0?Y8([i],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,a)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}}return(e=t).\u0275prov=K({token:e,providedIn:"environment",factory:()=>new e(Y(k2))}),t})();function z2(e){e.getStandaloneInjector=t=>t.get(WP).getOrCreateStandaloneInjector(e)}function Li(e,t,r,n,i){return function qm(e,t,r,n,i,a,s){const c=t+r;return v4(e,c,i,a)?function Qt(e,t,r){return e[t]=r}(e,c+2,s?n.call(s,i,a):n(i,a)):function xi(e,t){const r=e[t];return r===pe?void 0:r}(e,c+2)}(P(),function y2(){const e=oe.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}(),e,t,r,n,i)}function mF(){return this._results[Symbol.iterator]()}class J8{get changes(){return this._changes||(this._changes=new ee)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const r=J8.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=mF)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,r){return this._results.reduce(t,r)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,r){const n=this;n.dirty=!1;const i=function ht(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function cT(e,t,r){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){let i=e[n],a=t[n];if(r&&(i=r(i),a=r(a)),a!==i)return!1}return!0}(n._results,i,r))&&(n._results=i,n.length=i.length,n.last=i[this.length-1],n.first=i[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}function vF(e,t,r,n=!0){const i=t[Z];if(function ZT(e,t,r,n){const i=a2+n,a=r.length;n>0&&(r[i-1][zt]=t),n<a-a2?(t[zt]=r[i],W9(r,a2+n,t)):(r.push(t),t[zt]=null),t[p1]=r;const s=t[Fr];null!==s&&r!==s&&function QT(e,t){const r=e[l3];t[T1]!==t[p1][p1][T1]&&(e[Wu]=!0),null===r?e[l3]=[t]:r.push(t)}(s,t);const c=t[Gt];null!==c&&c.insertView(e),t[ge]|=128}(i,t,e,r),n){const a=O0(r,e),s=t[he],c=Es(s,e[$t]);null!==c&&function qT(e,t,r,n,i,a){n[L1]=i,n[m2]=t,ri(e,n,r,1,i,a)}(i,e[m2],s,t,c,a)}}let c1=(()=>{class t{}return t.__NG_ELEMENT_ID__=MF,t})();const _F=c1,CF=class extends _F{constructor(t,r,n){super(),this._declarationLView=t,this._declarationTContainer=r,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,r){return this.createEmbeddedViewImpl(t,r)}createEmbeddedViewImpl(t,r,n){const i=function gF(e,t,r,n){const i=t.tView,c=Xs(e,i,r,4096&e[ge]?4096:16,null,t,null,null,null,n?.injector??null,n?.hydrationInfo??null);c[Fr]=e[t.index];const l=e[Gt];return null!==l&&(c[Gt]=l.createEmbeddedView(i)),z8(i,c,r),c}(this._declarationLView,this._declarationTContainer,t,{injector:r,hydrationInfo:n});return new hi(i)}};function MF(){return mc(c2(),P())}function mc(e,t){return 4&e.type?new CF(t,e,T3(e,t)):null}let U2=(()=>{class t{}return t.__NG_ELEMENT_ID__=zF,t})();function zF(){return rg(c2(),P())}const DF=U2,tg=class extends DF{constructor(t,r,n){super(),this._lContainer=t,this._hostTNode=r,this._hostLView=n}get element(){return T3(this._hostTNode,this._hostLView)}get injector(){return new H2(this._hostTNode,this._hostLView)}get parentInjector(){const t=_s(this._hostTNode,this._hostLView);if(m0(t)){const r=Yr(t,this._hostLView),n=Kr(t);return new H2(r[Z].data[n+8],r)}return new H2(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const r=ng(this._lContainer);return null!==r&&r[t]||null}get length(){return this._lContainer.length-a2}createEmbeddedView(t,r,n){let i,a;"number"==typeof n?i=n:null!=n&&(i=n.index,a=n.injector);const c=t.createEmbeddedViewImpl(r||{},a,null);return this.insertImpl(c,i,false),c}createComponent(t,r,n,i,a){const s=t&&!function Qr(e){return"function"==typeof e}(t);let c;if(s)c=r;else{const z=r||{};c=z.index,n=z.injector,i=z.projectableNodes,a=z.environmentInjector||z.ngModuleRef}const o=s?t:new pi(Le(t)),l=n||this.parentInjector;if(!a&&null==o.ngModule){const L=(s?l:this.parentInjector).get(k2,null);L&&(a=L)}Le(o.componentType??{});const g=o.create(l,i,null,a);return this.insertImpl(g.hostView,c,false),g}insert(t,r){return this.insertImpl(t,r,!1)}insertImpl(t,r,n){const i=t._lView;if(function HE(e){return M2(e[p1])}(i)){const o=this.indexOf(t);if(-1!==o)this.detach(o);else{const l=i[p1],f=new tg(l,l[m2],l[p1]);f.detach(f.indexOf(t))}}const s=this._adjustIndex(r),c=this._lContainer;return vF(c,i,s,!n),t.attachToViewContainerRef(),W9(X8(c),s,t),t}move(t,r){return this.insert(t,r)}indexOf(t){const r=ng(this._lContainer);return null!==r?r.indexOf(t):-1}remove(t){const r=this._adjustIndex(t,-1),n=As(this._lContainer,r);n&&(Ms(X8(this._lContainer),r),A0(n[Z],n))}detach(t){const r=this._adjustIndex(t,-1),n=As(this._lContainer,r);return n&&null!=Ms(X8(this._lContainer),r)?new hi(n):null}_adjustIndex(t,r=0){return t??this.length+r}};function ng(e){return e[8]}function X8(e){return e[8]||(e[8]=[])}function rg(e,t){let r;const n=t[e.index];return M2(n)?r=n:(r=Rh(n,t,null,e),t[e.index]=r,ec(t,r)),ig(r,t,e,n),new tg(r,e,t)}let ig=function ag(e,t,r,n){if(e[$t])return;let i;i=8&r.type?n1(n):function SF(e,t){const r=e[he],n=r.createComment(""),i=I2(t,e);return p4(r,Es(r,i),n,function tI(e,t){return e.nextSibling(t)}(r,i),!1),n}(t,r),e[$t]=i};class el{constructor(t){this.queryList=t,this.matches=null}clone(){return new el(this.queryList)}setDirty(){this.queryList.setDirty()}}class tl{constructor(t=[]){this.queries=t}createEmbeddedView(t){const r=t.queries;if(null!==r){const n=null!==t.contentQueries?t.contentQueries[0]:r.length,i=[];for(let a=0;a<n;a++){const s=r.getByIndex(a);i.push(this.queries[s.indexInDeclarationView].clone())}return new tl(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let r=0;r<this.queries.length;r++)null!==fg(t,r).matches&&this.queries[r].setDirty()}}class sg{constructor(t,r,n=null){this.predicate=t,this.flags=r,this.read=n}}class nl{constructor(t=[]){this.queries=t}elementStart(t,r){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(t,r)}elementEnd(t){for(let r=0;r<this.queries.length;r++)this.queries[r].elementEnd(t)}embeddedTView(t){let r=null;for(let n=0;n<this.length;n++){const i=null!==r?r.length:0,a=this.getByIndex(n).embeddedTView(t,i);a&&(a.indexInDeclarationView=n,null!==r?r.push(a):r=[a])}return null!==r?new nl(r):null}template(t,r){for(let n=0;n<this.queries.length;n++)this.queries[n].template(t,r)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class rl{constructor(t,r=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=r}elementStart(t,r){this.isApplyingToNode(r)&&this.matchTNode(t,r)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,r){this.elementStart(t,r)}embeddedTView(t,r){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,r),new rl(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const r=this._declarationNodeIndex;let n=t.parent;for(;null!==n&&8&n.type&&n.index!==r;)n=n.parent;return r===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(t,r){const n=this.metadata.predicate;if(Array.isArray(n))for(let i=0;i<n.length;i++){const a=n[i];this.matchTNodeWithReadOption(t,r,NF(r,a)),this.matchTNodeWithReadOption(t,r,Cs(r,t,a,!1,!1))}else n===c1?4&r.type&&this.matchTNodeWithReadOption(t,r,-1):this.matchTNodeWithReadOption(t,r,Cs(r,t,n,!1,!1))}matchTNodeWithReadOption(t,r,n){if(null!==n){const i=this.metadata.read;if(null!==i)if(i===Ne||i===U2||i===c1&&4&r.type)this.addMatch(r.index,-2);else{const a=Cs(r,t,i,!1,!1);null!==a&&this.addMatch(r.index,a)}else this.addMatch(r.index,n)}}addMatch(t,r){null===this.matches?this.matches=[t,r]:this.matches.push(t,r)}}function NF(e,t){const r=e.localNames;if(null!==r)for(let n=0;n<r.length;n+=2)if(r[n]===t)return r[n+1];return null}function EF(e,t,r,n){return-1===r?function AF(e,t){return 11&e.type?T3(e,t):4&e.type?mc(e,t):null}(t,e):-2===r?function TF(e,t,r){return r===Ne?T3(t,e):r===c1?mc(t,e):r===U2?rg(t,e):void 0}(e,t,n):d4(e,e[Z],r,t)}function cg(e,t,r,n){const i=t[Gt].queries[n];if(null===i.matches){const a=e.data,s=r.matches,c=[];for(let o=0;o<s.length;o+=2){const l=s[o];c.push(l<0?null:EF(t,a[l],s[o+1],r.metadata.read))}i.matches=c}return i.matches}function il(e,t,r,n){const i=e.queries.getByIndex(r),a=i.matches;if(null!==a){const s=cg(e,t,i,r);for(let c=0;c<a.length;c+=2){const o=a[c];if(o>0)n.push(s[c/2]);else{const l=a[c+1],f=t[-o];for(let d=a2;d<f.length;d++){const p=f[d];p[Fr]===p[p1]&&il(p[Z],p,l,n)}if(null!==f[l3]){const d=f[l3];for(let p=0;p<d.length;p++){const g=d[p];il(g[Z],g,l,n)}}}}}return n}function je(e){const t=P(),r=xe(),n=V9();f0(n+1);const i=fg(r,n);if(e.dirty&&function yE(e){return 4==(4&e[ge])}(t)===(2==(2&i.metadata.flags))){if(null===i.matches)e.reset([]);else{const a=i.crossesNgTemplate?il(r,t,n,[]):cg(r,t,i,n);e.reset(a,rO),e.notifyOnChanges()}return!0}return!1}function y1(e,t,r,n){const i=xe();if(i.firstCreatePass){const a=c2();lg(i,new sg(t,r,n),a.index),function OF(e,t){const r=e.contentQueries||(e.contentQueries=[]);t!==(r.length?r[r.length-1]:-1)&&r.push(e.queries.length-1,t)}(i,e),2==(2&r)&&(i.staticContentQueries=!0)}og(i,P(),r)}function Ge(){return function IF(e,t){return e[Gt].queries[t].queryList}(P(),V9())}function og(e,t,r){const n=new J8(4==(4&r));(function OO(e,t,r,n){const i=Ph(t);i.push(r),e.firstCreatePass&&Fh(e).push(n,i.length-1)})(e,t,n,n.destroy),null===t[Gt]&&(t[Gt]=new tl),t[Gt].queries.push(new el(n))}function lg(e,t,r){null===e.queries&&(e.queries=new nl),e.queries.track(new rl(t,r))}function fg(e,t){return e.queries.getByIndex(t)}function D2(e,t){return mc(e,t)}const fl=new te("Application Initializer");let ul=(()=>{var e;class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,i)=>{this.resolve=n,this.reject=i}),this.appInits=J(fl,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const a of this.appInits){const s=a();if(Mi(s))n.push(s);else if(Cp(s)){const c=new Promise((o,l)=>{s.subscribe({complete:o,error:l})});n.push(c)}}const i=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{i()}).catch(a=>{this.reject(a)}),0===n.length&&i(),this.initialized=!0}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),Dg=(()=>{var e;class t{log(n){console.log(n)}warn(n){console.warn(n)}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();const xt=new te("LocaleId",{providedIn:"root",factory:()=>J(xt,Ve.Optional|Ve.SkipSelf)||function rB(){return typeof $localize<"u"&&$localize.locale||X3}()});let Sg=(()=>{var e;class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ft(!1)}add(){this.hasPendingTasks.next(!0);const n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();class sB{constructor(t,r){this.ngModuleFactory=t,this.componentFactories=r}}let Lg=(()=>{var e;class t{compileModuleSync(n){return new K8(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const i=this.compileModuleSync(n),s=gn(K2(n).declarations).reduce((c,o)=>{const l=Le(o);return l&&c.push(new pi(l)),c},[]);return new sB(i,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const Eg=new te(""),Cc=new te("");let gl,pl=(()=>{var e;class t{constructor(n,i,a){this._ngZone=n,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,gl||(function zB(e){gl=e}(a),a.addToWindow(i)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ye.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(n)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,a){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(c=>c.timeoutId!==s),n(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:a})}whenStable(n,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(n,i,a),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,i,a){return[]}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(ye),Y(ml),Y(Cc))},e.\u0275prov=K({token:e,factory:e.\u0275fac}),t})(),ml=(()=>{var e;class t{constructor(){this._applications=new Map}registerApplication(n,i){this._applications.set(n,i)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,i=!0){return gl?.findTestabilityInTree(this,n,i)??null}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})(),Gn=null;const Tg=new te("AllowMultipleToken"),vl=new te("PlatformDestroyListeners"),_l=new te("appBootstrapListener");class Og{constructor(t,r){this.name=t,this.token=r}}function kg(e,t,r=[]){const n=`Platform: ${t}`,i=new te(n);return(a=[])=>{let s=Cl();if(!s||s.injector.get(Tg,!1)){const c=[...r,...a,{provide:i,useValue:!0}];e?e(c):function LB(e){if(Gn&&!Gn.get(Tg,!1))throw new F(400,!1);(function Ig(){!function oE(e){i9=e}(()=>{throw new F(600,!1)})})(),Gn=e;const t=e.get(Fg);(function Rg(e){e.get(Qd,null)?.forEach(r=>r())})(e)}(function Pg(e=[],t){return B1.create({name:t,providers:[{provide:q0,useValue:"platform"},{provide:vl,useValue:new Set([()=>Gn=null])},...e]})}(c,n))}return function NB(e){const t=Cl();if(!t)throw new F(401,!1);return t}()}}function Cl(){return Gn?.get(Fg)??null}let Fg=(()=>{var e;class t{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,i){const a=function AB(e="zone.js",t){return"noop"===e?new _O:"zone.js"===e?new ye(t):e}(i?.ngZone,function Bg(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return a.run(()=>{const s=function $P(e,t,r){return new q8(e,t,r)}(n.moduleType,this.injector,function Wg(e){return[{provide:ye,useFactory:e},{provide:si,multi:!0,useFactory:()=>{const t=J(TB,{optional:!0});return()=>t.initialize()}},{provide:$g,useFactory:EB},{provide:hh,useFactory:ph}]}(()=>a)),c=s.injector.get(mn,null);return a.runOutsideAngular(()=>{const o=a.onError.subscribe({next:l=>{c.handleError(l)}});s.onDestroy(()=>{Mc(this._modules,s),o.unsubscribe()})}),function Ug(e,t,r){try{const n=r();return Mi(n)?n.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):n}catch(n){throw t.runOutsideAngular(()=>e.handleError(n)),n}}(c,a,()=>{const o=s.injector.get(ul);return o.runInitializers(),o.donePromise.then(()=>(function hm(e){ut(e,"Expected localeId to be defined"),"string"==typeof e&&(dm=e.toLowerCase().replace(/_/g,"-"))}(s.injector.get(xt,X3)||X3),this._moduleDoBootstrap(s),s))})})}bootstrapModule(n,i=[]){const a=jg({},i);return function DB(e,t,r){const n=new K8(r);return Promise.resolve(n)}(0,0,n).then(s=>this.bootstrapModuleFactory(s,a))}_moduleDoBootstrap(n){const i=n.injector.get(en);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(a=>i.bootstrap(a));else{if(!n.instance.ngDoBootstrap)throw new F(-403,!1);n.instance.ngDoBootstrap(i)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new F(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const n=this._injector.get(vl,null);n&&(n.forEach(i=>i()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(B1))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();function jg(e,t){return Array.isArray(t)?t.reduce(jg,e):{...e,...t}}let en=(()=>{var e;class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=J($g),this.zoneIsStable=J(hh),this.componentTypes=[],this.components=[],this.isStable=J(Sg).hasPendingTasks.pipe(Ht(n=>n?ae(!1):this.zoneIsStable),function bu(e,t=bt){return e=e??MA,u1((r,n)=>{let i,a=!0;r.subscribe(qe(n,s=>{const c=t(s);(a||!e(i,c))&&(a=!1,i=c,n.next(s))}))})}(),A6()),this._injector=J(k2)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,i){const a=n instanceof nh;if(!this._injector.get(ul).done)throw!a&&function i3(e){const t=Le(e)||r2(e)||C2(e);return null!==t&&t.standalone}(n),new F(405,!1);let c;c=a?n:this._injector.get(Zs).resolveComponentFactory(n),this.componentTypes.push(c.componentType);const o=function SB(e){return e.isBoundToModule}(c)?void 0:this._injector.get(M4),f=c.create(B1.NULL,[],i||c.selector,o),d=f.location.nativeElement,p=f.injector.get(Eg,null);return p?.registerApplication(d),f.onDestroy(()=>{this.detachView(f.hostView),Mc(this.components,f),p?.unregisterApplication(d)}),this._loadComponent(f),f}tick(){if(this._runningTick)throw new F(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1}}attachView(n){const i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){const i=n;Mc(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const i=this._injector.get(_l,[]);i.push(...this._bootstrapListeners),i.forEach(a=>a(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Mc(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new F(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function Mc(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const $g=new te("",{providedIn:"root",factory:()=>J(mn).handleError.bind(void 0)});function EB(){const e=J(ye),t=J(mn);return r=>e.runOutsideAngular(()=>t.handleError(r))}let TB=(()=>{var e;class t{constructor(){this.zone=J(ye),this.applicationRef=J(en)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();let et=(()=>{class t{}return t.__NG_ELEMENT_ID__=OB,t})();function OB(e){return function RB(e,t,r){if(l4(e)&&!r){const n=Y2(e.index,t);return new hi(n,n)}return 47&e.type?new hi(t[T1],t):null}(c2(),P(),16==(16&e))}class Zg{constructor(){}supports(t){return ic(t)}create(t){return new jB(t)}}const UB=(e,t)=>t;class jB{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||UB}forEachItem(t){let r;for(r=this._itHead;null!==r;r=r._next)t(r)}forEachOperation(t){let r=this._itHead,n=this._removalsHead,i=0,a=null;for(;r||n;){const s=!n||r&&r.currentIndex<Jg(n,i,a)?r:n,c=Jg(s,i,a),o=s.currentIndex;if(s===n)i--,n=n._nextRemoved;else if(r=r._next,null==s.previousIndex)i++;else{a||(a=[]);const l=c-i,f=o-i;if(l!=f){for(let p=0;p<l;p++){const g=p<a.length?a[p]:a[p]=0,w=g+p;f<=w&&w<l&&(a[p]=g+1)}a[s.previousIndex]=f-l}}c!==o&&t(s,c,o)}}forEachPreviousItem(t){let r;for(r=this._previousItHead;null!==r;r=r._nextPrevious)t(r)}forEachAddedItem(t){let r;for(r=this._additionsHead;null!==r;r=r._nextAdded)t(r)}forEachMovedItem(t){let r;for(r=this._movesHead;null!==r;r=r._nextMoved)t(r)}forEachRemovedItem(t){let r;for(r=this._removalsHead;null!==r;r=r._nextRemoved)t(r)}forEachIdentityChange(t){let r;for(r=this._identityChangesHead;null!==r;r=r._nextIdentityChange)t(r)}diff(t){if(null==t&&(t=[]),!ic(t))throw new F(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let i,a,s,r=this._itHead,n=!1;if(Array.isArray(t)){this.length=t.length;for(let c=0;c<this.length;c++)a=t[c],s=this._trackByFn(c,a),null!==r&&Object.is(r.trackById,s)?(n&&(r=this._verifyReinsertion(r,a,s,c)),Object.is(r.item,a)||this._addIdentityChange(r,a)):(r=this._mismatch(r,a,s,c),n=!0),r=r._next}else i=0,function DR(e,t){if(Array.isArray(e))for(let r=0;r<e.length;r++)t(e[r]);else{const r=e[Symbol.iterator]();let n;for(;!(n=r.next()).done;)t(n.value)}}(t,c=>{s=this._trackByFn(i,c),null!==r&&Object.is(r.trackById,s)?(n&&(r=this._verifyReinsertion(r,c,s,i)),Object.is(r.item,c)||this._addIdentityChange(r,c)):(r=this._mismatch(r,c,s,i),n=!0),r=r._next,i++}),this.length=i;return this._truncate(r),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,r,n,i){let a;return null===t?a=this._itTail:(a=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,r)||this._addIdentityChange(t,r),this._reinsertAfter(t,a,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(t.item,r)||this._addIdentityChange(t,r),this._moveAfter(t,a,i)):t=this._addAfter(new GB(r,n),a,i),t}_verifyReinsertion(t,r,n,i){let a=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==a?t=this._reinsertAfter(a,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const r=t._next;this._addToRemovals(this._unlink(t)),t=r}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,r,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,a=t._nextRemoved;return null===i?this._removalsHead=a:i._nextRemoved=a,null===a?this._removalsTail=i:a._prevRemoved=i,this._insertAfter(t,r,n),this._addToMoves(t,n),t}_moveAfter(t,r,n){return this._unlink(t),this._insertAfter(t,r,n),this._addToMoves(t,n),t}_addAfter(t,r,n){return this._insertAfter(t,r,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,r,n){const i=null===r?this._itHead:r._next;return t._next=i,t._prev=r,null===i?this._itTail=t:i._prev=t,null===r?this._itHead=t:r._next=t,null===this._linkedRecords&&(this._linkedRecords=new Qg),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const r=t._prev,n=t._next;return null===r?this._itHead=n:r._next=n,null===n?this._itTail=r:n._prev=r,t}_addToMoves(t,r){return t.previousIndex===r||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Qg),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,r){return t.item=r,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class GB{constructor(t,r){this.item=t,this.trackById=r,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 $B{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,r){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===r||r<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const r=t._prevDup,n=t._nextDup;return null===r?this._head=n:r._nextDup=n,null===n?this._tail=r:n._prevDup=r,null===this._head}}class Qg{constructor(){this.map=new Map}put(t){const r=t.trackById;let n=this.map.get(r);n||(n=new $B,this.map.set(r,n)),n.add(t)}get(t,r){const i=this.map.get(t);return i?i.get(t,r):null}remove(t){const r=t.trackById;return this.map.get(r).remove(t)&&this.map.delete(r),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Jg(e,t,r){const n=e.previousIndex;if(null===n)return n;let i=0;return r&&n<r.length&&(i=r[n]),n+t+i}function ev(){return new Hc([new Zg])}let Hc=(()=>{var e;class t{constructor(n){this.factories=n}static create(n,i){if(null!=i){const a=i.factories.slice();n=n.concat(a)}return new t(n)}static extend(n){return{provide:t,useFactory:i=>t.create(n,i||ev()),deps:[[t,new Hs,new bs]]}}find(n){const i=this.factories.find(a=>a.supports(n));if(null!=i)return i;throw new F(901,!1)}}return(e=t).\u0275prov=K({token:e,providedIn:"root",factory:ev}),t})();const ZB=kg(null,"core",[]);let QB=(()=>{var e;class t{constructor(n){}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(en))},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})();function nr(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function Vl(e,t){const r=Le(e),n=t.elementInjector||Us();return new pi(r).create(n,t.projectableNodes,t.hostElement,t.environmentInjector)}let zl=null;function $n(){return zl}class uU{}const b1=new te("DocumentToken");let Dl=(()=>{var e;class t{historyGo(n){throw new Error("Not implemented")}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:function(){return J(hU)},providedIn:"platform"}),t})();const dU=new te("Location Initialized");let hU=(()=>{var e;class t extends Dl{constructor(){super(),this._doc=J(b1),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return $n().getBaseHref(this._doc)}onPopState(n){const i=$n().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",n,!1),()=>i.removeEventListener("popstate",n)}onHashChange(n){const i=$n().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",n,!1),()=>i.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,i,a){this._history.pushState(n,i,a)}replaceState(n,i,a){this._history.replaceState(n,i,a)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:function(){return new e},providedIn:"platform"}),t})();function Sl(e,t){if(0==e.length)return t;if(0==t.length)return e;let r=0;return e.endsWith("/")&&r++,t.startsWith("/")&&r++,2==r?e+t.substring(1):1==r?e+t:e+"/"+t}function fv(e){const t=e.match(/#|\?|$/),r=t&&t.index||e.length;return e.slice(0,r-("/"===e[r-1]?1:0))+e.slice(r)}function Cn(e){return e&&"?"!==e[0]?"?"+e:e}let Wn=(()=>{var e;class t{historyGo(n){throw new Error("Not implemented")}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:function(){return J(dv)},providedIn:"root"}),t})();const uv=new te("appBaseHref");let dv=(()=>{var e;class t extends Wn{constructor(n,i){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??J(b1).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Sl(this._baseHref,n)}path(n=!1){const i=this._platformLocation.pathname+Cn(this._platformLocation.search),a=this._platformLocation.hash;return a&&n?`${i}${a}`:i}pushState(n,i,a,s){const c=this.prepareExternalUrl(a+Cn(s));this._platformLocation.pushState(n,i,c)}replaceState(n,i,a,s){const c=this.prepareExternalUrl(a+Cn(s));this._platformLocation.replaceState(n,i,c)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(Dl),Y(uv,8))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),hv=(()=>{var e;class t extends Wn{constructor(n,i){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(n){const i=Sl(this._baseHref,n);return i.length>0?"#"+i:i}pushState(n,i,a,s){let c=this.prepareExternalUrl(a+Cn(s));0==c.length&&(c=this._platformLocation.pathname),this._platformLocation.pushState(n,i,c)}replaceState(n,i,a,s){let c=this.prepareExternalUrl(a+Cn(s));0==c.length&&(c=this._platformLocation.pathname),this._platformLocation.replaceState(n,i,c)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(Dl),Y(uv,8))},e.\u0275prov=K({token:e,factory:e.\u0275fac}),t})(),Ll=(()=>{var e;class t{constructor(n){this._subject=new ee,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;const i=this._locationStrategy.getBaseHref();this._basePath=function gU(e){if(new RegExp("^(https?:)?//").test(e)){const[,r]=e.split(/\/\/[^\/]+/);return r}return e}(fv(pv(i))),this._locationStrategy.onPopState(a=>{this._subject.emit({url:this.path(!0),pop:!0,state:a.state,type:a.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,i=""){return this.path()==this.normalize(n+Cn(i))}normalize(n){return t.stripTrailingSlash(function mU(e,t){if(!e||!t.startsWith(e))return t;const r=t.substring(e.length);return""===r||["/",";","?","#"].includes(r[0])?r:t}(this._basePath,pv(n)))}prepareExternalUrl(n){return n&&"/"!==n[0]&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,i="",a=null){this._locationStrategy.pushState(a,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Cn(i)),a)}replaceState(n,i="",a=null){this._locationStrategy.replaceState(a,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Cn(i)),a)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",i){this._urlChangeListeners.forEach(a=>a(n,i))}subscribe(n,i,a){return this._subject.subscribe({next:n,error:i,complete:a})}}return(e=t).normalizeQueryParams=Cn,e.joinWithSlash=Sl,e.stripTrailingSlash=fv,e.\u0275fac=function(n){return new(n||e)(Y(Wn))},e.\u0275prov=K({token:e,factory:function(){return function pU(){return new Ll(Y(Wn))}()},providedIn:"root"}),t})();function pv(e){return e.replace(/\/index.html$/,"")}class ej{constructor(t,r,n,i){this.$implicit=t,this.ngForOf=r,this.index=n,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let At=(()=>{var e;class t{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,i,a){this._viewContainer=n,this._template=i,this._differs=a,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){const n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){const i=this._viewContainer;n.forEachOperation((a,s,c)=>{if(null==a.previousIndex)i.createEmbeddedView(this._template,new ej(a.item,this._ngForOf,-1,-1),null===c?void 0:c);else if(null==c)i.remove(null===s?void 0:s);else if(null!==s){const o=i.get(s);i.move(o,c),Dv(o,a)}});for(let a=0,s=i.length;a<s;a++){const o=i.get(a).context;o.index=a,o.count=s,o.ngForOf=this._ngForOf}n.forEachIdentityChange(a=>{Dv(i.get(a.currentIndex),a)})}static ngTemplateContextGuard(n,i){return!0}}return(e=t).\u0275fac=function(n){return new(n||e)(H(U2),H(c1),H(Hc))},e.\u0275dir=W({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function Dv(e,t){e.context.$implicit=t.item}let H1=(()=>{var e;class t{constructor(n,i){this._viewContainer=n,this._context=new tj,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){Sv("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Sv("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,i){return!0}}return(e=t).\u0275fac=function(n){return new(n||e)(H(U2),H(c1))},e.\u0275dir=W({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class tj{constructor(){this.$implicit=null,this.ngIf=null}}function Sv(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${G1(t)}'.`)}let H4=(()=>{var e;class t{constructor(n){this._viewContainerRef=n,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(n){if(n.ngTemplateOutlet||n.ngTemplateOutletInjector){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:a,ngTemplateOutletContext:s,ngTemplateOutletInjector:c}=this;this._viewRef=i.createEmbeddedView(a,s,c?{injector:c}:void 0)}else this._viewRef=null}else this._viewRef&&n.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return(e=t).\u0275fac=function(n){return new(n||e)(H(U2))},e.\u0275dir=W({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[_1]}),t})(),Sj=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})();function Av(e){return"server"===e}let Aj=(()=>{var e;class t{}return(e=t).\u0275prov=K({token:e,providedIn:"root",factory:()=>new Ej(Y(b1),window)}),t})();class Ej{constructor(t,r){this.document=t,this.window=r,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const r=function Tj(e,t){const r=e.getElementById(t)||e.getElementsByName(t)[0];if(r)return r;if("function"==typeof e.createTreeWalker&&e.body&&"function"==typeof e.body.attachShadow){const n=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let i=n.currentNode;for(;i;){const a=i.shadowRoot;if(a){const s=a.getElementById(t)||a.querySelector(`[name="${t}"]`);if(s)return s}i=n.nextNode()}}return null}(this.document,t);r&&(this.scrollToElement(r),r.focus())}setHistoryScrollRestoration(t){this.supportsScrolling()&&(this.window.history.scrollRestoration=t)}scrollToElement(t){const r=t.getBoundingClientRect(),n=r.left+this.window.pageXOffset,i=r.top+this.window.pageYOffset,a=this.offset();this.window.scrollTo(n-a[0],i-a[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class iG extends uU{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class ql extends iG{static makeCurrent(){!function fU(e){zl||(zl=e)}(new ql)}onAndCancel(t,r,n){return t.addEventListener(r,n),()=>{t.removeEventListener(r,n)}}dispatchEvent(t,r){t.dispatchEvent(r)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,r){return(r=r||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,r){return"window"===r?window:"document"===r?t:"body"===r?t.body:null}getBaseHref(t){const r=function aG(){return ki=ki||document.querySelector("base"),ki?ki.getAttribute("href"):null}();return null==r?null:function sG(e){Rc=Rc||document.createElement("a"),Rc.setAttribute("href",e);const t=Rc.pathname;return"/"===t.charAt(0)?t:`/${t}`}(r)}resetBaseElement(){ki=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function QU(e,t){t=encodeURIComponent(t);for(const r of e.split(";")){const n=r.indexOf("="),[i,a]=-1==n?[r,""]:[r.slice(0,n),r.slice(n+1)];if(i.trim()===t)return decodeURIComponent(a)}return null}(document.cookie,t)}}let Rc,ki=null,oG=(()=>{var e;class t{build(){return new XMLHttpRequest}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac}),t})();const Kl=new te("EventManagerPlugins");let Rv=(()=>{var e;class t{constructor(n,i){this._zone=i,this._eventNameToPlugin=new Map,n.forEach(a=>{a.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,i,a){return this._findPluginFor(i).addEventListener(n,i,a)}getZone(){return this._zone}_findPluginFor(n){let i=this._eventNameToPlugin.get(n);if(i)return i;if(i=this._plugins.find(s=>s.supports(n)),!i)throw new F(5101,!1);return this._eventNameToPlugin.set(n,i),i}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(Kl),Y(ye))},e.\u0275prov=K({token:e,factory:e.\u0275fac}),t})();class kv{constructor(t){this._doc=t}}const Yl="ng-app-id";let Pv=(()=>{var e;class t{constructor(n,i,a,s={}){this.doc=n,this.appId=i,this.nonce=a,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Av(s),this.resetHostNodes()}addStyles(n){for(const i of n)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(n){for(const i of n)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){const n=this.styleNodesInDOM;n&&(n.forEach(i=>i.remove()),n.clear());for(const i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(const i of this.getAllStyles())this.addStyleToHost(n,i)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(const i of this.hostNodes)this.addStyleToHost(i,n)}onStyleRemoved(n){const i=this.styleRef;i.get(n)?.elements?.forEach(a=>a.remove()),i.delete(n)}collectServerRenderedStyles(){const n=this.doc.head?.querySelectorAll(`style[${Yl}="${this.appId}"]`);if(n?.length){const i=new Map;return n.forEach(a=>{null!=a.textContent&&i.set(a.textContent,a)}),i}return null}changeUsageCount(n,i){const a=this.styleRef;if(a.has(n)){const s=a.get(n);return s.usage+=i,s.usage}return a.set(n,{usage:i,elements:[]}),i}getStyleElement(n,i){const a=this.styleNodesInDOM,s=a?.get(i);if(s?.parentNode===n)return a.delete(i),s.removeAttribute(Yl),s;{const c=this.doc.createElement("style");return this.nonce&&c.setAttribute("nonce",this.nonce),c.textContent=i,this.platformIsServer&&c.setAttribute(Yl,this.appId),c}}addStyleToHost(n,i){const a=this.getStyleElement(n,i);n.appendChild(a);const s=this.styleRef,c=s.get(i)?.elements;c?c.push(a):s.set(i,{elements:[a],usage:1})}resetHostNodes(){const n=this.hostNodes;n.clear(),n.add(this.doc.head)}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(b1),Y(Gs),Y(Jd,8),Y(N3))},e.\u0275prov=K({token:e,factory:e.\u0275fac}),t})();const Zl={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/"},Ql=/%COMP%/g,dG=new te("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function Bv(e,t){return t.map(r=>r.replace(Ql,e))}let Uv=(()=>{var e;class t{constructor(n,i,a,s,c,o,l,f=null){this.eventManager=n,this.sharedStylesHost=i,this.appId=a,this.removeStylesOnCompDestroy=s,this.doc=c,this.platformId=o,this.ngZone=l,this.nonce=f,this.rendererByCompId=new Map,this.platformIsServer=Av(o),this.defaultRenderer=new Jl(n,c,l,this.platformIsServer)}createRenderer(n,i){if(!n||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===wt.ShadowDom&&(i={...i,encapsulation:wt.Emulated});const a=this.getOrCreateRenderer(n,i);return a instanceof Gv?a.applyToHost(n):a instanceof Xl&&a.applyStyles(),a}getOrCreateRenderer(n,i){const a=this.rendererByCompId;let s=a.get(i.id);if(!s){const c=this.doc,o=this.ngZone,l=this.eventManager,f=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,p=this.platformIsServer;switch(i.encapsulation){case wt.Emulated:s=new Gv(l,f,i,this.appId,d,c,o,p);break;case wt.ShadowDom:return new gG(l,f,n,i,c,o,this.nonce,p);default:s=new Xl(l,f,i,d,c,o,p)}a.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(Rv),Y(Pv),Y(Gs),Y(dG),Y(b1),Y(N3),Y(ye),Y(Jd))},e.\u0275prov=K({token:e,factory:e.\u0275fac}),t})();class Jl{constructor(t,r,n,i){this.eventManager=t,this.doc=r,this.ngZone=n,this.platformIsServer=i,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,r){return r?this.doc.createElementNS(Zl[r]||r,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,r){(jv(t)?t.content:t).appendChild(r)}insertBefore(t,r,n){t&&(jv(t)?t.content:t).insertBefore(r,n)}removeChild(t,r){t&&t.removeChild(r)}selectRootElement(t,r){let n="string"==typeof t?this.doc.querySelector(t):t;if(!n)throw new F(-5104,!1);return r||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,r,n,i){if(i){r=i+":"+r;const a=Zl[i];a?t.setAttributeNS(a,r,n):t.setAttribute(r,n)}else t.setAttribute(r,n)}removeAttribute(t,r,n){if(n){const i=Zl[n];i?t.removeAttributeNS(i,r):t.removeAttribute(`${n}:${r}`)}else t.removeAttribute(r)}addClass(t,r){t.classList.add(r)}removeClass(t,r){t.classList.remove(r)}setStyle(t,r,n,i){i&(Un.DashCase|Un.Important)?t.style.setProperty(r,n,i&Un.Important?"important":""):t.style[r]=n}removeStyle(t,r,n){n&Un.DashCase?t.style.removeProperty(r):t.style[r]=""}setProperty(t,r,n){t[r]=n}setValue(t,r){t.nodeValue=r}listen(t,r,n){if("string"==typeof t&&!(t=$n().getGlobalEventTarget(this.doc,t)))throw new Error(`Unsupported event target ${t} for event ${r}`);return this.eventManager.addEventListener(t,r,this.decoratePreventDefault(n))}decoratePreventDefault(t){return r=>{if("__ngUnwrap__"===r)return t;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>t(r)):t(r))&&r.preventDefault()}}}function jv(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class gG extends Jl{constructor(t,r,n,i,a,s,c,o){super(t,a,s,o),this.sharedStylesHost=r,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=Bv(i.id,i.styles);for(const f of l){const d=document.createElement("style");c&&d.setAttribute("nonce",c),d.textContent=f,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,r){return super.appendChild(this.nodeOrShadowRoot(t),r)}insertBefore(t,r,n){return super.insertBefore(this.nodeOrShadowRoot(t),r,n)}removeChild(t,r){return super.removeChild(this.nodeOrShadowRoot(t),r)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Xl extends Jl{constructor(t,r,n,i,a,s,c,o){super(t,a,s,c),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=i,this.styles=o?Bv(o,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class Gv extends Xl{constructor(t,r,n,i,a,s,c,o){const l=i+"-"+n.id;super(t,r,n,a,s,c,o,l),this.contentAttr=function hG(e){return"_ngcontent-%COMP%".replace(Ql,e)}(l),this.hostAttr=function pG(e){return"_nghost-%COMP%".replace(Ql,e)}(l)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,r){const n=super.createElement(t,r);return super.setAttribute(n,this.contentAttr,""),n}}let vG=(()=>{var e;class t extends kv{constructor(n){super(n)}supports(n){return!0}addEventListener(n,i,a){return n.addEventListener(i,a,!1),()=>this.removeEventListener(n,i,a)}removeEventListener(n,i,a){return n.removeEventListener(i,a)}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(b1))},e.\u0275prov=K({token:e,factory:e.\u0275fac}),t})();const $v=["alt","control","meta","shift"],_G={"\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"},CG={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let MG=(()=>{var e;class t extends kv{constructor(n){super(n)}supports(n){return null!=t.parseEventName(n)}addEventListener(n,i,a){const s=t.parseEventName(i),c=t.eventCallback(s.fullKey,a,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>$n().onAndCancel(n,s.domEventName,c))}static parseEventName(n){const i=n.toLowerCase().split("."),a=i.shift();if(0===i.length||"keydown"!==a&&"keyup"!==a)return null;const s=t._normalizeKey(i.pop());let c="",o=i.indexOf("code");if(o>-1&&(i.splice(o,1),c="code."),$v.forEach(f=>{const d=i.indexOf(f);d>-1&&(i.splice(d,1),c+=f+".")}),c+=s,0!=i.length||0===s.length)return null;const l={};return l.domEventName=a,l.fullKey=c,l}static matchEventFullKeyCode(n,i){let a=_G[n.key]||n.key,s="";return i.indexOf("code.")>-1&&(a=n.code,s="code."),!(null==a||!a)&&(a=a.toLowerCase()," "===a?a="space":"."===a&&(a="dot"),$v.forEach(c=>{c!==a&&(0,CG[c])(n)&&(s+=c+".")}),s+=a,s===i)}static eventCallback(n,i,a){return s=>{t.matchEventFullKeyCode(s,n)&&a.runGuarded(()=>i(s))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(b1))},e.\u0275prov=K({token:e,factory:e.\u0275fac}),t})();const wG=kg(ZB,"browser",[{provide:N3,useValue:"browser"},{provide:Qd,useValue:function yG(){ql.makeCurrent()},multi:!0},{provide:b1,useFactory:function HG(){return function lI(e){P0=e}(document),document},deps:[]}]),VG=new te(""),Kv=[{provide:Cc,useClass:class cG{addToWindow(t){t1.getAngularTestability=(n,i=!0)=>{const a=t.findTestabilityInTree(n,i);if(null==a)throw new F(5103,!1);return a},t1.getAllAngularTestabilities=()=>t.getAllTestabilities(),t1.getAllAngularRootElements=()=>t.getAllRootElements(),t1.frameworkStabilizers||(t1.frameworkStabilizers=[]),t1.frameworkStabilizers.push(n=>{const i=t1.getAllAngularTestabilities();let a=i.length,s=!1;const c=function(o){s=s||o,a--,0==a&&n(s)};i.forEach(o=>{o.whenStable(c)})})}findTestabilityInTree(t,r,n){return null==r?null:t.getTestability(r)??(n?$n().isShadowRoot(r)?this.findTestabilityInTree(t,r.host,!0):this.findTestabilityInTree(t,r.parentElement,!0):null)}},deps:[]},{provide:Eg,useClass:pl,deps:[ye,ml,Cc]},{provide:pl,useClass:pl,deps:[ye,ml,Cc]}],Yv=[{provide:q0,useValue:"root"},{provide:mn,useFactory:function bG(){return new mn},deps:[]},{provide:Kl,useClass:vG,multi:!0,deps:[b1,ye,N3]},{provide:Kl,useClass:MG,multi:!0,deps:[b1]},Uv,Pv,Rv,{provide:c8,useExisting:Uv},{provide:class Ij{},useClass:oG,deps:[]},[]];let zG=(()=>{var e;class t{constructor(n){}static withServerTransition(n){return{ngModule:t,providers:[{provide:Gs,useValue:n.appId}]}}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(VG,12))},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({providers:[...Yv,...Kv],imports:[Sj,QB]}),t})(),Zv=(()=>{var e;class t{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(b1))},e.\u0275prov=K({token:e,factory:function(n){let i=null;return i=n?new n:function SG(){return new Zv(Y(b1))}(),i},providedIn:"root"}),t})();typeof window<"u"&&window;let Xv=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:function(n){let i=null;return i=n?new(n||e):Y(e_),i},providedIn:"root"}),t})(),e_=(()=>{var e;class t extends Xv{constructor(n){super(),this._doc=n}sanitize(n,i){if(null==i)return null;switch(n){case pt.NONE:return i;case pt.HTML:return Yt(i,"HTML")?Q2(i):Pd(this._doc,String(i)).toString();case pt.STYLE:return Yt(i,"Style")?Q2(i):i;case pt.SCRIPT:if(Yt(i,"Script"))return Q2(i);throw new F(5200,!1);case pt.URL:return Yt(i,"URL")?Q2(i):ks(String(i));case pt.RESOURCE_URL:if(Yt(i,"ResourceURL"))return Q2(i);throw new F(5201,!1);default:throw new F(5202,!1)}}bypassSecurityTrustHtml(n){return function gI(e){return new fI(e)}(n)}bypassSecurityTrustStyle(n){return function vI(e){return new uI(e)}(n)}bypassSecurityTrustScript(n){return function _I(e){return new dI(e)}(n)}bypassSecurityTrustUrl(n){return function CI(e){return new hI(e)}(n)}bypassSecurityTrustResourceUrl(n){return function MI(e){return new pI(e)}(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(b1))},e.\u0275prov=K({token:e,factory:function(n){let i=null;return i=n?new n:function AG(e){return new e_(e.get(b1))}(Y(B1)),i},providedIn:"root"}),t})();function Pi(e){return(Pi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function V(e,t,r){return(t=function TG(e){var t=function EG(e,t){if("object"!==Pi(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Pi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Pi(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const{isArray:IG}=Array,{getPrototypeOf:OG,prototype:RG,keys:kG}=Object;function n_(e){if(1===e.length){const t=e[0];if(IG(t))return{args:t,keys:null};if(function PG(e){return e&&"object"==typeof e&&OG(e)===RG}(t)){const r=kG(t);return{args:r.map(n=>t[n]),keys:r}}}return{args:e,keys:null}}const{isArray:FG}=Array;function t5(e){return we(t=>function BG(e,t){return FG(t)?e(...t):e(t)}(e,t))}function r_(e,t){return e.reduce((r,n,i)=>(r[n]=t[i],r),{})}let i_=(()=>{var e;class t{constructor(n,i){this._renderer=n,this._elementRef=i,this.onChange=a=>{},this.onTouched=()=>{}}setProperty(n,i){this._renderer.setProperty(this._elementRef.nativeElement,n,i)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}}return(e=t).\u0275fac=function(n){return new(n||e)(H(o2),H(Ne))},e.\u0275dir=W({type:e}),t})(),w4=(()=>{var e;class t extends i_{}return(e=t).\u0275fac=function(){let r;return function(i){return(r||(r=I1(e)))(i||e)}}(),e.\u0275dir=W({type:e,features:[ie]}),t})();const _t=new te("NgValueAccessor"),jG={provide:_t,useExisting:me(()=>l2),multi:!0};let l2=(()=>{var e;class t extends w4{writeValue(n){this.setProperty("checked",n)}}return(e=t).\u0275fac=function(){let r;return function(i){return(r||(r=I1(e)))(i||e)}}(),e.\u0275dir=W({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,i){1&n&&I("change",function(s){return i.onChange(s.target.checked)})("blur",function(){return i.onTouched()})},features:[Ye([jG]),ie]}),t})();const GG={provide:_t,useExisting:me(()=>bn),multi:!0},WG=new te("CompositionEventMode");let bn=(()=>{var e;class t extends i_{constructor(n,i,a){super(n,i),this._compositionMode=a,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function $G(){const e=$n()?$n().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(n){this.setProperty("value",n??"")}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(H(o2),H(Ne),H(WG,8))},e.\u0275dir=W({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,i){1&n&&I("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},features:[Ye([GG]),ie]}),t})();function Kn(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}const f2=new te("NgValidators"),Yn=new te("NgAsyncValidators"),qG=/^(?=.{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 f_(e){return Kn(e.value)||qG.test(e.value)?null:{email:!0}}function kc(e){return null}function p_(e){return null!=e}function m_(e){return Mi(e)?Q1(e):e}function g_(e){let t={};return e.forEach(r=>{t=null!=r?{...t,...r}:t}),0===Object.keys(t).length?null:t}function v_(e,t){return t.map(r=>r(e))}function __(e){return e.map(t=>function KG(e){return!e.validate}(t)?t:r=>t.validate(r))}function n5(e){return null!=e?function C_(e){if(!e)return null;const t=e.filter(p_);return 0==t.length?null:function(r){return g_(v_(r,t))}}(__(e)):null}function r5(e){return null!=e?function M_(e){if(!e)return null;const t=e.filter(p_);return 0==t.length?null:function(r){return function UG(...e){const t=Za(e),{args:r,keys:n}=n_(e),i=new We(a=>{const{length:s}=r;if(!s)return void a.complete();const c=new Array(s);let o=s,l=s;for(let f=0;f<s;f++){let d=!1;j1(r[f]).subscribe(qe(a,p=>{d||(d=!0,l--),c[f]=p},()=>o--,void 0,()=>{(!o||!d)&&(l||a.next(n?r_(n,c):c),a.complete())}))}});return t?i.pipe(t5(t)):i}(v_(r,t).map(m_)).pipe(we(g_))}}(__(e)):null}function y_(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function i5(e){return e?Array.isArray(e)?e:[e]:[]}function Pc(e,t){return Array.isArray(e)?e.includes(t):e===t}function w_(e,t){const r=i5(t);return i5(e).forEach(i=>{Pc(r,i)||r.push(i)}),r}function V_(e,t){return i5(t).filter(r=>!Pc(e,r))}class z_{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=n5(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=r5(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,r){return!!this.control&&this.control.hasError(t,r)}getError(t,r){return this.control?this.control.getError(t,r):null}}class L2 extends z_{get formDirective(){return null}get path(){return null}}class Zn extends z_{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class D_{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let w1=(()=>{var e;class t extends D_{constructor(n){super(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(H(Zn,2))},e.\u0275dir=W({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,i){2&n&&Se("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[ie]}),t})();const Fi="VALID",Bc="INVALID",ir="PENDING",Bi="DISABLED";function Uc(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class N_{constructor(t,r){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(r)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Fi}get invalid(){return this.status===Bc}get pending(){return this.status==ir}get disabled(){return this.status===Bi}get enabled(){return this.status!==Bi}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(w_(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(w_(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(V_(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(V_(t,this._rawAsyncValidators))}hasValidator(t){return Pc(this._rawValidators,t)}hasAsyncValidator(t){return Pc(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(r=>{r.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=ir,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const r=this._parentMarkedDirty(t.onlySelf);this.status=Bi,this.errors=null,this._forEachChild(n=>{n.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:r}),this._onDisabledChange.forEach(n=>n(!0))}enable(t={}){const r=this._parentMarkedDirty(t.onlySelf);this.status=Fi,this._forEachChild(n=>{n.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:r}),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Fi||this.status===ir)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(r=>r._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Bi:Fi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=ir,this._hasOwnPendingAsyncValidator=!0;const r=m_(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,r={}){this.errors=t,this._updateControlsErrors(!1!==r.emitEvent)}get(t){let r=t;return null==r||(Array.isArray(r)||(r=r.split(".")),0===r.length)?null:r.reduce((n,i)=>n&&n._find(i),this)}getError(t,r){const n=r?this.get(r):this;return n&&n.errors?n.errors[t]:null}hasError(t,r){return!!this.getError(t,r)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new ee,this.statusChanges=new ee}_calculateStatus(){return this._allControlsDisabled()?Bi:this.errors?Bc:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ir)?ir:this._anyControlsHaveStatus(Bc)?Bc:Fi}_anyControlsHaveStatus(t){return this._anyControls(r=>r.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Uc(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=function XG(e){return Array.isArray(e)?n5(e):e||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function e$(e){return Array.isArray(e)?r5(e):e||null}(this._rawAsyncValidators)}}const ar=new te("CallSetDisabledState",{providedIn:"root",factory:()=>jc}),jc="always";function Ui(e,t,r=jc){(function f5(e,t){const r=function b_(e){return e._rawValidators}(e);null!==t.validator?e.setValidators(y_(r,t.validator)):"function"==typeof r&&e.setValidators([r]);const n=function H_(e){return e._rawAsyncValidators}(e);null!==t.asyncValidator?e.setAsyncValidators(y_(n,t.asyncValidator)):"function"==typeof n&&e.setAsyncValidators([n]);const i=()=>e.updateValueAndValidity();Wc(t._rawValidators,i),Wc(t._rawAsyncValidators,i)})(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||"always"===r)&&t.valueAccessor.setDisabledState?.(e.disabled),function r$(e,t){t.valueAccessor.registerOnChange(r=>{e._pendingValue=r,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&A_(e,t)})}(e,t),function a$(e,t){const r=(n,i)=>{t.valueAccessor.writeValue(n),i&&t.viewToModelUpdate(n)};e.registerOnChange(r),t._registerOnDestroy(()=>{e._unregisterOnChange(r)})}(e,t),function i$(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&A_(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function n$(e,t){if(t.valueAccessor.setDisabledState){const r=n=>{t.valueAccessor.setDisabledState(n)};e.registerOnDisabledChange(r),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(r)})}}(e,t)}function Wc(e,t){e.forEach(r=>{r.registerOnValidatorChange&&r.registerOnValidatorChange(t)})}function A_(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function I_(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}function O_(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const R_=class extends N_{constructor(t=null,r,n){super(function c5(e){return(Uc(e)?e.validators:e)||null}(r),function o5(e,t){return(Uc(t)?t.asyncValidators:e)||null}(n,r)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(r),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Uc(r)&&(r.nonNullable||r.initialValueIsDefault)&&(this.defaultValue=O_(t)?t.value:t)}setValue(t,r={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==r.emitModelToViewChange&&this._onChange.forEach(n=>n(this.value,!1!==r.emitViewToModelChange)),this.updateValueAndValidity(r)}patchValue(t,r={}){this.setValue(t,r)}reset(t=this.defaultValue,r={}){this._applyFormState(t),this.markAsPristine(r),this.markAsUntouched(r),this.setValue(this.value,r),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){I_(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){I_(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){O_(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},h$={provide:Zn,useExisting:me(()=>m1)},F_=(()=>Promise.resolve())();let m1=(()=>{var e;class t extends Zn{constructor(n,i,a,s,c,o){super(),this._changeDetectorRef=c,this.callSetDisabledState=o,this.control=new R_,this._registered=!1,this.name="",this.update=new ee,this._parent=n,this._setValidators(i),this._setAsyncValidators(a),this.valueAccessor=function h5(e,t){if(!t)return null;let r,n,i;return Array.isArray(t),t.forEach(a=>{a.constructor===bn?r=a:function o$(e){return Object.getPrototypeOf(e.constructor)===w4}(a)?n=a:i=a}),i||n||r||null}(0,s)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){const i=n.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),function d5(e,t){if(!e.hasOwnProperty("model"))return!1;const r=e.model;return!!r.isFirstChange()||!Object.is(t,r.currentValue)}(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Ui(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(n){F_.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){const i=n.isDisabled.currentValue,a=0!==i&&nr(i);F_.then(()=>{a&&!this.control.disabled?this.control.disable():!a&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?function Gc(e,t){return[...t.path,e]}(n,this._parent):[n]}}return(e=t).\u0275fac=function(n){return new(n||e)(H(L2,9),H(f2,10),H(Yn,10),H(_t,10),H(et,8),H(ar,8))},e.\u0275dir=W({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:[Ye([h$]),ie,_1]}),t})();const m$={provide:_t,useExisting:me(()=>V4),multi:!0};let V4=(()=>{var e;class t extends w4{writeValue(n){this.setProperty("value",n??"")}registerOnChange(n){this.onChange=i=>{n(""==i?null:parseFloat(i))}}}return(e=t).\u0275fac=function(){let r;return function(i){return(r||(r=I1(e)))(i||e)}}(),e.\u0275dir=W({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,i){1&n&&I("input",function(s){return i.onChange(s.target.value)})("blur",function(){return i.onTouched()})},features:[Ye([m$]),ie]}),t})(),B_=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})();const w$={provide:_t,useExisting:me(()=>Hn),multi:!0};function K_(e,t){return null==e?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let Hn=(()=>{var e;class t extends w4{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;const a=K_(this._getOptionId(n),n);this.setProperty("value",a)}registerOnChange(n){this.onChange=i=>{this.value=this._getOptionValue(i),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(const i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i),n))return i;return null}_getOptionValue(n){const i=function V$(e){return e.split(":")[0]}(n);return this._optionMap.has(i)?this._optionMap.get(i):n}}return(e=t).\u0275fac=function(){let r;return function(i){return(r||(r=I1(e)))(i||e)}}(),e.\u0275dir=W({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(n,i){1&n&&I("change",function(s){return i.onChange(s.target.value)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[Ye([w$]),ie]}),t})(),z4=(()=>{var e;class t{constructor(n,i,a){this._element=n,this._renderer=i,this._select=a,this._select&&(this.id=this._select._registerOption())}set ngValue(n){null!=this._select&&(this._select._optionMap.set(this.id,n),this._setElementValue(K_(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._setElementValue(n),this._select&&this._select.writeValue(this._select.value)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return(e=t).\u0275fac=function(n){return new(n||e)(H(Ne),H(o2),H(Hn,9))},e.\u0275dir=W({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const z$={provide:_t,useExisting:me(()=>_5),multi:!0};function Y_(e,t){return null==e?`${t}`:("string"==typeof t&&(t=`'${t}'`),t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let _5=(()=>{var e;class t extends w4{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){let i;if(this.value=n,Array.isArray(n)){const a=n.map(s=>this._getOptionId(s));i=(s,c)=>{s._setSelected(a.indexOf(c.toString())>-1)}}else i=(a,s)=>{a._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(n){this.onChange=i=>{const a=[],s=i.selectedOptions;if(void 0!==s){const c=s;for(let o=0;o<c.length;o++){const f=this._getOptionValue(c[o].value);a.push(f)}}else{const c=i.options;for(let o=0;o<c.length;o++){const l=c[o];if(l.selected){const f=this._getOptionValue(l.value);a.push(f)}}}this.value=a,n(a)}}_registerOption(n){const i=(this._idCounter++).toString();return this._optionMap.set(i,n),i}_getOptionId(n){for(const i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i)._value,n))return i;return null}_getOptionValue(n){const i=function D$(e){return e.split(":")[0]}(n);return this._optionMap.has(i)?this._optionMap.get(i)._value:n}}return(e=t).\u0275fac=function(){let r;return function(i){return(r||(r=I1(e)))(i||e)}}(),e.\u0275dir=W({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(n,i){1&n&&I("change",function(s){return i.onChange(s.target)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[Ye([z$]),ie]}),t})(),D4=(()=>{var e;class t{constructor(n,i,a){this._element=n,this._renderer=i,this._select=a,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){null!=this._select&&(this._value=n,this._setElementValue(Y_(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(Y_(this.id,n)),this._select.writeValue(this._select.value)):this._setElementValue(n)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}_setSelected(n){this._renderer.setProperty(this._element.nativeElement,"selected",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return(e=t).\u0275fac=function(n){return new(n||e)(H(Ne),H(o2),H(_5,9))},e.\u0275dir=W({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();function Q_(e){return"number"==typeof e?e:parseFloat(e)}let S4=(()=>{var e;class t{constructor(){this._validator=kc}ngOnChanges(n){if(this.inputName in n){const i=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):kc,this._onChange&&this._onChange()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return null!=n}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275dir=W({type:e,features:[_1]}),t})();const S$={provide:f2,useExisting:me(()=>C5),multi:!0};let C5=(()=>{var e;class t extends S4{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=n=>Q_(n),this.createValidator=n=>function c_(e){return t=>{if(Kn(t.value)||Kn(e))return null;const r=parseFloat(t.value);return!isNaN(r)&&r>e?{max:{max:e,actual:t.value}}:null}}(n)}}return(e=t).\u0275fac=function(){let r;return function(i){return(r||(r=I1(e)))(i||e)}}(),e.\u0275dir=W({type:e,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(n,i){2&n&&j("max",i._enabled?i.max:null)},inputs:{max:"max"},features:[Ye([S$]),ie]}),t})();const L$={provide:f2,useExisting:me(()=>M5),multi:!0};let M5=(()=>{var e;class t extends S4{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=n=>Q_(n),this.createValidator=n=>function s_(e){return t=>{if(Kn(t.value)||Kn(e))return null;const r=parseFloat(t.value);return!isNaN(r)&&r<e?{min:{min:e,actual:t.value}}:null}}(n)}}return(e=t).\u0275fac=function(){let r;return function(i){return(r||(r=I1(e)))(i||e)}}(),e.\u0275dir=W({type:e,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(n,i){2&n&&j("min",i._enabled?i.min:null)},inputs:{min:"min"},features:[Ye([L$]),ie]}),t})();const A$={provide:f2,useExisting:me(()=>b5),multi:!0};let b5=(()=>{var e;class t extends S4{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=nr,this.createValidator=n=>f_}enabled(n){return n}}return(e=t).\u0275fac=function(){let r;return function(i){return(r||(r=I1(e)))(i||e)}}(),e.\u0275dir=W({type:e,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[Ye([A$]),ie]}),t})(),O$=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({imports:[B_]}),t})(),k$=(()=>{var e;class t{static withConfig(n){return{ngModule:t,providers:[{provide:ar,useValue:n.callSetDisabledState??jc}]}}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({imports:[O$]}),t})();const P$=["addListener","removeListener"],F$=["addEventListener","removeEventListener"],B$=["on","off"];function X1(e,t,r,n){if(Q(r)&&(n=r,r=void 0),n)return X1(e,t,r).pipe(t5(n));const[i,a]=function G$(e){return Q(e.addEventListener)&&Q(e.removeEventListener)}(e)?F$.map(s=>c=>e[s](t,c,r)):function U$(e){return Q(e.addListener)&&Q(e.removeListener)}(e)?P$.map(nC(e,t)):function j$(e){return Q(e.on)&&Q(e.off)}(e)?B$.map(nC(e,t)):[];if(!i&&L6(e))return F1(s=>X1(s,t,r))(j1(e));if(!i)throw new TypeError("Invalid event target");return new We(s=>{const c=(...o)=>s.next(1<o.length?o:o[0]);return i(c),()=>a(c)})}function nC(e,t){return r=>n=>e[r](t,n)}class $$ extends De{constructor(t,r){super()}schedule(t,r=0){return this}}const Kc={setInterval(e,t,...r){const{delegate:n}=Kc;return n?.setInterval?n.setInterval(e,t,...r):setInterval(e,t,...r)},clearInterval(e){const{delegate:t}=Kc;return(t?.clearInterval||clearInterval)(e)},delegate:void 0},rC={now:()=>(rC.delegate||Date).now(),delegate:void 0};class Gi{constructor(t,r=Gi.now){this.schedulerActionCtor=t,this.now=r}schedule(t,r=0,n){return new this.schedulerActionCtor(this,t).schedule(n,r)}}Gi.now=rC.now;const iC=new class q$ extends Gi{constructor(t,r=Gi.now){super(t,r),this.actions=[],this._active=!1}flush(t){const{actions:r}=this;if(this._active)return void r.push(t);let n;this._active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=r.shift());if(this._active=!1,n){for(;t=r.shift();)t.unsubscribe();throw n}}}(class W$ extends $${constructor(t,r){super(t,r),this.scheduler=t,this.work=r,this.pending=!1}schedule(t,r=0){var n;if(this.closed)return this;this.state=t;const i=this.id,a=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(a,i,r)),this.pending=!0,this.delay=r,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(a,this.id,r),this}requestAsyncId(t,r,n=0){return Kc.setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,r,n=0){if(null!=n&&this.delay===n&&!1===this.pending)return r;null!=r&&Kc.clearInterval(r)}execute(t,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,r);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,r){let i,n=!1;try{this.work(t)}catch(a){n=!0,i=a||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){const{id:t,scheduler:r}=this,{actions:n}=r;this.work=this.state=this.scheduler=null,this.pending=!1,Je(n,this),null!=t&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null,super.unsubscribe()}}}),K$=iC;function aC(e=0,t,r=K$){let n=-1;return null!=t&&(_u(t)?r=t:n=t),new We(i=>{let a=function Y$(e){return e instanceof Date&&!isNaN(e)}(e)?+e-r.now():e;a<0&&(a=0);let s=0;return r.schedule(function(){i.closed||(i.next(s++),0<=n?this.schedule(void 0,n):i.complete())},a)})}const{isArray:Z$}=Array;function sC(e){return 1===e.length&&Z$(e[0])?e[0]:e}function cC(...e){return 1===(e=sC(e)).length?j1(e[0]):new We(function Q$(e){return t=>{let r=[];for(let n=0;r&&!t.closed&&n<e.length;n++)r.push(j1(e[n]).subscribe(qe(t,i=>{if(r){for(let a=0;a<r.length;a++)a!==n&&r[a].unsubscribe();r=null}t.next(i)})))}}(e))}function H5(...e){const t=Za(e),r=sC(e);return r.length?new We(n=>{let i=r.map(()=>[]),a=r.map(()=>!1);n.add(()=>{i=a=null});for(let s=0;!n.closed&&s<r.length;s++)j1(r[s]).subscribe(qe(n,c=>{if(i[s].push(c),i.every(o=>o.length)){const o=i.map(l=>l.shift());n.next(t?t(...o):o),i.some((l,f)=>!l.length&&a[f])&&n.complete()}},()=>{a[s]=!0,!i[s].length&&n.complete()}));return()=>{i=a=null}}):lt}function $i(...e){return function J$(){return n3(1)}()(Q1(e,Er(e)))}function R1(e){return u1((t,r)=>{j1(e).subscribe(qe(r,()=>r.complete(),Z1)),!r.closed&&t.subscribe(r)})}function N1(e,t){return u1((r,n)=>{let i=0;r.subscribe(qe(n,a=>e.call(t,a,i++)&&n.next(a)))})}function e2(e){return e<=0?()=>lt:u1((t,r)=>{let n=0;t.subscribe(qe(r,i=>{++n<=e&&(r.next(i),e<=n&&r.complete())}))})}function q1(e,t,r){const n=Q(e)||t||r?{next:e,error:t,complete:r}:e;return n?u1((i,a)=>{var s;null===(s=n.subscribe)||void 0===s||s.call(n);let c=!0;i.subscribe(qe(a,o=>{var l;null===(l=n.next)||void 0===l||l.call(n,o),a.next(o)},()=>{var o;c=!1,null===(o=n.complete)||void 0===o||o.call(n),a.complete()},o=>{var l;c=!1,null===(l=n.error)||void 0===l||l.call(n,o),a.error(o)},()=>{var o,l;c&&(null===(o=n.unsubscribe)||void 0===o||o.call(n)),null===(l=n.finalize)||void 0===l||l.call(n)}))}):bt}function w5(...e){const t=Za(e);return u1((r,n)=>{const i=e.length,a=new Array(i);let s=e.map(()=>!1),c=!1;for(let o=0;o<i;o++)j1(e[o]).subscribe(qe(n,l=>{a[o]=l,!c&&!s[o]&&(s[o]=!0,(c=s.every(bt))&&(s=null))},Z1));r.subscribe(qe(n,o=>{if(c){const l=[o,...a];n.next(t?t(...l):l)}}))})}function oC(e){return we(()=>e)}function lC(e,t){return t?r=>$i(t.pipe(e2(1),function eW(){return u1((e,t)=>{e.subscribe(qe(t,Z1))})}()),r.pipe(lC(e))):F1((r,n)=>j1(e(r,n)).pipe(e2(1),oC(r)))}function fC(e,t=iC){const r=aC(e,t);return lC(()=>r)}var nW={left:"right",right:"left",bottom:"top",top:"bottom"};function Yc(e){return e.replace(/left|right|bottom|top/g,function(t){return nW[t]})}function tn(e){return e.split("-")[0]}var rW={start:"end",end:"start"};function dC(e){return e.replace(/start|end/g,function(t){return rW[t]})}var nt="top",Tt="bottom",It="right",rt="left",V5="auto",Wi=[nt,Tt,It,rt],sr="start",qi="end",hC="viewport",Ki="popper",pC=Wi.reduce(function(e,t){return e.concat([t+"-"+sr,t+"-"+qi])},[]),mC=[].concat(Wi,[V5]).reduce(function(e,t){return e.concat([t,t+"-"+sr,t+"-"+qi])},[]),mW=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function it(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function L4(e){return e instanceof it(e).Element||e instanceof Element}function Ct(e){return e instanceof it(e).HTMLElement||e instanceof HTMLElement}function z5(e){return!(typeof ShadowRoot>"u")&&(e instanceof it(e).ShadowRoot||e instanceof ShadowRoot)}function Qn(e){return((L4(e)?e.ownerDocument:e.document)||window.document).documentElement}var x4=Math.max,Zc=Math.min,cr=Math.round;function D5(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function gC(){return!/^((?!chrome|android).)*safari/i.test(D5())}function or(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),i=1,a=1;t&&Ct(e)&&(i=e.offsetWidth>0&&cr(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&cr(n.height)/e.offsetHeight||1);var c=(L4(e)?it(e):window).visualViewport,o=!gC()&&r,l=(n.left+(o&&c?c.offsetLeft:0))/i,f=(n.top+(o&&c?c.offsetTop:0))/a,d=n.width/i,p=n.height/a;return{width:d,height:p,top:f,right:l+d,bottom:f+p,left:l,x:l,y:f}}function S5(e){var t=it(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function L5(e){return or(Qn(e)).left+S5(e).scrollLeft}function wn(e){return it(e).getComputedStyle(e)}function nn(e){return e?(e.nodeName||"").toLowerCase():null}function Qc(e){return"html"===nn(e)?e:e.assignedSlot||e.parentNode||(z5(e)?e.host:null)||Qn(e)}function x5(e){var t=wn(e);return/auto|scroll|overlay|hidden/.test(t.overflow+t.overflowY+t.overflowX)}function vC(e){return["html","body","#document"].indexOf(nn(e))>=0?e.ownerDocument.body:Ct(e)&&x5(e)?e:vC(Qc(e))}function Yi(e,t){var r;void 0===t&&(t=[]);var n=vC(e),i=n===(null==(r=e.ownerDocument)?void 0:r.body),a=it(n),s=i?[a].concat(a.visualViewport||[],x5(n)?n:[]):n,c=t.concat(s);return i?c:c.concat(Yi(Qc(s)))}function _W(e){return["table","td","th"].indexOf(nn(e))>=0}function _C(e){return Ct(e)&&"fixed"!==wn(e).position?e.offsetParent:null}function Zi(e){for(var t=it(e),r=_C(e);r&&_W(r)&&"static"===wn(r).position;)r=_C(r);return r&&("html"===nn(r)||"body"===nn(r)&&"static"===wn(r).position)?t:r||function CW(e){var t=/firefox/i.test(D5());if(/Trident/i.test(D5())&&Ct(e)&&"fixed"===wn(e).position)return null;var i=Qc(e);for(z5(i)&&(i=i.host);Ct(i)&&["html","body"].indexOf(nn(i))<0;){var a=wn(i);if("none"!==a.transform||"none"!==a.perspective||"paint"===a.contain||-1!==["transform","perspective"].indexOf(a.willChange)||t&&"filter"===a.willChange||t&&a.filter&&"none"!==a.filter)return i;i=i.parentNode}return null}(e)||t}function CC(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&z5(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function N5(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function MC(e,t,r){return t===hC?N5(function gW(e,t){var r=it(e),n=Qn(e),i=r.visualViewport,a=n.clientWidth,s=n.clientHeight,c=0,o=0;if(i){a=i.width,s=i.height;var l=gC();(l||!l&&"fixed"===t)&&(c=i.offsetLeft,o=i.offsetTop)}return{width:a,height:s,x:c+L5(e),y:o}}(e,r)):L4(t)?function MW(e,t){var r=or(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):N5(function vW(e){var t,r=Qn(e),n=S5(e),i=null==(t=e.ownerDocument)?void 0:t.body,a=x4(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=x4(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),c=-n.scrollLeft+L5(e),o=-n.scrollTop;return"rtl"===wn(i||r).direction&&(c+=x4(r.clientWidth,i?i.clientWidth:0)-a),{width:a,height:s,x:c,y:o}}(Qn(e)))}function lr(e){return e.split("-")[1]}function A5(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function yC(e){var o,t=e.reference,r=e.element,n=e.placement,i=n?tn(n):null,a=n?lr(n):null,s=t.x+t.width/2-r.width/2,c=t.y+t.height/2-r.height/2;switch(i){case nt:o={x:s,y:t.y-r.height};break;case Tt:o={x:s,y:t.y+t.height};break;case It:o={x:t.x+t.width,y:c};break;case rt:o={x:t.x-r.width,y:c};break;default:o={x:t.x,y:t.y}}var l=i?A5(i):null;if(null!=l){var f="y"===l?"height":"width";switch(a){case sr:o[l]=o[l]-(t[f]/2-r[f]/2);break;case qi:o[l]=o[l]+(t[f]/2-r[f]/2)}}return o}function HC(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function wC(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}function E5(e,t){void 0===t&&(t={});var n=t.placement,i=void 0===n?e.placement:n,a=t.strategy,s=void 0===a?e.strategy:a,c=t.boundary,o=void 0===c?"clippingParents":c,l=t.rootBoundary,f=void 0===l?hC:l,d=t.elementContext,p=void 0===d?Ki:d,g=t.altBoundary,w=void 0!==g&&g,z=t.padding,L=void 0===z?0:z,T=HC("number"!=typeof L?L:wC(L,Wi)),B=e.rects.popper,U=e.elements[w?p===Ki?"reference":Ki:p],q=function bW(e,t,r,n){var i="clippingParents"===t?function yW(e){var t=Yi(Qc(e)),n=["absolute","fixed"].indexOf(wn(e).position)>=0&&Ct(e)?Zi(e):e;return L4(n)?t.filter(function(i){return L4(i)&&CC(i,n)&&"body"!==nn(i)}):[]}(e):[].concat(t),a=[].concat(i,[r]),c=a.reduce(function(o,l){var f=MC(e,l,n);return o.top=x4(f.top,o.top),o.right=Zc(f.right,o.right),o.bottom=Zc(f.bottom,o.bottom),o.left=x4(f.left,o.left),o},MC(e,a[0],n));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}(L4(U)?U:U.contextElement||Qn(e.elements.popper),o,f,s),re=or(e.elements.reference),_e=yC({reference:re,element:B,strategy:"absolute",placement:i}),He=N5(Object.assign({},B,_e)),ke=p===Ki?He:re,z1={top:q.top-ke.top+T.top,bottom:ke.bottom-q.bottom+T.bottom,left:q.left-ke.left+T.left,right:ke.right-q.right+T.right},t2=e.modifiersData.offset;if(p===Ki&&t2){var Pt=t2[i];Object.keys(z1).forEach(function(N2){var q4=[It,Tt].indexOf(N2)>=0?1:-1,K4=[nt,Tt].indexOf(N2)>=0?"y":"x";z1[N2]+=Pt[K4]*q4})}return z1}const zW={name:"flip",enabled:!0,phase:"main",fn:function VW(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,a=void 0===i||i,s=r.altAxis,c=void 0===s||s,o=r.fallbackPlacements,l=r.padding,f=r.boundary,d=r.rootBoundary,p=r.altBoundary,g=r.flipVariations,w=void 0===g||g,z=r.allowedAutoPlacements,L=t.options.placement,T=tn(L),B=o||(T!==L&&w?function wW(e){if(tn(e)===V5)return[];var t=Yc(e);return[dC(e),t,dC(t)]}(L):[Yc(L)]),U=[L].concat(B).reduce(function(Dr,s4){return Dr.concat(tn(s4)===V5?function HW(e,t){void 0===t&&(t={});var i=t.boundary,a=t.rootBoundary,s=t.padding,c=t.flipVariations,o=t.allowedAutoPlacements,l=void 0===o?mC:o,f=lr(t.placement),d=f?c?pC:pC.filter(function(w){return lr(w)===f}):Wi,p=d.filter(function(w){return l.indexOf(w)>=0});0===p.length&&(p=d);var g=p.reduce(function(w,z){return w[z]=E5(e,{placement:z,boundary:i,rootBoundary:a,padding:s})[tn(z)],w},{});return Object.keys(g).sort(function(w,z){return g[w]-g[z]})}(t,{placement:s4,boundary:f,rootBoundary:d,padding:l,flipVariations:w,allowedAutoPlacements:z}):s4)},[]),q=t.rects.reference,re=t.rects.popper,_e=new Map,He=!0,ke=U[0],z1=0;z1<U.length;z1++){var t2=U[z1],Pt=tn(t2),N2=lr(t2)===sr,q4=[nt,Tt].indexOf(Pt)>=0,K4=q4?"width":"height",st=E5(t,{placement:t2,boundary:f,rootBoundary:d,altBoundary:p,padding:l}),Ft=q4?N2?It:rt:N2?Tt:nt;q[K4]>re[K4]&&(Ft=Yc(Ft));var g6=Yc(Ft),Y4=[];if(a&&Y4.push(st[Pt]<=0),c&&Y4.push(st[Ft]<=0,st[g6]<=0),Y4.every(function(Dr){return Dr})){ke=t2,He=!1;break}_e.set(t2,Y4)}if(He)for(var ru=function(s4){var Fa=U.find(function(C6){var Z4=_e.get(C6);if(Z4)return Z4.slice(0,s4).every(function(iu){return iu})});if(Fa)return ke=Fa,"break"},Pa=w?3:1;Pa>0&&"break"!==ru(Pa);Pa--);t.placement!==ke&&(t.modifiersData[n]._skip=!0,t.placement=ke,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Qi(e,t,r){return x4(e,Zc(t,r))}function T5(e){var t=or(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}const xW={name:"preventOverflow",enabled:!0,phase:"main",fn:function LW(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,a=void 0===i||i,s=r.altAxis,c=void 0!==s&&s,p=r.tether,g=void 0===p||p,w=r.tetherOffset,z=void 0===w?0:w,L=E5(t,{boundary:r.boundary,rootBoundary:r.rootBoundary,padding:r.padding,altBoundary:r.altBoundary}),T=tn(t.placement),S=lr(t.placement),B=!S,U=A5(T),q=function DW(e){return"x"===e?"y":"x"}(U),re=t.modifiersData.popperOffsets,_e=t.rects.reference,He=t.rects.popper,ke="function"==typeof z?z(Object.assign({},t.rects,{placement:t.placement})):z,z1="number"==typeof ke?{mainAxis:ke,altAxis:ke}:Object.assign({mainAxis:0,altAxis:0},ke),t2=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Pt={x:0,y:0};if(re){if(a){var N2,q4="y"===U?nt:rt,K4="y"===U?Tt:It,st="y"===U?"height":"width",Ft=re[U],g6=Ft+L[q4],Y4=Ft-L[K4],v6=g?-He[st]/2:0,ru=S===sr?_e[st]:He[st],Pa=S===sr?-He[st]:-_e[st],_6=t.elements.arrow,Dr=g&&_6?T5(_6):{width:0,height:0},s4=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Fa=s4[q4],C6=s4[K4],Z4=Qi(0,_e[st],Dr[st]),iu=B?_e[st]/2-v6-Z4-Fa-z1.mainAxis:ru-Z4-Fa-z1.mainAxis,tHe=B?-_e[st]/2+v6+Z4+C6+z1.mainAxis:Pa+Z4+C6+z1.mainAxis,au=t.elements.arrow&&Zi(t.elements.arrow),nHe=au?"y"===U?au.clientTop||0:au.clientLeft||0:0,WN=null!=(N2=t2?.[U])?N2:0,iHe=Ft+tHe-WN,qN=Qi(g?Zc(g6,Ft+iu-WN-nHe):g6,Ft,g?x4(Y4,iHe):Y4);re[U]=qN,Pt[U]=qN-Ft}if(c){var KN,Q4=re[q],M6="y"===q?"height":"width",YN=Q4+L["x"===U?nt:rt],ZN=Q4-L["x"===U?Tt:It],su=-1!==[nt,rt].indexOf(T),QN=null!=(KN=t2?.[q])?KN:0,JN=su?YN:Q4-_e[M6]-He[M6]-QN+z1.altAxis,XN=su?Q4+_e[M6]+He[M6]-QN-z1.altAxis:ZN,eA=g&&su?function SW(e,t,r){var n=Qi(e,t,r);return n>r?r:n}(JN,Q4,XN):Qi(g?JN:YN,Q4,g?XN:ZN);re[q]=eA,Pt[q]=eA-Q4}t.modifiersData[n]=Pt}},requiresIfExists:["offset"]},TW={name:"arrow",enabled:!0,phase:"main",fn:function AW(e){var t,r=e.state,n=e.name,i=e.options,a=r.elements.arrow,s=r.modifiersData.popperOffsets,c=tn(r.placement),o=A5(c),f=[rt,It].indexOf(c)>=0?"height":"width";if(a&&s){var d=function(t,r){return HC("number"!=typeof(t="function"==typeof t?t(Object.assign({},r.rects,{placement:r.placement})):t)?t:wC(t,Wi))}(i.padding,r),p=T5(a),g="y"===o?nt:rt,w="y"===o?Tt:It,z=r.rects.reference[f]+r.rects.reference[o]-s[o]-r.rects.popper[f],L=s[o]-r.rects.reference[o],T=Zi(a),S=T?"y"===o?T.clientHeight||0:T.clientWidth||0:0,re=S/2-p[f]/2+(z/2-L/2),_e=Qi(d[g],re,S-p[f]-d[w]);r.modifiersData[n]=((t={})[o]=_e,t.centerOffset=_e-re,t)}},effect:function EW(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"==typeof i&&!(i=t.elements.popper.querySelector(i))||CC(t.elements.popper,i)&&(t.elements.arrow=i))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function kW(e,t,r){void 0===r&&(r=!1);var n=Ct(t),i=Ct(t)&&function RW(e){var t=e.getBoundingClientRect(),r=cr(t.width)/e.offsetWidth||1,n=cr(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),a=Qn(t),s=or(e,i,r),c={scrollLeft:0,scrollTop:0},o={x:0,y:0};return(n||!n&&!r)&&(("body"!==nn(t)||x5(a))&&(c=function OW(e){return e!==it(e)&&Ct(e)?function IW(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(e):S5(e)}(t)),Ct(t)?((o=or(t,!0)).x+=t.clientLeft,o.y+=t.clientTop):a&&(o.x=L5(a))),{x:s.left+c.scrollLeft-o.x,y:s.top+c.scrollTop-o.y,width:s.width,height:s.height}}function PW(e){var t=new Map,r=new Set,n=[];function i(a){r.add(a.name),[].concat(a.requires||[],a.requiresIfExists||[]).forEach(function(c){if(!r.has(c)){var o=t.get(c);o&&i(o)}}),n.push(a)}return e.forEach(function(a){t.set(a.name,a)}),e.forEach(function(a){r.has(a.name)||i(a)}),n}function BW(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}var VC={placement:"bottom",modifiers:[],strategy:"absolute"};function zC(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&"function"==typeof n.getBoundingClientRect)})}function jW(e){void 0===e&&(e={});var r=e.defaultModifiers,n=void 0===r?[]:r,i=e.defaultOptions,a=void 0===i?VC:i;return function(c,o,l){void 0===l&&(l=a);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},VC,a),modifiersData:{},elements:{reference:c,popper:o},attributes:{},styles:{}},d=[],p=!1,g={state:f,setOptions:function(T){var S="function"==typeof T?T(f.options):T;z(),f.options=Object.assign({},a,f.options,S),f.scrollParents={reference:L4(c)?Yi(c):c.contextElement?Yi(c.contextElement):[],popper:Yi(o)};var B=function FW(e){var t=PW(e);return mW.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}(function UW(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}([].concat(n,f.options.modifiers)));return f.orderedModifiers=B.filter(function(U){return U.enabled}),function w(){f.orderedModifiers.forEach(function(L){var S=L.options,U=L.effect;if("function"==typeof U){var q=U({state:f,name:L.name,instance:g,options:void 0===S?{}:S});d.push(q||function(){})}})}(),g.update()},forceUpdate:function(){if(!p){var T=f.elements,S=T.reference,B=T.popper;if(zC(S,B)){f.rects={reference:kW(S,Zi(B),"fixed"===f.options.strategy),popper:T5(B)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(z1){return f.modifiersData[z1.name]=Object.assign({},z1.data)});for(var U=0;U<f.orderedModifiers.length;U++)if(!0!==f.reset){var q=f.orderedModifiers[U],re=q.fn,_e=q.options;"function"==typeof re&&(f=re({state:f,options:void 0===_e?{}:_e,name:q.name,instance:g})||f)}else f.reset=!1,U=-1}}},update:BW(function(){return new Promise(function(L){g.forceUpdate(),L(f)})}),destroy:function(){z(),p=!0}};if(!zC(c,o))return g;function z(){d.forEach(function(L){return L()}),d=[]}return g.setOptions(l).then(function(L){!p&&l.onFirstUpdate&&l.onFirstUpdate(L)}),g}}var Jc={passive:!0},KW={top:"auto",right:"auto",bottom:"auto",left:"auto"};function DC(e){var t,r=e.popper,n=e.popperRect,i=e.placement,a=e.variation,s=e.offsets,c=e.position,o=e.gpuAcceleration,l=e.adaptive,f=e.roundOffsets,d=e.isFixed,p=s.x,g=void 0===p?0:p,w=s.y,z=void 0===w?0:w,L="function"==typeof f?f({x:g,y:z}):{x:g,y:z};g=L.x,z=L.y;var T=s.hasOwnProperty("x"),S=s.hasOwnProperty("y"),B=rt,U=nt,q=window;if(l){var re=Zi(r),_e="clientHeight",He="clientWidth";re===it(r)&&"static"!==wn(re=Qn(r)).position&&"absolute"===c&&(_e="scrollHeight",He="scrollWidth"),(i===nt||(i===rt||i===It)&&a===qi)&&(U=Tt,z-=(d&&re===q&&q.visualViewport?q.visualViewport.height:re[_e])-n.height,z*=o?1:-1),i!==rt&&(i!==nt&&i!==Tt||a!==qi)||(B=It,g-=(d&&re===q&&q.visualViewport?q.visualViewport.width:re[He])-n.width,g*=o?1:-1)}var N2,t2=Object.assign({position:c},l&&KW),Pt=!0===f?function YW(e,t){var n=e.y,i=t.devicePixelRatio||1;return{x:cr(e.x*i)/i||0,y:cr(n*i)/i||0}}({x:g,y:z},it(r)):{x:g,y:z};return g=Pt.x,z=Pt.y,Object.assign({},t2,o?((N2={})[U]=S?"0":"",N2[B]=T?"0":"",N2.transform=(q.devicePixelRatio||1)<=1?"translate("+g+"px, "+z+"px)":"translate3d("+g+"px, "+z+"px, 0)",N2):((t={})[U]=S?z+"px":"",t[B]=T?g+"px":"",t.transform="",t))}var tq=jW({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function GW(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,a=void 0===i||i,s=n.resize,c=void 0===s||s,o=it(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(f){f.addEventListener("scroll",r.update,Jc)}),c&&o.addEventListener("resize",r.update,Jc),function(){a&&l.forEach(function(f){f.removeEventListener("scroll",r.update,Jc)}),c&&o.removeEventListener("resize",r.update,Jc)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function WW(e){var t=e.state;t.modifiersData[e.name]=yC({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function ZW(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=void 0===n||n,a=r.adaptive,s=void 0===a||a,c=r.roundOffsets,o=void 0===c||c,l={placement:tn(t.placement),variation:lr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,DC(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:o})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,DC(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:o})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function JW(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},a=t.elements[r];!Ct(a)||!nn(a)||(Object.assign(a.style,n),Object.keys(i).forEach(function(s){var c=i[s];!1===c?a.removeAttribute(s):a.setAttribute(s,!0===c?"":c)}))})},effect:function XW(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],a=t.attributes[n]||{},c=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]).reduce(function(o,l){return o[l]="",o},{});!Ct(i)||!nn(i)||(Object.assign(i.style,c),Object.keys(a).forEach(function(o){i.removeAttribute(o)}))})}},requires:["computeStyles"]}]});const iq={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function rq(e){var t=e.state,n=e.name,i=e.options.offset,a=void 0===i?[0,0]:i,s=mC.reduce(function(f,d){return f[d]=function nq(e,t,r){var n=tn(e),i=[rt,nt].indexOf(n)>=0?-1:1,a="function"==typeof r?r(Object.assign({},t,{placement:e})):r,s=a[0],c=a[1];return s=s||0,c=(c||0)*i,[rt,It].indexOf(n)>=0?{x:c,y:s}:{x:s,y:c}}(d,t.rects,a),f},{}),c=s[t.placement],l=c.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c.x,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=s}};function aq(e,t){}function sq(e,t){if(1&e&&(m(0,"button",3),y(1),O(2,aq,0,0,"ng-template",4),v()),2&e){const r=t.$implicit;M("ngbPanelToggle",r),C(1),F2(" ",r.title," "),C(1),M("ngTemplateOutlet",null==r.titleTpl?null:r.titleTpl.templateRef)}}function cq(e,t){}function oq(e,t){}function lq(e,t){if(1&e){const r=M1();m(0,"div",8),I("ngbRef",function(i){return G(r),$(x().$implicit.panelDiv=i)}),m(1,"div",9),O(2,oq,0,0,"ng-template",4),v()()}if(2&e){const r=x().$implicit;O8("id",r.id),j("aria-labelledby",r.id+"-header"),C(2),M("ngTemplateOutlet",(null==r.contentTpl?null:r.contentTpl.templateRef)||null)}}const fq=function(e,t){return{$implicit:e,opened:t}};function uq(e,t){if(1&e&&(m(0,"div")(1,"div",5),O(2,cq,0,0,"ng-template",6),v(),O(3,lq,3,3,"div",7),v()),2&e){const r=t.$implicit,n=x(),i=P2(1);_n("accordion-item "+(r.cardClass||"")),C(1),_n("accordion-header "+(r.type?"bg-"+r.type:n.type?"bg-"+n.type:"")),Y3("id","",r.id,"-header"),C(1),M("ngTemplateOutlet",(null==r.headerTpl?null:r.headerTpl.templateRef)||i)("ngTemplateOutletContext",Li(8,fq,r,r.isOpen)),C(1),M("ngIf",!n.destroyOnHide||r.isOpen||r.transitionRunning)}}function dq(e,t){if(1&e){const r=M1();m(0,"button",1),I("click",function(){return G(r),$(x().close())}),v()}}const Xc=["*"],Uq=["dialog"];function _K(e,t){1&e&&y(0),2&e&&X2(x(2).title)}function CK(e,t){}function MK(e,t){if(1&e&&(m(0,"h3",3),O(1,_K,1,1,"ng-template",null,4,D2),O(3,CK,0,0,"ng-template",5),v()),2&e){const r=P2(2),n=x();C(3),M("ngTemplateOutlet",n.isTitleTemplate()?n.title:r)("ngTemplateOutletContext",n.context)}}function Vn(e){return"string"==typeof e}function N4(e){return null!=e}function fr(e){return(e||document.body).getBoundingClientRect()}const EC={animation:!0,transitionTimerDelayMs:5},IK=()=>{},{transitionTimerDelayMs:OK}=EC,Ji=new Map,x2=(e,t,r,n)=>{let i=n.context||{};const a=Ji.get(t);if(a)switch(n.runningTransition){case"continue":return lt;case"stop":e.run(()=>a.transition$.complete()),i=Object.assign(a.context,i),Ji.delete(t)}const s=r(t,n.animation,i)||IK;if(!n.animation||"none"===window.getComputedStyle(t).transitionProperty)return e.run(()=>s()),ae(void 0).pipe(function EK(e){return t=>new We(r=>t.subscribe({next:s=>e.run(()=>r.next(s)),error:s=>e.run(()=>r.error(s)),complete:()=>e.run(()=>r.complete())}))}(e));const c=new ue,o=new ue,l=c.pipe(function X$(...e){return t=>$i(t,ae(...e))}(!0));Ji.set(t,{transition$:c,complete:()=>{o.next(),o.complete()},context:i});const f=function TK(e){const{transitionDelay:t,transitionDuration:r}=window.getComputedStyle(e);return 1e3*(parseFloat(t)+parseFloat(r))}(t);return e.runOutsideAngular(()=>{const d=X1(t,"transitionend").pipe(R1(l),N1(({target:g})=>g===t));cC(aC(f+OK).pipe(R1(l)),d,o).pipe(R1(l)).subscribe(()=>{Ji.delete(t),e.run(()=>{s(),c.next(),c.complete()})})}),c.asObservable()},O5=(e,t,r)=>{let{direction:n,maxSize:i,dimension:a}=r;const{classList:s}=e;function c(){s.add("collapse"),"show"===n?s.add("show"):s.remove("show")}if(t)return i||(i=function RK(e,t){if(typeof navigator>"u")return"0px";const{classList:r}=e,n=r.contains("show");n||r.add("show"),e.style[t]="";const i=e.getBoundingClientRect()[t]+"px";return n||r.remove("show"),i}(e,a),r.maxSize=i,e.style[a]="show"!==n?i:"0px",s.remove("collapse"),s.remove("collapsing"),s.remove("show"),fr(e),s.add("collapsing")),e.style[a]="show"===n?i:"0px",()=>{c(),s.remove("collapsing"),e.style[a]=""};c()};let A4=(()=>{var e;class t{constructor(){this.animation=EC.animation}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),TC=(()=>{var e;class t{constructor(n){this._ngbConfig=n,this.closeOthers=!1}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(n){this._animation=n}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(A4))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),kK=0,eo=(()=>{var e;class t{constructor(n){this.templateRef=n}}return(e=t).\u0275fac=function(n){return new(n||e)(H(c1))},e.\u0275dir=W({type:e,selectors:[["ng-template","ngbPanelHeader",""]],standalone:!0}),t})(),R5=(()=>{var e;class t{constructor(n){this.templateRef=n}}return(e=t).\u0275fac=function(n){return new(n||e)(H(c1))},e.\u0275dir=W({type:e,selectors:[["ng-template","ngbPanelTitle",""]],standalone:!0}),t})(),k5=(()=>{var e;class t{constructor(n){this.templateRef=n}}return(e=t).\u0275fac=function(n){return new(n||e)(H(c1))},e.\u0275dir=W({type:e,selectors:[["ng-template","ngbPanelContent",""]],standalone:!0}),t})(),to=(()=>{var e;class t{constructor(){this.disabled=!1,this.id="ngb-panel-"+kK++,this.isOpen=!1,this.initClassDone=!1,this.transitionRunning=!1,this.shown=new ee,this.hidden=new ee}ngAfterContentChecked(){this.titleTpl=this.titleTpls.first,this.headerTpl=this.headerTpls.first,this.contentTpl=this.contentTpls.first}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275dir=W({type:e,selectors:[["ngb-panel"]],contentQueries:function(n,i,a){if(1&n&&(y1(a,R5,4),y1(a,eo,4),y1(a,k5,4)),2&n){let s;je(s=Ge())&&(i.titleTpls=s),je(s=Ge())&&(i.headerTpls=s),je(s=Ge())&&(i.contentTpls=s)}},inputs:{disabled:"disabled",id:"id",title:"title",type:"type",cardClass:"cardClass"},outputs:{shown:"shown",hidden:"hidden"},standalone:!0}),t})(),PK=(()=>{var e;class t{constructor(n){this._El=n,this.ngbRef=new ee}ngOnInit(){this.ngbRef.emit(this._El.nativeElement)}ngOnDestroy(){this.ngbRef.emit(null)}}return(e=t).\u0275fac=function(n){return new(n||e)(H(Ne))},e.\u0275dir=W({type:e,selectors:[["","ngbRef",""]],outputs:{ngbRef:"ngbRef"},standalone:!0}),t})(),P5=(()=>{var e;class t{set ngbPanelToggle(n){n&&(this.panel=n)}constructor(n,i){this.accordion=n,this.panel=i}}return(e=t).\u0275fac=function(n){return new(n||e)(H(me(()=>F5)),H(to,9))},e.\u0275dir=W({type:e,selectors:[["button","ngbPanelToggle",""]],hostAttrs:["type","button"],hostVars:5,hostBindings:function(n,i){1&n&&I("click",function(){return i.accordion.toggle(i.panel.id)}),2&n&&(w2("disabled",i.panel.disabled),j("aria-expanded",i.panel.isOpen)("aria-controls",i.panel.id),Se("collapsed",!i.panel.isOpen))},inputs:{ngbPanelToggle:"ngbPanelToggle"},standalone:!0}),t})(),F5=(()=>{var e;class t{constructor(n,i,a){this._ngZone=i,this._changeDetector=a,this.activeIds=[],this.destroyOnHide=!0,this.panelChange=new ee,this.shown=new ee,this.hidden=new ee,this.animation=n.animation,this.type=n.type,this.closeOtherPanels=n.closeOthers}isExpanded(n){return this.activeIds.indexOf(n)>-1}expand(n){this._changeOpenState(this._findPanelById(n),!0)}expandAll(){this.closeOtherPanels?0===this.activeIds.length&&this.panels.length&&this._changeOpenState(this.panels.first,!0):this.panels.forEach(n=>this._changeOpenState(n,!0))}collapse(n){this._changeOpenState(this._findPanelById(n),!1)}collapseAll(){this.panels.forEach(n=>{this._changeOpenState(n,!1)})}toggle(n){const i=this._findPanelById(n);i&&this._changeOpenState(i,!i.isOpen)}ngAfterContentChecked(){Vn(this.activeIds)&&(this.activeIds=this.activeIds.split(/\s*,\s*/)),this.panels.forEach(n=>{n.isOpen=!n.disabled&&this.activeIds.indexOf(n.id)>-1}),this.activeIds.length>1&&this.closeOtherPanels&&(this._closeOthers(this.activeIds[0],!1),this._updateActiveIds()),this._ngZone.onStable.pipe(e2(1)).subscribe(()=>{this.panels.forEach(n=>{const i=n.panelDiv;i?n.initClassDone||(n.initClassDone=!0,x2(this._ngZone,i,O5,{animation:!1,runningTransition:"continue",context:{direction:n.isOpen?"show":"hide",dimension:"height"}})):n.initClassDone=!1})})}_changeOpenState(n,i){if(null!=n&&!n.disabled&&n.isOpen!==i){let a=!1;this.panelChange.emit({panelId:n.id,nextState:i,preventDefault:()=>{a=!0}}),a||(n.isOpen=i,n.transitionRunning=!0,i&&this.closeOtherPanels&&this._closeOthers(n.id),this._updateActiveIds(),this._runTransitions(this.animation))}}_closeOthers(n,i=!0){this.panels.forEach(a=>{a.id!==n&&a.isOpen&&(a.isOpen=!1,a.transitionRunning=i)})}_findPanelById(n){return this.panels.find(i=>i.id===n)||null}_updateActiveIds(){this.activeIds=this.panels.filter(n=>n.isOpen&&!n.disabled).map(n=>n.id)}_runTransitions(n){this._changeDetector.detectChanges(),this.panels.forEach(i=>{i.transitionRunning&&x2(this._ngZone,i.panelDiv,O5,{animation:n,runningTransition:"stop",context:{direction:i.isOpen?"show":"hide",dimension:"height"}}).subscribe(()=>{i.transitionRunning=!1;const{id:s}=i;i.isOpen?(i.shown.emit(),this.shown.emit(s)):(i.hidden.emit(),this.hidden.emit(s))})})}}return(e=t).\u0275fac=function(n){return new(n||e)(H(TC),H(ye),H(et))},e.\u0275cmp=se({type:e,selectors:[["ngb-accordion"]],contentQueries:function(n,i,a){if(1&n&&y1(a,to,4),2&n){let s;je(s=Ge())&&(i.panels=s)}},hostAttrs:["role","tablist",1,"accordion"],hostVars:1,hostBindings:function(n,i){2&n&&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"],standalone:!0,features:[z2],decls:3,vars:1,consts:[["ngbPanelHeader",""],["t",""],["ngFor","",3,"ngForOf"],[1,"accordion-button",3,"ngbPanelToggle"],[3,"ngTemplateOutlet"],["role","tab",3,"id"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["role","tabpanel",3,"id","ngbRef",4,"ngIf"],["role","tabpanel",3,"id","ngbRef"],[1,"accordion-body"]],template:function(n,i){1&n&&(O(0,sq,3,3,"ng-template",0,1,D2),O(2,uq,4,11,"ng-template",2)),2&n&&(C(2),M("ngForOf",i.panels))},dependencies:[At,H4,P5,PK,eo,H1],encapsulation:2}),t})(),FK=(()=>{var e;class t{constructor(n){this._ngbConfig=n,this.horizontal=!1}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(n){this._animation=n}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(A4))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),B5=(()=>{var e;class t{set collapsed(n){this._isCollapsed!==n&&(this._isCollapsed=n,this._afterInit&&this._runTransitionWithEvents(n,this.animation))}constructor(n,i,a){this._element=n,this._zone=a,this._afterInit=!1,this._isCollapsed=!1,this.ngbCollapseChange=new ee,this.shown=new ee,this.hidden=new ee,this.animation=i.animation,this.horizontal=i.horizontal}ngOnInit(){this._runTransition(this._isCollapsed,!1),this._afterInit=!0}toggle(n=this._isCollapsed){this.collapsed=!n,this.ngbCollapseChange.next(this._isCollapsed)}_runTransition(n,i){return x2(this._zone,this._element.nativeElement,O5,{animation:i,runningTransition:"stop",context:{direction:n?"hide":"show",dimension:this.horizontal?"width":"height"}})}_runTransitionWithEvents(n,i){this._runTransition(n,i).subscribe(()=>{n?this.hidden.emit():this.shown.emit()})}}return(e=t).\u0275fac=function(n){return new(n||e)(H(Ne),H(FK),H(ye))},e.\u0275dir=W({type:e,selectors:[["","ngbCollapse",""]],hostVars:2,hostBindings:function(n,i){2&n&&Se("collapse-horizontal",i.horizontal)},inputs:{animation:"animation",collapsed:["ngbCollapse","collapsed"],horizontal:"horizontal"},outputs:{ngbCollapseChange:"ngbCollapseChange",shown:"shown",hidden:"hidden"},exportAs:["ngbCollapse"],standalone:!0}),t})(),RC=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})();const $K=({classList:e})=>{e.remove("show")};let WK=(()=>{var e;class t{constructor(n){this._ngbConfig=n,this.dismissible=!0,this.type="warning"}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(n){this._animation=n}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(A4))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),kC=(()=>{var e;class t{constructor(n,i,a,s){this._renderer=i,this._element=a,this._zone=s,this.closed=new ee,this.dismissible=n.dismissible,this.type=n.type,this.animation=n.animation}close(){const n=x2(this._zone,this._element.nativeElement,$K,{animation:this.animation,runningTransition:"continue"});return n.subscribe(()=>this.closed.emit()),n}ngOnChanges(n){const i=n.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=t).\u0275fac=function(n){return new(n||e)(H(WK),H(o2),H(Ne),H(ye))},e.\u0275cmp=se({type:e,selectors:[["ngb-alert"]],hostAttrs:["role","alert",1,"alert","show"],hostVars:4,hostBindings:function(n,i){2&n&&Se("fade",i.animation)("alert-dismissible",i.dismissible)},inputs:{animation:"animation",dismissible:"dismissible",type:"type"},outputs:{closed:"closed"},exportAs:["ngbAlert"],standalone:!0,features:[_1,z2],ngContentSelectors:Xc,decls:2,vars:1,consts:function(){let r;return r=$localize`:@@ngb.alert.close:Close`,[["type","button","class","btn-close","aria-label",r,3,"click",4,"ngIf"],["type","button","aria-label",r,1,"btn-close",3,"click"]]},template:function(n,i){1&n&&(q3(),K3(0),O(1,dq,1,0,"button",0)),2&n&&(C(1),M("ngIf",i.dismissible))},dependencies:[H1],styles:["ngb-alert{display:block}\n"],encapsulation:2,changeDetection:0}),t})(),PC=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})(),UC=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})(),jC=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})();var Ze=function(e){return e[e.Tab=9]="Tab",e[e.Enter=13]="Enter",e[e.Escape=27]="Escape",e[e.Space=32]="Space",e[e.PageUp=33]="PageUp",e[e.PageDown=34]="PageDown",e[e.End=35]="End",e[e.Home=36]="Home",e[e.ArrowLeft=37]="ArrowLeft",e[e.ArrowUp=38]="ArrowUp",e[e.ArrowRight=39]="ArrowRight",e[e.ArrowDown=40]="ArrowDown",e}(Ze||{});const co=(e,t)=>!!t&&t.some(r=>r.contains(e)),KC=(e,t)=>!t||null!=function AK(e,t){return!t||typeof e.closest>"u"?null:e.closest(t)}(e,t),hY=typeof navigator<"u"&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));function oo(e,t,r,n,i,a,s,c){r&&e.runOutsideAngular((e=>hY?()=>setTimeout(()=>e(),100):e)(()=>{const l=X1(t,"keydown").pipe(R1(i),N1(p=>p.which===Ze.Escape),q1(p=>p.preventDefault())),f=X1(t,"mousedown").pipe(we(p=>{const g=p.target;return 2!==p.button&&!co(g,s)&&("inside"===r?co(g,a)&&KC(g,c):"outside"===r?!co(g,a):KC(g,c)||!co(g,a))}),R1(i)),d=X1(t,"mouseup").pipe(w5(f),N1(([p,g])=>g),fC(0),R1(i));cC([l.pipe(we(p=>0)),d.pipe(we(p=>1))]).subscribe(p=>e.run(()=>n(p)))}))}const YC=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function ZC(e){const t=Array.from(e.querySelectorAll(YC)).filter(r=>-1!==r.tabIndex);return[t[0],t[t.length-1]]}let mY=(()=>{var e;class t{constructor(n){this._element=n.documentElement}isRTL(){return"rtl"===(this._element.getAttribute("dir")||"").toLowerCase()}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(b1))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const gY=/\s+/,vY=/ +/gi,_Y={top:["top"],bottom:["bottom"],start:["left","right"],left:["left"],end:["right","left"],right:["right"],"top-start":["top-start","top-end"],"top-left":["top-start"],"top-end":["top-end","top-start"],"top-right":["top-end"],"bottom-start":["bottom-start","bottom-end"],"bottom-left":["bottom-start"],"bottom-end":["bottom-end","bottom-start"],"bottom-right":["bottom-end"],"start-top":["left-start","right-start"],"left-top":["left-start"],"start-bottom":["left-end","right-end"],"left-bottom":["left-end"],"end-top":["right-start","left-start"],"right-top":["right-start"],"end-bottom":["right-end","left-end"],"right-bottom":["right-end"]},MY=/^left/,yY=/^right/,bY=/^start/,HY=/^end/;function JC({placement:e,baseClass:t},r){let n=Array.isArray(e)?e:e.split(gY),a=n.findIndex(l=>"auto"===l);a>=0&&["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end","start-top","start-bottom","end-top","end-bottom"].forEach(function(l){null==n.find(f=>-1!==f.search("^"+l))&&n.splice(a++,1,l)});const s=n.map(l=>function CY(e,t){const[r,n]=_Y[e];return t&&n||r}(l,r.isRTL()));return{placement:s.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!t,phase:"write",fn({state:l}){const f=new RegExp(t+"(-[a-z]+)*","gi"),d=l.elements.popper,p=l.placement;let g=d.className;g=g.replace(f,""),g+=` ${function wY(e,t){let[r,n]=t.split("-");const i=r.replace(MY,"start").replace(yY,"end");let a=[i];if(n){let s=n;("left"===r||"right"===r)&&(s=s.replace(bY,"top").replace(HY,"bottom")),a.push(`${i}-${s}`)}return e&&(a=a.map(s=>`${e}-${s}`)),a.join(" ")}(t,p)}`,g=g.trim().replace(vY," "),d.className=g}},zW,xW,TW,{enabled:!0,name:"flip",options:{fallbackPlacements:s}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function XC(e){return e}function lo(){const e=J(mY);let t=null;return{createPopper(r){if(!t){let i=(r.updatePopperOptions||XC)(JC(r,e));t=tq(r.hostElement,r.targetElement,i)}},update(){t&&t.update()},setOptions(r){if(t){let i=(r.updatePopperOptions||XC)(JC(r,e));t.setOptions(i)}},destroy(){t&&(t.destroy(),t=null)}}}new Date(1882,10,12),new Date(2174,10,25);let cM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})(),fM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})();class R4{constructor(t,r,n){this.nodes=t,this.viewRef=r,this.componentRef=n}}class uM{constructor(t,r,n,i,a,s){this._componentType=t,this._injector=r,this._viewContainerRef=n,this._renderer=i,this._ngZone=a,this._applicationRef=s,this._windowRef=null,this._contentRef=null}open(t,r,n=!1){this._windowRef||(this._contentRef=this._getContentRef(t,r),this._windowRef=this._viewContainerRef.createComponent(this._componentType,{injector:this._injector,projectableNodes:this._contentRef.nodes}));const{nativeElement:i}=this._windowRef.location,a=this._ngZone.onStable.pipe(e2(1),F1(()=>x2(this._ngZone,i,({classList:s})=>s.add("show"),{animation:n,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:a}}close(t=!1){return this._windowRef?x2(this._ngZone,this._windowRef.location.nativeElement,({classList:r})=>r.remove("show"),{animation:t,runningTransition:"stop"}).pipe(q1(()=>{this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),this._contentRef?.viewRef&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):ae(void 0)}_getContentRef(t,r){if(t){if(t instanceof c1){const n=t.createEmbeddedView(r);return this._applicationRef.attachView(n),new R4([n.rootNodes],n)}return new R4([[this._renderer.createText(`${t}`)]])}return new R4([])}}let RY=(()=>{var e;class t{constructor(n,i){this._el=n,this._zone=i}ngOnInit(){this._zone.onStable.asObservable().pipe(e2(1)).subscribe(()=>{x2(this._zone,this._el.nativeElement,(n,i)=>{i&&fr(n),n.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return x2(this._zone,this._el.nativeElement,({classList:n})=>n.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return(e=t).\u0275fac=function(n){return new(n||e)(H(Ne),H(ye))},e.\u0275cmp=se({type:e,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(n,i){2&n&&(_n("modal-backdrop"+(i.backdropClass?" "+i.backdropClass:"")),Se("show",!i.animation)("fade",i.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},standalone:!0,features:[z2],decls:0,vars:0,template:function(n,i){},encapsulation:2}),t})();class dM{update(t){}close(t){}dismiss(t){}}const kY=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],PY=["animation","backdropClass"];class FY{_applyWindowOptions(t,r){kY.forEach(n=>{N4(r[n])&&(t[n]=r[n])})}_applyBackdropOptions(t,r){PY.forEach(n=>{N4(r[n])&&(t[n]=r[n])})}update(t){this._applyWindowOptions(this._windowCmptRef.instance,t),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,t)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(R1(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(R1(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(t,r,n,i){this._windowCmptRef=t,this._contentRef=r,this._backdropCmptRef=n,this._beforeDismiss=i,this._closed=new ue,this._dismissed=new ue,this._hidden=new ue,t.instance.dismissEvent.subscribe(a=>{this.dismiss(a)}),this.result=new Promise((a,s)=>{this._resolve=a,this._reject=s}),this.result.then(null,()=>{})}close(t){this._windowCmptRef&&(this._closed.next(t),this._resolve(t),this._removeModalElements())}_dismiss(t){this._dismissed.next(t),this._reject(t),this._removeModalElements()}dismiss(t){if(this._windowCmptRef)if(this._beforeDismiss){const r=this._beforeDismiss();!function LC(e){return e&&e.then}(r)?!1!==r&&this._dismiss(t):r.then(n=>{!1!==n&&this._dismiss(t)},()=>{})}else this._dismiss(t)}_removeModalElements(){const t=this._windowCmptRef.instance.hide(),r=this._backdropCmptRef?this._backdropCmptRef.instance.hide():ae(void 0);t.subscribe(()=>{const{nativeElement:n}=this._windowCmptRef.location;n.parentNode.removeChild(n),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),r.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:n}=this._backdropCmptRef.location;n.parentNode.removeChild(n),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),H5(t,r).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var na=function(e){return e[e.BACKDROP_CLICK=0]="BACKDROP_CLICK",e[e.ESC=1]="ESC",e}(na||{});let BY=(()=>{var e;class t{constructor(n,i,a){this._document=n,this._elRef=i,this._zone=a,this._closed$=new ue,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new ee,this.shown=new ue,this.hidden=new ue}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":Vn(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(n){this.dismissEvent.emit(n)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(e2(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:n}=this._elRef,i={animation:this.animation,runningTransition:"stop"},c=H5(x2(this._zone,n,()=>n.classList.remove("show"),i),x2(this._zone,this._dialogEl.nativeElement,()=>{},i));return c.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),c}_show(){const n={animation:this.animation,runningTransition:"continue"};H5(x2(this._zone,this._elRef.nativeElement,(s,c)=>{c&&fr(s),s.classList.add("show")},n),x2(this._zone,this._dialogEl.nativeElement,()=>{},n)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:n}=this._elRef;this._zone.runOutsideAngular(()=>{X1(n,"keydown").pipe(R1(this._closed$),N1(a=>a.which===Ze.Escape)).subscribe(a=>{this.keyboard?requestAnimationFrame(()=>{a.defaultPrevented||this._zone.run(()=>this.dismiss(na.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let i=!1;X1(this._dialogEl.nativeElement,"mousedown").pipe(R1(this._closed$),q1(()=>i=!1),Ht(()=>X1(n,"mouseup").pipe(R1(this._closed$),e2(1))),N1(({target:a})=>n===a)).subscribe(()=>{i=!0}),X1(n,"click").pipe(R1(this._closed$)).subscribe(({target:a})=>{n===a&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!i&&this._zone.run(()=>this.dismiss(na.BACKDROP_CLICK))),i=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:n}=this._elRef;if(!n.contains(document.activeElement)){const i=n.querySelector("[ngbAutofocus]"),a=ZC(n)[0];(i||a||n).focus()}}_restoreFocus(){const n=this._document.body,i=this._elWithFocus;let a;a=i&&i.focus&&n.contains(i)?i:n,this._zone.runOutsideAngular(()=>{setTimeout(()=>a.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&x2(this._zone,this._elRef.nativeElement,({classList:n})=>(n.add("modal-static"),()=>n.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return(e=t).\u0275fac=function(n){return new(n||e)(H(b1),H(Ne),H(ye))},e.\u0275cmp=se({type:e,selectors:[["ngb-modal-window"]],viewQuery:function(n,i){if(1&n&&function y4(e,t,r){const n=xe();n.firstCreatePass&&(lg(n,new sg(e,t,r),-1),2==(2&t)&&(n.staticViewQueries=!0)),og(n,P(),t)}(Uq,7),2&n){let a;je(a=Ge())&&(i._dialogEl=a.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(n,i){2&n&&(j("aria-modal",!0)("aria-labelledby",i.ariaLabelledBy)("aria-describedby",i.ariaDescribedBy),_n("modal d-block"+(i.windowClass?" "+i.windowClass:"")),Se("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"},standalone:!0,features:[z2],ngContentSelectors:Xc,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(n,i){1&n&&(q3(),m(0,"div",0,1)(2,"div",2),K3(3),v()()),2&n&&_n("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}),t})(),UY=(()=>{var e;class t{constructor(n){this._document=n}hide(){const n=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),i=this._document.body,a=i.style,{overflow:s,paddingRight:c}=a;if(n>0){const o=parseFloat(window.getComputedStyle(i).paddingRight);a.paddingRight=`${o+n}px`}return a.overflow="hidden",()=>{n>0&&(a.paddingRight=c),a.overflow=s}}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(b1))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),jY=(()=>{var e;class t{constructor(n,i,a,s,c,o,l){this._applicationRef=n,this._injector=i,this._environmentInjector=a,this._document=s,this._scrollBar=c,this._rendererFactory=o,this._ngZone=l,this._activeWindowCmptHasChanged=new ue,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new ee,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const f=this._windowCmpts[this._windowCmpts.length-1];((e,t,r,n=!1)=>{e.runOutsideAngular(()=>{const i=X1(t,"focusin").pipe(R1(r),we(a=>a.target));X1(t,"keydown").pipe(R1(r),N1(a=>a.which===Ze.Tab),w5(i)).subscribe(([a,s])=>{const[c,o]=ZC(t);(s===c||s===t)&&a.shiftKey&&(o.focus(),a.preventDefault()),s===o&&!a.shiftKey&&(c.focus(),a.preventDefault())}),n&&X1(t,"click").pipe(R1(r),w5(i),we(a=>a[1])).subscribe(a=>a.focus())})})(this._ngZone,f.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(f.location.nativeElement)}})}_restoreScrollBar(){const n=this._scrollBarRestoreFn;n&&(this._scrollBarRestoreFn=null,n())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(n,i,a){const s=a.container instanceof HTMLElement?a.container:N4(a.container)?this._document.querySelector(a.container):this._document.body,c=this._rendererFactory.createRenderer(null,null);if(!s)throw new Error(`The specified modal container "${a.container||"body"}" was not found in the DOM.`);this._hideScrollBar();const o=new dM,l=(n=a.injector||n).get(k2,null)||this._environmentInjector,f=this._getContentRef(n,l,i,o,a);let d=!1!==a.backdrop?this._attachBackdrop(s):void 0,p=this._attachWindowComponent(s,f.nodes),g=new FY(p,f,d,a.beforeDismiss);return this._registerModalRef(g),this._registerWindowCmpt(p),g.hidden.pipe(e2(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(c.removeClass(this._document.body,"modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),o.close=w=>{g.close(w)},o.dismiss=w=>{g.dismiss(w)},o.update=w=>{g.update(w)},g.update(a),1===this._modalRefs.length&&c.addClass(this._document.body,"modal-open"),d&&d.instance&&d.changeDetectorRef.detectChanges(),p.changeDetectorRef.detectChanges(),g}get activeInstances(){return this._activeInstances}dismissAll(n){this._modalRefs.forEach(i=>i.dismiss(n))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(n){let i=Vl(RY,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(i.hostView),n.appendChild(i.location.nativeElement),i}_attachWindowComponent(n,i){let a=Vl(BY,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:i});return this._applicationRef.attachView(a.hostView),n.appendChild(a.location.nativeElement),a}_getContentRef(n,i,a,s,c){return a?a instanceof c1?this._createFromTemplateRef(a,s):Vn(a)?this._createFromString(a):this._createFromComponent(n,i,a,s,c):new R4([])}_createFromTemplateRef(n,i){const s=n.createEmbeddedView({$implicit:i,close(c){i.close(c)},dismiss(c){i.dismiss(c)}});return this._applicationRef.attachView(s),new R4([s.rootNodes],s)}_createFromString(n){const i=this._document.createTextNode(`${n}`);return new R4([[i]])}_createFromComponent(n,i,a,s,c){const l=Vl(a,{environmentInjector:i,elementInjector:B1.create({providers:[{provide:dM,useValue:s}],parent:n})}),f=l.location.nativeElement;return c.scrollable&&f.classList.add("component-host-scrollable"),this._applicationRef.attachView(l.hostView),new R4([[f]],l.hostView,l)}_setAriaHidden(n){const i=n.parentElement;i&&n!==this._document.body&&(Array.from(i.children).forEach(a=>{a!==n&&"SCRIPT"!==a.nodeName&&(this._ariaHiddenValues.set(a,a.getAttribute("aria-hidden")),a.setAttribute("aria-hidden","true"))}),this._setAriaHidden(i))}_revertAriaHidden(){this._ariaHiddenValues.forEach((n,i)=>{n?i.setAttribute("aria-hidden",n):i.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(n){const i=()=>{const a=this._modalRefs.indexOf(n);a>-1&&(this._modalRefs.splice(a,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(n),this._activeInstances.emit(this._modalRefs),n.result.then(i,i)}_registerWindowCmpt(n){this._windowCmpts.push(n),this._activeWindowCmptHasChanged.next(),n.onDestroy(()=>{const i=this._windowCmpts.indexOf(n);i>-1&&(this._windowCmpts.splice(i,1),this._activeWindowCmptHasChanged.next())})}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(en),Y(B1),Y(k2),Y(b1),Y(UY),Y(c8),Y(ye))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),GY=(()=>{var e;class t{constructor(n){this._ngbConfig=n,this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(n){this._animation=n}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(A4))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),hM=(()=>{var e;class t{constructor(n,i,a){this._injector=n,this._modalStack=i,this._config=a}open(n,i={}){const a={...this._config,animation:this._config.animation,...i};return this._modalStack.open(this._injector,n,a)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(n){this._modalStack.dismissAll(n)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(B1),Y(jY),Y(GY))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),pM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({providers:[hM]}),t})(),vM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})(),VM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})();class XY{constructor(t,r){this.open=t,this.close=r,r||(this.close=t)}isManual(){return"manual"===this.open||"manual"===this.close}}const eZ={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},zM=e=>e>0?fC(e):t=>t;function DM(e,t,r,n,i,a,s=0,c=0){const o=function tZ(e,t=eZ){const r=(e||"").trim();if(0===r.length)return[];const n=r.split(/\s+/).map(a=>a.split(":")).map(a=>{let s=t[a[0]]||a;return new XY(s[0],s[1])}),i=n.filter(a=>a.isManual());if(i.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===i.length&&n.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return n}(r);if(1===o.length&&o[0].isManual())return()=>{};const l=function nZ(e,t,r,n){return new We(i=>{const a=[],s=()=>i.next(!0),c=()=>i.next(!1),o=()=>i.next(!n());return r.forEach(l=>{l.open===l.close?a.push(e.listen(t,l.open,o)):a.push(e.listen(t,l.open,s),e.listen(t,l.close,c))}),()=>{a.forEach(l=>l())}})}(e,t,o,n).pipe(function rZ(e,t,r){return n=>{let i=null;const a=n.pipe(we(o=>({open:o})),N1(o=>{const l=r();return l===o.open||i&&i.open!==l?(i&&i.open!==o.open&&(i=null),!1):(i=o,!0)}),A6());return N6(a.pipe(N1(o=>o.open),zM(e)),a.pipe(N1(o=>!o.open),zM(t))).pipe(N1(o=>o===i&&(i=null,o.open!==r())),we(o=>o.open))}}(s,c,n)).subscribe(f=>f?i():a());return()=>l.unsubscribe()}let iZ=(()=>{var e;class t{constructor(n){this._ngbConfig=n,this.autoClose=!0,this.placement="auto",this.popperOptions=i=>i,this.triggers="click",this.disablePopover=!1,this.openDelay=0,this.closeDelay=0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(n){this._animation=n}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(A4))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),aZ=0,sZ=(()=>{var e;class t{isTitleTemplate(){return this.title instanceof c1}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275cmp=se({type:e,selectors:[["ngb-popover-window"]],hostAttrs:["role","tooltip",2,"position","absolute"],hostVars:5,hostBindings:function(n,i){2&n&&(w2("id",i.id),_n("popover"+(i.popoverClass?" "+i.popoverClass:"")),Se("fade",i.animation))},inputs:{animation:"animation",title:"title",id:"id",popoverClass:"popoverClass",context:"context"},standalone:!0,features:[z2],ngContentSelectors:Xc,decls:4,vars:1,consts:[["data-popper-arrow","",1,"popover-arrow"],["class","popover-header",4,"ngIf"],[1,"popover-body"],[1,"popover-header"],["simpleTitle",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,i){1&n&&(q3(),k(0,"div",0),O(1,MK,4,2,"h3",1),m(2,"div",2),K3(3),v()),2&n&&(C(1),M("ngIf",i.title))},dependencies:[H4,H1],encapsulation:2,changeDetection:0}),t})(),cZ=(()=>{var e;class t{_isDisabled(){return!(!this.disablePopover&&(this.ngbPopover||this.popoverTitle))}constructor(n,i,a,s,c,o,l,f,d){this._elementRef=n,this._renderer=i,this._ngZone=o,this._document=l,this._changeDetector=f,this.shown=new ee,this.hidden=new ee,this._ngbPopoverWindowId="ngb-popover-"+aZ++,this._windowRef=null,this.animation=c.animation,this.autoClose=c.autoClose,this.placement=c.placement,this.popperOptions=c.popperOptions,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._positioning=lo(),this._popupService=new uM(sZ,a,s,i,this._ngZone,d)}open(n){if(!this._windowRef&&!this._isDisabled()){const{windowRef:i,transition$:a}=this._popupService.open(this.ngbPopover,n??this.popoverContext,this.animation);this._windowRef=i,this._windowRef.setInput("animation",this.animation),this._windowRef.setInput("title",this.popoverTitle),this._windowRef.setInput("context",n??this.popoverContext),this._windowRef.setInput("popoverClass",this.popoverClass),this._windowRef.setInput("id",this._ngbPopoverWindowId),this._renderer.setAttribute(this._getPositionTargetElement(),"aria-describedby",this._ngbPopoverWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._getPositionTargetElement(),targetElement:this._windowRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,baseClass:"bs-popover",updatePopperOptions:s=>this.popperOptions(function K5(e){return t=>(t.modifiers.push(iq,{name:"offset",options:{offset:()=>e}}),t)}([0,8])(s))}),Promise.resolve().then(()=>{this._positioning.update(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update())})}),oo(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),a.subscribe(()=>this.shown.emit())}}close(n=this.animation){this._windowRef&&(this._renderer.removeAttribute(this._getPositionTargetElement(),"aria-describedby"),this._popupService.close(n).subscribe(()=>{this._windowRef=null,this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=DM(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({ngbPopover:n,popoverTitle:i,disablePopover:a,popoverClass:s}){s&&this.isOpen()&&(this._windowRef.instance.popoverClass=s.currentValue),(n||i||a)&&this._isDisabled()&&this.close()}ngOnDestroy(){this.close(!1),this._unregisterListenersFn?.()}_getPositionTargetElement(){return(Vn(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget)||this._elementRef.nativeElement}}return(e=t).\u0275fac=function(n){return new(n||e)(H(Ne),H(o2),H(B1),H(U2),H(iZ),H(ye),H(b1),H(et),H(en))},e.\u0275dir=W({type:e,selectors:[["","ngbPopover",""]],inputs:{animation:"animation",autoClose:"autoClose",ngbPopover:"ngbPopover",popoverTitle:"popoverTitle",placement:"placement",popperOptions:"popperOptions",triggers:"triggers",positionTarget:"positionTarget",container:"container",disablePopover:"disablePopover",popoverClass:"popoverClass",popoverContext:"popoverContext",openDelay:"openDelay",closeDelay:"closeDelay"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbPopover"],standalone:!0,features:[_1]}),t})(),SM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})(),LM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})(),xM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})(),NM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})(),AM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})(),EM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})(),dZ=(()=>{var e;class t{constructor(n){this._ngbConfig=n,this.autoClose=!0,this.placement="auto",this.popperOptions=i=>i,this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(n){this._animation=n}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(A4))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),hZ=0,pZ=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275cmp=se({type:e,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip",2,"position","absolute"],hostVars:5,hostBindings:function(n,i){2&n&&(w2("id",i.id),_n("tooltip"+(i.tooltipClass?" "+i.tooltipClass:"")),Se("fade",i.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},standalone:!0,features:[z2],ngContentSelectors:Xc,decls:3,vars:0,consts:[["data-popper-arrow","",1,"tooltip-arrow"],[1,"tooltip-inner"]],template:function(n,i){1&n&&(q3(),k(0,"div",0),m(1,"div",1),K3(2),v())},encapsulation:2,changeDetection:0}),t})(),TM=(()=>{var e;class t{constructor(n,i,a,s,c,o,l,f,d){this._elementRef=n,this._renderer=i,this._ngZone=o,this._document=l,this._changeDetector=f,this.shown=new ee,this.hidden=new ee,this._ngbTooltipWindowId="ngb-tooltip-"+hZ++,this._windowRef=null,this.animation=c.animation,this.autoClose=c.autoClose,this.placement=c.placement,this.popperOptions=c.popperOptions,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 uM(pZ,a,s,i,this._ngZone,d),this._positioning=lo()}set ngbTooltip(n){this._ngbTooltip=n,!n&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(n){if(!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){const{windowRef:i,transition$:a}=this._popupService.open(this._ngbTooltip,n??this.tooltipContext,this.animation);this._windowRef=i,this._windowRef.setInput("animation",this.animation),this._windowRef.setInput("tooltipClass",this.tooltipClass),this._windowRef.setInput("id",this._ngbTooltipWindowId),this._renderer.setAttribute(this._getPositionTargetElement(),"aria-describedby",this._ngbTooltipWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._getPositionTargetElement(),targetElement:this._windowRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,baseClass:"bs-tooltip",updatePopperOptions:s=>this.popperOptions(s)}),Promise.resolve().then(()=>{this._positioning.update(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update())})}),oo(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),a.subscribe(()=>this.shown.emit())}}close(n=this.animation){null!=this._windowRef&&(this._renderer.removeAttribute(this._getPositionTargetElement(),"aria-describedby"),this._popupService.close(n).subscribe(()=>{this._windowRef=null,this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=DM(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({tooltipClass:n}){n&&this.isOpen()&&(this._windowRef.instance.tooltipClass=n.currentValue)}ngOnDestroy(){this.close(!1),this._unregisterListenersFn?.()}_getPositionTargetElement(){return(Vn(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget)||this._elementRef.nativeElement}}return(e=t).\u0275fac=function(n){return new(n||e)(H(Ne),H(o2),H(B1),H(U2),H(dZ),H(ye),H(b1),H(et),H(en))},e.\u0275dir=W({type:e,selectors:[["","ngbTooltip",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",popperOptions:"popperOptions",triggers:"triggers",positionTarget:"positionTarget",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",tooltipContext:"tooltipContext",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],standalone:!0,features:[_1]}),t})(),IM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})();new te("live announcer delay",{providedIn:"root",factory:function mZ(){return 100}});let OM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})(),RM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})();const vZ=[RC,PC,UC,jC,cM,fM,pM,vM,RM,VM,SM,LM,xM,NM,AM,EM,IM,OM];let _Z=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({imports:[vZ,RC,PC,UC,jC,cM,fM,pM,vM,RM,VM,SM,LM,xM,NM,AM,EM,IM,OM]}),t})();function kM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function X(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?kM(Object(r),!0).forEach(function(n){Y1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kM(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vo(e){return(vo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function PM(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Y1(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function X5(e,t){return function HZ(e){if(Array.isArray(e))return e}(e)||function VZ(e,t){var r=null==e?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var s,c,n=[],i=!0,a=!1;try{for(r=r.call(e);!(i=(s=r.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(o){a=!0,c=o}finally{try{!i&&null!=r.return&&r.return()}finally{if(a)throw c}}return n}}(e,t)||FM(e,t)||function DZ(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function aa(e){return function bZ(e){if(Array.isArray(e))return e7(e)}(e)||function wZ(e){if(typeof Symbol<"u"&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||FM(e)||function zZ(){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 FM(e,t){if(e){if("string"==typeof e)return e7(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return e7(e,t)}}function e7(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var BM=function(){},t7={},UM={},jM=null,GM={mark:BM,measure:BM};try{typeof window<"u"&&(t7=window),typeof document<"u"&&(UM=document),typeof MutationObserver<"u"&&(jM=MutationObserver),typeof performance<"u"&&(GM=performance)}catch{}var Mo,yo,bo,Ho,wo,$M=(t7.navigator||{}).userAgent,WM=void 0===$M?"":$M,Jn=t7,o1=UM,qM=jM,Co=GM,zn=!!o1.documentElement&&!!o1.head&&"function"==typeof o1.addEventListener&&"function"==typeof o1.createElement,KM=~WM.indexOf("MSIE")||~WM.indexOf("Trident/"),Dn="___FONT_AWESOME___",YM="fa",ZM="svg-inline--fa",k4="data-fa-i2svg",r7="data-fa-pseudo-element",LZ="data-fa-pseudo-element-pending",i7="data-prefix",a7="data-icon",QM="fontawesome-i2svg",xZ="async",NZ=["HTML","HEAD","STYLE","SCRIPT"],JM=function(){try{return!0}catch{return!1}}(),l1="classic",A1="sharp",s7=[l1,A1];function sa(e){return new Proxy(e,{get:function(r,n){return n in r?r[n]:r[l1]}})}var ca=sa((Y1(Mo={},l1,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit"}),Y1(Mo,A1,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light"}),Mo)),oa=sa((Y1(yo={},l1,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),Y1(yo,A1,{solid:"fass",regular:"fasr",light:"fasl"}),yo)),la=sa((Y1(bo={},l1,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),Y1(bo,A1,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light"}),bo)),AZ=sa((Y1(Ho={},l1,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),Y1(Ho,A1,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl"}),Ho)),EZ=/fa(s|r|l|t|d|b|k|ss|sr|sl)?[\-\ ]/,XM="fa-layers-text",TZ=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,IZ=sa((Y1(wo={},l1,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),Y1(wo,A1,{900:"fass",400:"fasr",300:"fasl"}),wo)),ey=[1,2,3,4,5,6,7,8,9,10],OZ=ey.concat([11,12,13,14,15,16,17,18,19,20]),RZ=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],P4={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},fa=new Set;Object.keys(oa[l1]).map(fa.add.bind(fa)),Object.keys(oa[A1]).map(fa.add.bind(fa));var kZ=[].concat(s7,aa(fa),["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",P4.GROUP,P4.SWAP_OPACITY,P4.PRIMARY,P4.SECONDARY]).concat(ey.map(function(e){return"".concat(e,"x")})).concat(OZ.map(function(e){return"w-".concat(e)})),ua=Jn.FontAwesomeConfig||{};o1&&"function"==typeof o1.querySelector&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(function(e){var t=X5(e,2),n=t[1],i=function FZ(e){return""===e||"false"!==e&&("true"===e||e)}(function PZ(e){var t=o1.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(t[0]));null!=i&&(ua[n]=i)});var ty={styleDefault:"solid",familyDefault:"classic",cssPrefix:YM,replacementClass:ZM,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};ua.familyPrefix&&(ua.cssPrefix=ua.familyPrefix);var pr=X(X({},ty),ua);pr.autoReplaceSvg||(pr.observeMutations=!1);var ne={};Object.keys(ty).forEach(function(e){Object.defineProperty(ne,e,{enumerable:!0,set:function(r){pr[e]=r,da.forEach(function(n){return n(ne)})},get:function(){return pr[e]}})}),Object.defineProperty(ne,"familyPrefix",{enumerable:!0,set:function(t){pr.cssPrefix=t,da.forEach(function(r){return r(ne)})},get:function(){return pr.cssPrefix}}),Jn.FontAwesomeConfig=ne;var da=[],rn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1},GZ="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function ha(){for(var e=12,t="";e-- >0;)t+=GZ[62*Math.random()|0];return t}function mr(e){for(var t=[],r=(e||[]).length>>>0;r--;)t[r]=e[r];return t}function c7(e){return e.classList?mr(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function ny(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Vo(e){return Object.keys(e||{}).reduce(function(t,r){return t+"".concat(r,": ").concat(e[r].trim(),";")},"")}function o7(e){return e.size!==rn.size||e.x!==rn.x||e.y!==rn.y||e.rotate!==rn.rotate||e.flipX||e.flipY}var KZ=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';function ry(){var e=YM,t=ZM,r=ne.cssPrefix,n=ne.replacementClass,i=KZ;if(r!==e||n!==t){var a=new RegExp("\\.".concat(e,"\\-"),"g"),s=new RegExp("\\--".concat(e,"\\-"),"g"),c=new RegExp("\\.".concat(t),"g");i=i.replace(a,".".concat(r,"-")).replace(s,"--".concat(r,"-")).replace(c,".".concat(n))}return i}var iy=!1;function l7(){ne.autoAddCss&&!iy&&(function jZ(e){if(e&&zn){var t=o1.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var r=o1.head.childNodes,n=null,i=r.length-1;i>-1;i--){var a=r[i],s=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(n=a)}o1.head.insertBefore(t,n)}}(ry()),iy=!0)}var YZ={mixout:function(){return{dom:{css:ry,insertCss:l7}}},hooks:function(){return{beforeDOMElementCreation:function(){l7()},beforeI2svg:function(){l7()}}}},Sn=Jn||{};Sn[Dn]||(Sn[Dn]={}),Sn[Dn].styles||(Sn[Dn].styles={}),Sn[Dn].hooks||(Sn[Dn].hooks={}),Sn[Dn].shims||(Sn[Dn].shims=[]);var Rt=Sn[Dn],ay=[],zo=!1;function pa(e){var t=e.tag,r=e.attributes,n=void 0===r?{}:r,i=e.children,a=void 0===i?[]:i;return"string"==typeof e?ny(e):"<".concat(t," ").concat(function $Z(e){return Object.keys(e||{}).reduce(function(t,r){return t+"".concat(r,'="').concat(ny(e[r]),'" ')},"").trim()}(n),">").concat(a.map(pa).join(""),"</").concat(t,">")}function sy(e,t,r){if(e&&e[t]&&e[t][r])return{prefix:t,iconName:r,icon:e[t][r]}}zn&&((zo=(o1.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(o1.readyState))||o1.addEventListener("DOMContentLoaded",function e(){o1.removeEventListener("DOMContentLoaded",e),zo=1,ay.map(function(t){return t()})}));var f7=function(t,r,n,i){var o,l,f,a=Object.keys(t),s=a.length,c=void 0!==i?function(t,r){return function(n,i,a,s){return t.call(r,n,i,a,s)}}(r,i):r;for(void 0===n?(o=1,f=t[a[0]]):(o=0,f=n);o<s;o++)f=c(f,t[l=a[o]],l,t);return f};function u7(e){var t=function XZ(e){for(var t=[],r=0,n=e.length;r<n;){var i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){var a=e.charCodeAt(r++);56320==(64512&a)?t.push(((1023&i)<<10)+(1023&a)+65536):(t.push(i),r--)}else t.push(i)}return t}(e);return 1===t.length?t[0].toString(16):null}function cy(e){return Object.keys(e).reduce(function(t,r){var n=e[r];return n.icon?t[n.iconName]=n.icon:t[r]=n,t},{})}function d7(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,i=void 0!==n&&n,a=cy(t);"function"!=typeof Rt.hooks.addPack||i?Rt.styles[e]=X(X({},Rt.styles[e]||{}),a):Rt.hooks.addPack(e,cy(t)),"fas"===e&&d7("fa",t)}var Do,So,Lo,gr=Rt.styles,tQ=Rt.shims,nQ=(Y1(Do={},l1,Object.values(la[l1])),Y1(Do,A1,Object.values(la[A1])),Do),h7=null,oy={},ly={},fy={},uy={},dy={},rQ=(Y1(So={},l1,Object.keys(ca[l1])),Y1(So,A1,Object.keys(ca[A1])),So);var hy=function(){var t=function(a){return f7(gr,function(s,c,o){return s[o]=f7(c,a,{}),s},{})};oy=t(function(i,a,s){return a[3]&&(i[a[3]]=s),a[2]&&a[2].filter(function(o){return"number"==typeof o}).forEach(function(o){i[o.toString(16)]=s}),i}),ly=t(function(i,a,s){return i[s]=s,a[2]&&a[2].filter(function(o){return"string"==typeof o}).forEach(function(o){i[o]=s}),i}),dy=t(function(i,a,s){var c=a[2];return i[s]=s,c.forEach(function(o){i[o]=s}),i});var r="far"in gr||ne.autoFetchSvg,n=f7(tQ,function(i,a){var s=a[0],c=a[1],o=a[2];return"far"===c&&!r&&(c="fas"),"string"==typeof s&&(i.names[s]={prefix:c,iconName:o}),"number"==typeof s&&(i.unicodes[s.toString(16)]={prefix:c,iconName:o}),i},{names:{},unicodes:{}});fy=n.names,uy=n.unicodes,h7=xo(ne.styleDefault,{family:ne.familyDefault})};function p7(e,t){return(oy[e]||{})[t]}function F4(e,t){return(dy[e]||{})[t]}function py(e){return fy[e]||{prefix:null,iconName:null}}function e4(){return h7}(function UZ(e){da.push(e)})(function(e){h7=xo(e.styleDefault,{family:ne.familyDefault})}),hy();var m7=function(){return{prefix:null,iconName:null,rest:[]}};function xo(e){var r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).family,n=void 0===r?l1:r;return oa[n][e]||oa[n][ca[n][e]]||(e in Rt.styles?e:null)||null}var my=(Y1(Lo={},l1,Object.keys(la[l1])),Y1(Lo,A1,Object.keys(la[A1])),Lo);function No(e){var t,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).skipLookups,i=void 0!==n&&n,a=(Y1(t={},l1,"".concat(ne.cssPrefix,"-").concat(l1)),Y1(t,A1,"".concat(ne.cssPrefix,"-").concat(A1)),t),s=null,c=l1;(e.includes(a[l1])||e.some(function(l){return my[l1].includes(l)}))&&(c=l1),(e.includes(a[A1])||e.some(function(l){return my[A1].includes(l)}))&&(c=A1);var o=e.reduce(function(l,f){var d=function aQ(e,t){var r=t.split("-"),n=r[0],i=r.slice(1).join("-");return n!==e||""===i||function iQ(e){return~kZ.indexOf(e)}(i)?null:i}(ne.cssPrefix,f);if(gr[f]?(f=nQ[c].includes(f)?AZ[c][f]:f,s=f,l.prefix=f):rQ[c].indexOf(f)>-1?(s=f,l.prefix=xo(f,{family:c})):d?l.iconName=d:f!==ne.replacementClass&&f!==a[l1]&&f!==a[A1]&&l.rest.push(f),!i&&l.prefix&&l.iconName){var p="fa"===s?py(l.iconName):{},g=F4(l.prefix,l.iconName);p.prefix&&(s=null),l.iconName=p.iconName||g||l.iconName,l.prefix=p.prefix||l.prefix,"far"===l.prefix&&!gr.far&&gr.fas&&!ne.autoFetchSvg&&(l.prefix="fas")}return l},m7());return(e.includes("fa-brands")||e.includes("fab"))&&(o.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(o.prefix="fad"),!o.prefix&&c===A1&&(gr.fass||ne.autoFetchSvg)&&(o.prefix="fass",o.iconName=F4(o.prefix,o.iconName)||o.iconName),("fa"===o.prefix||"fa"===s)&&(o.prefix=e4()||"fas"),o}var oQ=function(){function e(){(function CZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.definitions={}}return function MZ(e,t,r){t&&PM(e.prototype,t),r&&PM(e,r),Object.defineProperty(e,"prototype",{writable:!1})}(e,[{key:"add",value:function(){for(var r=this,n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var s=i.reduce(this._pullDefinitions,{});Object.keys(s).forEach(function(c){r.definitions[c]=X(X({},r.definitions[c]||{}),s[c]),d7(c,s[c]);var o=la[l1][c];o&&d7(o,s[c]),hy()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(r,n){var i=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(i).map(function(a){var s=i[a],c=s.prefix,o=s.iconName,l=s.icon,f=l[2];r[c]||(r[c]={}),f.length>0&&f.forEach(function(d){"string"==typeof d&&(r[c][d]=l)}),r[c][o]=l}),r}}]),e}(),gy=[],vr={},_r={},lQ=Object.keys(_r);function g7(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return(vr[e]||[]).forEach(function(s){t=s.apply(null,[t].concat(n))}),t}function B4(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];(vr[e]||[]).forEach(function(a){a.apply(null,r)})}function Ln(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return _r[e]?_r[e].apply(null,t):void 0}function v7(e){"fa"===e.prefix&&(e.prefix="fas");var t=e.iconName,r=e.prefix||e4();if(t)return t=F4(r,t)||t,sy(vy.definitions,r,t)||sy(Rt.styles,r,t)}var vy=new oQ,dQ={i2svg:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return zn?(B4("beforeI2svg",t),Ln("pseudoElements2svg",t),Ln("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.autoReplaceSvgRoot;!1===ne.autoReplaceSvg&&(ne.autoReplaceSvg=!0),ne.observeMutations=!0,function QZ(e){zn&&(zo?setTimeout(e,0):ay.push(e))}(function(){pQ({autoReplaceSvgRoot:r}),B4("watch",t)})}},at={noAuto:function(){ne.autoReplaceSvg=!1,ne.observeMutations=!1,B4("noAuto")},config:ne,dom:dQ,parse:{icon:function(t){if(null===t)return null;if("object"===vo(t)&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:F4(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&2===t.length){var r=0===t[1].indexOf("fa-")?t[1].slice(3):t[1],n=xo(t[0]);return{prefix:n,iconName:F4(n,r)||r}}if("string"==typeof t&&(t.indexOf("".concat(ne.cssPrefix,"-"))>-1||t.match(EZ))){var i=No(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||e4(),iconName:F4(i.prefix,i.iconName)||i.iconName}}if("string"==typeof t){var a=e4();return{prefix:a,iconName:F4(a,t)||t}}}},library:vy,findIconDefinition:v7,toHtml:pa},pQ=function(){var r=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).autoReplaceSvgRoot,n=void 0===r?o1:r;(Object.keys(Rt.styles).length>0||ne.autoFetchSvg)&&zn&&ne.autoReplaceSvg&&at.dom.i2svg({node:n})};function Ao(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(n){return pa(n)})}}),Object.defineProperty(e,"node",{get:function(){if(zn){var n=o1.createElement("div");return n.innerHTML=e.html,n.children}}}),e}function _7(e){var t=e.icons,r=t.main,n=t.mask,i=e.prefix,a=e.iconName,s=e.transform,c=e.symbol,o=e.title,l=e.maskId,f=e.titleId,d=e.extra,p=e.watchable,g=void 0!==p&&p,w=n.found?n:r,z=w.width,L=w.height,T="fak"===i,S=[ne.replacementClass,a?"".concat(ne.cssPrefix,"-").concat(a):""].filter(function(ke){return-1===d.classes.indexOf(ke)}).filter(function(ke){return""!==ke||!!ke}).concat(d.classes).join(" "),B={children:[],attributes:X(X({},d.attributes),{},{"data-prefix":i,"data-icon":a,class:S,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(z," ").concat(L)})},U=T&&!~d.classes.indexOf("fa-fw")?{width:"".concat(z/L*16*.0625,"em")}:{};g&&(B.attributes[k4]=""),o&&(B.children.push({tag:"title",attributes:{id:B.attributes["aria-labelledby"]||"title-".concat(f||ha())},children:[o]}),delete B.attributes.title);var q=X(X({},B),{},{prefix:i,iconName:a,main:r,mask:n,maskId:l,transform:s,symbol:c,styles:X(X({},U),d.styles)}),re=n.found&&r.found?Ln("generateAbstractMask",q)||{children:[],attributes:{}}:Ln("generateAbstractIcon",q)||{children:[],attributes:{}},He=re.attributes;return q.children=re.children,q.attributes=He,c?function gQ(e){var r=e.iconName,n=e.children,i=e.attributes,a=e.symbol,s=!0===a?"".concat(e.prefix,"-").concat(ne.cssPrefix,"-").concat(r):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:X(X({},i),{},{id:s}),children:n}]}]}(q):function mQ(e){var t=e.children,r=e.main,n=e.mask,i=e.attributes,a=e.styles,s=e.transform;if(o7(s)&&r.found&&!n.found){var l={x:r.width/r.height/2,y:.5};i.style=Vo(X(X({},a),{},{"transform-origin":"".concat(l.x+s.x/16,"em ").concat(l.y+s.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}(q)}function _y(e){var t=e.content,r=e.width,n=e.height,i=e.transform,a=e.title,s=e.extra,c=e.watchable,o=void 0!==c&&c,l=X(X(X({},s.attributes),a?{title:a}:{}),{},{class:s.classes.join(" ")});o&&(l[k4]="");var f=X({},s.styles);o7(i)&&(f.transform=function qZ(e){var t=e.transform,r=e.width,i=e.height,a=void 0===i?16:i,s=e.startCentered,c=void 0!==s&&s,o="";return o+=c&&KM?"translate(".concat(t.x/16-(void 0===r?16:r)/2,"em, ").concat(t.y/16-a/2,"em) "):c?"translate(calc(-50% + ".concat(t.x/16,"em), calc(-50% + ").concat(t.y/16,"em)) "):"translate(".concat(t.x/16,"em, ").concat(t.y/16,"em) "),(o+="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "))+"rotate(".concat(t.rotate,"deg) ")}({transform:i,startCentered:!0,width:r,height:n}),f["-webkit-transform"]=f.transform);var d=Vo(f);d.length>0&&(l.style=d);var p=[];return p.push({tag:"span",attributes:l,children:[t]}),a&&p.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),p}var C7=Rt.styles;function M7(e){var t=e[0],r=e[1],a=X5(e.slice(4),1)[0];return{found:!0,width:t,height:r,icon:Array.isArray(a)?{tag:"g",attributes:{class:"".concat(ne.cssPrefix,"-").concat(P4.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ne.cssPrefix,"-").concat(P4.SECONDARY),fill:"currentColor",d:a[0]}},{tag:"path",attributes:{class:"".concat(ne.cssPrefix,"-").concat(P4.PRIMARY),fill:"currentColor",d:a[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:a}}}}var _Q={found:!1,width:512,height:512};function y7(e,t){var r=t;return"fa"===t&&null!==ne.styleDefault&&(t=e4()),new Promise(function(n,i){if(Ln("missingIconAbstract"),"fa"===r){var s=py(e)||{};e=s.iconName||e,t=s.prefix||t}if(e&&t&&C7[t]&&C7[t][e])return n(M7(C7[t][e]));(function CQ(e,t){!JM&&!ne.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))})(e,t),n(X(X({},_Q),{},{icon:ne.showMissingIcons&&e&&Ln("missingIconAbstract")||{}}))})}var Cy=function(){},b7=ne.measurePerformance&&Co&&Co.mark&&Co.measure?Co:{mark:Cy,measure:Cy},ma='FA "6.4.2"',My=function(t){b7.mark("".concat(ma," ").concat(t," ends")),b7.measure("".concat(ma," ").concat(t),"".concat(ma," ").concat(t," begins"),"".concat(ma," ").concat(t," ends"))},H7={begin:function(t){return b7.mark("".concat(ma," ").concat(t," begins")),function(){return My(t)}},end:My},Eo=function(){};function yy(e){return"string"==typeof(e.getAttribute?e.getAttribute(k4):null)}function wQ(e){return o1.createElementNS("http://www.w3.org/2000/svg",e)}function VQ(e){return o1.createElement(e)}function by(e){var r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).ceFn,n=void 0===r?"svg"===e.tag?wQ:VQ:r;if("string"==typeof e)return o1.createTextNode(e);var i=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(s){i.setAttribute(s,e.attributes[s])}),(e.children||[]).forEach(function(s){i.appendChild(by(s,{ceFn:n}))}),i}var To={replace:function(t){var r=t[0];if(r.parentNode)if(t[1].forEach(function(i){r.parentNode.insertBefore(by(i),r)}),null===r.getAttribute(k4)&&ne.keepOriginalSource){var n=o1.createComment(function zQ(e){var t=" ".concat(e.outerHTML," ");return"".concat(t,"Font Awesome fontawesome.com ")}(r));r.parentNode.replaceChild(n,r)}else r.remove()},nest:function(t){var r=t[0],n=t[1];if(~c7(r).indexOf(ne.replacementClass))return To.replace(t);var i=new RegExp("".concat(ne.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var a=n[0].attributes.class.split(" ").reduce(function(c,o){return o===ne.replacementClass||o.match(i)?c.toSvg.push(o):c.toNode.push(o),c},{toNode:[],toSvg:[]});n[0].attributes.class=a.toSvg.join(" "),0===a.toNode.length?r.removeAttribute("class"):r.setAttribute("class",a.toNode.join(" "))}var s=n.map(function(c){return pa(c)}).join("\n");r.setAttribute(k4,""),r.innerHTML=s}};function Hy(e){e()}function wy(e,t){var r="function"==typeof t?t:Eo;if(0===e.length)r();else{var n=Hy;ne.mutateApproach===xZ&&(n=Jn.requestAnimationFrame||Hy),n(function(){var i=function HQ(){return!0===ne.autoReplaceSvg?To.replace:To[ne.autoReplaceSvg]||To.replace}(),a=H7.begin("mutate");e.map(i),a(),r()})}}var w7=!1;function Vy(){w7=!0}function V7(){w7=!1}var Io=null;function zy(e){if(qM&&ne.observeMutations){var t=e.treeCallback,r=void 0===t?Eo:t,n=e.nodeCallback,i=void 0===n?Eo:n,a=e.pseudoElementsCallback,s=void 0===a?Eo:a,c=e.observeMutationsRoot,o=void 0===c?o1:c;Io=new qM(function(l){if(!w7){var f=e4();mr(l).forEach(function(d){if("childList"===d.type&&d.addedNodes.length>0&&!yy(d.addedNodes[0])&&(ne.searchPseudoElements&&s(d.target),r(d.target)),"attributes"===d.type&&d.target.parentNode&&ne.searchPseudoElements&&s(d.target.parentNode),"attributes"===d.type&&yy(d.target)&&~RZ.indexOf(d.attributeName))if("class"===d.attributeName&&function yQ(e){var t=e.getAttribute?e.getAttribute(i7):null,r=e.getAttribute?e.getAttribute(a7):null;return t&&r}(d.target)){var p=No(c7(d.target)),w=p.iconName;d.target.setAttribute(i7,p.prefix||f),w&&d.target.setAttribute(a7,w)}else(function bQ(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ne.replacementClass)})(d.target)&&i(d.target)})}}),zn&&Io.observe(o,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Dy(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},r=function LQ(e){var t=e.getAttribute("data-prefix"),r=e.getAttribute("data-icon"),n=void 0!==e.innerText?e.innerText.trim():"",i=No(c7(e));return i.prefix||(i.prefix=e4()),t&&r&&(i.prefix=t,i.iconName=r),i.iconName&&i.prefix||(i.prefix&&n.length>0&&(i.iconName=function sQ(e,t){return(ly[e]||{})[t]}(i.prefix,e.innerText)||p7(i.prefix,u7(e.innerText))),!i.iconName&&ne.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}(e),n=r.iconName,i=r.prefix,a=r.rest,s=function xQ(e){var t=mr(e.attributes).reduce(function(i,a){return"class"!==i.name&&"style"!==i.name&&(i[a.name]=a.value),i},{}),r=e.getAttribute("title"),n=e.getAttribute("data-fa-title-id");return ne.autoA11y&&(r?t["aria-labelledby"]="".concat(ne.replacementClass,"-title-").concat(n||ha()):(t["aria-hidden"]="true",t.focusable="false")),t}(e),c=g7("parseNodeAttributes",{},e),o=t.styleParser?function SQ(e){var t=e.getAttribute("style"),r=[];return t&&(r=t.split(";").reduce(function(n,i){var a=i.split(":"),s=a[0],c=a.slice(1);return s&&c.length>0&&(n[s]=c.join(":").trim()),n},{})),r}(e):[];return X({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:rn,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:o,attributes:s}},c)}var AQ=Rt.styles;function Sy(e){var t="nest"===ne.autoReplaceSvg?Dy(e,{styleParser:!1}):Dy(e);return~t.extra.classes.indexOf(XM)?Ln("generateLayersText",e,t):Ln("generateSvgReplacementMutation",e,t)}var t4=new Set;function Ly(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!zn)return Promise.resolve();var r=o1.documentElement.classList,n=function(d){return r.add("".concat(QM,"-").concat(d))},i=function(d){return r.remove("".concat(QM,"-").concat(d))},a=ne.autoFetchSvg?t4:s7.map(function(f){return"fa-".concat(f)}).concat(Object.keys(AQ));a.includes("fa")||a.push("fa");var s=[".".concat(XM,":not([").concat(k4,"])")].concat(a.map(function(f){return".".concat(f,":not([").concat(k4,"])")})).join(", ");if(0===s.length)return Promise.resolve();var c=[];try{c=mr(e.querySelectorAll(s))}catch{}if(!(c.length>0))return Promise.resolve();n("pending"),i("complete");var o=H7.begin("onTree"),l=c.reduce(function(f,d){try{var p=Sy(d);p&&f.push(p)}catch(g){JM||"MissingIcon"===g.name&&console.error(g)}return f},[]);return new Promise(function(f,d){Promise.all(l).then(function(p){wy(p,function(){n("active"),n("complete"),i("pending"),"function"==typeof t&&t(),o(),f()})}).catch(function(p){o(),d(p)})})}function EQ(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Sy(e).then(function(r){r&&wy([r],t)})}s7.map(function(e){t4.add("fa-".concat(e))}),Object.keys(ca[l1]).map(t4.add.bind(t4)),Object.keys(ca[A1]).map(t4.add.bind(t4)),t4=aa(t4);var IQ=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.transform,i=void 0===n?rn:n,a=r.symbol,s=void 0!==a&&a,c=r.mask,o=void 0===c?null:c,l=r.maskId,f=void 0===l?null:l,d=r.title,p=void 0===d?null:d,g=r.titleId,w=void 0===g?null:g,z=r.classes,L=void 0===z?[]:z,T=r.attributes,S=void 0===T?{}:T,B=r.styles,U=void 0===B?{}:B;if(t){var q=t.prefix,re=t.iconName,_e=t.icon;return Ao(X({type:"icon"},t),function(){return B4("beforeDOMElementCreation",{iconDefinition:t,params:r}),ne.autoA11y&&(p?S["aria-labelledby"]="".concat(ne.replacementClass,"-title-").concat(w||ha()):(S["aria-hidden"]="true",S.focusable="false")),_7({icons:{main:M7(_e),mask:o?M7(o.icon):{found:!1,width:null,height:null,icon:{}}},prefix:q,iconName:re,transform:X(X({},rn),i),symbol:s,title:p,maskId:f,titleId:w,extra:{attributes:S,styles:U,classes:L}})})}},OQ={mixout:function(){return{icon:(e=IQ,function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(t||{}).icon?t:v7(t||{}),i=r.mask;return i&&(i=(i||{}).icon?i:v7(i||{})),e(n,X(X({},r),{},{mask:i}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(r){return r.treeCallback=Ly,r.nodeCallback=EQ,r}}},provides:function(t){t.i2svg=function(r){var n=r.node,a=r.callback;return Ly(void 0===n?o1:n,void 0===a?function(){}:a)},t.generateSvgReplacementMutation=function(r,n){var i=n.iconName,a=n.title,s=n.titleId,c=n.prefix,o=n.transform,l=n.symbol,f=n.mask,d=n.maskId,p=n.extra;return new Promise(function(g,w){Promise.all([y7(i,c),f.iconName?y7(f.iconName,f.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(z){var L=X5(z,2);g([r,_7({icons:{main:L[0],mask:L[1]},prefix:c,iconName:i,transform:o,symbol:l,maskId:d,title:a,titleId:s,extra:p,watchable:!0})])}).catch(w)})},t.generateAbstractIcon=function(r){var l,n=r.children,i=r.attributes,a=r.main,s=r.transform,o=Vo(r.styles);return o.length>0&&(i.style=o),o7(s)&&(l=Ln("generateAbstractTransformGrouping",{main:a,transform:s,containerWidth:a.width,iconWidth:a.width})),n.push(l||a.icon),{children:n,attributes:i}}}},RQ={mixout:function(){return{layer:function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.classes,a=void 0===i?[]:i;return Ao({type:"layer"},function(){B4("beforeDOMElementCreation",{assembler:r,params:n});var s=[];return r(function(c){Array.isArray(c)?c.map(function(o){s=s.concat(o.abstract)}):s=s.concat(c.abstract)}),[{tag:"span",attributes:{class:["".concat(ne.cssPrefix,"-layers")].concat(aa(a)).join(" ")},children:s}]})}}}},kQ={mixout:function(){return{counter:function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.title,a=void 0===i?null:i,s=n.classes,c=void 0===s?[]:s,o=n.attributes,l=void 0===o?{}:o,f=n.styles,d=void 0===f?{}:f;return Ao({type:"counter",content:r},function(){return B4("beforeDOMElementCreation",{content:r,params:n}),function vQ(e){var t=e.content,r=e.title,n=e.extra,i=X(X(X({},n.attributes),r?{title:r}:{}),{},{class:n.classes.join(" ")}),a=Vo(n.styles);a.length>0&&(i.style=a);var s=[];return s.push({tag:"span",attributes:i,children:[t]}),r&&s.push({tag:"span",attributes:{class:"sr-only"},children:[r]}),s}({content:r.toString(),title:a,extra:{attributes:l,styles:d,classes:["".concat(ne.cssPrefix,"-layers-counter")].concat(aa(c))}})})}}}},PQ={mixout:function(){return{text:function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.transform,a=void 0===i?rn:i,s=n.title,c=void 0===s?null:s,o=n.classes,l=void 0===o?[]:o,f=n.attributes,d=void 0===f?{}:f,p=n.styles,g=void 0===p?{}:p;return Ao({type:"text",content:r},function(){return B4("beforeDOMElementCreation",{content:r,params:n}),_y({content:r,transform:X(X({},rn),a),title:c,extra:{attributes:d,styles:g,classes:["".concat(ne.cssPrefix,"-layers-text")].concat(aa(l))}})})}}},provides:function(t){t.generateLayersText=function(r,n){var i=n.title,a=n.transform,s=n.extra,c=null,o=null;if(KM){var l=parseInt(getComputedStyle(r).fontSize,10),f=r.getBoundingClientRect();c=f.width/l,o=f.height/l}return ne.autoA11y&&!i&&(s.attributes["aria-hidden"]="true"),Promise.resolve([r,_y({content:r.innerHTML,width:c,height:o,transform:a,title:i,extra:s,watchable:!0})])}}},FQ=new RegExp('"',"ug"),xy=[1105920,1112319];function Ny(e,t){var r="".concat(LZ).concat(t.replace(":","-"));return new Promise(function(n,i){if(null!==e.getAttribute(r))return n();var s=mr(e.children).filter(function(_e){return _e.getAttribute(r7)===t})[0],c=Jn.getComputedStyle(e,t),o=c.getPropertyValue("font-family").match(TZ),l=c.getPropertyValue("font-weight"),f=c.getPropertyValue("content");if(s&&!o)return e.removeChild(s),n();if(o&&"none"!==f&&""!==f){var d=c.getPropertyValue("content"),p=~["Sharp"].indexOf(o[2])?A1:l1,g=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(o[2])?oa[p][o[2].toLowerCase()]:IZ[p][l],w=function BQ(e){var t=e.replace(FQ,""),r=function eQ(e,t){var i,r=e.length,n=e.charCodeAt(t);return n>=55296&&n<=56319&&r>t+1&&(i=e.charCodeAt(t+1))>=56320&&i<=57343?1024*(n-55296)+i-56320+65536:n}(t,0),n=r>=xy[0]&&r<=xy[1],i=2===t.length&&t[0]===t[1];return{value:u7(i?t[0]:t),isSecondary:n||i}}(d),z=w.value,L=w.isSecondary,T=o[0].startsWith("FontAwesome"),S=p7(g,z),B=S;if(T){var U=function cQ(e){var t=uy[e],r=p7("fas",e);return t||(r?{prefix:"fas",iconName:r}:null)||{prefix:null,iconName:null}}(z);U.iconName&&U.prefix&&(S=U.iconName,g=U.prefix)}if(!S||L||s&&s.getAttribute(i7)===g&&s.getAttribute(a7)===B)n();else{e.setAttribute(r,B),s&&e.removeChild(s);var q=function NQ(){return{iconName:null,title:null,titleId:null,prefix:null,transform:rn,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),re=q.extra;re.attributes[r7]=t,y7(S,g).then(function(_e){var He=_7(X(X({},q),{},{icons:{main:_e,mask:m7()},prefix:g,iconName:B,extra:re,watchable:!0})),ke=o1.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(ke,e.firstChild):e.appendChild(ke),ke.outerHTML=He.map(function(z1){return pa(z1)}).join("\n"),e.removeAttribute(r),n()}).catch(i)}}else n()})}function UQ(e){return Promise.all([Ny(e,"::before"),Ny(e,"::after")])}function jQ(e){return!(e.parentNode===document.head||~NZ.indexOf(e.tagName.toUpperCase())||e.getAttribute(r7)||e.parentNode&&"svg"===e.parentNode.tagName)}function Ay(e){if(zn)return new Promise(function(t,r){var n=mr(e.querySelectorAll("*")).filter(jQ).map(UQ),i=H7.begin("searchPseudoElements");Vy(),Promise.all(n).then(function(){i(),V7(),t()}).catch(function(){i(),V7(),r()})})}var Ey=!1,Ty=function(t){return t.toLowerCase().split(" ").reduce(function(n,i){var a=i.toLowerCase().split("-"),s=a[0],c=a.slice(1).join("-");if(s&&"h"===c)return n.flipX=!0,n;if(s&&"v"===c)return n.flipY=!0,n;if(c=parseFloat(c),isNaN(c))return n;switch(s){case"grow":n.size=n.size+c;break;case"shrink":n.size=n.size-c;break;case"left":n.x=n.x-c;break;case"right":n.x=n.x+c;break;case"up":n.y=n.y-c;break;case"down":n.y=n.y+c;break;case"rotate":n.rotate=n.rotate+c}return n},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},z7={x:0,y:0,width:"100%",height:"100%"};function Iy(e){return e.attributes&&(e.attributes.fill||!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(e.attributes.fill="black"),e}!function fQ(e,t){var r=t.mixoutsTo;gy=e,vr={},Object.keys(_r).forEach(function(n){-1===lQ.indexOf(n)&&delete _r[n]}),gy.forEach(function(n){var i=n.mixout?n.mixout():{};if(Object.keys(i).forEach(function(s){"function"==typeof i[s]&&(r[s]=i[s]),"object"===vo(i[s])&&Object.keys(i[s]).forEach(function(c){r[s]||(r[s]={}),r[s][c]=i[s][c]})}),n.hooks){var a=n.hooks();Object.keys(a).forEach(function(s){vr[s]||(vr[s]=[]),vr[s].push(a[s])})}n.provides&&n.provides(_r)})}([YZ,OQ,RQ,kQ,PQ,{hooks:function(){return{mutationObserverCallbacks:function(r){return r.pseudoElementsCallback=Ay,r}}},provides:function(t){t.pseudoElements2svg=function(r){var n=r.node;ne.searchPseudoElements&&Ay(void 0===n?o1:n)}}},{mixout:function(){return{dom:{unwatch:function(){Vy(),Ey=!0}}}},hooks:function(){return{bootstrap:function(){zy(g7("mutationObserverCallbacks",{}))},noAuto:function(){!function DQ(){Io&&Io.disconnect()}()},watch:function(r){var n=r.observeMutationsRoot;Ey?V7():zy(g7("mutationObserverCallbacks",{observeMutationsRoot:n}))}}}},{mixout:function(){return{parse:{transform:function(r){return Ty(r)}}}},hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-transform");return i&&(r.transform=Ty(i)),r}}},provides:function(t){t.generateAbstractTransformGrouping=function(r){var n=r.main,i=r.transform,s=r.iconWidth,c={transform:"translate(".concat(r.containerWidth/2," 256)")},o="translate(".concat(32*i.x,", ").concat(32*i.y,") "),l="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),f="rotate(".concat(i.rotate," 0 0)"),g={outer:c,inner:{transform:"".concat(o," ").concat(l," ").concat(f)},path:{transform:"translate(".concat(s/2*-1," -256)")}};return{tag:"g",attributes:X({},g.outer),children:[{tag:"g",attributes:X({},g.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:X(X({},n.icon.attributes),g.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-mask"),a=i?No(i.split(" ").map(function(s){return s.trim()})):m7();return a.prefix||(a.prefix=e4()),r.mask=a,r.maskId=n.getAttribute("data-fa-mask-id"),r}}},provides:function(t){t.generateAbstractMask=function(r){var e,n=r.children,i=r.attributes,a=r.main,s=r.mask,c=r.maskId,f=a.icon,p=s.icon,g=function WZ(e){var t=e.transform,n=e.iconWidth,i={transform:"translate(".concat(e.containerWidth/2," 256)")},a="translate(".concat(32*t.x,", ").concat(32*t.y,") "),s="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),c="rotate(".concat(t.rotate," 0 0)");return{outer:i,inner:{transform:"".concat(a," ").concat(s," ").concat(c)},path:{transform:"translate(".concat(n/2*-1," -256)")}}}({transform:r.transform,containerWidth:s.width,iconWidth:a.width}),w={tag:"rect",attributes:X(X({},z7),{},{fill:"white"})},z=f.children?{children:f.children.map(Iy)}:{},L={tag:"g",attributes:X({},g.inner),children:[Iy(X({tag:f.tag,attributes:X(X({},f.attributes),g.path)},z))]},T={tag:"g",attributes:X({},g.outer),children:[L]},S="mask-".concat(c||ha()),B="clip-".concat(c||ha()),U={tag:"mask",attributes:X(X({},z7),{},{id:S,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[w,T]},q={tag:"defs",children:[{tag:"clipPath",attributes:{id:B},children:(e=p,"g"===e.tag?e.children:[e])},U]};return n.push(q,{tag:"rect",attributes:X({fill:"currentColor","clip-path":"url(#".concat(B,")"),mask:"url(#".concat(S,")")},z7)}),{children:n,attributes:i}}}},{provides:function(t){var r=!1;Jn.matchMedia&&(r=Jn.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var n=[],i={fill:"currentColor"},a={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:X(X({},i),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var s=X(X({},a),{},{attributeName:"opacity"}),c={tag:"circle",attributes:X(X({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return r||c.children.push({tag:"animate",attributes:X(X({},a),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:X(X({},s),{},{values:"1;0;1;1;0;1;"})}),n.push(c),n.push({tag:"path",attributes:X(X({},i),{},{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:r?[]:[{tag:"animate",attributes:X(X({},s),{},{values:"1;0;0;0;0;1;"})}]}),r||n.push({tag:"path",attributes:X(X({},i),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:X(X({},s),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},{hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-symbol");return r.symbol=null!==i&&(""===i||i),r}}}}],{mixoutsTo:at});var JQ=at.parse,XQ=at.icon;const eJ=["*"],rJ=e=>{const t={[`fa-${e.animation}`]:null!=e.animation&&!e.animation.startsWith("spin"),"fa-spin":"spin"===e.animation||"spin-reverse"===e.animation,"fa-spin-pulse":"spin-pulse"===e.animation||"spin-pulse-reverse"===e.animation,"fa-spin-reverse":"spin-reverse"===e.animation||"spin-pulse-reverse"===e.animation,"fa-pulse":"spin-pulse"===e.animation||"spin-pulse-reverse"===e.animation,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-inverse":e.inverse,"fa-layers-counter":e.counter,"fa-flip-horizontal":"horizontal"===e.flip||"both"===e.flip,"fa-flip-vertical":"vertical"===e.flip||"both"===e.flip,[`fa-${e.size}`]:null!==e.size,[`fa-rotate-${e.rotate}`]:null!==e.rotate,[`fa-pull-${e.pull}`]:null!==e.pull,[`fa-stack-${e.stackItemSize}`]:null!=e.stackItemSize};return Object.keys(t).map(r=>t[r]?r:null).filter(r=>r)};let sJ=(()=>{var e;class t{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),cJ=(()=>{var e;class t{constructor(){this.definitions={}}addIcons(...n){for(const i of n){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(...n){for(const i of n){const a=Object.keys(i).map(s=>i[s]);this.addIcons(...a)}}getIconDefinition(n,i){return n in this.definitions&&i in this.definitions[n]?this.definitions[n][i]:null}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),oJ=(()=>{var e;class t{constructor(){this.stackItemSize="1x"}ngOnChanges(n){if("size"in n)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: <fa-stack size="4x">...</fa-stack>.')}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275dir=W({type:e,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[_1]}),t})(),lJ=(()=>{var e;class t{constructor(n,i){this.renderer=n,this.elementRef=i}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(n){"size"in n&&(null!=n.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${n.size.currentValue}`),null!=n.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${n.size.previousValue}`))}}return(e=t).\u0275fac=function(n){return new(n||e)(H(o2),H(Ne))},e.\u0275cmp=se({type:e,selectors:[["fa-stack"]],inputs:{size:"size"},features:[_1],ngContentSelectors:eJ,decls:1,vars:0,template:function(n,i){1&n&&(q3(),K3(0))},encapsulation:2}),t})(),D7=(()=>{var e;class t{set spin(n){this.animation=n?"spin":void 0}set pulse(n){this.animation=n?"spin-pulse":void 0}constructor(n,i,a,s,c){this.sanitizer=n,this.config=i,this.iconLibrary=a,this.stackItem=s,this.classes=[],null!=c&&null==s&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: <fa-icon stackItemSize="2x"></fa-icon>.')}ngOnChanges(n){if(null!=this.icon||null!=this.config.fallbackIcon){if(n){const a=this.findIconDefinition(null!=this.icon?this.icon:this.config.fallbackIcon);if(null!=a){const s=this.buildParams();this.renderIcon(a,s)}}}else(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})()}render(){this.ngOnChanges({})}findIconDefinition(n){const i=((e,t)=>(e=>void 0!==e.prefix&&void 0!==e.iconName)(e)?e:"string"==typeof e?{prefix:t,iconName:e}:{prefix:e[0],iconName:e[1]})(n,this.config.defaultPrefix);return"icon"in i?i:this.iconLibrary.getIconDefinition(i.prefix,i.iconName)??((e=>{throw new Error(`Could not find icon with iconName=${e.iconName} and prefix=${e.prefix} in the icon library.`)})(i),null)}buildParams(){const n={flip:this.flip,animation:this.animation,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:"boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize:null},i="string"==typeof this.transform?JQ.transform(this.transform):this.transform;return{title:this.title,transform:i,classes:[...rJ(n),...this.classes],mask:null!=this.mask?this.findIconDefinition(this.mask):null,styles:null!=this.styles?this.styles:{},symbol:this.symbol,attributes:{role:this.a11yRole}}}renderIcon(n,i){const a=XQ(n,i);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(a.html.join("\n"))}}return(e=t).\u0275fac=function(n){return new(n||e)(H(Xv),H(sJ),H(cJ),H(oJ,8),H(lJ,8))},e.\u0275cmp=se({type:e,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(n,i){2&n&&(w2("innerHTML",i.renderedIconHTML,Fd),j("title",i.title))},inputs:{icon:"icon",title:"title",animation:"animation",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",classes:"classes",transform:"transform",a11yRole:"a11yRole"},features:[_1],decls:0,vars:0,template:function(n,i){},encapsulation:2}),t})(),fJ=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})();function S7(...e){const t=Er(e),r=Za(e),{args:n,keys:i}=n_(e);if(0===n.length)return Q1([],t);const a=new We(function dJ(e,t,r=bt){return n=>{Oy(t,()=>{const{length:i}=e,a=new Array(i);let s=i,c=i;for(let o=0;o<i;o++)Oy(t,()=>{const l=Q1(e[o],t);let f=!1;l.subscribe(qe(n,d=>{a[o]=d,f||(f=!0,c--),c||n.next(r(a.slice()))},()=>{--s||n.complete()}))},n)},n)}}(n,t,i?s=>r_(i,s):bt));return r?a.pipe(t5(r)):a}function Oy(e,t,r){e?on(r,e,t):t()}const Oo=d2(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Ry(e){return new We(t=>{j1(e()).subscribe(t)})}function ga(e,t){const r=Q(e)?e:()=>e,n=i=>i.error(r());return new We(t?i=>t.schedule(n,0,i):n)}function L7(){return u1((e,t)=>{let r=null;e._refCount++;const n=qe(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(r=null);const i=e._connection,a=r;r=null,i&&(!a||i===a)&&i.unsubscribe(),t.unsubscribe()});e.subscribe(n),n.closed||(r=e.connect())})}class ky extends We{constructor(t,r){super(),this.source=t,this.subjectFactory=r,this._subject=null,this._refCount=0,this._connection=null,Nr(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new De;const r=this.getSubject();t.add(this.source.subscribe(qe(r,void 0,()=>{this._teardown(),r.complete()},n=>{this._teardown(),r.error(n)},()=>this._teardown()))),t.closed&&(this._connection=null,t=De.EMPTY)}return t}refCount(){return L7()(this)}}function Ro(e){return u1((t,r)=>{let n=!1;t.subscribe(qe(r,i=>{n=!0,r.next(i)},()=>{n||r.next(e),r.complete()}))})}function Py(e=hJ){return u1((t,r)=>{let n=!1;t.subscribe(qe(r,i=>{n=!0,r.next(i)},()=>n?r.complete():r.error(e())))})}function hJ(){return new Oo}function U4(e,t){const r=arguments.length>=2;return n=>n.pipe(e?N1((i,a)=>e(i,a,n)):bt,e2(1),r?Ro(t):Py(()=>new Oo))}function va(e,t){return Q(t)?F1(e,t,1):F1(e,1)}function j4(e){return u1((t,r)=>{let a,n=null,i=!1;n=t.subscribe(qe(r,void 0,void 0,s=>{a=j1(e(s,j4(e)(t))),n?(n.unsubscribe(),n=null,a.subscribe(r)):i=!0})),i&&(n.unsubscribe(),n=null,a.subscribe(r))})}function x7(e){return e<=0?()=>lt:u1((t,r)=>{let n=[];t.subscribe(qe(r,i=>{n.push(i),e<n.length&&n.shift()},()=>{for(const i of n)r.next(i);r.complete()},void 0,()=>{n=null}))})}function N7(e){return u1((t,r)=>{try{t.subscribe(r)}finally{r.add(e)}})}const Ce="primary",_a=Symbol("RouteTitle");class vJ{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const r=this.params[t];return Array.isArray(r)?r[0]:r}return null}getAll(t){if(this.has(t)){const r=this.params[t];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}}function Cr(e){return new vJ(e)}function _J(e,t,r){const n=r.path.split("/");if(n.length>e.length||"full"===r.pathMatch&&(t.hasChildren()||n.length<e.length))return null;const i={};for(let a=0;a<n.length;a++){const s=n[a],c=e[a];if(s.startsWith(":"))i[s.substring(1)]=c;else if(s!==c.path)return null}return{consumed:e.slice(0,n.length),posParams:i}}function an(e,t){const r=e?Object.keys(e):void 0,n=t?Object.keys(t):void 0;if(!r||!n||r.length!=n.length)return!1;let i;for(let a=0;a<r.length;a++)if(i=r[a],!Fy(e[i],t[i]))return!1;return!0}function Fy(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;const r=[...e].sort(),n=[...t].sort();return r.every((i,a)=>n[a]===i)}return e===t}function By(e){return e.length>0?e[e.length-1]:null}function n4(e){return function uJ(e){return!!e&&(e instanceof We||Q(e.lift)&&Q(e.subscribe))}(e)?e:Mi(e)?Q1(Promise.resolve(e)):ae(e)}const MJ={exact:function Gy(e,t,r){if(!G4(e.segments,t.segments)||!ko(e.segments,t.segments,r)||e.numberOfChildren!==t.numberOfChildren)return!1;for(const n in t.children)if(!e.children[n]||!Gy(e.children[n],t.children[n],r))return!1;return!0},subset:$y},Uy={exact:function yJ(e,t){return an(e,t)},subset:function bJ(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(r=>Fy(e[r],t[r]))},ignored:()=>!0};function jy(e,t,r){return MJ[r.paths](e.root,t.root,r.matrixParams)&&Uy[r.queryParams](e.queryParams,t.queryParams)&&!("exact"===r.fragment&&e.fragment!==t.fragment)}function $y(e,t,r){return Wy(e,t,t.segments,r)}function Wy(e,t,r,n){if(e.segments.length>r.length){const i=e.segments.slice(0,r.length);return!(!G4(i,r)||t.hasChildren()||!ko(i,r,n))}if(e.segments.length===r.length){if(!G4(e.segments,r)||!ko(e.segments,r,n))return!1;for(const i in t.children)if(!e.children[i]||!$y(e.children[i],t.children[i],n))return!1;return!0}{const i=r.slice(0,e.segments.length),a=r.slice(e.segments.length);return!!(G4(e.segments,i)&&ko(e.segments,i,n)&&e.children[Ce])&&Wy(e.children[Ce],t,a,n)}}function ko(e,t,r){return t.every((n,i)=>Uy[r](e[i].parameters,n.parameters))}class Mr{constructor(t=new $e([],{}),r={},n=null){this.root=t,this.queryParams=r,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Cr(this.queryParams)),this._queryParamMap}toString(){return VJ.serialize(this)}}class $e{constructor(t,r){this.segments=t,this.children=r,this.parent=null,Object.values(r).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Po(this)}}class Ca{constructor(t,r){this.path=t,this.parameters=r}get parameterMap(){return this._parameterMap||(this._parameterMap=Cr(this.parameters)),this._parameterMap}toString(){return Yy(this)}}function G4(e,t){return e.length===t.length&&e.every((r,n)=>r.path===t[n].path)}let Ma=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:function(){return new A7},providedIn:"root"}),t})();class A7{parse(t){const r=new OJ(t);return new Mr(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(t){const r=`/${ya(t.root,!0)}`,n=function SJ(e){const t=Object.keys(e).map(r=>{const n=e[r];return Array.isArray(n)?n.map(i=>`${Fo(r)}=${Fo(i)}`).join("&"):`${Fo(r)}=${Fo(n)}`}).filter(r=>!!r);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${r}${n}${"string"==typeof t.fragment?`#${function zJ(e){return encodeURI(e)}(t.fragment)}`:""}`}}const VJ=new A7;function Po(e){return e.segments.map(t=>Yy(t)).join("/")}function ya(e,t){if(!e.hasChildren())return Po(e);if(t){const r=e.children[Ce]?ya(e.children[Ce],!1):"",n=[];return Object.entries(e.children).forEach(([i,a])=>{i!==Ce&&n.push(`${i}:${ya(a,!1)}`)}),n.length>0?`${r}(${n.join("//")})`:r}{const r=function wJ(e,t){let r=[];return Object.entries(e.children).forEach(([n,i])=>{n===Ce&&(r=r.concat(t(i,n)))}),Object.entries(e.children).forEach(([n,i])=>{n!==Ce&&(r=r.concat(t(i,n)))}),r}(e,(n,i)=>i===Ce?[ya(e.children[Ce],!1)]:[`${i}:${ya(n,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[Ce]?`${Po(e)}/${r[0]}`:`${Po(e)}/(${r.join("//")})`}}function qy(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Fo(e){return qy(e).replace(/%3B/gi,";")}function E7(e){return qy(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Bo(e){return decodeURIComponent(e)}function Ky(e){return Bo(e.replace(/\+/g,"%20"))}function Yy(e){return`${E7(e.path)}${function DJ(e){return Object.keys(e).map(t=>`;${E7(t)}=${E7(e[t])}`).join("")}(e.parameters)}`}const LJ=/^[^\/()?;#]+/;function T7(e){const t=e.match(LJ);return t?t[0]:""}const xJ=/^[^\/()?;=#]+/,AJ=/^[^=?&#]+/,TJ=/^[^&#]+/;class OJ{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new $e([],{}):new $e([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(r).length>0)&&(n[Ce]=new $e(t,r)),n}parseSegment(){const t=T7(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new F(4009,!1);return this.capture(t),new Ca(Bo(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const r=function NJ(e){const t=e.match(xJ);return t?t[0]:""}(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){const i=T7(this.remaining);i&&(n=i,this.capture(n))}t[Bo(r)]=Bo(n)}parseQueryParam(t){const r=function EJ(e){const t=e.match(AJ);return t?t[0]:""}(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){const s=function IJ(e){const t=e.match(TJ);return t?t[0]:""}(this.remaining);s&&(n=s,this.capture(n))}const i=Ky(r),a=Ky(n);if(t.hasOwnProperty(i)){let s=t[i];Array.isArray(s)||(s=[s],t[i]=s),s.push(a)}else t[i]=a}parseParens(t){const r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=T7(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new F(4010,!1);let a;n.indexOf(":")>-1?(a=n.slice(0,n.indexOf(":")),this.capture(a),this.capture(":")):t&&(a=Ce);const s=this.parseChildren();r[a]=1===Object.keys(s).length?s[Ce]:new $e([],s),this.consumeOptional("//")}return r}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new F(4011,!1)}}function Zy(e){return e.segments.length>0?new $e([],{[Ce]:e}):e}function Qy(e){const t={};for(const n of Object.keys(e.children)){const a=Qy(e.children[n]);if(n===Ce&&0===a.segments.length&&a.hasChildren())for(const[s,c]of Object.entries(a.children))t[s]=c;else(a.segments.length>0||a.hasChildren())&&(t[n]=a)}return function RJ(e){if(1===e.numberOfChildren&&e.children[Ce]){const t=e.children[Ce];return new $e(e.segments.concat(t.segments),t.children)}return e}(new $e(e.segments,t))}function $4(e){return e instanceof Mr}function Jy(e){let t;const i=Zy(function r(a){const s={};for(const o of a.children){const l=r(o);s[o.outlet]=l}const c=new $e(a.url,s);return a===e&&(t=c),c}(e.root));return t??i}function Xy(e,t,r,n){let i=e;for(;i.parent;)i=i.parent;if(0===t.length)return I7(i,i,i,r,n);const a=function PJ(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new tb(!0,0,e);let t=0,r=!1;const n=e.reduce((i,a,s)=>{if("object"==typeof a&&null!=a){if(a.outlets){const c={};return Object.entries(a.outlets).forEach(([o,l])=>{c[o]="string"==typeof l?l.split("/"):l}),[...i,{outlets:c}]}if(a.segmentPath)return[...i,a.segmentPath]}return"string"!=typeof a?[...i,a]:0===s?(a.split("/").forEach((c,o)=>{0==o&&"."===c||(0==o&&""===c?r=!0:".."===c?t++:""!=c&&i.push(c))}),i):[...i,a]},[]);return new tb(r,t,n)}(t);if(a.toRoot())return I7(i,i,new $e([],{}),r,n);const s=function FJ(e,t,r){if(e.isAbsolute)return new jo(t,!0,0);if(!r)return new jo(t,!1,NaN);if(null===r.parent)return new jo(r,!0,0);const n=Uo(e.commands[0])?0:1;return function BJ(e,t,r){let n=e,i=t,a=r;for(;a>i;){if(a-=i,n=n.parent,!n)throw new F(4005,!1);i=n.segments.length}return new jo(n,!1,i-a)}(r,r.segments.length-1+n,e.numberOfDoubleDots)}(a,i,e),c=s.processChildren?Ha(s.segmentGroup,s.index,a.commands):nb(s.segmentGroup,s.index,a.commands);return I7(i,s.segmentGroup,c,r,n)}function Uo(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function ba(e){return"object"==typeof e&&null!=e&&e.outlets}function I7(e,t,r,n,i){let s,a={};n&&Object.entries(n).forEach(([o,l])=>{a[o]=Array.isArray(l)?l.map(f=>`${f}`):`${l}`}),s=e===t?r:eb(e,t,r);const c=Zy(Qy(s));return new Mr(c,a,i)}function eb(e,t,r){const n={};return Object.entries(e.children).forEach(([i,a])=>{n[i]=a===t?r:eb(a,t,r)}),new $e(e.segments,n)}class tb{constructor(t,r,n){if(this.isAbsolute=t,this.numberOfDoubleDots=r,this.commands=n,t&&n.length>0&&Uo(n[0]))throw new F(4003,!1);const i=n.find(ba);if(i&&i!==By(n))throw new F(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class jo{constructor(t,r,n){this.segmentGroup=t,this.processChildren=r,this.index=n}}function nb(e,t,r){if(e||(e=new $e([],{})),0===e.segments.length&&e.hasChildren())return Ha(e,t,r);const n=function jJ(e,t,r){let n=0,i=t;const a={match:!1,pathIndex:0,commandIndex:0};for(;i<e.segments.length;){if(n>=r.length)return a;const s=e.segments[i],c=r[n];if(ba(c))break;const o=`${c}`,l=n<r.length-1?r[n+1]:null;if(i>0&&void 0===o)break;if(o&&l&&"object"==typeof l&&void 0===l.outlets){if(!ib(o,l,s))return a;n+=2}else{if(!ib(o,{},s))return a;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}(e,t,r),i=r.slice(n.commandIndex);if(n.match&&n.pathIndex<e.segments.length){const a=new $e(e.segments.slice(0,n.pathIndex),{});return a.children[Ce]=new $e(e.segments.slice(n.pathIndex),e.children),Ha(a,0,i)}return n.match&&0===i.length?new $e(e.segments,{}):n.match&&!e.hasChildren()?O7(e,t,r):n.match?Ha(e,0,i):O7(e,t,r)}function Ha(e,t,r){if(0===r.length)return new $e(e.segments,{});{const n=function UJ(e){return ba(e[0])?e[0].outlets:{[Ce]:e}}(r),i={};if(Object.keys(n).some(a=>a!==Ce)&&e.children[Ce]&&1===e.numberOfChildren&&0===e.children[Ce].segments.length){const a=Ha(e.children[Ce],t,r);return new $e(e.segments,a.children)}return Object.entries(n).forEach(([a,s])=>{"string"==typeof s&&(s=[s]),null!==s&&(i[a]=nb(e.children[a],t,s))}),Object.entries(e.children).forEach(([a,s])=>{void 0===n[a]&&(i[a]=s)}),new $e(e.segments,i)}}function O7(e,t,r){const n=e.segments.slice(0,t);let i=0;for(;i<r.length;){const a=r[i];if(ba(a)){const o=GJ(a.outlets);return new $e(n,o)}if(0===i&&Uo(r[0])){n.push(new Ca(e.segments[t].path,rb(r[0]))),i++;continue}const s=ba(a)?a.outlets[Ce]:`${a}`,c=i<r.length-1?r[i+1]:null;s&&c&&Uo(c)?(n.push(new Ca(s,rb(c))),i+=2):(n.push(new Ca(s,{})),i++)}return new $e(n,{})}function GJ(e){const t={};return Object.entries(e).forEach(([r,n])=>{"string"==typeof n&&(n=[n]),null!==n&&(t[r]=O7(new $e([],{}),0,n))}),t}function rb(e){const t={};return Object.entries(e).forEach(([r,n])=>t[r]=`${n}`),t}function ib(e,t,r){return e==r.path&&an(t,r.parameters)}const wa="imperative";class sn{constructor(t,r){this.id=t,this.url=r}}class Va extends sn{constructor(t,r,n="imperative",i=null){super(t,r),this.type=0,this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class r4 extends sn{constructor(t,r,n){super(t,r),this.urlAfterRedirects=n,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class za extends sn{constructor(t,r,n,i){super(t,r),this.reason=n,this.code=i,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class yr extends sn{constructor(t,r,n,i){super(t,r),this.reason=n,this.code=i,this.type=16}}class Go extends sn{constructor(t,r,n,i){super(t,r),this.error=n,this.target=i,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ab extends sn{constructor(t,r,n,i){super(t,r),this.urlAfterRedirects=n,this.state=i,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class $J extends sn{constructor(t,r,n,i){super(t,r),this.urlAfterRedirects=n,this.state=i,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class WJ extends sn{constructor(t,r,n,i,a){super(t,r),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=a,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class qJ extends sn{constructor(t,r,n,i){super(t,r),this.urlAfterRedirects=n,this.state=i,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class KJ extends sn{constructor(t,r,n,i){super(t,r),this.urlAfterRedirects=n,this.state=i,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class YJ{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ZJ{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class QJ{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class JJ{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class XJ{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class eX{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class sb{constructor(t,r,n){this.routerEvent=t,this.position=r,this.anchor=n,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class R7{}class k7{constructor(t){this.url=t}}class tX{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Da,this.attachRef=null}}let Da=(()=>{var e;class t{constructor(){this.contexts=new Map}onChildOutletCreated(n,i){const a=this.getOrCreateContext(n);a.outlet=i,this.contexts.set(n,a)}onChildOutletDestroyed(n){const i=this.getContext(n);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let i=this.getContext(n);return i||(i=new tX,this.contexts.set(n,i)),i}getContext(n){return this.contexts.get(n)||null}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();class cb{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const r=this.pathFromRoot(t);return r.length>1?r[r.length-2]:null}children(t){const r=P7(t,this._root);return r?r.children.map(n=>n.value):[]}firstChild(t){const r=P7(t,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(t){const r=F7(t,this._root);return r.length<2?[]:r[r.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return F7(t,this._root).map(r=>r.value)}}function P7(e,t){if(e===t.value)return t;for(const r of t.children){const n=P7(e,r);if(n)return n}return null}function F7(e,t){if(e===t.value)return[t];for(const r of t.children){const n=F7(e,r);if(n.length)return n.unshift(t),n}return[]}class xn{constructor(t,r){this.value=t,this.children=r}toString(){return`TreeNode(${this.value})`}}function br(e){const t={};return e&&e.children.forEach(r=>t[r.value.outlet]=r),t}class ob extends cb{constructor(t,r){super(t),this.snapshot=r,B7(this,t)}toString(){return this.snapshot.toString()}}function lb(e,t){const r=function nX(e,t){const s=new $o([],{},{},"",{},Ce,t,null,{});return new ub("",new xn(s,[]))}(0,t),n=new ft([new Ca("",{})]),i=new ft({}),a=new ft({}),s=new ft({}),c=new ft(""),o=new Nn(n,i,s,c,a,Ce,t,r.root);return o.snapshot=r.root,new ob(new xn(o,[]),r)}class Nn{constructor(t,r,n,i,a,s,c,o){this.urlSubject=t,this.paramsSubject=r,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=a,this.outlet=s,this.component=c,this._futureSnapshot=o,this.title=this.dataSubject?.pipe(we(l=>l[_a]))??ae(void 0),this.url=t,this.params=r,this.queryParams=n,this.fragment=i,this.data=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(we(t=>Cr(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(we(t=>Cr(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function fb(e,t="emptyOnly"){const r=e.pathFromRoot;let n=0;if("always"!==t)for(n=r.length-1;n>=1;){const i=r[n],a=r[n-1];if(i.routeConfig&&""===i.routeConfig.path)n--;else{if(a.component)break;n--}}return function rX(e){return e.reduce((t,r)=>({params:{...t.params,...r.params},data:{...t.data,...r.data},resolve:{...r.data,...t.resolve,...r.routeConfig?.data,...r._resolvedData}}),{params:{},data:{},resolve:{}})}(r.slice(n))}class $o{get title(){return this.data?.[_a]}constructor(t,r,n,i,a,s,c,o,l){this.url=t,this.params=r,this.queryParams=n,this.fragment=i,this.data=a,this.outlet=s,this.component=c,this.routeConfig=o,this._resolve=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Cr(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Cr(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(n=>n.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ub extends cb{constructor(t,r){super(r),this.url=t,B7(this,r)}toString(){return db(this._root)}}function B7(e,t){t.value._routerState=e,t.children.forEach(r=>B7(e,r))}function db(e){const t=e.children.length>0?` { ${e.children.map(db).join(", ")} } `:"";return`${e.value}${t}`}function U7(e){if(e.snapshot){const t=e.snapshot,r=e._futureSnapshot;e.snapshot=r,an(t.queryParams,r.queryParams)||e.queryParamsSubject.next(r.queryParams),t.fragment!==r.fragment&&e.fragmentSubject.next(r.fragment),an(t.params,r.params)||e.paramsSubject.next(r.params),function CJ(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!an(e[r],t[r]))return!1;return!0}(t.url,r.url)||e.urlSubject.next(r.url),an(t.data,r.data)||e.dataSubject.next(r.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function j7(e,t){const r=an(e.params,t.params)&&function HJ(e,t){return G4(e,t)&&e.every((r,n)=>an(r.parameters,t[n].parameters))}(e.url,t.url);return r&&!(!e.parent!=!t.parent)&&(!e.parent||j7(e.parent,t.parent))}let G7=(()=>{var e;class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ce,this.activateEvents=new ee,this.deactivateEvents=new ee,this.attachEvents=new ee,this.detachEvents=new ee,this.parentContexts=J(Da),this.location=J(U2),this.changeDetector=J(et),this.environmentInjector=J(k2),this.inputBinder=J(Wo,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){const{firstChange:i,previousValue:a}=n.name;if(i)return;this.isTrackedInParentContexts(a)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(a)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new F(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new F(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new F(4012,!1);this.location.detach();const n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,i){this.activated=n,this._activatedRoute=i,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){const n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,i){if(this.isActivated)throw new F(4013,!1);this._activatedRoute=n;const a=this.location,c=n.snapshot.component,o=this.parentContexts.getOrCreateContext(this.name).children,l=new iX(n,o,a.injector);this.activated=a.createComponent(c,{index:a.length,injector:l,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275dir=W({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[_1]}),t})();class iX{constructor(t,r,n){this.route=t,this.childContexts=r,this.parent=n}get(t,r){return t===Nn?this.route:t===Da?this.childContexts:this.parent.get(t,r)}}const Wo=new te("");let hb=(()=>{var e;class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){const{activatedRoute:i}=n,a=S7([i.queryParams,i.params,i.data]).pipe(Ht(([s,c,o],l)=>(o={...s,...c,...o},0===l?ae(o):Promise.resolve(o)))).subscribe(s=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==i||null===i.component)return void this.unsubscribeFromRouteData(n);const c=function lU(e){const t=Le(e);if(!t)return null;const r=new pi(t);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}(i.component);if(c)for(const{templateName:o}of c.inputs)n.activatedComponentRef.setInput(o,s[o]);else this.unsubscribeFromRouteData(n)});this.outletDataSubscriptions.set(n,a)}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac}),t})();function Sa(e,t,r){if(r&&e.shouldReuseRoute(t.value,r.value.snapshot)){const n=r.value;n._futureSnapshot=t.value;const i=function sX(e,t,r){return t.children.map(n=>{for(const i of r.children)if(e.shouldReuseRoute(n.value,i.value.snapshot))return Sa(e,n,i);return Sa(e,n)})}(e,t,r);return new xn(n,i)}{if(e.shouldAttach(t.value)){const a=e.retrieve(t.value);if(null!==a){const s=a.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(c=>Sa(e,c)),s}}const n=function cX(e){return new Nn(new ft(e.url),new ft(e.params),new ft(e.queryParams),new ft(e.fragment),new ft(e.data),e.outlet,e.component,e)}(t.value),i=t.children.map(a=>Sa(e,a));return new xn(n,i)}}const $7="ngNavigationCancelingError";function pb(e,t){const{redirectTo:r,navigationBehaviorOptions:n}=$4(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=mb(!1,0,t);return i.url=r,i.navigationBehaviorOptions=n,i}function mb(e,t,r){const n=new Error("NavigationCancelingError: "+(e||""));return n[$7]=!0,n.cancellationCode=t,r&&(n.url=r),n}function gb(e){return e&&e[$7]}let vb=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275cmp=se({type:e,selectors:[["ng-component"]],standalone:!0,features:[z2],decls:1,vars:0,template:function(n,i){1&n&&k(0,"router-outlet")},dependencies:[G7],encapsulation:2}),t})();function W7(e){const t=e.children&&e.children.map(W7),r=t?{...e,children:t}:{...e};return!r.component&&!r.loadComponent&&(t||r.loadChildren)&&r.outlet&&r.outlet!==Ce&&(r.component=vb),r}function kt(e){return e.outlet||Ce}function La(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){const r=t.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}class mX{constructor(t,r,n,i,a){this.routeReuseStrategy=t,this.futureState=r,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=a}activate(t){const r=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,n,t),U7(this.futureState.root),this.activateChildRoutes(r,n,t)}deactivateChildRoutes(t,r,n){const i=br(r);t.children.forEach(a=>{const s=a.value.outlet;this.deactivateRoutes(a,i[s],n),delete i[s]}),Object.values(i).forEach(a=>{this.deactivateRouteAndItsChildren(a,n)})}deactivateRoutes(t,r,n){const i=t.value,a=r?r.value:null;if(i===a)if(i.component){const s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(t,r,s.children)}else this.deactivateChildRoutes(t,r,n);else a&&this.deactivateRouteAndItsChildren(r,n)}deactivateRouteAndItsChildren(t,r){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,r):this.deactivateRouteAndOutlet(t,r)}detachAndStoreRouteSubtree(t,r){const n=r.getContext(t.value.outlet),i=n&&t.value.component?n.children:r,a=br(t);for(const s of Object.keys(a))this.deactivateRouteAndItsChildren(a[s],i);if(n&&n.outlet){const s=n.outlet.detach(),c=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:c})}}deactivateRouteAndOutlet(t,r){const n=r.getContext(t.value.outlet),i=n&&t.value.component?n.children:r,a=br(t);for(const s of Object.keys(a))this.deactivateRouteAndItsChildren(a[s],i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(t,r,n){const i=br(r);t.children.forEach(a=>{this.activateRoutes(a,i[a.value.outlet],n),this.forwardEvent(new eX(a.value.snapshot))}),t.children.length&&this.forwardEvent(new JJ(t.value.snapshot))}activateRoutes(t,r,n){const i=t.value,a=r?r.value:null;if(U7(i),i===a)if(i.component){const s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,r,s.children)}else this.activateChildRoutes(t,r,n);else if(i.component){const s=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const c=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(c.contexts),s.attachRef=c.componentRef,s.route=c.route.value,s.outlet&&s.outlet.attach(c.componentRef,c.route.value),U7(c.route.value),this.activateChildRoutes(t,null,s.children)}else{const c=La(i.snapshot);s.attachRef=null,s.route=i,s.injector=c,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,n)}}class _b{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class qo{constructor(t,r){this.component=t,this.route=r}}function gX(e,t,r){const n=e._root;return xa(n,t?t._root:null,r,[n.value])}function Hr(e,t){const r=Symbol(),n=t.get(e,r);return n===r?"function"!=typeof e||function DA(e){return null!==Xa(e)}(e)?t.get(e):e:n}function xa(e,t,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){const a=br(t);return e.children.forEach(s=>{(function _X(e,t,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){const a=e.value,s=t?t.value:null,c=r?r.getContext(e.value.outlet):null;if(s&&a.routeConfig===s.routeConfig){const o=function CX(e,t,r){if("function"==typeof r)return r(e,t);switch(r){case"pathParamsChange":return!G4(e.url,t.url);case"pathParamsOrQueryParamsChange":return!G4(e.url,t.url)||!an(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!j7(e,t)||!an(e.queryParams,t.queryParams);default:return!j7(e,t)}}(s,a,a.routeConfig.runGuardsAndResolvers);o?i.canActivateChecks.push(new _b(n)):(a.data=s.data,a._resolvedData=s._resolvedData),xa(e,t,a.component?c?c.children:null:r,n,i),o&&c&&c.outlet&&c.outlet.isActivated&&i.canDeactivateChecks.push(new qo(c.outlet.component,s))}else s&&Na(t,c,i),i.canActivateChecks.push(new _b(n)),xa(e,null,a.component?c?c.children:null:r,n,i)})(s,a[s.value.outlet],r,n.concat([s.value]),i),delete a[s.value.outlet]}),Object.entries(a).forEach(([s,c])=>Na(c,r.getContext(s),i)),i}function Na(e,t,r){const n=br(e),i=e.value;Object.entries(n).forEach(([a,s])=>{Na(s,i.component?t?t.children.getContext(a):null:t,r)}),r.canDeactivateChecks.push(new qo(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))}function Aa(e){return"function"==typeof e}function Cb(e){return e instanceof Oo||"EmptyError"===e?.name}const Ko=Symbol("INITIAL_VALUE");function wr(){return Ht(e=>S7(e.map(t=>t.pipe(e2(1),function uC(...e){const t=Er(e);return u1((r,n)=>{(t?$i(e,r,t):$i(e,r)).subscribe(n)})}(Ko)))).pipe(we(t=>{for(const r of t)if(!0!==r){if(r===Ko)return Ko;if(!1===r||r instanceof Mr)return r}return!0}),N1(t=>t!==Ko),e2(1)))}function Mb(e){return function Ua(...e){return xr(e)}(q1(t=>{if($4(t))throw pb(0,t)}),we(t=>!0===t))}class Yo{constructor(t){this.segmentGroup=t||null}}class yb{constructor(t){this.urlTree=t}}function Vr(e){return ga(new Yo(e))}function bb(e){return ga(new yb(e))}class PX{constructor(t,r){this.urlSerializer=t,this.urlTree=r}noMatchError(t){return new F(4002,!1)}lineralizeSegments(t,r){let n=[],i=r.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return ae(n);if(i.numberOfChildren>1||!i.children[Ce])return ga(new F(4e3,!1));i=i.children[Ce]}}applyRedirectCommands(t,r,n){return this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),t,n)}applyRedirectCreateUrlTree(t,r,n,i){const a=this.createSegmentGroup(t,r.root,n,i);return new Mr(a,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(t,r){const n={};return Object.entries(t).forEach(([i,a])=>{if("string"==typeof a&&a.startsWith(":")){const c=a.substring(1);n[i]=r[c]}else n[i]=a}),n}createSegmentGroup(t,r,n,i){const a=this.createSegments(t,r.segments,n,i);let s={};return Object.entries(r.children).forEach(([c,o])=>{s[c]=this.createSegmentGroup(t,o,n,i)}),new $e(a,s)}createSegments(t,r,n,i){return r.map(a=>a.path.startsWith(":")?this.findPosParam(t,a,i):this.findOrReturn(a,n))}findPosParam(t,r,n){const i=n[r.path.substring(1)];if(!i)throw new F(4001,!1);return i}findOrReturn(t,r){let n=0;for(const i of r){if(i.path===t.path)return r.splice(n),i;n++}return t}}const q7={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function FX(e,t,r,n,i){const a=K7(e,t,r);return a.matched?(n=function lX(e,t){return e.providers&&!e._injector&&(e._injector=Y8(e.providers,t,`Route: ${e.path}`)),e._injector??t}(t,n),function OX(e,t,r,n){const i=t.canMatch;return i&&0!==i.length?ae(i.map(s=>{const c=Hr(s,e);return n4(function VX(e){return e&&Aa(e.canMatch)}(c)?c.canMatch(t,r):e.runInContext(()=>c(t,r)))})).pipe(wr(),Mb()):ae(!0)}(n,t,r).pipe(we(s=>!0===s?a:{...q7}))):ae(a)}function K7(e,t,r){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||r.length>0)?{...q7}:{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};const i=(t.matcher||_J)(r,e,t);if(!i)return{...q7};const a={};Object.entries(i.posParams??{}).forEach(([c,o])=>{a[c]=o.path});const s=i.consumed.length>0?{...a,...i.consumed[i.consumed.length-1].parameters}:a;return{matched:!0,consumedSegments:i.consumed,remainingSegments:r.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function Hb(e,t,r,n){return r.length>0&&function jX(e,t,r){return r.some(n=>Zo(e,t,n)&&kt(n)!==Ce)}(e,r,n)?{segmentGroup:new $e(t,UX(n,new $e(r,e.children))),slicedSegments:[]}:0===r.length&&function GX(e,t,r){return r.some(n=>Zo(e,t,n))}(e,r,n)?{segmentGroup:new $e(e.segments,BX(e,0,r,n,e.children)),slicedSegments:r}:{segmentGroup:new $e(e.segments,e.children),slicedSegments:r}}function BX(e,t,r,n,i){const a={};for(const s of n)if(Zo(e,r,s)&&!i[kt(s)]){const c=new $e([],{});a[kt(s)]=c}return{...i,...a}}function UX(e,t){const r={};r[Ce]=t;for(const n of e)if(""===n.path&&kt(n)!==Ce){const i=new $e([],{});r[kt(n)]=i}return r}function Zo(e,t,r){return(!(e.hasChildren()||t.length>0)||"full"!==r.pathMatch)&&""===r.path}class KX{constructor(t,r,n,i,a,s,c){this.injector=t,this.configLoader=r,this.rootComponentType=n,this.config=i,this.urlTree=a,this.paramsInheritanceStrategy=s,this.urlSerializer=c,this.allowRedirects=!0,this.applyRedirects=new PX(this.urlSerializer,this.urlTree)}noMatchError(t){return new F(4002,!1)}recognize(){const t=Hb(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,Ce).pipe(j4(r=>{if(r instanceof yb)return this.allowRedirects=!1,this.urlTree=r.urlTree,this.match(r.urlTree);throw r instanceof Yo?this.noMatchError(r):r}),we(r=>{const n=new $o([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Ce,this.rootComponentType,null,{}),i=new xn(n,r),a=new ub("",i),s=function kJ(e,t,r=null,n=null){return Xy(Jy(e),t,r,n)}(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,a.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(a._root),{state:a,tree:s}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t.root,Ce).pipe(j4(n=>{throw n instanceof Yo?this.noMatchError(n):n}))}inheritParamsAndData(t){const r=t.value,n=fb(r,this.paramsInheritanceStrategy);r.params=Object.freeze(n.params),r.data=Object.freeze(n.data),t.children.forEach(i=>this.inheritParamsAndData(i))}processSegmentGroup(t,r,n,i){return 0===n.segments.length&&n.hasChildren()?this.processChildren(t,r,n):this.processSegment(t,r,n,n.segments,i,!0)}processChildren(t,r,n){const i=[];for(const a of Object.keys(n.children))"primary"===a?i.unshift(a):i.push(a);return Q1(i).pipe(va(a=>{const s=n.children[a],c=function hX(e,t){const r=e.filter(n=>kt(n)===t);return r.push(...e.filter(n=>kt(n)!==t)),r}(r,a);return this.processSegmentGroup(t,c,s,a)}),function mJ(e,t){return u1(function pJ(e,t,r,n,i){return(a,s)=>{let c=r,o=t,l=0;a.subscribe(qe(s,f=>{const d=l++;o=c?e(o,f,d):(c=!0,f),n&&s.next(o)},i&&(()=>{c&&s.next(o),s.complete()})))}}(e,t,arguments.length>=2,!0))}((a,s)=>(a.push(...s),a)),Ro(null),function gJ(e,t){const r=arguments.length>=2;return n=>n.pipe(e?N1((i,a)=>e(i,a,n)):bt,x7(1),r?Ro(t):Py(()=>new Oo))}(),F1(a=>{if(null===a)return Vr(n);const s=wb(a);return function YX(e){e.sort((t,r)=>t.value.outlet===Ce?-1:r.value.outlet===Ce?1:t.value.outlet.localeCompare(r.value.outlet))}(s),ae(s)}))}processSegment(t,r,n,i,a,s){return Q1(r).pipe(va(c=>this.processSegmentAgainstRoute(c._injector??t,r,c,n,i,a,s).pipe(j4(o=>{if(o instanceof Yo)return ae(null);throw o}))),U4(c=>!!c),j4(c=>{if(Cb(c))return function WX(e,t,r){return 0===t.length&&!e.children[r]}(n,i,a)?ae([]):Vr(n);throw c}))}processSegmentAgainstRoute(t,r,n,i,a,s,c){return function $X(e,t,r,n){return!!(kt(e)===n||n!==Ce&&Zo(t,r,e))&&("**"===e.path||K7(t,e,r).matched)}(n,i,a,s)?void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,i,n,a,s,c):c&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,i,r,n,a,s):Vr(i):Vr(i)}expandSegmentAgainstRouteUsingRedirect(t,r,n,i,a,s){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,r,n,i,a,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,r,n,i){const a=this.applyRedirects.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?bb(a):this.applyRedirects.lineralizeSegments(n,a).pipe(F1(s=>{const c=new $e(s,{});return this.processSegment(t,r,c,s,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,r,n,i,a,s){const{matched:c,consumedSegments:o,remainingSegments:l,positionalParamSegments:f}=K7(r,i,a);if(!c)return Vr(r);const d=this.applyRedirects.applyRedirectCommands(o,i.redirectTo,f);return i.redirectTo.startsWith("/")?bb(d):this.applyRedirects.lineralizeSegments(i,d).pipe(F1(p=>this.processSegment(t,n,r,p.concat(l),s,!1)))}matchSegmentAgainstRoute(t,r,n,i,a,s){let c;if("**"===n.path){const o=i.length>0?By(i).parameters:{};c=ae({snapshot:new $o(i,o,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Vb(n),kt(n),n.component??n._loadedComponent??null,n,zb(n)),consumedSegments:[],remainingSegments:[]}),r.children={}}else c=FX(r,n,i,t).pipe(we(({matched:o,consumedSegments:l,remainingSegments:f,parameters:d})=>o?{snapshot:new $o(l,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Vb(n),kt(n),n.component??n._loadedComponent??null,n,zb(n)),consumedSegments:l,remainingSegments:f}:null));return c.pipe(Ht(o=>null===o?Vr(r):this.getChildConfig(t=n._injector??t,n,i).pipe(Ht(({routes:l})=>{const f=n._loadedInjector??t,{snapshot:d,consumedSegments:p,remainingSegments:g}=o,{segmentGroup:w,slicedSegments:z}=Hb(r,p,g,l);if(0===z.length&&w.hasChildren())return this.processChildren(f,l,w).pipe(we(T=>null===T?null:[new xn(d,T)]));if(0===l.length&&0===z.length)return ae([new xn(d,[])]);const L=kt(n)===a;return this.processSegment(f,l,w,z,L?Ce:a,!0).pipe(we(T=>[new xn(d,T)]))}))))}getChildConfig(t,r,n){return r.children?ae({routes:r.children,injector:t}):r.loadChildren?void 0!==r._loadedRoutes?ae({routes:r._loadedRoutes,injector:r._loadedInjector}):function IX(e,t,r,n){const i=t.canLoad;return void 0===i||0===i.length?ae(!0):ae(i.map(s=>{const c=Hr(s,e);return n4(function yX(e){return e&&Aa(e.canLoad)}(c)?c.canLoad(t,r):e.runInContext(()=>c(t,r)))})).pipe(wr(),Mb())}(t,r,n).pipe(F1(i=>i?this.configLoader.loadChildren(t,r).pipe(q1(a=>{r._loadedRoutes=a.routes,r._loadedInjector=a.injector})):function kX(e){return ga(mb(!1,3))}())):ae({routes:[],injector:t})}}function ZX(e){const t=e.value.routeConfig;return t&&""===t.path}function wb(e){const t=[],r=new Set;for(const n of e){if(!ZX(n)){t.push(n);continue}const i=t.find(a=>n.value.routeConfig===a.value.routeConfig);void 0!==i?(i.children.push(...n.children),r.add(i)):t.push(n)}for(const n of r){const i=wb(n.children);t.push(new xn(n.value,i))}return t.filter(n=>!r.has(n))}function Vb(e){return e.data||{}}function zb(e){return e.resolve||{}}function Db(e){return"string"==typeof e.title||null===e.title}function Y7(e){return Ht(t=>{const r=e(t);return r?Q1(r).pipe(we(()=>t)):ae(t)})}const zr=new te("ROUTES");let Z7=(()=>{var e;class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=J(Lg)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return ae(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);const i=n4(n.loadComponent()).pipe(we(Sb),q1(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),N7(()=>{this.componentLoaders.delete(n)})),a=new ky(i,()=>new ue).pipe(L7());return this.componentLoaders.set(n,a),a}loadChildren(n,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return ae({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const s=function ree(e,t,r,n){return n4(e.loadChildren()).pipe(we(Sb),F1(i=>i instanceof km||Array.isArray(i)?ae(i):Q1(t.compileModuleAsync(i))),we(i=>{n&&n(e);let a,s,c=!1;return Array.isArray(i)?(s=i,!0):(a=i.create(r).injector,s=a.get(zr,[],{optional:!0,self:!0}).flat()),{routes:s.map(W7),injector:a}}))}(i,this.compiler,n,this.onLoadEndListener).pipe(N7(()=>{this.childrenLoaders.delete(i)})),c=new ky(s,()=>new ue).pipe(L7());return this.childrenLoaders.set(i,c),c}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function Sb(e){return function iee(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let Qo=(()=>{var e;class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new ue,this.transitionAbortSubject=new ue,this.configLoader=J(Z7),this.environmentInjector=J(k2),this.urlSerializer=J(Ma),this.rootContexts=J(Da),this.inputBindingEnabled=null!==J(Wo,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>ae(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=a=>this.events.next(new ZJ(a)),this.configLoader.onLoadStartListener=a=>this.events.next(new YJ(a))}complete(){this.transitions?.complete()}handleNavigationRequest(n){const i=++this.navigationId;this.transitions?.next({...this.transitions.value,...n,id:i})}setupNavigations(n,i,a){return this.transitions=new ft({id:0,currentUrlTree:i,currentRawUrl:i,currentBrowserUrl:i,extractedUrl:n.urlHandlingStrategy.extract(i),urlAfterRedirects:n.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:wa,restoredState:null,currentSnapshot:a.snapshot,targetSnapshot:null,currentRouterState:a,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(N1(s=>0!==s.id),we(s=>({...s,extractedUrl:n.urlHandlingStrategy.extract(s.rawUrl)})),Ht(s=>{this.currentTransition=s;let c=!1,o=!1;return ae(s).pipe(q1(l=>{this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Ht(l=>{const f=l.currentBrowserUrl.toString(),d=!n.navigated||l.extractedUrl.toString()!==f||f!==l.currentUrlTree.toString();if(!d&&"reload"!==(l.extras.onSameUrlNavigation??n.onSameUrlNavigation)){const g="";return this.events.next(new yr(l.id,this.urlSerializer.serialize(l.rawUrl),g,0)),l.resolve(null),lt}if(n.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return ae(l).pipe(Ht(g=>{const w=this.transitions?.getValue();return this.events.next(new Va(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),w!==this.transitions?.getValue()?lt:Promise.resolve(g)}),function QX(e,t,r,n,i,a){return F1(s=>function qX(e,t,r,n,i,a,s="emptyOnly"){return new KX(e,t,r,n,i,s,a).recognize()}(e,t,r,n,s.extractedUrl,i,a).pipe(we(({state:c,tree:o})=>({...s,targetSnapshot:c,urlAfterRedirects:o}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,n.paramsInheritanceStrategy),q1(g=>{s.targetSnapshot=g.targetSnapshot,s.urlAfterRedirects=g.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:g.urlAfterRedirects};const w=new ab(g.id,this.urlSerializer.serialize(g.extractedUrl),this.urlSerializer.serialize(g.urlAfterRedirects),g.targetSnapshot);this.events.next(w)}));if(d&&n.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){const{id:g,extractedUrl:w,source:z,restoredState:L,extras:T}=l,S=new Va(g,this.urlSerializer.serialize(w),z,L);this.events.next(S);const B=lb(0,this.rootComponentType).snapshot;return this.currentTransition=s={...l,targetSnapshot:B,urlAfterRedirects:w,extras:{...T,skipLocationChange:!1,replaceUrl:!1}},ae(s)}{const g="";return this.events.next(new yr(l.id,this.urlSerializer.serialize(l.extractedUrl),g,1)),l.resolve(null),lt}}),q1(l=>{const f=new $J(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(f)}),we(l=>(this.currentTransition=s={...l,guards:gX(l.targetSnapshot,l.currentSnapshot,this.rootContexts)},s)),function DX(e,t){return F1(r=>{const{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:a,canDeactivateChecks:s}}=r;return 0===s.length&&0===a.length?ae({...r,guardsResult:!0}):function SX(e,t,r,n){return Q1(e).pipe(F1(i=>function TX(e,t,r,n,i){const a=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return a&&0!==a.length?ae(a.map(c=>{const o=La(t)??i,l=Hr(c,o);return n4(function wX(e){return e&&Aa(e.canDeactivate)}(l)?l.canDeactivate(e,t,r,n):o.runInContext(()=>l(e,t,r,n))).pipe(U4())})).pipe(wr()):ae(!0)}(i.component,i.route,r,t,n)),U4(i=>!0!==i,!0))}(s,n,i,e).pipe(F1(c=>c&&function MX(e){return"boolean"==typeof e}(c)?function LX(e,t,r,n){return Q1(t).pipe(va(i=>$i(function NX(e,t){return null!==e&&t&&t(new QJ(e)),ae(!0)}(i.route.parent,n),function xX(e,t){return null!==e&&t&&t(new XJ(e)),ae(!0)}(i.route,n),function EX(e,t,r){const n=t[t.length-1],a=t.slice(0,t.length-1).reverse().map(s=>function vX(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(s)).filter(s=>null!==s).map(s=>Ry(()=>ae(s.guards.map(o=>{const l=La(s.node)??r,f=Hr(o,l);return n4(function HX(e){return e&&Aa(e.canActivateChild)}(f)?f.canActivateChild(n,e):l.runInContext(()=>f(n,e))).pipe(U4())})).pipe(wr())));return ae(a).pipe(wr())}(e,i.path,r),function AX(e,t,r){const n=t.routeConfig?t.routeConfig.canActivate:null;if(!n||0===n.length)return ae(!0);const i=n.map(a=>Ry(()=>{const s=La(t)??r,c=Hr(a,s);return n4(function bX(e){return e&&Aa(e.canActivate)}(c)?c.canActivate(t,e):s.runInContext(()=>c(t,e))).pipe(U4())}));return ae(i).pipe(wr())}(e,i.route,r))),U4(i=>!0!==i,!0))}(n,a,e,t):ae(c)),we(c=>({...r,guardsResult:c})))})}(this.environmentInjector,l=>this.events.next(l)),q1(l=>{if(s.guardsResult=l.guardsResult,$4(l.guardsResult))throw pb(0,l.guardsResult);const f=new WJ(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(f)}),N1(l=>!!l.guardsResult||(this.cancelNavigationTransition(l,"",3),!1)),Y7(l=>{if(l.guards.canActivateChecks.length)return ae(l).pipe(q1(f=>{const d=new qJ(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(d)}),Ht(f=>{let d=!1;return ae(f).pipe(function JX(e,t){return F1(r=>{const{targetSnapshot:n,guards:{canActivateChecks:i}}=r;if(!i.length)return ae(r);let a=0;return Q1(i).pipe(va(s=>function XX(e,t,r,n){const i=e.routeConfig,a=e._resolve;return void 0!==i?.title&&!Db(i)&&(a[_a]=i.title),function eee(e,t,r,n){const i=function tee(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===i.length)return ae({});const a={};return Q1(i).pipe(F1(s=>function nee(e,t,r,n){const i=La(t)??n,a=Hr(e,i);return n4(a.resolve?a.resolve(t,r):i.runInContext(()=>a(t,r)))}(e[s],t,r,n).pipe(U4(),q1(c=>{a[s]=c}))),x7(1),oC(a),j4(s=>Cb(s)?lt:ga(s)))}(a,e,t,n).pipe(we(s=>(e._resolvedData=s,e.data=fb(e,r).resolve,i&&Db(i)&&(e.data[_a]=i.title),null)))}(s.route,n,e,t)),q1(()=>a++),x7(1),F1(s=>a===i.length?ae(r):lt))})}(n.paramsInheritanceStrategy,this.environmentInjector),q1({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(f,"",2)}}))}),q1(f=>{const d=new KJ(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(d)}))}),Y7(l=>{const f=d=>{const p=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&p.push(this.configLoader.loadComponent(d.routeConfig).pipe(q1(g=>{d.component=g}),we(()=>{})));for(const g of d.children)p.push(...f(g));return p};return S7(f(l.targetSnapshot.root)).pipe(Ro(),e2(1))}),Y7(()=>this.afterPreactivation()),we(l=>{const f=function aX(e,t,r){const n=Sa(e,t._root,r?r._root:void 0);return new ob(n,t)}(n.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=s={...l,targetRouterState:f},s}),q1(()=>{this.events.next(new R7)}),((e,t,r,n)=>we(i=>(new mX(t,i.targetRouterState,i.currentRouterState,r,n).activate(e),i)))(this.rootContexts,n.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),e2(1),q1({next:l=>{c=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new r4(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),n.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{c=!0}}),R1(this.transitionAbortSubject.pipe(q1(l=>{throw l}))),N7(()=>{c||o||this.cancelNavigationTransition(s,"",1),this.currentNavigation?.id===s.id&&(this.currentNavigation=null)}),j4(l=>{if(o=!0,gb(l))this.events.next(new za(s.id,this.urlSerializer.serialize(s.extractedUrl),l.message,l.cancellationCode)),function oX(e){return gb(e)&&$4(e.url)}(l)?this.events.next(new k7(l.url)):s.resolve(!1);else{this.events.next(new Go(s.id,this.urlSerializer.serialize(s.extractedUrl),l,s.targetSnapshot??void 0));try{s.resolve(n.errorHandler(l))}catch(f){s.reject(f)}}return lt}))}))}cancelNavigationTransition(n,i,a){const s=new za(n.id,this.urlSerializer.serialize(n.extractedUrl),i,a);this.events.next(s),n.resolve(!1)}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function Lb(e){return e!==wa}let xb=(()=>{var e;class t{buildTitle(n){let i,a=n.root;for(;void 0!==a;)i=this.getResolvedTitleForRoute(a)??i,a=a.children.find(s=>s.outlet===Ce);return i}getResolvedTitleForRoute(n){return n.data[_a]}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:function(){return J(aee)},providedIn:"root"}),t})(),aee=(()=>{var e;class t extends xb{constructor(n){super(),this.title=n}updateTitle(n){const i=this.buildTitle(n);void 0!==i&&this.title.setTitle(i)}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(Zv))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),see=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:function(){return J(oee)},providedIn:"root"}),t})();class cee{shouldDetach(t){return!1}store(t,r){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,r){return t.routeConfig===r.routeConfig}}let oee=(()=>{var e;class t extends cee{}return(e=t).\u0275fac=function(){let r;return function(i){return(r||(r=I1(e)))(i||e)}}(),e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const Jo=new te("",{providedIn:"root",factory:()=>({})});let lee=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:function(){return J(fee)},providedIn:"root"}),t})(),fee=(()=>{var e;class t{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,i){return n}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();var Ea=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(Ea||{});function Nb(e,t){e.events.pipe(N1(r=>r instanceof r4||r instanceof za||r instanceof Go||r instanceof yr),we(r=>r instanceof r4||r instanceof yr?Ea.COMPLETE:r instanceof za&&(0===r.code||1===r.code)?Ea.REDIRECTING:Ea.FAILED),N1(r=>r!==Ea.REDIRECTING),e2(1)).subscribe(()=>{t()})}function uee(e){throw e}function dee(e,t,r){return t.parse("/")}const hee={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},pee={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let _2=(()=>{var e;class t{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=J(Dg),this.isNgZoneEnabled=!1,this._events=new ue,this.options=J(Jo,{optional:!0})||{},this.pendingTasks=J(Sg),this.errorHandler=this.options.errorHandler||uee,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||dee,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=J(lee),this.routeReuseStrategy=J(see),this.titleStrategy=J(xb),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=J(zr,{optional:!0})?.flat()??[],this.navigationTransitions=J(Qo),this.urlSerializer=J(Ma),this.location=J(Ll),this.componentInputBindingEnabled=!!J(Wo,{optional:!0}),this.eventsSubscription=new De,this.isNgZoneEnabled=J(ye)instanceof ye&&ye.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Mr,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=lb(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(n=>{this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId},n=>{this.console.warn(`Unhandled Navigation Error: ${n}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const n=this.navigationTransitions.events.subscribe(i=>{try{const{currentTransition:a}=this.navigationTransitions;if(null===a)return void(Ab(i)&&this._events.next(i));if(i instanceof Va)Lb(a.source)&&(this.browserUrlTree=a.extractedUrl);else if(i instanceof yr)this.rawUrlTree=a.rawUrl;else if(i instanceof ab){if("eager"===this.urlUpdateStrategy){if(!a.extras.skipLocationChange){const s=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl);this.setBrowserUrl(s,a)}this.browserUrlTree=a.urlAfterRedirects}}else if(i instanceof R7)this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects);else if(i instanceof za)0!==i.code&&1!==i.code&&(this.navigated=!0),(3===i.code||2===i.code)&&this.restoreHistory(a);else if(i instanceof k7){const s=this.urlHandlingStrategy.merge(i.url,a.currentRawUrl),c={skipLocationChange:a.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Lb(a.source)};this.scheduleNavigation(s,wa,null,c,{resolve:a.resolve,reject:a.reject,promise:a.promise})}i instanceof Go&&this.restoreHistory(a,!0),i instanceof r4&&(this.navigated=!0),Ab(i)&&this._events.next(i)}catch(a){this.navigationTransitions.transitionAbortSubject.next(a)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const n=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),wa,n)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(n=>{const i="popstate"===n.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{this.navigateToSyncWithBrowser(n.url,i,n.state)},0)}))}navigateToSyncWithBrowser(n,i,a){const s={replaceUrl:!0},c=a?.navigationId?a:null;if(a){const l={...a};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(s.state=l)}const o=this.parseUrl(n);this.scheduleNavigation(o,i,c,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(W7),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,i={}){const{relativeTo:a,queryParams:s,fragment:c,queryParamsHandling:o,preserveFragment:l}=i,f=l?this.currentUrlTree.fragment:c;let p,d=null;switch(o){case"merge":d={...this.currentUrlTree.queryParams,...s};break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}null!==d&&(d=this.removeEmptyProps(d));try{p=Jy(a?a.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof n[0]||!n[0].startsWith("/"))&&(n=[]),p=this.currentUrlTree.root}return Xy(p,n,d,f??null)}navigateByUrl(n,i={skipLocationChange:!1}){const a=$4(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(a,this.rawUrlTree);return this.scheduleNavigation(s,wa,null,i)}navigate(n,i={skipLocationChange:!1}){return function mee(e){for(let t=0;t<e.length;t++)if(null==e[t])throw new F(4008,!1)}(n),this.navigateByUrl(this.createUrlTree(n,i),i)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){let i;try{i=this.urlSerializer.parse(n)}catch(a){i=this.malformedUriErrorHandler(a,this.urlSerializer,n)}return i}isActive(n,i){let a;if(a=!0===i?{...hee}:!1===i?{...pee}:i,$4(n))return jy(this.currentUrlTree,n,a);const s=this.parseUrl(n);return jy(this.currentUrlTree,s,a)}removeEmptyProps(n){return Object.keys(n).reduce((i,a)=>{const s=n[a];return null!=s&&(i[a]=s),i},{})}scheduleNavigation(n,i,a,s,c){if(this.disposed)return Promise.resolve(!1);let o,l,f;c?(o=c.resolve,l=c.reject,f=c.promise):f=new Promise((p,g)=>{o=p,l=g});const d=this.pendingTasks.add();return Nb(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:a,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:n,extras:s,resolve:o,reject:l,promise:f,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),f.catch(p=>Promise.reject(p))}setBrowserUrl(n,i){const a=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(a)||i.extras.replaceUrl){const c={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId)};this.location.replaceState(a,"",c)}else{const s={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId+1)};this.location.go(a,"",s)}}restoreHistory(n,i=!1){if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-this.browserPageId;0!==s?this.location.historyGo(s):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===s&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,i){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:i}:{navigationId:n}}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function Ab(e){return!(e instanceof R7||e instanceof k7)}let cn=(()=>{var e;class t{constructor(n,i,a,s,c,o){this.router=n,this.route=i,this.tabIndexAttribute=a,this.renderer=s,this.el=c,this.locationStrategy=o,this.href=null,this.commands=null,this.onChanges=new ue,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const l=c.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=n.events.subscribe(f=>{f instanceof r4&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){null!=n?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,i,a,s,c){return!!(null===this.urlTree||this.isAnchorElement&&(0!==n||i||a||s||c||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const n=null===this.href?null:function Ud(e,t,r){return function EI(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Bd:L3}(t,r)(e)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(n,i){const a=this.renderer,s=this.el.nativeElement;null!==i?a.setAttribute(s,n,i):a.removeAttribute(s,n)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return(e=t).\u0275fac=function(n){return new(n||e)(H(_2),H(Nn),function h4(e){return function QE(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const r=e.attrs;if(r){const n=r.length;let i=0;for(;i<n;){const a=r[i];if(Tu(a))break;if(0===a)i+=2;else if("number"==typeof a)for(i++;i<n&&"string"==typeof r[i];)i++;else{if(a===t)return r[i+1];i+=2}}}return null}(c2(),e)}("tabindex"),H(o2),H(Ne),H(Wn))},e.\u0275dir=W({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,i){1&n&&I("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),2&n&&j("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",nr],skipLocationChange:["skipLocationChange","skipLocationChange",nr],replaceUrl:["replaceUrl","replaceUrl",nr],routerLink:"routerLink"},standalone:!0,features:[tp,_1]}),t})();class Eb{}let _ee=(()=>{var e;class t{constructor(n,i,a,s,c){this.router=n,this.injector=a,this.preloadingStrategy=s,this.loader=c}setUpPreloading(){this.subscription=this.router.events.pipe(N1(n=>n instanceof r4),va(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,i){const a=[];for(const s of i){s.providers&&!s._injector&&(s._injector=Y8(s.providers,n,`Route: ${s.path}`));const c=s._injector??n,o=s._loadedInjector??c;(s.loadChildren&&!s._loadedRoutes&&void 0===s.canLoad||s.loadComponent&&!s._loadedComponent)&&a.push(this.preloadConfig(c,s)),(s.children||s._loadedRoutes)&&a.push(this.processRoutes(o,s.children??s._loadedRoutes))}return Q1(a).pipe(n3())}preloadConfig(n,i){return this.preloadingStrategy.preload(i,()=>{let a;a=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(n,i):ae(null);const s=a.pipe(F1(c=>null===c?ae(void 0):(i._loadedRoutes=c.routes,i._loadedInjector=c.injector,this.processRoutes(c.injector??n,c.routes))));return i.loadComponent&&!i._loadedComponent?Q1([s,this.loader.loadComponent(i)]).pipe(n3()):s})}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(_2),Y(Lg),Y(k2),Y(Eb),Y(Z7))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const Q7=new te("");let Tb=(()=>{var e;class t{constructor(n,i,a,s,c={}){this.urlSerializer=n,this.transitions=i,this.viewportScroller=a,this.zone=s,this.options=c,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},c.scrollPositionRestoration=c.scrollPositionRestoration||"disabled",c.anchorScrolling=c.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof Va?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof r4?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof yr&&0===n.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof sb&&(n.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new sb(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return(e=t).\u0275fac=function(n){!function Sh(){throw new Error("invalid")}()},e.\u0275prov=K({token:e,factory:e.\u0275fac}),t})();function An(e,t){return{\u0275kind:e,\u0275providers:t}}function Ob(){const e=J(B1);return t=>{const r=e.get(en);if(t!==r.components[0])return;const n=e.get(_2),i=e.get(Rb);1===e.get(J7)&&n.initialNavigation(),e.get(kb,null,Ve.Optional)?.setUpPreloading(),e.get(Q7,null,Ve.Optional)?.init(),n.resetRootComponentType(r.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}const Rb=new te("",{factory:()=>new ue}),J7=new te("",{providedIn:"root",factory:()=>1}),kb=new te("");function bee(e){return An(0,[{provide:kb,useExisting:_ee},{provide:Eb,useExisting:e}])}const Pb=new te("ROUTER_FORROOT_GUARD"),wee=[Ll,{provide:Ma,useClass:A7},_2,Da,{provide:Nn,useFactory:function Ib(e){return e.routerState.root},deps:[_2]},Z7,[]];function Vee(){return new Og("Router",_2)}let Fb=(()=>{var e;class t{constructor(n){}static forRoot(n,i){return{ngModule:t,providers:[wee,[],{provide:zr,multi:!0,useValue:n},{provide:Pb,useFactory:Lee,deps:[[_2,new bs,new Hs]]},{provide:Jo,useValue:i||{}},i?.useHash?{provide:Wn,useClass:hv}:{provide:Wn,useClass:dv},{provide:Q7,useFactory:()=>{const e=J(Aj),t=J(ye),r=J(Jo),n=J(Qo),i=J(Ma);return r.scrollOffset&&e.setOffset(r.scrollOffset),new Tb(i,n,e,t,r)}},i?.preloadingStrategy?bee(i.preloadingStrategy).\u0275providers:[],{provide:Og,multi:!0,useFactory:Vee},i?.initialNavigation?xee(i):[],i?.bindToComponentInputs?An(8,[hb,{provide:Wo,useExisting:hb}]).\u0275providers:[],[{provide:Bb,useFactory:Ob},{provide:_l,multi:!0,useExisting:Bb}]]}}static forChild(n){return{ngModule:t,providers:[{provide:zr,multi:!0,useValue:n}]}}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(Pb,8))},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})();function Lee(e){return"guarded"}function xee(e){return["disabled"===e.initialNavigation?An(3,[{provide:fl,multi:!0,useFactory:()=>{const t=J(_2);return()=>{t.setUpLocationChangeListener()}}},{provide:J7,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?An(2,[{provide:J7,useValue:0},{provide:fl,multi:!0,deps:[B1],useFactory:t=>{const r=t.get(dU,Promise.resolve());return()=>r.then(()=>new Promise(n=>{const i=t.get(_2),a=t.get(Rb);Nb(i,()=>{n(!0)}),t.get(Qo).afterPreactivation=()=>(n(!0),a.closed?ae(void 0):a),i.initialNavigation()}))}}]).\u0275providers:[]]}const Bb=new te("");let Aee=(()=>{var e;class t{constructor(){V(this,"title","config-ui"),V(this,"logoSrc","assets/images/homebridge-eufy-security.png")}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)}),V(t,"\u0275cmp",se({type:e,selectors:[["app-root"]],decls:16,vars:1,consts:[[1,"card","card-body",2,"width","100%"],[1,"logo"],[1,"logo",3,"src"],[1,"text-center"],[2,"font-weight","800"],[1,"pluginContent",2,"max-width","720px !important"],[1,"footer"]],template:function(n,i){1&n&&(m(0,"div",0)(1,"div",1),k(2,"img",2),v(),m(3,"h3",3),y(4," Welcome to"),k(5,"br"),m(6,"b",4),y(7,"Eufy Security Plugin"),v()(),m(8,"h6",3),y(9,"Homebridge plugin for Eufy Security Devices"),v(),k(10,"hr"),m(11,"div",5),k(12,"router-outlet"),v(),k(13,"hr"),m(14,"div",6),y(15,"We are not affiliated, associated, authorized, endorsed by, or in any way officially connected with Anker Innovations Technology Co.LTd, and Shenzhen Oceanwing Smart Innovations Technology Co., Ltd, and its affiliated companies within the Anker Group, or any of its subsidiaries or its affiliates. "),v()()),2&n&&(C(2),M("src",i.logoSrc,L3))},dependencies:[G7],styles:["div.logo[_ngcontent-%COMP%]{text-align:center;margin:0 0 5px}img.logo[_ngcontent-%COMP%]{text-align:center;margin:0 auto;max-width:75%;height:auto;object-fit:cover}.footer[_ngcontent-%COMP%]{font-size:small;color:#888}"]})),t})();function Ub(e,t,r,n,i,a,s){try{var c=e[a](s),o=c.value}catch(l){return void r(l)}c.done?t(o):Promise.resolve(o).then(n,i)}function ve(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var a=e.apply(t,r);function s(o){Ub(a,n,i,s,c,"next",o)}function c(o){Ub(a,n,i,s,c,"throw",o)}s(void 0)})}}var Jb={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"]},ow={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"]},_f={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"]},yz={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"]},Pf={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"]},SL={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"]},N=function(e){return e[e.STATION=0]="STATION",e[e.CAMERA=1]="CAMERA",e[e.SENSOR=2]="SENSOR",e[e.FLOODLIGHT=3]="FLOODLIGHT",e[e.CAMERA_E=4]="CAMERA_E",e[e.DOORBELL=5]="DOORBELL",e[e.BATTERY_DOORBELL=7]="BATTERY_DOORBELL",e[e.CAMERA2C=8]="CAMERA2C",e[e.CAMERA2=9]="CAMERA2",e[e.MOTION_SENSOR=10]="MOTION_SENSOR",e[e.KEYPAD=11]="KEYPAD",e[e.CAMERA2_PRO=14]="CAMERA2_PRO",e[e.CAMERA2C_PRO=15]="CAMERA2C_PRO",e[e.BATTERY_DOORBELL_2=16]="BATTERY_DOORBELL_2",e[e.HB3=18]="HB3",e[e.CAMERA3=19]="CAMERA3",e[e.CAMERA3C=23]="CAMERA3C",e[e.INDOOR_CAMERA=30]="INDOOR_CAMERA",e[e.INDOOR_PT_CAMERA=31]="INDOOR_PT_CAMERA",e[e.SOLO_CAMERA=32]="SOLO_CAMERA",e[e.SOLO_CAMERA_PRO=33]="SOLO_CAMERA_PRO",e[e.INDOOR_CAMERA_1080=34]="INDOOR_CAMERA_1080",e[e.INDOOR_PT_CAMERA_1080=35]="INDOOR_PT_CAMERA_1080",e[e.FLOODLIGHT_CAMERA_8422=37]="FLOODLIGHT_CAMERA_8422",e[e.FLOODLIGHT_CAMERA_8423=38]="FLOODLIGHT_CAMERA_8423",e[e.FLOODLIGHT_CAMERA_8424=39]="FLOODLIGHT_CAMERA_8424",e[e.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT=44]="INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT",e[e.INDOOR_OUTDOOR_CAMERA_2K=45]="INDOOR_OUTDOOR_CAMERA_2K",e[e.INDOOR_OUTDOOR_CAMERA_1080P=46]="INDOOR_OUTDOOR_CAMERA_1080P",e[e.LOCK_BLE=50]="LOCK_BLE",e[e.LOCK_WIFI=51]="LOCK_WIFI",e[e.LOCK_BLE_NO_FINGER=52]="LOCK_BLE_NO_FINGER",e[e.LOCK_WIFI_NO_FINGER=53]="LOCK_WIFI_NO_FINGER",e[e.LOCK_8503=54]="LOCK_8503",e[e.LOCK_8530=55]="LOCK_8530",e[e.LOCK_85A3=56]="LOCK_85A3",e[e.LOCK_8592=57]="LOCK_8592",e[e.LOCK_8504=58]="LOCK_8504",e[e.SOLO_CAMERA_SPOTLIGHT_1080=60]="SOLO_CAMERA_SPOTLIGHT_1080",e[e.SOLO_CAMERA_SPOTLIGHT_2K=61]="SOLO_CAMERA_SPOTLIGHT_2K",e[e.SOLO_CAMERA_SPOTLIGHT_SOLAR=62]="SOLO_CAMERA_SPOTLIGHT_SOLAR",e[e.SMART_DROP=90]="SMART_DROP",e[e.BATTERY_DOORBELL_PLUS=91]="BATTERY_DOORBELL_PLUS",e[e.DOORBELL_SOLO=93]="DOORBELL_SOLO",e[e.INDOOR_COST_DOWN_CAMERA=100]="INDOOR_COST_DOWN_CAMERA",e[e.CAMERA_GUN=101]="CAMERA_GUN",e[e.CAMERA_SNAIL=102]="CAMERA_SNAIL",e[e.CAMERA_FG=110]="CAMERA_FG",e[e.CAMERA_GARAGE_T8453_COMMON=131]="CAMERA_GARAGE_T8453_COMMON",e[e.CAMERA_GARAGE_T8452=132]="CAMERA_GARAGE_T8452",e[e.CAMERA_GARAGE_T8453=133]="CAMERA_GARAGE_T8453",e[e.SMART_SAFE_7400=140]="SMART_SAFE_7400",e[e.SMART_SAFE_7401=141]="SMART_SAFE_7401",e[e.SMART_SAFE_7402=142]="SMART_SAFE_7402",e[e.SMART_SAFE_7403=143]="SMART_SAFE_7403",e[e.WALL_LIGHT_CAM=151]="WALL_LIGHT_CAM",e[e.SMART_TRACK_LINK=157]="SMART_TRACK_LINK",e[e.SMART_TRACK_CARD=159]="SMART_TRACK_CARD",e[e.LOCK_8502=180]="LOCK_8502",e[e.LOCK_8506=181]="LOCK_8506",e[e.WALL_LIGHT_CAM_81A0=10005]="WALL_LIGHT_CAM_81A0",e}(N||{});class W4{static isDoorbell(t){return t===N.DOORBELL||t===N.BATTERY_DOORBELL||t===N.BATTERY_DOORBELL_2||t===N.BATTERY_DOORBELL_PLUS||t===N.DOORBELL_SOLO}static isCamera(t){return t===N.CAMERA||t===N.CAMERA2||t===N.CAMERA_E||t===N.CAMERA2C||t===N.INDOOR_CAMERA||t===N.INDOOR_PT_CAMERA||t===N.FLOODLIGHT||t===N.DOORBELL||t===N.BATTERY_DOORBELL||t===N.BATTERY_DOORBELL_2||t===N.BATTERY_DOORBELL_PLUS||t===N.DOORBELL_SOLO||t===N.CAMERA2C_PRO||t===N.CAMERA2_PRO||t===N.CAMERA3||t===N.CAMERA3C||t===N.INDOOR_CAMERA_1080||t===N.INDOOR_PT_CAMERA_1080||t===N.SOLO_CAMERA||t===N.SOLO_CAMERA_PRO||t===N.SOLO_CAMERA_SPOTLIGHT_1080||t===N.SOLO_CAMERA_SPOTLIGHT_2K||t===N.SOLO_CAMERA_SPOTLIGHT_SOLAR||t===N.INDOOR_OUTDOOR_CAMERA_1080P||t===N.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT||t===N.INDOOR_OUTDOOR_CAMERA_2K||t===N.INDOOR_COST_DOWN_CAMERA||t===N.FLOODLIGHT_CAMERA_8422||t===N.FLOODLIGHT_CAMERA_8423||t===N.FLOODLIGHT_CAMERA_8424||t===N.WALL_LIGHT_CAM||t===N.WALL_LIGHT_CAM_81A0||t===N.CAMERA_GARAGE_T8453_COMMON||t===N.CAMERA_GARAGE_T8453||t===N.CAMERA_GARAGE_T8452||t===N.CAMERA_FG}static isBatteryDoorbell(t){return t===N.BATTERY_DOORBELL||t===N.BATTERY_DOORBELL_2||t===N.BATTERY_DOORBELL_PLUS}static isWiredDoorbell(t){return t===N.DOORBELL}static supportsRTSP(t){return t===N.CAMERA||t===N.CAMERA2||t===N.CAMERA2C||t===N.CAMERA2C_PRO||t===N.CAMERA3||t===N.CAMERA3C||t===N.CAMERA_E||t===N.INDOOR_CAMERA||t===N.INDOOR_CAMERA_1080||t===N.INDOOR_OUTDOOR_CAMERA_1080P||t===N.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT||t===N.INDOOR_OUTDOOR_CAMERA_2K||t===N.INDOOR_PT_CAMERA||t===N.INDOOR_PT_CAMERA_1080||t===N.INDOOR_COST_DOWN_CAMERA||t===N.FLOODLIGHT_CAMERA_8423||t===N.CAMERA_GARAGE_T8453_COMMON||t===N.CAMERA_GARAGE_T8453||t===N.CAMERA_GARAGE_T8452||t===N.CAMERA_FG}static supportsTalkback(t){return t===N.CAMERA2||t===N.CAMERA2C||t===N.CAMERA2C_PRO||t===N.CAMERA2_PRO||t===N.CAMERA3||t===N.CAMERA3C||t===N.DOORBELL||t===N.BATTERY_DOORBELL||t===N.BATTERY_DOORBELL_2||t===N.BATTERY_DOORBELL_PLUS||t===N.DOORBELL_SOLO||t===N.INDOOR_CAMERA||t===N.INDOOR_CAMERA_1080||t===N.INDOOR_OUTDOOR_CAMERA_1080P||t===N.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT||t===N.INDOOR_OUTDOOR_CAMERA_2K||t===N.INDOOR_PT_CAMERA||t===N.INDOOR_PT_CAMERA_1080||t===N.INDOOR_COST_DOWN_CAMERA||t===N.SOLO_CAMERA||t===N.SOLO_CAMERA_PRO||t===N.SOLO_CAMERA_SPOTLIGHT_1080||t===N.SOLO_CAMERA_SPOTLIGHT_2K||t===N.SOLO_CAMERA_SPOTLIGHT_SOLAR||t===N.FLOODLIGHT||t===N.FLOODLIGHT_CAMERA_8422||t===N.FLOODLIGHT_CAMERA_8423||t===N.FLOODLIGHT_CAMERA_8424||t===N.WALL_LIGHT_CAM||t===N.WALL_LIGHT_CAM_81A0||t===N.CAMERA_GARAGE_T8453_COMMON||t===N.CAMERA_GARAGE_T8453||t===N.CAMERA_GARAGE_T8452||t===N.CAMERA_FG}}var vx=function(e){return e[e.CHARGING=1]="CHARGING",e[e.UNPLUGGED=2]="UNPLUGGED",e[e.PLUGGED=3]="PLUGGED",e[e.SOLAR_CHARGING=4]="SOLAR_CHARGING",e}(vx||{});const Yf=new Map([[N.STATION,{image:"homebase2_large.jpg",padding:"0px"}],[N.HB3,{image:"homebase3_large.jpg",padding:"0px"}],[N.CAMERA,{image:"eufycam_large.jpg",padding:"0px"}],[N.SENSOR,{image:"sensor_large.jpg",padding:"0px"}],[N.FLOODLIGHT,{image:"floodlight_large.jpg",padding:"0px"}],[N.CAMERA_E,{image:"eufycam_large.jpg",padding:"0px"}],[N.DOORBELL,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[N.BATTERY_DOORBELL,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[N.CAMERA2C,{image:"eufycam2c_large.jpg",padding:"0px"}],[N.CAMERA2,{image:"eufycam2_large.jpg",padding:"0px"}],[N.CAMERA3C,{image:"eufycam3c_large.jpg",padding:"0px"}],[N.CAMERA3,{image:"eufycam3_large.jpg",padding:"0px"}],[N.MOTION_SENSOR,{image:"motionsensor_large.jpg",padding:"0px"}],[N.KEYPAD,{image:"keypad_large.jpg",padding:"0px"}],[N.CAMERA2_PRO,{image:"eufycam2pro_large.jpg",padding:"0px"}],[N.CAMERA2C_PRO,{image:"eufycam2cpro_large.jpg",padding:"0px"}],[N.BATTERY_DOORBELL_2,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[N.INDOOR_CAMERA,{image:"indoorcammini_large.jpg",padding:"0px"}],[N.INDOOR_PT_CAMERA,{image:"indoorcamp24_large.jpg",padding:"0px"}],[N.SOLO_CAMERA,{image:"solocame20_large.jpg",padding:"0px"}],[N.SOLO_CAMERA_PRO,{image:"solocame20_large.jpg",padding:"0px"}],[N.INDOOR_CAMERA_1080,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[N.INDOOR_PT_CAMERA_1080,{image:"indoorcamp24_large.jpg",padding:"0px"}],[N.FLOODLIGHT_CAMERA_8422,{image:"floodlight_large.jpg",padding:"0px"}],[N.FLOODLIGHT_CAMERA_8423,{image:"floodlight2pro_large.jpg",padding:"0px"}],[N.FLOODLIGHT_CAMERA_8424,{image:"floodlight2_large.jpg",padding:"0px"}],[N.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[N.INDOOR_OUTDOOR_CAMERA_2K,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[N.INDOOR_OUTDOOR_CAMERA_1080P,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[N.LOCK_BLE,{image:"smartlock_touch_t8510_large.jpg",padding:"0px"}],[N.LOCK_WIFI,{image:"smartlock_touch_t8510_large.jpg",padding:"0px"}],[N.LOCK_BLE_NO_FINGER,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[N.LOCK_WIFI_NO_FINGER,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[N.LOCK_8503,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[N.LOCK_8530,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[N.LOCK_85A3,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[N.LOCK_8592,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[N.LOCK_8504,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[N.SOLO_CAMERA_SPOTLIGHT_1080,{image:"solooutdoorcamc24_large.jpg",padding:"15px"}],[N.SOLO_CAMERA_SPOTLIGHT_2K,{image:"solooutdoorcamc24_large.jpg",padding:"15px"}],[N.SOLO_CAMERA_SPOTLIGHT_SOLAR,{image:"solocams40_large.jpg",padding:"10px"}],[N.SMART_DROP,{image:"smartdrop_t8790_large.jpg",padding:"20px"}],[N.BATTERY_DOORBELL_PLUS,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[N.DOORBELL_SOLO,{image:"wireddoorbelldual_large.jpg",padding:"0px"}],[N.INDOOR_COST_DOWN_CAMERA,{image:"indoorcammini_large.jpg",padding:"0px"}],[N.CAMERA_GUN,{image:"unknown.png",padding:"20px"}],[N.CAMERA_SNAIL,{image:"unknown.png",padding:"20px"}],[N.CAMERA_FG,{image:"4g_lte_starlight_large.jpg",padding:"20px"}],[N.SMART_SAFE_7400,{image:"smartsafe_s10_t7400_large.jpg",padding:"20px"}],[N.SMART_SAFE_7401,{image:"smartsafe_s12_t7401_large.jpg",padding:"20px"}],[N.SMART_SAFE_7402,{image:"unknown.png",padding:"20px"}],[N.SMART_SAFE_7403,{image:"unknown.png",padding:"20px"}],[N.WALL_LIGHT_CAM,{image:"walllight_s100_large.jpg",padding:"20px"}],[N.SMART_TRACK_LINK,{image:"unknown.png",padding:"20px"}],[N.SMART_TRACK_CARD,{image:"unknown.png",padding:"20px"}],[N.LOCK_8502,{image:"unknown.png",padding:"20px"}],[N.LOCK_8506,{image:"unknown.png",padding:"20px"}],[N.WALL_LIGHT_CAM_81A0,{image:"walllight_s100_large",padding:"20px"}],[N.CAMERA_GARAGE_T8452,{image:"garage_camera_t8452_small.jpg",padding:"20px"}],[N.CAMERA_GARAGE_T8453,{image:"unknown.png",padding:"20px"}],[N.CAMERA_GARAGE_T8453_COMMON,{image:"unknown.png",padding:"20px"}]]);let Qe=(()=>{var e;class t extends EventTarget{constructor(){super(),V(this,"stations",[]),V(this,"devices",[]),V(this,"accessories$",X1(window.homebridge,"addAccessory")),V(this,"config",void 0),this.init()}init(){this.accessories$.subscribe(n=>{this.loadStoredAccessories()}),this.loadStoredAccessories()}getStations(){return this.stations}getDevices(){return this.devices}getStation(n){return this.stations.find(i=>i.uniqueId===n)}getDevice(n){return this.devices.find(i=>i.uniqueId===n)}loadStoredAccessories(){var n=this;return ve(function*(){try{const i=yield window.homebridge.request("/storedAccessories");return i.forEach(a=>{n.addAccessory(a)}),0!==i.length&&n.dispatchEvent(new Event("newAccessories")),Promise.resolve(0!==i.length)}catch(i){return Promise.reject(i)}})()}addAccessory(n){const i=n.station?this.stations:this.devices;i.find(a=>a.uniqueId===n.uniqueId)||i.push(n)}getConfig(){var n=this;return ve(function*(){return n.config?Promise.resolve(n.config):n.getPlatformConfig()})()}updateConfig(n,i){var a=this;return ve(function*(){try{yield window.homebridge.updatePluginConfig([n]),a.config=n,i&&(yield window.homebridge.savePluginConfig()),a.dispatchEvent(new Event("configChanged"))}catch(s){console.log("There was an error updating the credentials in your config: "+s)}})()}getPlatformConfig(){var n=this;return ve(function*(){try{const i=yield window.homebridge.getPluginConfig();return i.length>0?(n.config=i[0],n.config.platform="EufySecurity",Promise.resolve(i[0])):Promise.reject("Could not get Platform config")}catch(i){return Promise.reject(i)}})()}getCachedName(n){return ve(function*(){let a;return(yield window.homebridge.getCachedAccessories()).forEach(s=>{s.context&&s.context.device&&s.context.device.uniqueId===n.uniqueId&&s.context.device.station===n.station&&(a=s.context.device.displayName)}),Promise.resolve(a)})()}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)}),V(t,"\u0275prov",K({token:e,factory:e.\u0275fac,providedIn:"root"})),t})();function e_e(e,t){if(1&e){const r=M1();m(0,"div",2)(1,"h4",3),y(2,"Refresh stations and devices"),v(),m(3,"button",4),I("click",function(){return $(G(r).$implicit.dismiss("Cross click"))}),v()(),m(4,"div",5)(5,"div",6),y(6," To refresh all stations and devices you will be logged into your eufy account. This can interfere with the plugins connection to the eufy cloud. "),k(7,"p"),m(8,"b",7),y(9,"We strongly recommened that you restart the plugin after you're done with the configuration even if you didn't change any settings."),v(),k(10,"p"),y(11," Otherwise you might experience glitches like no longer working push notifications for the plugin (see "),m(12,"a",8),y(13,"here"),v(),y(14," for more information). "),v()(),m(15,"div",9)(16,"a",10),I("click",function(){return $(G(r).$implicit.close("Login"))}),y(17,"Login with eufy"),v()()}}function t_e(e,t){1&e&&(m(0,"div",11)(1,"div",12),k(2,"div",13),m(3,"div",14)(4,"div",15)(5,"div",16),y(6," Loading Accessories... "),m(7,"div",17),k(8,"div",18),v()()()(),k(9,"div",13),v()())}function n_e(e,t){if(1&e&&(m(0,"span",42),k(1,"fa-icon",43),v()),2&e){const r=x(3);C(1),M("icon",r.ignoreIcon)}}function r_e(e,t){if(1&e&&(m(0,"div",31)(1,"div",32)(2,"div",33)(3,"a",34)(4,"div",35),k(5,"img",36),m(6,"span",37),k(7,"fa-icon",38),v(),O(8,n_e,2,1,"span",39),v()()()(),m(9,"span",40),y(10),v(),m(11,"span",41),y(12),v()()),2&e){const r=t.$implicit,n=x(2);let i;C(3),Y3("routerLink","/stationConfig/",r.uniqueId,""),C(2),M("src","assets/devices/"+(n.DeviceImage.get(r.type)?null==(i=n.DeviceImage.get(r.type))?null:i.image:"unknown.png"),L3),j("style",n.getDevicePanelStyle(r),R2),C(2),M("icon",n.settingsIcon),C(1),M("ngIf",r.ignored),C(2),X2(r.cachedName?r.cachedName:r.displayName),C(2),F2("(",r.uniqueId,")")}}function i_e(e,t){if(1&e&&(m(0,"span",42),k(1,"fa-icon",43),v()),2&e){const r=x(3);C(1),M("icon",r.ignoreIcon)}}function a_e(e,t){if(1&e&&(m(0,"div",31)(1,"div",32)(2,"div",33)(3,"a",34)(4,"div",35),k(5,"img",36),m(6,"span",37),k(7,"fa-icon",38),v(),O(8,i_e,2,1,"span",39),v()()()(),m(9,"span",40),y(10),v(),m(11,"span",41),y(12),v()()),2&e){const r=t.$implicit,n=x(2);let i;C(3),Y3("routerLink","/cameraConfig/",r.uniqueId,""),C(2),M("src","assets/devices/"+(n.DeviceImage.get(r.type)?null==(i=n.DeviceImage.get(r.type))?null:i.image:"unknown.png"),L3),j("style",n.getDevicePanelStyle(r),R2),C(2),M("icon",n.settingsIcon),C(1),M("ngIf",r.ignored),C(2),X2(r.cachedName?r.cachedName:r.displayName),C(2),F2("(",r.uniqueId,")")}}function s_e(e,t){if(1&e){const r=M1();m(0,"div",11)(1,"div",19)(2,"div",20)(3,"button",21),I("click",function(){G(r);const i=x(),a=P2(1);return $(i.openReloadModal(a))}),k(4,"fa-icon",22),v()(),m(5,"div",23)(6,"a",24),y(7,"Plugin Settings"),v()()(),k(8,"p"),m(9,"span"),y(10,"Click on any device below to access its settings."),v(),k(11,"p"),m(12,"div",25)(13,"div",26),y(14," Stations "),v(),m(15,"div",27)(16,"div",19),O(17,r_e,13,7,"div",28),v()()(),k(18,"p"),m(19,"div",25)(20,"div",26),y(21," Devices "),v(),m(22,"div",29)(23,"div",19),O(24,a_e,13,7,"div",28),v()()(),k(25,"p"),m(26,"span")(27,"i"),y(28,"The images used above are 'best effort' for now, since we do not own every eufy device. If you experience that your device is depicted with a wrong image please feel free to let us know in an issue on our "),m(29,"a",30),y(30,"Github page."),v()()()()}if(2&e){const r=x();C(4),M("icon",r.reloadIcon),C(13),M("ngForOf",r.stations),C(7),M("ngForOf",r.devices)}}let c_e=(()=>{var e;class t{constructor(n,i,a,s){V(this,"modalService",void 0),V(this,"pluginService",void 0),V(this,"route",void 0),V(this,"routerService",void 0),V(this,"stations",[]),V(this,"devices",[]),V(this,"waitForAccessories",void 0),V(this,"settingsIcon",_f),V(this,"ignoreIcon",ow),V(this,"reloadIcon",Pf),V(this,"DeviceImage",Yf),V(this,"closeResult",""),this.modalService=n,this.pluginService=i,this.route=a,this.routerService=s}ngOnInit(){this.waitForAccessories="true"===this.route.snapshot.paramMap.get("waitForAccessories"),this.pluginService.addEventListener("newAccessories",()=>{console.log("plugin accessories have changed. updating..."),this.updateDevices(),this.updateStations()}),this.updateStations(),this.updateDevices(),!this.waitForAccessories&&0===this.stations.length&&0===this.devices.length&&this.pluginService.loadStoredAccessories().then(n=>{n||this.routerService.navigateByUrl("/login")}).catch(n=>{this.routerService.navigateByUrl("/login")})}updateStations(){this.stations=this.pluginService.getStations(),this.updateProperties()}updateDevices(){this.devices=this.pluginService.getDevices(),this.updateProperties()}updateProperties(){var n=this;return ve(function*(){const i=yield n.pluginService.getConfig();Array.isArray(i.ignoreStations)&&n.stations.forEach(a=>{a.ignored=void 0!==i.ignoreStations.find(s=>s===a.uniqueId)}),Array.isArray(i.ignoreDevices)&&n.devices.forEach(a=>{a.ignored=void 0!==i.ignoreDevices.find(s=>s===a.uniqueId)}),n.stations.forEach(a=>{n.pluginService.getCachedName(a).then(s=>a.cachedName=s)}),n.devices.forEach(a=>{n.pluginService.getCachedName(a).then(s=>a.cachedName=s)})})()}openReloadModal(n){this.modalService.open(n,{ariaLabelledBy:"modal-basic-title",centered:!0}).result.then(i=>{this.closeResult=`Closed with: ${i}`},i=>{this.closeResult=`Dismissed ${this.getDismissReason(i)}`})}getDismissReason(n){return n===na.ESC?"by pressing ESC":n===na.BACKDROP_CLICK?"by clicking on a backdrop":`with: ${n}`}getDevicePanelStyle(n){let i="";return n.ignored&&(i+="opacity: 0.2;"),Yf.get(n.type)?i+="padding:"+Yf.get(n.type)?.padding:i+="padding:20px",i}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(hM),H(Qe),H(Nn),H(_2))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-accessory-list"]],inputs:{waitForAccessories:"waitForAccessories"},decls:4,vars:2,consts:[["reloadModal",""],["class","container",4,"ngIf"],[1,"modal-header"],["id","modal-basic-title",1,"modal-title"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[1,"modal-body"],[1,"mb-3"],[2,"color","#dc3545"],["href","https://github.com/homebridge-eufy-security/plugin/issues/59#issuecomment-1147314942","target","_blank","rel","noopener noreferrer"],[1,"modal-footer"],["routerLink","/login",1,"btn","btn-success",3,"click"],[1,"container"],[1,"row","pl-5","pr-5"],[1,"col",2,"max-width","20%"],[1,"col","d-flex","justify-content-center"],[1,"card","shadow-sm","text-center","pt-3","pb-3",2,"width","100%"],[1,"mx-auto"],[1,"progress",2,"height","8px"],["role","progressbar","aria-valuenow","75","aria-valuemin","0","aria-valuemax","100",1,"progress-bar","progress-bar-striped","bg-info","progress-bar-animated",2,"width","75%"],[1,"row"],[1,"col-6"],["type","button",1,"btn","btn-success",3,"click"],["size","lg",3,"icon"],[1,"col-6","text-end"],["routerLink","/advancedConfig",1,"btn","btn-secondary"],[1,"card"],[1,"card-header"],[1,"card-body","pt-0","pb-0"],["class","col-6 col-sm-4 mt-3 mb-3 d-flex flex-column align-items-center",4,"ngFor","ngForOf"],[1,"card-body"],["href","https://github.com/homebridge-eufy-security/plugin","target","_blank","rel","noopener noreferrer"],[1,"col-6","col-sm-4","mt-3","mb-3","d-flex","flex-column","align-items-center"],[1,"col-12","col-sm-7"],[1,"text-center"],[2,"color","black",3,"routerLink"],[1,"device","ratio","ratio-1x1","border","rounded","shadow-sm"],[1,"deviceimage",3,"src"],[1,"devicesettingsicon","d-flex","border","align-items-center","justify-content-center",2,"z-index","15"],["size","2x",3,"icon"],["class","d-flex border align-items-top justify-content-end","style","z-index: 20;",4,"ngIf"],[1,"col-12","text-center"],[1,"col-12","serial","fw-light","text-center"],[1,"d-flex","border","align-items-top","justify-content-end",2,"z-index","20"],["size","xs",1,"mt-sm-1","m-sm-2","m-1","mt-0",3,"icon"]],template:function(n,i){1&n&&(O(0,e_e,18,0,"ng-template",null,0,D2),O(2,t_e,10,0,"div",1),O(3,s_e,31,3,"div",1)),2&n&&(C(2),M("ngIf",0===i.stations.length&&0===i.devices.length),C(1),M("ngIf",0!==i.stations.length||0!==i.devices.length))},dependencies:[At,H1,cn,D7],styles:[".device[_ngcontent-%COMP%]:hover{transform:scale(1.05);border-color:#ffc107!important;color:#ffc107}.device[_ngcontent-%COMP%]{background-color:#fff!important;color:#000!important}.device[_ngcontent-%COMP%]:hover .deviceimage[_ngcontent-%COMP%]{opacity:.5}.device[_ngcontent-%COMP%] .devicesettingsicon[_ngcontent-%COMP%]{display:none!important}.device[_ngcontent-%COMP%]:hover .devicesettingsicon[_ngcontent-%COMP%]{display:flex!important;color:#ffa000!important}.serial[_ngcontent-%COMP%]{font-size:12px}"]})),t})();const i4={enableDetailedLogging:!1,CameraMaxLivestreamDuration:30,pollingIntervalMinutes:10,hkHome:1,hkAway:0,hkNight:3,hkOff:63,ignoreStations:[],ignoreDevices:[],country:"US",cameras:[],cleanCache:!0,unbridge:!0,ignoreMultipleDevicesWarning:!1,syncStationModes:!1};class V1{constructor(t){V(this,"pluginService",void 0),V(this,"config",void 0),this.pluginService=t,this.config=i4,this.pluginService.getConfig().then(r=>{this.config={...this.config,config:r}}).catch(r=>console.log("Could not get config in config interpreter: "+r))}getCameraConfig(t){var r=this;return ve(function*(){const n=yield r.pluginService.getConfig();return Array.isArray(n.cameras)?Promise.resolve(n.cameras.find(i=>i.serialNumber===t)):Promise.resolve(void 0)})()}getStationConfig(t){var r=this;return ve(function*(){const n=yield r.pluginService.getConfig();return Array.isArray(n.stations)?Promise.resolve(n.stations.find(i=>i.serialNumber===t)):Promise.resolve(void 0)})()}updateConfig(t,r){var n=this;return ve(function*(){let i=yield n.pluginService.getConfig();if(r||(i={...i4,...i,...t}),r&&!1===r.station){Array.isArray(i.cameras)||(i.cameras=[]);let a=-1;i.cameras.forEach((s,c)=>{s.serialNumber===r.uniqueId&&(a=c)}),a>=0?i.cameras[a]={...i.cameras[a],...t}:i.cameras.push({serialNumber:r.uniqueId,...t})}else if(r&&!0===r.station){Array.isArray(i.stations)||(i.stations=[]);let a=-1;i.stations.forEach((s,c)=>{s.serialNumber===r.uniqueId&&(a=c)}),a>=0?i.stations[a]={...i.stations[a],...t}:i.stations.push({serialNumber:r.uniqueId,...t})}n.pluginService.updateConfig(i)})()}}let o_e=(()=>{var e;class t extends V1{constructor(n){super(n),V(this,"model",!1)}ngOnInit(){this.readValue()}readValue(){Object.prototype.hasOwnProperty.call(this.config,"enableDetailedLogging")&&(this.model=this.config.enableDetailedLogging)}update(){this.updateConfig({enableDetailedLogging:this.model})}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Qe))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-enable-detailed-logging"]],features:[ie],decls:9,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(n,i){1&n&&(m(0,"div",0)(1,"div",1)(2,"span"),y(3,"Debug Mode"),v(),m(4,"div",2)(5,"input",3),I("ngModelChange",function(s){return i.model=s})("change",function(){return i.update()}),v()()(),m(6,"small")(7,"i"),y(8," This will output more information to the homebridge logs. This helps the plugin team to understand what's going on. "),v()()()),2&n&&(C(5),M("ngModel",i.model))},dependencies:[l2,w1,m1],encapsulation:2})),t})(),l_e=(()=>{var e;class t extends V1{constructor(n){super(n),V(this,"value",10),V(this,"inputIsInvalid",!1)}ngOnInit(){this.readValue()}readValue(){Object.prototype.hasOwnProperty.call(this.config,"pollingIntervalMinutes")&&(this.value=this.config.pollingIntervalMinutes)}update(){this.inputIsInvalid=!1,(!this.value||this.value<0)&&(this.inputIsInvalid=!0),this.inputIsInvalid||this.updateConfig({pollingIntervalMinutes:this.value})}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Qe))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-polling-interval-minutes"]],features:[ie],decls:13,vars:2,consts:[[1,"settingsItem","row","p-3","pb-0"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],[1,"input-group","input-group-sm"],["type","number","aria-label","Polling interval minutes","aria-describedby","basic-addon2",3,"ngModel","ngModelChange","change"],[1,"input-group-append"],["id","basic-addon2",1,"input-group-text"]],template:function(n,i){1&n&&(m(0,"div",0)(1,"div",1)(2,"span"),y(3,"Polling Interval"),v(),m(4,"div",2)(5,"div",3)(6,"input",4),I("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),v(),m(7,"div",5)(8,"span",6),y(9,"minutes"),v()()()()(),m(10,"small")(11,"i"),y(12," Time in minutes before polling the eufy cloud for updated device information (set to 0 for no polling). "),v()()()),2&n&&(C(6),M("ngModel",i.value),j("class",i.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},dependencies:[bn,V4,w1,m1],encapsulation:2})),t})(),f_e=(()=>{var e;class t extends V1{constructor(n){super(n),V(this,"value",30),V(this,"inputIsInvalid",!1)}ngOnInit(){this.readValue()}readValue(){Object.prototype.hasOwnProperty.call(this.config,"CameraMaxLivestreamDuration")&&(this.value=this.config.CameraMaxLivestreamDuration)}update(){this.inputIsInvalid=!1,(!this.value||this.value<0)&&(this.inputIsInvalid=!0),this.inputIsInvalid||this.updateConfig({CameraMaxLivestreamDuration:this.value})}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Qe))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-livestream-duration-seconds"]],features:[ie],decls:13,vars:2,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],[1,"input-group","input-group-sm"],["type","number","aria-label","Polling interval minutes","aria-describedby","basic-addon2",3,"ngModel","ngModelChange","change"],[1,"input-group-append"],["id","basic-addon2",1,"input-group-text"]],template:function(n,i){1&n&&(m(0,"div",0)(1,"div",1)(2,"span"),y(3,"Maximum Livestream Duration"),v(),m(4,"div",2)(5,"div",3)(6,"input",4),I("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),v(),m(7,"div",5)(8,"span",6),y(9,"seconds"),v()()()()(),m(10,"small")(11,"i"),y(12," Time in second before ending the livestream automatically (longer livestreams imply shorter batterylife) "),v()()()),2&n&&(C(6),M("ngModel",i.value),j("class",i.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},dependencies:[bn,V4,w1,m1],encapsulation:2})),t})(),u_e=(()=>{var e;class t{}return e=t,V(t,"\u0275fac",function(n){return new(n||e)}),V(t,"\u0275cmp",se({type:e,selectors:[["app-edit-credentials"]],decls:6,vars:0,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-center"],[1,"mb-3","mb-sm-0"],["routerLink","/login",1,"btn","btn-secondary","col-12","col-sm-4"]],template:function(n,i){1&n&&(m(0,"div",0)(1,"div",1)(2,"span",2),y(3,"Change username, password and country"),v(),m(4,"a",3),y(5,"New Login"),v()()())},dependencies:[cn],encapsulation:2})),t})(),d_e=(()=>{var e;class t extends V1{constructor(n){super(n),V(this,"model",!1)}ngOnInit(){this.readValue()}readValue(){Object.prototype.hasOwnProperty.call(this.config,"cleanCache")&&(this.model=this.config.cleanCache)}update(){this.updateConfig({cleanCache:this.model})}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Qe))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-clean-cache"]],features:[ie],decls:9,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(n,i){1&n&&(m(0,"div",0)(1,"div",1)(2,"span"),y(3,"Clean cache automatically"),v(),m(4,"div",2)(5,"input",3),I("ngModelChange",function(s){return i.model=s})("change",function(){return i.update()}),v()()(),m(6,"small")(7,"i"),y(8," When enabled, you let the plugin clean accessory when removed from the Eufy app. "),v()()()),2&n&&(C(5),M("ngModel",i.model))},dependencies:[l2,w1,m1],encapsulation:2})),t})(),h_e=(()=>{var e;class t extends V1{constructor(n){super(n),V(this,"model",!1)}ngOnInit(){this.readValue()}readValue(){const n=Object.prototype.hasOwnProperty.call(this.config,"unbridge")?this.config.unbridge:i4.unbridge;this.model=n}update(){this.updateConfig({unbridge:this.model})}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Qe))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-unbridge-accessory"]],features:[ie],decls:12,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"],["href","https://github.com/homebridge-eufy-security/plugin/wiki/Bridged-and-Unbridged-Mode-and-Problems","target","_blank","rel","noopener noreferrer"]],template:function(n,i){1&n&&(m(0,"div",0)(1,"div",1)(2,"span"),y(3,"Unbridge Camera"),v(),m(4,"div",2)(5,"input",3),I("ngModelChange",function(s){return i.model=s})("change",function(){return i.update()}),v()()(),m(6,"small")(7,"i"),y(8," Bridged cameras can cause slowdowns of the entire Homebridge instance. If unbridged, the camera will need to be added to HomeKit manually. See "),m(9,"a",4),y(10,"here"),v(),y(11," for mor details. "),v()()()),2&n&&(C(5),M("ngModel",i.model))},dependencies:[l2,w1,m1],encapsulation:2})),t})();function p_e(e,t){1&e&&(m(0,"span"),y(1,"These settings will only apply for this station. The global mappings can be found in the plugin settings."),v())}function m_e(e,t){1&e&&(m(0,"option",6),y(1,"Use global setting"),v()),2&e&&M("ngValue",void 0)}function g_e(e,t){1&e&&(m(0,"option",6),y(1,"Use global setting"),v()),2&e&&M("ngValue",void 0)}function v_e(e,t){1&e&&(m(0,"option",6),y(1,"Use global setting"),v()),2&e&&M("ngValue",void 0)}function __e(e,t){1&e&&(m(0,"option",6),y(1,"Use global setting"),v()),2&e&&M("ngValue",void 0)}let _x=(()=>{var e;class t extends V1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"hkHome",void 0),V(this,"hkAway",void 0),V(this,"hkNight",void 0),V(this,"hkOff",void 0)}ngOnInit(){this.readValue()}readValue(){var n=this;return ve(function*(){const i=n.accessory?yield n.getStationConfig(n.accessory.uniqueId):yield n.pluginService.getConfig();i&&Object.prototype.hasOwnProperty.call(i,"hkHome")?n.hkHome=i.hkHome:n.accessory||(n.hkHome=i4.hkHome),i&&Object.prototype.hasOwnProperty.call(i,"hkAway")?n.hkAway=i.hkAway:n.accessory||(n.hkAway=i4.hkAway),i&&Object.prototype.hasOwnProperty.call(i,"hkNight")?n.hkNight=i.hkNight:n.accessory||(n.hkNight=i4.hkNight),i&&Object.prototype.hasOwnProperty.call(i,"hkOff")?n.hkOff=i.hkOff:n.accessory||(n.hkOff=i4.hkOff)})()}update(){var n=this;return ve(function*(){let i=n.accessory?yield n.getStationConfig(n.accessory.uniqueId):yield n.pluginService.getConfig();void 0===i&&(i={}),void 0===n.hkHome&&Object.prototype.hasOwnProperty.call(i,"hkHome")?delete i.hkHome:i.hkHome=n.hkHome,void 0===n.hkAway&&Object.prototype.hasOwnProperty.call(i,"hkAway")?delete i.hkAway:i.hkAway=n.hkAway,void 0===n.hkNight&&Object.prototype.hasOwnProperty.call(i,"hkNight")?delete i.hkNight:i.hkNight=n.hkNight,void 0===n.hkOff&&Object.prototype.hasOwnProperty.call(i,"hkOff")?delete i.hkOff:i.hkOff=n.hkOff;let a=yield n.pluginService.getConfig();if(n.accessory){Array.isArray(a.stations)||(a.stations=[]);let s=-1;a.stations.forEach((c,o)=>{c.serialNumber===n.accessory?.uniqueId&&(s=o)}),s>=0?a.stations[s]=i:(i.serialNumber=n.accessory.uniqueId,a.stations.push(i))}else a=i;n.pluginService.updateConfig(a)})()}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Qe))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-guard-modes-mapping"]],inputs:{accessory:"accessory"},features:[ie],decls:90,vars:41,consts:[[1,"settingsItem","row","p-3"],[4,"ngIf"],[1,"input-group","mb-1"],["for","inputGroupSelect01",1,"input-group-text","w-25"],["id","inputGroupSelect01",1,"form-select",3,"ngModel","ngModelChange","change"],[3,"ngValue",4,"ngIf"],[3,"ngValue"],["for","inputGroupSelect02",1,"input-group-text","w-25"],["id","inputGroupSelect02",1,"form-select",3,"ngModel","ngModelChange","change"],["for","inputGroupSelect03",1,"input-group-text","w-25"],["id","inputGroupSelect03",1,"form-select",3,"ngModel","ngModelChange","change"],["for","inputGroupSelect04",1,"input-group-text","w-25"],["id","inputGroupSelect04",1,"form-select",3,"ngModel","ngModelChange","change"]],template:function(n,i){1&n&&(m(0,"div",0)(1,"span"),y(2,"Change how each mode in the HomeKit security system is mapped to the modes in the Eufy App."),v(),k(3,"p"),O(4,p_e,2,0,"span",1),k(5,"p"),m(6,"div",2)(7,"label",3),y(8,"HomeKit Home"),v(),m(9,"select",4),I("ngModelChange",function(s){return i.hkHome=s})("change",function(){return i.update()}),O(10,m_e,2,1,"option",5),m(11,"option",6),y(12,"Eufy Home"),v(),m(13,"option",6),y(14,"Eufy Away"),v(),m(15,"option",6),y(16,"Eufy Schedule"),v(),m(17,"option",6),y(18,"Eufy Custom 1 (Night)"),v(),m(19,"option",6),y(20,"Eufy Custom 2"),v(),m(21,"option",6),y(22,"Eufy Custom 3"),v(),m(23,"option",6),y(24,"Eufy Geofencing"),v(),m(25,"option",6),y(26,"Eufy Disarmed"),v()()(),m(27,"div",2)(28,"label",7),y(29,"HomeKit Away"),v(),m(30,"select",8),I("ngModelChange",function(s){return i.hkAway=s})("change",function(){return i.update()}),O(31,g_e,2,1,"option",5),m(32,"option",6),y(33,"Eufy Home"),v(),m(34,"option",6),y(35,"Eufy Away"),v(),m(36,"option",6),y(37,"Eufy Schedule"),v(),m(38,"option",6),y(39,"Eufy Custom 1 (Night)"),v(),m(40,"option",6),y(41,"Eufy Custom 2"),v(),m(42,"option",6),y(43,"Eufy Custom 3"),v(),m(44,"option",6),y(45,"Eufy Geofencing"),v(),m(46,"option",6),y(47,"Eufy Disarmed"),v()()(),m(48,"div",2)(49,"label",9),y(50,"HomeKit Night"),v(),m(51,"select",10),I("ngModelChange",function(s){return i.hkNight=s})("change",function(){return i.update()}),O(52,v_e,2,1,"option",5),m(53,"option",6),y(54,"Eufy Home"),v(),m(55,"option",6),y(56,"Eufy Away"),v(),m(57,"option",6),y(58,"Eufy Schedule"),v(),m(59,"option",6),y(60,"Eufy Custom 1 (Night)"),v(),m(61,"option",6),y(62,"Eufy Custom 2"),v(),m(63,"option",6),y(64,"Eufy Custom 3"),v(),m(65,"option",6),y(66,"Eufy Geofencing"),v(),m(67,"option",6),y(68,"Eufy Disarmed"),v()()(),m(69,"div",2)(70,"label",11),y(71,"HomeKit Off"),v(),m(72,"select",12),I("ngModelChange",function(s){return i.hkOff=s})("change",function(){return i.update()}),O(73,__e,2,1,"option",5),m(74,"option",6),y(75,"Eufy Home"),v(),m(76,"option",6),y(77,"Eufy Away"),v(),m(78,"option",6),y(79,"Eufy Schedule"),v(),m(80,"option",6),y(81,"Eufy Custom 1 (Night)"),v(),m(82,"option",6),y(83,"Eufy Custom 2"),v(),m(84,"option",6),y(85,"Eufy Custom 3"),v(),m(86,"option",6),y(87,"Eufy Geofencing"),v(),m(88,"option",6),y(89,"Eufy Disarmed"),v()()()()),2&n&&(C(4),M("ngIf",i.accessory),C(5),M("ngModel",i.hkHome),C(1),M("ngIf",i.accessory),C(1),M("ngValue",1),C(2),M("ngValue",0),C(2),M("ngValue",2),C(2),M("ngValue",3),C(2),M("ngValue",4),C(2),M("ngValue",5),C(2),M("ngValue",47),C(2),M("ngValue",63),C(5),M("ngModel",i.hkAway),C(1),M("ngIf",i.accessory),C(1),M("ngValue",1),C(2),M("ngValue",0),C(2),M("ngValue",2),C(2),M("ngValue",3),C(2),M("ngValue",4),C(2),M("ngValue",5),C(2),M("ngValue",47),C(2),M("ngValue",63),C(5),M("ngModel",i.hkNight),C(1),M("ngIf",i.accessory),C(1),M("ngValue",1),C(2),M("ngValue",0),C(2),M("ngValue",2),C(2),M("ngValue",3),C(2),M("ngValue",4),C(2),M("ngValue",5),C(2),M("ngValue",47),C(2),M("ngValue",63),C(5),M("ngModel",i.hkOff),C(1),M("ngIf",i.accessory),C(1),M("ngValue",1),C(2),M("ngValue",0),C(2),M("ngValue",2),C(2),M("ngValue",3),C(2),M("ngValue",4),C(2),M("ngValue",5),C(2),M("ngValue",47),C(2),M("ngValue",63))},dependencies:[H1,z4,D4,Hn,w1,m1],encapsulation:2})),t})(),C_e=(()=>{var e;class t{}return e=t,V(t,"\u0275fac",function(n){return new(n||e)}),V(t,"\u0275cmp",se({type:e,selectors:[["app-reset-plugin"]],decls:9,vars:0,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-center","mb-2"],[1,"mb-3","mb-sm-0"],["routerLink","/reset",1,"btn","btn-danger","col-12","col-sm-4"]],template:function(n,i){1&n&&(m(0,"div",0)(1,"div",1)(2,"span",2),y(3,"Reset Plugin"),v(),m(4,"a",3),y(5,"Remove everything"),v()(),m(6,"small")(7,"i"),y(8," This will delete the plugin settings and files. Please be aware that this will not delete any cached accessories from homebridge. You'll have to remove these manually via the homebridge UI. "),v()()())},dependencies:[cn],encapsulation:2})),t})(),M_e=(()=>{var e;class t extends V1{constructor(n){super(n),V(this,"value",!1)}ngOnInit(){this.readValue()}readValue(){Object.prototype.hasOwnProperty.call(this.config,"omitLogFiles")&&(this.value=this.config.omitLogFiles)}update(){this.updateConfig({omitLogFiles:this.value})}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Qe))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-omit-log-files"]],features:[ie],decls:9,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(n,i){1&n&&(m(0,"div",0)(1,"div",1)(2,"span"),y(3,"Don't store log files"),v(),m(4,"div",2)(5,"input",3),I("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),v()()(),m(6,"small")(7,"i"),y(8," This setting prevents log files to be stored to disk. If enabled, log messages will only be written to the Homebridge UI log window. "),v()()()),2&n&&(C(5),M("ngModel",i.value))},dependencies:[l2,w1,m1],encapsulation:2})),t})();var y_e=f1(7);function b_e(e,t){if(1&e&&(m(0,"div",7),y(1),v()),2&e){const r=x();C(1),F2(" ",r.failureMessage," ")}}function H_e(e,t){1&e&&k(0,"span",10)}function w_e(e,t){1&e&&(m(0,"span"),y(1,"Download Logs"),v())}function V_e(e,t){1&e&&(m(0,"span"),y(1," Generating Log File..."),v())}function z_e(e,t){if(1&e){const r=M1();m(0,"button",8),I("click",function(){return G(r),$(x().downloadLogs())}),O(1,H_e,1,0,"span",9),O(2,w_e,2,0,"span",6),O(3,V_e,2,0,"span",6),v()}if(2&e){const r=x();j("disabled",!!r.isDownloading||null),C(1),M("ngIf",r.isDownloading),C(1),M("ngIf",!r.isDownloading),C(1),M("ngIf",r.isDownloading)}}function D_e(e,t){if(1&e){const r=M1();m(0,"a",11),I("click",function(){return G(r),$(x().openLink())}),m(1,"span"),y(2,"Download Logs"),v()()}}function S_e(e,t){if(1&e&&(m(0,"small")(1,"i"),y(2),v()()),2&e){const r=x();C(2),F2(" ",r.downloadMessage," ")}}function L_e(e,t){1&e&&(m(0,"small")(1,"i"),y(2," The log file should have downloaded. If not click the button again. The file will be named 'Unknown.zip', due to technical reasons."),k(3,"br"),m(4,"b"),y(5,"Please make sure that you have pop-ups allowed for this site. If you're not sure, maybe this "),m(6,"a",12),y(7,"site"),v(),y(8," can help."),v()()())}let x_e=(()=>{var e;class t{constructor(n,i){V(this,"router",void 0),V(this,"zone",void 0),V(this,"routeSub",void 0),V(this,"failed",!1),V(this,"isDownloading",!1),V(this,"hasDownloaded",!1),V(this,"downloadMessage",void 0),V(this,"failureMessage",""),V(this,"logFileLocation",""),this.router=n,this.zone=i}ngOnInit(){this.routeSub=this.router.events.subscribe(n=>{n instanceof Va&&""!==this.logFileLocation&&(console.log("revoke log zip file blob location url."),window.URL.revokeObjectURL(this.logFileLocation),this.logFileLocation="")}),window.homebridge.addEventListener("downloadLogsFileCount",n=>{this.updateDownloadMessage(`Compressing ${n.data.numberOfFiles} log files...`)})}downloadLogs(){var n=this;return ve(function*(){try{n.isDownloading=!0;const i=yield window.homebridge.request("/downloadLogs"),a=y_e.lW.from(i.data),s=new File([a],"logs.zip",{type:"application/zip"}),c=window.URL.createObjectURL(s);n.logFileLocation=c,window.open(n.logFileLocation),n.updateDownloadMessage(void 0),n.hasDownloaded=!0}catch(i){console.log(i);const a=i;n.failed=!0,n.updateDownloadMessage(void 0),n.failureMessage=`Generating of compressed logs.zip file did not complete: ${a.message}`}finally{n.isDownloading=!1}})()}openLink(){window.open(this.logFileLocation)}updateDownloadMessage(n){this.zone.run(()=>{this.downloadMessage=n})}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(_2),H(ye))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-download-logs"]],decls:9,vars:5,consts:[[1,"settingsItem","row","p-3"],["class","alert alert-danger","role","alert",4,"ngIf"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-center","mb-2"],[1,"mb-3","mb-sm-0"],["type","button","class","btn btn-secondary col-12 col-sm-4",3,"click",4,"ngIf"],["class","btn btn-success col-12 col-sm-4",3,"click",4,"ngIf"],[4,"ngIf"],["role","alert",1,"alert","alert-danger"],["type","button",1,"btn","btn-secondary","col-12","col-sm-4",3,"click"],["class","spinner-border spinner-border-sm","role","status","aria-hidden","true",4,"ngIf"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm"],[1,"btn","btn-success","col-12","col-sm-4",3,"click"],["href","https://www.howtogeek.com/773082/how-to-disable-pop-up-blocker-in-chrome-firefox-edge-safari/","target","_blank","rel","noopener noreferrer"]],template:function(n,i){1&n&&(m(0,"div",0),O(1,b_e,2,1,"div",1),m(2,"div",2)(3,"span",3),y(4,"Download Logs"),v(),O(5,z_e,4,4,"button",4),O(6,D_e,3,0,"a",5),v(),O(7,S_e,3,1,"small",6),O(8,L_e,9,0,"small",6),v()),2&n&&(C(1),M("ngIf",i.failed),C(4),M("ngIf",!i.hasDownloaded),C(1),M("ngIf",i.hasDownloaded),C(1),M("ngIf",i.downloadMessage),C(1),M("ngIf",i.hasDownloaded))},dependencies:[H1],encapsulation:2})),t})(),N_e=(()=>{var e;class t{}return e=t,V(t,"\u0275fac",function(n){return new(n||e)}),V(t,"\u0275cmp",se({type:e,selectors:[["app-advanced-config-options"]],decls:25,vars:0,consts:[["routerLink","/accessories",1,"btn","btn-secondary","mb-3"],[1,"card"],[1,"card-header"],[1,"card-body","pt-0","pb-4"]],template:function(n,i){1&n&&(m(0,"a",0),y(1,"Back to Devices List"),v(),m(2,"div",1)(3,"div",2),y(4," Advanced Settings "),v(),m(5,"div",3),k(6,"app-edit-credentials")(7,"hr")(8,"app-polling-interval-minutes")(9,"hr")(10,"app-livestream-duration-seconds")(11,"hr")(12,"app-enable-detailed-logging")(13,"hr")(14,"app-omit-log-files")(15,"hr")(16,"app-clean-cache")(17,"hr")(18,"app-unbridge-accessory")(19,"hr")(20,"app-guard-modes-mapping")(21,"hr")(22,"app-download-logs")(23,"hr")(24,"app-reset-plugin"),v()())},dependencies:[cn,o_e,l_e,f_e,u_e,d_e,h_e,_x,C_e,M_e,x_e],encapsulation:2})),t})(),Cx=(()=>{var e;class t extends V1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",!1)}ngOnInit(){this.readValue()}readValue(){var n=this;return ve(function*(){if(n.config=yield n.pluginService.getConfig(),n.accessory){const i=n.accessory.station?"ignoreStations":"ignoreDevices";Array.isArray(n.config[i])&&(n.value=void 0!==n.config[i].find(a=>a===n.accessory.uniqueId))}})()}update(){var n=this;return ve(function*(){if(!n.accessory)return;const i=n.accessory.station?"ignoreStations":"ignoreDevices";n.config=yield n.pluginService.getConfig(),n.value?Array.isArray(n.config[i])&&!n.config[i].find(a=>a===n.accessory.uniqueId)?n.config[i].push(n.accessory.uniqueId):Array.isArray(n.config[i])||(n.config[i]=[n.accessory.uniqueId]):Array.isArray(n.config[i])&&void 0!==n.config[i].find(a=>a===n.accessory.uniqueId)&&(n.config[i]=n.config[i].filter(a=>a!==n.accessory.uniqueId)),n.pluginService.updateConfig(n.config)})()}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Qe))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-ignore-accessory"]],inputs:{accessory:"accessory"},features:[ie],decls:6,vars:2,consts:[[1,"settingsItem","row","p-3","pb-1"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(n,i){1&n&&(m(0,"div",0)(1,"div",1)(2,"span"),y(3),v(),m(4,"div",2)(5,"input",3),I("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),v()()()()),2&n&&(C(3),F2("Ignore ",i.accessory&&i.accessory.station?"Station":"Device",""),C(2),M("ngModel",i.value))},dependencies:[l2,w1,m1],encapsulation:2})),t})();function A_e(e,t){1&e&&(m(0,"small")(1,"i"),y(2," This option is disabled since doorbells are handled always as cameras. "),v()())}function E_e(e,t){1&e&&(m(0,"small")(1,"i"),y(2," Cameras are handled as Motion Sensor by default, switch this setting to use as Camera "),v()())}let T_e=(()=>{var e;class t extends V1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value","true"),V(this,"disabled",!1)}ngOnInit(){this.readValue()}readValue(){var n=this;return ve(function*(){n.accessory&&W4.isDoorbell(n.accessory.type)&&(n.value="true",n.disabled=!0,n.update());const i=yield n.getCameraConfig(n.accessory?.uniqueId||"");i&&Object.prototype.hasOwnProperty.call(i,"enableCamera")&&(n.value=i.enableCamera)})()}update(){this.updateConfig({enableCamera:JSON.parse(this.value)},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Qe))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-enable-camera"]],inputs:{accessory:"accessory"},features:[ie],decls:12,vars:4,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],["aria-label","Device Operation Mode",1,"form-select",3,"ngModel","ngModelChange","change"],["value","false"],["value","true"],[4,"ngIf"]],template:function(n,i){1&n&&(m(0,"div",0)(1,"div",1)(2,"span"),y(3,"Operation Mode"),v(),m(4,"div",2)(5,"select",3),I("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),m(6,"option",4),y(7,"Motion Sensor"),v(),m(8,"option",5),y(9,"Camera"),v()()()(),O(10,A_e,3,0,"small",6),O(11,E_e,3,0,"small",6),v()),2&n&&(C(5),M("ngModel",i.value),j("disabled",!!i.disabled||null),C(5),M("ngIf",i.disabled),C(1),M("ngIf",!i.disabled))},dependencies:[H1,z4,D4,Hn,w1,m1],encapsulation:2})),t})();function I_e(e,t){if(1&e){const r=M1();m(0,"div",1)(1,"span"),y(2,"Display HomeKit button to turn indoor chime on/off"),v(),m(3,"div",2)(4,"input",3),I("ngModelChange",function(i){return G(r),$(x().indoorChimeButton=i)})("change",function(){return G(r),$(x().update())}),v()()()}if(2&e){const r=x();C(4),M("ngModel",r.indoorChimeButton)}}let O_e=(()=>{var e;class t extends V1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"enableCameraButton",!0),V(this,"enableMotionButton",!0),V(this,"showIndoorChimeButtonSetting",!1),V(this,"indoorChimeButton",false)}ngOnInit(){this.readValue()}readValue(){var n=this;return ve(function*(){const i=yield n.getCameraConfig(n.accessory?.uniqueId??"");n.accessory&&void 0!==n.accessory.type&&(n.showIndoorChimeButtonSetting=W4.isBatteryDoorbell(n.accessory.type)||W4.isWiredDoorbell(n.accessory.type)),"enableButton"in i&&(n.enableCameraButton=i.enableButton),"motionButton"in i&&(n.enableMotionButton=i.motionButton),"indoorChimeButton"in i&&(n.indoorChimeButton=i.indoorChimeButton)})()}update(){const n={enableButton:this.enableCameraButton,motionButton:this.enableMotionButton};this.showIndoorChimeButtonSetting&&(n.indoorChimeButton=this.indoorChimeButton),this.updateConfig(n,this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Qe))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-camera-buttons"]],inputs:{accessory:"accessory"},features:[ie],decls:18,vars:3,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"],["class","d-flex justify-content-between align-items-center mb-2",4,"ngIf"],["href","https://github.com/homebridge-eufy-security/plugin/wiki/Common-Issues#unexpected-homekit-behaviour","target","_blank","rel","noopener noreferrer"]],template:function(n,i){1&n&&(m(0,"div",0)(1,"div",1)(2,"span"),y(3,"Display HomeKit switch to switch camera on/off"),v(),m(4,"div",2)(5,"input",3),I("ngModelChange",function(s){return i.enableCameraButton=s})("change",function(){return i.update()}),v()()(),m(6,"div",1)(7,"span"),y(8,"Display HomeKit switch to switch motion detection on/off"),v(),m(9,"div",2)(10,"input",3),I("ngModelChange",function(s){return i.enableMotionButton=s})("change",function(){return i.update()}),v()()(),O(11,I_e,5,1,"div",4),m(12,"small")(13,"i"),y(14," When changing these settings you might need to clear accessory cache (homebridge settings) so it can take effect. See "),m(15,"a",5),y(16,"here"),v(),y(17," for more details. "),v()()()),2&n&&(C(5),M("ngModel",i.enableCameraButton),C(5),M("ngModel",i.enableMotionButton),C(1),M("ngIf",i.showIndoorChimeButtonSetting))},dependencies:[H1,l2,w1,m1],encapsulation:2})),t})(),R_e=(()=>{var e;class t extends V1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",false)}ngOnInit(){this.readValue()}readValue(){var n=this;return ve(function*(){const i=yield n.getCameraConfig(n.accessory?.uniqueId||"");i&&Object.prototype.hasOwnProperty.call(i,"useCachedLocalLivestream")&&(n.value=i.useCachedLocalLivestream)})()}update(){this.updateConfig({useCachedLocalLivestream:this.value},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Qe))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-livestream-cache"]],inputs:{accessory:"accessory"},features:[ie],decls:12,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(n,i){1&n&&(m(0,"div",0)(1,"div",1)(2,"span"),y(3,"Use Local Livestream Caching"),v(),m(4,"div",2)(5,"input",3),I("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),v()()(),m(6,"small")(7,"i")(8,"b"),y(9,"This setting seems only useful if you are able to set the video codec / video compression for the camera in the eufy app to 'low' (aka. H264 codec). If you can, we recommened to do so, since there can be a significant performance boost (aka. startup of livestreams)."),v(),k(10,"p"),y(11," If enabled local livestreams will be kept alive for a short time after the user stops streaming or a snapshot is refreshed (see 'Force Refresh Snapshot' also). This allows subsequent streams to start up much faster, but also may increase power consumption for battery powered devices. Additionally a livestream will be started (cached) immediately after an event (motion, person, doorbell) occurs, so that start up times are decreased. "),v()()()),2&n&&(C(5),M("ngModel",i.value))},dependencies:[l2,w1,m1],encapsulation:2})),t})();function k_e(e,t){1&e&&(m(0,"div",5),y(1," Talkback will not work while 'RTSP Streaming' is enabled! "),v())}let P_e=(()=>{var e;class t extends V1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",!1),V(this,"talkbackIsEnabled",!1)}ngOnInit(){this.readValue(),this.pluginService.addEventListener("configChanged",()=>this.readValue())}readValue(){var n=this;return ve(function*(){const i=yield n.getCameraConfig(n.accessory?.uniqueId||"");i&&Object.prototype.hasOwnProperty.call(i,"rtsp")&&(n.value=i.rtsp),i&&Object.prototype.hasOwnProperty.call(i,"talkback")&&(n.talkbackIsEnabled=i.talkback)})()}update(){this.updateConfig({rtsp:this.value},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Qe))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-rtsp-streaming"]],inputs:{accessory:"accessory"},features:[ie],decls:11,vars:2,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"],["class","alert alert-danger","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-danger"]],template:function(n,i){1&n&&(m(0,"div",0)(1,"div",1)(2,"span"),y(3,"Use RTSP streaming"),v(),m(4,"div",2)(5,"input",3),I("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),v()()(),O(6,k_e,2,0,"div",4),m(7,"small")(8,"i"),y(9," Try to utilize RTSP capabilities of some devices. This may result in improved streaming stability. Please be advised that RTSP must be enable within Eufy App first!"),k(10,"br"),v()()()),2&n&&(C(5),M("ngModel",i.value),C(1),M("ngIf",i.talkbackIsEnabled&&i.value))},dependencies:[H1,l2,w1,m1],encapsulation:2})),t})(),F_e=(()=>{var e;class t extends V1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",!1),V(this,"samplerate",0)}ngOnInit(){this.readValue()}readValue(){var n=this;return ve(function*(){const i=yield n.getCameraConfig(n.accessory?.uniqueId||"");if(i&&i.videoConfig&&Object.prototype.hasOwnProperty.call(i.videoConfig,"audio")&&(n.value=i.videoConfig.audio),i&&i.videoConfig&&Object.prototype.hasOwnProperty.call(i.videoConfig,"audioSampleRate")){const a=i.videoConfig.audioSampleRate;(8===a||16===a||24===a)&&(n.samplerate=a)}})()}update(){var n=this;return ve(function*(){if(!n.accessory)return;let i=yield n.getCameraConfig(n.accessory?.uniqueId||"");i||(i={serialNumber:n.accessory?.uniqueId,videoConfig:{}}),Object.prototype.hasOwnProperty.call(i,"videoConfig")||(i.videoConfig={}),i.videoConfig.audio=n.value,i.videoConfig.audioSampleRate=n.samplerate,n.updateConfig(i,n.accessory)})()}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Qe))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-enable-audio"]],inputs:{accessory:"accessory"},features:[ie],decls:25,vars:7,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],["aria-label","Samplerate",1,"form-select",3,"ngModel","ngModelChange","change"],[3,"ngValue"]],template:function(n,i){1&n&&(m(0,"div",0)(1,"div",1)(2,"span"),y(3,"Enable Audio"),v(),m(4,"div",2)(5,"input",3),I("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),v()()(),m(6,"small")(7,"i"),y(8," Try to enable audio streaming for this device."),k(9,"br"),y(10," If you encounter problems try to disable this setting. "),v()(),k(11,"p"),m(12,"div",4)(13,"span"),y(14,"Force Audio Sample Rate"),v(),m(15,"div",5)(16,"select",6),I("ngModelChange",function(s){return i.samplerate=s})("change",function(){return i.update()}),m(17,"option",7),y(18,"Default Sample Rate"),v(),m(19,"option",7),y(20,"8 kHz"),v(),m(21,"option",7),y(22,"16 kHz"),v(),m(23,"option",7),y(24,"24 kHz"),v()()()()()),2&n&&(C(5),M("ngModel",i.value),C(11),M("ngModel",i.samplerate),j("disabled",!i.value||null),C(1),M("ngValue",0),C(2),M("ngValue",8),C(2),M("ngValue",16),C(2),M("ngValue",24))},dependencies:[z4,D4,l2,Hn,w1,m1],encapsulation:2})),t})(),B_e=(()=>{var e;class t extends V1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",!1)}ngOnInit(){this.readValue()}readValue(){var n=this;return ve(function*(){const i=yield n.getCameraConfig(n.accessory?.uniqueId||"");i&&Object.prototype.hasOwnProperty.call(i,"forcerefreshsnap")&&(n.value=i.forcerefreshsnap)})()}update(){this.updateConfig({forcerefreshsnap:this.value},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Qe))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-force-refreshsnap"]],inputs:{accessory:"accessory"},features:[ie],decls:11,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(n,i){1&n&&(m(0,"div",0)(1,"div",1)(2,"span"),y(3,"Force Refresh Snapshot (Deprecated)"),v(),m(4,"div",2)(5,"input",3),I("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),v()()(),m(6,"small")(7,"i"),y(8," When enabled, we will start stream for one frame and use as a snapshot (this can affect the battery life). If it's disabled, we will use the Eufy Cloud API one (which could be really old)."),k(9,"br"),y(10," This option is only used if you have disabled enhanced snapshot handling. "),v()()()),2&n&&(C(5),M("ngModel",i.value))},dependencies:[l2,w1,m1],encapsulation:2})),t})();function U_e(e,t){if(1&e&&(m(0,"small")(1,"i")(2,"b"),y(3,"Description:"),v(),y(4," The plugin will try to get the latest possible snapshot. If none is present the plugin will start a livestream to render one frame."),k(5,"br"),y(6," This process might take a few seconds and can slow down your homebridge instance for this duration. If you encounter problems with this method please try another. "),k(7,"p")(8,"fa-icon",6),y(9," Up-to-date Snapshots (events)"),k(10,"br")(11,"fa-icon",6),y(12," Up-to-date Snapshots (HomeKit View)"),k(13,"br")(14,"fa-icon",7),y(15," Performance"),k(16,"br")(17,"fa-icon",7),y(18," Battery life"),k(19,"br"),v()()),2&e){const r=x();C(8),M("icon",r.plusIcon),C(3),M("icon",r.plusIcon),C(3),M("icon",r.minusIcon),C(3),M("icon",r.minusIcon)}}function j_e(e,t){if(1&e&&(m(0,"small")(1,"i")(2,"b"),y(3,"Description:"),v(),y(4," This mode combines the other two. When a snapshot is requested the plugin will try to get a new snapshot from the camera."),k(5,"br"),y(6," After one second the snapshot will be delivered - if necessary by using an older snapshot. For events the plugin will wait on a new snapshot. "),k(7,"p")(8,"fa-icon",6),y(9," Up-to-date Snapshots (events)"),k(10,"br")(11,"fa-icon",8),y(12," Up-to-date Snapshots (HomeKit View)"),k(13,"br")(14,"fa-icon",6),y(15," Performance"),k(16,"br")(17,"fa-icon",7),y(18," Battery life"),k(19,"br"),v()()),2&e){const r=x();C(8),M("icon",r.plusIcon),C(3),M("icon",r.mediumIcon),C(3),M("icon",r.plusIcon),C(3),M("icon",r.minusIcon)}}function G_e(e,t){if(1&e&&(m(0,"small")(1,"i")(2,"b"),y(3,"Description:"),v(),y(4," The plugin will preferablly use cloud snapshots from eufy to fulfill snapshot requests as fast as possible."),k(5,"br"),y(6," If an event, like motion or doorbell ring oocurs, the plugin will try to wait for a cloud snapshot to be provided. But the periodic snapshots in homekit will most likely be outdated (e.g. up to a few hours old). "),k(7,"p")(8,"fa-icon",6),y(9," Up-to-date Snapshots (events)"),k(10,"br")(11,"fa-icon",7),y(12," Up-to-date Snapshots (HomeKit View)"),k(13,"br")(14,"fa-icon",6),y(15," Performance"),k(16,"br")(17,"fa-icon",6),y(18," Battery life"),k(19,"br"),v()()),2&e){const r=x();C(8),M("icon",r.plusIcon),C(3),M("icon",r.minusIcon),C(3),M("icon",r.plusIcon),C(3),M("icon",r.plusIcon)}}let $_e=(()=>{var e;class t extends V1{constructor(n){super(n),V(this,"plusIcon",SL),V(this,"minusIcon",Jb),V(this,"mediumIcon",yz),V(this,"accessory",void 0),V(this,"value",3)}ngOnInit(){this.readValue()}readValue(){var n=this;return ve(function*(){const i=yield n.getCameraConfig(n.accessory?.uniqueId||"");i&&Object.prototype.hasOwnProperty.call(i,"snapshotHandlingMethod")?n.value=i.snapshotHandlingMethod:i&&Object.prototype.hasOwnProperty.call(i,"forcerefreshsnap")&&(n.value=i.forcerefreshsnap?1:3)})()}update(){this.updateConfig({snapshotHandlingMethod:this.value},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Qe))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-snapshot-handling-method"]],inputs:{accessory:"accessory"},features:[ie],decls:15,vars:7,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],["aria-label","Device Operation Mode",1,"form-select",3,"ngModel","ngModelChange","change"],[3,"ngValue"],[4,"ngIf"],["size","xs",1,"m-1",2,"color","#7FFF00",3,"icon"],["size","xs",1,"m-1",2,"color","#B22222",3,"icon"],["size","xs",1,"m-1",2,"color","#FF8C00",3,"icon"]],template:function(n,i){1&n&&(m(0,"div",0)(1,"div",1)(2,"span"),y(3,"Snapshot Handling Method"),v(),m(4,"div",2)(5,"select",3),I("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),m(6,"option",4),y(7,"Force Refresh Snapshots"),v(),m(8,"option",4),y(9,"Balanced"),v(),m(10,"option",4),y(11,"Cloud Snapshots"),v()()()(),O(12,U_e,20,4,"small",5),O(13,j_e,20,4,"small",5),O(14,G_e,20,4,"small",5),v()),2&n&&(C(5),M("ngModel",i.value),C(1),M("ngValue",1),C(2),M("ngValue",2),C(2),M("ngValue",3),C(2),M("ngIf",1===i.value),C(1),M("ngIf",2===i.value),C(1),M("ngIf",3===i.value))},dependencies:[H1,z4,D4,Hn,w1,m1,D7],encapsulation:2})),t})(),W_e=(()=>{var e;class t extends V1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",false)}ngOnInit(){this.readValue()}readValue(){var n=this;return ve(function*(){const i=yield n.getCameraConfig(n.accessory?.uniqueId||"");i&&Object.prototype.hasOwnProperty.call(i,"immediateRingNotificationWithoutSnapshot")&&(n.value=i.immediateRingNotificationWithoutSnapshot)})()}update(){this.updateConfig({immediateRingNotificationWithoutSnapshot:this.value},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Qe))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-immediate-notification-on-ring"]],inputs:{accessory:"accessory"},features:[ie],decls:12,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(n,i){1&n&&(m(0,"div",0)(1,"div",1)(2,"span"),y(3,"Immediate Notification on ring events"),v(),m(4,"div",2)(5,"input",3),I("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),v()()(),m(6,"small")(7,"i"),y(8," In general Homekit will try to get a snapshot to show it in it's push notifications. Since the process to genereate a snapshot takes some time the push notification will be delayed by this time difference. This option allows to generate an empty snapshot on ringing events to speed up the push notification. This can safe up to 10 seconds between the event and the corresponding notification on your device."),k(9,"br"),m(10,"b"),y(11,"This option however delivers most likely an empty (black) snapshot on those events!"),v()()()()),2&n&&(C(5),M("ngModel",i.value))},dependencies:[l2,w1,m1],encapsulation:2})),t})(),q_e=(()=>{var e;class t extends V1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",false)}ngOnInit(){this.readValue()}readValue(){var n=this;return ve(function*(){const i=yield n.getCameraConfig(n.accessory?.uniqueId||"");i&&Object.prototype.hasOwnProperty.call(i,"delayCameraSnapshot")&&(n.value=i.delayCameraSnapshot)})()}update(){this.updateConfig({delayCameraSnapshot:this.value},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Qe))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-delay-camera-snapshots"]],inputs:{accessory:"accessory"},features:[ie],decls:12,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(n,i){1&n&&(m(0,"div",0)(1,"div",1)(2,"span"),y(3,"Night-Vision Improvement for camera snapshots"),v(),m(4,"div",2)(5,"input",3),I("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),v()()(),m(6,"small")(7,"i"),y(8," Force night vision on dark snapshots to improve the image."),k(9,"br"),m(10,"b"),y(11,"The snapshot request will be delayed by half a second if you enable this setting."),v()()()()),2&n&&(C(5),M("ngModel",i.value))},dependencies:[l2,w1,m1],encapsulation:2})),t})(),K_e=(()=>{var e;class t extends V1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",0),V(this,"inputIsInvalid",!1)}ngOnInit(){this.readValue()}readValue(){var n=this;return ve(function*(){const i=yield n.getCameraConfig(n.accessory?.uniqueId||"");i&&Object.prototype.hasOwnProperty.call(i,"refreshSnapshotIntervalMinutes")&&(n.value=i.refreshSnapshotIntervalMinutes)})()}switchSetting(){this.value=0===this.value?30:0,this.update()}update(){this.validate()&&this.updateConfig({refreshSnapshotIntervalMinutes:this.value},this.accessory)}validate(){return this.inputIsInvalid=!1,(null==this.value||this.value<5&&0!==this.value)&&(this.inputIsInvalid=!0),!this.inputIsInvalid}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Qe))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-periodic-snapshot-refresh"]],inputs:{accessory:"accessory"},features:[ie],decls:25,vars:3,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"change"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],[1,"input-group","input-group-sm"],["type","number","aria-label","Polling interval minutes","aria-describedby","basic-addon2",3,"ngModel","ngModelChange","change"],[1,"input-group-append"],["id","basic-addon2",1,"input-group-text"]],template:function(n,i){1&n&&(m(0,"div",0)(1,"div",1)(2,"span"),y(3,"Periodic Snapshot Refresh"),v(),m(4,"div",2)(5,"input",3),I("change",function(){return i.switchSetting()}),v()()(),m(6,"div",4)(7,"span"),y(8,"Refresh Interval"),v(),m(9,"div",5)(10,"div",6)(11,"input",7),I("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),v(),m(12,"div",8)(13,"span",9),y(14,"minutes"),v()()()()(),m(15,"small")(16,"i"),y(17," This option will force a snapshot to be generated every x minutes. This snapshot will then be used for homekit. So that your snapshots will never be older than this."),k(18,"br"),y(19," Best used with 'Cloud Snapshots' handling method."),k(20,"br"),y(21," Every setting below 5 minutes will be discarded due to performance reasons."),k(22,"br"),m(23,"b"),y(24,"Don't use this with the 'Force Refresh Snapshots' method, since it will have negligible effects other than slowing down homebridge and decreasing possible battery life."),v()()()()),2&n&&(C(5),j("checked",i.value>0||null),C(6),M("ngModel",i.value),j("class",i.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},dependencies:[bn,V4,w1,m1],encapsulation:2})),t})();function Y_e(e,t){1&e&&(m(0,"span")(1,"b"),y(2,"Advanced Video Config"),v()())}function Z_e(e,t){1&e&&(m(0,"button",4)(1,"span")(2,"b"),y(3,"Advanced Video Config"),v()()())}function Q_e(e,t){if(1&e&&(m(0,"div"),y(1),v()),2&e){const r=x(2);C(1),F2(" ",r.presetDescription," ")}}function J_e(e,t){if(1&e){const r=M1();y(0," The following options directly change the way how ffmpeg is configured when a stream is started. If configured incorrectly these will most likely result in faulty streams or bad streaming performance. "),k(1,"p"),y(2," You can try the following presets to improve your streaming experience. We do not guarantee that these will work for you."),k(3,"p"),m(4,"div",5)(5,"div",6)(6,"select",7),I("ngModelChange",function(i){return G(r),$(x().preset=i)})("change",function(){return G(r),$(x().loadPreset())}),m(7,"option",8),y(8,"No Preset (default)"),v(),m(9,"option",8),y(10,"Copy"),v(),m(11,"option",8),y(12,"Performance"),v(),m(13,"option",8),y(14,"Custom"),v()()()(),O(15,Q_e,2,1,"div",9),k(16,"p"),m(17,"div",10)(18,"div",11)(19,"input",12),I("ngModelChange",function(i){return G(r),$(x().debug=i)})("change",function(){return G(r),$(x().update())}),v()(),m(20,"span",13),y(21,"ffmpeg debug"),v()(),m(22,"div",10)(23,"div",11)(24,"input",12),I("ngModelChange",function(i){return G(r),$(x().useSeparateProcesses=i)})("change",function(){return G(r),$(x().update())}),v()(),m(25,"span",13),y(26,"use separate processes for video and audio"),v()(),m(27,"div",10)(28,"div",11)(29,"input",12),I("ngModelChange",function(i){return G(r),$(x().readRate=i)})("change",function(){return G(r),$(x().update())}),v()(),m(30,"span",13),y(31,"readRate"),v()(),m(32,"div",10)(33,"div",11)(34,"input",14),I("change",function(){G(r);const i=x();return i.vcodec=void 0===i.vcodec?"":void 0,$(i.update())}),v()(),m(35,"span",13),y(36,"vcodec"),v(),m(37,"input",15),I("ngModelChange",function(i){return G(r),$(x().vcodec=i)})("change",function(){return G(r),$(x().update())}),v()(),m(38,"div",10)(39,"div",11)(40,"input",14),I("change",function(){G(r);const i=x();return i.acodec=void 0===i.acodec?"":void 0,$(i.update())}),v()(),m(41,"span",13),y(42,"acodec"),v(),m(43,"input",16),I("ngModelChange",function(i){return G(r),$(x().acodec=i)})("change",function(){return G(r),$(x().update())}),v()(),m(44,"div",10)(45,"div",11)(46,"input",14),I("change",function(){G(r);const i=x();return i.videoFilter=void 0===i.videoFilter?"":void 0,$(i.update())}),v()(),m(47,"span",13),y(48,"videoFilter"),v(),m(49,"input",17),I("ngModelChange",function(i){return G(r),$(x().videoFilter=i)})("change",function(){return G(r),$(x().update())}),v()(),m(50,"div",10)(51,"div",11)(52,"input",14),I("change",function(){G(r);const i=x();return i.encoderOptions=void 0===i.encoderOptions?"":void 0,$(i.update())}),v()(),m(53,"span",13),y(54,"encoderOptions"),v(),m(55,"input",18),I("ngModelChange",function(i){return G(r),$(x().encoderOptions=i)})("change",function(){return G(r),$(x().update())}),v()(),m(56,"div",10)(57,"div",11)(58,"input",14),I("change",function(){G(r);const i=x();return i.probeSize=void 0===i.probeSize?0:void 0,$(i.update())}),v()(),m(59,"span",13),y(60,"probeSize"),v(),m(61,"input",19),I("ngModelChange",function(i){return G(r),$(x().probeSize=i)})("change",function(){return G(r),$(x().update())}),v()(),m(62,"div",10)(63,"div",11)(64,"input",14),I("change",function(){G(r);const i=x();return i.analyzeDuration=void 0===i.analyzeDuration?0:void 0,$(i.update())}),v()(),m(65,"span",13),y(66,"analyzeDuration"),v(),m(67,"input",19),I("ngModelChange",function(i){return G(r),$(x().analyzeDuration=i)})("change",function(){return G(r),$(x().update())}),v()(),m(68,"div",10)(69,"div",11)(70,"input",14),I("change",function(){G(r);const i=x();return i.maxStreams=void 0===i.maxStreams?0:void 0,$(i.update())}),v()(),m(71,"span",13),y(72,"maxStreams"),v(),m(73,"input",19),I("ngModelChange",function(i){return G(r),$(x().maxStreams=i)})("change",function(){return G(r),$(x().update())}),v()(),m(74,"div",10)(75,"div",11)(76,"input",14),I("change",function(){G(r);const i=x();return i.maxWidth=void 0===i.maxWidth?0:void 0,$(i.update())}),v()(),m(77,"span",13),y(78,"maxWidth"),v(),m(79,"input",19),I("ngModelChange",function(i){return G(r),$(x().maxWidth=i)})("change",function(){return G(r),$(x().update())}),v()(),m(80,"div",10)(81,"div",11)(82,"input",14),I("change",function(){G(r);const i=x();return i.maxHeight=void 0===i.maxHeight?0:void 0,$(i.update())}),v()(),m(83,"span",13),y(84,"maxHeight"),v(),m(85,"input",19),I("ngModelChange",function(i){return G(r),$(x().maxHeight=i)})("change",function(){return G(r),$(x().update())}),v()(),m(86,"div",10)(87,"div",11)(88,"input",14),I("change",function(){G(r);const i=x();return i.maxFPS=void 0===i.maxFPS?0:void 0,$(i.update())}),v()(),m(89,"span",13),y(90,"fps"),v(),m(91,"input",19),I("ngModelChange",function(i){return G(r),$(x().maxFPS=i)})("change",function(){return G(r),$(x().update())}),v()(),m(92,"div",10)(93,"div",11)(94,"input",14),I("change",function(){G(r);const i=x();return i.maxBitrate=void 0===i.maxBitrate?0:void 0,$(i.update())}),v()(),m(95,"span",13),y(96,"bitrate"),v(),m(97,"input",19),I("ngModelChange",function(i){return G(r),$(x().maxBitrate=i)})("change",function(){return G(r),$(x().update())}),v()()}if(2&e){const r=x();C(6),M("ngModel",r.preset),C(1),M("ngValue",0),C(2),M("ngValue",1),C(2),M("ngValue",2),C(2),M("ngValue",3),C(2),M("ngIf",r.presetDescription),C(4),M("ngModel",r.debug),C(5),M("ngModel",r.useSeparateProcesses),C(5),M("ngModel",r.readRate),C(5),M("checked",void 0!==r.vcodec||null),C(3),M("ngModel",r.vcodec),j("disabled",void 0===r.vcodec||null),C(3),M("checked",void 0!==r.acodec||null),C(3),M("ngModel",r.acodec),j("disabled",void 0===r.acodec||null),C(3),M("checked",void 0!==r.videoFilter||null),j("disabled","copy"===r.vcodec||null),C(1),j("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,R2),C(2),M("ngModel",r.videoFilter),j("disabled",void 0===r.videoFilter||"copy"===r.vcodec||null),C(3),M("checked",void 0!==r.encoderOptions||null),j("disabled","copy"===r.vcodec||null),C(1),j("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,R2),C(2),M("ngModel",r.encoderOptions),j("disabled",void 0===r.encoderOptions||"copy"===r.vcodec||null),C(3),M("checked",void 0!==r.probeSize||null),C(3),M("ngModel",r.probeSize),j("disabled",void 0===r.probeSize||null),C(3),M("checked",void 0!==r.analyzeDuration||null),C(3),M("ngModel",r.analyzeDuration),j("disabled",void 0===r.analyzeDuration||null),C(3),M("checked",void 0!==r.maxStreams||null),C(3),M("ngModel",r.maxStreams),j("disabled",void 0===r.maxStreams||null),C(3),M("checked",void 0!==r.maxWidth||null),j("disabled","copy"===r.vcodec||null),C(1),j("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,R2),C(2),M("ngModel",r.maxWidth),j("disabled",void 0===r.maxWidth||"copy"===r.vcodec||null),C(3),M("checked",void 0!==r.maxHeight||null),j("disabled","copy"===r.vcodec||null),C(1),j("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,R2),C(2),M("ngModel",r.maxHeight),j("disabled",void 0===r.maxHeight||"copy"===r.vcodec||null),C(3),M("checked",void 0!==r.maxFPS||null),j("disabled","copy"===r.vcodec||null),C(1),j("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,R2),C(2),M("ngModel",r.maxFPS),j("disabled",void 0===r.maxFPS||"copy"===r.vcodec||null),C(3),M("checked",void 0!==r.maxBitrate||null),j("disabled","copy"===r.vcodec||null),C(1),j("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,R2),C(2),M("ngModel",r.maxBitrate),j("disabled",void 0===r.maxBitrate||"copy"===r.vcodec||null)}}let X_e=(()=>{var e;class t extends V1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"debug",void 0),V(this,"readRate",void 0),V(this,"vcodec",void 0),V(this,"acodec",void 0),V(this,"videoFilter",void 0),V(this,"encoderOptions",void 0),V(this,"probeSize",void 0),V(this,"analyzeDuration",void 0),V(this,"maxStreams",void 0),V(this,"maxWidth",void 0),V(this,"maxHeight",void 0),V(this,"maxFPS",void 0),V(this,"maxBitrate",void 0),V(this,"useSeparateProcesses",void 0),V(this,"preset",0),V(this,"presetDescription",void 0)}ngOnInit(){this.readValue()}readValue(){var n=this;return ve(function*(){const i=yield n.getCameraConfig(n.accessory?.uniqueId||"");i&&Object.prototype.hasOwnProperty.call(i,"videoConfig")&&Object.entries(i.videoConfig).forEach(([a,s])=>{n[a]=s}),n.updatePreset()})()}loadPreset(){0===this.preset?(this.readRate=void 0,this.vcodec=void 0,this.acodec=void 0,this.videoFilter=void 0,this.encoderOptions=void 0,this.probeSize=void 0,this.analyzeDuration=void 0,this.maxStreams=void 0,this.maxWidth=void 0,this.maxHeight=void 0,this.maxFPS=void 0,this.maxBitrate=void 0,this.useSeparateProcesses=void 0,this.presetDescription=void 0):1===this.preset?(this.readRate=void 0,this.vcodec="copy",this.acodec=void 0,this.videoFilter=void 0,this.encoderOptions=void 0,this.probeSize=void 0,this.analyzeDuration=void 0,this.maxStreams=void 0,this.maxWidth=void 0,this.maxHeight=void 0,this.maxFPS=void 0,this.maxBitrate=void 0,this.useSeparateProcesses=!0,this.presetDescription="Most eufy cams support the same codec that HomeKit requests. You can try and 'forward' the stream directly without encoding it with ffmpeg. This can increase performance and quality drastically."):2===this.preset?(this.readRate=void 0,this.vcodec=void 0,this.acodec=void 0,this.videoFilter=void 0,this.encoderOptions=void 0,this.probeSize=void 0,this.analyzeDuration=void 0,this.maxStreams=void 0,this.maxWidth=640,this.maxHeight=480,this.maxFPS=15,this.maxBitrate=void 0,this.useSeparateProcesses=!0,this.presetDescription="This preset tries to increase performance by reducing the quality of the stream. This can work for low performance hardware like raspberry pis."):this.presetDescription=void 0,this.update()}updatePreset(){let n=3;!this.readRate&&void 0===this.vcodec&&void 0===this.acodec&&void 0===this.videoFilter&&void 0===this.encoderOptions&&void 0===this.probeSize&&void 0===this.analyzeDuration&&void 0===this.maxStreams&&void 0===this.maxWidth&&void 0===this.maxHeight&&void 0===this.maxFPS&&void 0===this.maxBitrate&&void 0===this.useSeparateProcesses&&(n=0),!this.readRate&&"copy"===this.vcodec&&void 0===this.acodec&&void 0===this.videoFilter&&void 0===this.encoderOptions&&void 0===this.probeSize&&void 0===this.analyzeDuration&&void 0===this.maxStreams&&void 0===this.maxWidth&&void 0===this.maxHeight&&void 0===this.maxFPS&&void 0===this.maxBitrate&&!0===this.useSeparateProcesses&&(n=1),!this.readRate&&void 0===this.vcodec&&void 0===this.acodec&&void 0===this.videoFilter&&void 0===this.encoderOptions&&void 0===this.probeSize&&void 0===this.analyzeDuration&&void 0===this.maxStreams&&640===this.maxWidth&&480===this.maxHeight&&15===this.maxFPS&&void 0===this.maxBitrate&&!0===this.useSeparateProcesses&&(n=2),n!==this.preset&&(this.preset=n)}update(){var n=this;return ve(function*(){const i=yield n.getCameraConfig(n.accessory?.uniqueId||""),a=i&&Object.prototype.hasOwnProperty.call(i,"videoConfig")?i.videoConfig:{},s={};Object.prototype.hasOwnProperty.call(a,"audio")&&(s.audio=a.audio),n.debug&&(s.debug=n.debug),n.readRate&&(s.readRate=n.readRate),n.vcodec&&""!==n.vcodec&&(s.vcodec=n.vcodec),n.acodec&&""!==n.acodec&&(s.acodec=n.acodec),n.videoFilter&&""!==n.videoFilter&&(s.videoFilter=n.videoFilter),n.encoderOptions&&""!==n.encoderOptions&&(s.encoderOptions=n.encoderOptions),void 0!==n.probeSize&&(s.probeSize=n.probeSize),void 0!==n.analyzeDuration&&(s.analyzeDuration=n.analyzeDuration),void 0!==n.maxStreams&&(s.maxStreams=n.maxStreams),void 0!==n.maxWidth&&(s.maxWidth=n.maxWidth),void 0!==n.maxHeight&&(s.maxHeight=n.maxHeight),void 0!==n.maxFPS&&(s.maxFPS=n.maxFPS),void 0!==n.maxBitrate&&(s.maxBitrate=n.maxBitrate),n.useSeparateProcesses&&(s.useSeparateProcesses=n.useSeparateProcesses),n.updateConfig({videoConfig:s},n.accessory),n.updatePreset()})()}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Qe))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-advanced-videoconfig"]],inputs:{accessory:"accessory"},features:[ie],decls:6,vars:0,consts:[["acc","ngbAccordion"],["ngbPanelTitle","","class","accordion-header"],["ngbPanelHeader",""],["ngbPanelContent",""],["ngbPanelToggle","",1,"accordion-button"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],["aria-label","Presets",1,"form-select",3,"ngModel","ngModelChange","change"],[3,"ngValue"],[4,"ngIf"],[1,"input-group","mb-1"],[1,"input-group-text"],["type","checkbox",1,"form-check-input","mt-0",3,"ngModel","ngModelChange","change"],["id","inputGroup-sizing-default",1,"input-group-text"],["type","checkbox",1,"form-check-input","mt-0",3,"checked","change"],["type","text","placeholder","libx264",1,"form-control",3,"ngModel","ngModelChange","change"],["type","text","placeholder","libfdk_aac",1,"form-control",3,"ngModel","ngModelChange","change"],["type","text","placeholder","leave blank if you don't know",1,"form-control",3,"ngModel","ngModelChange","change"],["type","text","placeholder","-preset ultrafast -tune zerolatency",1,"form-control",3,"ngModel","ngModelChange","change"],["type","number","placeholder","0",1,"form-control",3,"ngModel","ngModelChange","change"]],template:function(n,i){1&n&&(m(0,"ngb-accordion",null,0)(2,"ngb-panel"),O(3,Y_e,3,0,"ng-template",1),O(4,Z_e,4,0,"ng-template",2),O(5,J_e,98,54,"ng-template",3),v()())},dependencies:[H1,z4,D4,bn,V4,l2,Hn,w1,m1,F5,to,R5,k5,eo,P5],styles:[".accordion-button[_ngcontent-%COMP%]:not(.collapsed){background-color:#00000008!important;color:#000!important}.accordion-button[_ngcontent-%COMP%]:not(.collapsed):after{background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e\")}.form-check-input[_ngcontent-%COMP%]{margin-left:-.5rem}.input-group-text[_ngcontent-%COMP%]{padding:.375rem 1rem}"]})),t})();function eCe(e,t){1&e&&(m(0,"div",5),y(1," Talkback will not work while 'RTSP Streaming' is enabled! "),v())}let tCe=(()=>{var e;class t extends V1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",!1),V(this,"rtspIsEnabled",!1)}ngOnInit(){this.readValue(),this.pluginService.addEventListener("configChanged",()=>this.readValue())}readValue(){var n=this;return ve(function*(){const i=yield n.getCameraConfig(n.accessory?.uniqueId||"");i&&Object.prototype.hasOwnProperty.call(i,"talkback")&&(n.value=i.talkback),i&&Object.prototype.hasOwnProperty.call(i,"rtsp")&&(n.rtspIsEnabled=i.rtsp)})()}update(){this.updateConfig({talkback:this.value},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Qe))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-talkback"]],inputs:{accessory:"accessory"},features:[ie],decls:13,vars:2,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"],["class","alert alert-danger","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-danger"]],template:function(n,i){1&n&&(m(0,"div",0)(1,"div",1)(2,"span"),y(3,"Enable Talkback (Two way communication)"),v(),m(4,"div",2)(5,"input",3),I("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),v()()(),O(6,eCe,2,0,"div",4),m(7,"small")(8,"i"),y(9," Enables you to talk with someone infront of the camera while streaming. "),k(10,"p"),y(11," Please be advised that this setting is in an early development stage. If you're experiencing issues while streaming, it is recommened to disable this setting."),k(12,"br"),v()()()),2&n&&(C(5),M("ngModel",i.value),C(1),M("ngIf",i.rtspIsEnabled&&i.value))},dependencies:[H1,l2,w1,m1],encapsulation:2})),t})();var pN={prefix:"far",iconName:"circle-question",icon:[512,512,[62108,"question-circle"],"f059","M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zm169.8-90.7c7.9-22.3 29.1-37.3 52.8-37.3h58.3c34.9 0 63.1 28.3 63.1 63.1c0 22.6-12.1 43.5-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6c-13.3 0-24-10.7-24-24V250.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4c4.7-2.7 7.6-7.7 7.6-13.1c0-8.4-6.8-15.1-15.1-15.1H222.6c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]};let fbe=(()=>{var e;class t{getChargingStatus(n){return ve(function*(){return window.homebridge.request("/getChargingStatus",n)})()}setExperimentalRTSPStatus(n,i){return ve(function*(){return window.homebridge.request("/setExperimentalRTSP",{sn:n,value:i})})()}getExperimentalRTSPStatus(n){return ve(function*(){return window.homebridge.request("/getExperimentalRTSPStatus",n)})()}getStationsCamerasMapping(){return ve(function*(){return window.homebridge.request("/getStationDeviceMapping")})()}getCamerasOnSameStation(n,i=[]){var a=this;return ve(function*(){try{const s=yield a.getStationsCamerasMapping();for(const c of Object.values(s))if(Array.isArray(c)&&c.indexOf(n)>-1){const o=[n];for(const l of c)l!==n&&-1===i.indexOf(l)&&o.push(l);return Promise.resolve(o)}throw new Error("no valid station - devices mapping was found")}catch(s){return Promise.reject(s)}})()}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)}),V(t,"\u0275prov",K({token:e,factory:e.\u0275fac,providedIn:"root"})),t})();function ube(e,t){1&e&&(m(0,"div"),y(1," You can enable this setting nevertheless in "),m(2,"a",9),y(3,"Plugin Settings"),v(),k(4,"p"),v())}function dbe(e,t){if(1&e&&(m(0,"li"),y(1),v()),2&e){const r=t.$implicit;C(1),X2(r)}}function hbe(e,t){if(1&e&&(m(0,"div",7),y(1," There are other cameras connected through the same station as this device. One station can only ever stream from one camera at the same time. Therefore it is not recommened to use HomeKit Secure Video with this camera since this would likely lead to conflicts."),k(2,"p"),O(3,ube,5,0,"div",6),y(4," Cameras on the same station: "),m(5,"ul"),O(6,dbe,2,1,"li",8),v()()),2&e){const r=x();C(3),M("ngIf",!r.ignoreMultipleDevicesWarning),C(3),M("ngForOf",r.camerasOnSameStation)}}function pbe(e,t){1&e&&(m(0,"div",7),y(1," Since your device is battery powered and currently not charging we don't recommend using this setting. The battery life will most likely decrease significantly. "),v())}function mbe(e,t){1&e&&(m(0,"div",10),y(1," Please be advised that since your device is only solar powered we cannot guarantee optimal results with this setting. It might well be, that your battery is depleting faster than it can be recharged by the sun. This depends heavily on your exact use case. "),v())}function gbe(e,t){if(1&e){const r=M1();m(0,"div")(1,"button",11),I("click",function(){G(r);const i=x();return $(i.showAdvancedSettings=!i.showAdvancedSettings)}),y(2),v(),m(3,"div",12,13),I("ngbCollapseChange",function(i){return G(r),$(!(x().showAdvancedSettings=i))}),m(5,"div",14),y(6,"HomeKit Secure Video is processed on Apples dedicated Servers (object and face recognition). This service is somewhat picky about the encoded video data it accepts. If you encounter problems with HKSV but normal streaming is doing fine, you can try to alter these settings. "),v(),m(7,"div",15)(8,"div",16),y(9," Video Settings "),v(),m(10,"ul",17)(11,"li",18)(12,"label",19)(13,"span"),y(14,"Maximum Recording Duration "),k(15,"fa-icon",20),v()(),m(16,"input",21),I("ngModelChange",function(i){return G(r),$(x().recordingDuration=i)})("change",function(){return G(r),$(x().update())}),v()(),m(17,"li",18)(18,"label",22)(19,"div",23)(20,"input",24),I("change",function(){G(r);const i=x();return i.vcodec=void 0===i.vcodec?"":void 0,$(i.update())}),v(),m(21,"label",25),y(22," vcodec "),k(23,"fa-icon",26),v()()(),m(24,"input",27),I("ngModelChange",function(i){return G(r),$(x().vcodec=i)})("change",function(){return G(r),$(x().update())}),v()(),m(25,"li",18)(26,"label",28)(27,"div",23)(28,"input",29),I("change",function(){G(r);const i=x();return i.videoFilter=void 0===i.videoFilter?"":void 0,$(i.update())}),v(),m(29,"label",30),y(30," videoFilter "),k(31,"fa-icon",31),v()()(),m(32,"input",32),I("ngModelChange",function(i){return G(r),$(x().videoFilter=i)})("change",function(){return G(r),$(x().update())}),v()(),m(33,"li",18)(34,"label",33)(35,"div",23)(36,"input",34),I("change",function(){G(r);const i=x();return i.encoderOptions=void 0===i.encoderOptions?"":void 0,$(i.update())}),v(),m(37,"label",35),y(38," encoderOptions "),k(39,"fa-icon",36),v()()(),m(40,"input",37),I("ngModelChange",function(i){return G(r),$(x().encoderOptions=i)})("change",function(){return G(r),$(x().update())}),v()(),m(41,"li",18)(42,"div",23)(43,"input",38),I("ngModelChange",function(i){return G(r),$(x().crop=i)})("change",function(){return G(r),$(x().update())}),v(),m(44,"label",39),y(45," force crop image to requested/defined resolution "),k(46,"fa-icon",40),v()()(),m(47,"li",18)(48,"label",41)(49,"div",23)(50,"input",42),I("change",function(){G(r);const i=x();return i.maxFPS=void 0===i.maxFPS?0:void 0,$(i.update())}),v(),m(51,"label",43),y(52," fps "),k(53,"fa-icon",44),v()()(),m(54,"input",45),I("ngModelChange",function(i){return G(r),$(x().maxFPS=i)})("change",function(){return G(r),$(x().update())}),v()(),m(55,"li",18)(56,"label",46)(57,"div",23)(58,"input",47),I("change",function(){G(r);const i=x();return i.maxBitrate=void 0===i.maxBitrate?0:void 0,$(i.update())}),v(),m(59,"label",48),y(60," bitrate "),k(61,"fa-icon",49),v()()(),m(62,"input",50),I("ngModelChange",function(i){return G(r),$(x().maxBitrate=i)})("change",function(){return G(r),$(x().update())}),v()()()(),m(63,"div",15)(64,"div",16),y(65," Audio Settings "),v(),m(66,"ul",17)(67,"li",18)(68,"div",23)(69,"input",51),I("ngModelChange",function(i){return G(r),$(x().audio=i)})("change",function(){return G(r),$(x().update())}),v(),m(70,"label",52),y(71," Enable Audio "),k(72,"fa-icon",53),v()()()()()()()}if(2&e){const r=x();C(2),F2("",r.showAdvancedSettings?"Hide":"Show"," advanced HKSV settings"),C(1),M("ngbCollapse",!r.showAdvancedSettings),C(12),M("icon",r.faQuestionCircle),C(1),M("ngModel",r.recordingDuration),C(4),M("checked",void 0!==r.vcodec||null),C(3),M("icon",r.faQuestionCircle),C(1),M("ngModel",r.vcodec),j("disabled",void 0===r.vcodec||null),C(4),M("checked",void 0!==r.videoFilter||null),j("disabled","copy"===r.vcodec||null),C(1),j("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,R2),C(2),M("icon",r.faQuestionCircle),C(1),M("ngModel",r.videoFilter),j("disabled",void 0===r.videoFilter||"copy"===r.vcodec||null),C(4),M("checked",void 0!==r.encoderOptions||null),j("disabled","copy"===r.vcodec||null),C(1),j("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,R2),C(2),M("icon",r.faQuestionCircle),C(1),M("ngModel",r.encoderOptions),j("placeholder",void 0!==r.encoderOptions?"":r.vcodecOptionsPlaceholder)("disabled",void 0===r.encoderOptions||"copy"===r.vcodec||null),C(3),M("ngModel",r.crop),j("disabled","copy"===r.vcodec||null),C(1),j("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,R2),C(2),M("icon",r.faQuestionCircle),C(4),M("checked",void 0!==r.maxFPS||null),j("disabled","copy"===r.vcodec||null),C(1),j("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,R2),C(2),M("icon",r.faQuestionCircle),C(1),M("ngModel",r.maxFPS),j("disabled",void 0===r.maxFPS||"copy"===r.vcodec||null),C(4),M("checked",void 0!==r.maxBitrate||null),j("disabled","copy"===r.vcodec||null),C(1),j("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,R2),C(2),M("icon",r.faQuestionCircle),C(1),M("ngModel",r.maxBitrate),j("disabled",void 0===r.maxBitrate||"copy"===r.vcodec||null),C(7),M("ngModel",r.audio),C(3),M("icon",r.faQuestionCircle)}}let vbe=(()=>{var e;class t extends V1{constructor(n,i){super(n),V(this,"accessoryService",void 0),V(this,"faQuestionCircle",pN),V(this,"accessory",void 0),V(this,"value",false),V(this,"showAdvancedSettings",!1),V(this,"vcodec",void 0),V(this,"videoFilter",void 0),V(this,"encoderOptions",void 0),V(this,"maxFPS",void 0),V(this,"maxBitrate",void 0),V(this,"crop",!0),V(this,"audio",!0),V(this,"recordingDuration",90),V(this,"vcodecOptionsPlaceholder","-preset ultrafast -tune zerolatency"),V(this,"chargingStatus",vx.PLUGGED),V(this,"camerasOnSameStation",[]),V(this,"ignoreMultipleDevicesWarning",i4.ignoreMultipleDevicesWarning),this.accessoryService=i}ngOnInit(){this.readValue()}readValue(){var n=this;return ve(function*(){const i=yield n.getCameraConfig(n.accessory?.uniqueId||"");if(i&&Object.prototype.hasOwnProperty.call(i,"hsv")&&(n.value=i.hsv),i&&Object.prototype.hasOwnProperty.call(i,"hsvRecordingDuration")&&(n.recordingDuration=i.hsvRecordingDuration),i&&Object.prototype.hasOwnProperty.call(i,"hsvConfig")&&Object.entries(i.hsvConfig).forEach(([a,s])=>{n[a]=s}),n.accessory){n.accessoryService.getChargingStatus(n.accessory.uniqueId).then(s=>n.chargingStatus=s),Object.prototype.hasOwnProperty.call(n.config,"ignoreMultipleDevicesWarning")&&(n.ignoreMultipleDevicesWarning=n.config.ignoreMultipleDevicesWarning);const a=i&&Object.prototype.hasOwnProperty.call(i,"ignoreDevices")?i.ignoreDevices:[];n.accessoryService.getCamerasOnSameStation(n.accessory.uniqueId,a).then(s=>{n.camerasOnSameStation=s,n.camerasOnSameStation.length>1&&!n.ignoreMultipleDevicesWarning&&(n.value=!1,n.update())})}n.placeholderUpdate()})()}placeholderUpdate(){switch(this.vcodec){case"copy":this.vcodecOptionsPlaceholder="";break;case"":case"libx264":case void 0:this.vcodecOptionsPlaceholder="-preset ultrafast -tune zerolatency";break;default:this.vcodecOptionsPlaceholder="leave blank if you don't know"}}update(){var n=this;return ve(function*(){const i=yield n.getCameraConfig(n.accessory?.uniqueId||""),s=(i&&Object.prototype.hasOwnProperty.call(i,"videoConfig"),{});n.audio||(s.audio=n.audio),n.crop||(s.crop=n.crop),n.vcodec&&""!==n.vcodec&&(s.vcodec=n.vcodec),n.videoFilter&&""!==n.videoFilter&&(s.videoFilter=n.videoFilter),void 0!==n.encoderOptions&&(s.encoderOptions=n.encoderOptions),void 0!==n.maxFPS&&(s.maxFPS=n.maxFPS),void 0!==n.maxBitrate&&(s.maxBitrate=n.maxBitrate),n.updateConfig({hsv:n.value,hsvRecordingDuration:n.recordingDuration,hsvConfig:s},n.accessory),n.placeholderUpdate()})()}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Qe),H(fbe))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-enable-hsv"]],inputs:{accessory:"accessory"},features:[ie],decls:21,vars:6,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-warning","role","alert",4,"ngIf"],["class","alert alert-secondary","role","alert",4,"ngIf"],[4,"ngIf"],["role","alert",1,"alert","alert-warning"],[4,"ngFor","ngForOf"],["routerLink","/advancedConfig"],["role","alert",1,"alert","alert-secondary"],["type","button",1,"btn","btn-secondary","mb-3",3,"click"],[3,"ngbCollapse","ngbCollapseChange"],["collapse","ngbCollapse"],[1,"mb-3"],[1,"card","mb-3"],[1,"card-header"],[1,"list-group","list-group-flush"],[1,"list-group-item"],["for","recordingDurationInput",1,"form-label"],["ngbTooltip","Duration a HKSV event will be recorded. The recording may be ended sooner by HomeKit, but mostly the whole time will be recorded and analyzed regarding motion, people and so on. Don't use too high values for battery powered devices.",1,"m-1",3,"icon"],["type","number","id","recordingDurationInput","placeholder","90","min","10","max","300",1,"form-control",3,"ngModel","ngModelChange","change"],["for","vcodecInput",1,"form-label"],[1,"form-check"],["type","checkbox","id","vcodec",1,"form-check-input",3,"checked","change"],["for","vcodec",1,"form-check-label"],["ngbTooltip","Choose which video codec should be used to encode the video stream for HomeKit.",1,"m-1",3,"icon"],["type","text","id","vcodecInput","placeholder","libx264",1,"form-control",3,"ngModel","ngModelChange","change"],["for","filterInput",1,"form-label"],["type","checkbox","id","videoFilter",1,"form-check-input",3,"checked","change"],["for","videoFilter",1,"form-check-label"],["ngbTooltip","Set custom filters for video encoding.",1,"m-1",3,"icon"],["type","text","id","filterInput","placeholder","leave blank if you don't know",1,"form-control",3,"ngModel","ngModelChange","change"],["for","encoderOptionsInput",1,"form-label"],["type","checkbox","id","encoderOptions",1,"form-check-input",3,"checked","change"],["for","encoderOptions",1,"form-check-label"],["ngbTooltip","Set custom codec options for video encoding.",1,"m-1",3,"icon"],["type","text","id","encoderOptionsInput",1,"form-control",3,"ngModel","ngModelChange","change"],["type","checkbox","id","crop",1,"form-check-input",3,"ngModel","ngModelChange","change"],["for","crop",1,"form-check-label"],["ngbTooltip","The input might be in another aspect ratio than requested by HomeKit (e.g. Doorbells may stream 1600x1200 -> 4:3 while HomeKit requests 1920x1080 -> 16:9). This setting will ensure that the requested aspect ratio is hit by cropping the image accordingly.",1,"m-1",3,"icon"],["for","maxFPSInput",1,"form-label"],["type","checkbox","id","maxFPS",1,"form-check-input",3,"checked","change"],["for","maxFPS",1,"form-check-label"],["ngbTooltip","Frames per second for the encoded video. If not set the value requested by the HomeKit Controller will be used.",1,"m-1",3,"icon"],["type","number","id","maxFPSInput","placeholder","0",1,"form-control",3,"ngModel","ngModelChange","change"],["for","maxBitrateInput",1,"form-label"],["type","checkbox","id","maxBitrate",1,"form-check-input",3,"checked","change"],["for","maxBitrate",1,"form-check-label"],["ngbTooltip","Bitrate used for the encoded video. If not set the value requested by the HomeKit Controller will be used.",1,"m-1",3,"icon"],["type","number","id","maxBitrateInput","placeholder","0",1,"form-control",3,"ngModel","ngModelChange","change"],["type","checkbox","id","hsvAudio",1,"form-check-input",3,"ngModel","ngModelChange","change"],["for","hsvAudio",1,"form-check-label"],["ngbTooltip","Enable audio in HKSV recordings.",1,"m-1",3,"icon"]],template:function(n,i){1&n&&(m(0,"div",0)(1,"div",1)(2,"span"),y(3,"Use HomeKit Secure Video"),v(),m(4,"div",2)(5,"input",3),I("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),v()()(),O(6,hbe,7,2,"div",4),O(7,pbe,2,0,"div",4),O(8,mbe,2,0,"div",5),m(9,"small")(10,"i"),y(11," This feature is in an experimental state and can have some side-effects due to technical limitations imposed by the connection to the eufy device. "),k(12,"p"),m(13,"ul")(14,"li"),y(15,"The device will record until the HomeKit-Controller cancels the recording, or up to a maximum of three minutes. However Apple analyzes the recorded video and only shows the snippets containing an actual event."),v(),m(16,"li"),y(17,"Due to the continued recording the power consumption will be higher than with the native recording through the eufy app. Keep this in mind, if you use battery powered devices."),v(),m(18,"li"),y(19,"If you use low performance hardware the recording might interfere with livestreaming. You might be able to utilize the 'copy' preset in advanced configuration to mitigate this."),v()()()(),O(20,gbe,73,39,"div",6),v()),2&n&&(C(5),M("ngModel",i.value),j("disabled",i.camerasOnSameStation.length>1&&!i.ignoreMultipleDevicesWarning||null),C(1),M("ngIf",i.camerasOnSameStation.length>1),C(1),M("ngIf",2===i.chargingStatus&&i.value),C(1),M("ngIf",4===i.chargingStatus&&i.value),C(12),M("ngIf",i.value))},dependencies:[At,H1,bn,V4,l2,w1,M5,C5,m1,B5,TM,cn,D7],encapsulation:2})),t})();function _be(e,t){1&e&&k(0,"hr")}function Cbe(e,t){1&e&&k(0,"app-rtsp-streaming",6),2&e&&M("accessory",x(3).accessory)}function Mbe(e,t){1&e&&k(0,"hr")}function ybe(e,t){1&e&&k(0,"app-talkback",6),2&e&&M("accessory",x(3).accessory)}function bbe(e,t){if(1&e&&(m(0,"div"),k(1,"hr")(2,"app-enable-camera",6)(3,"hr")(4,"app-livestream-cache",6),O(5,_be,1,0,"hr",2),O(6,Cbe,1,1,"app-rtsp-streaming",7),k(7,"hr")(8,"app-enable-audio",6),O(9,Mbe,1,0,"hr",2),O(10,ybe,1,1,"app-talkback",7),v()),2&e){const r=x(2);C(2),M("accessory",r.accessory),C(2),M("accessory",r.accessory),C(1),M("ngIf",r.supportsRTSP),C(1),M("ngIf",r.supportsRTSP),C(2),M("accessory",r.accessory),C(1),M("ngIf",r.supportsTalkback),C(1),M("ngIf",r.supportsTalkback)}}function Hbe(e,t){if(1&e&&(m(0,"div",3)(1,"div",4)(2,"b"),y(3,"Camera Settings"),v(),y(4," for "),m(5,"i"),y(6),v()(),m(7,"div",5),k(8,"app-ignore-accessory",6),O(9,bbe,11,7,"div",2),v()()),2&e){const r=x();C(6),Q3("",r.accessory.displayName," (",r.accessory.uniqueId,")"),C(2),M("accessory",r.accessory),C(1),M("ngIf",r.isCamera)}}function wbe(e,t){if(1&e&&(m(0,"div",3)(1,"div",4)(2,"b"),y(3,"HomeKit Behaviour"),v(),y(4," for "),m(5,"i"),y(6),v()(),m(7,"div",5),k(8,"app-camera-buttons",6)(9,"hr")(10,"app-enable-hsv",6),v()()),2&e){const r=x(2);C(6),Q3("",r.accessory.displayName," (",r.accessory.uniqueId,")"),C(2),M("accessory",r.accessory),C(2),M("accessory",r.accessory)}}function Vbe(e,t){1&e&&k(0,"hr")}function zbe(e,t){1&e&&k(0,"app-immediate-notification-on-ring",6),2&e&&M("accessory",x(3).accessory)}function Dbe(e,t){if(1&e&&(m(0,"div"),k(1,"app-force-refreshsnap",6),v()),2&e){const r=x(3);C(1),M("accessory",r.accessory)}}function Sbe(e,t){if(1&e&&(m(0,"div",3)(1,"div",4)(2,"b"),y(3,"Snapshot Behaviour"),v(),y(4," for "),m(5,"i"),y(6),v()(),m(7,"div",5),k(8,"app-snapshot-handling-method",6),O(9,Vbe,1,0,"hr",2),O(10,zbe,1,1,"app-immediate-notification-on-ring",7),k(11,"hr")(12,"app-delay-camera-snapshots",6)(13,"hr")(14,"app-periodic-snapshot-refresh",6),O(15,Dbe,2,1,"div",2),v()()),2&e){const r=x(2);C(6),Q3("",r.accessory.displayName," (",r.accessory.uniqueId,")"),C(2),M("accessory",r.accessory),C(1),M("ngIf",r.isDoorbell),C(1),M("ngIf",r.isDoorbell),C(2),M("accessory",r.accessory),C(2),M("accessory",r.accessory),C(1),M("ngIf",!r.showEnhancedSnapshotBehaviour)}}function Lbe(e,t){if(1&e&&(m(0,"div"),k(1,"p"),O(2,wbe,11,4,"div",1),k(3,"p"),O(4,Sbe,16,8,"div",1),k(5,"p")(6,"app-advanced-videoconfig",6),v()),2&e){const r=x();C(2),M("ngIf",r.accessory),C(2),M("ngIf",r.accessory),C(2),M("accessory",r.accessory)}}let xbe=(()=>{var e;class t extends V1{constructor(n,i){super(n),V(this,"route",void 0),V(this,"accessory",void 0),V(this,"showEnhancedSnapshotBehaviour",!0),V(this,"isDoorbell",!1),V(this,"isCamera",!1),V(this,"supportsRTSP",!1),V(this,"supportsTalkback",!1),this.route=i}ngOnInit(){const n=this.route.snapshot.paramMap.get("uniqueId");this.accessory=this.pluginService.getDevice(n),this.accessory&&(this.isDoorbell=W4.isDoorbell(this.accessory.type),this.isCamera=W4.isCamera(this.accessory.type),this.supportsRTSP=W4.supportsRTSP(this.accessory.type),this.supportsTalkback=W4.supportsTalkback(this.accessory.type),this.supportsRTSP||this.updateConfig({rtsp:!1},this.accessory),this.supportsTalkback||this.updateConfig({talkback:!1},this.accessory))}updateSnapshotView(n){this.showEnhancedSnapshotBehaviour=n}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Qe),H(Nn))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-camera-config-options"]],features:[ie],decls:4,vars:2,consts:[["routerLink","/accessories",1,"btn","btn-secondary","mb-3"],["class","card",4,"ngIf"],[4,"ngIf"],[1,"card"],[1,"card-header"],[1,"card-body","pt-0","pb-4"],[3,"accessory"],[3,"accessory",4,"ngIf"]],template:function(n,i){1&n&&(m(0,"a",0),y(1,"Back to Devices List"),v(),O(2,Hbe,10,4,"div",1),O(3,Lbe,7,3,"div",2)),2&n&&(C(2),M("ngIf",i.accessory),C(1),M("ngIf",i.isCamera))},dependencies:[H1,cn,Cx,T_e,O_e,R_e,P_e,F_e,B_e,$_e,W_e,q_e,K_e,X_e,tCe,vbe],encapsulation:2})),t})();var nu=function(e){return e[e.UNKNOWN=0]="UNKNOWN",e[e.CAPTCHA=1]="CAPTCHA",e[e.TFA=2]="TFA",e[e.TIMEOUT=3]="TIMEOUT",e}(nu||{});const Nbe={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 Abe=(()=>{var e;class t{constructor(n){V(this,"pluginService",void 0),this.pluginService=n}getCredentials(){var n=this;return ve(function*(){try{const i=yield n.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{return Promise.reject("no config")}})()}login(n){return ve(function*(){try{const i=yield window.homebridge.request("/login",n);return Promise.resolve(i)}catch(i){return Promise.reject(i)}})()}updateConfigCredentials(n){var i=this;return ve(function*(){let a={};try{a=yield i.pluginService.getConfig()}catch(s){console.log("Could not get credentials from config: "+s)}a.username=n.username,a.password=n.password,a.country=n.country,a.deviceName=n.deviceName,yield i.pluginService.updateConfig(a,!0)})()}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(Y(Qe))}),V(t,"\u0275prov",K({token:e,factory:e.\u0275fac,providedIn:"root"})),t})();function Ebe(e,t){1&e&&(p3(),y(0," If you login here the new connection might interfere with any already established connection that was made by the eufy plugin itself."),m3(),k(1,"p"),m(2,"i"),y(3,"So even if you do not change any settings we recommened that you restart the plugin after you've connected to the eufy cloud here."),v())}function Tbe(e,t){if(1&e){const r=M1();m(0,"p",10)(1,"ngb-alert",11),I("closed",function(){return G(r),$(x().resetLoginFailed())}),p3(),m(2,"svg",12),k(3,"use",13),v(),m3(),m(4,"strong"),y(5,"Login was not successful!"),v()()()}2&e&&(C(1),M("dismissible",!0))}function Ibe(e,t){if(1&e&&(m(0,"div",32),p3(),m(1,"svg",33),k(2,"use",34),v(),m3(),m(3,"div"),y(4," Please make sure to restart plugin after you're done. "),m(5,"u",35),y(6," Tell me why... "),v()()()),2&e){x(2);const r=P2(6);C(5),M("autoClose","outside")("ngbPopover",r)}}function Obe(e,t){1&e&&(y(0,"You can leave this field blank."),k(1,"p"),y(2,"This will set the an option in the api calls to the eufy cloud, so that the servers think this plugin uses the official eufy app on the given device. If left blank the plugin will use a random device identifier. See "),m(3,"a",36),y(4,"this disussion"),v(),y(5," to learn more."))}function Rbe(e,t){if(1&e&&(m(0,"option"),y(1),v()),2&e){const r=t.$implicit,n=x(2);j("value",r.short)("selected",n.credentials.country===r.short||null),C(1),F2("",r.long," ")}}function kbe(e,t){1&e&&k(0,"span",37)}function Pbe(e,t){1&e&&(m(0,"span"),y(1,"..."),v())}function Fbe(e,t){if(1&e){const r=M1();m(0,"div"),O(1,Ibe,7,2,"div",14),m(2,"div",15)(3,"input",16),I("ngModelChange",function(i){return G(r),$(x().credentials.username=i)}),v(),m(4,"label",17),y(5,"Email address"),v()(),k(6,"p"),m(7,"div",15)(8,"input",18),I("ngModelChange",function(i){return G(r),$(x().credentials.password=i)}),v(),m(9,"label",19),y(10,"Password"),v()(),k(11,"p"),m(12,"div",15),O(13,Obe,6,0,"ng-template",null,20,D2),m(15,"input",21),I("ngModelChange",function(i){return G(r),$(x().credentials.deviceName=i)}),v(),m(16,"label",22),y(17,"Device Name"),v()(),m(18,"div",23)(19,"div",24)(20,"select",25),I("ngModelChange",function(i){return G(r),$(x().credentials.country=i)}),O(21,Rbe,2,3,"option",26),v(),m(22,"small")(23,"i"),y(24," Make sure to use the same country that you use to login with the eufy app. "),v()()(),k(25,"span",27),m(26,"div",28)(27,"button",29),I("click",function(){return G(r),$(x().login())}),O(28,kbe,1,0,"span",30),y(29," Login "),O(30,Pbe,2,0,"span",9),v(),m(31,"button",31),I("click",function(){return G(r),$(x().cancelLogin())}),y(32," Cancel "),v()()()()}if(2&e){const r=P2(14),n=x();C(1),M("ngIf",!n.firstLoginAssumed),C(2),M("ngModel",n.credentials.username),j("class",n.emailIsValid?"form-control":"form-control is-invalid")("disabled",!!n.loginInProgress||null),C(5),M("ngModel",n.credentials.password),j("class",n.passwordIsValid?"form-control":"form-control is-invalid")("disabled",!!n.loginInProgress||null),C(7),M("ngModel",n.credentials.deviceName)("ngbTooltip",r)("closeDelay",2500),j("class",n.passwordIsValid?"form-control":"form-control is-invalid")("disabled",!!n.loginInProgress||null),C(5),M("ngModel",n.credentials.country),j("disabled",!!n.loginInProgress||null),C(1),M("ngForOf",n.countries),C(6),j("disabled",!!n.loginInProgress||null),C(1),M("ngIf",n.loginInProgress),C(2),M("ngIf",n.loginInProgress),C(1),j("disabled",!!n.loginInProgress||null)}}function Bbe(e,t){1&e&&k(0,"span",37)}function Ube(e,t){1&e&&(m(0,"span"),y(1,"..."),v())}function jbe(e,t){if(1&e){const r=M1();m(0,"div")(1,"div",38),y(2,"You should have gotten a 2FA verification code from eufy in your mail. Please enter this below."),v(),m(3,"div",6)(4,"div",39)(5,"input",40),I("ngModelChange",function(i){return G(r),$(x().otp=i)}),v(),m(6,"label",41),y(7,"2FA Code"),v()()(),m(8,"div",42)(9,"div",43)(10,"button",44),I("click",function(){return G(r),$(x().login())}),O(11,Bbe,1,0,"span",30),y(12," Verify "),O(13,Ube,2,0,"span",9),v()()(),m(14,"div",6)(15,"div",43)(16,"button",31),I("click",function(){return G(r),$(x().cancelLogin())}),y(17," Cancel "),v()()()()}if(2&e){const r=x();C(5),M("ngModel",r.otp),j("class",r.otpIsValid?"form-control":"form-control is-invalid")("disabled",!!r.loginInProgress||null),C(5),j("disabled",!!r.loginInProgress||null),C(1),M("ngIf",r.loginInProgress),C(2),M("ngIf",r.loginInProgress),C(3),j("disabled",!!r.loginInProgress||null)}}function Gbe(e,t){1&e&&k(0,"span",37)}function $be(e,t){1&e&&(m(0,"span"),y(1,"..."),v())}function Wbe(e,t){if(1&e){const r=M1();m(0,"div")(1,"div",38),y(2,"Please enter the captcha below."),v(),m(3,"div",42),k(4,"img",45),v(),m(5,"div",6)(6,"div",39)(7,"input",40),I("ngModelChange",function(i){return G(r),$(x().captcha=i)}),v(),m(8,"label",41),y(9,"Captcha"),v()()(),m(10,"div",42)(11,"div",43)(12,"button",44),I("click",function(){return G(r),$(x().login())}),O(13,Gbe,1,0,"span",30),y(14," Verify "),O(15,$be,2,0,"span",9),v()()(),m(16,"div",6)(17,"div",43)(18,"button",31),I("click",function(){return G(r),$(x().cancelLogin())}),y(19," Cancel "),v()()()()}if(2&e){const r=x();C(4),M("src",r.captchaImageData,L3),C(3),M("ngModel",r.captcha),j("class",r.captchaIsValid?"form-control":"form-control is-invalid")("disabled",!!r.loginInProgress||null),C(5),j("disabled",!!r.loginInProgress||null),C(1),M("ngIf",r.loginInProgress),C(2),M("ngIf",r.loginInProgress),C(3),j("disabled",!!r.loginInProgress||null)}}var Mt=function(e){return e[e.LOGIN=1]="LOGIN",e[e.TFA=2]="TFA",e[e.CAPTCHA=3]="CAPTCHA",e}(Mt||{});let qbe=(()=>{var e;class t{constructor(n,i){V(this,"loginService",void 0),V(this,"routerService",void 0),V(this,"countries",[]),V(this,"credentials",{username:"",password:"",country:"US",deviceName:""}),V(this,"otp",""),V(this,"captcha",""),V(this,"captchaImageData",""),V(this,"captchaId",""),V(this,"loginInProgress",!1),V(this,"loginFailed",!1),V(this,"loginStep",Mt.LOGIN),V(this,"firstLoginAssumed",!1),V(this,"emailIsValid",!0),V(this,"passwordIsValid",!0),V(this,"otpIsValid",!0),V(this,"captchaIsValid",!0),this.loginService=n,this.routerService=i}ngOnInit(){this.getCredentials(),this.fillCountryArray()}getCredentials(){this.loginService.getCredentials().then(n=>this.credentials=n).catch(n=>{this.firstLoginAssumed=!0,console.log("Could not get config in login component: "+n)})}fillCountryArray(){Object.entries(Nbe).forEach(([n,i])=>{this.countries.push({short:n,long:i})})}login(){this.inputIsInvalid()||(this.resetLoginFailed(),this.loginInProgress=!0,this.loginStep===Mt.LOGIN&&this.loginWithCredentials(),this.loginStep===Mt.TFA&&this.loginWithTFA(),this.loginStep===Mt.CAPTCHA&&this.loginWithCaptcha())}loginWithCredentials(){var n=this;return ve(function*(){let i;try{i=yield n.loginService.login(n.credentials)}catch(a){console.log("login error: "+a)}n.evaluateLoginResult(i)})()}loginWithTFA(){var n=this;return ve(function*(){let i;try{i=yield n.loginService.login({verifyCode:n.otp})}catch(a){console.log("login error: "+a)}n.evaluateLoginResult(i)})()}loginWithCaptcha(){var n=this;return ve(function*(){let i;try{i=yield n.loginService.login({captcha:{captchaCode:n.captcha,captchaId:n.captchaId}})}catch(a){console.log("login error: "+a)}n.evaluateLoginResult(i)})()}evaluateLoginResult(n){if(this.loginInProgress=!1,n&&n.success)this.loginService.updateConfigCredentials(this.credentials),this.routerService.navigate(["/accessories",{waitForAccessories:!0}]);else{if(n&&n.failReason&&n.failReason===nu.TFA)return void(this.loginStep=Mt.TFA);if(n&&n.failReason&&n.failReason===nu.CAPTCHA&&n.data&&n.data.id&&n.data.captcha)return this.loginStep=Mt.CAPTCHA,this.captchaId=n.data.id,void(this.captchaImageData=n.data.captcha);this.loginStep=Mt.LOGIN,this.loginFailed=!0}}inputIsInvalid(){this.emailIsValid=!0,this.passwordIsValid=!0,this.otpIsValid=!0;let n=!1;return this.loginStep===Mt.LOGIN&&this.credentials.username.length<4&&(this.emailIsValid=!1,n=!0),this.loginStep===Mt.LOGIN&&this.credentials.password.length<4&&(this.passwordIsValid=!1,n=!0),this.loginStep===Mt.TFA&&this.otp.length<6&&(this.otpIsValid=!1,n=!0),this.loginStep===Mt.CAPTCHA&&this.captcha.length<4&&(this.captchaIsValid=!1,n=!0),n}resetLoginFailed(){this.loginFailed=!1}cancelLogin(){this.routerService.navigate(["/accessories"])}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Abe),H(_2))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-login"]],decls:13,vars:4,consts:[["xmlns","http://www.w3.org/2000/svg",2,"display","none"],["id","info-fill","fill","currentColor","viewBox","0 0 16 16"],["d","M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"],["id","exclamation-triangle-fill","fill","currentColor","viewBox","0 0 16 16"],["d","M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"],["popInfo",""],[1,"row","d-flex","justify-content-center"],["class","col-11 col-sm-7",4,"ngIf"],[1,"col-11","col-sm-7","card","p-4"],[4,"ngIf"],[1,"col-11","col-sm-7"],["type","danger",3,"dismissible","closed"],["width","24","height","24","role","img","aria-label","Login Error",1,"bi","flex-shrink-0","me-2"],[0,"xlink","href","#exclamation-triangle-fill"],["class","alert alert-warning d-flex align-items-center","role","alert",4,"ngIf"],[1,"form-floating","mb-3"],["type","email","id","floatingInput","placeholder","name@example.com","ngModel","","email","",3,"ngModel","ngModelChange"],["for","floatingInput"],["type","password","id","floatingPassword","placeholder","Password",3,"ngModel","ngModelChange"],["for","floatingPassword"],["deviceNameExplanation",""],["type","text","id","floatingDevice","placeholder","Device Name","placement","top",3,"ngModel","ngbTooltip","closeDelay","ngModelChange"],["for","floatingDevice"],[1,"row"],[1,"col-12","col-sm-6","mb-3","mb-sm0"],["aria-label","select country",1,"form-select","mb-3",3,"ngModel","ngModelChange"],[4,"ngFor","ngForOf"],[1,"col-0","col-sm-1"],[1,"col-12","col-sm-5","text-end","mb-3"],["type","button",1,"btn","btn-success","col-12","mb-3",3,"click"],["class","spinner-border spinner-border-sm","role","status","aria-hidden","true",4,"ngIf"],["type","button",1,"btn","btn-secondary","col-12",3,"click"],["role","alert",1,"alert","alert-warning","d-flex","align-items-center"],["width","24","height","24","role","img","aria-label","Warning:",1,"bi","flex-shrink-0","me-2"],[0,"xlink","href","#info-fill"],["role","button","popoverTitle","Please restart after login",3,"autoClose","ngbPopover"],["href","https://github.com/homebridge-eufy-security/plugin/issues/201","target","_blank","rel","noopener noreferrer",2,"color","white"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm"],[1,"row","mb-3"],[1,"form-floating","mb-3","col-8","col-sm-6"],["type","text","id","floatingOTP","placeholder","",3,"ngModel","ngModelChange"],["for","floatingOTP"],[1,"row","d-flex","justify-content-center","mb-3"],[1,"col-8","col-sm-6"],["type","button",1,"btn","btn-success","col-12",3,"click"],[1,"col-10","col-sm-8",3,"src"]],template:function(n,i){1&n&&(p3(),m(0,"svg",0)(1,"symbol",1),k(2,"path",2),v(),m(3,"symbol",3),k(4,"path",4),v()(),O(5,Ebe,4,0,"ng-template",null,5,D2),m3(),m(7,"div",6),O(8,Tbe,6,1,"p",7),m(9,"div",8),O(10,Fbe,33,19,"div",9),O(11,jbe,18,7,"div",9),O(12,Wbe,20,8,"div",9),v()()),2&n&&(C(8),M("ngIf",i.loginFailed),C(2),M("ngIf",1===i.loginStep),C(1),M("ngIf",2===i.loginStep),C(1),M("ngIf",3===i.loginStep))},dependencies:[At,H1,z4,D4,bn,Hn,w1,b5,m1,kC,cZ,TM],encapsulation:2})),t})(),Kbe=(()=>{var e;class t extends V1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",[])}ngOnInit(){this.readValue()}readValue(){var n=this;return ve(function*(){const i=yield n.getStationConfig(n.accessory?.uniqueId||"");i&&Array.isArray(i.manualTriggerModes)&&(n.value=i.manualTriggerModes)})()}toggle(n){-1!==this.value.indexOf(n)?this.value=this.value.filter(i=>i!==n):this.value.push(n)}update(){this.updateConfig({manualTriggerModes:this.value},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Qe))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-manual-alarm-modes"]],inputs:{accessory:"accessory"},features:[ie],decls:36,vars:4,consts:[[1,"settingsItem","row","p-3"],[1,"mb-4"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"change"]],template:function(n,i){1&n&&(m(0,"div",0)(1,"span",1),y(2,"Manual Alarm Trigger Modes"),v(),m(3,"div",2)(4,"span"),y(5,"HomeKit Home"),v(),m(6,"div",3)(7,"input",4),I("change",function(){return i.toggle(0),i.update()}),v()()(),m(8,"div",2)(9,"span"),y(10,"HomeKit Away"),v(),m(11,"div",3)(12,"input",4),I("change",function(){return i.toggle(1),i.update()}),v()()(),m(13,"div",2)(14,"span"),y(15,"HomeKit Night"),v(),m(16,"div",3)(17,"input",4),I("change",function(){return i.toggle(2),i.update()}),v()()(),m(18,"div",2)(19,"span"),y(20,"HomeKit Off/Disarmed"),v(),m(21,"div",3)(22,"input",4),I("change",function(){return i.toggle(3),i.update()}),v()()(),m(23,"small")(24,"i"),y(25," You can manually trigger (and reset) the stations alarm with a switch. Therefore you can utilize non eufy devices (e.g. a motion sensor, leak sensor, break-in sensor, ... from another vendor) to trigger the alarm with a homekit automation."),k(26,"p"),y(27," In order to do so, you must specify in which station mode the alarm can be triggered. "),k(28,"p"),y(29," Please be aware that this setting can only be set on a per station basis and not per automation."),k(30,"br"),y(31," By default the alarm cause will be shown as 'motion detected' in the eufy app. "),k(32,"p"),y(33," The manual alarm respects the delay alarm on leave settings from the eufy app. Triggered automations while the delay is effective will be ignored."),k(34,"br"),y(35," The native alarm delay setting is currently not supported. "),v()()()),2&n&&(C(7),j("checked",-1!==i.value.indexOf(0)||null),C(5),j("checked",-1!==i.value.indexOf(1)||null),C(5),j("checked",-1!==i.value.indexOf(2)||null),C(5),j("checked",-1!==i.value.indexOf(3)||null))},encapsulation:2})),t})();function Ybe(e,t){if(1&e&&(m(0,"div",2)(1,"div",3)(2,"b"),y(3,"Station Settings"),v(),y(4," for "),m(5,"i"),y(6),v()(),m(7,"div",4),k(8,"app-ignore-accessory",5)(9,"hr")(10,"app-guard-modes-mapping",5)(11,"hr")(12,"app-manual-alarm-modes",5),v()()),2&e){const r=x();C(6),Q3("",r.accessory.displayName," (",r.accessory.uniqueId,")"),C(2),M("accessory",r.accessory),C(2),M("accessory",r.accessory),C(2),M("accessory",r.accessory)}}function Qbe(e,t){if(1&e){const r=M1();m(0,"p",7)(1,"ngb-alert",8),I("closed",function(){return G(r),$(x().failed=!1)}),p3(),m(2,"svg",9),k(3,"use",10),v(),m3(),m(4,"strong"),y(5,"Reset was not successful!"),v()()()}2&e&&(C(1),M("dismissible",!0))}const Jbe=[{path:"",redirectTo:"/accessories",pathMatch:"full"},{path:"accessories",component:c_e},{path:"advancedConfig",component:N_e},{path:"cameraConfig/:uniqueId",component:xbe},{path:"stationConfig/:uniqueId",component:(()=>{var e;class t{constructor(n,i){V(this,"pluginService",void 0),V(this,"route",void 0),V(this,"accessory",void 0),this.pluginService=n,this.route=i}ngOnInit(){const n=this.route.snapshot.paramMap.get("uniqueId");this.accessory=this.pluginService.getStation(n)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Qe),H(Nn))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-station-config-options"]],decls:3,vars:1,consts:[["routerLink","/accessories",1,"btn","btn-secondary","mb-3"],["class","card",4,"ngIf"],[1,"card"],[1,"card-header"],[1,"card-body","pt-0","pb-4"],[3,"accessory"]],template:function(n,i){1&n&&(m(0,"a",0),y(1,"Back to Devices List"),v(),O(2,Ybe,13,5,"div",1)),2&n&&(C(2),M("ngIf",i.accessory))},dependencies:[H1,cn,Cx,_x,Kbe],encapsulation:2})),t})()},{path:"login",component:qbe},{path:"reset",component:(()=>{var e;class t{constructor(n,i){V(this,"routerService",void 0),V(this,"pluginService",void 0),V(this,"disabled",!1),V(this,"failed",!1),this.routerService=n,this.pluginService=i}cancel(){this.routerService.navigateByUrl("/accessories")}resetEverything(){var n=this;return ve(function*(){n.disabled=!0;try{const i=yield window.homebridge.request("/reset");n.failed=1!==i.result}catch{n.failed=!0}n.disabled=!1,n.failed||(yield n.pluginService.updateConfig({},!0),window.homebridge.closeSettings())})()}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(_2),H(Qe))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-reset-confirmation"]],decls:10,vars:3,consts:[[1,"row","d-flex","justify-content-center"],["class","col-11 col-sm-7",4,"ngIf"],[1,"col-11","col-sm-7","card","p-4"],[1,"text-center","mb-4"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-center"],["type","button",1,"btn","btn-secondary","col-11","col-sm-3","mb-sm-0","mb-3",3,"click"],["type","button",1,"btn","btn-danger","col-11","col-sm-3",3,"click"],[1,"col-11","col-sm-7"],["type","danger",3,"dismissible","closed"],["width","24","height","24","role","img","aria-label","Login Error",1,"bi","flex-shrink-0","me-2"],[0,"xlink","href","#exclamation-triangle-fill"]],template:function(n,i){1&n&&(m(0,"div",0),O(1,Qbe,6,1,"p",1),m(2,"div",2)(3,"h3",3),y(4,"Are you sure that you want to erase everything?"),v(),m(5,"div",4)(6,"button",5),I("click",function(){return i.cancel()}),y(7,"No"),v(),m(8,"button",6),I("click",function(){return i.resetEverything()}),y(9,"Do it!"),v()()()()),2&n&&(C(1),M("ngIf",i.failed),C(5),j("disabled",!!i.disabled||null),C(2),j("disabled",!!i.disabled||null))},dependencies:[H1,kC],encapsulation:2})),t})()},{path:"**",redirectTo:"/accessories"}];let Xbe=(()=>{var e;class t{}return e=t,V(t,"\u0275fac",function(n){return new(n||e)}),V(t,"\u0275mod",Fe({type:e})),V(t,"\u0275inj",Ie({imports:[Fb.forRoot(Jbe,{scrollPositionRestoration:"enabled"}),Fb]})),t})(),eHe=(()=>{var e;class t{}return e=t,V(t,"\u0275fac",function(n){return new(n||e)}),V(t,"\u0275mod",Fe({type:e,bootstrap:[Aee]})),V(t,"\u0275inj",Ie({providers:[{provide:Wn,useClass:hv}],imports:[zG,k$,_Z,Xbe,fJ]})),t})();wG().bootstrapModule(eHe).catch(e=>console.error(e))},919:(J4,W2)=>{"use strict";W2.byteLength=function a1(le){var be=Ee(le),v1=be[1];return 3*(be[0]+v1)/4-v1},W2.toByteArray=function k1(le){var be,p2,Ke=Ee(le),v1=Ke[0],S1=Ke[1],Xe=new d2(function E(le,be,Ke){return 3*(be+Ke)/4-Ke}(0,v1,S1)),h2=0,ct=S1>0?v1-4:v1;for(p2=0;p2<ct;p2+=4)be=Q[le.charCodeAt(p2)]<<18|Q[le.charCodeAt(p2+1)]<<12|Q[le.charCodeAt(p2+2)]<<6|Q[le.charCodeAt(p2+3)],Xe[h2++]=be>>16&255,Xe[h2++]=be>>8&255,Xe[h2++]=255&be;return 2===S1&&(be=Q[le.charCodeAt(p2)]<<2|Q[le.charCodeAt(p2+1)]>>4,Xe[h2++]=255&be),1===S1&&(be=Q[le.charCodeAt(p2)]<<10|Q[le.charCodeAt(p2+1)]<<4|Q[le.charCodeAt(p2+2)]>>2,Xe[h2++]=be>>8&255,Xe[h2++]=255&be),Xe},W2.fromByteArray=function Z1(le){for(var be,Ke=le.length,v1=Ke%3,S1=[],h2=0,ct=Ke-v1;h2<ct;h2+=16383)S1.push(P1(le,h2,h2+16383>ct?ct:h2+16383));return 1===v1?S1.push(f1[(be=le[Ke-1])>>2]+f1[be<<4&63]+"=="):2===v1&&S1.push(f1[(be=(le[Ke-2]<<8)+le[Ke-1])>>10]+f1[be>>4&63]+f1[be<<2&63]+"="),S1.join("")};for(var f1=[],Q=[],d2=typeof Uint8Array<"u"?Uint8Array:Array,D1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Je=0;Je<64;++Je)f1[Je]=D1[Je],Q[D1.charCodeAt(Je)]=Je;function Ee(le){var be=le.length;if(be%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var Ke=le.indexOf("=");return-1===Ke&&(Ke=be),[Ke,Ke===be?0:4-Ke%4]}function s1(le){return f1[le>>18&63]+f1[le>>12&63]+f1[le>>6&63]+f1[63&le]}function P1(le,be,Ke){for(var S1=[],Xe=be;Xe<Ke;Xe+=3)S1.push(s1((le[Xe]<<16&16711680)+(le[Xe+1]<<8&65280)+(255&le[Xe+2])));return S1.join("")}Q["-".charCodeAt(0)]=62,Q["_".charCodeAt(0)]=63},7:(J4,W2,f1)=>{"use strict";const d2=f1(919),D1=f1(601),Je="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;W2.lW=E,W2.h2=50;const De=2147483647;function a1(_){if(_>De)throw new RangeError('The value "'+_+'" is invalid for option "size"');const u=new Uint8Array(_);return Object.setPrototypeOf(u,E.prototype),u}function E(_,u,h){if("number"==typeof _){if("string"==typeof u)throw new TypeError('The "string" argument must be of type string. Received type number');return Z1(_)}return k1(_,u,h)}function k1(_,u,h){if("string"==typeof _)return function le(_,u){if(("string"!=typeof u||""===u)&&(u="utf8"),!E.isEncoding(u))throw new TypeError("Unknown encoding: "+u);const h=0|ct(_,u);let b=a1(h);const D=b.write(_,u);return D!==h&&(b=b.slice(0,D)),b}(_,u);if(ArrayBuffer.isView(_))return function Ke(_){if(ot(_,Uint8Array)){const u=new Uint8Array(_);return v1(u.buffer,u.byteOffset,u.byteLength)}return be(_)}(_);if(null==_)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof _);if(ot(_,ArrayBuffer)||_&&ot(_.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ot(_,SharedArrayBuffer)||_&&ot(_.buffer,SharedArrayBuffer)))return v1(_,u,h);if("number"==typeof _)throw new TypeError('The "value" argument must not be of type number. Received type number');const b=_.valueOf&&_.valueOf();if(null!=b&&b!==_)return E.from(b,u,h);const D=function S1(_){if(E.isBuffer(_)){const u=0|Xe(_.length),h=a1(u);return 0===h.length||_.copy(h,0,0,u),h}return void 0!==_.length?"number"!=typeof _.length||c4(_.length)?a1(0):be(_):"Buffer"===_.type&&Array.isArray(_.data)?be(_.data):void 0}(_);if(D)return D;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof _[Symbol.toPrimitive])return E.from(_[Symbol.toPrimitive]("string"),u,h);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof _)}function s1(_){if("number"!=typeof _)throw new TypeError('"size" argument must be of type number');if(_<0)throw new RangeError('The value "'+_+'" is invalid for option "size"')}function Z1(_){return s1(_),a1(_<0?0:0|Xe(_))}function be(_){const u=_.length<0?0:0|Xe(_.length),h=a1(u);for(let b=0;b<u;b+=1)h[b]=255&_[b];return h}function v1(_,u,h){if(u<0||_.byteLength<u)throw new RangeError('"offset" is outside of buffer bounds');if(_.byteLength<u+(h||0))throw new RangeError('"length" is outside of buffer bounds');let b;return b=void 0===u&&void 0===h?new Uint8Array(_):void 0===h?new Uint8Array(_,u):new Uint8Array(_,u,h),Object.setPrototypeOf(b,E.prototype),b}function Xe(_){if(_>=De)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+De.toString(16)+" bytes");return 0|_}function ct(_,u){if(E.isBuffer(_))return _.length;if(ArrayBuffer.isView(_)||ot(_,ArrayBuffer))return _.byteLength;if("string"!=typeof _)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof _);const h=_.length,b=arguments.length>2&&!0===arguments[2];if(!b&&0===h)return 0;let D=!1;for(;;)switch(u){case"ascii":case"latin1":case"binary":return h;case"utf8":case"utf-8":return Wa(_).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*h;case"hex":return h>>>1;case"base64":return Ka(_).length;default:if(D)return b?-1:Wa(_).length;u=(""+u).toLowerCase(),D=!0}}function p2(_,u,h){let b=!1;if((void 0===u||u<0)&&(u=0),u>this.length||((void 0===h||h>this.length)&&(h=this.length),h<=0)||(h>>>=0)<=(u>>>=0))return"";for(_||(_="utf8");;)switch(_){case"hex":return w6(this,u,h);case"utf8":case"utf-8":return Ua(this,u,h);case"ascii":return ja(this,u,h);case"latin1":case"binary":return H6(this,u,h);case"base64":return bt(this,u,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V6(this,u,h);default:if(b)throw new TypeError("Unknown encoding: "+_);_=(_+"").toLowerCase(),b=!0}}function yt(_,u,h){const b=_[u];_[u]=_[h],_[h]=b}function Ba(_,u,h,b,D){if(0===_.length)return-1;if("string"==typeof h?(b=h,h=0):h>2147483647?h=2147483647:h<-2147483648&&(h=-2147483648),c4(h=+h)&&(h=D?0:_.length-1),h<0&&(h=_.length+h),h>=_.length){if(D)return-1;h=_.length-1}else if(h<0){if(!D)return-1;h=0}if("string"==typeof u&&(u=E.from(u,b)),E.isBuffer(u))return 0===u.length?-1:En(_,u,h,b,D);if("number"==typeof u)return u&=255,"function"==typeof Uint8Array.prototype.indexOf?D?Uint8Array.prototype.indexOf.call(_,u,h):Uint8Array.prototype.lastIndexOf.call(_,u,h):En(_,[u],h,b,D);throw new TypeError("val must be string, number or Buffer")}function En(_,u,h,b,D){let e1,A=1,R=_.length,Me=u.length;if(void 0!==b&&("ucs2"===(b=String(b).toLowerCase())||"ucs-2"===b||"utf16le"===b||"utf-16le"===b)){if(_.length<2||u.length<2)return-1;A=2,R/=2,Me/=2,h/=2}function d1(h1,Be){return 1===A?h1[Be]:h1.readUInt16BE(Be*A)}if(D){let h1=-1;for(e1=h;e1<R;e1++)if(d1(_,e1)===d1(u,-1===h1?0:e1-h1)){if(-1===h1&&(h1=e1),e1-h1+1===Me)return h1*A}else-1!==h1&&(e1-=e1-h1),h1=-1}else for(h+Me>R&&(h=R-Me),e1=h;e1>=0;e1--){let h1=!0;for(let Be=0;Be<Me;Be++)if(d1(_,e1+Be)!==d1(u,Be)){h1=!1;break}if(h1)return e1}return-1}function X4(_,u,h,b){h=Number(h)||0;const D=_.length-h;b?(b=Number(b))>D&&(b=D):b=D;const A=u.length;let R;for(b>A/2&&(b=A/2),R=0;R<b;++R){const Me=parseInt(u.substr(2*R,2),16);if(c4(Me))return R;_[h+R]=Me}return R}function y6(_,u,h,b){return In(Wa(u,_.length-h),_,h,b)}function Sr(_,u,h,b){return In(function D6(_){const u=[];for(let h=0;h<_.length;++h)u.push(255&_.charCodeAt(h));return u}(u),_,h,b)}function b6(_,u,h,b){return In(Ka(u),_,h,b)}function Lr(_,u,h,b){return In(function qa(_,u){let h,b,D;const A=[];for(let R=0;R<_.length&&!((u-=2)<0);++R)h=_.charCodeAt(R),b=h>>8,D=h%256,A.push(D),A.push(b);return A}(u,_.length-h),_,h,b)}function bt(_,u,h){return d2.fromByteArray(0===u&&h===_.length?_:_.slice(u,h))}function Ua(_,u,h){h=Math.min(_.length,h);const b=[];let D=u;for(;D<h;){const A=_[D];let R=null,Me=A>239?4:A>223?3:A>191?2:1;if(D+Me<=h){let d1,e1,h1,Be;switch(Me){case 1:A<128&&(R=A);break;case 2:d1=_[D+1],128==(192&d1)&&(Be=(31&A)<<6|63&d1,Be>127&&(R=Be));break;case 3:d1=_[D+1],e1=_[D+2],128==(192&d1)&&128==(192&e1)&&(Be=(15&A)<<12|(63&d1)<<6|63&e1,Be>2047&&(Be<55296||Be>57343)&&(R=Be));break;case 4:d1=_[D+1],e1=_[D+2],h1=_[D+3],128==(192&d1)&&128==(192&e1)&&128==(192&h1)&&(Be=(15&A)<<18|(63&d1)<<12|(63&e1)<<6|63&h1,Be>65535&&Be<1114112&&(R=Be))}}null===R?(R=65533,Me=1):R>65535&&(R-=65536,b.push(R>>>10&1023|55296),R=56320|1023&R),b.push(R),D+=Me}return function We(_){const u=_.length;if(u<=xr)return String.fromCharCode.apply(String,_);let h="",b=0;for(;b<u;)h+=String.fromCharCode.apply(String,_.slice(b,b+=xr));return h}(b)}!(E.TYPED_ARRAY_SUPPORT=function Ee(){try{const _=new Uint8Array(1),u={foo:function(){return 42}};return Object.setPrototypeOf(u,Uint8Array.prototype),Object.setPrototypeOf(_,u),42===_.foo()}catch{return!1}}())&&typeof console<"u"&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(E.prototype,"parent",{enumerable:!0,get:function(){if(E.isBuffer(this))return this.buffer}}),Object.defineProperty(E.prototype,"offset",{enumerable:!0,get:function(){if(E.isBuffer(this))return this.byteOffset}}),E.poolSize=8192,E.from=function(_,u,h){return k1(_,u,h)},Object.setPrototypeOf(E.prototype,Uint8Array.prototype),Object.setPrototypeOf(E,Uint8Array),E.alloc=function(_,u,h){return function P1(_,u,h){return s1(_),_<=0?a1(_):void 0!==u?"string"==typeof h?a1(_).fill(u,h):a1(_).fill(u):a1(_)}(_,u,h)},E.allocUnsafe=function(_){return Z1(_)},E.allocUnsafeSlow=function(_){return Z1(_)},E.isBuffer=function(u){return null!=u&&!0===u._isBuffer&&u!==E.prototype},E.compare=function(u,h){if(ot(u,Uint8Array)&&(u=E.from(u,u.offset,u.byteLength)),ot(h,Uint8Array)&&(h=E.from(h,h.offset,h.byteLength)),!E.isBuffer(u)||!E.isBuffer(h))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(u===h)return 0;let b=u.length,D=h.length;for(let A=0,R=Math.min(b,D);A<R;++A)if(u[A]!==h[A]){b=u[A],D=h[A];break}return b<D?-1:D<b?1:0},E.isEncoding=function(u){switch(String(u).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}},E.concat=function(u,h){if(!Array.isArray(u))throw new TypeError('"list" argument must be an Array of Buffers');if(0===u.length)return E.alloc(0);let b;if(void 0===h)for(h=0,b=0;b<u.length;++b)h+=u[b].length;const D=E.allocUnsafe(h);let A=0;for(b=0;b<u.length;++b){let R=u[b];if(ot(R,Uint8Array))A+R.length>D.length?(E.isBuffer(R)||(R=E.from(R)),R.copy(D,A)):Uint8Array.prototype.set.call(D,R,A);else{if(!E.isBuffer(R))throw new TypeError('"list" argument must be an Array of Buffers');R.copy(D,A)}A+=R.length}return D},E.byteLength=ct,E.prototype._isBuffer=!0,E.prototype.swap16=function(){const u=this.length;if(u%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let h=0;h<u;h+=2)yt(this,h,h+1);return this},E.prototype.swap32=function(){const u=this.length;if(u%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let h=0;h<u;h+=4)yt(this,h,h+3),yt(this,h+1,h+2);return this},E.prototype.swap64=function(){const u=this.length;if(u%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let h=0;h<u;h+=8)yt(this,h,h+7),yt(this,h+1,h+6),yt(this,h+2,h+5),yt(this,h+3,h+4);return this},E.prototype.toLocaleString=E.prototype.toString=function(){const u=this.length;return 0===u?"":0===arguments.length?Ua(this,0,u):p2.apply(this,arguments)},E.prototype.equals=function(u){if(!E.isBuffer(u))throw new TypeError("Argument must be a Buffer");return this===u||0===E.compare(this,u)},E.prototype.inspect=function(){let u="";const h=W2.h2;return u=this.toString("hex",0,h).replace(/(.{2})/g,"$1 ").trim(),this.length>h&&(u+=" ... "),"<Buffer "+u+">"},Je&&(E.prototype[Je]=E.prototype.inspect),E.prototype.compare=function(u,h,b,D,A){if(ot(u,Uint8Array)&&(u=E.from(u,u.offset,u.byteLength)),!E.isBuffer(u))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof u);if(void 0===h&&(h=0),void 0===b&&(b=u?u.length:0),void 0===D&&(D=0),void 0===A&&(A=this.length),h<0||b>u.length||D<0||A>this.length)throw new RangeError("out of range index");if(D>=A&&h>=b)return 0;if(D>=A)return-1;if(h>=b)return 1;if(this===u)return 0;let R=(A>>>=0)-(D>>>=0),Me=(b>>>=0)-(h>>>=0);const d1=Math.min(R,Me),e1=this.slice(D,A),h1=u.slice(h,b);for(let Be=0;Be<d1;++Be)if(e1[Be]!==h1[Be]){R=e1[Be],Me=h1[Be];break}return R<Me?-1:Me<R?1:0},E.prototype.includes=function(u,h,b){return-1!==this.indexOf(u,h,b)},E.prototype.indexOf=function(u,h,b){return Ba(this,u,h,b,!0)},E.prototype.lastIndexOf=function(u,h,b){return Ba(this,u,h,b,!1)},E.prototype.write=function(u,h,b,D){if(void 0===h)D="utf8",b=this.length,h=0;else if(void 0===b&&"string"==typeof h)D=h,b=this.length,h=0;else{if(!isFinite(h))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");h>>>=0,isFinite(b)?(b>>>=0,void 0===D&&(D="utf8")):(D=b,b=void 0)}const A=this.length-h;if((void 0===b||b>A)&&(b=A),u.length>0&&(b<0||h<0)||h>this.length)throw new RangeError("Attempt to write outside buffer bounds");D||(D="utf8");let R=!1;for(;;)switch(D){case"hex":return X4(this,u,h,b);case"utf8":case"utf-8":return y6(this,u,h,b);case"ascii":case"latin1":case"binary":return Sr(this,u,h,b);case"base64":return b6(this,u,h,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Lr(this,u,h,b);default:if(R)throw new TypeError("Unknown encoding: "+D);D=(""+D).toLowerCase(),R=!0}},E.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const xr=4096;function ja(_,u,h){let b="";h=Math.min(_.length,h);for(let D=u;D<h;++D)b+=String.fromCharCode(127&_[D]);return b}function H6(_,u,h){let b="";h=Math.min(_.length,h);for(let D=u;D<h;++D)b+=String.fromCharCode(_[D]);return b}function w6(_,u,h){const b=_.length;(!u||u<0)&&(u=0),(!h||h<0||h>b)&&(h=b);let D="";for(let A=u;A<h;++A)D+=Ya[_[A]];return D}function V6(_,u,h){const b=_.slice(u,h);let D="";for(let A=0;A<b.length-1;A+=2)D+=String.fromCharCode(b[A]+256*b[A+1]);return D}function ue(_,u,h){if(_%1!=0||_<0)throw new RangeError("offset is not uint");if(_+u>h)throw new RangeError("Trying to access beyond buffer length")}function n2(_,u,h,b,D,A){if(!E.isBuffer(_))throw new TypeError('"buffer" argument must be a Buffer instance');if(u>D||u<A)throw new RangeError('"value" argument is out of bounds');if(h+b>_.length)throw new RangeError("Index out of range")}function Nr(_,u,h,b,D){$a(u,b,D,_,h,7);let A=Number(u&BigInt(4294967295));_[h++]=A,A>>=8,_[h++]=A,A>>=8,_[h++]=A,A>>=8,_[h++]=A;let R=Number(u>>BigInt(32)&BigInt(4294967295));return _[h++]=R,R>>=8,_[h++]=R,R>>=8,_[h++]=R,R>>=8,_[h++]=R,h}function u1(_,u,h,b,D){$a(u,b,D,_,h,7);let A=Number(u&BigInt(4294967295));_[h+7]=A,A>>=8,_[h+6]=A,A>>=8,_[h+5]=A,A>>=8,_[h+4]=A;let R=Number(u>>BigInt(32)&BigInt(4294967295));return _[h+3]=R,R>>=8,_[h+2]=R,R>>=8,_[h+1]=R,R>>=8,_[h]=R,h+8}function qe(_,u,h,b,D,A){if(h+b>_.length)throw new RangeError("Index out of range");if(h<0)throw new RangeError("Index out of range")}function Ga(_,u,h,b,D){return u=+u,h>>>=0,D||qe(_,0,h,4),D1.write(_,u,h,b,23,4),h+4}function we(_,u,h,b,D){return u=+u,h>>>=0,D||qe(_,0,h,8),D1.write(_,u,h,b,52,8),h+8}E.prototype.slice=function(u,h){const b=this.length;(u=~~u)<0?(u+=b)<0&&(u=0):u>b&&(u=b),(h=void 0===h?b:~~h)<0?(h+=b)<0&&(h=0):h>b&&(h=b),h<u&&(h=u);const D=this.subarray(u,h);return Object.setPrototypeOf(D,E.prototype),D},E.prototype.readUintLE=E.prototype.readUIntLE=function(u,h,b){u>>>=0,h>>>=0,b||ue(u,h,this.length);let D=this[u],A=1,R=0;for(;++R<h&&(A*=256);)D+=this[u+R]*A;return D},E.prototype.readUintBE=E.prototype.readUIntBE=function(u,h,b){u>>>=0,h>>>=0,b||ue(u,h,this.length);let D=this[u+--h],A=1;for(;h>0&&(A*=256);)D+=this[u+--h]*A;return D},E.prototype.readUint8=E.prototype.readUInt8=function(u,h){return u>>>=0,h||ue(u,1,this.length),this[u]},E.prototype.readUint16LE=E.prototype.readUInt16LE=function(u,h){return u>>>=0,h||ue(u,2,this.length),this[u]|this[u+1]<<8},E.prototype.readUint16BE=E.prototype.readUInt16BE=function(u,h){return u>>>=0,h||ue(u,2,this.length),this[u]<<8|this[u+1]},E.prototype.readUint32LE=E.prototype.readUInt32LE=function(u,h){return u>>>=0,h||ue(u,4,this.length),(this[u]|this[u+1]<<8|this[u+2]<<16)+16777216*this[u+3]},E.prototype.readUint32BE=E.prototype.readUInt32BE=function(u,h){return u>>>=0,h||ue(u,4,this.length),16777216*this[u]+(this[u+1]<<16|this[u+2]<<8|this[u+3])},E.prototype.readBigUInt64LE=Ut(function(u){Tn(u>>>=0,"offset");const h=this[u],b=this[u+7];(void 0===h||void 0===b)&&t3(u,this.length-8);const D=h+256*this[++u]+65536*this[++u]+this[++u]*2**24,A=this[++u]+256*this[++u]+65536*this[++u]+b*2**24;return BigInt(D)+(BigInt(A)<<BigInt(32))}),E.prototype.readBigUInt64BE=Ut(function(u){Tn(u>>>=0,"offset");const h=this[u],b=this[u+7];(void 0===h||void 0===b)&&t3(u,this.length-8);const D=h*2**24+65536*this[++u]+256*this[++u]+this[++u],A=this[++u]*2**24+65536*this[++u]+256*this[++u]+b;return(BigInt(D)<<BigInt(32))+BigInt(A)}),E.prototype.readIntLE=function(u,h,b){u>>>=0,h>>>=0,b||ue(u,h,this.length);let D=this[u],A=1,R=0;for(;++R<h&&(A*=256);)D+=this[u+R]*A;return A*=128,D>=A&&(D-=Math.pow(2,8*h)),D},E.prototype.readIntBE=function(u,h,b){u>>>=0,h>>>=0,b||ue(u,h,this.length);let D=h,A=1,R=this[u+--D];for(;D>0&&(A*=256);)R+=this[u+--D]*A;return A*=128,R>=A&&(R-=Math.pow(2,8*h)),R},E.prototype.readInt8=function(u,h){return u>>>=0,h||ue(u,1,this.length),128&this[u]?-1*(255-this[u]+1):this[u]},E.prototype.readInt16LE=function(u,h){u>>>=0,h||ue(u,2,this.length);const b=this[u]|this[u+1]<<8;return 32768&b?4294901760|b:b},E.prototype.readInt16BE=function(u,h){u>>>=0,h||ue(u,2,this.length);const b=this[u+1]|this[u]<<8;return 32768&b?4294901760|b:b},E.prototype.readInt32LE=function(u,h){return u>>>=0,h||ue(u,4,this.length),this[u]|this[u+1]<<8|this[u+2]<<16|this[u+3]<<24},E.prototype.readInt32BE=function(u,h){return u>>>=0,h||ue(u,4,this.length),this[u]<<24|this[u+1]<<16|this[u+2]<<8|this[u+3]},E.prototype.readBigInt64LE=Ut(function(u){Tn(u>>>=0,"offset");const h=this[u],b=this[u+7];return(void 0===h||void 0===b)&&t3(u,this.length-8),(BigInt(this[u+4]+256*this[u+5]+65536*this[u+6]+(b<<24))<<BigInt(32))+BigInt(h+256*this[++u]+65536*this[++u]+this[++u]*2**24)}),E.prototype.readBigInt64BE=Ut(function(u){Tn(u>>>=0,"offset");const h=this[u],b=this[u+7];(void 0===h||void 0===b)&&t3(u,this.length-8);const D=(h<<24)+65536*this[++u]+256*this[++u]+this[++u];return(BigInt(D)<<BigInt(32))+BigInt(this[++u]*2**24+65536*this[++u]+256*this[++u]+b)}),E.prototype.readFloatLE=function(u,h){return u>>>=0,h||ue(u,4,this.length),D1.read(this,u,!0,23,4)},E.prototype.readFloatBE=function(u,h){return u>>>=0,h||ue(u,4,this.length),D1.read(this,u,!1,23,4)},E.prototype.readDoubleLE=function(u,h){return u>>>=0,h||ue(u,8,this.length),D1.read(this,u,!0,52,8)},E.prototype.readDoubleBE=function(u,h){return u>>>=0,h||ue(u,8,this.length),D1.read(this,u,!1,52,8)},E.prototype.writeUintLE=E.prototype.writeUIntLE=function(u,h,b,D){u=+u,h>>>=0,b>>>=0,D||n2(this,u,h,b,Math.pow(2,8*b)-1,0);let A=1,R=0;for(this[h]=255&u;++R<b&&(A*=256);)this[h+R]=u/A&255;return h+b},E.prototype.writeUintBE=E.prototype.writeUIntBE=function(u,h,b,D){u=+u,h>>>=0,b>>>=0,D||n2(this,u,h,b,Math.pow(2,8*b)-1,0);let A=b-1,R=1;for(this[h+A]=255&u;--A>=0&&(R*=256);)this[h+A]=u/R&255;return h+b},E.prototype.writeUint8=E.prototype.writeUInt8=function(u,h,b){return u=+u,h>>>=0,b||n2(this,u,h,1,255,0),this[h]=255&u,h+1},E.prototype.writeUint16LE=E.prototype.writeUInt16LE=function(u,h,b){return u=+u,h>>>=0,b||n2(this,u,h,2,65535,0),this[h]=255&u,this[h+1]=u>>>8,h+2},E.prototype.writeUint16BE=E.prototype.writeUInt16BE=function(u,h,b){return u=+u,h>>>=0,b||n2(this,u,h,2,65535,0),this[h]=u>>>8,this[h+1]=255&u,h+2},E.prototype.writeUint32LE=E.prototype.writeUInt32LE=function(u,h,b){return u=+u,h>>>=0,b||n2(this,u,h,4,4294967295,0),this[h+3]=u>>>24,this[h+2]=u>>>16,this[h+1]=u>>>8,this[h]=255&u,h+4},E.prototype.writeUint32BE=E.prototype.writeUInt32BE=function(u,h,b){return u=+u,h>>>=0,b||n2(this,u,h,4,4294967295,0),this[h]=u>>>24,this[h+1]=u>>>16,this[h+2]=u>>>8,this[h+3]=255&u,h+4},E.prototype.writeBigUInt64LE=Ut(function(u,h=0){return Nr(this,u,h,BigInt(0),BigInt("0xffffffffffffffff"))}),E.prototype.writeBigUInt64BE=Ut(function(u,h=0){return u1(this,u,h,BigInt(0),BigInt("0xffffffffffffffff"))}),E.prototype.writeIntLE=function(u,h,b,D){if(u=+u,h>>>=0,!D){const d1=Math.pow(2,8*b-1);n2(this,u,h,b,d1-1,-d1)}let A=0,R=1,Me=0;for(this[h]=255&u;++A<b&&(R*=256);)u<0&&0===Me&&0!==this[h+A-1]&&(Me=1),this[h+A]=(u/R>>0)-Me&255;return h+b},E.prototype.writeIntBE=function(u,h,b,D){if(u=+u,h>>>=0,!D){const d1=Math.pow(2,8*b-1);n2(this,u,h,b,d1-1,-d1)}let A=b-1,R=1,Me=0;for(this[h+A]=255&u;--A>=0&&(R*=256);)u<0&&0===Me&&0!==this[h+A+1]&&(Me=1),this[h+A]=(u/R>>0)-Me&255;return h+b},E.prototype.writeInt8=function(u,h,b){return u=+u,h>>>=0,b||n2(this,u,h,1,127,-128),u<0&&(u=255+u+1),this[h]=255&u,h+1},E.prototype.writeInt16LE=function(u,h,b){return u=+u,h>>>=0,b||n2(this,u,h,2,32767,-32768),this[h]=255&u,this[h+1]=u>>>8,h+2},E.prototype.writeInt16BE=function(u,h,b){return u=+u,h>>>=0,b||n2(this,u,h,2,32767,-32768),this[h]=u>>>8,this[h+1]=255&u,h+2},E.prototype.writeInt32LE=function(u,h,b){return u=+u,h>>>=0,b||n2(this,u,h,4,2147483647,-2147483648),this[h]=255&u,this[h+1]=u>>>8,this[h+2]=u>>>16,this[h+3]=u>>>24,h+4},E.prototype.writeInt32BE=function(u,h,b){return u=+u,h>>>=0,b||n2(this,u,h,4,2147483647,-2147483648),u<0&&(u=4294967295+u+1),this[h]=u>>>24,this[h+1]=u>>>16,this[h+2]=u>>>8,this[h+3]=255&u,h+4},E.prototype.writeBigInt64LE=Ut(function(u,h=0){return Nr(this,u,h,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),E.prototype.writeBigInt64BE=Ut(function(u,h=0){return u1(this,u,h,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),E.prototype.writeFloatLE=function(u,h,b){return Ga(this,u,h,!0,b)},E.prototype.writeFloatBE=function(u,h,b){return Ga(this,u,h,!1,b)},E.prototype.writeDoubleLE=function(u,h,b){return we(this,u,h,!0,b)},E.prototype.writeDoubleBE=function(u,h,b){return we(this,u,h,!1,b)},E.prototype.copy=function(u,h,b,D){if(!E.isBuffer(u))throw new TypeError("argument should be a Buffer");if(b||(b=0),!D&&0!==D&&(D=this.length),h>=u.length&&(h=u.length),h||(h=0),D>0&&D<b&&(D=b),D===b||0===u.length||0===this.length)return 0;if(h<0)throw new RangeError("targetStart out of bounds");if(b<0||b>=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),u.length-h<D-b&&(D=u.length-h+b);const A=D-b;return this===u&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(h,b,D):Uint8Array.prototype.set.call(u,this.subarray(b,D),h),A},E.prototype.fill=function(u,h,b,D){if("string"==typeof u){if("string"==typeof h?(D=h,h=0,b=this.length):"string"==typeof b&&(D=b,b=this.length),void 0!==D&&"string"!=typeof D)throw new TypeError("encoding must be a string");if("string"==typeof D&&!E.isEncoding(D))throw new TypeError("Unknown encoding: "+D);if(1===u.length){const R=u.charCodeAt(0);("utf8"===D&&R<128||"latin1"===D)&&(u=R)}}else"number"==typeof u?u&=255:"boolean"==typeof u&&(u=Number(u));if(h<0||this.length<h||this.length<b)throw new RangeError("Out of range index");if(b<=h)return this;let A;if(h>>>=0,b=void 0===b?this.length:b>>>0,u||(u=0),"number"==typeof u)for(A=h;A<b;++A)this[A]=u;else{const R=E.isBuffer(u)?u:E.from(u,D),Me=R.length;if(0===Me)throw new TypeError('The value "'+u+'" is invalid for argument "value"');for(A=0;A<b-h;++A)this[A+h]=R[A%Me]}return this};const Bt={};function Ar(_,u,h){Bt[_]=class extends h{constructor(){super(),Object.defineProperty(this,"message",{value:u.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${_}]`,delete this.name}get code(){return _}set code(D){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:D,writable:!0})}toString(){return`${this.name} [${_}]: ${this.message}`}}}function e3(_){let u="",h=_.length;const b="-"===_[0]?1:0;for(;h>=b+4;h-=3)u=`_${_.slice(h-3,h)}${u}`;return`${_.slice(0,h)}${u}`}function $a(_,u,h,b,D,A){if(_>h||_<u){const R="bigint"==typeof u?"n":"";let Me;throw Me=A>3?0===u||u===BigInt(0)?`>= 0${R} and < 2${R} ** ${8*(A+1)}${R}`:`>= -(2${R} ** ${8*(A+1)-1}${R}) and < 2 ** ${8*(A+1)-1}${R}`:`>= ${u}${R} and <= ${h}${R}`,new Bt.ERR_OUT_OF_RANGE("value",Me,_)}!function z6(_,u,h){Tn(u,"offset"),(void 0===_[u]||void 0===_[u+h])&&t3(u,_.length-(h+1))}(b,D,A)}function Tn(_,u){if("number"!=typeof _)throw new Bt.ERR_INVALID_ARG_TYPE(u,"number",_)}function t3(_,u,h){throw Math.floor(_)!==_?(Tn(_,h),new Bt.ERR_OUT_OF_RANGE(h||"offset","an integer",_)):u<0?new Bt.ERR_BUFFER_OUT_OF_BOUNDS:new Bt.ERR_OUT_OF_RANGE(h||"offset",`>= ${h?1:0} and <= ${u}`,_)}Ar("ERR_BUFFER_OUT_OF_BOUNDS",function(_){return _?`${_} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Ar("ERR_INVALID_ARG_TYPE",function(_,u){return`The "${_}" argument must be of type number. Received type ${typeof u}`},TypeError),Ar("ERR_OUT_OF_RANGE",function(_,u,h){let b=`The value of "${_}" is out of range.`,D=h;return Number.isInteger(h)&&Math.abs(h)>2**32?D=e3(String(h)):"bigint"==typeof h&&(D=String(h),(h>BigInt(2)**BigInt(32)||h<-(BigInt(2)**BigInt(32)))&&(D=e3(D)),D+="n"),b+=` It must be ${u}. Received ${D}`,b},RangeError);const cu=/[^+/0-9A-Za-z-_]/g;function Wa(_,u){let h;u=u||1/0;const b=_.length;let D=null;const A=[];for(let R=0;R<b;++R){if(h=_.charCodeAt(R),h>55295&&h<57344){if(!D){if(h>56319){(u-=3)>-1&&A.push(239,191,189);continue}if(R+1===b){(u-=3)>-1&&A.push(239,191,189);continue}D=h;continue}if(h<56320){(u-=3)>-1&&A.push(239,191,189),D=h;continue}h=65536+(D-55296<<10|h-56320)}else D&&(u-=3)>-1&&A.push(239,191,189);if(D=null,h<128){if((u-=1)<0)break;A.push(h)}else if(h<2048){if((u-=2)<0)break;A.push(h>>6|192,63&h|128)}else if(h<65536){if((u-=3)<0)break;A.push(h>>12|224,h>>6&63|128,63&h|128)}else{if(!(h<1114112))throw new Error("Invalid code point");if((u-=4)<0)break;A.push(h>>18|240,h>>12&63|128,h>>6&63|128,63&h|128)}}return A}function Ka(_){return d2.toByteArray(function ou(_){if((_=(_=_.split("=")[0]).trim().replace(cu,"")).length<2)return"";for(;_.length%4!=0;)_+="=";return _}(_))}function In(_,u,h,b){let D;for(D=0;D<b&&!(D+h>=u.length||D>=_.length);++D)u[D+h]=_[D];return D}function ot(_,u){return _ instanceof u||null!=_&&null!=_.constructor&&null!=_.constructor.name&&_.constructor.name===u.name}function c4(_){return _!=_}const Ya=function(){const _="0123456789abcdef",u=new Array(256);for(let h=0;h<16;++h){const b=16*h;for(let D=0;D<16;++D)u[b+D]=_[h]+_[D]}return u}();function Ut(_){return typeof BigInt>"u"?S6:_}function S6(){throw new Error("BigInt not supported")}},601:(J4,W2)=>{W2.read=function(f1,Q,d2,D1,Je){var De,Ee,a1=8*Je-D1-1,E=(1<<a1)-1,k1=E>>1,s1=-7,P1=d2?Je-1:0,Z1=d2?-1:1,le=f1[Q+P1];for(P1+=Z1,De=le&(1<<-s1)-1,le>>=-s1,s1+=a1;s1>0;De=256*De+f1[Q+P1],P1+=Z1,s1-=8);for(Ee=De&(1<<-s1)-1,De>>=-s1,s1+=D1;s1>0;Ee=256*Ee+f1[Q+P1],P1+=Z1,s1-=8);if(0===De)De=1-k1;else{if(De===E)return Ee?NaN:1/0*(le?-1:1);Ee+=Math.pow(2,D1),De-=k1}return(le?-1:1)*Ee*Math.pow(2,De-D1)},W2.write=function(f1,Q,d2,D1,Je,De){var Ee,a1,E,k1=8*De-Je-1,s1=(1<<k1)-1,P1=s1>>1,Z1=23===Je?Math.pow(2,-24)-Math.pow(2,-77):0,le=D1?0:De-1,be=D1?1:-1,Ke=Q<0||0===Q&&1/Q<0?1:0;for(Q=Math.abs(Q),isNaN(Q)||Q===1/0?(a1=isNaN(Q)?1:0,Ee=s1):(Ee=Math.floor(Math.log(Q)/Math.LN2),Q*(E=Math.pow(2,-Ee))<1&&(Ee--,E*=2),(Q+=Ee+P1>=1?Z1/E:Z1*Math.pow(2,1-P1))*E>=2&&(Ee++,E/=2),Ee+P1>=s1?(a1=0,Ee=s1):Ee+P1>=1?(a1=(Q*E-1)*Math.pow(2,Je),Ee+=P1):(a1=Q*Math.pow(2,P1-1)*Math.pow(2,Je),Ee=0));Je>=8;f1[d2+le]=255&a1,le+=be,a1/=256,Je-=8);for(Ee=Ee<<Je|a1,k1+=Je;k1>0;f1[d2+le]=255&Ee,le+=be,Ee/=256,k1-=8);f1[d2+le-be]|=128*Ke}}},J4=>{J4(J4.s=275)}]);
|