homebridge-eufy-security 2.3.2 → 2.3.4

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.
Files changed (59) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/accessories/BaseAccessory.d.ts +17 -0
  3. package/dist/accessories/BaseAccessory.d.ts.map +1 -1
  4. package/dist/accessories/BaseAccessory.js +23 -0
  5. package/dist/accessories/BaseAccessory.js.map +1 -1
  6. package/dist/accessories/CameraAccessory.d.ts +8 -0
  7. package/dist/accessories/CameraAccessory.d.ts.map +1 -1
  8. package/dist/accessories/CameraAccessory.js +40 -46
  9. package/dist/accessories/CameraAccessory.js.map +1 -1
  10. package/dist/accessories/EntrySensorAccessory.d.ts +15 -3
  11. package/dist/accessories/EntrySensorAccessory.d.ts.map +1 -1
  12. package/dist/accessories/EntrySensorAccessory.js +22 -3
  13. package/dist/accessories/EntrySensorAccessory.js.map +1 -1
  14. package/dist/accessories/LockAccessory.d.ts +33 -4
  15. package/dist/accessories/LockAccessory.d.ts.map +1 -1
  16. package/dist/accessories/LockAccessory.js +116 -99
  17. package/dist/accessories/LockAccessory.js.map +1 -1
  18. package/dist/accessories/MotionSensorAccessory.d.ts +15 -3
  19. package/dist/accessories/MotionSensorAccessory.d.ts.map +1 -1
  20. package/dist/accessories/MotionSensorAccessory.js +22 -3
  21. package/dist/accessories/MotionSensorAccessory.js.map +1 -1
  22. package/dist/accessories/StationAccessory.js +5 -5
  23. package/dist/accessories/StationAccessory.js.map +1 -1
  24. package/dist/config.d.ts +17 -0
  25. package/dist/config.d.ts.map +1 -1
  26. package/dist/config.js +18 -0
  27. package/dist/config.js.map +1 -1
  28. package/dist/controller/LocalLivestreamManager.d.ts +2 -0
  29. package/dist/controller/LocalLivestreamManager.d.ts.map +1 -1
  30. package/dist/controller/LocalLivestreamManager.js +59 -46
  31. package/dist/controller/LocalLivestreamManager.js.map +1 -1
  32. package/dist/controller/streamingDelegate.d.ts.map +1 -1
  33. package/dist/controller/streamingDelegate.js.map +1 -1
  34. package/dist/interfaces.d.ts +5 -2
  35. package/dist/interfaces.d.ts.map +1 -1
  36. package/dist/platform.d.ts +9 -2
  37. package/dist/platform.d.ts.map +1 -1
  38. package/dist/platform.js +192 -245
  39. package/dist/platform.js.map +1 -1
  40. package/dist/utils/EufyClientInteractor.d.ts +3 -1
  41. package/dist/utils/EufyClientInteractor.d.ts.map +1 -1
  42. package/dist/utils/EufyClientInteractor.js +38 -2
  43. package/dist/utils/EufyClientInteractor.js.map +1 -1
  44. package/dist/utils/Talkback.js +2 -2
  45. package/dist/utils/Talkback.js.map +1 -1
  46. package/dist/utils/configTypes.d.ts +20 -0
  47. package/dist/utils/configTypes.d.ts.map +1 -1
  48. package/dist/utils/configTypes.js +20 -0
  49. package/dist/utils/configTypes.js.map +1 -1
  50. package/homebridge-ui/plugin/utils/EufyClientInteractor.d.ts +3 -1
  51. package/homebridge-ui/plugin/utils/EufyClientInteractor.d.ts.map +1 -1
  52. package/homebridge-ui/plugin/utils/EufyClientInteractor.js +38 -2
  53. package/homebridge-ui/plugin/utils/EufyClientInteractor.js.map +1 -1
  54. package/homebridge-ui/public/index.html +1 -1
  55. package/homebridge-ui/public/main.654a3c2dbcdbfb3f.js +1 -0
  56. package/homebridge-ui/server.js +5 -2
  57. package/homebridge-ui/server.js.map +1 -1
  58. package/package.json +1 -1
  59. package/homebridge-ui/public/main.c40b1db5eceb9425.js +0 -1
@@ -0,0 +1 @@
1
+ (self.webpackChunkconfig_ui=self.webpackChunkconfig_ui||[]).push([[179],{378:(Q4,q2,u1)=>{"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 z1=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 Se{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage: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 z1?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 z1?t=[...t,...s.errors]:t.push(s)}}if(t)throw new z1(t)}}add(t){var r;if(t&&t!==this)if(this.closed)E(t);else{if(t instanceof Se){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 Se&&t._removeParent(this)}}Se.EMPTY=(()=>{const e=new Se;return e.closed=!0,e})();const Ee=Se.EMPTY;function a1(e){return e instanceof Se||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=C1("C",void 0,void 0);function C1(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 ot extends Se{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 In(t,r,n)}next(t){this.isStopped?Sr(function Ye(e){return C1("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Sr(function be(e){return C1("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 bt(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){J4(n)}}error(t){const{partialObserver:r}=this;if(r.error)try{r.error(t)}catch(n){J4(n)}else J4(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(r){J4(r)}}}class In extends ot{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&&bt(t.next,a),error:t.error&&bt(t.error,a),complete:t.complete&&bt(t.complete,a)}):i=t}this.destination=new Ba(i)}}function J4(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},Dr="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ht(e){return e}function Lr(e){return 0===e.length?Ht: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 ot||function H6(e){return e&&Q(e.next)&&Q(e.error)&&Q(e.complete)}(e)&&a1(e)}(r)?r:new In(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 In({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)}[Dr](){return this}pipe(...r){return Lr(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 r2(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 Se(()=>{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 r2(t,r),e})();class r2 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 xr(e){return Q(e?.lift)}function d1(e){return t=>{if(xr(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 ot{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 d1((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 S(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 uu(e){return Q(e?.then)}function du(e){return Q(e[Dr])}function hu(e){return Symbol.asyncIterator&&Q(e?.[Symbol.asyncIterator])}function pu(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 mu=function aA(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function gu(e){return Q(e?.[mu])}function vu(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(m){n[m]&&(i[m]=function(g){return new Promise(function(w,z){a.push([m,g,w,z])>1||c(m,g)})})}function c(m,g){try{!function o(m){m.value instanceof u?Promise.resolve(m.value.v).then(l,f):d(a[0][2],m)}(n[m](g))}catch(w){d(a[0][3],w)}}function l(m){c("next",m)}function f(m){c("throw",m)}function d(m,g){m(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 _u(e){return Q(e?.getReader)}function j1(e){if(e instanceof We)return e;if(null!=e){if(du(e))return function sA(e){return new We(t=>{const r=e[Dr]();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 cA(e){return new We(t=>{for(let r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}(e);if(uu(e))return function oA(e){return new We(t=>{e.then(r=>{t.closed||(t.next(r),t.complete())},r=>t.error(r)).then(null,P1)})}(e);if(hu(e))return Cu(e);if(gu(e))return function lA(e){return new We(t=>{for(const r of e)if(t.next(r),t.closed)return;t.complete()})}(e);if(_u(e))return function fA(e){return Cu(vu(e))}(e)}throw pu(e)}function Cu(e){return new We(t=>{(function uA(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=S(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 fn(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),d1((n,i)=>function dA(e,t,r,n,i,a,s,c){const o=[];let l=0,f=0,d=!1;const m=()=>{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?fn(t,s,()=>w(T)):w(T)}m()}catch(T){t.error(T)}}))};return e.subscribe(qe(t,g,()=>{d=!0,m()})),()=>{c?.()}}(n,i,e,r)))}function t3(e=1/0){return F1(Ht,e)}const ft=new We(e=>e.complete());function Mu(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 Ar(e){return Mu(x6(e))?e.pop():void 0}function yu(e,t=0){return d1((r,n)=>{r.subscribe(qe(n,i=>fn(n,e,()=>n.next(i),t),()=>fn(n,e,()=>n.complete(),t),i=>fn(n,e,()=>n.error(i),t)))})}function bu(e,t=0){return d1((r,n)=>{n.add(e.schedule(()=>r.subscribe(n),t))})}function Hu(e,t){if(!e)throw new Error("Iterable cannot be null");return new We(r=>{fn(r,t,()=>{const n=e[Symbol.asyncIterator]();fn(r,t,()=>{n.next().then(i=>{i.done?r.complete():r.next(i.value)})},0,!0)})})}function Q1(e,t){return t?function MA(e,t){if(null!=e){if(du(e))return function mA(e,t){return j1(e).pipe(bu(t),yu(t))}(e,t);if(L6(e))return function vA(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(uu(e))return function gA(e,t){return j1(e).pipe(bu(t),yu(t))}(e,t);if(hu(e))return Hu(e,t);if(gu(e))return function _A(e,t){return new We(r=>{let n;return fn(r,t,()=>{n=e[mu](),fn(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(_u(e))return function CA(e,t){return Hu(vu(e),t)}(e,t)}throw pu(e)}(e,t):j1(e)}function N6(...e){const t=Ar(e),r=function pA(e,t){return"number"==typeof x6(e)?e.pop():t}(e,1/0),n=e;return n.length?1===n.length?j1(n[0]):t3(r)(Q1(n,t)):ft}class ut 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,Ar(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 m=()=>{c?.unsubscribe(),c=void 0},g=()=>{m(),s=o=void 0,f=d=!1},w=()=>{const z=s;g(),z?.unsubscribe()};return d1((z,L)=>{l++,!d&&!f&&m();const T=o=o??t();L.add(()=>{l--,0===l&&!d&&!f&&(c=E6(w,i))}),T.subscribe(L),!s&&l>0&&(s=new In({next:D=>T.next(D),error:D=>{d=!0,m(),c=E6(g,r,D),T.error(D)},complete:()=>{f=!0,m(),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 In({next:()=>{n.unsubscribe(),e()}});return j1(t(...r)).subscribe(n)}function wt(e,t){return d1((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 yA(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 bA=Ue({__forward_ref__:Ue});function ge(e){return e.__forward_ref__=ge,e.toString=function(){return G1(this())},e}function fe(e){return I6(e)?e():e}function I6(e){return"function"==typeof e&&e.hasOwnProperty(bA)&&e.__forward_ref__===ge}function O6(e){return e&&!!e.\u0275providers}const Vu="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 he(e){return"string"==typeof e?e:null==e?"":String(e)}function R6(e,t){throw new F(-201,!1)}function dt(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 zu(e,ts)||zu(e,Su)}function zu(e,t){return e.hasOwnProperty(t)?e[t]:null}function es(e){return e&&(e.hasOwnProperty(k6)||e.hasOwnProperty(xA))?e[k6]:null}const ts=Ue({\u0275prov:Ue}),k6=Ue({\u0275inj:Ue}),Su=Ue({ngInjectableDef:Ue}),xA=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 E2(e){const t=P6;return P6=e,t}function Lu(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,Er={},G6="__NG_DI_FLAG__",ns="ngTempTokenPath",EA=/\n/gm,Nu="__source";let n3;function kn(e){const t=n3;return n3=e,t}function OA(e,t=Ve.Default){if(void 0===n3)throw new F(-203,!1);return null===n3?Lu(e,void 0,t):n3.get(e,t&Ve.Optional?null:void 0,t)}function Y(e,t=Ve.Default){return(function Du(){return P6}()||OA)(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=RA(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 Tr(e,t){return e[G6]=t,e.prototype[G6]=t,e}function RA(e){return e[G6]}function un(e){return{toString:e}.toString()}var is=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(is||{}),Vt=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Vt||{});const $t={},Te=[],as=Ue({\u0275cmp:Ue}),W6=Ue({\u0275dir:Ue}),q6=Ue({\u0275pipe:Ue}),Eu=Ue({\u0275mod:Ue}),dn=Ue({\u0275fac:Ue}),Ir=Ue({__NG_ELEMENT_ID__:Ue}),Tu=Ue({__NG_ENV_ID__:Ue});function Iu(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];Ru(a)?e.setProperty(t,a,s):e.setAttribute(t,a,s),n++}}return n}function Ou(e){return 3===e||4===e||6===e}function Ru(e){return 64===e.charCodeAt(0)}function Or(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||ku(e,r,i,null,-1===r||2===r?t[++n]:null)}}return e}function ku(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 Pu="ng-template";function FA(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!==Iu(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 Fu(e){return 4===e.type&&e.value!==Pu}function BA(e,t,r){return t===(4!==e.type||r?e.value:Pu)}function UA(e,t,r){let n=4;const i=e.attrs||[],a=function $A(e){for(let t=0;t<e.length;t++)if(Ou(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&&!BA(e,o,r)||""===o&&1===t.length){if(zt(n))return!1;s=!0}}else{const l=8&n?o:t[++c];if(8&n&&null!==e.attrs){if(!FA(e.attrs,l,r)){if(zt(n))return!1;s=!0}continue}const d=jA(8&n?"class":o,i,Fu(e),r);if(-1===d){if(zt(n))return!1;s=!0;continue}if(""!==l){let m;m=d>a?"":i[d+1].toLowerCase();const g=8&n?m:null;if(g&&-1!==Iu(g,l,0)||2&n&&l!==m){if(zt(n))return!1;s=!0}}}}else{if(!s&&!zt(n)&&!zt(o))return!1;if(s&&zt(o))continue;s=!1,n=o|1&n}}return zt(n)||s}function zt(e){return 0==(1&e)}function jA(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 WA(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 Bu(e,t,r=!1){for(let n=0;n<t.length;n++)if(UA(e,t[n],r))return!0;return!1}function qA(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 Uu(e,t){return e?":not("+t.trim()+")":t}function KA(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&&!zt(s)&&(t+=Uu(a,i),i=""),n=s,a=a||!zt(n);r++}return""!==i&&(t+=Uu(a,i)),t}function se(e){return un(()=>{const t=Gu(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||Vt.Emulated,styles:e.styles||Te,_:null,schemas:e.schemas||null,tView:null,id:""};$u(r);const n=e.dependencies;return r.directiveDefs=ss(n,!1),r.pipeDefs=ss(n,!0),r.id=function nE(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 JA(e){return Le(e)||a2(e)}function XA(e){return null!==e}function Fe(e){return un(()=>({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 ju(e,t){if(null==e)return $t;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 un(()=>{const t=Gu(e);return $u(t),t})}function Le(e){return e[as]||null}function a2(e){return e[W6]||null}function C2(e){return e[q6]||null}function Y2(e,t){const r=e[Eu]||null;if(!r&&!0===t)throw new Error(`Type ${G1(e)} does not have '\u0275mod' property.`);return r}function Gu(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||$t,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:ju(e.inputs,t),outputs:ju(e.outputs)}}function $u(e){e.features?.forEach(t=>t(e))}function ss(e,t){if(!e)return null;const r=t?C2:JA;return()=>("function"==typeof e?e():e).map(n=>r(n)).filter(XA)}const D1=0,Z=1,ve=2,m1=3,St=4,Rr=5,m2=6,i3=7,E1=8,Pn=9,a3=10,pe=11,kr=12,Wu=13,s3=14,T1=15,Pr=16,c3=17,Wt=18,Fr=19,qu=20,Fn=21,hn=22,Br=23,Ur=24,ze=25,Y6=1,Ku=2,qt=7,o3=9,s2=11;function I2(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[ve])}function f4(e,t){return e.hasOwnProperty(dn)?e[dn]:null}let c2=null,ls=!1;function ht(e){const t=c2;return c2=e,t}const Qu={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 Xu(e){if(!Gr(e)||e.dirty){if(!e.producerMustRecompute(e)&&!n9(e))return void(e.dirty=!1);e.producerRecomputeValue(e),e.dirty=!1}}function t9(e){e.dirty=!0,function e9(e){if(void 0===e.liveConsumerNode)return;const t=ls;ls=!0;try{for(const r of e.liveConsumerNode)r.dirty||t9(r)}finally{ls=t}}(e),e.consumerMarkedDirty?.(e)}function X6(e){return e&&(e.nextProducerIndex=0),ht(e)}function e0(e,t){if(ht(t),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(Gr(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 n9(e){l3(e);for(let t=0;t<e.producerNode.length;t++){const r=e.producerNode[t],n=e.producerLastReadVersion[t];if(n!==r.version||(Xu(r),n!==r.version))return!0}return!1}function r9(e){if(l3(e),Gr(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 a9(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}(e),l3(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];l3(i),i.producerIndexOfThis[n]=t}}function Gr(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function l3(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let s9=null;const f9=()=>{},mE=(()=>({...Qu,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule(e.ref)},hasRun:!1,cleanupFn:f9}))();class gE{constructor(t,r,n){this.previousValue=t,this.currentValue=r,this.firstChange=n}isFirstChange(){return this.firstChange}}function M1(){return u9}function u9(e){return e.type.prototype.ngOnChanges&&(e.setInput=_E),vE}function vE(){const e=h9(this),t=e?.current;if(t){const r=e.previous;if(r===$t)e.previous=t;else for(let n in t)r[n]=t[n];e.current=null,this.ngOnChanges(t)}}function _E(e,t,r,n){const i=this.declaredInputs[r],a=h9(e)||function CE(e,t){return e[d9]=t}(e,{previous:$t,current:null}),s=a.current||(a.current={}),c=a.previous,o=c[i];s[i]=new gE(o&&o.currentValue,t,c===$t),e[n]=t}M1.ngInherit=!0;const d9="__ngSimpleChanges__";function h9(e){return e[d9]||null}const Kt=function(e,t,r){},p9="svg";function n1(e){for(;Array.isArray(e);)e=e[D1];return e}function us(e,t){return n1(t[e])}function O2(e,t){return n1(t[e.index])}function g9(e,t){return e.data[t]}function Z2(e,t){const r=t[e];return I2(r)?r:r[D1]}function Un(e,t){return null==t?null:e[t]}function v9(e){e[c3]=0}function VE(e){1024&e[ve]||(e[ve]|=1024,C9(e,1))}function _9(e){1024&e[ve]&&(e[ve]&=-1025,C9(e,-1))}function C9(e,t){let r=e[m1];if(null===r)return;r[Rr]+=t;let n=r;for(r=r[m1];null!==r&&(1===t&&1===n[Rr]||-1===t&&0===n[Rr]);)r[Rr]+=t,n=r,r=r[m1]}const oe={lFrame:x9(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function b9(){return oe.bindingsEnabled}function u3(){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 o2(){let e=H9();for(;null!==e&&64===e.type;)e=e.parent;return e}function H9(){return oe.lFrame.currentTNode}function Yt(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 d3(){return oe.lFrame.bindingIndex++}function mn(e){const t=oe.lFrame,r=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,r}function RE(e,t){const r=oe.lFrame;r.bindingIndex=r.bindingRootIndex=e,o0(t)}function o0(e){oe.lFrame.currentDirectiveIndex=e}function S9(){return oe.lFrame.currentQueryIndex}function f0(e){oe.lFrame.currentQueryIndex=e}function PE(e){const t=e[Z];return 2===t.type?t.declTNode:1===t.type?e[m2]:null}function D9(e,t,r){if(r&Ve.SkipSelf){let i=t,a=e;for(;!(i=i.parent,null!==i||r&Ve.Host||(i=PE(a),null===i||(a=a[s3],10&i.type))););if(null===i)return!1;t=i,e=a}const n=oe.lFrame=L9();return n.currentTNode=t,n.lView=e,!0}function u0(e){const t=L9(),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 L9(){const e=oe.lFrame,t=null===e?null:e.child;return null===t?x9(e):t}function x9(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 N9(){const e=oe.lFrame;return oe.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const A9=N9;function d0(){const e=N9();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 y1(){const e=oe.lFrame;return g9(e.tView,e.selectedIndex)}function h3(){oe.lFrame.currentNamespace=p9}function p3(){!function jE(){oe.lFrame.currentNamespace=null}()}let T9=!0;function ds(){return T9}function jn(e){T9=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){I9(e,t,3,r)}function ms(e,t,r,n){(3&e[ve])===r&&I9(e,t,r,n)}function h0(e,t){let r=e[ve];(3&r)===t&&(r&=8191,r+=1,e[ve]=r)}function I9(e,t,r,n){const a=n??-1,s=t.length-1;let c=0;for(let o=void 0!==n?65535&e[c3]:0;o<s;o++)if("number"==typeof t[o+1]){if(c=t[o],null!=n&&c>=n)break}else t[o]<0&&(e[c3]+=65536),(c<a||-1==a)&&($E(e,r,t,o),e[c3]=(4294901760&e[c3])+o+2),o++}function O9(e,t){Kt(4,e,t);const r=ht(null);try{t.call(e)}finally{ht(r),Kt(5,e,t)}}function $E(e,t,r,n){const i=r[n]<0,a=r[n+1],c=e[i?-r[n]:r[n]];i?e[ve]>>13<e[c3]>>16&&(3&e[ve])===t&&(e[ve]+=8192,O9(c,a)):O9(c,a)}const m3=-1;class Wr{constructor(t,r,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=n}}function m0(e){return e!==m3}function qr(e){return 32767&e}function Kr(e,t){let r=function YE(e){return e>>16}(e),n=t;for(;r>0;)n=n[s3],r--;return n}let g0=!0;function gs(e){const t=g0;return g0=e,t}const R9=255,k9=5;let ZE=0;const Zt={};function vs(e,t){const r=P9(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=qr(i),c=Kr(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 P9(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=W9(i),null===n)return m3;if(r++,i=i[s3],-1!==n.injectorIndex)return n.injectorIndex|r<<16}return m3}function _0(e,t,r){!function QE(e,t,r){let n;"string"==typeof r?n=r.charCodeAt(0)||0:r.hasOwnProperty(Ir)&&(n=r[Ir]),null==n&&(n=r[Ir]=ZE++);const i=n&R9;t.data[e+(i>>k9)]|=1<<i}(e,t,r)}function F9(e,t,r){if(r&Ve.Optional||void 0!==e)return e;R6()}function B9(e,t,r,n){if(r&Ve.Optional&&void 0===n&&(n=null),!(r&(Ve.Self|Ve.Host))){const i=e[Pn],a=E2(void 0);try{return i?i.get(t,n,r&Ve.Optional):Lu(t,n,r&Ve.Optional)}finally{E2(a)}}return F9(n,0,r)}function U9(e,t,r,n=Ve.Default,i){if(null!==e){if(2048&t[ve]&&!(n&Ve.Self)){const s=function rT(e,t,r,n,i){let a=e,s=t;for(;null!==a&&null!==s&&2048&s[ve]&&!(512&s[ve]);){const c=j9(a,s,r,n|Ve.Self,Zt);if(c!==Zt)return c;let o=a.parent;if(!o){const l=s[qu];if(l){const f=l.get(r,Zt,n);if(f!==Zt)return f}o=W9(s),s=s[s3]}a=o}return i}(e,t,r,n,Zt);if(s!==Zt)return s}const a=j9(e,t,r,n,Zt);if(a!==Zt)return a}return B9(t,r,n,i)}function j9(e,t,r,n,i){const a=function eT(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(Ir)?e[Ir]:void 0;return"number"==typeof t?t>=0?t&R9:nT:t}(r);if("function"==typeof a){if(!D9(t,e,n))return n&Ve.Host?F9(i,0,n):B9(t,r,n,i);try{let s;if(s=a(n),null!=s||n&Ve.Optional)return s;R6()}finally{A9()}}else if("number"==typeof a){let s=null,c=P9(e,t),o=m3,l=n&Ve.Host?t[T1][m2]:null;for((-1===c||n&Ve.SkipSelf)&&(o=-1===c?_s(e,t):t[c+8],o!==m3&&$9(n,!1)?(s=t[Z],c=qr(o),t=Kr(o,t)):c=-1);-1!==c;){const f=t[Z];if(G9(a,c,f.data)){const d=XE(c,t,r,s,n,l);if(d!==Zt)return d}o=t[c+8],o!==m3&&$9(n,t[Z].data[c+8]===l)&&G9(a,c,t)?(s=f,c=qr(o),t=Kr(o,t)):c=-1}}return i}function XE(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):Zt}function Cs(e,t,r,n,i){const a=e.providerIndexes,s=t.data,c=1048575&a,o=e.directiveStart,f=a>>20,m=i?c+f:e.directiveEnd;for(let g=n?c:c+f;g<m;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 WE(e){return e instanceof Wr}(i)){const s=i;s.resolving&&function HA(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():he(e)}(a[r]));const c=gs(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?E2(s.injectImpl):null;D9(e,n,Ve.Default);try{i=e[r]=s.factory(void 0,a,e,n),t.firstCreatePass&&r>=n.directiveStart&&function GE(e,t,r){const{ngOnChanges:n,ngOnInit:i,ngDoCheck:a}=t.type.prototype;if(n){const s=u9(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&&E2(l),gs(c),s.resolving=!1,A9()}}return i}function G9(e,t,r){return!!(r[t+(e>>k9)]&1<<e)}function $9(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 U9(this._tNode,this._lView,t,rs(n),r)}}function nT(){return new H2(o2(),P())}function I1(e){return un(()=>{const t=e.prototype.constructor,r=t[dn]||C0(t),n=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==n;){const a=i[dn]||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 W9(e){const t=e[Z],r=t.type;return 2===r?t.declTNode:1===r?e[m2]:null}const v3="__parameters__";function C3(e,t,r){return un(()=>{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(v3)?o[v3]:Object.defineProperty(o,v3,{value:[]})[v3];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 y3(e,t){e.forEach(r=>Array.isArray(r)?y3(r,t):t(r))}function K9(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 Qr(e,t){const r=[];for(let n=0;n<e;n++)r.push(t);return r}function Q2(e,t,r){let n=b3(e,t);return n>=0?e[1|n]=r:(n=~n,function fT(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=b3(e,t);if(r>=0)return e[1|r]}function b3(e,t){return function Y9(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=Tr(C3("Optional"),8),Hs=Tr(C3("SkipSelf"),4);function Ds(e){return 128==(128&e.flags)}var Gn=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Gn||{});const z0=new Map;let TT=0;const D0="__ngContext__";function g2(e,t){I2(t)?(e[D0]=t[Fr],function OT(e){z0.set(e[Fr],e)}(t)):e[D0]=t}let L0;function x0(e,t){return L0(e,t)}function ei(e){const t=e[m1];return M2(t)?t[m1]:t}function md(e){return vd(e[kr])}function gd(e){return vd(e[St])}function vd(e){for(;null!==e&&!M2(e);)e=e[St];return e}function V3(e,t,r,n,i){if(null!=n){let a,s=!1;M2(n)?a=n:I2(n)&&(s=!0,n=n[D1]);const c=n1(n);0===e&&null!==r?null==i?yd(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 tI(e,t,r,n){e.removeChild(t,r,n)}(e,n,t,r)}(t,c,s):3===e&&t.destroyNode(c),null!=a&&function iI(e,t,r,n,i){const a=r[qt];a!==n1(r)&&V3(t,e,n,a,i);for(let c=s2;c<r.length;c++){const o=r[c];ni(o[Z],o,e,t,n,a)}}(t,e,a,r,i)}}function Ns(e,t,r){return e.createElement(t,r)}function Cd(e,t){const r=e[o3],n=r.indexOf(t);_9(t),r.splice(n,1)}function As(e,t){if(e.length<=s2)return;const r=s2+t,n=e[r];if(n){const i=n[Pr];null!==i&&i!==e&&Cd(i,n),t>0&&(e[r-1][St]=n[St]);const a=Ms(e,s2+t);!function qT(e,t){ni(e,t,t[pe],2,null,null),t[D1]=null,t[m2]=null}(n[Z],n);const s=a[Wt];null!==s&&s.detachView(a[Z]),n[m1]=null,n[St]=null,n[ve]&=-129}return n}function A0(e,t){if(!(256&t[ve])){const r=t[pe];t[Br]&&r9(t[Br]),t[Ur]&&r9(t[Ur]),r.destroyNode&&ni(e,t,r,3,null,null),function ZT(e){let t=e[kr];if(!t)return E0(e[Z],e);for(;t;){let r=null;if(I2(t))r=t[kr];else{const n=t[s2];n&&(r=n)}if(!r){for(;t&&!t[St]&&t!==e;)I2(t)&&E0(t[Z],t),t=t[m1];null===t&&(t=e),I2(t)&&E0(t[Z],t),r=t&&t[St]}t=r}}(t)}}function E0(e,t){if(!(256&t[ve])){t[ve]&=-129,t[ve]|=256,function eI(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 Wr)){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];Kt(4,c,o);try{o.call(c)}finally{Kt(5,c,o)}}else{Kt(4,i,a);try{a.call(i)}finally{Kt(5,i,a)}}}}}(e,t),function XT(e,t){const r=e.cleanup,n=t[i3];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[i3]=null);const i=t[Fn];if(null!==i){t[Fn]=null;for(let a=0;a<i.length;a++)(0,i[a])()}}(e,t),1===t[Z].type&&t[pe].destroy();const r=t[Pr];if(null!==r&&M2(t[m1])){r!==t[m1]&&Cd(r,t);const n=t[Wt];null!==n&&n.detachView(e)}!function RT(e){z0.delete(e[Fr])}(t)}}function T0(e,t,r){return function Md(e,t,r){let n=t;for(;null!==n&&40&n.type;)n=(t=n).parent;if(null===n)return r[D1];{const{componentOffset:i}=n;if(i>-1){const{encapsulation:a}=e.data[n.directiveStart+i];if(a===Vt.None||a===Vt.Emulated)return null}return O2(n,r)}}(e,t.parent,r)}function p4(e,t,r,n,i){e.insertBefore(t,r,n,i)}function yd(e,t,r){e.appendChild(t,r)}function bd(e,t,r,n,i){null!==n?p4(e,t,r,n,i):yd(e,t,r)}function Es(e,t){return e.parentNode(t)}function Hd(e,t,r){return Vd(e,t,r)}let I0,Os,P0,Rs,Vd=function wd(e,t,r){return 40&e.type?O2(e,r):null};function Ts(e,t,r,n){const i=T0(e,n,t),a=t[pe],c=Hd(n.parent||t[m2],n,t);if(null!=i)if(Array.isArray(r))for(let o=0;o<r.length;o++)bd(a,i,r[o],c,!1);else bd(a,i,r,c,!1);void 0!==I0&&I0(a,n,t,r,i)}function ti(e,t){if(null!==t){const r=t.type;if(3&r)return O2(t,e);if(4&r)return O0(-1,e[t.index]);if(8&r){const n=t.child;if(null!==n)return ti(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=Sd(e,t);return null!==n?Array.isArray(n)?n[0]:ti(ei(e[T1]),n):ti(e,t.next)}}return null}function Sd(e,t){return null!==t?e[T1][m2].projection[t.projection]:null}function O0(e,t){const r=s2+e+1;if(r<t.length){const n=t[r],i=n[Z].firstChild;if(null!==i)return ti(n,i)}return t[qt]}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),V3(t,e,i,c,a);else if(32&o){const l=x0(r,n);let f;for(;f=l();)V3(t,e,i,f,a);V3(t,e,i,c,a)}else 16&o?Ld(e,t,n,r,i,a):V3(t,e,i,c,a);r=s?r.projectionNext:r.next}}function ni(e,t,r,n,i,a){R0(r,n,e.firstChild,t,i,a,!1)}function Ld(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++)V3(t,e,i,o[l],a);else{let l=o;const f=s[m1];Ds(n)&&(l.flags|=128),R0(e,t,l,f,i,a,!0)}}function xd(e,t,r){""===r?e.removeAttribute(t,"class"):e.setAttribute(t,"class",r)}function Nd(e,t,r){const{mergedAttrs:n,classes:i,styles:a}=r;null!==n&&K6(e,t,n),null!==i&&xd(e,t,i),null!==a&&function sI(e,t,r){e.setAttribute(t,"style",r)}(e,t,a)}function z3(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 Ad(e){return F0()?.createHTML(e)||e}function Td(e){return F0()?.createScriptURL(e)||e}class m4{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Vu})`}}class uI extends m4{getTypeName(){return"HTML"}}class dI extends m4{getTypeName(){return"Style"}}class hI extends m4{getTypeName(){return"Script"}}class pI extends m4{getTypeName(){return"URL"}}class mI extends m4{getTypeName(){return"ResourceURL"}}function J2(e){return e instanceof m4?e.changingThisBreaksApplicationSecurity:e}function Qt(e,t){const r=function gI(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 ${Vu})`)}return r===t}class bI{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const r=(new window.DOMParser).parseFromString(z3(t),"text/html").body;return null===r?this.inertDocumentHelper.getInertBodyElement(t):(r.removeChild(r.firstChild),r)}catch{return null}}}class HI{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const r=this.inertDocument.createElement("template");return r.innerHTML=z3(t),r}}const VI=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function ks(e){return(e=String(e)).match(VI)?e:"unsafe:"+e}function gn(e){const t={};for(const r of e.split(","))t[r]=!0;return t}function ri(...e){const t={};for(const r of e)for(const n in r)r.hasOwnProperty(n)&&(t[n]=!0);return t}const Od=gn("area,br,col,hr,img,wbr"),Rd=gn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),kd=gn("rp,rt"),B0=ri(Od,ri(Rd,gn("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")),ri(kd,gn("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")),ri(kd,Rd)),U0=gn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Pd=ri(U0,gn("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"),gn("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")),zI=gn("script,style,template");class SI{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,!zI.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(!Pd.hasOwnProperty(c)){this.sanitizedSomething=!0;continue}let o=a.value;U0[c]&&(o=ks(o)),this.buf.push(" ",s,'="',Fd(o),'"')}return this.buf.push(">"),!0}endElement(t){const r=t.nodeName.toLowerCase();B0.hasOwnProperty(r)&&!Od.hasOwnProperty(r)&&(this.buf.push("</"),this.buf.push(r),this.buf.push(">"))}chars(t){this.buf.push(Fd(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,LI=/([^\#-~ |!])/g;function Fd(e){return e.replace(/&/g,"&amp;").replace(DI,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(LI,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Ps;function Bd(e,t){let r=null;try{Ps=Ps||function Id(e){const t=new HI(e);return function wI(){try{return!!(new window.DOMParser).parseFromString(z3(""),"text/html")}catch{return!1}}()?new bI(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 z3((new SI).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 xI(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var mt=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}(mt||{});function Ud(e){const t=ii();return t?Ad(t.sanitize(mt.HTML,e)||""):Qt(e,"HTML")?Ad(J2(e)):Bd(S3(),he(e))}function k2(e){const t=ii();return t?t.sanitize(mt.STYLE,e)||"":Qt(e,"Style")?J2(e):he(e)}function D3(e){const t=ii();return t?t.sanitize(mt.URL,e)||"":Qt(e,"URL")?J2(e):ks(he(e))}function jd(e){const t=ii();if(t)return Td(t.sanitize(mt.RESOURCE_URL,e)||"");if(Qt(e,"ResourceURL"))return Td(J2(e));throw new F(904,!1)}function ii(){const e=P();return e&&e[a3].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 ai=new te("ENVIRONMENT_INITIALIZER"),$d=new te("INJECTOR",-1),Wd=new te("INJECTOR_DEF_TYPES");class G0{get(t,r=Er){if(r===Er){const n=new Error(`NullInjectorError: No provider for ${G1(t)}!`);throw n.name="NullInjectorError",n}return r}}function II(...e){return{\u0275providers:Kd(0,e),\u0275fromNgModule:!0}}function Kd(e,...t){const r=[],n=new Set;let i;const a=s=>{r.push(s)};return y3(t,s=>{const c=s;Fs(c,a,[],n)&&(i||=[],i.push(c))}),void 0!==i&&Yd(i,a),r}function Yd(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{y3(a.imports,f=>{Fs(f,t,r,n)&&(l||=[],l.push(f))})}finally{}void 0!==l&&Yd(l,t)}if(!c){const l=f4(i)||(()=>new i);t({provide:i,useFactory:l,deps:Te},i),t({provide:Wd,useValue:i,multi:!0},i),t({provide:ai,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 OI=Ue({provide:String,useValue:Ue});function W0(e){return null!==e&&"object"==typeof e&&OI in e}function g4(e){return"function"==typeof e}const q0=new te("Set Injector scope."),Bs={},kI={};let K0;function Us(){return void 0===K0&&(K0=new G0),K0}class P2{}class js extends P2{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($d,L3(void 0,this)),i.has("environment")&&this.records.set(P2,L3(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(Wd.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=kn(this),n=E2(void 0);try{return t()}finally{kn(r),E2(n)}}get(t,r=Er,n=Ve.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(Tu))return t[Tu](this);n=rs(n);const a=kn(this),s=E2(void 0);try{if(!(n&Ve.SkipSelf)){let o=this.records.get(t);if(void 0===o){const l=function jI(e){return"function"==typeof e||"object"==typeof e&&e instanceof te}(t)&&Xa(t);o=l&&this.injectableDefInScope(l)?L3(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===Er?null:r)}catch(c){if("NullInjectorError"===c.name){if((c[ns]=c[ns]||[]).unshift(G1(t)),a)throw c;return function kA(e,t,r,n){const i=e[ns];throw t[Nu]&&i.unshift(t[Nu]),e.message=function PA(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(EA,"\n ")}`}("\n"+e.message,i,r,n),e.ngTokenPath=i,e[ns]=null,e}(c,t,"R3InjectorError",this.source)}throw c}finally{E2(s),kn(a)}}resolveInjectorInitializers(){const t=kn(this),r=E2(void 0);try{const i=this.get(ai.multi,Te,Ve.Self);for(const a of i)a()}finally{kn(t),E2(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 FI(e){return W0(e)?L3(void 0,e.useValue):L3(Jd(e),Bs)}(t);if(g4(t)||!0!==t.multi)this.records.get(r);else{let i=this.records.get(r);i||(i=L3(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=kI,r.value=r.factory()),"object"==typeof r.value&&r.value&&function UI(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 PI(e){const t=e.length;if(t>0)throw Qr(t,"?"),new F(204,!1);const r=function LA(e){return e&&(e[ts]||e[Su])||null}(e);return null!==r?()=>r.factory(e):()=>new e}(e);throw new F(204,!1)}function Jd(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 Qd(e){return!(!e||!e.useFactory)}(e))n=()=>e.useFactory(...$6(e.deps||[]));else if(function Zd(e){return!(!e||!e.useExisting)}(e))n=()=>Y(fe(e.useExisting));else{const i=fe(e&&(e.useClass||e.provide));if(!function BI(e){return!!e.deps}(e))return f4(i)||Y0(i);n=()=>new i(...$6(e.deps))}return n}function L3(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:()=>GI}),GI="ng",Xd=new te("Platform Initializer"),x3=new te("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),eh=new te("CSP nonce",{providedIn:"root",factory:()=>S3().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let th=(e,t,r)=>null;function i8(e,t,r=!1){return th(e,t,r)}class eO{}class ih{}class nO{resolveComponentFactory(t){throw function tO(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 nO,t})();function rO(){return E3(o2(),P())}function E3(e,t){return new Ne(O2(e,t))}let Ne=(()=>{class t{constructor(n){this.nativeElement=n}}return t.__NG_ELEMENT_ID__=rO,t})();function iO(e){return e instanceof Ne?e.nativeElement:e}class c8{}let l2=(()=>{class t{constructor(){this.destroyNode=null}}return t.__NG_ELEMENT_ID__=()=>function aO(){const e=P(),r=Z2(o2().index,e);return(I2(r)?r:e)[pe]}(),t})(),sO=(()=>{var e;class t{}return(e=t).\u0275prov=K({token:e,providedIn:"root",factory:()=>null}),t})();class oi{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const cO=new oi("16.2.6"),o8={};function lh(e,t=null,r=null,n){const i=fh(e,t,r,n);return i.resolveInjectorInitializers(),i}function fh(e,t=null,r=null,n,i=new Set){const a=[r||Te,II(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 lh({name:""},i,n,"");{const a=n.name??"";return lh({name:a},n.parent,n.providers,a)}}}return(e=t).THROW_IF_NOT_FOUND=Er,e.NULL=new G0,e.\u0275prov=K({token:e,providedIn:"any",factory:()=>Y($d)}),e.__NG_ELEMENT_ID__=-1,t})();function f8(e){return e.ngOriginalError}class vn{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 pO 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 Se&&t.add(c),c}};function dh(...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 mO(){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 _O(e){const t=()=>{!function vO(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 MO(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 hh(e),r.invokeTask(i,a,s,c)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===a.type||e.shouldCoalesceRunChangeDetection)&&t(),ph(e)}},onInvoke:(r,n,i,a,s,c,o)=>{try{return hh(e),r.invoke(i,a,s,c,o)}finally{e.shouldCoalesceRunChangeDetection&&t(),ph(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,gO,dh,dh);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 gO={};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 hh(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function ph(e){e._nesting--,h8(e)}class CO{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 mh=new te("",{providedIn:"root",factory:gh});function gh(){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 _n(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 li(e){for(;e;){e[ve]|=64;const t=ei(e);if(Q6(e)&&!t)return e;e=t}return null}const yh=new te("",{providedIn:"root",factory:()=>!1});let Js=null;function Vh(e,t){return e[t]??Dh()}function zh(e,t){const r=Dh();r.producerNode?.length&&(e[t]=Js,r.lView=e,Js=Sh())}const xO={...Qu,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{li(e.lView)},lView:null};function Sh(){return Object.create(xO)}function Dh(){return Js??=Sh(),Js}const me={};function C(e){Lh(xe(),P(),b2()+e,!1)}function Lh(e,t,r,n){if(!n)if(3==(3&t[ve])){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):U9(o2(),r,fe(e),t)}function Xs(e,t,r,n,i,a,s,c,o,l,f){const d=t.blueprint.slice();return d[D1]=i,d[ve]=140|n,(null!==l||e&&2048&e[ve])&&(d[ve]|=2048),v9(d),d[m1]=d[s3]=e,d[E1]=r,d[a3]=s||e&&e[a3],d[pe]=c||e&&e[pe],d[Pn]=o||e&&e[Pn]||null,d[m2]=a,d[Fr]=function IT(){return TT++}(),d[hn]=f,d[qu]=l,d[T1]=2==t.type?e[T1]:d,d}function O3(e,t,r,n,i){let a=e.data[t];if(null===a)a=function g8(e,t,r,n,i){const a=H9(),s=s0(),o=e.data[t]=function kO(e,t,r,n,i,a){let s=t?t.injectorIndex:-1,c=0;return u3()&&(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 OE(){return oe.lFrame.inI18n}()&&(a.flags|=32);else if(64&a.type){a.type=r,a.value=n,a.attrs=i;const s=function $r(){const e=oe.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();a.injectorIndex=null===s?-1:s.injectorIndex}return Yt(a,!0),a}function fi(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 Nh(e,t,r,n,i){const a=Vh(t,Br),s=b2(),c=2&n;try{u4(-1),c&&t.length>ze&&Lh(e,t,ze,!1),Kt(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[Br]&&zh(t,Br),u4(s),Kt(c?3:1,i)}}function v8(e,t,r){if(Z6(t)){const n=ht(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{ht(n)}}}function _8(e,t,r){b9()&&(function $O(e,t,r,n){const i=r.directiveStart,a=r.directiveEnd;l4(r)&&function JO(e,t,r){const n=O2(t,e),i=Ah(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[a3].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&&XO(0,c-i,l,o,0,s),Dt(o)&&(Z2(r.index,t)[E1]=d4(t,e,c,r))}}(e,t,r,O2(r,t)),64==(64&r.flags)&&Rh(e,t,r))}function C8(e,t,r=O2){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 Ah(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,m=d+i,g=function AO(e,t){const r=[];for(let n=0;n<t;n++)r.push(n<e?null:me);return r}(d,m),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:m,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 Eh=e=>null;function Th(e,t,r,n){for(let i in e)if(e.hasOwnProperty(i)){r=null===r?{}:r;const a=e[i];null===n?Ih(r,t,i,a):n.hasOwnProperty(i)&&Ih(r,t,n[i],a)}return r}function Ih(e,t,r,n){e.hasOwnProperty(r)?e[r].push(t,n):e[r]=[t,n]}function X2(e,t,r,n,i,a,s,c){const o=O2(t,r);let f,l=t.inputs;!c&&null!=l&&(f=l[n])?(V8(e,r,f,n,i),l4(t)&&function BO(e,t){const r=Z2(t,e);16&r[ve]||(r[ve]|=64)}(r,t.index)):3&t.type&&(n=function FO(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(b9()){const i=null===n?null:{"":-1},a=function qO(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(Bu(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&&Oh(e,t,r,s,i,c),i&&function KO(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=Or(r.mergedAttrs,r.attrs)}function Oh(e,t,r,n,i,a){for(let l=0;l<n.length;l++)_0(vs(r,t),e,n[l].type);!function ZO(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=fi(e,t,n.length,null);for(let l=0;l<n.length;l++){const f=n[l];r.mergedAttrs=Or(r.mergedAttrs,f.hostAttrs),QO(e,r,t,o,f),YO(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 PO(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],m=r?r.get(d):null,w=m?m.outputs:null;o=Th(d.inputs,f,o,m?m.inputs:null),l=Th(d.outputs,f,l,w);const z=null===o||null===s||Fu(t)?null:eR(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 Rh(e,t,r){const n=r.directiveStart,i=r.directiveEnd,a=r.index,s=function kE(){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)&&WO(o,l)}}finally{u4(-1),o0(s)}}function WO(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function b8(e,t,r){t.componentOffset=r,(e.components??=[]).push(t.index)}function YO(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 QO(e,t,r,n,i){e.data[n]=i;const a=i.factory||(i.factory=f4(i.type)),s=new Wr(a,Dt(i),H);e.blueprint[n]=s,r[n]=s,function jO(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 GO(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,fi(e,r,i.hostVars,me),i)}function Jt(e,t,r,n,i,a){const s=O2(e,t);!function H8(e,t,r,n,i,a,s){if(null==a)e.removeAttribute(t,i,r);else{const c=null==s?he(a):s(a,n||"",i);e.setAttribute(t,i,c,r)}}(t[pe],s,a,e.value,r,n,i)}function XO(e,t,r,n,i,a){const s=a[t];if(null!==s)for(let c=0;c<s.length;)kh(n,r,s[c++],s[c++],s[c++])}function kh(e,t,r,n,i){const a=ht(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{ht(a)}}function eR(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 Ph(e,t,r,n){return[e,!0,!1,t,null,0,n,r,null,null,null]}function Fh(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[kr]?e[Wu][St]=t:e[kr]=t,e[Wu]=t,t}function w8(e,t,r){f0(0);const n=ht(null);try{t(e,r)}finally{ht(n)}}function Bh(e){return e[i3]||(e[i3]=[])}function Uh(e){return e.cleanup||(e.cleanup=[])}function Gh(e,t){const r=e[Pn],n=r?r.get(vn,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++];kh(e.data[s],t[s],n,c,i)}}function Cn(e,t,r){const n=us(t,e);!function _d(e,t,r){e.setValue(t,r)}(e[pe],n,r)}function tR(e,t){const r=Z2(t,e),n=r[Z];!function nR(e,t){for(let r=t.length;r<e.blueprint.length;r++)t.push(e.blueprint[r])}(n,r);const i=r[D1];null!==i&&null===r[hn]&&(r[hn]=i8(i,r[Pn])),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&&Nh(e,t,i,1,r),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Fh(e,t),e.staticViewQueries&&w8(2,e.viewQuery,r);const a=e.components;null!==a&&function rR(e,t){for(let r=0;r<t.length;r++)tR(e,t[r])}(t,a)}catch(n){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),n}finally{t[ve]&=-5,d0()}}let $h=(()=>{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 pE(e,t,r){const n=Object.create(mE);r&&(n.consumerAllowSignalWrites=!0),n.fn=e,n.schedule=t;const i=s=>{n.cleanupFn=s};return n.ref={notify:()=>t9(n),run:()=>{if(n.dirty=!1,n.hasRun&&!n9(n))return;n.hasRun=!0;const s=X6(n);try{n.cleanupFn(),n.cleanupFn=f9,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 ui(e,t,r,n,i=!1){for(;null!==r;){const a=t[r.index];null!==a&&n.push(n1(a)),M2(a)&&Wh(a,n);const s=r.type;if(8&s)ui(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=Sd(t,r);if(Array.isArray(c))n.push(...c);else{const o=ei(t[T1]);ui(o[Z],o,c,n,!0)}}r=i?r.projectionNext:r.next}return n}function Wh(e,t){for(let r=s2;r<e.length;r++){const n=e[r],i=n[Z].firstChild;null!==i&&ui(n[Z],n,i,t)}e[qt]!==e[D1]&&t.push(e[qt])}function nc(e,t,r,n=!0){const i=t[a3],a=i.rendererFactory,s=i.afterRenderEventManager;a.begin?.(),s?.begin();try{qh(e,t,e.template,r)}catch(o){throw n&&Gh(t,o),o}finally{a.end?.(),i.effectManager?.flush(),s?.end()}}function qh(e,t,r,n){const i=t[ve];if(256!=(256&i)){t[a3].effectManager?.flush(),u0(t);try{v9(t),function V9(e){return oe.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==r&&Nh(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 sR(e){for(let t=md(e);null!==t;t=gd(t)){if(!t[Ku])continue;const r=t[o3];for(let n=0;n<r.length;n++){VE(r[n])}}}(t),Kh(t,2),null!==e.contentQueries&&Fh(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 NO(e,t){const r=e.hostBindingOpCodes;if(null===r)return;const n=Vh(t,Ur);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];RE(c,s),n.dirty=!1;const l=X6(n);try{o(2,t[s])}finally{e0(n,l)}}}}finally{null===t[Ur]&&zh(t,Ur),u4(-1)}}(e,t);const c=e.components;null!==c&&Zh(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[ve]&=-73,_9(t)}finally{d0()}}}function Kh(e,t){for(let r=md(e);null!==r;r=gd(r))for(let n=s2;n<r.length;n++)Yh(r[n],t)}function cR(e,t,r){Yh(Z2(t,e),r)}function Yh(e,t){if(!function HE(e){return 128==(128&e[ve])}(e))return;const r=e[Z],n=e[ve];if(80&n&&0===t||1024&n||2===t)qh(r,e,r.template,e[E1]);else if(e[Rr]>0){Kh(e,1);const i=r.components;null!==i&&Zh(e,i,1)}}function Zh(e,t,r){for(let n=0;n<t.length;n++)cR(e,t[n],r)}class di{get rootNodes(){const t=this._lView,r=t[Z];return ui(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[ve])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[m1];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 M9(e,t){if(256==(256&e[ve]))throw new F(911,!1);null===e[Fn]&&(e[Fn]=[]),e[Fn].push(t)}(this._lView,t)}markForCheck(){li(this._cdRefInjectingView||this._lView)}detach(){this._lView[ve]&=-129}reattach(){this._lView[ve]|=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 YT(e,t){ni(e,t,t[pe],2,null,null)}(this._lView[Z],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new F(902,!1);this._appRef=t}}class oR extends di{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 Qh extends Zs{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const r=Le(t);return new hi(r,this.ngModule)}}function Jh(e){const t=[];for(let r in e)e.hasOwnProperty(r)&&t.push({propName:e[r],templateName:r});return t}class fR{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 hi extends ih{get inputs(){const t=this.componentDef,r=t.inputTransforms,n=Jh(t.inputs);if(null!==r)for(const i of n)r.hasOwnProperty(i.propName)&&(i.transform=r[i.propName]);return n}get outputs(){return Jh(this.componentDef.outputs)}constructor(t,r){super(),this.componentDef=t,this.ngModule=r,this.componentType=t.type,this.selector=function YA(e){return e.map(KA).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!r}create(t,r,n,i){let a=(i=i||this.ngModule)instanceof P2?i:i?.injector;a&&null!==this.componentDef.getStandaloneInjector&&(a=this.componentDef.getStandaloneInjector(a)||a);const s=a?new fR(t,a):t,c=s.get(c8,null);if(null===c)throw new F(407,!1);const d={rendererFactory:c,sanitizer:s.get(sO,null),effectManager:s.get($h,null),afterRenderEventManager:s.get(m8,null)},m=c.createRenderer(null,this.componentDef),g=this.componentDef.selectors[0][0]||"div",w=n?function EO(e,t,r,n){const a=n.get(yh,!1)||r===Vt.ShadowDom,s=e.selectRootElement(t,a);return function TO(e){Eh(e)}(s),s}(m,n,this.componentDef.encapsulation,s):Ns(m,g,function lR(e){const t=e.toLowerCase();return"svg"===t?p9:"math"===t?"math":null}(g)),T=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let D=null;null!==w&&(D=i8(w,s,!0));const U=M8(0,null,null,1,0,null,null,null,null,null,null),j=Xs(null,U,null,T,null,null,d,m,s,null,D);let q,ie;u0(j);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 V1=function dR(e,t){const r=e[Z],n=ze;return e[n]=t,O3(r,n,2,"#host",null)}(j,w),n2=function hR(e,t,r,n,i,a,s){const c=i[Z];!function pR(e,t,r,n){for(const i of e)t.mergedAttrs=Or(t.mergedAttrs,i.hostAttrs);null!==t.mergedAttrs&&(tc(t,t.mergedAttrs,!0),null!==r&&Nd(n,r,t))}(n,e,t,s);let o=null;null!==t&&(o=i8(t,i[Pn]));const l=a.rendererFactory.createRenderer(t,r);let f=16;r.signals?f=4096:r.onPush&&(f=64);const d=Xs(i,Ah(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}(V1,w,_e,He,j,d,m);ie=g9(U,ze),w&&function gR(e,t,r,n){if(n)K6(e,r,["ng-version",cO.full]);else{const{attrs:i,classes:a}=function ZA(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(!zt(i))break;i=a}n++}return{attrs:t,classes:r}}(t.selectors[0]);i&&K6(e,r,i),a&&a.length>0&&xd(e,r,a.join(" "))}}(m,_e,w,n),void 0!==r&&function vR(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)}}(ie,this.ngContentSelectors,r),q=function mR(e,t,r,n,i,a){const s=o2(),c=i[Z],o=O2(s,i);Oh(c,i,s,r,null,n);for(let f=0;f<r.length;f++)g2(d4(i,c,s.directiveStart+f,s),i);Rh(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}(n2,_e,He,ke,j,[_R]),z8(U,j,null)}finally{d0()}return new uR(this.componentType,q,E3(ie,j),j,ie)}}class uR extends eO{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 oR(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),li(Z2(this._tNode.index,a))}}get injector(){return new H2(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function _R(){const e=o2();hs(P()[Z],e)}function re(e){let t=function Xh(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&&bR(e,c);const o=i.viewQuery,l=i.contentQueries;if(o&&MR(e,o),l&&yR(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===re&&(r=!1)}}t=Object.getPrototypeOf(t)}!function CR(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=Or(i.hostAttrs,r=Or(r,i.hostAttrs))}}(n)}function rc(e){return e===$t?{}:e===Te?[]:e}function MR(e,t){const r=e.viewQuery;e.viewQuery=r?(n,i)=>{t(n,i),r(n,i)}:t}function yR(e,t){const r=e.contentQueries;e.contentQueries=r?(n,i,a)=>{t(n,i,a),r(n,i,a)}:t}function bR(e,t){const r=e.hostBindings;e.hostBindings=r?(n,i)=>{t(n,i),r(n,i)}:t}function rp(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 S8(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 B(e,t,r,n){const i=P();return v2(i,d3(),t)&&(xe(),Jt(y1(),i,e,t,r,n)),B}function k3(e,t,r,n){return v2(e,d3(),r)?t+he(r)+n:me}function P3(e,t,r,n,i,a){const c=v4(e,function pn(){return oe.lFrame.bindingIndex}(),r,i);return mn(2),c?t+he(r)+n+he(i)+a:me}function I(e,t,r,n,i,a,s,c){const o=P(),l=xe(),f=e+ze,d=l.firstCreatePass?function WR(e,t,r,n,i,a,s,c,o){const l=t.consts,f=O3(t,e,4,s||null,Un(l,c));y8(t,r,f,Un(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];Yt(d,!1);const m=gp(l,o,d,e);ds()&&Ts(l,o,m,d),g2(m,o),ec(o,o[f]=Ph(m,o,m,d)),os(d)&&_8(l,o,d),null!=s&&C8(o,d,c)}let gp=function vp(e,t,r,n){return jn(!0),t[pe].createComment("")};function F2(e){return function f3(e,t){return e[t]}(function IE(){return oe.lFrame.contextLView}(),ze+e)}function y(e,t,r){const n=P();return v2(n,d3(),t)&&X2(xe(),y1(),n,e,t,n[pe],r,!1),y}function E8(e,t,r,n,i){const s=i?"class":"style";V8(e,r,t.inputs[s],s,n)}function p(e,t,r,n){const i=P(),a=xe(),s=ze+e,c=i[pe],o=a.firstCreatePass?function ZR(e,t,r,n,i,a){const s=t.consts,o=O3(t,e,2,n,Un(s,i));return y8(t,r,o,Un(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=_p(a,i,o,c,t,e);i[s]=l;const f=os(o);return Yt(o,!0),Nd(c,l,o),32!=(32&o.flags)&&ds()&&Ts(a,i,l,o),0===function SE(){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),p}function v(){let e=o2();s0()?c0():(e=e.parent,Yt(e,!1));const t=e;(function xE(e){return oe.skipHydrationRootTNode===e})(t)&&function TE(){oe.skipHydrationRootTNode=null}(),function LE(){oe.lFrame.elementDepthCount--}();const r=xe();return r.firstCreatePass&&(hs(r,e),Z6(e)&&r.queries.elementEnd(e)),null!=t.classesWithoutHost&&function qE(e){return 0!=(8&e.flags)}(t)&&E8(r,t,P(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function KE(e){return 0!=(16&e.flags)}(t)&&E8(r,t,P(),t.stylesWithoutHost,!1),v}function R(e,t,r,n){return p(e,t,r,n),v(),R}let _p=(e,t,r,n,i,a)=>(jn(!0),Ns(n,i,function E9(){return oe.lFrame.currentNamespace}()));function b1(){return P()}function Ci(e){return!!e&&"function"==typeof e.then}function yp(e){return!!e&&"function"==typeof e.subscribe}function O(e,t,r,n){const i=P(),a=xe(),s=o2();return function Hp(e,t,r,n,i,a,s){const c=os(n),l=e.firstCreatePass&&Uh(e),f=t[E1],d=Bh(t);let m=!0;if(3&n.type||s){const z=O2(n,t),L=s?s(z):z,T=d.length,D=s?j=>s(n1(j[n.index])):n.index;let U=null;if(!s&&c&&(U=function nk(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[i3],o=i[a+2];return c.length>o?c[o]:null}"string"==typeof s&&(a+=2)}return null}(e,t,i,n.index)),null!==U)(U.__ngLastListenerFn__||U).__ngNextListenerFn__=a,U.__ngLastListenerFn__=a,m=!1;else{a=Vp(n,t,f,a,!1);const j=r.listen(L,i,a);d.push(a,j),l&&l.push(i,D,T,T+1)}}else a=Vp(n,t,f,a,!1);const g=n.outputs;let w;if(m&&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),ie=d.length;d.push(a,q),l&&l.push(i,n.index,ie,-(ie+1))}}}(a,i,i[pe],s,e,t,n),O}function wp(e,t,r,n){try{return Kt(6,t,r),!1!==r(n)}catch(i){return Gh(e,i),!1}finally{Kt(7,t,r)}}function Vp(e,t,r,n,i){return function a(s){if(s===Function)return n;li(e.componentOffset>-1?Z2(e.index,t):t);let o=wp(t,r,n,s),l=a.__ngNextListenerFn__;for(;l;)o=wp(t,r,l,s)&&o,l=l.__ngNextListenerFn__;return i&&!1===o&&s.preventDefault(),o}}function x(e=1){return function FE(e){return(oe.lFrame.contextLView=function BE(e,t){for(;e>0;)t=t[s3],e--;return t}(e,oe.lFrame.contextLView))[E1]}(e)}function rk(e,t){let r=null;const n=function GA(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?Bu(e,a,!0):qA(n,a))return i}else r=i}return r}function W3(e){const t=P()[T1][m2];if(!t.projection){const n=t.projection=Qr(e?e.length:1,null),i=n.slice();let a=t.child;for(;null!==a;){const s=e?rk(a,e):0;null!==s&&(i[s]?i[s].projectionNext=a:n[s]=a,i[s]=a),a=a.next}}}function q3(e,t=0,r){const n=P(),i=xe(),a=O3(i,ze+e,16,null,r||null);null===a.projection&&(a.projection=t),c0(),(!n[hn]||u3())&&32!=(32&a.flags)&&function rI(e,t,r){Ld(t[pe],0,t,r,T0(e,r,t),Hd(r.parent||t[m2],r,t))}(i,n,a)}function O8(e,t,r){return K3(e,"",t,"",r),O8}function K3(e,t,r,n,i){const a=P(),s=k3(a,t,r,n);return s!==me&&X2(xe(),y1(),a,e,s,a[pe],i,!1),K3}function lc(e,t){return e<<17|t<<2}function $n(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 Tp(e,t,r,n,i){const a=e[r+1],s=null===t;let c=n?$n(a):_4(a),o=!1;for(;0!==c&&(!1===o||s);){const f=e[c+1];lk(e[c],t)&&(o=!0,e[c+1]=n?P8(f):R8(f)),c=n?$n(f):_4(f)}o&&(e[r+1]=n?R8(a):P8(a))}function lk(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&b3(e,t)>=0}const W1={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ip(e){return e.substring(W1.key,W1.keyEnd)}function Op(e,t){const r=W1.textEnd;return r===t?-1:(t=W1.keyEnd=function hk(e,t,r){for(;t<r&&e.charCodeAt(t)>32;)t++;return t}(e,W1.key=t,r),Y3(e,t,r))}function Y3(e,t,r){for(;t<r&&e.charCodeAt(t)<=32;)t++;return t}function De(e,t){return function Lt(e,t,r,n){const i=P(),a=xe(),s=mn(2);a.firstUpdatePass&&jp(a,e,s,n),t!==me&&v2(i,s,t)&&$p(a,a.data[b2()],i,i[pe],e,i[s+1]=function wk(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=G1(J2(e)))),e}(t,r),n,s)}(e,t,null,!0),De}function Mn(e){!function xt(e,t,r,n){const i=xe(),a=mn(2);i.firstUpdatePass&&jp(i,null,a,n);const s=P();if(r!==me&&v2(s,a,r)){const c=i.data[b2()];if(qp(c,n)&&!Up(i,a)){let o=n?c.classesWithoutHost:c.stylesWithoutHost;null!==o&&(r=T6(o,r||"")),E8(i,c,s,r,n)}else!function Hk(e,t,r,n,i,a,s,c){i===me&&(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 m=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,m!==g&&(w=d,z=g)):null===d||null!==f&&f<d?(o+=2,w=f):(l+=2,w=d,z=g),null!==w&&$p(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[pe],s[a+1],s[a+1]=function yk(e,t,r){if(null==r||""===r)return Te;const n=[],i=J2(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)}}(bk,tn,e,!0)}function tn(e,t){for(let r=function uk(e){return function kp(e){W1.key=0,W1.keyEnd=0,W1.value=0,W1.valueEnd=0,W1.textEnd=e.length}(e),Op(e,Y3(e,0,W1.textEnd))}(t);r>=0;r=Op(t,r))Q2(e,Ip(t),!0)}function Up(e,t){return t>=e.expandoStartIndex}function jp(e,t,r,n){const i=e.data;if(null===i[r+1]){const a=i[b2()],s=Up(e,r);qp(a,n)&&null===t&&!s&&(t=!1),t=function vk(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=Mi(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 _k(e,t,r){const n=r?t.classBindings:t.styleBindings;if(0!==_4(n))return e[$n(n)]}(e,t,n);void 0!==o&&Array.isArray(o)&&(o=F8(null,e,t,o[1],n),o=Mi(o,t.attrs,n),function Ck(e,t,r,n){e[$n(r?t.classBindings:t.styleBindings)]=n}(e,t,n,o))}else a=function Mk(e,t,r){let n;const i=t.directiveEnd;for(let a=1+t.directiveStylingLast;a<i;a++)n=Mi(n,e[a].hostAttrs,r);return Mi(n,t.attrs,r)}(e,t,n)}return void 0!==a&&(n?t.residualClasses=a:t.residualStyles=a),r}(i,a,t,n),function ck(e,t,r,n,i,a){let s=a?t.classBindings:t.styleBindings,c=$n(s),o=_4(s);e[n]=r;let f,l=!1;if(Array.isArray(r)?(f=r[1],(null===f||b3(r,f)>0)&&(l=!0)):f=r,i)if(0!==o){const m=$n(e[c+1]);e[n+1]=lc(m,c),0!==m&&(e[m+1]=k8(e[m+1],n)),e[c+1]=function ak(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])),Tp(e,f,n,!0),Tp(e,f,n,!1),function ok(e,t,r,n,i){const a=i?e.residualClasses:e.residualStyles;null!=a&&"string"==typeof t&&b3(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=Mi(n,a.hostAttrs,i),a!==e);)c++;return null!==e&&(r.directiveStylingLast=c),n}function Mi(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]),Q2(e,s,!!r||t[++a]))}return void 0===e?null:e}function bk(e,t,r){const n=String(t);""!==n&&!n.includes(" ")&&Q2(e,n,r)}function $p(e,t,r,n,i,a,s,c){if(!(3&t.type))return;const o=e.data,l=o[c+1],f=function sk(e){return 1==(1&e)}(l)?Wp(o,t,r,i,_4(l),s):void 0;fc(f)||(fc(a)||function ik(e){return 2==(2&e)}(l)&&(a=Wp(o,null,r,i,c,s)),function aI(e,t,r,n,i){if(t)i?e.addClass(r,n):e.removeClass(r,n);else{let a=-1===n.indexOf("-")?void 0:Gn.DashCase;null==i?e.removeStyle(r,n,a):("string"==typeof i&&i.endsWith("!important")&&(i=i.slice(0,-10),a|=Gn.Important),e.setStyle(r,n,i,a))}}(n,s,us(b2(),r),i,a))}function Wp(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 m=r[i+1];m===me&&(m=d?Te:void 0);let g=d?y0(m,n):f===n?m:void 0;if(l&&!fc(g)&&(g=y0(o,n)),fc(g)&&(c=g,s))return c;const w=e[i+1];i=s?$n(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 qp(e,t){return 0!=(e.flags&(t?8:16))}function M(e,t=""){const r=P(),n=xe(),i=e+ze,a=n.firstCreatePass?O3(n,i,1,t,null):n.data[i],s=Kp(n,r,a,t,e);r[i]=s,ds()&&Ts(n,r,s,a),Yt(a,!1)}let Kp=(e,t,r,n,i)=>(jn(!0),function xs(e,t){return e.createText(t)}(t[pe],n));function B2(e){return w2("",e,""),B2}function w2(e,t,r){const n=P(),i=k3(n,e,t,r);return i!==me&&Cn(n,b2(),i),w2}function Z3(e,t,r,n,i){const a=P(),s=P3(a,e,t,r,n,i);return s!==me&&Cn(a,b2(),s),Z3}function V2(e,t,r){const n=P();return v2(n,d3(),t)&&X2(xe(),y1(),n,e,t,n[pe],r,!0),V2}const J3="en-US";let pm=J3;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=o2();let o=g4(e)?e:fe(e.provide);const l=Jd(e),f=1048575&c.providerIndexes,d=c.directiveStart,m=c.providerIndexes>>20;if(g4(e)||!e.multi){const g=new Wr(l,i,H),w=$8(o,t,i?f:f+m,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+m,d),w=$8(o,t,f,f+m),L=w>=0&&r[w];if(i&&!L||!i&&!(g>=0&&r[g])){_0(vs(c,s),a,o);const T=function GP(e,t,r,n,i){const a=new Wr(e,r,H);return a.multi=[],a.index=t,a.componentProviders=0,Pm(a,i,n&&!r),a}(i?jP:UP,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,Pm(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 RI(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 Pm(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 UP(e,t,r,n){return W8(this.multi,[])}function jP(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 Ze(e,t=[]){return r=>{r.providersResolver=(n,i)=>function BP(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 Fm{}class q8 extends M4{constructor(t,r,n){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Qh(this);const i=Y2(t);this._bootstrapComponents=_n(i.bootstrap),this._r3Injector=fh(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 Fm{constructor(t){super(),this.moduleType=t}create(t){return new q8(this.moduleType,t,[])}}class Bm extends M4{constructor(t){super(),this.componentFactoryResolver=new Qh(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 Bm({providers:e,parent:t,debugName:r,runEnvironmentInitializers:!0}).injector}let qP=(()=>{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=Kd(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(P2))}),t})();function S2(e){e.getStandaloneInjector=t=>t.get(qP).getOrCreateStandaloneInjector(e)}function Di(e,t,r,n,i){return function Ym(e,t,r,n,i,a,s){const c=t+r;return v4(e,c,i,a)?function Xt(e,t,r){return e[t]=r}(e,c+2,s?n.call(s,i,a):n(i,a)):function Li(e,t){const r=e[t];return r===me?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 gF(){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]=gF)}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 pt(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function oT(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 _F(e,t,r,n=!0){const i=t[Z];if(function QT(e,t,r,n){const i=s2+n,a=r.length;n>0&&(r[i-1][St]=t),n<a-s2?(t[St]=r[i],K9(r,s2+n,t)):(r.push(t),t[St]=null),t[m1]=r;const s=t[Pr];null!==s&&r!==s&&function JT(e,t){const r=e[o3];t[T1]!==t[m1][m1][T1]&&(e[Ku]=!0),null===r?e[o3]=[t]:r.push(t)}(s,t);const c=t[Wt];null!==c&&c.insertView(e),t[ve]|=128}(i,t,e,r),n){const a=O0(r,e),s=t[pe],c=Es(s,e[qt]);null!==c&&function KT(e,t,r,n,i,a){n[D1]=i,n[m2]=t,ni(e,n,r,1,i,a)}(i,e[m2],s,t,c,a)}}let c1=(()=>{class t{}return t.__NG_ELEMENT_ID__=yF,t})();const CF=c1,MF=class extends CF{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 vF(e,t,r,n){const i=t.tView,c=Xs(e,i,r,4096&e[ve]?4096:16,null,t,null,null,null,n?.injector??null,n?.hydrationInfo??null);c[Pr]=e[t.index];const l=e[Wt];return null!==l&&(c[Wt]=l.createEmbeddedView(i)),z8(i,c,r),c}(this._declarationLView,this._declarationTContainer,t,{injector:r,hydrationInfo:n});return new di(i)}};function yF(){return mc(o2(),P())}function mc(e,t){return 4&e.type?new MF(t,e,E3(e,t)):null}let j2=(()=>{class t{}return t.__NG_ELEMENT_ID__=SF,t})();function SF(){return ag(o2(),P())}const DF=j2,rg=class extends DF{constructor(t,r,n){super(),this._lContainer=t,this._hostTNode=r,this._hostLView=n}get element(){return E3(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=Kr(t,this._hostLView),n=qr(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=ig(this._lContainer);return null!==r&&r[t]||null}get length(){return this._lContainer.length-s2}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 Zr(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 hi(Le(t)),l=n||this.parentInjector;if(!a&&null==o.ngModule){const L=(s?l:this.parentInjector).get(P2,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 wE(e){return M2(e[m1])}(i)){const o=this.indexOf(t);if(-1!==o)this.detach(o);else{const l=i[m1],f=new rg(l,l[m2],l[m1]);f.detach(f.indexOf(t))}}const s=this._adjustIndex(r),c=this._lContainer;return _F(c,i,s,!n),t.attachToViewContainerRef(),K9(X8(c),s,t),t}move(t,r){return this.insert(t,r)}indexOf(t){const r=ig(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 di(n):null}_adjustIndex(t,r=0){return t??this.length+r}};function ig(e){return e[8]}function X8(e){return e[8]||(e[8]=[])}function ag(e,t){let r;const n=t[e.index];return M2(n)?r=n:(r=Ph(n,t,null,e),t[e.index]=r,ec(t,r)),sg(r,t,e,n),new rg(r,e,t)}let sg=function cg(e,t,r,n){if(e[qt])return;let i;i=8&r.type?n1(n):function LF(e,t){const r=e[pe],n=r.createComment(""),i=O2(t,e);return p4(r,Es(r,i),n,function nI(e,t){return e.nextSibling(t)}(r,i),!1),n}(t,r),e[qt]=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!==dg(t,r).matches&&this.queries[r].setDirty()}}class og{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,AF(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===j2||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 AF(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 TF(e,t,r,n){return-1===r?function EF(e,t){return 11&e.type?E3(e,t):4&e.type?mc(e,t):null}(t,e):-2===r?function IF(e,t,r){return r===Ne?E3(t,e):r===c1?mc(t,e):r===j2?ag(t,e):void 0}(e,t,n):d4(e,e[Z],r,t)}function lg(e,t,r,n){const i=t[Wt].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:TF(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=lg(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=s2;d<f.length;d++){const m=f[d];m[Pr]===m[m1]&&il(m[Z],m,l,n)}if(null!==f[o3]){const d=f[o3];for(let m=0;m<d.length;m++){const g=d[m];il(g[Z],g,l,n)}}}}}return n}function je(e){const t=P(),r=xe(),n=S9();f0(n+1);const i=dg(r,n);if(e.dirty&&function bE(e){return 4==(4&e[ve])}(t)===(2==(2&i.metadata.flags))){if(null===i.matches)e.reset([]);else{const a=i.crossesNgTemplate?il(r,t,n,[]):lg(r,t,i,n);e.reset(a,iO),e.notifyOnChanges()}return!0}return!1}function H1(e,t,r,n){const i=xe();if(i.firstCreatePass){const a=o2();ug(i,new og(t,r,n),a.index),function RF(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)}fg(i,P(),r)}function Ge(){return function OF(e,t){return e[Wt].queries[t].queryList}(P(),S9())}function fg(e,t,r){const n=new J8(4==(4&r));(function RO(e,t,r,n){const i=Bh(t);i.push(r),e.firstCreatePass&&Uh(e).push(n,i.length-1)})(e,t,n,n.destroy),null===t[Wt]&&(t[Wt]=new tl),t[Wt].queries.push(new el(n))}function ug(e,t,r){null===e.queries&&(e.queries=new nl),e.queries.track(new rl(t,r))}function dg(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(Ci(s))n.push(s);else if(yp(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})(),Lg=(()=>{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 Nt=new te("LocaleId",{providedIn:"root",factory:()=>J(Nt,Ve.Optional|Ve.SkipSelf)||function iB(){return typeof $localize<"u"&&$localize.locale||J3}()});let xg=(()=>{var e;class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ut(!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 cB{constructor(t,r){this.ngModuleFactory=t,this.componentFactories=r}}let Ng=(()=>{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=_n(Y2(n).declarations).reduce((c,o)=>{const l=Le(o);return l&&c.push(new hi(l)),c},[]);return new cB(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 Ig=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 SB(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})(),Wn=null;const Og=new te("AllowMultipleToken"),vl=new te("PlatformDestroyListeners"),_l=new te("appBootstrapListener");class kg{constructor(t,r){this.name=t,this.token=r}}function Fg(e,t,r=[]){const n=`Platform: ${t}`,i=new te(n);return(a=[])=>{let s=Cl();if(!s||s.injector.get(Og,!1)){const c=[...r,...a,{provide:i,useValue:!0}];e?e(c):function xB(e){if(Wn&&!Wn.get(Og,!1))throw new F(400,!1);(function Rg(){!function lE(e){s9=e}(()=>{throw new F(600,!1)})})(),Wn=e;const t=e.get(Ug);(function Pg(e){e.get(Xd,null)?.forEach(r=>r())})(e)}(function Bg(e=[],t){return B1.create({name:t,providers:[{provide:q0,useValue:"platform"},{provide:vl,useValue:new Set([()=>Wn=null])},...e]})}(c,n))}return function AB(e){const t=Cl();if(!t)throw new F(401,!1);return t}()}}function Cl(){return Wn?.get(Ug)??null}let Ug=(()=>{var e;class t{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,i){const a=function EB(e="zone.js",t){return"noop"===e?new CO:"zone.js"===e?new ye(t):e}(i?.ngZone,function jg(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return a.run(()=>{const s=function WP(e,t,r){return new q8(e,t,r)}(n.moduleType,this.injector,function Kg(e){return[{provide:ye,useFactory:e},{provide:ai,multi:!0,useFactory:()=>{const t=J(IB,{optional:!0});return()=>t.initialize()}},{provide:qg,useFactory:TB},{provide:mh,useFactory:gh}]}(()=>a)),c=s.injector.get(vn,null);return a.runOutsideAngular(()=>{const o=a.onError.subscribe({next:l=>{c.handleError(l)}});s.onDestroy(()=>{Mc(this._modules,s),o.unsubscribe()})}),function Gg(e,t,r){try{const n=r();return Ci(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 mm(e){dt(e,"Expected localeId to be defined"),"string"==typeof e&&(pm=e.toLowerCase().replace(/_/g,"-"))}(s.injector.get(Nt,J3)||J3),this._moduleDoBootstrap(s),s))})})}bootstrapModule(n,i=[]){const a=$g({},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(nn);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 $g(e,t){return Array.isArray(t)?t.reduce($g,e):{...e,...t}}let nn=(()=>{var e;class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=J(qg),this.zoneIsStable=J(mh),this.componentTypes=[],this.components=[],this.isStable=J(xg).hasPendingTasks.pipe(wt(n=>n?ae(!1):this.zoneIsStable),function wu(e,t=Ht){return e=e??yA,d1((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(P2)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,i){const a=n instanceof ih;if(!this._injector.get(ul).done)throw!a&&function r3(e){const t=Le(e)||a2(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 LB(e){return e.isBoundToModule}(c)?void 0:this._injector.get(M4),f=c.create(B1.NULL,[],i||c.selector,o),d=f.location.nativeElement,m=f.injector.get(Ig,null);return m?.registerApplication(d),f.onDestroy(()=>{this.detachView(f.hostView),Mc(this.components,f),m?.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 qg=new te("",{providedIn:"root",factory:()=>J(vn).handleError.bind(void 0)});function TB(){const e=J(ye),t=J(vn);return r=>e.runOutsideAngular(()=>t.handleError(r))}let IB=(()=>{var e;class t{constructor(){this.zone=J(ye),this.applicationRef=J(nn)}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__=RB,t})();function RB(e){return function kB(e,t,r){if(l4(e)&&!r){const n=Z2(e.index,t);return new di(n,n)}return 47&e.type?new di(t[T1],t):null}(o2(),P(),16==(16&e))}class Jg{constructor(){}supports(t){return ic(t)}create(t){return new GB(t)}}const jB=(e,t)=>t;class GB{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||jB}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<ev(n,i,a)?r:n,c=ev(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 m=0;m<l;m++){const g=m<a.length?a[m]:a[m]=0,w=g+m;f<=w&&w<l&&(a[m]=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 $B(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 Xg),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 Xg),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 $B{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 WB{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 Xg{constructor(){this.map=new Map}put(t){const r=t.trackById;let n=this.map.get(r);n||(n=new WB,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 ev(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 nv(){return new Hc([new Jg])}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||nv()),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:nv}),t})();const QB=Fg(null,"core",[]);let JB=(()=>{var e;class t{constructor(n){}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(nn))},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})();function tr(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function Vl(e,t){const r=Le(e),n=t.elementInjector||Us();return new hi(r).create(n,t.projectableNodes,t.hostElement,t.environmentInjector)}let zl=null;function qn(){return zl}class dU{}const w1=new te("DocumentToken");let Sl=(()=>{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(pU)},providedIn:"platform"}),t})();const hU=new te("Location Initialized");let pU=(()=>{var e;class t extends Sl{constructor(){super(),this._doc=J(w1),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return qn().getBaseHref(this._doc)}onPopState(n){const i=qn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",n,!1),()=>i.removeEventListener("popstate",n)}onHashChange(n){const i=qn().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 Dl(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 dv(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 yn(e){return e&&"?"!==e[0]?"?"+e:e}let Kn=(()=>{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(pv)},providedIn:"root"}),t})();const hv=new te("appBaseHref");let pv=(()=>{var e;class t extends Kn{constructor(n,i){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??J(w1).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 Dl(this._baseHref,n)}path(n=!1){const i=this._platformLocation.pathname+yn(this._platformLocation.search),a=this._platformLocation.hash;return a&&n?`${i}${a}`:i}pushState(n,i,a,s){const c=this.prepareExternalUrl(a+yn(s));this._platformLocation.pushState(n,i,c)}replaceState(n,i,a,s){const c=this.prepareExternalUrl(a+yn(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(Sl),Y(hv,8))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),mv=(()=>{var e;class t extends Kn{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=Dl(this._baseHref,n);return i.length>0?"#"+i:i}pushState(n,i,a,s){let c=this.prepareExternalUrl(a+yn(s));0==c.length&&(c=this._platformLocation.pathname),this._platformLocation.pushState(n,i,c)}replaceState(n,i,a,s){let c=this.prepareExternalUrl(a+yn(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(Sl),Y(hv,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 vU(e){if(new RegExp("^(https?:)?//").test(e)){const[,r]=e.split(/\/\/[^\/]+/);return r}return e}(dv(gv(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+yn(i))}normalize(n){return t.stripTrailingSlash(function gU(e,t){if(!e||!t.startsWith(e))return t;const r=t.substring(e.length);return""===r||["/",";","?","#"].includes(r[0])?r:t}(this._basePath,gv(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+yn(i)),a)}replaceState(n,i="",a=null){this._locationStrategy.replaceState(a,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+yn(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=yn,e.joinWithSlash=Dl,e.stripTrailingSlash=dv,e.\u0275fac=function(n){return new(n||e)(Y(Kn))},e.\u0275prov=K({token:e,factory:function(){return function mU(){return new Ll(Y(Kn))}()},providedIn:"root"}),t})();function gv(e){return e.replace(/\/index.html$/,"")}class tj{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 nt=(()=>{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 tj(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),Lv(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=>{Lv(i.get(a.currentIndex),a)})}static ngTemplateContextGuard(n,i){return!0}}return(e=t).\u0275fac=function(n){return new(n||e)(H(j2),H(c1),H(Hc))},e.\u0275dir=W({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function Lv(e,t){e.context.$implicit=t.item}let L1=(()=>{var e;class t{constructor(n,i){this._viewContainer=n,this._context=new nj,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){xv("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){xv("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(j2),H(c1))},e.\u0275dir=W({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class nj{constructor(){this.$implicit=null,this.ngIf=null}}function xv(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(j2))},e.\u0275dir=W({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[M1]}),t})(),Lj=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})();function Tv(e){return"server"===e}let Ej=(()=>{var e;class t{}return(e=t).\u0275prov=K({token:e,providedIn:"root",factory:()=>new Tj(Y(w1),window)}),t})();class Tj{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 Ij(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 aG extends dU{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class ql extends aG{static makeCurrent(){!function uU(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 sG(){return Ri=Ri||document.querySelector("base"),Ri?Ri.getAttribute("href"):null}();return null==r?null:function cG(e){Rc=Rc||document.createElement("a"),Rc.setAttribute("href",e);const t=Rc.pathname;return"/"===t.charAt(0)?t:`/${t}`}(r)}resetBaseElement(){Ri=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function JU(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,Ri=null,lG=(()=>{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 Pv=(()=>{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 Fv{constructor(t){this._doc=t}}const Yl="ng-app-id";let Bv=(()=>{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=Tv(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(w1),Y(Gs),Y(eh,8),Y(x3))},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,hG=new te("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function jv(e,t){return t.map(r=>r.replace(Ql,e))}let Gv=(()=>{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=Tv(o),this.defaultRenderer=new Jl(n,c,l,this.platformIsServer)}createRenderer(n,i){if(!n||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Vt.ShadowDom&&(i={...i,encapsulation:Vt.Emulated});const a=this.getOrCreateRenderer(n,i);return a instanceof Wv?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,m=this.platformIsServer;switch(i.encapsulation){case Vt.Emulated:s=new Wv(l,f,i,this.appId,d,c,o,m);break;case Vt.ShadowDom:return new vG(l,f,n,i,c,o,this.nonce,m);default:s=new Xl(l,f,i,d,c,o,m)}a.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(Pv),Y(Bv),Y(Gs),Y(hG),Y(w1),Y(x3),Y(ye),Y(eh))},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){($v(t)?t.content:t).appendChild(r)}insertBefore(t,r,n){t&&($v(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&(Gn.DashCase|Gn.Important)?t.style.setProperty(r,n,i&Gn.Important?"important":""):t.style[r]=n}removeStyle(t,r,n){n&Gn.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=qn().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 $v(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class vG 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=jv(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?jv(o,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class Wv 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 pG(e){return"_ngcontent-%COMP%".replace(Ql,e)}(l),this.hostAttr=function mG(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 _G=(()=>{var e;class t extends Fv{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(w1))},e.\u0275prov=K({token:e,factory:e.\u0275fac}),t})();const qv=["alt","control","meta","shift"],CG={"\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"},MG={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let yG=(()=>{var e;class t extends Fv{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(()=>qn().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."),qv.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=CG[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"),qv.forEach(c=>{c!==a&&(0,MG[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(w1))},e.\u0275prov=K({token:e,factory:e.\u0275fac}),t})();const VG=Fg(QB,"browser",[{provide:x3,useValue:"browser"},{provide:Xd,useValue:function bG(){ql.makeCurrent()},multi:!0},{provide:w1,useFactory:function wG(){return function fI(e){P0=e}(document),document},deps:[]}]),zG=new te(""),Zv=[{provide:Cc,useClass:class oG{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?qn().isShadowRoot(r)?this.findTestabilityInTree(t,r.host,!0):this.findTestabilityInTree(t,r.parentElement,!0):null)}},deps:[]},{provide:Ig,useClass:pl,deps:[ye,ml,Cc]},{provide:pl,useClass:pl,deps:[ye,ml,Cc]}],Qv=[{provide:q0,useValue:"root"},{provide:vn,useFactory:function HG(){return new vn},deps:[]},{provide:Kl,useClass:_G,multi:!0,deps:[w1,ye,x3]},{provide:Kl,useClass:yG,multi:!0,deps:[w1]},Gv,Bv,Pv,{provide:c8,useExisting:Gv},{provide:class Oj{},useClass:lG,deps:[]},[]];let SG=(()=>{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(zG,12))},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({providers:[...Qv,...Zv],imports:[Lj,JB]}),t})(),Jv=(()=>{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(w1))},e.\u0275prov=K({token:e,factory:function(n){let i=null;return i=n?new n:function LG(){return new Jv(Y(w1))}(),i},providedIn:"root"}),t})();typeof window<"u"&&window;let t_=(()=>{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(n_),i},providedIn:"root"}),t})(),n_=(()=>{var e;class t extends t_{constructor(n){super(),this._doc=n}sanitize(n,i){if(null==i)return null;switch(n){case mt.NONE:return i;case mt.HTML:return Qt(i,"HTML")?J2(i):Bd(this._doc,String(i)).toString();case mt.STYLE:return Qt(i,"Style")?J2(i):i;case mt.SCRIPT:if(Qt(i,"Script"))return J2(i);throw new F(5200,!1);case mt.URL:return Qt(i,"URL")?J2(i):ks(String(i));case mt.RESOURCE_URL:if(Qt(i,"ResourceURL"))return J2(i);throw new F(5201,!1);default:throw new F(5202,!1)}}bypassSecurityTrustHtml(n){return function vI(e){return new uI(e)}(n)}bypassSecurityTrustStyle(n){return function _I(e){return new dI(e)}(n)}bypassSecurityTrustScript(n){return function CI(e){return new hI(e)}(n)}bypassSecurityTrustUrl(n){return function MI(e){return new pI(e)}(n)}bypassSecurityTrustResourceUrl(n){return function yI(e){return new mI(e)}(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(w1))},e.\u0275prov=K({token:e,factory:function(n){let i=null;return i=n?new n:function EG(e){return new n_(e.get(w1))}(Y(B1)),i},providedIn:"root"}),t})();function ki(e){return(ki="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 IG(e){var t=function TG(e,t){if("object"!==ki(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==ki(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ki(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:OG}=Array,{getPrototypeOf:RG,prototype:kG,keys:PG}=Object;function i_(e){if(1===e.length){const t=e[0];if(OG(t))return{args:t,keys:null};if(function FG(e){return e&&"object"==typeof e&&RG(e)===kG}(t)){const r=PG(t);return{args:r.map(n=>t[n]),keys:r}}}return{args:e,keys:null}}const{isArray:BG}=Array;function t5(e){return we(t=>function UG(e,t){return BG(t)?e(...t):e(t)}(e,t))}function a_(e,t){return e.reduce((r,n,i)=>(r[n]=t[i],r),{})}let s_=(()=>{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(l2),H(Ne))},e.\u0275dir=W({type:e}),t})(),w4=(()=>{var e;class t extends s_{}return(e=t).\u0275fac=function(){let r;return function(i){return(r||(r=I1(e)))(i||e)}}(),e.\u0275dir=W({type:e,features:[re]}),t})();const Ct=new te("NgValueAccessor"),GG={provide:Ct,useExisting:ge(()=>X1),multi:!0};let X1=(()=>{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&&O("change",function(s){return i.onChange(s.target.checked)})("blur",function(){return i.onTouched()})},features:[Ze([GG]),re]}),t})();const $G={provide:Ct,useExisting:ge(()=>wn),multi:!0},qG=new te("CompositionEventMode");let wn=(()=>{var e;class t extends s_{constructor(n,i,a){super(n,i),this._compositionMode=a,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function WG(){const e=qn()?qn().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(l2),H(Ne),H(qG,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&&O("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:[Ze([$G]),re]}),t})();function Zn(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}const f2=new te("NgValidators"),Qn=new te("NgAsyncValidators"),KG=/^(?=.{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 d_(e){return Zn(e.value)||KG.test(e.value)?null:{email:!0}}function kc(e){return null}function g_(e){return null!=e}function v_(e){return Ci(e)?Q1(e):e}function __(e){let t={};return e.forEach(r=>{t=null!=r?{...t,...r}:t}),0===Object.keys(t).length?null:t}function C_(e,t){return t.map(r=>r(e))}function M_(e){return e.map(t=>function YG(e){return!e.validate}(t)?t:r=>t.validate(r))}function n5(e){return null!=e?function y_(e){if(!e)return null;const t=e.filter(g_);return 0==t.length?null:function(r){return __(C_(r,t))}}(M_(e)):null}function r5(e){return null!=e?function b_(e){if(!e)return null;const t=e.filter(g_);return 0==t.length?null:function(r){return function jG(...e){const t=Za(e),{args:r,keys:n}=i_(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,m=>{d||(d=!0,l--),c[f]=m},()=>o--,void 0,()=>{(!o||!d)&&(l||a.next(n?a_(n,c):c),a.complete())}))}});return t?i.pipe(t5(t)):i}(C_(r,t).map(v_)).pipe(we(__))}}(M_(e)):null}function H_(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 z_(e,t){const r=i5(t);return i5(e).forEach(i=>{Pc(r,i)||r.push(i)}),r}function S_(e,t){return i5(t).filter(r=>!Pc(e,r))}class D_{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 x2 extends D_{get formDirective(){return null}get path(){return null}}class Jn extends D_{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class L_{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 g1=(()=>{var e;class t extends L_{constructor(n){super(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(H(Jn,2))},e.\u0275dir=W({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,i){2&n&&De("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:[re]}),t})();const Pi="VALID",Bc="INVALID",rr="PENDING",Fi="DISABLED";function Uc(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class E_{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===Pi}get invalid(){return this.status===Bc}get pending(){return this.status==rr}get disabled(){return this.status===Fi}get enabled(){return this.status!==Fi}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(z_(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(z_(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(S_(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(S_(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=rr,!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=Fi,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=Pi,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===Pi||this.status===rr)&&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()?Fi:Pi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=rr,this._hasOwnPendingAsyncValidator=!0;const r=v_(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()?Fi:this.errors?Bc:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(rr)?rr:this._anyControlsHaveStatus(Bc)?Bc:Pi}_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 e$(e){return Array.isArray(e)?n5(e):e||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function t$(e){return Array.isArray(e)?r5(e):e||null}(this._rawAsyncValidators)}}const ir=new te("CallSetDisabledState",{providedIn:"root",factory:()=>jc}),jc="always";function Bi(e,t,r=jc){(function f5(e,t){const r=function w_(e){return e._rawValidators}(e);null!==t.validator?e.setValidators(H_(r,t.validator)):"function"==typeof r&&e.setValidators([r]);const n=function V_(e){return e._rawAsyncValidators}(e);null!==t.asyncValidator?e.setAsyncValidators(H_(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 i$(e,t){t.valueAccessor.registerOnChange(r=>{e._pendingValue=r,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&T_(e,t)})}(e,t),function s$(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 a$(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&T_(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function r$(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 T_(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function R_(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}function k_(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const P_=class extends E_{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=k_(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){R_(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){R_(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){k_(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}},p$={provide:Jn,useExisting:ge(()=>o1)},U_=(()=>Promise.resolve())();let o1=(()=>{var e;class t extends Jn{constructor(n,i,a,s,c,o){super(),this._changeDetectorRef=c,this.callSetDisabledState=o,this.control=new P_,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===wn?r=a:function l$(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(){Bi(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){U_.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){const i=n.isDisabled.currentValue,a=0!==i&&tr(i);U_.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(x2,9),H(f2,10),H(Qn,10),H(Ct,10),H(et,8),H(ir,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:[Ze([p$]),re,M1]}),t})();const g$={provide:Ct,useExisting:ge(()=>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&&O("input",function(s){return i.onChange(s.target.value)})("blur",function(){return i.onTouched()})},features:[Ze([g$]),re]}),t})(),j_=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})();const V$={provide:Ct,useExisting:ge(()=>Vn),multi:!0};function Z_(e,t){return null==e?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let Vn=(()=>{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=Z_(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 z$(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&&O("change",function(s){return i.onChange(s.target.value)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[Ze([V$]),re]}),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(Z_(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(l2),H(Vn,9))},e.\u0275dir=W({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const S$={provide:Ct,useExisting:ge(()=>_5),multi:!0};function Q_(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&&O("change",function(s){return i.onChange(s.target)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[Ze([S$]),re]}),t})(),S4=(()=>{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(Q_(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(Q_(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(l2),H(_5,9))},e.\u0275dir=W({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();function X_(e){return"number"==typeof e?e:parseFloat(e)}let D4=(()=>{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:[M1]}),t})();const L$={provide:f2,useExisting:ge(()=>C5),multi:!0};let C5=(()=>{var e;class t extends D4{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=n=>X_(n),this.createValidator=n=>function l_(e){return t=>{if(Zn(t.value)||Zn(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&&B("max",i._enabled?i.max:null)},inputs:{max:"max"},features:[Ze([L$]),re]}),t})();const x$={provide:f2,useExisting:ge(()=>M5),multi:!0};let M5=(()=>{var e;class t extends D4{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=n=>X_(n),this.createValidator=n=>function o_(e){return t=>{if(Zn(t.value)||Zn(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&&B("min",i._enabled?i.min:null)},inputs:{min:"min"},features:[Ze([x$]),re]}),t})();const E$={provide:f2,useExisting:ge(()=>b5),multi:!0};let b5=(()=>{var e;class t extends D4{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=tr,this.createValidator=n=>d_}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:[Ze([E$]),re]}),t})(),R$=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({imports:[j_]}),t})(),P$=(()=>{var e;class t{static withConfig(n){return{ngModule:t,providers:[{provide:ir,useValue:n.callSetDisabledState??jc}]}}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({imports:[R$]}),t})();const F$=["addListener","removeListener"],B$=["addEventListener","removeEventListener"],U$=["on","off"];function e2(e,t,r,n){if(Q(r)&&(n=r,r=void 0),n)return e2(e,t,r).pipe(t5(n));const[i,a]=function $$(e){return Q(e.addEventListener)&&Q(e.removeEventListener)}(e)?B$.map(s=>c=>e[s](t,c,r)):function j$(e){return Q(e.addListener)&&Q(e.removeListener)}(e)?F$.map(iC(e,t)):function G$(e){return Q(e.on)&&Q(e.off)}(e)?U$.map(iC(e,t)):[];if(!i&&L6(e))return F1(s=>e2(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 iC(e,t){return r=>n=>e[r](t,n)}class W$ extends Se{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},aC={now:()=>(aC.delegate||Date).now(),delegate:void 0};class ji{constructor(t,r=ji.now){this.schedulerActionCtor=t,this.now=r}schedule(t,r=0,n){return new this.schedulerActionCtor(this,t).schedule(n,r)}}ji.now=aC.now;const sC=new class K$ extends ji{constructor(t,r=ji.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 q$ extends W${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()}}}),Y$=sC;function cC(e=0,t,r=Y$){let n=-1;return null!=t&&(Mu(t)?r=t:n=t),new We(i=>{let a=function Z$(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:Q$}=Array;function oC(e){return 1===e.length&&Q$(e[0])?e[0]:e}function lC(...e){return 1===(e=oC(e)).length?j1(e[0]):new We(function J$(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=oC(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}}):ft}function Gi(...e){return function X$(){return t3(1)}()(Q1(e,Ar(e)))}function R1(e){return d1((t,r)=>{j1(e).subscribe(qe(r,()=>r.complete(),Z1)),!r.closed&&t.subscribe(r)})}function N1(e,t){return d1((r,n)=>{let i=0;r.subscribe(qe(n,a=>e.call(t,a,i++)&&n.next(a)))})}function t2(e){return e<=0?()=>ft:d1((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?d1((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)}))}):Ht}function w5(...e){const t=Za(e);return d1((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(Ht))&&(s=null))},Z1));r.subscribe(qe(n,o=>{if(c){const l=[o,...a];n.next(t?t(...l):l)}}))})}function fC(e){return we(()=>e)}function uC(e,t){return t?r=>Gi(t.pipe(t2(1),function tW(){return d1((e,t)=>{e.subscribe(qe(t,Z1))})}()),r.pipe(uC(e))):F1((r,n)=>j1(e(r,n)).pipe(t2(1),fC(r)))}function dC(e,t=sC){const r=cC(e,t);return uC(()=>r)}var rW={left:"right",right:"left",bottom:"top",top:"bottom"};function Yc(e){return e.replace(/left|right|bottom|top/g,function(t){return rW[t]})}function rn(e){return e.split("-")[0]}var iW={start:"end",end:"start"};function pC(e){return e.replace(/start|end/g,function(t){return iW[t]})}var rt="top",Tt="bottom",It="right",it="left",V5="auto",$i=[rt,Tt,It,it],ar="start",Wi="end",mC="viewport",qi="popper",gC=$i.reduce(function(e,t){return e.concat([t+"-"+ar,t+"-"+Wi])},[]),vC=[].concat($i,[V5]).reduce(function(e,t){return e.concat([t,t+"-"+ar,t+"-"+Wi])},[]),gW=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function at(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 at(e).Element||e instanceof Element}function Mt(e){return e instanceof at(e).HTMLElement||e instanceof HTMLElement}function z5(e){return!(typeof ShadowRoot>"u")&&(e instanceof at(e).ShadowRoot||e instanceof ShadowRoot)}function Xn(e){return((L4(e)?e.ownerDocument:e.document)||window.document).documentElement}var x4=Math.max,Zc=Math.min,sr=Math.round;function S5(){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 _C(){return!/^((?!chrome|android).)*safari/i.test(S5())}function cr(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),i=1,a=1;t&&Mt(e)&&(i=e.offsetWidth>0&&sr(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&sr(n.height)/e.offsetHeight||1);var c=(L4(e)?at(e):window).visualViewport,o=!_C()&&r,l=(n.left+(o&&c?c.offsetLeft:0))/i,f=(n.top+(o&&c?c.offsetTop:0))/a,d=n.width/i,m=n.height/a;return{width:d,height:m,top:f,right:l+d,bottom:f+m,left:l,x:l,y:f}}function D5(e){var t=at(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function L5(e){return cr(Xn(e)).left+D5(e).scrollLeft}function zn(e){return at(e).getComputedStyle(e)}function an(e){return e?(e.nodeName||"").toLowerCase():null}function Qc(e){return"html"===an(e)?e:e.assignedSlot||e.parentNode||(z5(e)?e.host:null)||Xn(e)}function x5(e){var t=zn(e);return/auto|scroll|overlay|hidden/.test(t.overflow+t.overflowY+t.overflowX)}function CC(e){return["html","body","#document"].indexOf(an(e))>=0?e.ownerDocument.body:Mt(e)&&x5(e)?e:CC(Qc(e))}function Ki(e,t){var r;void 0===t&&(t=[]);var n=CC(e),i=n===(null==(r=e.ownerDocument)?void 0:r.body),a=at(n),s=i?[a].concat(a.visualViewport||[],x5(n)?n:[]):n,c=t.concat(s);return i?c:c.concat(Ki(Qc(s)))}function CW(e){return["table","td","th"].indexOf(an(e))>=0}function MC(e){return Mt(e)&&"fixed"!==zn(e).position?e.offsetParent:null}function Yi(e){for(var t=at(e),r=MC(e);r&&CW(r)&&"static"===zn(r).position;)r=MC(r);return r&&("html"===an(r)||"body"===an(r)&&"static"===zn(r).position)?t:r||function MW(e){var t=/firefox/i.test(S5());if(/Trident/i.test(S5())&&Mt(e)&&"fixed"===zn(e).position)return null;var i=Qc(e);for(z5(i)&&(i=i.host);Mt(i)&&["html","body"].indexOf(an(i))<0;){var a=zn(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 yC(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 bC(e,t,r){return t===mC?N5(function vW(e,t){var r=at(e),n=Xn(e),i=r.visualViewport,a=n.clientWidth,s=n.clientHeight,c=0,o=0;if(i){a=i.width,s=i.height;var l=_C();(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 yW(e,t){var r=cr(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 _W(e){var t,r=Xn(e),n=D5(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"===zn(i||r).direction&&(c+=x4(r.clientWidth,i?i.clientWidth:0)-a),{width:a,height:s,x:c,y:o}}(Xn(e)))}function or(e){return e.split("-")[1]}function A5(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function HC(e){var o,t=e.reference,r=e.element,n=e.placement,i=n?rn(n):null,a=n?or(n):null,s=t.x+t.width/2-r.width/2,c=t.y+t.height/2-r.height/2;switch(i){case rt: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 it: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 ar:o[l]=o[l]-(t[f]/2-r[f]/2);break;case Wi:o[l]=o[l]+(t[f]/2-r[f]/2)}}return o}function VC(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function zC(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?mC:l,d=t.elementContext,m=void 0===d?qi:d,g=t.altBoundary,w=void 0!==g&&g,z=t.padding,L=void 0===z?0:z,T=VC("number"!=typeof L?L:zC(L,$i)),U=e.rects.popper,j=e.elements[w?m===qi?"reference":qi:m],q=function HW(e,t,r,n){var i="clippingParents"===t?function bW(e){var t=Ki(Qc(e)),n=["absolute","fixed"].indexOf(zn(e).position)>=0&&Mt(e)?Yi(e):e;return L4(n)?t.filter(function(i){return L4(i)&&yC(i,n)&&"body"!==an(i)}):[]}(e):[].concat(t),a=[].concat(i,[r]),c=a.reduce(function(o,l){var f=bC(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},bC(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(j)?j:j.contextElement||Xn(e.elements.popper),o,f,s),ie=cr(e.elements.reference),_e=HC({reference:ie,element:U,strategy:"absolute",placement:i}),He=N5(Object.assign({},U,_e)),ke=m===qi?He:ie,V1={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},n2=e.modifiersData.offset;if(m===qi&&n2){var Bt=n2[i];Object.keys(V1).forEach(function(A2){var W4=[It,Tt].indexOf(A2)>=0?1:-1,q4=[rt,Tt].indexOf(A2)>=0?"y":"x";V1[A2]+=Bt[q4]*W4})}return V1}const SW={name:"flip",enabled:!0,phase:"main",fn:function zW(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,m=r.altBoundary,g=r.flipVariations,w=void 0===g||g,z=r.allowedAutoPlacements,L=t.options.placement,T=rn(L),U=o||(T!==L&&w?function VW(e){if(rn(e)===V5)return[];var t=Yc(e);return[pC(e),t,pC(t)]}(L):[Yc(L)]),j=[L].concat(U).reduce(function(zr,s4){return zr.concat(rn(s4)===V5?function wW(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?vC:o,f=or(t.placement),d=f?c?gC:gC.filter(function(w){return or(w)===f}):$i,m=d.filter(function(w){return l.indexOf(w)>=0});0===m.length&&(m=d);var g=m.reduce(function(w,z){return w[z]=E5(e,{placement:z,boundary:i,rootBoundary:a,padding:s})[rn(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,ie=t.rects.popper,_e=new Map,He=!0,ke=j[0],V1=0;V1<j.length;V1++){var n2=j[V1],Bt=rn(n2),A2=or(n2)===ar,W4=[rt,Tt].indexOf(Bt)>=0,q4=W4?"width":"height",ct=E5(t,{placement:n2,boundary:f,rootBoundary:d,altBoundary:m,padding:l}),Ut=W4?A2?It:it:A2?Tt:rt;q[q4]>ie[q4]&&(Ut=Yc(Ut));var g6=Yc(Ut),K4=[];if(a&&K4.push(ct[Bt]<=0),c&&K4.push(ct[Ut]<=0,ct[g6]<=0),K4.every(function(zr){return zr})){ke=n2,He=!1;break}_e.set(n2,K4)}if(He)for(var au=function(s4){var Fa=j.find(function(C6){var Y4=_e.get(C6);if(Y4)return Y4.slice(0,s4).every(function(su){return su})});if(Fa)return ke=Fa,"break"},Pa=w?3:1;Pa>0&&"break"!==au(Pa);Pa--);t.placement!==ke&&(t.modifiersData[n]._skip=!0,t.placement=ke,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Zi(e,t,r){return x4(e,Zc(t,r))}function T5(e){var t=cr(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 NW={name:"preventOverflow",enabled:!0,phase:"main",fn:function xW(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,m=r.tether,g=void 0===m||m,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=rn(t.placement),D=or(t.placement),U=!D,j=A5(T),q=function DW(e){return"x"===e?"y":"x"}(j),ie=t.modifiersData.popperOffsets,_e=t.rects.reference,He=t.rects.popper,ke="function"==typeof z?z(Object.assign({},t.rects,{placement:t.placement})):z,V1="number"==typeof ke?{mainAxis:ke,altAxis:ke}:Object.assign({mainAxis:0,altAxis:0},ke),n2=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Bt={x:0,y:0};if(ie){if(a){var A2,W4="y"===j?rt:it,q4="y"===j?Tt:It,ct="y"===j?"height":"width",Ut=ie[j],g6=Ut+L[W4],K4=Ut-L[q4],v6=g?-He[ct]/2:0,au=D===ar?_e[ct]:He[ct],Pa=D===ar?-He[ct]:-_e[ct],_6=t.elements.arrow,zr=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[W4],C6=s4[q4],Y4=Zi(0,_e[ct],zr[ct]),su=U?_e[ct]/2-v6-Y4-Fa-V1.mainAxis:au-Y4-Fa-V1.mainAxis,oHe=U?-_e[ct]/2+v6+Y4+C6+V1.mainAxis:Pa+Y4+C6+V1.mainAxis,cu=t.elements.arrow&&Yi(t.elements.arrow),lHe=cu?"y"===j?cu.clientTop||0:cu.clientLeft||0:0,qN=null!=(A2=n2?.[j])?A2:0,uHe=Ut+oHe-qN,KN=Zi(g?Zc(g6,Ut+su-qN-lHe):g6,Ut,g?x4(K4,uHe):K4);ie[j]=KN,Bt[j]=KN-Ut}if(c){var YN,Z4=ie[q],M6="y"===q?"height":"width",ZN=Z4+L["x"===j?rt:it],QN=Z4-L["x"===j?Tt:It],ou=-1!==[rt,it].indexOf(T),JN=null!=(YN=n2?.[q])?YN:0,XN=ou?ZN:Z4-_e[M6]-He[M6]-JN+V1.altAxis,eA=ou?Z4+_e[M6]+He[M6]-JN-V1.altAxis:QN,tA=g&&ou?function LW(e,t,r){var n=Zi(e,t,r);return n>r?r:n}(XN,Z4,eA):Zi(g?XN:ZN,Z4,g?eA:QN);ie[q]=tA,Bt[q]=tA-Z4}t.modifiersData[n]=Bt}},requiresIfExists:["offset"]},IW={name:"arrow",enabled:!0,phase:"main",fn:function EW(e){var t,r=e.state,n=e.name,i=e.options,a=r.elements.arrow,s=r.modifiersData.popperOffsets,c=rn(r.placement),o=A5(c),f=[it,It].indexOf(c)>=0?"height":"width";if(a&&s){var d=function(t,r){return VC("number"!=typeof(t="function"==typeof t?t(Object.assign({},r.rects,{placement:r.placement})):t)?t:zC(t,$i))}(i.padding,r),m=T5(a),g="y"===o?rt:it,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=Yi(a),D=T?"y"===o?T.clientHeight||0:T.clientWidth||0:0,ie=D/2-m[f]/2+(z/2-L/2),_e=Zi(d[g],ie,D-m[f]-d[w]);r.modifiersData[n]=((t={})[o]=_e,t.centerOffset=_e-ie,t)}},effect:function TW(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))||yC(t.elements.popper,i)&&(t.elements.arrow=i))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function PW(e,t,r){void 0===r&&(r=!1);var n=Mt(t),i=Mt(t)&&function kW(e){var t=e.getBoundingClientRect(),r=sr(t.width)/e.offsetWidth||1,n=sr(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),a=Xn(t),s=cr(e,i,r),c={scrollLeft:0,scrollTop:0},o={x:0,y:0};return(n||!n&&!r)&&(("body"!==an(t)||x5(a))&&(c=function RW(e){return e!==at(e)&&Mt(e)?function OW(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(e):D5(e)}(t)),Mt(t)?((o=cr(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 FW(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 UW(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}var SC={placement:"bottom",modifiers:[],strategy:"absolute"};function DC(){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 GW(e){void 0===e&&(e={});var r=e.defaultModifiers,n=void 0===r?[]:r,i=e.defaultOptions,a=void 0===i?SC:i;return function(c,o,l){void 0===l&&(l=a);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},SC,a),modifiersData:{},elements:{reference:c,popper:o},attributes:{},styles:{}},d=[],m=!1,g={state:f,setOptions:function(T){var D="function"==typeof T?T(f.options):T;z(),f.options=Object.assign({},a,f.options,D),f.scrollParents={reference:L4(c)?Ki(c):c.contextElement?Ki(c.contextElement):[],popper:Ki(o)};var U=function BW(e){var t=FW(e);return gW.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}(function jW(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=U.filter(function(j){return j.enabled}),function w(){f.orderedModifiers.forEach(function(L){var D=L.options,j=L.effect;if("function"==typeof j){var q=j({state:f,name:L.name,instance:g,options:void 0===D?{}:D});d.push(q||function(){})}})}(),g.update()},forceUpdate:function(){if(!m){var T=f.elements,D=T.reference,U=T.popper;if(DC(D,U)){f.rects={reference:PW(D,Yi(U),"fixed"===f.options.strategy),popper:T5(U)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(V1){return f.modifiersData[V1.name]=Object.assign({},V1.data)});for(var j=0;j<f.orderedModifiers.length;j++)if(!0!==f.reset){var q=f.orderedModifiers[j],ie=q.fn,_e=q.options;"function"==typeof ie&&(f=ie({state:f,options:void 0===_e?{}:_e,name:q.name,instance:g})||f)}else f.reset=!1,j=-1}}},update:UW(function(){return new Promise(function(L){g.forceUpdate(),L(f)})}),destroy:function(){z(),m=!0}};if(!DC(c,o))return g;function z(){d.forEach(function(L){return L()}),d=[]}return g.setOptions(l).then(function(L){!m&&l.onFirstUpdate&&l.onFirstUpdate(L)}),g}}var Jc={passive:!0},YW={top:"auto",right:"auto",bottom:"auto",left:"auto"};function LC(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,m=s.x,g=void 0===m?0:m,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"),D=s.hasOwnProperty("y"),U=it,j=rt,q=window;if(l){var ie=Yi(r),_e="clientHeight",He="clientWidth";ie===at(r)&&"static"!==zn(ie=Xn(r)).position&&"absolute"===c&&(_e="scrollHeight",He="scrollWidth"),(i===rt||(i===it||i===It)&&a===Wi)&&(j=Tt,z-=(d&&ie===q&&q.visualViewport?q.visualViewport.height:ie[_e])-n.height,z*=o?1:-1),i!==it&&(i!==rt&&i!==Tt||a!==Wi)||(U=It,g-=(d&&ie===q&&q.visualViewport?q.visualViewport.width:ie[He])-n.width,g*=o?1:-1)}var A2,n2=Object.assign({position:c},l&&YW),Bt=!0===f?function ZW(e,t){var n=e.y,i=t.devicePixelRatio||1;return{x:sr(e.x*i)/i||0,y:sr(n*i)/i||0}}({x:g,y:z},at(r)):{x:g,y:z};return g=Bt.x,z=Bt.y,Object.assign({},n2,o?((A2={})[j]=D?"0":"",A2[U]=T?"0":"",A2.transform=(q.devicePixelRatio||1)<=1?"translate("+g+"px, "+z+"px)":"translate3d("+g+"px, "+z+"px, 0)",A2):((t={})[j]=D?z+"px":"",t[U]=T?g+"px":"",t.transform="",t))}var nq=GW({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function $W(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=at(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 qW(e){var t=e.state;t.modifiersData[e.name]=HC({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function QW(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:rn(t.placement),variation:or(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,LC(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,LC(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 XW(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];!Mt(a)||!an(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 eq(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},{});!Mt(i)||!an(i)||(Object.assign(i.style,c),Object.keys(a).forEach(function(o){i.removeAttribute(o)}))})}},requires:["computeStyles"]}]});const aq={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function iq(e){var t=e.state,n=e.name,i=e.options.offset,a=void 0===i?[0,0]:i,s=vC.reduce(function(f,d){return f[d]=function rq(e,t,r){var n=rn(e),i=[it,rt].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,[it,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 sq(e,t){}function cq(e,t){if(1&e&&(p(0,"button",3),M(1),I(2,sq,0,0,"ng-template",4),v()),2&e){const r=t.$implicit;y("ngbPanelToggle",r),C(1),w2(" ",r.title," "),C(1),y("ngTemplateOutlet",null==r.titleTpl?null:r.titleTpl.templateRef)}}function oq(e,t){}function lq(e,t){}function fq(e,t){if(1&e){const r=b1();p(0,"div",8),O("ngbRef",function(i){return G(r),$(x().$implicit.panelDiv=i)}),p(1,"div",9),I(2,lq,0,0,"ng-template",4),v()()}if(2&e){const r=x().$implicit;O8("id",r.id),B("aria-labelledby",r.id+"-header"),C(2),y("ngTemplateOutlet",(null==r.contentTpl?null:r.contentTpl.templateRef)||null)}}const uq=function(e,t){return{$implicit:e,opened:t}};function dq(e,t){if(1&e&&(p(0,"div")(1,"div",5),I(2,oq,0,0,"ng-template",6),v(),I(3,fq,3,3,"div",7),v()),2&e){const r=t.$implicit,n=x(),i=F2(1);Mn("accordion-item "+(r.cardClass||"")),C(1),Mn("accordion-header "+(r.type?"bg-"+r.type:n.type?"bg-"+n.type:"")),K3("id","",r.id,"-header"),C(1),y("ngTemplateOutlet",(null==r.headerTpl?null:r.headerTpl.templateRef)||i)("ngTemplateOutletContext",Di(8,uq,r,r.isOpen)),C(1),y("ngIf",!n.destroyOnHide||r.isOpen||r.transitionRunning)}}function hq(e,t){if(1&e){const r=b1();p(0,"button",1),O("click",function(){return G(r),$(x().close())}),v()}}const Xc=["*"],jq=["dialog"];function CK(e,t){1&e&&M(0),2&e&&B2(x(2).title)}function MK(e,t){}function yK(e,t){if(1&e&&(p(0,"h3",3),I(1,CK,1,1,"ng-template",null,4,D2),I(3,MK,0,0,"ng-template",5),v()),2&e){const r=F2(2),n=x();C(3),y("ngTemplateOutlet",n.isTitleTemplate()?n.title:r)("ngTemplateOutletContext",n.context)}}function Sn(e){return"string"==typeof e}function N4(e){return null!=e}function lr(e){return(e||document.body).getBoundingClientRect()}const IC={animation:!0,transitionTimerDelayMs:5},OK=()=>{},{transitionTimerDelayMs:RK}=IC,Qi=new Map,N2=(e,t,r,n)=>{let i=n.context||{};const a=Qi.get(t);if(a)switch(n.runningTransition){case"continue":return ft;case"stop":e.run(()=>a.transition$.complete()),i=Object.assign(a.context,i),Qi.delete(t)}const s=r(t,n.animation,i)||OK;if(!n.animation||"none"===window.getComputedStyle(t).transitionProperty)return e.run(()=>s()),ae(void 0).pipe(function TK(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 eW(...e){return t=>Gi(t,ae(...e))}(!0));Qi.set(t,{transition$:c,complete:()=>{o.next(),o.complete()},context:i});const f=function IK(e){const{transitionDelay:t,transitionDuration:r}=window.getComputedStyle(e);return 1e3*(parseFloat(t)+parseFloat(r))}(t);return e.runOutsideAngular(()=>{const d=e2(t,"transitionend").pipe(R1(l),N1(({target:g})=>g===t));lC(cC(f+RK).pipe(R1(l)),d,o).pipe(R1(l)).subscribe(()=>{Qi.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 kK(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"),lr(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=IC.animation}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),OC=(()=>{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})(),PK=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-"+PK++,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&&(H1(a,R5,4),H1(a,eo,4),H1(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})(),FK=(()=>{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(ge(()=>F5)),H(to,9))},e.\u0275dir=W({type:e,selectors:[["button","ngbPanelToggle",""]],hostAttrs:["type","button"],hostVars:5,hostBindings:function(n,i){1&n&&O("click",function(){return i.accordion.toggle(i.panel.id)}),2&n&&(V2("disabled",i.panel.disabled),B("aria-expanded",i.panel.isOpen)("aria-controls",i.panel.id),De("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(){Sn(this.activeIds)&&(this.activeIds=this.activeIds.split(/\s*,\s*/)),this.panels.forEach(n=>{n.isOpen=!n.disabled&&this.activeIds.indexOf(n.id)>-1}),this.activeIds.length>1&&this.closeOtherPanels&&(this._closeOthers(this.activeIds[0],!1),this._updateActiveIds()),this._ngZone.onStable.pipe(t2(1)).subscribe(()=>{this.panels.forEach(n=>{const i=n.panelDiv;i?n.initClassDone||(n.initClassDone=!0,N2(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&&N2(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(OC),H(ye),H(et))},e.\u0275cmp=se({type:e,selectors:[["ngb-accordion"]],contentQueries:function(n,i,a){if(1&n&&H1(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&&B("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:[S2],decls:3,vars:1,consts:[["ngbPanelHeader",""],["t",""],["ngFor","",3,"ngForOf"],[1,"accordion-button",3,"ngbPanelToggle"],[3,"ngTemplateOutlet"],["role","tab",3,"id"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["role","tabpanel",3,"id","ngbRef",4,"ngIf"],["role","tabpanel",3,"id","ngbRef"],[1,"accordion-body"]],template:function(n,i){1&n&&(I(0,cq,3,3,"ng-template",0,1,D2),I(2,dq,4,11,"ng-template",2)),2&n&&(C(2),y("ngForOf",i.panels))},dependencies:[nt,H4,P5,FK,eo,L1],encapsulation:2}),t})(),BK=(()=>{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 N2(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(BK),H(ye))},e.\u0275dir=W({type:e,selectors:[["","ngbCollapse",""]],hostVars:2,hostBindings:function(n,i){2&n&&De("collapse-horizontal",i.horizontal)},inputs:{animation:"animation",collapsed:["ngbCollapse","collapsed"],horizontal:"horizontal"},outputs:{ngbCollapseChange:"ngbCollapseChange",shown:"shown",hidden:"hidden"},exportAs:["ngbCollapse"],standalone:!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})();const WK=({classList:e})=>{e.remove("show")};let qK=(()=>{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})(),FC=(()=>{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=N2(this._zone,this._element.nativeElement,WK,{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(qK),H(l2),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&&De("fade",i.animation)("alert-dismissible",i.dismissible)},inputs:{animation:"animation",dismissible:"dismissible",type:"type"},outputs:{closed:"closed"},exportAs:["ngbAlert"],standalone:!0,features:[M1,S2],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&&(W3(),q3(0),I(1,hq,1,0,"button",0)),2&n&&(C(1),y("ngIf",i.dismissible))},dependencies:[L1],styles:["ngb-alert{display:block}\n"],encapsulation:2,changeDetection:0}),t})(),BC=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})(),GC=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})(),$C=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})();var Qe=function(e){return e[e.Tab=9]="Tab",e[e.Enter=13]="Enter",e[e.Escape=27]="Escape",e[e.Space=32]="Space",e[e.PageUp=33]="PageUp",e[e.PageDown=34]="PageDown",e[e.End=35]="End",e[e.Home=36]="Home",e[e.ArrowLeft=37]="ArrowLeft",e[e.ArrowUp=38]="ArrowUp",e[e.ArrowRight=39]="ArrowRight",e[e.ArrowDown=40]="ArrowDown",e}(Qe||{});const co=(e,t)=>!!t&&t.some(r=>r.contains(e)),ZC=(e,t)=>!t||null!=function EK(e,t){return!t||typeof e.closest>"u"?null:e.closest(t)}(e,t),pY=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=>pY?()=>setTimeout(()=>e(),100):e)(()=>{const l=e2(t,"keydown").pipe(R1(i),N1(m=>m.which===Qe.Escape),q1(m=>m.preventDefault())),f=e2(t,"mousedown").pipe(we(m=>{const g=m.target;return 2!==m.button&&!co(g,s)&&("inside"===r?co(g,a)&&ZC(g,c):"outside"===r?!co(g,a):ZC(g,c)||!co(g,a))}),R1(i)),d=e2(t,"mouseup").pipe(w5(f),N1(([m,g])=>g),dC(0),R1(i));lC([l.pipe(we(m=>0)),d.pipe(we(m=>1))]).subscribe(m=>e.run(()=>n(m)))}))}const QC=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function JC(e){const t=Array.from(e.querySelectorAll(QC)).filter(r=>-1!==r.tabIndex);return[t[0],t[t.length-1]]}let gY=(()=>{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(w1))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const vY=/\s+/,_Y=/ +/gi,CY={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"]},yY=/^left/,bY=/^right/,HY=/^start/,wY=/^end/;function eM({placement:e,baseClass:t},r){let n=Array.isArray(e)?e:e.split(vY),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 MY(e,t){const[r,n]=CY[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,m=l.placement;let g=d.className;g=g.replace(f,""),g+=` ${function VY(e,t){let[r,n]=t.split("-");const i=r.replace(yY,"start").replace(bY,"end");let a=[i];if(n){let s=n;("left"===r||"right"===r)&&(s=s.replace(HY,"top").replace(wY,"bottom")),a.push(`${i}-${s}`)}return e&&(a=a.map(s=>`${e}-${s}`)),a.join(" ")}(t,m)}`,g=g.trim().replace(_Y," "),d.className=g}},SW,NW,IW,{enabled:!0,name:"flip",options:{fallbackPlacements:s}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function tM(e){return e}function lo(){const e=J(gY);let t=null;return{createPopper(r){if(!t){let i=(r.updatePopperOptions||tM)(eM(r,e));t=nq(r.hostElement,r.targetElement,i)}},update(){t&&t.update()},setOptions(r){if(t){let i=(r.updatePopperOptions||tM)(eM(r,e));t.setOptions(i)}},destroy(){t&&(t.destroy(),t=null)}}}new Date(1882,10,12),new Date(2174,10,25);let lM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})(),dM=(()=>{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 hM{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(t2(1),F1(()=>N2(this._ngZone,i,({classList:s})=>s.add("show"),{animation:n,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:a}}close(t=!1){return this._windowRef?N2(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 kY=(()=>{var e;class t{constructor(n,i){this._el=n,this._zone=i}ngOnInit(){this._zone.onStable.asObservable().pipe(t2(1)).subscribe(()=>{N2(this._zone,this._el.nativeElement,(n,i)=>{i&&lr(n),n.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return N2(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&&(Mn("modal-backdrop"+(i.backdropClass?" "+i.backdropClass:"")),De("show",!i.animation)("fade",i.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},standalone:!0,features:[S2],decls:0,vars:0,template:function(n,i){},encapsulation:2}),t})();class pM{update(t){}close(t){}dismiss(t){}}const PY=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],FY=["animation","backdropClass"];class BY{_applyWindowOptions(t,r){PY.forEach(n=>{N4(r[n])&&(t[n]=r[n])})}_applyBackdropOptions(t,r){FY.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 NC(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 ta=function(e){return e[e.BACKDROP_CLICK=0]="BACKDROP_CLICK",e[e.ESC=1]="ESC",e}(ta||{});let UY=(()=>{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":Sn(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(n){this.dismissEvent.emit(n)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(t2(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:n}=this._elRef,i={animation:this.animation,runningTransition:"stop"},c=H5(N2(this._zone,n,()=>n.classList.remove("show"),i),N2(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(N2(this._zone,this._elRef.nativeElement,(s,c)=>{c&&lr(s),s.classList.add("show")},n),N2(this._zone,this._dialogEl.nativeElement,()=>{},n)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:n}=this._elRef;this._zone.runOutsideAngular(()=>{e2(n,"keydown").pipe(R1(this._closed$),N1(a=>a.which===Qe.Escape)).subscribe(a=>{this.keyboard?requestAnimationFrame(()=>{a.defaultPrevented||this._zone.run(()=>this.dismiss(ta.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let i=!1;e2(this._dialogEl.nativeElement,"mousedown").pipe(R1(this._closed$),q1(()=>i=!1),wt(()=>e2(n,"mouseup").pipe(R1(this._closed$),t2(1))),N1(({target:a})=>n===a)).subscribe(()=>{i=!0}),e2(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(ta.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=JC(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&&N2(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(w1),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&&(ug(n,new og(e,t,r),-1),2==(2&t)&&(n.staticViewQueries=!0)),fg(n,P(),t)}(jq,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&&(B("aria-modal",!0)("aria-labelledby",i.ariaLabelledBy)("aria-describedby",i.ariaDescribedBy),Mn("modal d-block"+(i.windowClass?" "+i.windowClass:"")),De("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:[S2],ngContentSelectors:Xc,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(n,i){1&n&&(W3(),p(0,"div",0,1)(2,"div",2),q3(3),v()()),2&n&&Mn("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})(),jY=(()=>{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(w1))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),GY=(()=>{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=e2(t,"focusin").pipe(R1(r),we(a=>a.target));e2(t,"keydown").pipe(R1(r),N1(a=>a.which===Qe.Tab),w5(i)).subscribe(([a,s])=>{const[c,o]=JC(t);(s===c||s===t)&&a.shiftKey&&(o.focus(),a.preventDefault()),s===o&&!a.shiftKey&&(c.focus(),a.preventDefault())}),n&&e2(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 pM,l=(n=a.injector||n).get(P2,null)||this._environmentInjector,f=this._getContentRef(n,l,i,o,a);let d=!1!==a.backdrop?this._attachBackdrop(s):void 0,m=this._attachWindowComponent(s,f.nodes),g=new BY(m,f,d,a.beforeDismiss);return this._registerModalRef(g),this._registerWindowCmpt(m),g.hidden.pipe(t2(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(),m.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(kY,{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(UY,{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):Sn(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:pM,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(nn),Y(B1),Y(P2),Y(w1),Y(jY),Y(c8),Y(ye))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),$Y=(()=>{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})(),mM=(()=>{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(GY),Y($Y))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),gM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({providers:[mM]}),t})(),CM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),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})();class eZ{constructor(t,r){this.open=t,this.close=r,r||(this.close=t)}isManual(){return"manual"===this.open||"manual"===this.close}}const tZ={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},DM=e=>e>0?dC(e):t=>t;function LM(e,t,r,n,i,a,s=0,c=0){const o=function nZ(e,t=tZ){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 eZ(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 rZ(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 iZ(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),DM(e)),a.pipe(N1(o=>!o.open),DM(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 aZ=(()=>{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})(),sZ=0,cZ=(()=>{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&&(V2("id",i.id),Mn("popover"+(i.popoverClass?" "+i.popoverClass:"")),De("fade",i.animation))},inputs:{animation:"animation",title:"title",id:"id",popoverClass:"popoverClass",context:"context"},standalone:!0,features:[S2],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&&(W3(),R(0,"div",0),I(1,yK,4,2,"h3",1),p(2,"div",2),q3(3),v()),2&n&&(C(1),y("ngIf",i.title))},dependencies:[H4,L1],encapsulation:2,changeDetection:0}),t})(),oZ=(()=>{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-"+sZ++,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 hM(cZ,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(aq,{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=LM(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(Sn(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(l2),H(B1),H(j2),H(aZ),H(ye),H(w1),H(et),H(nn))},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:[M1]}),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})(),TM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),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})(),hZ=(()=>{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})(),pZ=0,mZ=(()=>{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&&(V2("id",i.id),Mn("tooltip"+(i.tooltipClass?" "+i.tooltipClass:"")),De("fade",i.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},standalone:!0,features:[S2],ngContentSelectors:Xc,decls:3,vars:0,consts:[["data-popper-arrow","",1,"tooltip-arrow"],[1,"tooltip-inner"]],template:function(n,i){1&n&&(W3(),R(0,"div",0),p(1,"div",1),q3(2),v())},encapsulation:2,changeDetection:0}),t})(),OM=(()=>{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-"+pZ++,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 hM(mZ,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=LM(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(Sn(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(l2),H(B1),H(j2),H(hZ),H(ye),H(w1),H(et),H(nn))},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:[M1]}),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})();new te("live announcer delay",{providedIn:"root",factory:function gZ(){return 100}});let kM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})(),PM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})();const _Z=[PC,BC,GC,$C,lM,dM,gM,CM,PM,SM,xM,NM,AM,EM,TM,IM,RM,kM];let CZ=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({imports:[_Z,PC,BC,GC,$C,lM,dM,gM,CM,PM,SM,xM,NM,AM,EM,TM,IM,RM,kM]}),t})();function FM(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?FM(Object(r),!0).forEach(function(n){Y1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FM(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 BM(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 wZ(e){if(Array.isArray(e))return e}(e)||function zZ(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)||UM(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 ia(e){return function HZ(e){if(Array.isArray(e))return e7(e)}(e)||function VZ(e){if(typeof Symbol<"u"&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||UM(e)||function SZ(){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 UM(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 jM=function(){},t7={},GM={},$M=null,WM={mark:jM,measure:jM};try{typeof window<"u"&&(t7=window),typeof document<"u"&&(GM=document),typeof MutationObserver<"u"&&($M=MutationObserver),typeof performance<"u"&&(WM=performance)}catch{}var Mo,yo,bo,Ho,wo,qM=(t7.navigator||{}).userAgent,KM=void 0===qM?"":qM,e4=t7,l1=GM,YM=$M,Co=WM,Dn=!!l1.documentElement&&!!l1.head&&"function"==typeof l1.addEventListener&&"function"==typeof l1.createElement,ZM=~KM.indexOf("MSIE")||~KM.indexOf("Trident/"),Ln="___FONT_AWESOME___",QM="fa",JM="svg-inline--fa",k4="data-fa-i2svg",r7="data-fa-pseudo-element",xZ="data-fa-pseudo-element-pending",i7="data-prefix",a7="data-icon",XM="fontawesome-i2svg",NZ="async",AZ=["HTML","HEAD","STYLE","SCRIPT"],ey=function(){try{return!0}catch{return!1}}(),f1="classic",A1="sharp",s7=[f1,A1];function aa(e){return new Proxy(e,{get:function(r,n){return n in r?r[n]:r[f1]}})}var sa=aa((Y1(Mo={},f1,{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)),ca=aa((Y1(yo={},f1,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),Y1(yo,A1,{solid:"fass",regular:"fasr",light:"fasl"}),yo)),oa=aa((Y1(bo={},f1,{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)),EZ=aa((Y1(Ho={},f1,{"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)),TZ=/fa(s|r|l|t|d|b|k|ss|sr|sl)?[\-\ ]/,ty="fa-layers-text",IZ=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,OZ=aa((Y1(wo={},f1,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),Y1(wo,A1,{900:"fass",400:"fasr",300:"fasl"}),wo)),ny=[1,2,3,4,5,6,7,8,9,10],RZ=ny.concat([11,12,13,14,15,16,17,18,19,20]),kZ=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],P4={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},la=new Set;Object.keys(ca[f1]).map(la.add.bind(la)),Object.keys(ca[A1]).map(la.add.bind(la));var PZ=[].concat(s7,ia(la),["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(ny.map(function(e){return"".concat(e,"x")})).concat(RZ.map(function(e){return"w-".concat(e)})),fa=e4.FontAwesomeConfig||{};l1&&"function"==typeof l1.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 BZ(e){return""===e||"false"!==e&&("true"===e||e)}(function FZ(e){var t=l1.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(t[0]));null!=i&&(fa[n]=i)});var ry={styleDefault:"solid",familyDefault:"classic",cssPrefix:QM,replacementClass:JM,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};fa.familyPrefix&&(fa.cssPrefix=fa.familyPrefix);var hr=X(X({},ry),fa);hr.autoReplaceSvg||(hr.observeMutations=!1);var ne={};Object.keys(ry).forEach(function(e){Object.defineProperty(ne,e,{enumerable:!0,set:function(r){hr[e]=r,ua.forEach(function(n){return n(ne)})},get:function(){return hr[e]}})}),Object.defineProperty(ne,"familyPrefix",{enumerable:!0,set:function(t){hr.cssPrefix=t,ua.forEach(function(r){return r(ne)})},get:function(){return hr.cssPrefix}}),e4.FontAwesomeConfig=ne;var ua=[],sn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1},$Z="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function da(){for(var e=12,t="";e-- >0;)t+=$Z[62*Math.random()|0];return t}function pr(e){for(var t=[],r=(e||[]).length>>>0;r--;)t[r]=e[r];return t}function c7(e){return e.classList?pr(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function iy(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}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!==sn.size||e.x!==sn.x||e.y!==sn.y||e.rotate!==sn.rotate||e.flipX||e.flipY}var YZ=':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 ay(){var e=QM,t=JM,r=ne.cssPrefix,n=ne.replacementClass,i=YZ;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 sy=!1;function l7(){ne.autoAddCss&&!sy&&(function GZ(e){if(e&&Dn){var t=l1.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var r=l1.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)}l1.head.insertBefore(t,n)}}(ay()),sy=!0)}var ZZ={mixout:function(){return{dom:{css:ay,insertCss:l7}}},hooks:function(){return{beforeDOMElementCreation:function(){l7()},beforeI2svg:function(){l7()}}}},xn=e4||{};xn[Ln]||(xn[Ln]={}),xn[Ln].styles||(xn[Ln].styles={}),xn[Ln].hooks||(xn[Ln].hooks={}),xn[Ln].shims||(xn[Ln].shims=[]);var Rt=xn[Ln],cy=[],zo=!1;function ha(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?iy(e):"<".concat(t," ").concat(function WZ(e){return Object.keys(e||{}).reduce(function(t,r){return t+"".concat(r,'="').concat(iy(e[r]),'" ')},"").trim()}(n),">").concat(a.map(ha).join(""),"</").concat(t,">")}function oy(e,t,r){if(e&&e[t]&&e[t][r])return{prefix:t,iconName:r,icon:e[t][r]}}Dn&&((zo=(l1.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(l1.readyState))||l1.addEventListener("DOMContentLoaded",function e(){l1.removeEventListener("DOMContentLoaded",e),zo=1,cy.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 eQ(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 ly(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=ly(t);"function"!=typeof Rt.hooks.addPack||i?Rt.styles[e]=X(X({},Rt.styles[e]||{}),a):Rt.hooks.addPack(e,ly(t)),"fas"===e&&d7("fa",t)}var So,Do,Lo,mr=Rt.styles,nQ=Rt.shims,rQ=(Y1(So={},f1,Object.values(oa[f1])),Y1(So,A1,Object.values(oa[A1])),So),h7=null,fy={},uy={},dy={},hy={},py={},iQ=(Y1(Do={},f1,Object.keys(sa[f1])),Y1(Do,A1,Object.keys(sa[A1])),Do);var my=function(){var t=function(a){return f7(mr,function(s,c,o){return s[o]=f7(c,a,{}),s},{})};fy=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}),uy=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}),py=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 mr||ne.autoFetchSvg,n=f7(nQ,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:{}});dy=n.names,hy=n.unicodes,h7=xo(ne.styleDefault,{family:ne.familyDefault})};function p7(e,t){return(fy[e]||{})[t]}function F4(e,t){return(py[e]||{})[t]}function gy(e){return dy[e]||{prefix:null,iconName:null}}function n4(){return h7}(function jZ(e){ua.push(e)})(function(e){h7=xo(e.styleDefault,{family:ne.familyDefault})}),my();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?f1:r;return ca[n][e]||ca[n][sa[n][e]]||(e in Rt.styles?e:null)||null}var vy=(Y1(Lo={},f1,Object.keys(oa[f1])),Y1(Lo,A1,Object.keys(oa[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={},f1,"".concat(ne.cssPrefix,"-").concat(f1)),Y1(t,A1,"".concat(ne.cssPrefix,"-").concat(A1)),t),s=null,c=f1;(e.includes(a[f1])||e.some(function(l){return vy[f1].includes(l)}))&&(c=f1),(e.includes(a[A1])||e.some(function(l){return vy[A1].includes(l)}))&&(c=A1);var o=e.reduce(function(l,f){var d=function sQ(e,t){var r=t.split("-"),n=r[0],i=r.slice(1).join("-");return n!==e||""===i||function aQ(e){return~PZ.indexOf(e)}(i)?null:i}(ne.cssPrefix,f);if(mr[f]?(f=rQ[c].includes(f)?EZ[c][f]:f,s=f,l.prefix=f):iQ[c].indexOf(f)>-1?(s=f,l.prefix=xo(f,{family:c})):d?l.iconName=d:f!==ne.replacementClass&&f!==a[f1]&&f!==a[A1]&&l.rest.push(f),!i&&l.prefix&&l.iconName){var m="fa"===s?gy(l.iconName):{},g=F4(l.prefix,l.iconName);m.prefix&&(s=null),l.iconName=m.iconName||g||l.iconName,l.prefix=m.prefix||l.prefix,"far"===l.prefix&&!mr.far&&mr.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&&(mr.fass||ne.autoFetchSvg)&&(o.prefix="fass",o.iconName=F4(o.prefix,o.iconName)||o.iconName),("fa"===o.prefix||"fa"===s)&&(o.prefix=n4()||"fas"),o}var lQ=function(){function e(){(function MZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.definitions={}}return function yZ(e,t,r){t&&BM(e.prototype,t),r&&BM(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=oa[f1][c];o&&d7(o,s[c]),my()})}},{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}(),_y=[],gr={},vr={},fQ=Object.keys(vr);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(gr[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];(gr[e]||[]).forEach(function(a){a.apply(null,r)})}function Nn(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return vr[e]?vr[e].apply(null,t):void 0}function v7(e){"fa"===e.prefix&&(e.prefix="fas");var t=e.iconName,r=e.prefix||n4();if(t)return t=F4(r,t)||t,oy(Cy.definitions,r,t)||oy(Rt.styles,r,t)}var Cy=new lQ,hQ={i2svg:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Dn?(B4("beforeI2svg",t),Nn("pseudoElements2svg",t),Nn("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 JZ(e){Dn&&(zo?setTimeout(e,0):cy.push(e))}(function(){mQ({autoReplaceSvgRoot:r}),B4("watch",t)})}},st={noAuto:function(){ne.autoReplaceSvg=!1,ne.observeMutations=!1,B4("noAuto")},config:ne,dom:hQ,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(TZ))){var i=No(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||n4(),iconName:F4(i.prefix,i.iconName)||i.iconName}}if("string"==typeof t){var a=n4();return{prefix:a,iconName:F4(a,t)||t}}}},library:Cy,findIconDefinition:v7,toHtml:ha},mQ=function(){var r=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).autoReplaceSvgRoot,n=void 0===r?l1:r;(Object.keys(Rt.styles).length>0||ne.autoFetchSvg)&&Dn&&ne.autoReplaceSvg&&st.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 ha(n)})}}),Object.defineProperty(e,"node",{get:function(){if(Dn){var n=l1.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,m=e.watchable,g=void 0!==m&&m,w=n.found?n:r,z=w.width,L=w.height,T="fak"===i,D=[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(" "),U={children:[],attributes:X(X({},d.attributes),{},{"data-prefix":i,"data-icon":a,class:D,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(z," ").concat(L)})},j=T&&!~d.classes.indexOf("fa-fw")?{width:"".concat(z/L*16*.0625,"em")}:{};g&&(U.attributes[k4]=""),o&&(U.children.push({tag:"title",attributes:{id:U.attributes["aria-labelledby"]||"title-".concat(f||da())},children:[o]}),delete U.attributes.title);var q=X(X({},U),{},{prefix:i,iconName:a,main:r,mask:n,maskId:l,transform:s,symbol:c,styles:X(X({},j),d.styles)}),ie=n.found&&r.found?Nn("generateAbstractMask",q)||{children:[],attributes:{}}:Nn("generateAbstractIcon",q)||{children:[],attributes:{}},He=ie.attributes;return q.children=ie.children,q.attributes=He,c?function vQ(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 gQ(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 My(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 KZ(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&&ZM?"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 m=[];return m.push({tag:"span",attributes:l,children:[t]}),a&&m.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),m}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 CQ={found:!1,width:512,height:512};function y7(e,t){var r=t;return"fa"===t&&null!==ne.styleDefault&&(t=n4()),new Promise(function(n,i){if(Nn("missingIconAbstract"),"fa"===r){var s=gy(e)||{};e=s.iconName||e,t=s.prefix||t}if(e&&t&&C7[t]&&C7[t][e])return n(M7(C7[t][e]));(function MQ(e,t){!ey&&!ne.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))})(e,t),n(X(X({},CQ),{},{icon:ne.showMissingIcons&&e&&Nn("missingIconAbstract")||{}}))})}var yy=function(){},b7=ne.measurePerformance&&Co&&Co.mark&&Co.measure?Co:{mark:yy,measure:yy},pa='FA "6.4.2"',by=function(t){b7.mark("".concat(pa," ").concat(t," ends")),b7.measure("".concat(pa," ").concat(t),"".concat(pa," ").concat(t," begins"),"".concat(pa," ").concat(t," ends"))},H7={begin:function(t){return b7.mark("".concat(pa," ").concat(t," begins")),function(){return by(t)}},end:by},Eo=function(){};function Hy(e){return"string"==typeof(e.getAttribute?e.getAttribute(k4):null)}function VQ(e){return l1.createElementNS("http://www.w3.org/2000/svg",e)}function zQ(e){return l1.createElement(e)}function wy(e){var r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).ceFn,n=void 0===r?"svg"===e.tag?VQ:zQ:r;if("string"==typeof e)return l1.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(wy(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(wy(i),r)}),null===r.getAttribute(k4)&&ne.keepOriginalSource){var n=l1.createComment(function SQ(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 ha(c)}).join("\n");r.setAttribute(k4,""),r.innerHTML=s}};function Vy(e){e()}function zy(e,t){var r="function"==typeof t?t:Eo;if(0===e.length)r();else{var n=Vy;ne.mutateApproach===NZ&&(n=e4.requestAnimationFrame||Vy),n(function(){var i=function wQ(){return!0===ne.autoReplaceSvg?To.replace:To[ne.autoReplaceSvg]||To.replace}(),a=H7.begin("mutate");e.map(i),a(),r()})}}var w7=!1;function Sy(){w7=!0}function V7(){w7=!1}var Io=null;function Dy(e){if(YM&&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?l1:c;Io=new YM(function(l){if(!w7){var f=n4();pr(l).forEach(function(d){if("childList"===d.type&&d.addedNodes.length>0&&!Hy(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&&Hy(d.target)&&~kZ.indexOf(d.attributeName))if("class"===d.attributeName&&function bQ(e){var t=e.getAttribute?e.getAttribute(i7):null,r=e.getAttribute?e.getAttribute(a7):null;return t&&r}(d.target)){var m=No(c7(d.target)),w=m.iconName;d.target.setAttribute(i7,m.prefix||f),w&&d.target.setAttribute(a7,w)}else(function HQ(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ne.replacementClass)})(d.target)&&i(d.target)})}}),Dn&&Io.observe(o,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Ly(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},r=function xQ(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=n4()),t&&r&&(i.prefix=t,i.iconName=r),i.iconName&&i.prefix||(i.prefix&&n.length>0&&(i.iconName=function cQ(e,t){return(uy[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 NQ(e){var t=pr(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||da()):(t["aria-hidden"]="true",t.focusable="false")),t}(e),c=g7("parseNodeAttributes",{},e),o=t.styleParser?function LQ(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:sn,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:o,attributes:s}},c)}var EQ=Rt.styles;function xy(e){var t="nest"===ne.autoReplaceSvg?Ly(e,{styleParser:!1}):Ly(e);return~t.extra.classes.indexOf(ty)?Nn("generateLayersText",e,t):Nn("generateSvgReplacementMutation",e,t)}var r4=new Set;function Ny(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Dn)return Promise.resolve();var r=l1.documentElement.classList,n=function(d){return r.add("".concat(XM,"-").concat(d))},i=function(d){return r.remove("".concat(XM,"-").concat(d))},a=ne.autoFetchSvg?r4:s7.map(function(f){return"fa-".concat(f)}).concat(Object.keys(EQ));a.includes("fa")||a.push("fa");var s=[".".concat(ty,":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=pr(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 m=xy(d);m&&f.push(m)}catch(g){ey||"MissingIcon"===g.name&&console.error(g)}return f},[]);return new Promise(function(f,d){Promise.all(l).then(function(m){zy(m,function(){n("active"),n("complete"),i("pending"),"function"==typeof t&&t(),o(),f()})}).catch(function(m){o(),d(m)})})}function TQ(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;xy(e).then(function(r){r&&zy([r],t)})}s7.map(function(e){r4.add("fa-".concat(e))}),Object.keys(sa[f1]).map(r4.add.bind(r4)),Object.keys(sa[A1]).map(r4.add.bind(r4)),r4=ia(r4);var OQ=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.transform,i=void 0===n?sn: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,m=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,D=void 0===T?{}:T,U=r.styles,j=void 0===U?{}:U;if(t){var q=t.prefix,ie=t.iconName,_e=t.icon;return Ao(X({type:"icon"},t),function(){return B4("beforeDOMElementCreation",{iconDefinition:t,params:r}),ne.autoA11y&&(m?D["aria-labelledby"]="".concat(ne.replacementClass,"-title-").concat(w||da()):(D["aria-hidden"]="true",D.focusable="false")),_7({icons:{main:M7(_e),mask:o?M7(o.icon):{found:!1,width:null,height:null,icon:{}}},prefix:q,iconName:ie,transform:X(X({},sn),i),symbol:s,title:m,maskId:f,titleId:w,extra:{attributes:D,styles:j,classes:L}})})}},RQ={mixout:function(){return{icon:(e=OQ,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=Ny,r.nodeCallback=TQ,r}}},provides:function(t){t.i2svg=function(r){var n=r.node,a=r.callback;return Ny(void 0===n?l1: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,m=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:m,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=Nn("generateAbstractTransformGrouping",{main:a,transform:s,containerWidth:a.width,iconWidth:a.width})),n.push(l||a.icon),{children:n,attributes:i}}}},kQ={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(ia(a)).join(" ")},children:s}]})}}}},PQ={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 _Q(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(ia(c))}})})}}}},FQ={mixout:function(){return{text:function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.transform,a=void 0===i?sn: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,m=n.styles,g=void 0===m?{}:m;return Ao({type:"text",content:r},function(){return B4("beforeDOMElementCreation",{content:r,params:n}),My({content:r,transform:X(X({},sn),a),title:c,extra:{attributes:d,styles:g,classes:["".concat(ne.cssPrefix,"-layers-text")].concat(ia(l))}})})}}},provides:function(t){t.generateLayersText=function(r,n){var i=n.title,a=n.transform,s=n.extra,c=null,o=null;if(ZM){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,My({content:r.innerHTML,width:c,height:o,transform:a,title:i,extra:s,watchable:!0})])}}},BQ=new RegExp('"',"ug"),Ay=[1105920,1112319];function Ey(e,t){var r="".concat(xZ).concat(t.replace(":","-"));return new Promise(function(n,i){if(null!==e.getAttribute(r))return n();var s=pr(e.children).filter(function(_e){return _e.getAttribute(r7)===t})[0],c=e4.getComputedStyle(e,t),o=c.getPropertyValue("font-family").match(IZ),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"),m=~["Sharp"].indexOf(o[2])?A1:f1,g=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(o[2])?ca[m][o[2].toLowerCase()]:OZ[m][l],w=function UQ(e){var t=e.replace(BQ,""),r=function tQ(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>=Ay[0]&&r<=Ay[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"),D=p7(g,z),U=D;if(T){var j=function oQ(e){var t=hy[e],r=p7("fas",e);return t||(r?{prefix:"fas",iconName:r}:null)||{prefix:null,iconName:null}}(z);j.iconName&&j.prefix&&(D=j.iconName,g=j.prefix)}if(!D||L||s&&s.getAttribute(i7)===g&&s.getAttribute(a7)===U)n();else{e.setAttribute(r,U),s&&e.removeChild(s);var q=function AQ(){return{iconName:null,title:null,titleId:null,prefix:null,transform:sn,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),ie=q.extra;ie.attributes[r7]=t,y7(D,g).then(function(_e){var He=_7(X(X({},q),{},{icons:{main:_e,mask:m7()},prefix:g,iconName:U,extra:ie,watchable:!0})),ke=l1.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(ke,e.firstChild):e.appendChild(ke),ke.outerHTML=He.map(function(V1){return ha(V1)}).join("\n"),e.removeAttribute(r),n()}).catch(i)}}else n()})}function jQ(e){return Promise.all([Ey(e,"::before"),Ey(e,"::after")])}function GQ(e){return!(e.parentNode===document.head||~AZ.indexOf(e.tagName.toUpperCase())||e.getAttribute(r7)||e.parentNode&&"svg"===e.parentNode.tagName)}function Ty(e){if(Dn)return new Promise(function(t,r){var n=pr(e.querySelectorAll("*")).filter(GQ).map(jQ),i=H7.begin("searchPseudoElements");Sy(),Promise.all(n).then(function(){i(),V7(),t()}).catch(function(){i(),V7(),r()})})}var Iy=!1,Oy=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 Ry(e){return e.attributes&&(e.attributes.fill||!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(e.attributes.fill="black"),e}!function uQ(e,t){var r=t.mixoutsTo;_y=e,gr={},Object.keys(vr).forEach(function(n){-1===fQ.indexOf(n)&&delete vr[n]}),_y.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){gr[s]||(gr[s]=[]),gr[s].push(a[s])})}n.provides&&n.provides(vr)})}([ZZ,RQ,kQ,PQ,FQ,{hooks:function(){return{mutationObserverCallbacks:function(r){return r.pseudoElementsCallback=Ty,r}}},provides:function(t){t.pseudoElements2svg=function(r){var n=r.node;ne.searchPseudoElements&&Ty(void 0===n?l1:n)}}},{mixout:function(){return{dom:{unwatch:function(){Sy(),Iy=!0}}}},hooks:function(){return{bootstrap:function(){Dy(g7("mutationObserverCallbacks",{}))},noAuto:function(){!function DQ(){Io&&Io.disconnect()}()},watch:function(r){var n=r.observeMutationsRoot;Iy?V7():Dy(g7("mutationObserverCallbacks",{observeMutationsRoot:n}))}}}},{mixout:function(){return{parse:{transform:function(r){return Oy(r)}}}},hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-transform");return i&&(r.transform=Oy(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=n4()),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,m=s.icon,g=function qZ(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(Ry)}:{},L={tag:"g",attributes:X({},g.inner),children:[Ry(X({tag:f.tag,attributes:X(X({},f.attributes),g.path)},z))]},T={tag:"g",attributes:X({},g.outer),children:[L]},D="mask-".concat(c||da()),U="clip-".concat(c||da()),j={tag:"mask",attributes:X(X({},z7),{},{id:D,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[w,T]},q={tag:"defs",children:[{tag:"clipPath",attributes:{id:U},children:(e=m,"g"===e.tag?e.children:[e])},j]};return n.push(q,{tag:"rect",attributes:X({fill:"currentColor","clip-path":"url(#".concat(U,")"),mask:"url(#".concat(D,")")},z7)}),{children:n,attributes:i}}}},{provides:function(t){var r=!1;e4.matchMedia&&(r=e4.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:st});var XQ=st.parse,eJ=st.icon;const tJ=["*"],iJ=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 cJ=(()=>{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})(),oJ=(()=>{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})(),lJ=(()=>{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:[M1]}),t})(),fJ=(()=>{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(l2),H(Ne))},e.\u0275cmp=se({type:e,selectors:[["fa-stack"]],inputs:{size:"size"},features:[M1],ngContentSelectors:tJ,decls:1,vars:0,template:function(n,i){1&n&&(W3(),q3(0))},encapsulation:2}),t})(),S7=(()=>{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?XQ.transform(this.transform):this.transform;return{title:this.title,transform:i,classes:[...iJ(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=eJ(n,i);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(a.html.join("\n"))}}return(e=t).\u0275fac=function(n){return new(n||e)(H(t_),H(cJ),H(oJ),H(lJ,8),H(fJ,8))},e.\u0275cmp=se({type:e,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(n,i){2&n&&(V2("innerHTML",i.renderedIconHTML,Ud),B("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:[M1],decls:0,vars:0,template:function(n,i){},encapsulation:2}),t})(),uJ=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})();function D7(...e){const t=Ar(e),r=Za(e),{args:n,keys:i}=i_(e);if(0===n.length)return Q1([],t);const a=new We(function hJ(e,t,r=Ht){return n=>{ky(t,()=>{const{length:i}=e,a=new Array(i);let s=i,c=i;for(let o=0;o<i;o++)ky(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=>a_(i,s):Ht));return r?a.pipe(t5(r)):a}function ky(e,t,r){e?fn(r,e,t):t()}const Oo=d2(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Py(e){return new We(t=>{j1(e()).subscribe(t)})}function ma(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 d1((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 Fy extends We{constructor(t,r){super(),this.source=t,this.subjectFactory=r,this._subject=null,this._refCount=0,this._connection=null,xr(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new Se;const 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=Se.EMPTY)}return t}refCount(){return L7()(this)}}function Ro(e){return d1((t,r)=>{let n=!1;t.subscribe(qe(r,i=>{n=!0,r.next(i)},()=>{n||r.next(e),r.complete()}))})}function By(e=pJ){return d1((t,r)=>{let n=!1;t.subscribe(qe(r,i=>{n=!0,r.next(i)},()=>n?r.complete():r.error(e())))})}function pJ(){return new Oo}function U4(e,t){const r=arguments.length>=2;return n=>n.pipe(e?N1((i,a)=>e(i,a,n)):Ht,t2(1),r?Ro(t):By(()=>new Oo))}function ga(e,t){return Q(t)?F1(e,t,1):F1(e,1)}function j4(e){return d1((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?()=>ft:d1((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 d1((t,r)=>{try{t.subscribe(r)}finally{r.add(e)}})}const Ce="primary",va=Symbol("RouteTitle");class _J{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 _r(e){return new _J(e)}function CJ(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 cn(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],!Uy(e[i],t[i]))return!1;return!0}function Uy(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 jy(e){return e.length>0?e[e.length-1]:null}function i4(e){return function dJ(e){return!!e&&(e instanceof We||Q(e.lift)&&Q(e.subscribe))}(e)?e:Ci(e)?Q1(Promise.resolve(e)):ae(e)}const yJ={exact:function Wy(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]||!Wy(e.children[n],t.children[n],r))return!1;return!0},subset:qy},Gy={exact:function bJ(e,t){return cn(e,t)},subset:function HJ(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(r=>Uy(e[r],t[r]))},ignored:()=>!0};function $y(e,t,r){return yJ[r.paths](e.root,t.root,r.matrixParams)&&Gy[r.queryParams](e.queryParams,t.queryParams)&&!("exact"===r.fragment&&e.fragment!==t.fragment)}function qy(e,t,r){return Ky(e,t,t.segments,r)}function Ky(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]||!qy(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])&&Ky(e.children[Ce],t,a,n)}}function ko(e,t,r){return t.every((n,i)=>Gy[r](e[i].parameters,n.parameters))}class Cr{constructor(t=new $e([],{}),r={},n=null){this.root=t,this.queryParams=r,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=_r(this.queryParams)),this._queryParamMap}toString(){return zJ.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 _a{constructor(t,r){this.path=t,this.parameters=r}get parameterMap(){return this._parameterMap||(this._parameterMap=_r(this.parameters)),this._parameterMap}toString(){return Qy(this)}}function G4(e,t){return e.length===t.length&&e.every((r,n)=>r.path===t[n].path)}let Ca=(()=>{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 RJ(t);return new Cr(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(t){const r=`/${Ma(t.root,!0)}`,n=function LJ(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 SJ(e){return encodeURI(e)}(t.fragment)}`:""}`}}const zJ=new A7;function Po(e){return e.segments.map(t=>Qy(t)).join("/")}function Ma(e,t){if(!e.hasChildren())return Po(e);if(t){const r=e.children[Ce]?Ma(e.children[Ce],!1):"",n=[];return Object.entries(e.children).forEach(([i,a])=>{i!==Ce&&n.push(`${i}:${Ma(a,!1)}`)}),n.length>0?`${r}(${n.join("//")})`:r}{const r=function VJ(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?[Ma(e.children[Ce],!1)]:[`${i}:${Ma(n,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[Ce]?`${Po(e)}/${r[0]}`:`${Po(e)}/(${r.join("//")})`}}function Yy(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Fo(e){return Yy(e).replace(/%3B/gi,";")}function E7(e){return Yy(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Bo(e){return decodeURIComponent(e)}function Zy(e){return Bo(e.replace(/\+/g,"%20"))}function Qy(e){return`${E7(e.path)}${function DJ(e){return Object.keys(e).map(t=>`;${E7(t)}=${E7(e[t])}`).join("")}(e.parameters)}`}const xJ=/^[^\/()?;#]+/;function T7(e){const t=e.match(xJ);return t?t[0]:""}const NJ=/^[^\/()?;=#]+/,EJ=/^[^=?&#]+/,IJ=/^[^&#]+/;class RJ{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 _a(Bo(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const r=function AJ(e){const t=e.match(NJ);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 TJ(e){const t=e.match(EJ);return t?t[0]:""}(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){const s=function OJ(e){const t=e.match(IJ);return t?t[0]:""}(this.remaining);s&&(n=s,this.capture(n))}const i=Zy(r),a=Zy(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 Jy(e){return e.segments.length>0?new $e([],{[Ce]:e}):e}function Xy(e){const t={};for(const n of Object.keys(e.children)){const a=Xy(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 kJ(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 Cr}function eb(e){let t;const i=Jy(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 tb(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 FJ(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new rb(!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 rb(r,t,n)}(t);if(a.toRoot())return I7(i,i,new $e([],{}),r,n);const s=function BJ(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 UJ(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?ba(s.segmentGroup,s.index,a.commands):ib(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 ya(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:nb(e,t,r);const c=Jy(Xy(s));return new Cr(c,a,i)}function nb(e,t,r){const n={};return Object.entries(e.children).forEach(([i,a])=>{n[i]=a===t?r:nb(a,t,r)}),new $e(e.segments,n)}class rb{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(ya);if(i&&i!==jy(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 ib(e,t,r){if(e||(e=new $e([],{})),0===e.segments.length&&e.hasChildren())return ba(e,t,r);const n=function GJ(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(ya(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(!sb(o,l,s))return a;n+=2}else{if(!sb(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),ba(a,0,i)}return n.match&&0===i.length?new $e(e.segments,{}):n.match&&!e.hasChildren()?O7(e,t,r):n.match?ba(e,0,i):O7(e,t,r)}function ba(e,t,r){if(0===r.length)return new $e(e.segments,{});{const n=function jJ(e){return ya(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=ba(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]=ib(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(ya(a)){const o=$J(a.outlets);return new $e(n,o)}if(0===i&&Uo(r[0])){n.push(new _a(e.segments[t].path,ab(r[0]))),i++;continue}const s=ya(a)?a.outlets[Ce]:`${a}`,c=i<r.length-1?r[i+1]:null;s&&c&&Uo(c)?(n.push(new _a(s,ab(c))),i+=2):(n.push(new _a(s,{})),i++)}return new $e(n,{})}function $J(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 ab(e){const t={};return Object.entries(e).forEach(([r,n])=>t[r]=`${n}`),t}function sb(e,t,r){return e==r.path&&cn(t,r.parameters)}const Ha="imperative";class on{constructor(t,r){this.id=t,this.url=r}}class wa extends on{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 a4 extends on{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 Va extends on{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 Mr extends on{constructor(t,r,n,i){super(t,r),this.reason=n,this.code=i,this.type=16}}class Go extends on{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 cb extends on{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 WJ extends on{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 qJ extends on{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 KJ extends on{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 YJ extends on{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 ZJ{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class QJ{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class JJ{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class XJ{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class eX{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class tX{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ob{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 nX{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new za,this.attachRef=null}}let za=(()=>{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 nX,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 lb{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 An{constructor(t,r){this.value=t,this.children=r}toString(){return`TreeNode(${this.value})`}}function yr(e){const t={};return e&&e.children.forEach(r=>t[r.value.outlet]=r),t}class fb extends lb{constructor(t,r){super(t),this.snapshot=r,B7(this,t)}toString(){return this.snapshot.toString()}}function ub(e,t){const r=function rX(e,t){const s=new $o([],{},{},"",{},Ce,t,null,{});return new hb("",new An(s,[]))}(0,t),n=new ut([new _a("",{})]),i=new ut({}),a=new ut({}),s=new ut({}),c=new ut(""),o=new En(n,i,s,c,a,Ce,t,r.root);return o.snapshot=r.root,new fb(new An(o,[]),r)}class En{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[va]))??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=>_r(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(we(t=>_r(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function db(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 iX(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?.[va]}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=_r(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=_r(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(n=>n.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class hb extends lb{constructor(t,r){super(r),this.url=t,B7(this,r)}toString(){return pb(this._root)}}function B7(e,t){t.value._routerState=e,t.children.forEach(r=>B7(e,r))}function pb(e){const t=e.children.length>0?` { ${e.children.map(pb).join(", ")} } `:"";return`${e.value}${t}`}function U7(e){if(e.snapshot){const t=e.snapshot,r=e._futureSnapshot;e.snapshot=r,cn(t.queryParams,r.queryParams)||e.queryParamsSubject.next(r.queryParams),t.fragment!==r.fragment&&e.fragmentSubject.next(r.fragment),cn(t.params,r.params)||e.paramsSubject.next(r.params),function MJ(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!cn(e[r],t[r]))return!1;return!0}(t.url,r.url)||e.urlSubject.next(r.url),cn(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=cn(e.params,t.params)&&function wJ(e,t){return G4(e,t)&&e.every((r,n)=>cn(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(za),this.location=J(j2),this.changeDetector=J(et),this.environmentInjector=J(P2),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 aX(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:[M1]}),t})();class aX{constructor(t,r,n){this.route=t,this.childContexts=r,this.parent=n}get(t,r){return t===En?this.route:t===za?this.childContexts:this.parent.get(t,r)}}const Wo=new te("");let mb=(()=>{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=D7([i.queryParams,i.params,i.data]).pipe(wt(([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 fU(e){const t=Le(e);if(!t)return null;const r=new hi(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 cX(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 An(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 oX(e){return new En(new ut(e.url),new ut(e.params),new ut(e.queryParams),new ut(e.fragment),new ut(e.data),e.outlet,e.component,e)}(t.value),i=t.children.map(a=>Sa(e,a));return new An(n,i)}}const $7="ngNavigationCancelingError";function gb(e,t){const{redirectTo:r,navigationBehaviorOptions:n}=$4(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=vb(!1,0,t);return i.url=r,i.navigationBehaviorOptions=n,i}function vb(e,t,r){const n=new Error("NavigationCancelingError: "+(e||""));return n[$7]=!0,n.cancellationCode=t,r&&(n.url=r),n}function _b(e){return e&&e[$7]}let Cb=(()=>{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:[S2],decls:1,vars:0,template:function(n,i){1&n&&R(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=Cb),r}function kt(e){return e.outlet||Ce}function Da(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 gX{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=yr(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=yr(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=yr(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=yr(r);t.children.forEach(a=>{this.activateRoutes(a,i[a.value.outlet],n),this.forwardEvent(new tX(a.value.snapshot))}),t.children.length&&this.forwardEvent(new XJ(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=Da(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 Mb{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 vX(e,t,r){const n=e._root;return La(n,t?t._root:null,r,[n.value])}function br(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 La(e,t,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){const a=yr(t);return e.children.forEach(s=>{(function CX(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 MX(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)||!cn(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!j7(e,t)||!cn(e.queryParams,t.queryParams);default:return!j7(e,t)}}(s,a,a.routeConfig.runGuardsAndResolvers);o?i.canActivateChecks.push(new Mb(n)):(a.data=s.data,a._resolvedData=s._resolvedData),La(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&&xa(t,c,i),i.canActivateChecks.push(new Mb(n)),La(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])=>xa(c,r.getContext(s),i)),i}function xa(e,t,r){const n=yr(e),i=e.value;Object.entries(n).forEach(([a,s])=>{xa(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 Na(e){return"function"==typeof e}function yb(e){return e instanceof Oo||"EmptyError"===e?.name}const Ko=Symbol("INITIAL_VALUE");function Hr(){return wt(e=>D7(e.map(t=>t.pipe(t2(1),function hC(...e){const t=Ar(e);return d1((r,n)=>{(t?Gi(e,r,t):Gi(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 Cr)return r}return!0}),N1(t=>t!==Ko),t2(1)))}function bb(e){return function Ua(...e){return Lr(e)}(q1(t=>{if($4(t))throw gb(0,t)}),we(t=>!0===t))}class Yo{constructor(t){this.segmentGroup=t||null}}class Hb{constructor(t){this.urlTree=t}}function wr(e){return ma(new Yo(e))}function wb(e){return ma(new Hb(e))}class FX{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 ma(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 Cr(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 BX(e,t,r,n,i){const a=K7(e,t,r);return a.matched?(n=function fX(e,t){return e.providers&&!e._injector&&(e._injector=Y8(e.providers,t,`Route: ${e.path}`)),e._injector??t}(t,n),function RX(e,t,r,n){const i=t.canMatch;return i&&0!==i.length?ae(i.map(s=>{const c=br(s,e);return i4(function zX(e){return e&&Na(e.canMatch)}(c)?c.canMatch(t,r):e.runInContext(()=>c(t,r)))})).pipe(Hr(),bb()):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||CJ)(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 Vb(e,t,r,n){return r.length>0&&function GX(e,t,r){return r.some(n=>Zo(e,t,n)&&kt(n)!==Ce)}(e,r,n)?{segmentGroup:new $e(t,jX(n,new $e(r,e.children))),slicedSegments:[]}:0===r.length&&function $X(e,t,r){return r.some(n=>Zo(e,t,n))}(e,r,n)?{segmentGroup:new $e(e.segments,UX(e,0,r,n,e.children)),slicedSegments:r}:{segmentGroup:new $e(e.segments,e.children),slicedSegments:r}}function UX(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 jX(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 YX{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 FX(this.urlSerializer,this.urlTree)}noMatchError(t){return new F(4002,!1)}recognize(){const t=Vb(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,Ce).pipe(j4(r=>{if(r instanceof Hb)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 An(n,r),a=new hb("",i),s=function PJ(e,t,r=null,n=null){return tb(eb(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=db(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(ga(a=>{const s=n.children[a],c=function pX(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 gJ(e,t){return d1(function mJ(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 vJ(e,t){const r=arguments.length>=2;return n=>n.pipe(e?N1((i,a)=>e(i,a,n)):Ht,x7(1),r?Ro(t):By(()=>new Oo))}(),F1(a=>{if(null===a)return wr(n);const s=zb(a);return function ZX(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(ga(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(yb(c))return function qX(e,t,r){return 0===t.length&&!e.children[r]}(n,i,a)?ae([]):wr(n);throw c}))}processSegmentAgainstRoute(t,r,n,i,a,s,c){return function WX(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):wr(i):wr(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("/")?wb(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 wr(r);const d=this.applyRedirects.applyRedirectCommands(o,i.redirectTo,f);return i.redirectTo.startsWith("/")?wb(d):this.applyRedirects.lineralizeSegments(i,d).pipe(F1(m=>this.processSegment(t,n,r,m.concat(l),s,!1)))}matchSegmentAgainstRoute(t,r,n,i,a,s){let c;if("**"===n.path){const o=i.length>0?jy(i).parameters:{};c=ae({snapshot:new $o(i,o,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Sb(n),kt(n),n.component??n._loadedComponent??null,n,Db(n)),consumedSegments:[],remainingSegments:[]}),r.children={}}else c=BX(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,Sb(n),kt(n),n.component??n._loadedComponent??null,n,Db(n)),consumedSegments:l,remainingSegments:f}:null));return c.pipe(wt(o=>null===o?wr(r):this.getChildConfig(t=n._injector??t,n,i).pipe(wt(({routes:l})=>{const f=n._loadedInjector??t,{snapshot:d,consumedSegments:m,remainingSegments:g}=o,{segmentGroup:w,slicedSegments:z}=Vb(r,m,g,l);if(0===z.length&&w.hasChildren())return this.processChildren(f,l,w).pipe(we(T=>null===T?null:[new An(d,T)]));if(0===l.length&&0===z.length)return ae([new An(d,[])]);const L=kt(n)===a;return this.processSegment(f,l,w,z,L?Ce:a,!0).pipe(we(T=>[new An(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 OX(e,t,r,n){const i=t.canLoad;return void 0===i||0===i.length?ae(!0):ae(i.map(s=>{const c=br(s,e);return i4(function bX(e){return e&&Na(e.canLoad)}(c)?c.canLoad(t,r):e.runInContext(()=>c(t,r)))})).pipe(Hr(),bb())}(t,r,n).pipe(F1(i=>i?this.configLoader.loadChildren(t,r).pipe(q1(a=>{r._loadedRoutes=a.routes,r._loadedInjector=a.injector})):function PX(e){return ma(vb(!1,3))}())):ae({routes:[],injector:t})}}function QX(e){const t=e.value.routeConfig;return t&&""===t.path}function zb(e){const t=[],r=new Set;for(const n of e){if(!QX(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=zb(n.children);t.push(new An(n.value,i))}return t.filter(n=>!r.has(n))}function Sb(e){return e.data||{}}function Db(e){return e.resolve||{}}function Lb(e){return"string"==typeof e.title||null===e.title}function Y7(e){return wt(t=>{const r=e(t);return r?Q1(r).pipe(we(()=>t)):ae(t)})}const Vr=new te("ROUTES");let Z7=(()=>{var e;class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=J(Ng)}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=i4(n.loadComponent()).pipe(we(xb),q1(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),N7(()=>{this.componentLoaders.delete(n)})),a=new Fy(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 iee(e,t,r,n){return i4(e.loadChildren()).pipe(we(xb),F1(i=>i instanceof Fm||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(Vr,[],{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 Fy(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 xb(e){return function aee(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(P2),this.urlSerializer=J(Ca),this.rootContexts=J(za),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 QJ(a)),this.configLoader.onLoadStartListener=a=>this.events.next(new ZJ(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 ut({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:Ha,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)})),wt(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}}),wt(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 Mr(l.id,this.urlSerializer.serialize(l.rawUrl),g,0)),l.resolve(null),ft}if(n.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return ae(l).pipe(wt(g=>{const w=this.transitions?.getValue();return this.events.next(new wa(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),w!==this.transitions?.getValue()?ft:Promise.resolve(g)}),function JX(e,t,r,n,i,a){return F1(s=>function KX(e,t,r,n,i,a,s="emptyOnly"){return new YX(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 cb(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,D=new wa(g,this.urlSerializer.serialize(w),z,L);this.events.next(D);const U=ub(0,this.rootComponentType).snapshot;return this.currentTransition=s={...l,targetSnapshot:U,urlAfterRedirects:w,extras:{...T,skipLocationChange:!1,replaceUrl:!1}},ae(s)}{const g="";return this.events.next(new Mr(l.id,this.urlSerializer.serialize(l.extractedUrl),g,1)),l.resolve(null),ft}}),q1(l=>{const f=new WJ(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:vX(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 LX(e,t,r,n){return Q1(e).pipe(F1(i=>function IX(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=Da(t)??i,l=br(c,o);return i4(function VX(e){return e&&Na(e.canDeactivate)}(l)?l.canDeactivate(e,t,r,n):o.runInContext(()=>l(e,t,r,n))).pipe(U4())})).pipe(Hr()):ae(!0)}(i.component,i.route,r,t,n)),U4(i=>!0!==i,!0))}(s,n,i,e).pipe(F1(c=>c&&function yX(e){return"boolean"==typeof e}(c)?function xX(e,t,r,n){return Q1(t).pipe(ga(i=>Gi(function AX(e,t){return null!==e&&t&&t(new JJ(e)),ae(!0)}(i.route.parent,n),function NX(e,t){return null!==e&&t&&t(new eX(e)),ae(!0)}(i.route,n),function TX(e,t,r){const n=t[t.length-1],a=t.slice(0,t.length-1).reverse().map(s=>function _X(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=>Py(()=>ae(s.guards.map(o=>{const l=Da(s.node)??r,f=br(o,l);return i4(function wX(e){return e&&Na(e.canActivateChild)}(f)?f.canActivateChild(n,e):l.runInContext(()=>f(n,e))).pipe(U4())})).pipe(Hr())));return ae(a).pipe(Hr())}(e,i.path,r),function EX(e,t,r){const n=t.routeConfig?t.routeConfig.canActivate:null;if(!n||0===n.length)return ae(!0);const i=n.map(a=>Py(()=>{const s=Da(t)??r,c=br(a,s);return i4(function HX(e){return e&&Na(e.canActivate)}(c)?c.canActivate(t,e):s.runInContext(()=>c(t,e))).pipe(U4())}));return ae(i).pipe(Hr())}(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 gb(0,l.guardsResult);const f=new qJ(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 KJ(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(d)}),wt(f=>{let d=!1;return ae(f).pipe(function XX(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(ga(s=>function eee(e,t,r,n){const i=e.routeConfig,a=e._resolve;return void 0!==i?.title&&!Lb(i)&&(a[va]=i.title),function tee(e,t,r,n){const i=function nee(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===i.length)return ae({});const a={};return Q1(i).pipe(F1(s=>function ree(e,t,r,n){const i=Da(t)??n,a=br(e,i);return i4(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),fC(a),j4(s=>yb(s)?ft:ma(s)))}(a,e,t,n).pipe(we(s=>(e._resolvedData=s,e.data=db(e,r).resolve,i&&Lb(i)&&(e.data[va]=i.title),null)))}(s.route,n,e,t)),q1(()=>a++),x7(1),F1(s=>a===i.length?ae(r):ft))})}(n.paramsInheritanceStrategy,this.environmentInjector),q1({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(f,"",2)}}))}),q1(f=>{const d=new YJ(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(d)}))}),Y7(l=>{const f=d=>{const m=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&m.push(this.configLoader.loadComponent(d.routeConfig).pipe(q1(g=>{d.component=g}),we(()=>{})));for(const g of d.children)m.push(...f(g));return m};return D7(f(l.targetSnapshot.root)).pipe(Ro(),t2(1))}),Y7(()=>this.afterPreactivation()),we(l=>{const f=function sX(e,t,r){const n=Sa(e,t._root,r?r._root:void 0);return new fb(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 gX(t,i.targetRouterState,i.currentRouterState,r,n).activate(e),i)))(this.rootContexts,n.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),t2(1),q1({next:l=>{c=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new a4(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,_b(l))this.events.next(new Va(s.id,this.urlSerializer.serialize(s.extractedUrl),l.message,l.cancellationCode)),function lX(e){return _b(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 ft}))}))}cancelNavigationTransition(n,i,a){const s=new Va(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 Nb(e){return e!==Ha}let Ab=(()=>{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[va]}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:function(){return J(see)},providedIn:"root"}),t})(),see=(()=>{var e;class t extends Ab{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(Jv))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),cee=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:function(){return J(lee)},providedIn:"root"}),t})();class oee{shouldDetach(t){return!1}store(t,r){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,r){return t.routeConfig===r.routeConfig}}let lee=(()=>{var e;class t extends oee{}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 fee=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:function(){return J(uee)},providedIn:"root"}),t})(),uee=(()=>{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 Aa=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(Aa||{});function Eb(e,t){e.events.pipe(N1(r=>r instanceof a4||r instanceof Va||r instanceof Go||r instanceof Mr),we(r=>r instanceof a4||r instanceof Mr?Aa.COMPLETE:r instanceof Va&&(0===r.code||1===r.code)?Aa.REDIRECTING:Aa.FAILED),N1(r=>r!==Aa.REDIRECTING),t2(1)).subscribe(()=>{t()})}function dee(e){throw e}function hee(e,t,r){return t.parse("/")}const pee={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},mee={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(Lg),this.isNgZoneEnabled=!1,this._events=new ue,this.options=J(Jo,{optional:!0})||{},this.pendingTasks=J(xg),this.errorHandler=this.options.errorHandler||dee,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||hee,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=J(fee),this.routeReuseStrategy=J(cee),this.titleStrategy=J(Ab),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(Vr,{optional:!0})?.flat()??[],this.navigationTransitions=J(Qo),this.urlSerializer=J(Ca),this.location=J(Ll),this.componentInputBindingEnabled=!!J(Wo,{optional:!0}),this.eventsSubscription=new Se,this.isNgZoneEnabled=J(ye)instanceof ye&&ye.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Cr,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=ub(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(Tb(i)&&this._events.next(i));if(i instanceof wa)Nb(a.source)&&(this.browserUrlTree=a.extractedUrl);else if(i instanceof Mr)this.rawUrlTree=a.rawUrl;else if(i instanceof cb){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 Va)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||Nb(a.source)};this.scheduleNavigation(s,Ha,null,c,{resolve:a.resolve,reject:a.reject,promise:a.promise})}i instanceof Go&&this.restoreHistory(a,!0),i instanceof a4&&(this.navigated=!0),Tb(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),Ha,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 m,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{m=eb(a?a.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof n[0]||!n[0].startsWith("/"))&&(n=[]),m=this.currentUrlTree.root}return tb(m,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,Ha,null,i)}navigate(n,i={skipLocationChange:!1}){return function gee(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?{...pee}:!1===i?{...mee}:i,$4(n))return $y(this.currentUrlTree,n,a);const s=this.parseUrl(n);return $y(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((m,g)=>{o=m,l=g});const d=this.pendingTasks.add();return Eb(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(m=>Promise.reject(m))}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 Tb(e){return!(e instanceof R7||e instanceof k7)}let Pt=(()=>{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 a4&&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 Gd(e,t,r){return function TI(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?jd:D3}(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(En),function h4(e){return function JE(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(Ou(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}(o2(),e)}("tabindex"),H(l2),H(Ne),H(Kn))},e.\u0275dir=W({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,i){1&n&&O("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),2&n&&B("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",tr],skipLocationChange:["skipLocationChange","skipLocationChange",tr],replaceUrl:["replaceUrl","replaceUrl",tr],routerLink:"routerLink"},standalone:!0,features:[rp,M1]}),t})();class Ib{}let Cee=(()=>{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 a4),ga(()=>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(t3())}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(t3()):s})}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(_2),Y(Ng),Y(P2),Y(Ib),Y(Z7))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const Q7=new te("");let Ob=(()=>{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 wa?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof a4?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof Mr&&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 ob&&(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 ob(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 xh(){throw new Error("invalid")}()},e.\u0275prov=K({token:e,factory:e.\u0275fac}),t})();function Tn(e,t){return{\u0275kind:e,\u0275providers:t}}function kb(){const e=J(B1);return t=>{const r=e.get(nn);if(t!==r.components[0])return;const n=e.get(_2),i=e.get(Pb);1===e.get(J7)&&n.initialNavigation(),e.get(Fb,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 Pb=new te("",{factory:()=>new ue}),J7=new te("",{providedIn:"root",factory:()=>1}),Fb=new te("");function Hee(e){return Tn(0,[{provide:Fb,useExisting:Cee},{provide:Ib,useExisting:e}])}const Bb=new te("ROUTER_FORROOT_GUARD"),Vee=[Ll,{provide:Ca,useClass:A7},_2,za,{provide:En,useFactory:function Rb(e){return e.routerState.root},deps:[_2]},Z7,[]];function zee(){return new kg("Router",_2)}let Ub=(()=>{var e;class t{constructor(n){}static forRoot(n,i){return{ngModule:t,providers:[Vee,[],{provide:Vr,multi:!0,useValue:n},{provide:Bb,useFactory:xee,deps:[[_2,new bs,new Hs]]},{provide:Jo,useValue:i||{}},i?.useHash?{provide:Kn,useClass:mv}:{provide:Kn,useClass:pv},{provide:Q7,useFactory:()=>{const e=J(Ej),t=J(ye),r=J(Jo),n=J(Qo),i=J(Ca);return r.scrollOffset&&e.setOffset(r.scrollOffset),new Ob(i,n,e,t,r)}},i?.preloadingStrategy?Hee(i.preloadingStrategy).\u0275providers:[],{provide:kg,multi:!0,useFactory:zee},i?.initialNavigation?Nee(i):[],i?.bindToComponentInputs?Tn(8,[mb,{provide:Wo,useExisting:mb}]).\u0275providers:[],[{provide:jb,useFactory:kb},{provide:_l,multi:!0,useExisting:jb}]]}}static forChild(n){return{ngModule:t,providers:[{provide:Vr,multi:!0,useValue:n}]}}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(Bb,8))},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})();function xee(e){return"guarded"}function Nee(e){return["disabled"===e.initialNavigation?Tn(3,[{provide:fl,multi:!0,useFactory:()=>{const t=J(_2);return()=>{t.setUpLocationChangeListener()}}},{provide:J7,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?Tn(2,[{provide:J7,useValue:0},{provide:fl,multi:!0,deps:[B1],useFactory:t=>{const r=t.get(hU,Promise.resolve());return()=>r.then(()=>new Promise(n=>{const i=t.get(_2),a=t.get(Pb);Eb(i,()=>{n(!0)}),t.get(Qo).afterPreactivation=()=>(n(!0),a.closed?ae(void 0):a),i.initialNavigation()}))}}]).\u0275providers:[]]}const jb=new te("");let Eee=(()=>{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&&(p(0,"div",0)(1,"div",1),R(2,"img",2),v(),p(3,"h3",3),M(4," Welcome to"),R(5,"br"),p(6,"b",4),M(7,"Eufy Security Plugin"),v()(),p(8,"h6",3),M(9,"Homebridge plugin for Eufy Security Devices"),v(),R(10,"hr"),p(11,"div",5),R(12,"router-outlet"),v(),R(13,"hr"),p(14,"div",6),M(15,"We are not affiliated, associated, authorized, endorsed by, or in any way officially connected with Anker Innovations Technology Co.LTd, and Shenzhen Oceanwing Smart Innovations Technology Co., Ltd, and its affiliated companies within the Anker Group, or any of its subsidiaries or its affiliates. "),v()()),2&n&&(C(2),y("src",i.logoSrc,D3))},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 Gb(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 de(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var a=e.apply(t,r);function s(o){Gb(a,n,i,s,c,"next",o)}function c(o){Gb(a,n,i,s,c,"throw",o)}s(void 0)})}}var eH={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"]},fw={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"]},Hz={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"]},xL={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 ka{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 Yf=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}(Yf||{});const Zf=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 Ke=(()=>{var e;class t extends EventTarget{constructor(){super(),V(this,"stations",[]),V(this,"devices",[]),V(this,"accessories$",e2(window.homebridge,"addAccessory")),V(this,"config",void 0),this.init()}init(){this.accessories$.subscribe(n=>{this.loadStoredAccessories()}),this.loadStoredAccessories()}getStations(){return this.stations}getDevices(){return this.devices}getStation(n){return this.stations.find(i=>i.uniqueId===n)}getDevice(n){return this.devices.find(i=>i.uniqueId===n)}loadStoredAccessories(){var n=this;return de(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 de(function*(){return n.config?Promise.resolve(n.config):n.getPlatformConfig()})()}updateConfig(n,i){var a=this;return de(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 de(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 de(function*(){let a;return(yield window.homebridge.getCachedAccessories()).forEach(s=>{s.context&&s.context.device&&s.context.device.uniqueId===n.uniqueId&&s.context.device.station===n.station&&(a=s.context.device.displayName)}),Promise.resolve(a)})()}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)}),V(t,"\u0275prov",K({token:e,factory:e.\u0275fac,providedIn:"root"})),t})();function t_e(e,t){if(1&e){const r=b1();p(0,"div",2)(1,"h4",3),M(2,"Refresh stations and devices"),v(),p(3,"button",4),O("click",function(){return $(G(r).$implicit.dismiss("Cross click"))}),v()(),p(4,"div",5)(5,"div",6),M(6," To refresh all stations and devices you will be logged into your eufy account. This can interfere with the plugins connection to the eufy cloud. "),R(7,"p"),p(8,"b",7),M(9,"We strongly recommened that you restart the plugin after you're done with the configuration even if you didn't change any settings."),v(),R(10,"p"),M(11," Otherwise you might experience glitches like no longer working push notifications for the plugin (see "),p(12,"a",8),M(13,"here"),v(),M(14," for more information). "),v()(),p(15,"div",9)(16,"a",10),O("click",function(){return $(G(r).$implicit.close("Login"))}),M(17,"Login with eufy"),v()()}}function n_e(e,t){1&e&&(p(0,"div",11)(1,"div",12),R(2,"div",13),p(3,"div",14)(4,"div",15)(5,"div",16),M(6," Loading Accessories... "),p(7,"div",17),R(8,"div",18),v()()()(),R(9,"div",13),v()())}function r_e(e,t){if(1&e&&(p(0,"span",42),R(1,"fa-icon",43),v()),2&e){const r=x(3);C(1),y("icon",r.ignoreIcon)}}function i_e(e,t){if(1&e&&(p(0,"div",31)(1,"div",32)(2,"div",33)(3,"a",34)(4,"div",35),R(5,"img",36),p(6,"span",37),R(7,"fa-icon",38),v(),I(8,r_e,2,1,"span",39),v()()()(),p(9,"span",40),M(10),v(),p(11,"span",41),M(12),v()()),2&e){const r=t.$implicit,n=x(2);let i;C(3),K3("routerLink","/stationConfig/",r.uniqueId,""),C(2),y("src","assets/devices/"+(n.DeviceImage.get(r.type)?null==(i=n.DeviceImage.get(r.type))?null:i.image:"unknown.png"),D3),B("style",n.getDevicePanelStyle(r),k2),C(2),y("icon",n.settingsIcon),C(1),y("ngIf",r.ignored),C(2),B2(r.cachedName?r.cachedName:r.displayName),C(2),w2("(",r.uniqueId,")")}}function a_e(e,t){if(1&e&&(p(0,"span",42),R(1,"fa-icon",43),v()),2&e){const r=x(3);C(1),y("icon",r.ignoreIcon)}}function s_e(e,t){if(1&e&&(p(0,"div",31)(1,"div",32)(2,"div",33)(3,"a",34)(4,"div",35),R(5,"img",36),p(6,"span",37),R(7,"fa-icon",38),v(),I(8,a_e,2,1,"span",39),v()()()(),p(9,"span",40),M(10),v(),p(11,"span",41),M(12),v()()),2&e){const r=t.$implicit,n=x(2);let i;C(3),K3("routerLink","/cameraConfig/",r.uniqueId,""),C(2),y("src","assets/devices/"+(n.DeviceImage.get(r.type)?null==(i=n.DeviceImage.get(r.type))?null:i.image:"unknown.png"),D3),B("style",n.getDevicePanelStyle(r),k2),C(2),y("icon",n.settingsIcon),C(1),y("ngIf",r.ignored),C(2),B2(r.cachedName?r.cachedName:r.displayName),C(2),w2("(",r.uniqueId,")")}}function c_e(e,t){if(1&e){const r=b1();p(0,"div",11)(1,"div",19)(2,"div",20)(3,"button",21),O("click",function(){G(r);const i=x(),a=F2(1);return $(i.openReloadModal(a))}),R(4,"fa-icon",22),v()(),p(5,"div",23)(6,"a",24),M(7,"Plugin Settings"),v()()(),R(8,"p"),p(9,"span"),M(10,"Click on any device below to access its settings."),v(),R(11,"p"),p(12,"div",25)(13,"div",26),M(14," Stations "),v(),p(15,"div",27)(16,"div",19),I(17,i_e,13,7,"div",28),v()()(),R(18,"p"),p(19,"div",25)(20,"div",26),M(21," Devices "),v(),p(22,"div",29)(23,"div",19),I(24,s_e,13,7,"div",28),v()()(),R(25,"p"),p(26,"span")(27,"i"),M(28,"The images used above are 'best effort' for now, since we do not own every eufy device. If you experience that your device is depicted with a wrong image please feel free to let us know in an issue on our "),p(29,"a",30),M(30,"Github page."),v()()()()}if(2&e){const r=x();C(4),y("icon",r.reloadIcon),C(13),y("ngForOf",r.stations),C(7),y("ngForOf",r.devices)}}let o_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",fw),V(this,"reloadIcon",Pf),V(this,"DeviceImage",Zf),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 de(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===ta.ESC?"by pressing ESC":n===ta.BACKDROP_CLICK?"by clicking on a backdrop":`with: ${n}`}getDevicePanelStyle(n){let i="";return n.ignored&&(i+="opacity: 0.2;"),Zf.get(n.type)?i+="padding:"+Zf.get(n.type)?.padding:i+="padding:20px",i}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(mM),H(Ke),H(En),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&&(I(0,t_e,18,0,"ng-template",null,0,D2),I(2,n_e,10,0,"div",1),I(3,c_e,31,3,"div",1)),2&n&&(C(2),y("ngIf",0===i.stations.length&&0===i.devices.length),C(1),y("ngIf",0!==i.stations.length||0!==i.devices.length))},dependencies:[nt,L1,Pt,S7],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 ln={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 _1{constructor(t){V(this,"pluginService",void 0),V(this,"config",void 0),this.pluginService=t,this.config=ln,this.pluginService.getConfig().then(r=>{this.config={...this.config,...r}}).catch(r=>console.log("Could not get config in config interpreter: "+r))}getCameraConfig(t){var r=this;return de(function*(){const n=yield r.pluginService.getConfig();if(Array.isArray(n.cameras))return n.cameras.find(i=>i.serialNumber===t)||void 0})()}getStationConfig(t){var r=this;return de(function*(){const n=yield r.pluginService.getConfig();if(Array.isArray(n.stations))return n.stations.find(i=>i.serialNumber===t)||void 0})()}updateConfig(t,r){var n=this;return de(function*(){let i=yield n.pluginService.getConfig();if(r||(i={...ln,...i,...t}),r&&!1===r.station){Array.isArray(i.cameras)||(i.cameras=[]);const a=i.cameras.findIndex(s=>s.serialNumber===r.uniqueId);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=[]);const a=i.stations.findIndex(s=>s.serialNumber===r.uniqueId);a>=0?i.stations[a]={...i.stations[a],...t}:i.stations.push({serialNumber:r.uniqueId,...t})}n.pluginService.updateConfig(i)})()}}let l_e=(()=>{var e;class t extends _1{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(Ke))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-enable-detailed-logging"]],features:[re],decls:9,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(n,i){1&n&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Debug Mode"),v(),p(4,"div",2)(5,"input",3),O("ngModelChange",function(s){return i.model=s})("change",function(){return i.update()}),v()()(),p(6,"small")(7,"i"),M(8," This will output more information to the homebridge logs. This helps the plugin team to understand what's going on. "),v()()()),2&n&&(C(5),y("ngModel",i.model))},dependencies:[X1,g1,o1],encapsulation:2})),t})(),f_e=(()=>{var e;class t extends _1{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(Ke))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-polling-interval-minutes"]],features:[re],decls:13,vars:2,consts:[[1,"settingsItem","row","p-3","pb-0"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],[1,"input-group","input-group-sm"],["type","number","aria-label","Polling interval minutes","aria-describedby","basic-addon2",3,"ngModel","ngModelChange","change"],[1,"input-group-append"],["id","basic-addon2",1,"input-group-text"]],template:function(n,i){1&n&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Polling Interval"),v(),p(4,"div",2)(5,"div",3)(6,"input",4),O("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),v(),p(7,"div",5)(8,"span",6),M(9,"minutes"),v()()()()(),p(10,"small")(11,"i"),M(12," Time in minutes before polling the eufy cloud for updated device information (set to 0 for no polling). "),v()()()),2&n&&(C(6),y("ngModel",i.value),B("class",i.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},dependencies:[wn,V4,g1,o1],encapsulation:2})),t})(),u_e=(()=>{var e;class t extends _1{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(Ke))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-livestream-duration-seconds"]],features:[re],decls:13,vars:2,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],[1,"input-group","input-group-sm"],["type","number","aria-label","Polling interval minutes","aria-describedby","basic-addon2",3,"ngModel","ngModelChange","change"],[1,"input-group-append"],["id","basic-addon2",1,"input-group-text"]],template:function(n,i){1&n&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Maximum Livestream Duration"),v(),p(4,"div",2)(5,"div",3)(6,"input",4),O("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),v(),p(7,"div",5)(8,"span",6),M(9,"seconds"),v()()()()(),p(10,"small")(11,"i"),M(12," Time in second before ending the livestream automatically (longer livestreams imply shorter batterylife) "),v()()()),2&n&&(C(6),y("ngModel",i.value),B("class",i.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},dependencies:[wn,V4,g1,o1],encapsulation:2})),t})(),d_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&&(p(0,"div",0)(1,"div",1)(2,"span",2),M(3,"Change username, password and country"),v(),p(4,"a",3),M(5,"New Login"),v()()())},dependencies:[Pt],encapsulation:2})),t})(),h_e=(()=>{var e;class t extends _1{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(Ke))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-clean-cache"]],features:[re],decls:9,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(n,i){1&n&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Clean cache automatically"),v(),p(4,"div",2)(5,"input",3),O("ngModelChange",function(s){return i.model=s})("change",function(){return i.update()}),v()()(),p(6,"small")(7,"i"),M(8," When enabled, you let the plugin clean accessory when removed from the Eufy app. "),v()()()),2&n&&(C(5),y("ngModel",i.model))},dependencies:[X1,g1,o1],encapsulation:2})),t})(),p_e=(()=>{var e;class t extends _1{constructor(n){super(n),V(this,"model",!1)}ngOnInit(){this.readValue()}readValue(){const n=Object.prototype.hasOwnProperty.call(this.config,"unbridge")?this.config.unbridge:ln.unbridge;this.model=n}update(){this.updateConfig({unbridge:this.model})}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Ke))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-unbridge-accessory"]],features:[re],decls:12,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"],["href","https://github.com/homebridge-eufy-security/plugin/wiki/Bridged-and-Unbridged-Mode-and-Problems","target","_blank","rel","noopener noreferrer"]],template:function(n,i){1&n&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Unbridge Camera"),v(),p(4,"div",2)(5,"input",3),O("ngModelChange",function(s){return i.model=s})("change",function(){return i.update()}),v()()(),p(6,"small")(7,"i"),M(8," Bridged cameras can cause slowdowns of the entire Homebridge instance. If unbridged, the camera will need to be added to HomeKit manually. See "),p(9,"a",4),M(10,"here"),v(),M(11," for mor details. "),v()()()),2&n&&(C(5),y("ngModel",i.model))},dependencies:[X1,g1,o1],encapsulation:2})),t})();function m_e(e,t){1&e&&(p(0,"span"),M(1,"These settings will only apply for this station. The global mappings can be found in the plugin settings."),v())}function g_e(e,t){1&e&&(p(0,"option",6),M(1,"Use global setting"),v()),2&e&&y("ngValue",void 0)}function v_e(e,t){1&e&&(p(0,"option",6),M(1,"Use global setting"),v()),2&e&&y("ngValue",void 0)}function __e(e,t){1&e&&(p(0,"option",6),M(1,"Use global setting"),v()),2&e&&y("ngValue",void 0)}function C_e(e,t){1&e&&(p(0,"option",6),M(1,"Use global setting"),v()),2&e&&y("ngValue",void 0)}let Cx=(()=>{var e;class t extends _1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"hkHome",void 0),V(this,"hkAway",void 0),V(this,"hkNight",void 0),V(this,"hkOff",void 0)}ngOnInit(){this.readValue()}readValue(){var n=this;return de(function*(){const 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=ln.hkHome),i&&Object.prototype.hasOwnProperty.call(i,"hkAway")?n.hkAway=i.hkAway:n.accessory||(n.hkAway=ln.hkAway),i&&Object.prototype.hasOwnProperty.call(i,"hkNight")?n.hkNight=i.hkNight:n.accessory||(n.hkNight=ln.hkNight),i&&Object.prototype.hasOwnProperty.call(i,"hkOff")?n.hkOff=i.hkOff:n.accessory||(n.hkOff=ln.hkOff)})()}update(){var n=this;return de(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(Ke))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-guard-modes-mapping"]],inputs:{accessory:"accessory"},features:[re],decls:90,vars:41,consts:[[1,"settingsItem","row","p-3"],[4,"ngIf"],[1,"input-group","mb-1"],["for","inputGroupSelect01",1,"input-group-text","w-25"],["id","inputGroupSelect01",1,"form-select",3,"ngModel","ngModelChange","change"],[3,"ngValue",4,"ngIf"],[3,"ngValue"],["for","inputGroupSelect02",1,"input-group-text","w-25"],["id","inputGroupSelect02",1,"form-select",3,"ngModel","ngModelChange","change"],["for","inputGroupSelect03",1,"input-group-text","w-25"],["id","inputGroupSelect03",1,"form-select",3,"ngModel","ngModelChange","change"],["for","inputGroupSelect04",1,"input-group-text","w-25"],["id","inputGroupSelect04",1,"form-select",3,"ngModel","ngModelChange","change"]],template:function(n,i){1&n&&(p(0,"div",0)(1,"span"),M(2,"Change how each mode in the HomeKit security system is mapped to the modes in the Eufy App."),v(),R(3,"p"),I(4,m_e,2,0,"span",1),R(5,"p"),p(6,"div",2)(7,"label",3),M(8,"HomeKit Home"),v(),p(9,"select",4),O("ngModelChange",function(s){return i.hkHome=s})("change",function(){return i.update()}),I(10,g_e,2,1,"option",5),p(11,"option",6),M(12,"Eufy Home"),v(),p(13,"option",6),M(14,"Eufy Away"),v(),p(15,"option",6),M(16,"Eufy Schedule"),v(),p(17,"option",6),M(18,"Eufy Custom 1 (Night)"),v(),p(19,"option",6),M(20,"Eufy Custom 2"),v(),p(21,"option",6),M(22,"Eufy Custom 3"),v(),p(23,"option",6),M(24,"Eufy Geofencing"),v(),p(25,"option",6),M(26,"Eufy Disarmed"),v()()(),p(27,"div",2)(28,"label",7),M(29,"HomeKit Away"),v(),p(30,"select",8),O("ngModelChange",function(s){return i.hkAway=s})("change",function(){return i.update()}),I(31,v_e,2,1,"option",5),p(32,"option",6),M(33,"Eufy Home"),v(),p(34,"option",6),M(35,"Eufy Away"),v(),p(36,"option",6),M(37,"Eufy Schedule"),v(),p(38,"option",6),M(39,"Eufy Custom 1 (Night)"),v(),p(40,"option",6),M(41,"Eufy Custom 2"),v(),p(42,"option",6),M(43,"Eufy Custom 3"),v(),p(44,"option",6),M(45,"Eufy Geofencing"),v(),p(46,"option",6),M(47,"Eufy Disarmed"),v()()(),p(48,"div",2)(49,"label",9),M(50,"HomeKit Night"),v(),p(51,"select",10),O("ngModelChange",function(s){return i.hkNight=s})("change",function(){return i.update()}),I(52,__e,2,1,"option",5),p(53,"option",6),M(54,"Eufy Home"),v(),p(55,"option",6),M(56,"Eufy Away"),v(),p(57,"option",6),M(58,"Eufy Schedule"),v(),p(59,"option",6),M(60,"Eufy Custom 1 (Night)"),v(),p(61,"option",6),M(62,"Eufy Custom 2"),v(),p(63,"option",6),M(64,"Eufy Custom 3"),v(),p(65,"option",6),M(66,"Eufy Geofencing"),v(),p(67,"option",6),M(68,"Eufy Disarmed"),v()()(),p(69,"div",2)(70,"label",11),M(71,"HomeKit Off"),v(),p(72,"select",12),O("ngModelChange",function(s){return i.hkOff=s})("change",function(){return i.update()}),I(73,C_e,2,1,"option",5),p(74,"option",6),M(75,"Eufy Home"),v(),p(76,"option",6),M(77,"Eufy Away"),v(),p(78,"option",6),M(79,"Eufy Schedule"),v(),p(80,"option",6),M(81,"Eufy Custom 1 (Night)"),v(),p(82,"option",6),M(83,"Eufy Custom 2"),v(),p(84,"option",6),M(85,"Eufy Custom 3"),v(),p(86,"option",6),M(87,"Eufy Geofencing"),v(),p(88,"option",6),M(89,"Eufy Disarmed"),v()()()()),2&n&&(C(4),y("ngIf",i.accessory),C(5),y("ngModel",i.hkHome),C(1),y("ngIf",i.accessory),C(1),y("ngValue",1),C(2),y("ngValue",0),C(2),y("ngValue",2),C(2),y("ngValue",3),C(2),y("ngValue",4),C(2),y("ngValue",5),C(2),y("ngValue",47),C(2),y("ngValue",63),C(5),y("ngModel",i.hkAway),C(1),y("ngIf",i.accessory),C(1),y("ngValue",1),C(2),y("ngValue",0),C(2),y("ngValue",2),C(2),y("ngValue",3),C(2),y("ngValue",4),C(2),y("ngValue",5),C(2),y("ngValue",47),C(2),y("ngValue",63),C(5),y("ngModel",i.hkNight),C(1),y("ngIf",i.accessory),C(1),y("ngValue",1),C(2),y("ngValue",0),C(2),y("ngValue",2),C(2),y("ngValue",3),C(2),y("ngValue",4),C(2),y("ngValue",5),C(2),y("ngValue",47),C(2),y("ngValue",63),C(5),y("ngModel",i.hkOff),C(1),y("ngIf",i.accessory),C(1),y("ngValue",1),C(2),y("ngValue",0),C(2),y("ngValue",2),C(2),y("ngValue",3),C(2),y("ngValue",4),C(2),y("ngValue",5),C(2),y("ngValue",47),C(2),y("ngValue",63))},dependencies:[L1,z4,S4,Vn,g1,o1],encapsulation:2})),t})(),M_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&&(p(0,"div",0)(1,"div",1)(2,"span",2),M(3,"Reset Plugin"),v(),p(4,"a",3),M(5,"Remove everything"),v()(),p(6,"small")(7,"i"),M(8," This will delete the plugin settings and files. Please be aware that this will not delete any cached accessories from homebridge. You'll have to remove these manually via the homebridge UI. "),v()()())},dependencies:[Pt],encapsulation:2})),t})(),y_e=(()=>{var e;class t extends _1{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(Ke))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-omit-log-files"]],features:[re],decls:9,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(n,i){1&n&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Don't store log files"),v(),p(4,"div",2)(5,"input",3),O("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),v()()(),p(6,"small")(7,"i"),M(8," This setting prevents log files to be stored to disk. If enabled, log messages will only be written to the Homebridge UI log window. "),v()()()),2&n&&(C(5),y("ngModel",i.value))},dependencies:[X1,g1,o1],encapsulation:2})),t})();var b_e=u1(7);function H_e(e,t){if(1&e&&(p(0,"div",7),M(1),v()),2&e){const r=x();C(1),w2(" ",r.failureMessage," ")}}function w_e(e,t){1&e&&R(0,"span",10)}function V_e(e,t){1&e&&(p(0,"span"),M(1,"Download Logs"),v())}function z_e(e,t){1&e&&(p(0,"span"),M(1," Generating Log File..."),v())}function S_e(e,t){if(1&e){const r=b1();p(0,"button",8),O("click",function(){return G(r),$(x().downloadLogs())}),I(1,w_e,1,0,"span",9),I(2,V_e,2,0,"span",6),I(3,z_e,2,0,"span",6),v()}if(2&e){const r=x();B("disabled",!!r.isDownloading||null),C(1),y("ngIf",r.isDownloading),C(1),y("ngIf",!r.isDownloading),C(1),y("ngIf",r.isDownloading)}}function D_e(e,t){if(1&e){const r=b1();p(0,"a",11),O("click",function(){return G(r),$(x().openLink())}),p(1,"span"),M(2,"Download Logs"),v()()}}function L_e(e,t){if(1&e&&(p(0,"small")(1,"i"),M(2),v()()),2&e){const r=x();C(2),w2(" ",r.downloadMessage," ")}}function x_e(e,t){1&e&&(p(0,"small")(1,"i"),M(2," The log file should have downloaded. If not click the button again. The file will be named 'Unknown.zip', due to technical reasons."),R(3,"br"),p(4,"b"),M(5,"Please make sure that you have pop-ups allowed for this site. If you're not sure, maybe this "),p(6,"a",12),M(7,"site"),v(),M(8," can help."),v()()())}let N_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 wa&&""!==this.logFileLocation&&(console.log("revoke log zip file blob location url."),window.URL.revokeObjectURL(this.logFileLocation),this.logFileLocation="")}),window.homebridge.addEventListener("downloadLogsFileCount",n=>{this.updateDownloadMessage(`Compressing ${n.data.numberOfFiles} log files...`)})}downloadLogs(){var n=this;return de(function*(){try{n.isDownloading=!0;const i=yield window.homebridge.request("/downloadLogs"),a=b_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&&(p(0,"div",0),I(1,H_e,2,1,"div",1),p(2,"div",2)(3,"span",3),M(4,"Download Logs"),v(),I(5,S_e,4,4,"button",4),I(6,D_e,3,0,"a",5),v(),I(7,L_e,3,1,"small",6),I(8,x_e,9,0,"small",6),v()),2&n&&(C(1),y("ngIf",i.failed),C(4),y("ngIf",!i.hasDownloaded),C(1),y("ngIf",i.hasDownloaded),C(1),y("ngIf",i.downloadMessage),C(1),y("ngIf",i.hasDownloaded))},dependencies:[L1],encapsulation:2})),t})(),A_e=(()=>{var e;class t extends _1{constructor(n){super(n),V(this,"value",ln.ignoreMultipleDevicesWarning)}ngOnInit(){this.readValue()}readValue(){this.config&&void 0!==this.config.ignoreMultipleDevicesWarning&&(this.value=this.config.ignoreMultipleDevicesWarning)}update(){this.updateConfig({ignoreMultipleDevicesWarning:this.value})}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Ke))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-ignore-multiple-devices-warning"]],features:[re],decls:9,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(n,i){1&n&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Enable snapshot and HKSV settings for multiple devices on one station."),v(),p(4,"div",2)(5,"input",3),O("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),v()()(),p(6,"small")(7,"i"),M(8," Normally it is not encouraged to use live snapshots and the HKSV feature if multiple cameras are connected through one and the same station. These options are therefore disabled by default for these devices. By enabling this setting you'll be able to use these features anyway, but please be aware that this might result in failing streams. "),v()()()),2&n&&(C(5),y("ngModel",i.value))},dependencies:[X1,g1,o1],encapsulation:2})),t})(),E_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:27,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&&(p(0,"a",0),M(1,"Back to Devices List"),v(),p(2,"div",1)(3,"div",2),M(4," Advanced Settings "),v(),p(5,"div",3),R(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-ignore-multiple-devices-warning")(15,"hr")(16,"app-omit-log-files")(17,"hr")(18,"app-clean-cache")(19,"hr")(20,"app-unbridge-accessory")(21,"hr")(22,"app-guard-modes-mapping")(23,"hr")(24,"app-download-logs")(25,"hr")(26,"app-reset-plugin"),v()())},dependencies:[Pt,l_e,f_e,u_e,d_e,h_e,p_e,Cx,M_e,y_e,N_e,A_e],encapsulation:2})),t})(),Mx=(()=>{var e;class t extends _1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",!1)}ngOnInit(){this.readValue()}readValue(){var n=this;return de(function*(){if(n.config=yield n.pluginService.getConfig(),n.accessory){const 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 de(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(Ke))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-ignore-accessory"]],inputs:{accessory:"accessory"},features:[re],decls:6,vars:2,consts:[[1,"settingsItem","row","p-3","pb-1"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(n,i){1&n&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3),v(),p(4,"div",2)(5,"input",3),O("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),v()()()()),2&n&&(C(3),w2("Ignore ",i.accessory&&i.accessory.station?"Station":"Device",""),C(2),y("ngModel",i.value))},dependencies:[X1,g1,o1],encapsulation:2})),t})();function T_e(e,t){1&e&&(p(0,"small")(1,"i"),M(2," This option is disabled since doorbells are handled always as cameras. "),v()())}function I_e(e,t){1&e&&(p(0,"small")(1,"i"),M(2," Cameras are handled as Motion Sensor by default, switch this setting to use as Camera "),v()())}let O_e=(()=>{var e;class t extends _1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value","true"),V(this,"disabled",!1)}ngOnInit(){this.readValue()}readValue(){var n=this;return de(function*(){n.accessory&&ka.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(Ke))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-enable-camera"]],inputs:{accessory:"accessory"},features:[re],decls:12,vars:4,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],["aria-label","Device Operation Mode",1,"form-select",3,"ngModel","ngModelChange","change"],["value","false"],["value","true"],[4,"ngIf"]],template:function(n,i){1&n&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Operation Mode"),v(),p(4,"div",2)(5,"select",3),O("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),p(6,"option",4),M(7,"Motion Sensor"),v(),p(8,"option",5),M(9,"Camera"),v()()()(),I(10,T_e,3,0,"small",6),I(11,I_e,3,0,"small",6),v()),2&n&&(C(5),y("ngModel",i.value),B("disabled",!!i.disabled||null),C(5),y("ngIf",i.disabled),C(1),y("ngIf",!i.disabled))},dependencies:[L1,z4,S4,Vn,g1,o1],encapsulation:2})),t})(),Qf=(()=>{var e;class t{getChargingStatus(n){return de(function*(){return window.homebridge.request("/getChargingStatus",n)})()}hasProperty(n,i){return de(function*(){return window.homebridge.request("/hasProperty",{sn:n,propertyName:i})})()}setExperimentalRTSPStatus(n,i){return de(function*(){return window.homebridge.request("/setExperimentalRTSP",{sn:n,value:i})})()}getExperimentalRTSPStatus(n){return de(function*(){return window.homebridge.request("/getExperimentalRTSPStatus",n)})()}getStationsCamerasMapping(){return de(function*(){return window.homebridge.request("/getStationDeviceMapping")})()}getCamerasOnSameStation(n,i=[]){var a=this;return de(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 R_e(e,t){if(1&e){const r=b1();p(0,"div",3)(1,"span"),M(2),v(),p(3,"div",4)(4,"input",5),O("ngModelChange",function(i){return $(G(r).$implicit.value=i)})("change",function(){return G(r),$(x().update())}),v()()()}if(2&e){const r=t.$implicit;C(2),w2("Display HomeKit switch to turn ",r.description," on/off"),C(2),y("ngModel",r.value)("id","flexSwitchCheck"+r.name)}}let k_e=(()=>{var e;class t extends _1{constructor(n,i){super(n),V(this,"accessoryService",void 0),V(this,"accessory",void 0),V(this,"buttonConfigs",[{name:"Enable",description:"camera",value:true,propertyName:"DeviceEnabled"},{name:"Motion",description:"detection",value:true,propertyName:"DeviceMotionDetection"},{name:"Light",description:"light",value:true,propertyName:"DeviceLight"},{name:"IndoorChime",description:"indoor chime",value:false,propertyName:"DeviceChimeIndoor"}]),this.accessoryService=i}ngOnInit(){var n=this;return de(function*(){yield n.readValue()})()}readValue(){var n=this;return de(function*(){const i=n.accessory?.uniqueId??"",a=yield n.getCameraConfig(i),s=[];yield Promise.all(n.buttonConfigs.map(function(){var c=de(function*(o){if(n.accessory)try{(yield n.accessoryService.hasProperty(n.accessory.uniqueId,o.propertyName))&&(o.name in a&&(o.value=a[o.name]??o.value),s.push(o))}catch{}});return function(o){return c.apply(this,arguments)}}())),n.buttonConfigs=s})()}update(){const n={};this.buttonConfigs.forEach(i=>{n[i.name.toLowerCase()]=i.value}),this.updateConfig(n,this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Ke),H(Qf))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-camera-buttons"]],inputs:{accessory:"accessory"},features:[re],decls:8,vars:1,consts:[[1,"settingsItem","row","p-3"],["class","d-flex justify-content-between align-items-center mb-2",4,"ngFor","ngForOf"],["href","https://github.com/homebridge-eufy-security/plugin/wiki/Common-Issues#unexpected-homekit-behaviour","target","_blank","rel","noopener noreferrer"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch",1,"form-check-input",3,"ngModel","id","ngModelChange","change"]],template:function(n,i){1&n&&(p(0,"div",0),I(1,R_e,5,3,"div",1),p(2,"small")(3,"i"),M(4," When changing these settings you might need to clear accessory cache (homebridge settings) so it can take effect. See "),p(5,"a",2),M(6,"here"),v(),M(7," for more details. "),v()()()),2&n&&(C(1),y("ngForOf",i.buttonConfigs))},dependencies:[nt,X1,g1,o1],encapsulation:2})),t})(),P_e=(()=>{var e;class t extends _1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",false)}ngOnInit(){this.readValue()}readValue(){var n=this;return de(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(Ke))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-livestream-cache"]],inputs:{accessory:"accessory"},features:[re],decls:12,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(n,i){1&n&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Use Local Livestream Caching"),v(),p(4,"div",2)(5,"input",3),O("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),v()()(),p(6,"small")(7,"i")(8,"b"),M(9,"This setting seems only useful if you are able to set the video codec / video compression for the camera in the eufy app to 'low' (aka. H264 codec). If you can, we recommened to do so, since there can be a significant performance boost (aka. startup of livestreams)."),v(),R(10,"p"),M(11," If enabled local livestreams will be kept alive for a short time after the user stops streaming or a snapshot is refreshed (see 'Force Refresh Snapshot' also). This allows subsequent streams to start up much faster, but also may increase power consumption for battery powered devices. Additionally a livestream will be started (cached) immediately after an event (motion, person, doorbell) occurs, so that start up times are decreased. "),v()()()),2&n&&(C(5),y("ngModel",i.value))},dependencies:[X1,g1,o1],encapsulation:2})),t})();function F_e(e,t){1&e&&(p(0,"div",5),M(1," Talkback will not work while 'RTSP Streaming' is enabled! "),v())}let B_e=(()=>{var e;class t extends _1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",!1),V(this,"talkbackIsEnabled",!1)}ngOnInit(){this.readValue(),this.pluginService.addEventListener("configChanged",()=>this.readValue())}readValue(){var n=this;return de(function*(){const 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(Ke))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-rtsp-streaming"]],inputs:{accessory:"accessory"},features:[re],decls:11,vars:2,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"],["class","alert alert-danger","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-danger"]],template:function(n,i){1&n&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Use RTSP streaming"),v(),p(4,"div",2)(5,"input",3),O("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),v()()(),I(6,F_e,2,0,"div",4),p(7,"small")(8,"i"),M(9," Try to utilize RTSP capabilities of some devices. This may result in improved streaming stability. Please be advised that RTSP must be enable within Eufy App first!"),R(10,"br"),v()()()),2&n&&(C(5),y("ngModel",i.value),C(1),y("ngIf",i.talkbackIsEnabled&&i.value))},dependencies:[L1,X1,g1,o1],encapsulation:2})),t})(),U_e=(()=>{var e;class t extends _1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",!1),V(this,"samplerate",0)}ngOnInit(){this.readValue()}readValue(){var n=this;return de(function*(){const 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 de(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(Ke))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-enable-audio"]],inputs:{accessory:"accessory"},features:[re],decls:25,vars:7,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],["aria-label","Samplerate",1,"form-select",3,"ngModel","ngModelChange","change"],[3,"ngValue"]],template:function(n,i){1&n&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Enable Audio"),v(),p(4,"div",2)(5,"input",3),O("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),v()()(),p(6,"small")(7,"i"),M(8," Try to enable audio streaming for this device."),R(9,"br"),M(10," If you encounter problems try to disable this setting. "),v()(),R(11,"p"),p(12,"div",4)(13,"span"),M(14,"Force Audio Sample Rate"),v(),p(15,"div",5)(16,"select",6),O("ngModelChange",function(s){return i.samplerate=s})("change",function(){return i.update()}),p(17,"option",7),M(18,"Default Sample Rate"),v(),p(19,"option",7),M(20,"8 kHz"),v(),p(21,"option",7),M(22,"16 kHz"),v(),p(23,"option",7),M(24,"24 kHz"),v()()()()()),2&n&&(C(5),y("ngModel",i.value),C(11),y("ngModel",i.samplerate),B("disabled",!i.value||null),C(1),y("ngValue",0),C(2),y("ngValue",8),C(2),y("ngValue",16),C(2),y("ngValue",24))},dependencies:[z4,S4,X1,Vn,g1,o1],encapsulation:2})),t})(),j_e=(()=>{var e;class t extends _1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",!1)}ngOnInit(){this.readValue()}readValue(){var n=this;return de(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(Ke))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-force-refreshsnap"]],inputs:{accessory:"accessory"},features:[re],decls:11,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(n,i){1&n&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Force Refresh Snapshot (Deprecated)"),v(),p(4,"div",2)(5,"input",3),O("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),v()()(),p(6,"small")(7,"i"),M(8," When enabled, we will start stream for one frame and use as a snapshot (this can affect the battery life). If it's disabled, we will use the Eufy Cloud API one (which could be really old)."),R(9,"br"),M(10," This option is only used if you have disabled enhanced snapshot handling. "),v()()()),2&n&&(C(5),y("ngModel",i.value))},dependencies:[X1,g1,o1],encapsulation:2})),t})();function G_e(e,t){1&e&&(p(0,"div"),M(1," You can enable this setting nevertheless in "),p(2,"a",10),M(3,"Plugin Settings"),v(),R(4,"p"),v())}function $_e(e,t){if(1&e&&(p(0,"li"),M(1),v()),2&e){const r=t.$implicit;C(1),B2(r)}}function W_e(e,t){if(1&e&&(p(0,"div",8),M(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 another snapshot method other than cloud snapshots."),R(2,"p"),I(3,G_e,5,0,"div",7),M(4," Cameras on the same station: "),p(5,"ul"),I(6,$_e,2,1,"li",9),v()()),2&e){const r=x();C(3),y("ngIf",!r.ignoreMultipleDevicesWarning),C(3),y("ngForOf",r.camerasOnSameStation)}}function q_e(e,t){1&e&&(p(0,"div",8)(1,"b"),M(2,"Caution!"),v(),M(3," While Force Refresh Snapshots will deliver most up-to-date snapshots, this can have negative effects on HomeKit behaviour. For example starting a livestream might be delayed as a side effect by this option. See "),p(4,"a",11),M(5,"here"),v(),M(6," for more informtaion. "),v())}function K_e(e,t){1&e&&(p(0,"div",8),M(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 Y_e(e,t){1&e&&(p(0,"div",12),M(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 Z_e(e,t){if(1&e&&(p(0,"small")(1,"i")(2,"b"),M(3,"Description:"),v(),M(4," The plugin will try to get the latest possible snapshot. If none is present the plugin will start a livestream to render one frame."),R(5,"br"),M(6," This process might take a few seconds and can slow down your homebridge instance for this duration. If you encounter problems with this method please try another. "),R(7,"p")(8,"fa-icon",13),M(9," Up-to-date Snapshots (events)"),R(10,"br")(11,"fa-icon",13),M(12," Up-to-date Snapshots (HomeKit View)"),R(13,"br")(14,"fa-icon",14),M(15," Performance"),R(16,"br")(17,"fa-icon",14),M(18," Battery life"),R(19,"br"),v()()),2&e){const r=x();C(8),y("icon",r.plusIcon),C(3),y("icon",r.plusIcon),C(3),y("icon",r.minusIcon),C(3),y("icon",r.minusIcon)}}function Q_e(e,t){if(1&e&&(p(0,"small")(1,"i")(2,"b"),M(3,"Description:"),v(),M(4," This mode combines the other two. When a snapshot is requested the plugin will try to get a new snapshot from the camera."),R(5,"br"),M(6," After one second the snapshot will be delivered - if necessary by using an older snapshot. For events the plugin will wait on a new snapshot. "),R(7,"p")(8,"fa-icon",13),M(9," Up-to-date Snapshots (events)"),R(10,"br")(11,"fa-icon",15),M(12," Up-to-date Snapshots (HomeKit View)"),R(13,"br")(14,"fa-icon",13),M(15," Performance"),R(16,"br")(17,"fa-icon",14),M(18," Battery life"),R(19,"br"),v()()),2&e){const r=x();C(8),y("icon",r.plusIcon),C(3),y("icon",r.mediumIcon),C(3),y("icon",r.plusIcon),C(3),y("icon",r.minusIcon)}}function J_e(e,t){if(1&e&&(p(0,"small")(1,"i")(2,"b"),M(3,"Description:"),v(),M(4," The plugin will preferablly use cloud snapshots from eufy to fulfill snapshot requests as fast as possible."),R(5,"br"),M(6," If an event, like motion or doorbell ring oocurs, the plugin will try to wait for a cloud snapshot to be provided. But the periodic snapshots in homekit will most likely be outdated (e.g. up to a few hours old). "),R(7,"p")(8,"fa-icon",13),M(9," Up-to-date Snapshots (events)"),R(10,"br")(11,"fa-icon",14),M(12," Up-to-date Snapshots (HomeKit View)"),R(13,"br")(14,"fa-icon",13),M(15," Performance"),R(16,"br")(17,"fa-icon",13),M(18," Battery life"),R(19,"br"),v()()),2&e){const r=x();C(8),y("icon",r.plusIcon),C(3),y("icon",r.minusIcon),C(3),y("icon",r.plusIcon),C(3),y("icon",r.plusIcon)}}let X_e=(()=>{var e;class t extends _1{constructor(n,i){super(n),V(this,"accessoryService",void 0),V(this,"plusIcon",xL),V(this,"minusIcon",eH),V(this,"mediumIcon",Hz),V(this,"accessory",void 0),V(this,"value",3),V(this,"chargingStatus",Yf.PLUGGED),V(this,"camerasOnSameStation",[]),V(this,"ignoreMultipleDevicesWarning",ln.ignoreMultipleDevicesWarning),this.accessoryService=i}ngOnInit(){this.readValue()}readValue(){var n=this;return de(function*(){const i=yield n.getCameraConfig(n.accessory?.uniqueId||"");i&&("snapshotHandlingMethod"in i?n.value=i.snapshotHandlingMethod:"forcerefreshsnap"in i&&(n.value=i.forcerefreshsnap?1:3)),n.accessory&&(n.accessoryService.getChargingStatus(n.accessory.uniqueId).then(s=>n.chargingStatus=s),i&&"ignoreMultipleDevicesWarning"in i&&(n.ignoreMultipleDevicesWarning=i.ignoreMultipleDevicesWarning),n.accessoryService.getCamerasOnSameStation(n.accessory.uniqueId,i&&"ignoreDevices"in i?i.ignoreDevices:[]).then(s=>{n.camerasOnSameStation=s,n.camerasOnSameStation.length>1&&!n.ignoreMultipleDevicesWarning&&(n.value=3,n.update())}))})()}update(){this.updateConfig({snapshotHandlingMethod:this.value},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Ke),H(Qf))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-snapshot-handling-method"]],inputs:{accessory:"accessory"},features:[re],decls:19,vars:12,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"],["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"],["href","https://github.com/homebridge-eufy-security/plugin/wiki/Streaming-Settings#streams-take-a-long-time-to-start","target","_blank","rel","noopener noreferrer"],["role","alert",1,"alert","alert-secondary"],["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&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Snapshot Handling Method"),v(),p(4,"div",2)(5,"select",3),O("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),p(6,"option",4),M(7,"Force Refresh Snapshots"),v(),p(8,"option",4),M(9,"Balanced"),v(),p(10,"option",4),M(11,"Cloud Snapshots"),v()()()(),I(12,W_e,7,2,"div",5),I(13,q_e,7,0,"div",5),I(14,K_e,2,0,"div",5),I(15,Y_e,2,0,"div",6),I(16,Z_e,20,4,"small",7),I(17,Q_e,20,4,"small",7),I(18,J_e,20,4,"small",7),v()),2&n&&(C(5),y("ngModel",i.value),B("disabled",i.camerasOnSameStation.length>1&&!i.ignoreMultipleDevicesWarning||null),C(1),y("ngValue",1),C(2),y("ngValue",2),C(2),y("ngValue",3),C(2),y("ngIf",i.camerasOnSameStation.length>1),C(1),y("ngIf",1===i.value),C(1),y("ngIf",2===i.chargingStatus&&1===i.value),C(1),y("ngIf",4===i.chargingStatus&&1===i.value),C(1),y("ngIf",1===i.value),C(1),y("ngIf",2===i.value),C(1),y("ngIf",3===i.value))},dependencies:[nt,L1,z4,S4,Vn,g1,o1,Pt,S7],encapsulation:2})),t})(),eCe=(()=>{var e;class t extends _1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",false)}ngOnInit(){this.readValue()}readValue(){var n=this;return de(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(Ke))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-immediate-notification-on-ring"]],inputs:{accessory:"accessory"},features:[re],decls:12,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(n,i){1&n&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Immediate Notification on ring events"),v(),p(4,"div",2)(5,"input",3),O("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),v()()(),p(6,"small")(7,"i"),M(8," In general Homekit will try to get a snapshot to show it in it's push notifications. Since the process to genereate a snapshot takes some time the push notification will be delayed by this time difference. This option allows to generate an empty snapshot on ringing events to speed up the push notification. This can safe up to 10 seconds between the event and the corresponding notification on your device."),R(9,"br"),p(10,"b"),M(11,"This option however delivers most likely an empty (black) snapshot on those events!"),v()()()()),2&n&&(C(5),y("ngModel",i.value))},dependencies:[X1,g1,o1],encapsulation:2})),t})(),tCe=(()=>{var e;class t extends _1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",false)}ngOnInit(){this.readValue()}readValue(){var n=this;return de(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(Ke))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-delay-camera-snapshots"]],inputs:{accessory:"accessory"},features:[re],decls:12,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(n,i){1&n&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Night-Vision Improvement for camera snapshots"),v(),p(4,"div",2)(5,"input",3),O("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),v()()(),p(6,"small")(7,"i"),M(8," Force night vision on dark snapshots to improve the image."),R(9,"br"),p(10,"b"),M(11,"The snapshot request will be delayed by half a second if you enable this setting."),v()()()()),2&n&&(C(5),y("ngModel",i.value))},dependencies:[X1,g1,o1],encapsulation:2})),t})(),nCe=(()=>{var e;class t extends _1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",0),V(this,"inputIsInvalid",!1)}ngOnInit(){this.readValue()}readValue(){var n=this;return de(function*(){const 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(Ke))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-periodic-snapshot-refresh"]],inputs:{accessory:"accessory"},features:[re],decls:25,vars:3,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"change"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],[1,"input-group","input-group-sm"],["type","number","aria-label","Polling interval minutes","aria-describedby","basic-addon2",3,"ngModel","ngModelChange","change"],[1,"input-group-append"],["id","basic-addon2",1,"input-group-text"]],template:function(n,i){1&n&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Periodic Snapshot Refresh"),v(),p(4,"div",2)(5,"input",3),O("change",function(){return i.switchSetting()}),v()()(),p(6,"div",4)(7,"span"),M(8,"Refresh Interval"),v(),p(9,"div",5)(10,"div",6)(11,"input",7),O("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),v(),p(12,"div",8)(13,"span",9),M(14,"minutes"),v()()()()(),p(15,"small")(16,"i"),M(17," This option will force a snapshot to be generated every x minutes. This snapshot will then be used for homekit. So that your snapshots will never be older than this."),R(18,"br"),M(19," Best used with 'Cloud Snapshots' handling method."),R(20,"br"),M(21," Every setting below 5 minutes will be discarded due to performance reasons."),R(22,"br"),p(23,"b"),M(24,"Don't use this with the 'Force Refresh Snapshots' method, since it will have negligible effects other than slowing down homebridge and decreasing possible battery life."),v()()()()),2&n&&(C(5),B("checked",i.value>0||null),C(6),y("ngModel",i.value),B("class",i.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},dependencies:[wn,V4,g1,o1],encapsulation:2})),t})();function rCe(e,t){1&e&&(p(0,"span")(1,"b"),M(2,"Advanced Video Config"),v()())}function iCe(e,t){1&e&&(p(0,"button",4)(1,"span")(2,"b"),M(3,"Advanced Video Config"),v()()())}function aCe(e,t){if(1&e&&(p(0,"div"),M(1),v()),2&e){const r=x(2);C(1),w2(" ",r.presetDescription," ")}}function sCe(e,t){if(1&e){const r=b1();M(0," The following options directly change the way how ffmpeg is configured when a stream is started. If configured incorrectly these will most likely result in faulty streams or bad streaming performance. "),R(1,"p"),M(2," You can try the following presets to improve your streaming experience. We do not guarantee that these will work for you."),R(3,"p"),p(4,"div",5)(5,"div",6)(6,"select",7),O("ngModelChange",function(i){return G(r),$(x().preset=i)})("change",function(){return G(r),$(x().loadPreset())}),p(7,"option",8),M(8,"No Preset (default)"),v(),p(9,"option",8),M(10,"Copy"),v(),p(11,"option",8),M(12,"Performance"),v(),p(13,"option",8),M(14,"Custom"),v()()()(),I(15,aCe,2,1,"div",9),R(16,"p"),p(17,"div",10)(18,"div",11)(19,"input",12),O("ngModelChange",function(i){return G(r),$(x().debug=i)})("change",function(){return G(r),$(x().update())}),v()(),p(20,"span",13),M(21,"ffmpeg debug"),v()(),p(22,"div",10)(23,"div",11)(24,"input",12),O("ngModelChange",function(i){return G(r),$(x().useSeparateProcesses=i)})("change",function(){return G(r),$(x().update())}),v()(),p(25,"span",13),M(26,"use separate processes for video and audio"),v()(),p(27,"div",10)(28,"div",11)(29,"input",12),O("ngModelChange",function(i){return G(r),$(x().readRate=i)})("change",function(){return G(r),$(x().update())}),v()(),p(30,"span",13),M(31,"readRate"),v()(),p(32,"div",10)(33,"div",11)(34,"input",14),O("change",function(){G(r);const i=x();return i.vcodec=void 0===i.vcodec?"":void 0,$(i.update())}),v()(),p(35,"span",13),M(36,"vcodec"),v(),p(37,"input",15),O("ngModelChange",function(i){return G(r),$(x().vcodec=i)})("change",function(){return G(r),$(x().update())}),v()(),p(38,"div",10)(39,"div",11)(40,"input",14),O("change",function(){G(r);const i=x();return i.acodec=void 0===i.acodec?"":void 0,$(i.update())}),v()(),p(41,"span",13),M(42,"acodec"),v(),p(43,"input",16),O("ngModelChange",function(i){return G(r),$(x().acodec=i)})("change",function(){return G(r),$(x().update())}),v()(),p(44,"div",10)(45,"div",11)(46,"input",14),O("change",function(){G(r);const i=x();return i.videoFilter=void 0===i.videoFilter?"":void 0,$(i.update())}),v()(),p(47,"span",13),M(48,"videoFilter"),v(),p(49,"input",17),O("ngModelChange",function(i){return G(r),$(x().videoFilter=i)})("change",function(){return G(r),$(x().update())}),v()(),p(50,"div",10)(51,"div",11)(52,"input",14),O("change",function(){G(r);const i=x();return i.encoderOptions=void 0===i.encoderOptions?"":void 0,$(i.update())}),v()(),p(53,"span",13),M(54,"encoderOptions"),v(),p(55,"input",18),O("ngModelChange",function(i){return G(r),$(x().encoderOptions=i)})("change",function(){return G(r),$(x().update())}),v()(),p(56,"div",10)(57,"div",11)(58,"input",14),O("change",function(){G(r);const i=x();return i.probeSize=void 0===i.probeSize?0:void 0,$(i.update())}),v()(),p(59,"span",13),M(60,"probeSize"),v(),p(61,"input",19),O("ngModelChange",function(i){return G(r),$(x().probeSize=i)})("change",function(){return G(r),$(x().update())}),v()(),p(62,"div",10)(63,"div",11)(64,"input",14),O("change",function(){G(r);const i=x();return i.analyzeDuration=void 0===i.analyzeDuration?0:void 0,$(i.update())}),v()(),p(65,"span",13),M(66,"analyzeDuration"),v(),p(67,"input",19),O("ngModelChange",function(i){return G(r),$(x().analyzeDuration=i)})("change",function(){return G(r),$(x().update())}),v()(),p(68,"div",10)(69,"div",11)(70,"input",14),O("change",function(){G(r);const i=x();return i.maxStreams=void 0===i.maxStreams?0:void 0,$(i.update())}),v()(),p(71,"span",13),M(72,"maxStreams"),v(),p(73,"input",19),O("ngModelChange",function(i){return G(r),$(x().maxStreams=i)})("change",function(){return G(r),$(x().update())}),v()(),p(74,"div",10)(75,"div",11)(76,"input",14),O("change",function(){G(r);const i=x();return i.maxWidth=void 0===i.maxWidth?0:void 0,$(i.update())}),v()(),p(77,"span",13),M(78,"maxWidth"),v(),p(79,"input",19),O("ngModelChange",function(i){return G(r),$(x().maxWidth=i)})("change",function(){return G(r),$(x().update())}),v()(),p(80,"div",10)(81,"div",11)(82,"input",14),O("change",function(){G(r);const i=x();return i.maxHeight=void 0===i.maxHeight?0:void 0,$(i.update())}),v()(),p(83,"span",13),M(84,"maxHeight"),v(),p(85,"input",19),O("ngModelChange",function(i){return G(r),$(x().maxHeight=i)})("change",function(){return G(r),$(x().update())}),v()(),p(86,"div",10)(87,"div",11)(88,"input",14),O("change",function(){G(r);const i=x();return i.maxFPS=void 0===i.maxFPS?0:void 0,$(i.update())}),v()(),p(89,"span",13),M(90,"fps"),v(),p(91,"input",19),O("ngModelChange",function(i){return G(r),$(x().maxFPS=i)})("change",function(){return G(r),$(x().update())}),v()(),p(92,"div",10)(93,"div",11)(94,"input",14),O("change",function(){G(r);const i=x();return i.maxBitrate=void 0===i.maxBitrate?0:void 0,$(i.update())}),v()(),p(95,"span",13),M(96,"bitrate"),v(),p(97,"input",19),O("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),y("ngModel",r.preset),C(1),y("ngValue",0),C(2),y("ngValue",1),C(2),y("ngValue",2),C(2),y("ngValue",3),C(2),y("ngIf",r.presetDescription),C(4),y("ngModel",r.debug),C(5),y("ngModel",r.useSeparateProcesses),C(5),y("ngModel",r.readRate),C(5),y("checked",void 0!==r.vcodec||null),C(3),y("ngModel",r.vcodec),B("disabled",void 0===r.vcodec||null),C(3),y("checked",void 0!==r.acodec||null),C(3),y("ngModel",r.acodec),B("disabled",void 0===r.acodec||null),C(3),y("checked",void 0!==r.videoFilter||null),B("disabled","copy"===r.vcodec||null),C(1),B("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,k2),C(2),y("ngModel",r.videoFilter),B("disabled",void 0===r.videoFilter||"copy"===r.vcodec||null),C(3),y("checked",void 0!==r.encoderOptions||null),B("disabled","copy"===r.vcodec||null),C(1),B("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,k2),C(2),y("ngModel",r.encoderOptions),B("disabled",void 0===r.encoderOptions||"copy"===r.vcodec||null),C(3),y("checked",void 0!==r.probeSize||null),C(3),y("ngModel",r.probeSize),B("disabled",void 0===r.probeSize||null),C(3),y("checked",void 0!==r.analyzeDuration||null),C(3),y("ngModel",r.analyzeDuration),B("disabled",void 0===r.analyzeDuration||null),C(3),y("checked",void 0!==r.maxStreams||null),C(3),y("ngModel",r.maxStreams),B("disabled",void 0===r.maxStreams||null),C(3),y("checked",void 0!==r.maxWidth||null),B("disabled","copy"===r.vcodec||null),C(1),B("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,k2),C(2),y("ngModel",r.maxWidth),B("disabled",void 0===r.maxWidth||"copy"===r.vcodec||null),C(3),y("checked",void 0!==r.maxHeight||null),B("disabled","copy"===r.vcodec||null),C(1),B("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,k2),C(2),y("ngModel",r.maxHeight),B("disabled",void 0===r.maxHeight||"copy"===r.vcodec||null),C(3),y("checked",void 0!==r.maxFPS||null),B("disabled","copy"===r.vcodec||null),C(1),B("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,k2),C(2),y("ngModel",r.maxFPS),B("disabled",void 0===r.maxFPS||"copy"===r.vcodec||null),C(3),y("checked",void 0!==r.maxBitrate||null),B("disabled","copy"===r.vcodec||null),C(1),B("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,k2),C(2),y("ngModel",r.maxBitrate),B("disabled",void 0===r.maxBitrate||"copy"===r.vcodec||null)}}let cCe=(()=>{var e;class t extends _1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"debug",void 0),V(this,"readRate",void 0),V(this,"vcodec",void 0),V(this,"acodec",void 0),V(this,"videoFilter",void 0),V(this,"encoderOptions",void 0),V(this,"probeSize",void 0),V(this,"analyzeDuration",void 0),V(this,"maxStreams",void 0),V(this,"maxWidth",void 0),V(this,"maxHeight",void 0),V(this,"maxFPS",void 0),V(this,"maxBitrate",void 0),V(this,"useSeparateProcesses",void 0),V(this,"preset",0),V(this,"presetDescription",void 0)}ngOnInit(){this.readValue()}readValue(){var n=this;return de(function*(){const 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 de(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(Ke))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-advanced-videoconfig"]],inputs:{accessory:"accessory"},features:[re],decls:6,vars:0,consts:[["acc","ngbAccordion"],["ngbPanelTitle","","class","accordion-header"],["ngbPanelHeader",""],["ngbPanelContent",""],["ngbPanelToggle","",1,"accordion-button"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],["aria-label","Presets",1,"form-select",3,"ngModel","ngModelChange","change"],[3,"ngValue"],[4,"ngIf"],[1,"input-group","mb-1"],[1,"input-group-text"],["type","checkbox",1,"form-check-input","mt-0",3,"ngModel","ngModelChange","change"],["id","inputGroup-sizing-default",1,"input-group-text"],["type","checkbox",1,"form-check-input","mt-0",3,"checked","change"],["type","text","placeholder","libx264",1,"form-control",3,"ngModel","ngModelChange","change"],["type","text","placeholder","libfdk_aac",1,"form-control",3,"ngModel","ngModelChange","change"],["type","text","placeholder","leave blank if you don't know",1,"form-control",3,"ngModel","ngModelChange","change"],["type","text","placeholder","-preset ultrafast -tune zerolatency",1,"form-control",3,"ngModel","ngModelChange","change"],["type","number","placeholder","0",1,"form-control",3,"ngModel","ngModelChange","change"]],template:function(n,i){1&n&&(p(0,"ngb-accordion",null,0)(2,"ngb-panel"),I(3,rCe,3,0,"ng-template",1),I(4,iCe,4,0,"ng-template",2),I(5,sCe,98,54,"ng-template",3),v()())},dependencies:[L1,z4,S4,wn,V4,X1,Vn,g1,o1,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 oCe(e,t){1&e&&(p(0,"div",5),M(1," Talkback will not work while 'RTSP Streaming' is enabled! "),v())}let lCe=(()=>{var e;class t extends _1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",!1),V(this,"rtspIsEnabled",!1)}ngOnInit(){this.readValue(),this.pluginService.addEventListener("configChanged",()=>this.readValue())}readValue(){var n=this;return de(function*(){const 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(Ke))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-talkback"]],inputs:{accessory:"accessory"},features:[re],decls:13,vars:2,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"],["class","alert alert-danger","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-danger"]],template:function(n,i){1&n&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Enable Talkback (Two way communication)"),v(),p(4,"div",2)(5,"input",3),O("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),v()()(),I(6,oCe,2,0,"div",4),p(7,"small")(8,"i"),M(9," Enables you to talk with someone infront of the camera while streaming. "),R(10,"p"),M(11," Please be advised that this setting is in an early development stage. If you're experiencing issues while streaming, it is recommened to disable this setting."),R(12,"br"),v()()()),2&n&&(C(5),y("ngModel",i.value),C(1),y("ngIf",i.rtspIsEnabled&&i.value))},dependencies:[L1,X1,g1,o1],encapsulation:2})),t})();var mN={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"]};function _be(e,t){1&e&&(p(0,"div"),M(1," You can enable this setting nevertheless in "),p(2,"a",9),M(3,"Plugin Settings"),v(),R(4,"p"),v())}function Cbe(e,t){if(1&e&&(p(0,"li"),M(1),v()),2&e){const r=t.$implicit;C(1),B2(r)}}function Mbe(e,t){if(1&e&&(p(0,"div",7),M(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."),R(2,"p"),I(3,_be,5,0,"div",6),M(4," Cameras on the same station: "),p(5,"ul"),I(6,Cbe,2,1,"li",8),v()()),2&e){const r=x();C(3),y("ngIf",!r.ignoreMultipleDevicesWarning),C(3),y("ngForOf",r.camerasOnSameStation)}}function ybe(e,t){1&e&&(p(0,"div",7),M(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 bbe(e,t){1&e&&(p(0,"div",10),M(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 Hbe(e,t){if(1&e){const r=b1();p(0,"div")(1,"button",11),O("click",function(){G(r);const i=x();return $(i.showAdvancedSettings=!i.showAdvancedSettings)}),M(2),v(),p(3,"div",12,13),O("ngbCollapseChange",function(i){return G(r),$(!(x().showAdvancedSettings=i))}),p(5,"div",14),M(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(),p(7,"div",15)(8,"div",16),M(9," Video Settings "),v(),p(10,"ul",17)(11,"li",18)(12,"label",19)(13,"span"),M(14,"Maximum Recording Duration "),R(15,"fa-icon",20),v()(),p(16,"input",21),O("ngModelChange",function(i){return G(r),$(x().recordingDuration=i)})("change",function(){return G(r),$(x().update())}),v()(),p(17,"li",18)(18,"label",22)(19,"div",23)(20,"input",24),O("change",function(){G(r);const i=x();return i.vcodec=void 0===i.vcodec?"":void 0,$(i.update())}),v(),p(21,"label",25),M(22," vcodec "),R(23,"fa-icon",26),v()()(),p(24,"input",27),O("ngModelChange",function(i){return G(r),$(x().vcodec=i)})("change",function(){return G(r),$(x().update())}),v()(),p(25,"li",18)(26,"label",28)(27,"div",23)(28,"input",29),O("change",function(){G(r);const i=x();return i.videoFilter=void 0===i.videoFilter?"":void 0,$(i.update())}),v(),p(29,"label",30),M(30," videoFilter "),R(31,"fa-icon",31),v()()(),p(32,"input",32),O("ngModelChange",function(i){return G(r),$(x().videoFilter=i)})("change",function(){return G(r),$(x().update())}),v()(),p(33,"li",18)(34,"label",33)(35,"div",23)(36,"input",34),O("change",function(){G(r);const i=x();return i.encoderOptions=void 0===i.encoderOptions?"":void 0,$(i.update())}),v(),p(37,"label",35),M(38," encoderOptions "),R(39,"fa-icon",36),v()()(),p(40,"input",37),O("ngModelChange",function(i){return G(r),$(x().encoderOptions=i)})("change",function(){return G(r),$(x().update())}),v()(),p(41,"li",18)(42,"div",23)(43,"input",38),O("ngModelChange",function(i){return G(r),$(x().crop=i)})("change",function(){return G(r),$(x().update())}),v(),p(44,"label",39),M(45," force crop image to requested/defined resolution "),R(46,"fa-icon",40),v()()(),p(47,"li",18)(48,"label",41)(49,"div",23)(50,"input",42),O("change",function(){G(r);const i=x();return i.maxFPS=void 0===i.maxFPS?0:void 0,$(i.update())}),v(),p(51,"label",43),M(52," fps "),R(53,"fa-icon",44),v()()(),p(54,"input",45),O("ngModelChange",function(i){return G(r),$(x().maxFPS=i)})("change",function(){return G(r),$(x().update())}),v()(),p(55,"li",18)(56,"label",46)(57,"div",23)(58,"input",47),O("change",function(){G(r);const i=x();return i.maxBitrate=void 0===i.maxBitrate?0:void 0,$(i.update())}),v(),p(59,"label",48),M(60," bitrate "),R(61,"fa-icon",49),v()()(),p(62,"input",50),O("ngModelChange",function(i){return G(r),$(x().maxBitrate=i)})("change",function(){return G(r),$(x().update())}),v()()()(),p(63,"div",15)(64,"div",16),M(65," Audio Settings "),v(),p(66,"ul",17)(67,"li",18)(68,"div",23)(69,"input",51),O("ngModelChange",function(i){return G(r),$(x().audio=i)})("change",function(){return G(r),$(x().update())}),v(),p(70,"label",52),M(71," Enable Audio "),R(72,"fa-icon",53),v()()()()()()()}if(2&e){const r=x();C(2),w2("",r.showAdvancedSettings?"Hide":"Show"," advanced HKSV settings"),C(1),y("ngbCollapse",!r.showAdvancedSettings),C(12),y("icon",r.faQuestionCircle),C(1),y("ngModel",r.recordingDuration),C(4),y("checked",void 0!==r.vcodec||null),C(3),y("icon",r.faQuestionCircle),C(1),y("ngModel",r.vcodec),B("disabled",void 0===r.vcodec||null),C(4),y("checked",void 0!==r.videoFilter||null),B("disabled","copy"===r.vcodec||null),C(1),B("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,k2),C(2),y("icon",r.faQuestionCircle),C(1),y("ngModel",r.videoFilter),B("disabled",void 0===r.videoFilter||"copy"===r.vcodec||null),C(4),y("checked",void 0!==r.encoderOptions||null),B("disabled","copy"===r.vcodec||null),C(1),B("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,k2),C(2),y("icon",r.faQuestionCircle),C(1),y("ngModel",r.encoderOptions),B("placeholder",void 0!==r.encoderOptions?"":r.vcodecOptionsPlaceholder)("disabled",void 0===r.encoderOptions||"copy"===r.vcodec||null),C(3),y("ngModel",r.crop),B("disabled","copy"===r.vcodec||null),C(1),B("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,k2),C(2),y("icon",r.faQuestionCircle),C(4),y("checked",void 0!==r.maxFPS||null),B("disabled","copy"===r.vcodec||null),C(1),B("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,k2),C(2),y("icon",r.faQuestionCircle),C(1),y("ngModel",r.maxFPS),B("disabled",void 0===r.maxFPS||"copy"===r.vcodec||null),C(4),y("checked",void 0!==r.maxBitrate||null),B("disabled","copy"===r.vcodec||null),C(1),B("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,k2),C(2),y("icon",r.faQuestionCircle),C(1),y("ngModel",r.maxBitrate),B("disabled",void 0===r.maxBitrate||"copy"===r.vcodec||null),C(7),y("ngModel",r.audio),C(3),y("icon",r.faQuestionCircle)}}let wbe=(()=>{var e;class t extends _1{constructor(n,i){super(n),V(this,"accessoryService",void 0),V(this,"faQuestionCircle",mN),V(this,"accessory",void 0),V(this,"value",true),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",Yf.PLUGGED),V(this,"camerasOnSameStation",[]),V(this,"ignoreMultipleDevicesWarning",ln.ignoreMultipleDevicesWarning),this.accessoryService=i}ngOnInit(){this.readValue()}readValue(){var n=this;return de(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 de(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(Ke),H(Qf))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-enable-hsv"]],inputs:{accessory:"accessory"},features:[re],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&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Use HomeKit Secure Video"),v(),p(4,"div",2)(5,"input",3),O("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),v()()(),I(6,Mbe,7,2,"div",4),I(7,ybe,2,0,"div",4),I(8,bbe,2,0,"div",5),p(9,"small")(10,"i"),M(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. "),R(12,"p"),p(13,"ul")(14,"li"),M(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(),p(16,"li"),M(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(),p(18,"li"),M(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()()()(),I(20,Hbe,73,39,"div",6),v()),2&n&&(C(5),y("ngModel",i.value),B("disabled",i.camerasOnSameStation.length>1&&!i.ignoreMultipleDevicesWarning||null),C(1),y("ngIf",i.camerasOnSameStation.length>1),C(1),y("ngIf",2===i.chargingStatus&&i.value),C(1),y("ngIf",4===i.chargingStatus&&i.value),C(12),y("ngIf",i.value))},dependencies:[nt,L1,wn,V4,X1,g1,M5,C5,o1,B5,OM,Pt,S7],encapsulation:2})),t})();function Vbe(e,t){1&e&&R(0,"hr")}function zbe(e,t){1&e&&R(0,"app-rtsp-streaming",6),2&e&&y("accessory",x(3).accessory)}function Sbe(e,t){1&e&&R(0,"hr")}function Dbe(e,t){1&e&&R(0,"app-talkback",6),2&e&&y("accessory",x(3).accessory)}function Lbe(e,t){if(1&e&&(p(0,"div"),R(1,"hr")(2,"app-enable-camera",6)(3,"hr")(4,"app-livestream-cache",6),I(5,Vbe,1,0,"hr",2),I(6,zbe,1,1,"app-rtsp-streaming",7),R(7,"hr")(8,"app-enable-audio",6),I(9,Sbe,1,0,"hr",2),I(10,Dbe,1,1,"app-talkback",7),v()),2&e){const r=x(2);C(2),y("accessory",r.accessory),C(2),y("accessory",r.accessory),C(1),y("ngIf",r.supportsRTSP),C(1),y("ngIf",r.supportsRTSP),C(2),y("accessory",r.accessory),C(1),y("ngIf",r.supportsTalkback),C(1),y("ngIf",r.supportsTalkback)}}function xbe(e,t){if(1&e&&(p(0,"div",3)(1,"div",4)(2,"b"),M(3,"Camera Settings"),v(),M(4," for "),p(5,"i"),M(6),v()(),p(7,"div",5),R(8,"app-ignore-accessory",6),I(9,Lbe,11,7,"div",2),v()()),2&e){const r=x();C(6),Z3("",r.accessory.displayName," (",r.accessory.uniqueId,")"),C(2),y("accessory",r.accessory),C(1),y("ngIf",r.isCamera)}}function Nbe(e,t){if(1&e&&(p(0,"div",3)(1,"div",4)(2,"b"),M(3,"HomeKit Behaviour"),v(),M(4," for "),p(5,"i"),M(6),v()(),p(7,"div",5),R(8,"app-camera-buttons",6)(9,"hr")(10,"app-enable-hsv",6),v()()),2&e){const r=x(2);C(6),Z3("",r.accessory.displayName," (",r.accessory.uniqueId,")"),C(2),y("accessory",r.accessory),C(2),y("accessory",r.accessory)}}function Abe(e,t){1&e&&R(0,"hr")}function Ebe(e,t){1&e&&R(0,"app-immediate-notification-on-ring",6),2&e&&y("accessory",x(3).accessory)}function Tbe(e,t){if(1&e&&(p(0,"div"),R(1,"app-force-refreshsnap",6),v()),2&e){const r=x(3);C(1),y("accessory",r.accessory)}}function Ibe(e,t){if(1&e&&(p(0,"div",3)(1,"div",4)(2,"b"),M(3,"Snapshot Behaviour"),v(),M(4," for "),p(5,"i"),M(6),v()(),p(7,"div",5),R(8,"app-snapshot-handling-method",6),I(9,Abe,1,0,"hr",2),I(10,Ebe,1,1,"app-immediate-notification-on-ring",7),R(11,"hr")(12,"app-delay-camera-snapshots",6)(13,"hr")(14,"app-periodic-snapshot-refresh",6),I(15,Tbe,2,1,"div",2),v()()),2&e){const r=x(2);C(6),Z3("",r.accessory.displayName," (",r.accessory.uniqueId,")"),C(2),y("accessory",r.accessory),C(1),y("ngIf",r.isDoorbell),C(1),y("ngIf",r.isDoorbell),C(2),y("accessory",r.accessory),C(2),y("accessory",r.accessory),C(1),y("ngIf",!r.showEnhancedSnapshotBehaviour)}}function Obe(e,t){if(1&e&&(p(0,"div"),R(1,"p"),I(2,Nbe,11,4,"div",1),R(3,"p"),I(4,Ibe,16,8,"div",1),R(5,"p")(6,"app-advanced-videoconfig",6),v()),2&e){const r=x();C(2),y("ngIf",r.accessory),C(2),y("ngIf",r.accessory),C(2),y("accessory",r.accessory)}}let Rbe=(()=>{var e;class t extends _1{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=ka.isDoorbell(this.accessory.type),this.isCamera=ka.isCamera(this.accessory.type),this.supportsRTSP=ka.supportsRTSP(this.accessory.type),this.supportsTalkback=ka.supportsTalkback(this.accessory.type),this.supportsRTSP||this.updateConfig({rtsp:!1},this.accessory),this.supportsTalkback||this.updateConfig({talkback:!1},this.accessory))}updateSnapshotView(n){this.showEnhancedSnapshotBehaviour=n}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Ke),H(En))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-camera-config-options"]],features:[re],decls:4,vars:2,consts:[["routerLink","/accessories",1,"btn","btn-secondary","mb-3"],["class","card",4,"ngIf"],[4,"ngIf"],[1,"card"],[1,"card-header"],[1,"card-body","pt-0","pb-4"],[3,"accessory"],[3,"accessory",4,"ngIf"]],template:function(n,i){1&n&&(p(0,"a",0),M(1,"Back to Devices List"),v(),I(2,xbe,10,4,"div",1),I(3,Obe,7,3,"div",2)),2&n&&(C(2),y("ngIf",i.accessory),C(1),y("ngIf",i.isCamera))},dependencies:[L1,Pt,Mx,O_e,k_e,P_e,B_e,U_e,j_e,X_e,eCe,tCe,nCe,cCe,lCe,wbe],encapsulation:2})),t})();var iu=function(e){return e[e.UNKNOWN=0]="UNKNOWN",e[e.CAPTCHA=1]="CAPTCHA",e[e.TFA=2]="TFA",e[e.TIMEOUT=3]="TIMEOUT",e}(iu||{});const kbe={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 Pbe=(()=>{var e;class t{constructor(n){V(this,"pluginService",void 0),this.pluginService=n}getCredentials(){var n=this;return de(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 de(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 de(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(Ke))}),V(t,"\u0275prov",K({token:e,factory:e.\u0275fac,providedIn:"root"})),t})();function Fbe(e,t){1&e&&(h3(),M(0," If you login here the new connection might interfere with any already established connection that was made by the eufy plugin itself."),p3(),R(1,"p"),p(2,"i"),M(3,"So even if you do not change any settings we recommened that you restart the plugin after you've connected to the eufy cloud here."),v())}function Bbe(e,t){if(1&e){const r=b1();p(0,"p",10)(1,"ngb-alert",11),O("closed",function(){return G(r),$(x().resetLoginFailed())}),h3(),p(2,"svg",12),R(3,"use",13),v(),p3(),p(4,"strong"),M(5,"Login was not successful!"),v()()()}2&e&&(C(1),y("dismissible",!0))}function Ube(e,t){if(1&e&&(p(0,"div",32),h3(),p(1,"svg",33),R(2,"use",34),v(),p3(),p(3,"div"),M(4," Please make sure to restart plugin after you're done. "),p(5,"u",35),M(6," Tell me why... "),v()()()),2&e){x(2);const r=F2(6);C(5),y("autoClose","outside")("ngbPopover",r)}}function jbe(e,t){1&e&&(M(0,"You can leave this field blank."),R(1,"p"),M(2,"This will set the an option in the api calls to the eufy cloud, so that the servers think this plugin uses the official eufy app on the given device. If left blank the plugin will use a random device identifier. See "),p(3,"a",36),M(4,"this disussion"),v(),M(5," to learn more."))}function Gbe(e,t){if(1&e&&(p(0,"option"),M(1),v()),2&e){const r=t.$implicit,n=x(2);B("value",r.short)("selected",n.credentials.country===r.short||null),C(1),w2("",r.long," ")}}function $be(e,t){1&e&&R(0,"span",37)}function Wbe(e,t){1&e&&(p(0,"span"),M(1,"..."),v())}function qbe(e,t){if(1&e){const r=b1();p(0,"div"),I(1,Ube,7,2,"div",14),p(2,"div",15)(3,"input",16),O("ngModelChange",function(i){return G(r),$(x().credentials.username=i)}),v(),p(4,"label",17),M(5,"Email address"),v()(),R(6,"p"),p(7,"div",15)(8,"input",18),O("ngModelChange",function(i){return G(r),$(x().credentials.password=i)}),v(),p(9,"label",19),M(10,"Password"),v()(),R(11,"p"),p(12,"div",15),I(13,jbe,6,0,"ng-template",null,20,D2),p(15,"input",21),O("ngModelChange",function(i){return G(r),$(x().credentials.deviceName=i)}),v(),p(16,"label",22),M(17,"Device Name"),v()(),p(18,"div",23)(19,"div",24)(20,"select",25),O("ngModelChange",function(i){return G(r),$(x().credentials.country=i)}),I(21,Gbe,2,3,"option",26),v(),p(22,"small")(23,"i"),M(24," Make sure to use the same country that you use to login with the eufy app. "),v()()(),R(25,"span",27),p(26,"div",28)(27,"button",29),O("click",function(){return G(r),$(x().login())}),I(28,$be,1,0,"span",30),M(29," Login "),I(30,Wbe,2,0,"span",9),v(),p(31,"button",31),O("click",function(){return G(r),$(x().cancelLogin())}),M(32," Cancel "),v()()()()}if(2&e){const r=F2(14),n=x();C(1),y("ngIf",!n.firstLoginAssumed),C(2),y("ngModel",n.credentials.username),B("class",n.emailIsValid?"form-control":"form-control is-invalid")("disabled",!!n.loginInProgress||null),C(5),y("ngModel",n.credentials.password),B("class",n.passwordIsValid?"form-control":"form-control is-invalid")("disabled",!!n.loginInProgress||null),C(7),y("ngModel",n.credentials.deviceName)("ngbTooltip",r)("closeDelay",2500),B("class",n.passwordIsValid?"form-control":"form-control is-invalid")("disabled",!!n.loginInProgress||null),C(5),y("ngModel",n.credentials.country),B("disabled",!!n.loginInProgress||null),C(1),y("ngForOf",n.countries),C(6),B("disabled",!!n.loginInProgress||null),C(1),y("ngIf",n.loginInProgress),C(2),y("ngIf",n.loginInProgress),C(1),B("disabled",!!n.loginInProgress||null)}}function Kbe(e,t){1&e&&R(0,"span",37)}function Ybe(e,t){1&e&&(p(0,"span"),M(1,"..."),v())}function Zbe(e,t){if(1&e){const r=b1();p(0,"div")(1,"div",38),M(2,"You should have gotten a 2FA verification code from eufy in your mail. Please enter this below."),v(),p(3,"div",6)(4,"div",39)(5,"input",40),O("ngModelChange",function(i){return G(r),$(x().otp=i)}),v(),p(6,"label",41),M(7,"2FA Code"),v()()(),p(8,"div",42)(9,"div",43)(10,"button",44),O("click",function(){return G(r),$(x().login())}),I(11,Kbe,1,0,"span",30),M(12," Verify "),I(13,Ybe,2,0,"span",9),v()()(),p(14,"div",6)(15,"div",43)(16,"button",31),O("click",function(){return G(r),$(x().cancelLogin())}),M(17," Cancel "),v()()()()}if(2&e){const r=x();C(5),y("ngModel",r.otp),B("class",r.otpIsValid?"form-control":"form-control is-invalid")("disabled",!!r.loginInProgress||null),C(5),B("disabled",!!r.loginInProgress||null),C(1),y("ngIf",r.loginInProgress),C(2),y("ngIf",r.loginInProgress),C(3),B("disabled",!!r.loginInProgress||null)}}function Qbe(e,t){1&e&&R(0,"span",37)}function Jbe(e,t){1&e&&(p(0,"span"),M(1,"..."),v())}function Xbe(e,t){if(1&e){const r=b1();p(0,"div")(1,"div",38),M(2,"Please enter the captcha below."),v(),p(3,"div",42),R(4,"img",45),v(),p(5,"div",6)(6,"div",39)(7,"input",40),O("ngModelChange",function(i){return G(r),$(x().captcha=i)}),v(),p(8,"label",41),M(9,"Captcha"),v()()(),p(10,"div",42)(11,"div",43)(12,"button",44),O("click",function(){return G(r),$(x().login())}),I(13,Qbe,1,0,"span",30),M(14," Verify "),I(15,Jbe,2,0,"span",9),v()()(),p(16,"div",6)(17,"div",43)(18,"button",31),O("click",function(){return G(r),$(x().cancelLogin())}),M(19," Cancel "),v()()()()}if(2&e){const r=x();C(4),y("src",r.captchaImageData,D3),C(3),y("ngModel",r.captcha),B("class",r.captchaIsValid?"form-control":"form-control is-invalid")("disabled",!!r.loginInProgress||null),C(5),B("disabled",!!r.loginInProgress||null),C(1),y("ngIf",r.loginInProgress),C(2),y("ngIf",r.loginInProgress),C(3),B("disabled",!!r.loginInProgress||null)}}var yt=function(e){return e[e.LOGIN=1]="LOGIN",e[e.TFA=2]="TFA",e[e.CAPTCHA=3]="CAPTCHA",e}(yt||{});let eHe=(()=>{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",yt.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(kbe).forEach(([n,i])=>{this.countries.push({short:n,long:i})})}login(){this.inputIsInvalid()||(this.resetLoginFailed(),this.loginInProgress=!0,this.loginStep===yt.LOGIN&&this.loginWithCredentials(),this.loginStep===yt.TFA&&this.loginWithTFA(),this.loginStep===yt.CAPTCHA&&this.loginWithCaptcha())}loginWithCredentials(){var n=this;return de(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 de(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 de(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===iu.TFA)return void(this.loginStep=yt.TFA);if(n&&n.failReason&&n.failReason===iu.CAPTCHA&&n.data&&n.data.id&&n.data.captcha)return this.loginStep=yt.CAPTCHA,this.captchaId=n.data.id,void(this.captchaImageData=n.data.captcha);this.loginStep=yt.LOGIN,this.loginFailed=!0}}inputIsInvalid(){this.emailIsValid=!0,this.passwordIsValid=!0,this.otpIsValid=!0;let n=!1;return this.loginStep===yt.LOGIN&&this.credentials.username.length<4&&(this.emailIsValid=!1,n=!0),this.loginStep===yt.LOGIN&&this.credentials.password.length<4&&(this.passwordIsValid=!1,n=!0),this.loginStep===yt.TFA&&this.otp.length<6&&(this.otpIsValid=!1,n=!0),this.loginStep===yt.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(Pbe),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&&(h3(),p(0,"svg",0)(1,"symbol",1),R(2,"path",2),v(),p(3,"symbol",3),R(4,"path",4),v()(),I(5,Fbe,4,0,"ng-template",null,5,D2),p3(),p(7,"div",6),I(8,Bbe,6,1,"p",7),p(9,"div",8),I(10,qbe,33,19,"div",9),I(11,Zbe,18,7,"div",9),I(12,Xbe,20,8,"div",9),v()()),2&n&&(C(8),y("ngIf",i.loginFailed),C(2),y("ngIf",1===i.loginStep),C(1),y("ngIf",2===i.loginStep),C(1),y("ngIf",3===i.loginStep))},dependencies:[nt,L1,z4,S4,wn,Vn,g1,b5,o1,FC,oZ,OM],encapsulation:2})),t})(),tHe=(()=>{var e;class t extends _1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",[])}ngOnInit(){this.readValue()}readValue(){var n=this;return de(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(Ke))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-manual-alarm-modes"]],inputs:{accessory:"accessory"},features:[re],decls:36,vars:4,consts:[[1,"settingsItem","row","p-3"],[1,"mb-4"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"change"]],template:function(n,i){1&n&&(p(0,"div",0)(1,"span",1),M(2,"Manual Alarm Trigger Modes"),v(),p(3,"div",2)(4,"span"),M(5,"HomeKit Home"),v(),p(6,"div",3)(7,"input",4),O("change",function(){return i.toggle(0),i.update()}),v()()(),p(8,"div",2)(9,"span"),M(10,"HomeKit Away"),v(),p(11,"div",3)(12,"input",4),O("change",function(){return i.toggle(1),i.update()}),v()()(),p(13,"div",2)(14,"span"),M(15,"HomeKit Night"),v(),p(16,"div",3)(17,"input",4),O("change",function(){return i.toggle(2),i.update()}),v()()(),p(18,"div",2)(19,"span"),M(20,"HomeKit Off/Disarmed"),v(),p(21,"div",3)(22,"input",4),O("change",function(){return i.toggle(3),i.update()}),v()()(),p(23,"small")(24,"i"),M(25," You can manually trigger (and reset) the stations alarm with a switch. Therefore you can utilize non eufy devices (e.g. a motion sensor, leak sensor, break-in sensor, ... from another vendor) to trigger the alarm with a homekit automation."),R(26,"p"),M(27," In order to do so, you must specify in which station mode the alarm can be triggered. "),R(28,"p"),M(29," Please be aware that this setting can only be set on a per station basis and not per automation."),R(30,"br"),M(31," By default the alarm cause will be shown as 'motion detected' in the eufy app. "),R(32,"p"),M(33," The manual alarm respects the delay alarm on leave settings from the eufy app. Triggered automations while the delay is effective will be ignored."),R(34,"br"),M(35," The native alarm delay setting is currently not supported. "),v()()()),2&n&&(C(7),B("checked",-1!==i.value.indexOf(0)||null),C(5),B("checked",-1!==i.value.indexOf(1)||null),C(5),B("checked",-1!==i.value.indexOf(2)||null),C(5),B("checked",-1!==i.value.indexOf(3)||null))},encapsulation:2})),t})();function nHe(e,t){if(1&e&&(p(0,"div",2)(1,"div",3)(2,"b"),M(3,"Station Settings"),v(),M(4," for "),p(5,"i"),M(6),v()(),p(7,"div",4),R(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),Z3("",r.accessory.displayName," (",r.accessory.uniqueId,")"),C(2),y("accessory",r.accessory),C(2),y("accessory",r.accessory),C(2),y("accessory",r.accessory)}}function iHe(e,t){if(1&e){const r=b1();p(0,"p",7)(1,"ngb-alert",8),O("closed",function(){return G(r),$(x().failed=!1)}),h3(),p(2,"svg",9),R(3,"use",10),v(),p3(),p(4,"strong"),M(5,"Reset was not successful!"),v()()()}2&e&&(C(1),y("dismissible",!0))}const aHe=[{path:"",redirectTo:"/accessories",pathMatch:"full"},{path:"accessories",component:o_e},{path:"advancedConfig",component:E_e},{path:"cameraConfig/:uniqueId",component:Rbe},{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(Ke),H(En))}),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&&(p(0,"a",0),M(1,"Back to Devices List"),v(),I(2,nHe,13,5,"div",1)),2&n&&(C(2),y("ngIf",i.accessory))},dependencies:[L1,Pt,Mx,Cx,tHe],encapsulation:2})),t})()},{path:"login",component:eHe},{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 de(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(Ke))}),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&&(p(0,"div",0),I(1,iHe,6,1,"p",1),p(2,"div",2)(3,"h3",3),M(4,"Are you sure that you want to erase everything?"),v(),p(5,"div",4)(6,"button",5),O("click",function(){return i.cancel()}),M(7,"No"),v(),p(8,"button",6),O("click",function(){return i.resetEverything()}),M(9,"Do it!"),v()()()()),2&n&&(C(1),y("ngIf",i.failed),C(5),B("disabled",!!i.disabled||null),C(2),B("disabled",!!i.disabled||null))},dependencies:[L1,FC],encapsulation:2})),t})()},{path:"**",redirectTo:"/accessories"}];let sHe=(()=>{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:[Ub.forRoot(aHe,{scrollPositionRestoration:"enabled"}),Ub]})),t})(),cHe=(()=>{var e;class t{}return e=t,V(t,"\u0275fac",function(n){return new(n||e)}),V(t,"\u0275mod",Fe({type:e,bootstrap:[Eee]})),V(t,"\u0275inj",Ie({providers:[{provide:Kn,useClass:mv}],imports:[SG,P$,CZ,sHe,uJ]})),t})();VG().bootstrapModule(cHe).catch(e=>console.error(e))},919:(Q4,q2)=>{"use strict";q2.byteLength=function a1(le){var be=Ee(le),C1=be[1];return 3*(be[0]+C1)/4-C1},q2.toByteArray=function k1(le){var be,p2,Ye=Ee(le),C1=Ye[0],S1=Ye[1],Xe=new d2(function E(le,be,Ye){return 3*(be+Ye)/4-Ye}(0,C1,S1)),h2=0,ot=S1>0?C1-4:C1;for(p2=0;p2<ot;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},q2.fromByteArray=function Z1(le){for(var be,Ye=le.length,C1=Ye%3,S1=[],h2=0,ot=Ye-C1;h2<ot;h2+=16383)S1.push(P1(le,h2,h2+16383>ot?ot:h2+16383));return 1===C1?S1.push(u1[(be=le[Ye-1])>>2]+u1[be<<4&63]+"=="):2===C1&&S1.push(u1[(be=(le[Ye-2]<<8)+le[Ye-1])>>10]+u1[be>>4&63]+u1[be<<2&63]+"="),S1.join("")};for(var u1=[],Q=[],d2=typeof Uint8Array<"u"?Uint8Array:Array,z1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Je=0;Je<64;++Je)u1[Je]=z1[Je],Q[z1.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 Ye=le.indexOf("=");return-1===Ye&&(Ye=be),[Ye,Ye===be?0:4-Ye%4]}function s1(le){return u1[le>>18&63]+u1[le>>12&63]+u1[le>>6&63]+u1[63&le]}function P1(le,be,Ye){for(var S1=[],Xe=be;Xe<Ye;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:(Q4,q2,u1)=>{"use strict";const d2=u1(919),z1=u1(601),Je="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;q2.lW=E,q2.h2=50;const Se=2147483647;function a1(_){if(_>Se)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|ot(_,u);let b=a1(h);const S=b.write(_,u);return S!==h&&(b=b.slice(0,S)),b}(_,u);if(ArrayBuffer.isView(_))return function Ye(_){if(lt(_,Uint8Array)){const u=new Uint8Array(_);return C1(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(lt(_,ArrayBuffer)||_&&lt(_.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(lt(_,SharedArrayBuffer)||_&&lt(_.buffer,SharedArrayBuffer)))return C1(_,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 S=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(S)return S;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 C1(_,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(_>=Se)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Se.toString(16)+" bytes");return 0|_}function ot(_,u){if(E.isBuffer(_))return _.length;if(ArrayBuffer.isView(_)||lt(_,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 S=!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(S)return b?-1:Wa(_).length;u=(""+u).toLowerCase(),S=!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 Ht(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 bt(_,u,h){const b=_[u];_[u]=_[h],_[h]=b}function Ba(_,u,h,b,S){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=S?0:_.length-1),h<0&&(h=_.length+h),h>=_.length){if(S)return-1;h=_.length-1}else if(h<0){if(!S)return-1;h=0}if("string"==typeof u&&(u=E.from(u,b)),E.isBuffer(u))return 0===u.length?-1:In(_,u,h,b,S);if("number"==typeof u)return u&=255,"function"==typeof Uint8Array.prototype.indexOf?S?Uint8Array.prototype.indexOf.call(_,u,h):Uint8Array.prototype.lastIndexOf.call(_,u,h):In(_,[u],h,b,S);throw new TypeError("val must be string, number or Buffer")}function In(_,u,h,b,S){let e1,A=1,k=_.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,k/=2,Me/=2,h/=2}function h1(p1,Be){return 1===A?p1[Be]:p1.readUInt16BE(Be*A)}if(S){let p1=-1;for(e1=h;e1<k;e1++)if(h1(_,e1)===h1(u,-1===p1?0:e1-p1)){if(-1===p1&&(p1=e1),e1-p1+1===Me)return p1*A}else-1!==p1&&(e1-=e1-p1),p1=-1}else for(h+Me>k&&(h=k-Me),e1=h;e1>=0;e1--){let p1=!0;for(let Be=0;Be<Me;Be++)if(h1(_,e1+Be)!==h1(u,Be)){p1=!1;break}if(p1)return e1}return-1}function J4(_,u,h,b){h=Number(h)||0;const S=_.length-h;b?(b=Number(b))>S&&(b=S):b=S;const A=u.length;let k;for(b>A/2&&(b=A/2),k=0;k<b;++k){const Me=parseInt(u.substr(2*k,2),16);if(c4(Me))return k;_[h+k]=Me}return k}function y6(_,u,h,b){return Rn(Wa(u,_.length-h),_,h,b)}function Sr(_,u,h,b){return Rn(function S6(_){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 Rn(Ka(u),_,h,b)}function Dr(_,u,h,b){return Rn(function qa(_,u){let h,b,S;const A=[];for(let k=0;k<_.length&&!((u-=2)<0);++k)h=_.charCodeAt(k),b=h>>8,S=h%256,A.push(S),A.push(b);return A}(u,_.length-h),_,h,b)}function Ht(_,u,h){return d2.fromByteArray(0===u&&h===_.length?_:_.slice(u,h))}function Ua(_,u,h){h=Math.min(_.length,h);const b=[];let S=u;for(;S<h;){const A=_[S];let k=null,Me=A>239?4:A>223?3:A>191?2:1;if(S+Me<=h){let h1,e1,p1,Be;switch(Me){case 1:A<128&&(k=A);break;case 2:h1=_[S+1],128==(192&h1)&&(Be=(31&A)<<6|63&h1,Be>127&&(k=Be));break;case 3:h1=_[S+1],e1=_[S+2],128==(192&h1)&&128==(192&e1)&&(Be=(15&A)<<12|(63&h1)<<6|63&e1,Be>2047&&(Be<55296||Be>57343)&&(k=Be));break;case 4:h1=_[S+1],e1=_[S+2],p1=_[S+3],128==(192&h1)&&128==(192&e1)&&128==(192&p1)&&(Be=(15&A)<<18|(63&h1)<<12|(63&e1)<<6|63&p1,Be>65535&&Be<1114112&&(k=Be))}}null===k?(k=65533,Me=1):k>65535&&(k-=65536,b.push(k>>>10&1023|55296),k=56320|1023&k),b.push(k),S+=Me}return function We(_){const u=_.length;if(u<=Lr)return String.fromCharCode.apply(String,_);let h="",b=0;for(;b<u;)h+=String.fromCharCode.apply(String,_.slice(b,b+=Lr));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(lt(u,Uint8Array)&&(u=E.from(u,u.offset,u.byteLength)),lt(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,S=h.length;for(let A=0,k=Math.min(b,S);A<k;++A)if(u[A]!==h[A]){b=u[A],S=h[A];break}return b<S?-1:S<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 S=E.allocUnsafe(h);let A=0;for(b=0;b<u.length;++b){let k=u[b];if(lt(k,Uint8Array))A+k.length>S.length?(E.isBuffer(k)||(k=E.from(k)),k.copy(S,A)):Uint8Array.prototype.set.call(S,k,A);else{if(!E.isBuffer(k))throw new TypeError('"list" argument must be an Array of Buffers');k.copy(S,A)}A+=k.length}return S},E.byteLength=ot,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)bt(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)bt(this,h,h+3),bt(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)bt(this,h,h+7),bt(this,h+1,h+6),bt(this,h+2,h+5),bt(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=q2.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,S,A){if(lt(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===S&&(S=0),void 0===A&&(A=this.length),h<0||b>u.length||S<0||A>this.length)throw new RangeError("out of range index");if(S>=A&&h>=b)return 0;if(S>=A)return-1;if(h>=b)return 1;if(this===u)return 0;let k=(A>>>=0)-(S>>>=0),Me=(b>>>=0)-(h>>>=0);const h1=Math.min(k,Me),e1=this.slice(S,A),p1=u.slice(h,b);for(let Be=0;Be<h1;++Be)if(e1[Be]!==p1[Be]){k=e1[Be],Me=p1[Be];break}return k<Me?-1:Me<k?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,S){if(void 0===h)S="utf8",b=this.length,h=0;else if(void 0===b&&"string"==typeof h)S=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===S&&(S="utf8")):(S=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");S||(S="utf8");let k=!1;for(;;)switch(S){case"hex":return J4(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 Dr(this,u,h,b);default:if(k)throw new TypeError("Unknown encoding: "+S);S=(""+S).toLowerCase(),k=!0}},E.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const Lr=4096;function ja(_,u,h){let b="";h=Math.min(_.length,h);for(let S=u;S<h;++S)b+=String.fromCharCode(127&_[S]);return b}function H6(_,u,h){let b="";h=Math.min(_.length,h);for(let S=u;S<h;++S)b+=String.fromCharCode(_[S]);return b}function w6(_,u,h){const b=_.length;(!u||u<0)&&(u=0),(!h||h<0||h>b)&&(h=b);let S="";for(let A=u;A<h;++A)S+=Ya[_[A]];return S}function V6(_,u,h){const b=_.slice(u,h);let S="";for(let A=0;A<b.length-1;A+=2)S+=String.fromCharCode(b[A]+256*b[A+1]);return S}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 r2(_,u,h,b,S,A){if(!E.isBuffer(_))throw new TypeError('"buffer" argument must be a Buffer instance');if(u>S||u<A)throw new RangeError('"value" argument is out of bounds');if(h+b>_.length)throw new RangeError("Index out of range")}function xr(_,u,h,b,S){$a(u,b,S,_,h,7);let A=Number(u&BigInt(4294967295));_[h++]=A,A>>=8,_[h++]=A,A>>=8,_[h++]=A,A>>=8,_[h++]=A;let k=Number(u>>BigInt(32)&BigInt(4294967295));return _[h++]=k,k>>=8,_[h++]=k,k>>=8,_[h++]=k,k>>=8,_[h++]=k,h}function d1(_,u,h,b,S){$a(u,b,S,_,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 k=Number(u>>BigInt(32)&BigInt(4294967295));return _[h+3]=k,k>>=8,_[h+2]=k,k>>=8,_[h+1]=k,k>>=8,_[h]=k,h+8}function qe(_,u,h,b,S,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,S){return u=+u,h>>>=0,S||qe(_,0,h,4),z1.write(_,u,h,b,23,4),h+4}function we(_,u,h,b,S){return u=+u,h>>>=0,S||qe(_,0,h,8),z1.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 S=this.subarray(u,h);return Object.setPrototypeOf(S,E.prototype),S},E.prototype.readUintLE=E.prototype.readUIntLE=function(u,h,b){u>>>=0,h>>>=0,b||ue(u,h,this.length);let S=this[u],A=1,k=0;for(;++k<h&&(A*=256);)S+=this[u+k]*A;return S},E.prototype.readUintBE=E.prototype.readUIntBE=function(u,h,b){u>>>=0,h>>>=0,b||ue(u,h,this.length);let S=this[u+--h],A=1;for(;h>0&&(A*=256);)S+=this[u+--h]*A;return S},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=Gt(function(u){On(u>>>=0,"offset");const h=this[u],b=this[u+7];(void 0===h||void 0===b)&&e3(u,this.length-8);const S=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(S)+(BigInt(A)<<BigInt(32))}),E.prototype.readBigUInt64BE=Gt(function(u){On(u>>>=0,"offset");const h=this[u],b=this[u+7];(void 0===h||void 0===b)&&e3(u,this.length-8);const S=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(S)<<BigInt(32))+BigInt(A)}),E.prototype.readIntLE=function(u,h,b){u>>>=0,h>>>=0,b||ue(u,h,this.length);let S=this[u],A=1,k=0;for(;++k<h&&(A*=256);)S+=this[u+k]*A;return A*=128,S>=A&&(S-=Math.pow(2,8*h)),S},E.prototype.readIntBE=function(u,h,b){u>>>=0,h>>>=0,b||ue(u,h,this.length);let S=h,A=1,k=this[u+--S];for(;S>0&&(A*=256);)k+=this[u+--S]*A;return A*=128,k>=A&&(k-=Math.pow(2,8*h)),k},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=Gt(function(u){On(u>>>=0,"offset");const h=this[u],b=this[u+7];return(void 0===h||void 0===b)&&e3(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=Gt(function(u){On(u>>>=0,"offset");const h=this[u],b=this[u+7];(void 0===h||void 0===b)&&e3(u,this.length-8);const S=(h<<24)+65536*this[++u]+256*this[++u]+this[++u];return(BigInt(S)<<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),z1.read(this,u,!0,23,4)},E.prototype.readFloatBE=function(u,h){return u>>>=0,h||ue(u,4,this.length),z1.read(this,u,!1,23,4)},E.prototype.readDoubleLE=function(u,h){return u>>>=0,h||ue(u,8,this.length),z1.read(this,u,!0,52,8)},E.prototype.readDoubleBE=function(u,h){return u>>>=0,h||ue(u,8,this.length),z1.read(this,u,!1,52,8)},E.prototype.writeUintLE=E.prototype.writeUIntLE=function(u,h,b,S){u=+u,h>>>=0,b>>>=0,S||r2(this,u,h,b,Math.pow(2,8*b)-1,0);let A=1,k=0;for(this[h]=255&u;++k<b&&(A*=256);)this[h+k]=u/A&255;return h+b},E.prototype.writeUintBE=E.prototype.writeUIntBE=function(u,h,b,S){u=+u,h>>>=0,b>>>=0,S||r2(this,u,h,b,Math.pow(2,8*b)-1,0);let A=b-1,k=1;for(this[h+A]=255&u;--A>=0&&(k*=256);)this[h+A]=u/k&255;return h+b},E.prototype.writeUint8=E.prototype.writeUInt8=function(u,h,b){return u=+u,h>>>=0,b||r2(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||r2(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||r2(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||r2(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||r2(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=Gt(function(u,h=0){return xr(this,u,h,BigInt(0),BigInt("0xffffffffffffffff"))}),E.prototype.writeBigUInt64BE=Gt(function(u,h=0){return d1(this,u,h,BigInt(0),BigInt("0xffffffffffffffff"))}),E.prototype.writeIntLE=function(u,h,b,S){if(u=+u,h>>>=0,!S){const h1=Math.pow(2,8*b-1);r2(this,u,h,b,h1-1,-h1)}let A=0,k=1,Me=0;for(this[h]=255&u;++A<b&&(k*=256);)u<0&&0===Me&&0!==this[h+A-1]&&(Me=1),this[h+A]=(u/k>>0)-Me&255;return h+b},E.prototype.writeIntBE=function(u,h,b,S){if(u=+u,h>>>=0,!S){const h1=Math.pow(2,8*b-1);r2(this,u,h,b,h1-1,-h1)}let A=b-1,k=1,Me=0;for(this[h+A]=255&u;--A>=0&&(k*=256);)u<0&&0===Me&&0!==this[h+A+1]&&(Me=1),this[h+A]=(u/k>>0)-Me&255;return h+b},E.prototype.writeInt8=function(u,h,b){return u=+u,h>>>=0,b||r2(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||r2(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||r2(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||r2(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||r2(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=Gt(function(u,h=0){return xr(this,u,h,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),E.prototype.writeBigInt64BE=Gt(function(u,h=0){return d1(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,S){if(!E.isBuffer(u))throw new TypeError("argument should be a Buffer");if(b||(b=0),!S&&0!==S&&(S=this.length),h>=u.length&&(h=u.length),h||(h=0),S>0&&S<b&&(S=b),S===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(S<0)throw new RangeError("sourceEnd out of bounds");S>this.length&&(S=this.length),u.length-h<S-b&&(S=u.length-h+b);const A=S-b;return this===u&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(h,b,S):Uint8Array.prototype.set.call(u,this.subarray(b,S),h),A},E.prototype.fill=function(u,h,b,S){if("string"==typeof u){if("string"==typeof h?(S=h,h=0,b=this.length):"string"==typeof b&&(S=b,b=this.length),void 0!==S&&"string"!=typeof S)throw new TypeError("encoding must be a string");if("string"==typeof S&&!E.isEncoding(S))throw new TypeError("Unknown encoding: "+S);if(1===u.length){const k=u.charCodeAt(0);("utf8"===S&&k<128||"latin1"===S)&&(u=k)}}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 k=E.isBuffer(u)?u:E.from(u,S),Me=k.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]=k[A%Me]}return this};const jt={};function Nr(_,u,h){jt[_]=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(S){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:S,writable:!0})}toString(){return`${this.name} [${_}]: ${this.message}`}}}function X4(_){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,S,A){if(_>h||_<u){const k="bigint"==typeof u?"n":"";let Me;throw Me=A>3?0===u||u===BigInt(0)?`>= 0${k} and < 2${k} ** ${8*(A+1)}${k}`:`>= -(2${k} ** ${8*(A+1)-1}${k}) and < 2 ** ${8*(A+1)-1}${k}`:`>= ${u}${k} and <= ${h}${k}`,new jt.ERR_OUT_OF_RANGE("value",Me,_)}!function z6(_,u,h){On(u,"offset"),(void 0===_[u]||void 0===_[u+h])&&e3(u,_.length-(h+1))}(b,S,A)}function On(_,u){if("number"!=typeof _)throw new jt.ERR_INVALID_ARG_TYPE(u,"number",_)}function e3(_,u,h){throw Math.floor(_)!==_?(On(_,h),new jt.ERR_OUT_OF_RANGE(h||"offset","an integer",_)):u<0?new jt.ERR_BUFFER_OUT_OF_BOUNDS:new jt.ERR_OUT_OF_RANGE(h||"offset",`>= ${h?1:0} and <= ${u}`,_)}Nr("ERR_BUFFER_OUT_OF_BOUNDS",function(_){return _?`${_} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Nr("ERR_INVALID_ARG_TYPE",function(_,u){return`The "${_}" argument must be of type number. Received type ${typeof u}`},TypeError),Nr("ERR_OUT_OF_RANGE",function(_,u,h){let b=`The value of "${_}" is out of range.`,S=h;return Number.isInteger(h)&&Math.abs(h)>2**32?S=X4(String(h)):"bigint"==typeof h&&(S=String(h),(h>BigInt(2)**BigInt(32)||h<-(BigInt(2)**BigInt(32)))&&(S=X4(S)),S+="n"),b+=` It must be ${u}. Received ${S}`,b},RangeError);const lu=/[^+/0-9A-Za-z-_]/g;function Wa(_,u){let h;u=u||1/0;const b=_.length;let S=null;const A=[];for(let k=0;k<b;++k){if(h=_.charCodeAt(k),h>55295&&h<57344){if(!S){if(h>56319){(u-=3)>-1&&A.push(239,191,189);continue}if(k+1===b){(u-=3)>-1&&A.push(239,191,189);continue}S=h;continue}if(h<56320){(u-=3)>-1&&A.push(239,191,189),S=h;continue}h=65536+(S-55296<<10|h-56320)}else S&&(u-=3)>-1&&A.push(239,191,189);if(S=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 fu(_){if((_=(_=_.split("=")[0]).trim().replace(lu,"")).length<2)return"";for(;_.length%4!=0;)_+="=";return _}(_))}function Rn(_,u,h,b){let S;for(S=0;S<b&&!(S+h>=u.length||S>=_.length);++S)u[S+h]=_[S];return S}function lt(_,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 S=0;S<16;++S)u[b+S]=_[h]+_[S]}return u}();function Gt(_){return typeof BigInt>"u"?D6:_}function D6(){throw new Error("BigInt not supported")}},601:(Q4,q2)=>{q2.read=function(u1,Q,d2,z1,Je){var Se,Ee,a1=8*Je-z1-1,E=(1<<a1)-1,k1=E>>1,s1=-7,P1=d2?Je-1:0,Z1=d2?-1:1,le=u1[Q+P1];for(P1+=Z1,Se=le&(1<<-s1)-1,le>>=-s1,s1+=a1;s1>0;Se=256*Se+u1[Q+P1],P1+=Z1,s1-=8);for(Ee=Se&(1<<-s1)-1,Se>>=-s1,s1+=z1;s1>0;Ee=256*Ee+u1[Q+P1],P1+=Z1,s1-=8);if(0===Se)Se=1-k1;else{if(Se===E)return Ee?NaN:1/0*(le?-1:1);Ee+=Math.pow(2,z1),Se-=k1}return(le?-1:1)*Ee*Math.pow(2,Se-z1)},q2.write=function(u1,Q,d2,z1,Je,Se){var Ee,a1,E,k1=8*Se-Je-1,s1=(1<<k1)-1,P1=s1>>1,Z1=23===Je?Math.pow(2,-24)-Math.pow(2,-77):0,le=z1?0:Se-1,be=z1?1:-1,Ye=Q<0||0===Q&&1/Q<0?1:0;for(Q=Math.abs(Q),isNaN(Q)||Q===1/0?(a1=isNaN(Q)?1:0,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;u1[d2+le]=255&a1,le+=be,a1/=256,Je-=8);for(Ee=Ee<<Je|a1,k1+=Je;k1>0;u1[d2+le]=255&Ee,le+=be,Ee/=256,k1-=8);u1[d2+le-be]|=128*Ye}}},Q4=>{Q4(Q4.s=378)}]);