homebridge-eufy-security 2.1.0 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accessories/CameraAccessory.d.ts +2 -2
- package/dist/accessories/CameraAccessory.d.ts.map +1 -1
- package/dist/accessories/CameraAccessory.js +7 -7
- package/dist/accessories/CameraAccessory.js.map +1 -1
- package/dist/accessories/SmartLockAccessory.js +1 -1
- package/dist/accessories/SmartLockAccessory.js.map +1 -1
- package/dist/config.d.ts +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/platform.d.ts +1 -1
- package/dist/platform.d.ts.map +1 -1
- package/dist/platform.js +8 -7
- package/dist/platform.js.map +1 -1
- package/homebridge-ui/configui/app/util/types.d.ts +1 -0
- package/homebridge-ui/configui/app/util/types.d.ts.map +1 -1
- package/homebridge-ui/configui/app/util/types.js.map +1 -1
- package/homebridge-ui/public/index.html +1 -1
- package/homebridge-ui/public/{main.472cd6a08beac876.js → main.ece8fc9a34c8f89b.js} +1 -1
- package/homebridge-ui/server.js +1 -0
- package/homebridge-ui/server.js.map +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunkconfig_ui=self.webpackChunkconfig_ui||[]).push([[179],{623:(wt,z3,r1)=>{"use strict";function Y(e){return"function"==typeof e}function n3(e){const t=e(i=>{Error.call(i),i.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const p1=n3(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((i,r)=>`${r+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function W2(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class H2{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const a of t)a.remove(this);else t.remove(this);const{initialTeardown:i}=this;if(Y(i))try{i()}catch(a){n=a instanceof p1?a.errors:[a]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const a of r)try{N(a)}catch(o){n=null!=n?n:[],o instanceof p1?n=[...n,...o.errors]:n.push(o)}}if(n)throw new p1(n)}}add(n){var t;if(n&&n!==this)if(this.closed)N(n);else{if(n instanceof H2){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(n)}}_hasParent(n){const{_parentage:t}=this;return t===n||Array.isArray(t)&&t.includes(n)}_addParent(n){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n}_removeParent(n){const{_parentage:t}=this;t===n?this._parentage=null:Array.isArray(t)&&W2(t,n)}remove(n){const{_finalizers:t}=this;t&&W2(t,n),n instanceof H2&&n._removeParent(this)}}H2.EMPTY=(()=>{const e=new H2;return e.closed=!0,e})();const x2=H2.EMPTY;function e1(e){return e instanceof H2||e&&"closed"in e&&Y(e.remove)&&Y(e.add)&&Y(e.unsubscribe)}function N(e){Y(e)?e():e.unsubscribe()}const S1={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},t1={setTimeout(e,n,...t){const{delegate:i}=t1;return(null==i?void 0:i.setTimeout)?i.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=t1;return((null==n?void 0:n.clearTimeout)||clearTimeout)(e)},delegate:void 0};function z1(e){t1.setTimeout(()=>{const{onUnhandledError:n}=S1;if(!n)throw e;n(e)})}function k1(){}const n2=u1("C",void 0,void 0);function u1(e,n,t){return{kind:e,value:n,error:t}}let g1=null;function q2(e){if(S1.useDeprecatedSynchronousErrorHandling){const n=!g1;if(n&&(g1={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:i}=g1;if(g1=null,t)throw i}}else e()}class U3 extends H2{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,e1(n)&&n.add(this)):this.destination=xi}static create(n,t,i){return new Be(n,t,i)}next(n){this.isStopped?B6(function F2(e){return u1("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?B6(function _2(e){return u1("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?B6(n2,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const a3=Function.prototype.bind;function a4(e,n){return a3.call(e,n)}class In{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(i){Dt(i)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(i){Dt(i)}else Dt(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){Dt(t)}}}class Be extends U3{constructor(n,t,i){let r;if(super(),Y(n)||!n)r={next:null!=n?n:void 0,error:null!=t?t:void 0,complete:null!=i?i:void 0};else{let a;this&&S1.useDeprecatedNextContext?(a=Object.create(n),a.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&a4(n.next,a),error:n.error&&a4(n.error,a),complete:n.complete&&a4(n.complete,a)}):r=n}this.destination=new In(r)}}function Dt(e){S1.useDeprecatedSynchronousErrorHandling?function r3(e){S1.useDeprecatedSynchronousErrorHandling&&g1&&(g1.errorThrown=!0,g1.error=e)}(e):z1(e)}function B6(e,n){const{onStoppedNotification:t}=S1;t&&t1.setTimeout(()=>t(e,n))}const xi={closed:!0,next:k1,error:function Ni(e){throw e},complete:k1},U6="function"==typeof Symbol&&Symbol.observable||"@@observable";function o4(e){return e}let A2=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){const i=new e;return i.source=this,i.operator=t,i}subscribe(t,i,r){const a=function Ai(e){return e&&e instanceof U3||function Ti(e){return e&&Y(e.next)&&Y(e.error)&&Y(e.complete)}(e)&&e1(e)}(t)?t:new Be(t,i,r);return q2(()=>{const{operator:o,source:s}=this;a.add(o?o.call(a,s):s?this._subscribe(a):this._trySubscribe(a))}),a}_trySubscribe(t){try{return this._subscribe(t)}catch(i){t.error(i)}}forEach(t,i){return new(i=On(i))((r,a)=>{const o=new Be({next:s=>{try{t(s)}catch(c){a(c),o.unsubscribe()}},error:a,complete:r});this.subscribe(o)})}_subscribe(t){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(t)}[U6](){return this}pipe(...t){return function j6(e){return 0===e.length?o4:1===e.length?e[0]:function(t){return e.reduce((i,r)=>r(i),t)}}(t)(this)}toPromise(t){return new(t=On(t))((i,r)=>{let a;this.subscribe(o=>a=o,o=>r(o),()=>i(a))})}}return e.create=n=>new e(n),e})();function On(e){var n;return null!==(n=null!=e?e:S1.Promise)&&void 0!==n?n:Promise}const ki=n3(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let C2=(()=>{class e extends A2{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const i=new q1(this,this);return i.operator=t,i}_throwIfClosed(){if(this.closed)throw new ki}next(t){q2(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(t)}})}error(t){q2(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:i}=this;for(;i.length;)i.shift().error(t)}})}complete(){q2(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:i,isStopped:r,observers:a}=this;return i||r?x2:(this.currentObservers=null,a.push(t),new H2(()=>{this.currentObservers=null,W2(a,t)}))}_checkFinalizedStatuses(t){const{hasError:i,thrownError:r,isStopped:a}=this;i?t.error(r):a&&t.complete()}asObservable(){const t=new A2;return t.source=this,t}}return e.create=(n,t)=>new q1(n,t),e})();class q1 extends C2{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===i||i.call(t,n)}error(n){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===i||i.call(t,n)}complete(){var n,t;null===(t=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===t||t.call(n)}_subscribe(n){var t,i;return null!==(i=null===(t=this.source)||void 0===t?void 0:t.subscribe(n))&&void 0!==i?i:x2}}function G6(e){return Y(null==e?void 0:e.lift)}function a1(e){return n=>{if(G6(n))return n.lift(function(t){try{return e(t,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function O2(e,n,t,i,r){return new Ii(e,n,t,i,r)}class Ii extends U3{constructor(n,t,i,r,a,o){super(n),this.onFinalize=a,this.shouldUnsubscribe=o,this._next=t?function(s){try{t(s)}catch(c){n.error(c)}}:super._next,this._error=r?function(s){try{r(s)}catch(c){n.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(s){n.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function m2(e,n){return a1((t,i)=>{let r=0;t.subscribe(O2(i,a=>{i.next(e.call(n,a,r++))}))})}function w2(e){return this instanceof w2?(this.v=e,this):new w2(e)}function Y2(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=t.apply(e,n||[]),a=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(h){i[h]&&(r[h]=function(p){return new Promise(function(L,H){a.push([h,p,L,H])>1||s(h,p)})})}function s(h,p){try{!function c(h){h.value instanceof w2?Promise.resolve(h.value.v).then(l,u):f(a[0][2],h)}(i[h](p))}catch(L){f(a[0][3],L)}}function l(h){s("next",h)}function u(h){s("throw",h)}function f(h,p){h(p),a.shift(),a.length&&s(a[0][0],a[0][1])}}function o1(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function M(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],i=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(a){t[a]=e[a]&&function(o){return new Promise(function(s,c){!function r(a,o,s,c){Promise.resolve(c).then(function(l){a({value:l,done:s})},o)}(s,c,(o=e[a](o)).done,o.value)})}}}const Fi=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function B9(e){return Y(null==e?void 0:e.then)}function U9(e){return Y(e[U6])}function j9(e){return Symbol.asyncIterator&&Y(null==e?void 0:e[Symbol.asyncIterator])}function G9(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 $9=function ww(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function W9(e){return Y(null==e?void 0:e[$9])}function q9(e){return Y2(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:i,done:r}=yield w2(t.read());if(r)return yield w2(void 0);yield yield w2(i)}}finally{t.releaseLock()}})}function Y9(e){return Y(null==e?void 0:e.getReader)}function o3(e){if(e instanceof A2)return e;if(null!=e){if(U9(e))return function Dw(e){return new A2(n=>{const t=e[U6]();if(Y(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Fi(e))return function Sw(e){return new A2(n=>{for(let t=0;t<e.length&&!n.closed;t++)n.next(e[t]);n.complete()})}(e);if(B9(e))return function zw(e){return new A2(n=>{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,z1)})}(e);if(j9(e))return K9(e);if(W9(e))return function Nw(e){return new A2(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(Y9(e))return function xw(e){return K9(q9(e))}(e)}throw G9(e)}function K9(e){return new A2(n=>{(function Ew(e,n){var t,i,r,a;return function Ri(e,n,t,i){return new(t||(t=Promise))(function(a,o){function s(u){try{l(i.next(u))}catch(f){o(f)}}function c(u){try{l(i.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):function r(a){return a instanceof t?a:new t(function(o){o(a)})}(u.value).then(s,c)}l((i=i.apply(e,n||[])).next())})}(this,void 0,void 0,function*(){try{for(t=o1(e);!(i=yield t.next()).done;)if(n.next(i.value),n.closed)return}catch(o){r={error:o}}finally{try{i&&!i.done&&(a=t.return)&&(yield a.call(t))}finally{if(r)throw r.error}}n.complete()})})(e,n).catch(t=>n.error(t))})}function $4(e,n,t,i=0,r=!1){const a=n.schedule(function(){t(),r?e.add(this.schedule(null,i)):this.unsubscribe()},i);if(e.add(a),!r)return a}function b1(e,n,t=1/0){return Y(n)?b1((i,r)=>m2((a,o)=>n(i,a,r,o))(o3(e(i,r))),t):("number"==typeof n&&(t=n),a1((i,r)=>function Tw(e,n,t,i,r,a,o,s){const c=[];let l=0,u=0,f=!1;const h=()=>{f&&!c.length&&!l&&n.complete()},p=H=>l<i?L(H):c.push(H),L=H=>{a&&n.next(H),l++;let S=!1;o3(t(H,u++)).subscribe(O2(n,z=>{null==r||r(z),a?p(z):n.next(z)},()=>{S=!0},void 0,()=>{if(S)try{for(l--;c.length&&l<i;){const z=c.shift();o?$4(n,o,()=>L(z)):L(z)}h()}catch(z){n.error(z)}}))};return e.subscribe(O2(n,p,()=>{f=!0,h()})),()=>{null==s||s()}}(i,r,e,t)))}function q6(e=1/0){return b1(o4,e)}const c4=new A2(e=>e.complete());function Q9(e){return e&&Y(e.schedule)}function Bi(e){return e[e.length-1]}function Bn(e){return Y(Bi(e))?e.pop():void 0}function Y6(e){return Q9(Bi(e))?e.pop():void 0}function Z9(e,n=0){return a1((t,i)=>{t.subscribe(O2(i,r=>$4(i,e,()=>i.next(r),n),()=>$4(i,e,()=>i.complete(),n),r=>$4(i,e,()=>i.error(r),n)))})}function J9(e,n=0){return a1((t,i)=>{i.add(e.schedule(()=>t.subscribe(i),n))})}function X9(e,n){if(!e)throw new Error("Iterable cannot be null");return new A2(t=>{$4(t,n,()=>{const i=e[Symbol.asyncIterator]();$4(t,n,()=>{i.next().then(r=>{r.done?t.complete():t.next(r.value)})},0,!0)})})}function G1(e,n){return n?function Bw(e,n){if(null!=e){if(U9(e))return function Iw(e,n){return o3(e).pipe(J9(n),Z9(n))}(e,n);if(Fi(e))return function Rw(e,n){return new A2(t=>{let i=0;return n.schedule(function(){i===e.length?t.complete():(t.next(e[i++]),t.closed||this.schedule())})})}(e,n);if(B9(e))return function Ow(e,n){return o3(e).pipe(J9(n),Z9(n))}(e,n);if(j9(e))return X9(e,n);if(W9(e))return function Pw(e,n){return new A2(t=>{let i;return $4(t,n,()=>{i=e[$9](),$4(t,n,()=>{let r,a;try{({value:r,done:a}=i.next())}catch(o){return void t.error(o)}a?t.complete():t.next(r)},0,!0)}),()=>Y(null==i?void 0:i.return)&&i.return()})}(e,n);if(Y9(e))return function Fw(e,n){return X9(q9(e),n)}(e,n)}throw G9(e)}(e,n):o3(e)}function ec(...e){const n=Y6(e),t=function kw(e,n){return"number"==typeof Bi(e)?e.pop():n}(e,1/0),i=e;return i.length?1===i.length?o3(i[0]):q6(t)(G1(i,n)):c4}function K1(e){return e<=0?()=>c4:a1((n,t)=>{let i=0;n.subscribe(O2(t,r=>{++i<=e&&(t.next(r),e<=i&&t.complete())}))})}function tc(e={}){const{connector:n=(()=>new C2),resetOnError:t=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=e;return a=>{let o=null,s=null,c=null,l=0,u=!1,f=!1;const h=()=>{null==s||s.unsubscribe(),s=null},p=()=>{h(),o=c=null,u=f=!1},L=()=>{const H=o;p(),null==H||H.unsubscribe()};return a1((H,S)=>{l++,!f&&!u&&h();const z=c=null!=c?c:n();S.add(()=>{l--,0===l&&!f&&!u&&(s=Ui(L,r))}),z.subscribe(S),o||(o=new Be({next:w=>z.next(w),error:w=>{f=!0,h(),s=Ui(p,t,w),z.error(w)},complete:()=>{u=!0,h(),s=Ui(p,i),z.complete()}}),G1(H).subscribe(o))})(a)}}function Ui(e,n,...t){return!0===n?(e(),null):!1===n?null:n(...t).pipe(K1(1)).subscribe(()=>e())}function B2(e){for(let n in e)if(e[n]===B2)return n;throw Error("Could not find renamed property on target object.")}function ji(e,n){for(const t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function k2(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(k2).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const n=e.toString();if(null==n)return""+n;const t=n.indexOf("\n");return-1===t?n:n.substring(0,t)}function Gi(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}const Uw=B2({__forward_ref__:B2});function N2(e){return e.__forward_ref__=N2,e.toString=function(){return k2(this())},e}function d2(e){return nc(e)?e():e}function nc(e){return"function"==typeof e&&e.hasOwnProperty(Uw)&&e.__forward_ref__===N2}class S2 extends Error{constructor(n,t){super(function $i(e,n){return`NG0${Math.abs(e)}${n?": "+n:""}`}(n,t)),this.code=n}}function o2(e){return"string"==typeof e?e:null==e?"":String(e)}function Q1(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():o2(e)}function Un(e,n){const t=n?` in ${n}`:"";throw new S2(-201,`No provider for ${Q1(e)} found${t}`)}function x3(e,n){null==e&&function U2(e,n,t,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${t} ${i} ${n} <=Actual]`))}(n,e,null,"!=")}function Z(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function E2(e){return{providers:e.providers||[],imports:e.imports||[]}}function Wi(e){return ic(e,jn)||ic(e,ac)}function ic(e,n){return e.hasOwnProperty(n)?e[n]:null}function rc(e){return e&&(e.hasOwnProperty(qi)||e.hasOwnProperty(Kw))?e[qi]:null}const jn=B2({\u0275prov:B2}),qi=B2({\u0275inj:B2}),ac=B2({ngInjectableDef:B2}),Kw=B2({ngInjectorDef:B2});var r2=(()=>((r2=r2||{})[r2.Default=0]="Default",r2[r2.Host=1]="Host",r2[r2.Self=2]="Self",r2[r2.SkipSelf=4]="SkipSelf",r2[r2.Optional=8]="Optional",r2))();let Yi;function ge(e){const n=Yi;return Yi=e,n}function oc(e,n,t){const i=Wi(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:t&r2.Optional?null:void 0!==n?n:void Un(k2(e),"Injector")}function me(e){return{toString:e}.toString()}var l4=(()=>((l4=l4||{})[l4.OnPush=0]="OnPush",l4[l4.Default=1]="Default",l4))(),w4=(()=>{return(e=w4||(w4={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",w4;var e})();const Zw="undefined"!=typeof globalThis&&globalThis,Jw="undefined"!=typeof window&&window,Xw="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,R2=Zw||"undefined"!=typeof global&&global||Jw||Xw,St={},j2=[],Gn=B2({\u0275cmp:B2}),Ki=B2({\u0275dir:B2}),Qi=B2({\u0275pipe:B2}),sc=B2({\u0275mod:B2}),q4=B2({\u0275fac:B2}),K6=B2({__NG_ELEMENT_ID__:B2});let eD=0;function s2(e){return me(()=>{const t={},i={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===l4.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||j2,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||w4.Emulated,id:"c",styles:e.styles||j2,_:null,setInput:null,schemas:e.schemas||null,tView:null},r=e.directives,a=e.features,o=e.pipes;return i.id+=eD++,i.inputs=fc(e.inputs,t),i.outputs=fc(e.outputs),a&&a.forEach(s=>s(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(cc):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(lc):null,i})}function cc(e){return s3(e)||function ve(e){return e[Ki]||null}(e)}function lc(e){return function je(e){return e[Qi]||null}(e)}const uc={};function T2(e){return me(()=>{const n={type:e.type,bootstrap:e.bootstrap||j2,declarations:e.declarations||j2,imports:e.imports||j2,exports:e.exports||j2,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(uc[e.id]=e.type),n})}function fc(e,n){if(null==e)return St;const t={};for(const i in e)if(e.hasOwnProperty(i)){let r=e[i],a=r;Array.isArray(r)&&(a=r[1],r=r[0]),t[r]=i,n&&(n[r]=a)}return t}const U=s2;function s3(e){return e[Gn]||null}function j3(e,n){const t=e[sc]||null;if(!t&&!0===n)throw new Error(`Type ${k2(e)} does not have '\u0275mod' property.`);return t}function D4(e){return Array.isArray(e)&&"object"==typeof e[1]}function f4(e){return Array.isArray(e)&&!0===e[1]}function Xi(e){return 0!=(8&e.flags)}function Yn(e){return 2==(2&e.flags)}function Kn(e){return 1==(1&e.flags)}function C4(e){return null!==e.template}function oD(e){return 0!=(512&e[2])}function qe(e,n){return e.hasOwnProperty(q4)?e[q4]:null}class lD{constructor(n,t,i){this.previousValue=n,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}}function N1(){return dc}function dc(e){return e.type.prototype.ngOnChanges&&(e.setInput=fD),uD}function uD(){const e=pc(this),n=null==e?void 0:e.current;if(n){const t=e.previous;if(t===St)e.previous=n;else for(let i in n)t[i]=n[i];e.current=null,this.ngOnChanges(n)}}function fD(e,n,t,i){const r=pc(e)||function CD(e,n){return e[hc]=n}(e,{previous:St,current:null}),a=r.current||(r.current={}),o=r.previous,s=this.declaredInputs[t],c=o[s];a[s]=new lD(c&&c.currentValue,n,o===St),e[i]=n}N1.ngInherit=!0;const hc="__ngSimpleChanges__";function pc(e){return e[hc]||null}let rr;function ar(){return void 0!==rr?rr:"undefined"!=typeof document?document:void 0}function m1(e){return!!e.listen}const gc={createRenderer:(e,n)=>ar()};function x1(e){for(;Array.isArray(e);)e=e[0];return e}function Qn(e,n){return x1(n[e])}function W3(e,n){return x1(n[e.index])}function or(e,n){return e.data[n]}function T3(e,n){const t=n[e];return D4(t)?t:t[0]}function mc(e){return 4==(4&e[2])}function sr(e){return 128==(128&e[2])}function _e(e,n){return null==n?null:e[n]}function vc(e){e[18]=0}function cr(e,n){e[5]+=n;let t=e,i=e[3];for(;null!==i&&(1===n&&1===t[5]||-1===n&&0===t[5]);)i[5]+=n,t=i,i=i[3]}const c2={lFrame:Dc(null),bindingsEnabled:!0};function Mc(){return c2.bindingsEnabled}function k(){return c2.lFrame.lView}function z2(){return c2.lFrame.tView}function W(e){return c2.lFrame.contextLView=e,e[8]}function I1(){let e=yc();for(;null!==e&&64===e.type;)e=e.parent;return e}function yc(){return c2.lFrame.currentTNode}function S4(e,n){const t=c2.lFrame;t.currentTNode=e,t.isParent=n}function lr(){return c2.lFrame.isParent}function ur(){c2.lFrame.isParent=!1}function At(){return c2.lFrame.bindingIndex++}function K4(e){const n=c2.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function zD(e,n){const t=c2.lFrame;t.bindingIndex=t.bindingRootIndex=e,fr(n)}function fr(e){c2.lFrame.currentDirectiveIndex=e}function Vc(){return c2.lFrame.currentQueryIndex}function dr(e){c2.lFrame.currentQueryIndex=e}function xD(e){const n=e[1];return 2===n.type?n.declTNode:1===n.type?e[6]:null}function Hc(e,n,t){if(t&r2.SkipSelf){let r=n,a=e;for(;!(r=r.parent,null!==r||t&r2.Host||(r=xD(a),null===r||(a=a[15],10&r.type))););if(null===r)return!1;n=r,e=a}const i=c2.lFrame=wc();return i.currentTNode=n,i.lView=e,!0}function Jn(e){const n=wc(),t=e[1];c2.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function wc(){const e=c2.lFrame,n=null===e?null:e.child;return null===n?Dc(e):n}function Dc(e){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=n),n}function Sc(){const e=c2.lFrame;return c2.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const zc=Sc;function Xn(){const e=Sc();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 v3(){return c2.lFrame.selectedIndex}function Me(e){c2.lFrame.selectedIndex=e}function v1(){const e=c2.lFrame;return or(e.tView,e.selectedIndex)}function kt(){c2.lFrame.currentNamespace="svg"}function It(){!function kD(){c2.lFrame.currentNamespace=null}()}function e8(e,n){for(let t=n.directiveStart,i=n.directiveEnd;t<i;t++){const a=e.data[t].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:s,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:u}=a;o&&(e.contentHooks||(e.contentHooks=[])).push(-t,o),s&&((e.contentHooks||(e.contentHooks=[])).push(t,s),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(t,s)),c&&(e.viewHooks||(e.viewHooks=[])).push(-t,c),l&&((e.viewHooks||(e.viewHooks=[])).push(t,l),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(t,l)),null!=u&&(e.destroyHooks||(e.destroyHooks=[])).push(t,u)}}function t8(e,n,t){Nc(e,n,3,t)}function n8(e,n,t,i){(3&e[2])===t&&Nc(e,n,t,i)}function hr(e,n){let t=e[2];(3&t)===n&&(t&=2047,t+=1,e[2]=t)}function Nc(e,n,t,i){const a=null!=i?i:-1,o=n.length-1;let s=0;for(let c=void 0!==i?65535&e[18]:0;c<o;c++)if("number"==typeof n[c+1]){if(s=n[c],null!=i&&s>=i)break}else n[c]<0&&(e[18]+=65536),(s<a||-1==a)&&(RD(e,t,n,c),e[18]=(4294901760&e[18])+c+2),c++}function RD(e,n,t,i){const r=t[i]<0,a=t[i+1],s=e[r?-t[i]:t[i]];if(r){if(e[2]>>11<e[18]>>16&&(3&e[2])===n){e[2]+=2048;try{a.call(s)}finally{}}}else try{a.call(s)}finally{}}class e5{constructor(n,t,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=i}}function i8(e,n,t){const i=m1(e);let r=0;for(;r<t.length;){const a=t[r];if("number"==typeof a){if(0!==a)break;r++;const o=t[r++],s=t[r++],c=t[r++];i?e.setAttribute(n,s,c,o):n.setAttributeNS(o,s,c)}else{const o=a,s=t[++r];gr(o)?i&&e.setProperty(n,o,s):i?e.setAttribute(n,o,s):n.setAttribute(o,s),r++}}return r}function xc(e){return 3===e||4===e||6===e}function gr(e){return 64===e.charCodeAt(0)}function r8(e,n){if(null!==n&&0!==n.length)if(null===e||0===e.length)e=n.slice();else{let t=-1;for(let i=0;i<n.length;i++){const r=n[i];"number"==typeof r?t=r:0===t||Ec(e,t,r,null,-1===t||2===t?n[++i]:null)}}return e}function Ec(e,n,t,i,r){let a=0,o=e.length;if(-1===n)o=-1;else for(;a<e.length;){const s=e[a++];if("number"==typeof s){if(s===n){o=-1;break}if(s>n){o=a-1;break}}}for(;a<e.length;){const s=e[a];if("number"==typeof s)break;if(s===t){if(null===i)return void(null!==r&&(e[a+1]=r));if(i===e[a+1])return void(e[a+2]=r)}a++,null!==i&&a++,null!==r&&a++}-1!==o&&(e.splice(o,0,n),a=o+1),e.splice(a++,0,t),null!==i&&e.splice(a++,0,i),null!==r&&e.splice(a++,0,r)}function Tc(e){return-1!==e}function Ot(e){return 32767&e}function Rt(e,n){let t=function jD(e){return e>>16}(e),i=n;for(;t>0;)i=i[15],t--;return i}let mr=!0;function a8(e){const n=mr;return mr=e,n}let GD=0;function n5(e,n){const t=_r(e,n);if(-1!==t)return t;const i=n[1];i.firstCreatePass&&(e.injectorIndex=n.length,vr(i.data,e),vr(n,null),vr(i.blueprint,null));const r=o8(e,n),a=e.injectorIndex;if(Tc(r)){const o=Ot(r),s=Rt(r,n),c=s[1].data;for(let l=0;l<8;l++)n[a+l]=s[o+l]|c[o+l]}return n[a+8]=r,a}function vr(e,n){e.push(0,0,0,0,0,0,0,0,n)}function _r(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function o8(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let t=0,i=null,r=n;for(;null!==r;){const a=r[1],o=a.type;if(i=2===o?a.declTNode:1===o?r[6]:null,null===i)return-1;if(t++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|t<<16}return-1}function s8(e,n,t){!function $D(e,n,t){let i;"string"==typeof t?i=t.charCodeAt(0)||0:t.hasOwnProperty(K6)&&(i=t[K6]),null==i&&(i=t[K6]=GD++);const r=255&i;n.data[e+(r>>5)]|=1<<r}(e,n,t)}function Ic(e,n,t){if(t&r2.Optional)return e;Un(n,"NodeInjector")}function Oc(e,n,t,i){if(t&r2.Optional&&void 0===i&&(i=null),0==(t&(r2.Self|r2.Host))){const r=e[9],a=ge(void 0);try{return r?r.get(n,i,t&r2.Optional):oc(n,i,t&r2.Optional)}finally{ge(a)}}return Ic(i,n,t)}function Rc(e,n,t,i=r2.Default,r){if(null!==e){const a=function KD(e){if("string"==typeof e)return e.charCodeAt(0)||0;const n=e.hasOwnProperty(K6)?e[K6]:void 0;return"number"==typeof n?n>=0?255&n:qD:n}(t);if("function"==typeof a){if(!Hc(n,e,i))return i&r2.Host?Ic(r,t,i):Oc(n,t,i,r);try{const o=a(i);if(null!=o||i&r2.Optional)return o;Un(t)}finally{zc()}}else if("number"==typeof a){let o=null,s=_r(e,n),c=-1,l=i&r2.Host?n[16][6]:null;for((-1===s||i&r2.SkipSelf)&&(c=-1===s?o8(e,n):n[s+8],-1!==c&&Bc(i,!1)?(o=n[1],s=Ot(c),n=Rt(c,n)):s=-1);-1!==s;){const u=n[1];if(Fc(a,s,u.data)){const f=YD(s,n,t,o,i,l);if(f!==Pc)return f}c=n[s+8],-1!==c&&Bc(i,n[1].data[s+8]===l)&&Fc(a,s,n)?(o=u,s=Ot(c),n=Rt(c,n)):s=-1}}}return Oc(n,t,i,r)}const Pc={};function qD(){return new Pt(I1(),k())}function YD(e,n,t,i,r,a){const o=n[1],s=o.data[e+8],u=c8(s,o,t,null==i?Yn(s)&&mr:i!=o&&0!=(3&s.type),r&r2.Host&&a===s);return null!==u?i5(n,o,u,s):Pc}function c8(e,n,t,i,r){const a=e.providerIndexes,o=n.data,s=1048575&a,c=e.directiveStart,u=a>>20,h=r?s+u:e.directiveEnd;for(let p=i?s:s+u;p<h;p++){const L=o[p];if(p<c&&t===L||p>=c&&L.type===t)return p}if(r){const p=o[c];if(p&&C4(p)&&p.type===t)return c}return null}function i5(e,n,t,i){let r=e[t];const a=n.data;if(function PD(e){return e instanceof e5}(r)){const o=r;o.resolving&&function jw(e,n){const t=n?`. Dependency path: ${n.join(" > ")} > ${e}`:"";throw new S2(-200,`Circular dependency in DI detected for ${e}${t}`)}(Q1(a[t]));const s=a8(o.canSeeViewProviders);o.resolving=!0;const c=o.injectImpl?ge(o.injectImpl):null;Hc(e,i,r2.Default);try{r=e[t]=o.factory(void 0,a,e,i),n.firstCreatePass&&t>=i.directiveStart&&function OD(e,n,t){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:a}=n.type.prototype;if(i){const o=dc(n);(t.preOrderHooks||(t.preOrderHooks=[])).push(e,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,o)}r&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-e,r),a&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e,a),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,a))}(t,a[t],n)}finally{null!==c&&ge(c),a8(s),o.resolving=!1,zc()}}return r}function Fc(e,n,t){return!!(t[n+(e>>5)]&1<<e)}function Bc(e,n){return!(e&r2.Self||e&r2.Host&&n)}class Pt{constructor(n,t){this._tNode=n,this._lView=t}get(n,t,i){return Rc(this._tNode,this._lView,n,i,t)}}function l3(e){return me(()=>{const n=e.prototype.constructor,t=n[q4]||Mr(n),i=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==i;){const a=r[q4]||Mr(r);if(a&&a!==t)return a;r=Object.getPrototypeOf(r)}return a=>new a})}function Mr(e){return nc(e)?()=>{const n=Mr(d2(e));return n&&n()}:qe(e)}const Bt="__parameters__";function jt(e,n,t){return me(()=>{const i=function yr(e){return function(...t){if(e){const i=e(...t);for(const r in i)this[r]=i[r]}}}(n);function r(...a){if(this instanceof r)return i.apply(this,a),this;const o=new r(...a);return s.annotation=o,s;function s(c,l,u){const f=c.hasOwnProperty(Bt)?c[Bt]:Object.defineProperty(c,Bt,{value:[]})[Bt];for(;f.length<=u;)f.push(null);return(f[u]=f[u]||[]).push(o),c}}return t&&(r.prototype=Object.create(t.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}class v2{constructor(n,t){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=Z({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const ZD=new v2("AnalyzeForEntryComponents");function q3(e,n){void 0===n&&(n=e);for(let t=0;t<e.length;t++){let i=e[t];Array.isArray(i)?(n===e&&(n=e.slice(0,t)),q3(i,n)):n!==e&&n.push(i)}return n}function z4(e,n){e.forEach(t=>Array.isArray(t)?z4(t,n):n(t))}function jc(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function l8(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function o5(e,n){const t=[];for(let i=0;i<e;i++)t.push(n);return t}function A3(e,n,t){let i=Gt(e,n);return i>=0?e[1|i]=t:(i=~i,function eS(e,n,t,i){let r=e.length;if(r==n)e.push(t,i);else if(1===r)e.push(i,e[0]),e[0]=t;else{for(r--,e.push(e[r-1],e[r]);r>n;)e[r]=e[r-2],r--;e[n]=t,e[n+1]=i}}(e,i,n,t)),i}function Lr(e,n){const t=Gt(e,n);if(t>=0)return e[1|t]}function Gt(e,n){return function Wc(e,n,t){let i=0,r=e.length>>t;for(;r!==i;){const a=i+(r-i>>1),o=e[a<<t];if(n===o)return a<<t;o>n?r=a:i=a+1}return~(r<<t)}(e,n,1)}const s5={},Hr="__NG_DI_FLAG__",f8="ngTempTokenPath",sS=/\n/gm,Yc="__source",lS=B2({provide:String,useValue:B2});let c5;function Kc(e){const n=c5;return c5=e,n}function uS(e,n=r2.Default){if(void 0===c5)throw new S2(203,"");return null===c5?oc(e,void 0,n):c5.get(e,n&r2.Optional?null:void 0,n)}function q(e,n=r2.Default){return(function Qw(){return Yi}()||uS)(d2(e),n)}const fS=q;function wr(e){const n=[];for(let t=0;t<e.length;t++){const i=d2(e[t]);if(Array.isArray(i)){if(0===i.length)throw new S2(900,"");let r,a=r2.Default;for(let o=0;o<i.length;o++){const s=i[o],c=CS(s);"number"==typeof c?-1===c?r=s.token:a|=c:r=s}n.push(q(r,a))}else n.push(q(i))}return n}function l5(e,n){return e[Hr]=n,e.prototype[Hr]=n,e}function CS(e){return e[Hr]}const C8=l5(jt("Inject",e=>({token:e})),-1),be=l5(jt("Optional"),8),u5=l5(jt("SkipSelf"),4);let h8,p8;function Wt(e){var n;return(null===(n=function Sr(){if(void 0===h8&&(h8=null,R2.trustedTypes))try{h8=R2.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return h8}())||void 0===n?void 0:n.createHTML(e))||e}function tl(e){var n;return(null===(n=function zr(){if(void 0===p8&&(p8=null,R2.trustedTypes))try{p8=R2.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return p8}())||void 0===n?void 0:n.createHTML(e))||e}class Ke{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class HS extends Ke{getTypeName(){return"HTML"}}class wS extends Ke{getTypeName(){return"Style"}}class DS extends Ke{getTypeName(){return"Script"}}class SS extends Ke{getTypeName(){return"URL"}}class zS extends Ke{getTypeName(){return"ResourceURL"}}function k3(e){return e instanceof Ke?e.changingThisBreaksApplicationSecurity:e}function N4(e,n){const t=rl(e);if(null!=t&&t!==n){if("ResourceURL"===t&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${t} (see https://g.co/ng/security#xss)`)}return t===n}function rl(e){return e instanceof Ke&&e.getTypeName()||null}class kS{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{const t=(new window.DOMParser).parseFromString(Wt(n),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(n):(t.removeChild(t.firstChild),t)}catch(t){return null}}}class IS{constructor(n){if(this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const i=this.inertDocument.createElement("body");t.appendChild(i)}}getInertBodyElement(n){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=Wt(n),t;const i=this.inertDocument.createElement("body");return i.innerHTML=Wt(n),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(n){const t=n.attributes;for(let r=t.length-1;0<r;r--){const o=t.item(r).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&n.removeAttribute(o)}let i=n.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const RS=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,PS=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function C5(e){return(e=String(e)).match(RS)||e.match(PS)?e:"unsafe:"+e}function x4(e){const n={};for(const t of e.split(","))n[t]=!0;return n}function d5(...e){const n={};for(const t of e)for(const i in t)t.hasOwnProperty(i)&&(n[i]=!0);return n}const sl=x4("area,br,col,hr,img,wbr"),cl=x4("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ll=x4("rp,rt"),Nr=d5(sl,d5(cl,x4("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")),d5(ll,x4("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")),d5(ll,cl)),xr=x4("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Er=x4("srcset"),ul=d5(xr,Er,x4("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),x4("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")),FS=x4("script,style,template");class BS{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let t=n.firstChild,i=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?i=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,i&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let r=this.checkClobberedElement(t,t.nextSibling);if(r){t=r;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(n){const t=n.nodeName.toLowerCase();if(!Nr.hasOwnProperty(t))return this.sanitizedSomething=!0,!FS.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const i=n.attributes;for(let r=0;r<i.length;r++){const a=i.item(r),o=a.name,s=o.toLowerCase();if(!ul.hasOwnProperty(s)){this.sanitizedSomething=!0;continue}let c=a.value;xr[s]&&(c=C5(c)),Er[s]&&(e=c,c=(e=String(e)).split(",").map(n=>C5(n.trim())).join(", ")),this.buf.push(" ",o,'="',fl(c),'"')}var e;return this.buf.push(">"),!0}endElement(n){const t=n.nodeName.toLowerCase();Nr.hasOwnProperty(t)&&!sl.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(n){this.buf.push(fl(n))}checkClobberedElement(n,t){if(t&&(n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return t}}const US=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,jS=/([^\#-~ |!])/g;function fl(e){return e.replace(/&/g,"&").replace(US,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(jS,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let g8;function Cl(e,n){let t=null;try{g8=g8||function al(e){const n=new IS(e);return function OS(){try{return!!(new window.DOMParser).parseFromString(Wt(""),"text/html")}catch(e){return!1}}()?new kS(n):n}(e);let i=n?String(n):"";t=g8.getInertBodyElement(i);let r=5,a=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=a,a=t.innerHTML,t=g8.getInertBodyElement(i)}while(i!==a);return Wt((new BS).sanitizeChildren(Tr(t)||t))}finally{if(t){const i=Tr(t)||t;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Tr(e){return"content"in e&&function GS(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Q2=(()=>((Q2=Q2||{})[Q2.NONE=0]="NONE",Q2[Q2.HTML=1]="HTML",Q2[Q2.STYLE=2]="STYLE",Q2[Q2.SCRIPT=3]="SCRIPT",Q2[Q2.URL=4]="URL",Q2[Q2.RESOURCE_URL=5]="RESOURCE_URL",Q2))();function dl(e){const n=h5();return n?tl(n.sanitize(Q2.HTML,e)||""):N4(e,"HTML")?tl(k3(e)):Cl(ar(),o2(e))}function Q4(e){const n=h5();return n?n.sanitize(Q2.STYLE,e)||"":N4(e,"Style")?k3(e):o2(e)}function Qe(e){const n=h5();return n?n.sanitize(Q2.URL,e)||"":N4(e,"URL")?k3(e):C5(o2(e))}function h5(){const e=k();return e&&e[12]}const gl="__ngContext__";function u3(e,n){e[gl]=n}function kr(e){const n=function p5(e){return e[gl]||null}(e);return n?Array.isArray(n)?n:n.lView:null}function Or(e){return e.ngOriginalError}function az(e,...n){e.error(...n)}class g5{constructor(){this._console=console}handleError(n){const t=this._findOriginalError(n),i=function rz(e){return e&&e.ngErrorLogger||az}(n);i(this._console,"ERROR",n),t&&i(this._console,"ORIGINAL ERROR",t)}_findOriginalError(n){let t=n&&Or(n);for(;t&&Or(t);)t=Or(t);return t||null}}const pz=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(R2))();function E4(e){return e instanceof Function?e():e}var I3=(()=>((I3=I3||{})[I3.Important=1]="Important",I3[I3.DashCase=2]="DashCase",I3))();function Pr(e,n){return undefined(e,n)}function m5(e){const n=e[3];return f4(n)?n[3]:n}function Fr(e){return Hl(e[13])}function Br(e){return Hl(e[4])}function Hl(e){for(;null!==e&&!f4(e);)e=e[4];return e}function Yt(e,n,t,i,r){if(null!=i){let a,o=!1;f4(i)?a=i:D4(i)&&(o=!0,i=i[0]);const s=x1(i);0===e&&null!==t?null==r?xl(n,t,s):Ze(n,t,s,r||null,!0):1===e&&null!==t?Ze(n,t,s,r||null,!0):2===e?function Rl(e,n,t){const i=m8(e,n);i&&function zz(e,n,t,i){m1(e)?e.removeChild(n,t,i):n.removeChild(t)}(e,i,n,t)}(n,s,o):3===e&&n.destroyNode(s),null!=a&&function Ez(e,n,t,i,r){const a=t[7];a!==x1(t)&&Yt(n,e,i,a,r);for(let s=10;s<t.length;s++){const c=t[s];v5(c[1],c,e,n,i,a)}}(n,e,a,t,r)}}function jr(e,n,t){if(m1(e))return e.createElement(n,t);{const i=null!==t?function gD(e){const n=e.toLowerCase();return"svg"===n?"http://www.w3.org/2000/svg":"math"===n?"http://www.w3.org/1998/MathML/":null}(t):null;return null===i?e.createElement(n):e.createElementNS(i,n)}}function Dl(e,n){const t=e[9],i=t.indexOf(n),r=n[3];1024&n[2]&&(n[2]&=-1025,cr(r,-1)),t.splice(i,1)}function Gr(e,n){if(e.length<=10)return;const t=10+n,i=e[t];if(i){const r=i[17];null!==r&&r!==e&&Dl(r,i),n>0&&(e[t-1][4]=i[4]);const a=l8(e,10+n);!function yz(e,n){v5(e,n,n[11],2,null,null),n[0]=null,n[6]=null}(i[1],i);const o=a[19];null!==o&&o.detachView(a[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function Sl(e,n){if(!(256&n[2])){const t=n[11];m1(t)&&t.destroyNode&&v5(e,n,t,3,null,null),function Vz(e){let n=e[13];if(!n)return $r(e[1],e);for(;n;){let t=null;if(D4(n))t=n[13];else{const i=n[10];i&&(t=i)}if(!t){for(;n&&!n[4]&&n!==e;)D4(n)&&$r(n[1],n),n=n[3];null===n&&(n=e),D4(n)&&$r(n[1],n),t=n&&n[4]}n=t}}(n)}}function $r(e,n){if(!(256&n[2])){n[2]&=-129,n[2]|=256,function Sz(e,n){let t;if(null!=e&&null!=(t=e.destroyHooks))for(let i=0;i<t.length;i+=2){const r=n[t[i]];if(!(r instanceof e5)){const a=t[i+1];if(Array.isArray(a))for(let o=0;o<a.length;o+=2){const s=r[a[o]],c=a[o+1];try{c.call(s)}finally{}}else try{a.call(r)}finally{}}}}(e,n),function Dz(e,n){const t=e.cleanup,i=n[7];let r=-1;if(null!==t)for(let a=0;a<t.length-1;a+=2)if("string"==typeof t[a]){const o=t[a+1],s="function"==typeof o?o(n):x1(n[o]),c=i[r=t[a+2]],l=t[a+3];"boolean"==typeof l?s.removeEventListener(t[a],c,l):l>=0?i[r=l]():i[r=-l].unsubscribe(),a+=2}else{const o=i[r=t[a+1]];t[a].call(o)}if(null!==i){for(let a=r+1;a<i.length;a++)i[a]();n[7]=null}}(e,n),1===n[1].type&&m1(n[11])&&n[11].destroy();const t=n[17];if(null!==t&&f4(n[3])){t!==n[3]&&Dl(t,n);const i=n[19];null!==i&&i.detachView(e)}}}function zl(e,n,t){return function Nl(e,n,t){let i=n;for(;null!==i&&40&i.type;)i=(n=i).parent;if(null===i)return t[0];if(2&i.flags){const r=e.data[i.directiveStart].encapsulation;if(r===w4.None||r===w4.Emulated)return null}return W3(i,t)}(e,n.parent,t)}function Ze(e,n,t,i,r){m1(e)?e.insertBefore(n,t,i,r):n.insertBefore(t,i,r)}function xl(e,n,t){m1(e)?e.appendChild(n,t):n.appendChild(t)}function El(e,n,t,i,r){null!==i?Ze(e,n,t,i,r):xl(e,n,t)}function m8(e,n){return m1(e)?e.parentNode(n):n.parentNode}function Tl(e,n,t){return kl(e,n,t)}let kl=function Al(e,n,t){return 40&e.type?W3(e,t):null};function v8(e,n,t,i){const r=zl(e,i,n),a=n[11],s=Tl(i.parent||n[6],i,n);if(null!=r)if(Array.isArray(t))for(let c=0;c<t.length;c++)El(a,r,t[c],s,!1);else El(a,r,t,s,!1)}function _8(e,n){if(null!==n){const t=n.type;if(3&t)return W3(n,e);if(4&t)return qr(-1,e[n.index]);if(8&t){const i=n.child;if(null!==i)return _8(e,i);{const r=e[n.index];return f4(r)?qr(-1,r):x1(r)}}if(32&t)return Pr(n,e)()||x1(e[n.index]);{const i=Ol(e,n);return null!==i?Array.isArray(i)?i[0]:_8(m5(e[16]),i):_8(e,n.next)}}return null}function Ol(e,n){return null!==n?e[16][6].projection[n.projection]:null}function qr(e,n){const t=10+e+1;if(t<n.length){const i=n[t],r=i[1].firstChild;if(null!==r)return _8(i,r)}return n[7]}function Yr(e,n,t,i,r,a,o){for(;null!=t;){const s=i[t.index],c=t.type;if(o&&0===n&&(s&&u3(x1(s),i),t.flags|=4),64!=(64&t.flags))if(8&c)Yr(e,n,t.child,i,r,a,!1),Yt(n,e,r,s,a);else if(32&c){const l=Pr(t,i);let u;for(;u=l();)Yt(n,e,r,u,a);Yt(n,e,r,s,a)}else 16&c?Pl(e,n,i,t,r,a):Yt(n,e,r,s,a);t=o?t.projectionNext:t.next}}function v5(e,n,t,i,r,a){Yr(t,i,e.firstChild,n,r,a,!1)}function Pl(e,n,t,i,r,a){const o=t[16],c=o[6].projection[i.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++)Yt(n,e,r,c[l],a);else Yr(e,n,c,o[3],r,a,!0)}function Fl(e,n,t){m1(e)?e.setAttribute(n,"style",t):n.style.cssText=t}function Kr(e,n,t){m1(e)?""===t?e.removeAttribute(n,"class"):e.setAttribute(n,"class",t):n.className=t}function Bl(e,n,t){let i=e.length;for(;;){const r=e.indexOf(n,t);if(-1===r)return r;if(0===r||e.charCodeAt(r-1)<=32){const a=n.length;if(r+a===i||e.charCodeAt(r+a)<=32)return r}t=r+1}}const Ul="ng-template";function Az(e,n,t){let i=0;for(;i<e.length;){let r=e[i++];if(t&&"class"===r){if(r=e[i],-1!==Bl(r.toLowerCase(),n,0))return!0}else if(1===r){for(;i<e.length&&"string"==typeof(r=e[i++]);)if(r.toLowerCase()===n)return!0;return!1}}return!1}function jl(e){return 4===e.type&&e.value!==Ul}function kz(e,n,t){return n===(4!==e.type||t?e.value:Ul)}function Iz(e,n,t){let i=4;const r=e.attrs||[],a=function Pz(e){for(let n=0;n<e.length;n++)if(xc(e[n]))return n;return e.length}(r);let o=!1;for(let s=0;s<n.length;s++){const c=n[s];if("number"!=typeof c){if(!o)if(4&i){if(i=2|1&i,""!==c&&!kz(e,c,t)||""===c&&1===n.length){if(d4(i))return!1;o=!0}}else{const l=8&i?c:n[++s];if(8&i&&null!==e.attrs){if(!Az(e.attrs,l,t)){if(d4(i))return!1;o=!0}continue}const f=Oz(8&i?"class":c,r,jl(e),t);if(-1===f){if(d4(i))return!1;o=!0;continue}if(""!==l){let h;h=f>a?"":r[f+1].toLowerCase();const p=8&i?h:null;if(p&&-1!==Bl(p,l,0)||2&i&&l!==h){if(d4(i))return!1;o=!0}}}}else{if(!o&&!d4(i)&&!d4(c))return!1;if(o&&d4(c))continue;o=!1,i=c|1&i}}return d4(i)||o}function d4(e){return 0==(1&e)}function Oz(e,n,t,i){if(null===n)return-1;let r=0;if(i||!t){let a=!1;for(;r<n.length;){const o=n[r];if(o===e)return r;if(3===o||6===o)a=!0;else{if(1===o||2===o){let s=n[++r];for(;"string"==typeof s;)s=n[++r];continue}if(4===o)break;if(0===o){r+=4;continue}}r+=a?1:2}return-1}return function Fz(e,n){let t=e.indexOf(4);if(t>-1)for(t++;t<e.length;){const i=e[t];if("number"==typeof i)return-1;if(i===n)return t;t++}return-1}(n,e)}function Gl(e,n,t=!1){for(let i=0;i<n.length;i++)if(Iz(e,n[i],t))return!0;return!1}function Bz(e,n){e:for(let t=0;t<n.length;t++){const i=n[t];if(e.length===i.length){for(let r=0;r<e.length;r++)if(e[r]!==i[r])continue e;return!0}}return!1}function $l(e,n){return e?":not("+n.trim()+")":n}function Uz(e){let n=e[0],t=1,i=2,r="",a=!1;for(;t<e.length;){let o=e[t];if("string"==typeof o)if(2&i){const s=e[++t];r+="["+o+(s.length>0?'="'+s+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""!==r&&!d4(o)&&(n+=$l(a,r),r=""),i=o,a=a||!d4(i);t++}return""!==r&&(n+=$l(a,r)),n}const l2={};function _(e){Wl(z2(),k(),v3()+e,!1)}function Wl(e,n,t,i){if(!i)if(3==(3&n[2])){const a=e.preOrderCheckHooks;null!==a&&t8(n,a,t)}else{const a=e.preOrderHooks;null!==a&&n8(n,a,0,t)}Me(t)}function M8(e,n){return e<<17|n<<2}function h4(e){return e>>17&32767}function Qr(e){return 2|e}function Z4(e){return(131068&e)>>2}function Zr(e,n){return-131069&e|n<<2}function Jr(e){return 1|e}function iu(e,n){const t=e.contentQueries;if(null!==t)for(let i=0;i<t.length;i+=2){const r=t[i],a=t[i+1];if(-1!==a){const o=e.data[a];dr(r),o.contentQueries(2,n[a],a)}}}function _5(e,n,t,i,r,a,o,s,c,l){const u=n.blueprint.slice();return u[0]=r,u[2]=140|i,vc(u),u[3]=u[15]=e,u[8]=t,u[10]=o||e&&e[10],u[11]=s||e&&e[11],u[12]=c||e&&e[12]||null,u[9]=l||e&&e[9]||null,u[6]=a,u[16]=2==n.type?e[16]:u,u}function Kt(e,n,t,i,r){let a=e.data[n];if(null===a)a=function sa(e,n,t,i,r){const a=yc(),o=lr(),c=e.data[n]=function oN(e,n,t,i,r,a){return{type:t,index:i,insertBeforeIndex:null,injectorIndex:n?n.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:a,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?a:a&&a.parent,t,n,i,r);return null===e.firstChild&&(e.firstChild=c),null!==a&&(o?null==a.child&&null!==c.parent&&(a.child=c):null===a.next&&(a.next=c)),c}(e,n,t,i,r),function SD(){return c2.lFrame.inI18n}()&&(a.flags|=64);else if(64&a.type){a.type=t,a.value=i,a.attrs=r;const o=function X6(){const e=c2.lFrame,n=e.currentTNode;return e.isParent?n:n.parent}();a.injectorIndex=null===o?-1:o.injectorIndex}return S4(a,!0),a}function Qt(e,n,t,i){if(0===t)return-1;const r=n.length;for(let a=0;a<t;a++)n.push(i),e.blueprint.push(i),e.data.push(null);return r}function M5(e,n,t){Jn(n);try{const i=e.viewQuery;null!==i&&ga(1,i,t);const r=e.template;null!==r&&ru(e,n,r,1,t),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&iu(e,n),e.staticViewQueries&&ga(2,e.viewQuery,t);const a=e.components;null!==a&&function iN(e,n){for(let t=0;t<n.length;t++)VN(e,n[t])}(n,a)}catch(i){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),i}finally{n[2]&=-5,Xn()}}function Zt(e,n,t,i){const r=n[2];if(256!=(256&r)){Jn(n);try{vc(n),function bc(e){return c2.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==t&&ru(e,n,t,2,i);const o=3==(3&r);if(o){const l=e.preOrderCheckHooks;null!==l&&t8(n,l,null)}else{const l=e.preOrderHooks;null!==l&&n8(n,l,0,null),hr(n,0)}if(function bN(e){for(let n=Fr(e);null!==n;n=Br(n)){if(!n[2])continue;const t=n[9];for(let i=0;i<t.length;i++){const r=t[i],a=r[3];0==(1024&r[2])&&cr(a,1),r[2]|=1024}}}(n),function yN(e){for(let n=Fr(e);null!==n;n=Br(n))for(let t=10;t<n.length;t++){const i=n[t],r=i[1];sr(i)&&Zt(r,i,r.template,i[8])}}(n),null!==e.contentQueries&&iu(e,n),o){const l=e.contentCheckHooks;null!==l&&t8(n,l)}else{const l=e.contentHooks;null!==l&&n8(n,l,1),hr(n,1)}!function tN(e,n){const t=e.hostBindingOpCodes;if(null!==t)try{for(let i=0;i<t.length;i++){const r=t[i];if(r<0)Me(~r);else{const a=r,o=t[++i],s=t[++i];zD(o,a),s(2,n[a])}}}finally{Me(-1)}}(e,n);const s=e.components;null!==s&&function nN(e,n){for(let t=0;t<n.length;t++)LN(e,n[t])}(n,s);const c=e.viewQuery;if(null!==c&&ga(2,c,i),o){const l=e.viewCheckHooks;null!==l&&t8(n,l)}else{const l=e.viewHooks;null!==l&&n8(n,l,2),hr(n,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),n[2]&=-73,1024&n[2]&&(n[2]&=-1025,cr(n[3],-1))}finally{Xn()}}}function rN(e,n,t,i){const r=n[10],o=mc(n);try{!o&&r.begin&&r.begin(),o&&M5(e,n,i),Zt(e,n,t,i)}finally{!o&&r.end&&r.end()}}function ru(e,n,t,i,r){const a=v3(),o=2&i;try{Me(-1),o&&n.length>20&&Wl(e,n,20,!1),t(i,r)}finally{Me(a)}}function ca(e,n,t){!Mc()||(function dN(e,n,t,i){const r=t.directiveStart,a=t.directiveEnd;e.firstCreatePass||n5(t,n),u3(i,n);const o=t.initialInputs;for(let s=r;s<a;s++){const c=e.data[s],l=C4(c);l&&vN(n,t,c);const u=i5(n,e,s,t);u3(u,n),null!==o&&_N(0,s-r,u,c,0,o),l&&(T3(t.index,n)[8]=u)}}(e,n,t,W3(t,n)),128==(128&t.flags)&&function hN(e,n,t){const i=t.directiveStart,r=t.directiveEnd,o=t.index,s=function ND(){return c2.lFrame.currentDirectiveIndex}();try{Me(o);for(let c=i;c<r;c++){const l=e.data[c],u=n[c];fr(c),(null!==l.hostBindings||0!==l.hostVars||null!==l.hostAttrs)&&du(l,u)}}finally{Me(-1),fr(s)}}(e,n,t))}function la(e,n,t=W3){const i=n.localNames;if(null!==i){let r=n.index+1;for(let a=0;a<i.length;a+=2){const o=i[a+1],s=-1===o?t(n,e):e[o];e[r++]=s}}}function ou(e){const n=e.tView;return null===n||n.incompleteFirstPass?e.tView=L8(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):n}function L8(e,n,t,i,r,a,o,s,c,l){const u=20+i,f=u+r,h=function aN(e,n){const t=[];for(let i=0;i<n;i++)t.push(i<e?null:l2);return t}(u,f),p="function"==typeof l?l():l;return h[1]={type:e,blueprint:h,template:t,queries:null,viewQuery:s,declTNode:n,data:h.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:f,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 o?o():o,firstChild:null,schemas:c,consts:p,incompleteFirstPass:!1}}function lu(e,n,t,i){const r=_u(n);null===t?r.push(i):(r.push(t),e.firstCreatePass&&Mu(e).push(i,r.length-1))}function uu(e,n,t){for(let i in e)if(e.hasOwnProperty(i)){const r=e[i];(t=null===t?{}:t).hasOwnProperty(i)?t[i].push(n,r):t[i]=[n,r]}return t}function O3(e,n,t,i,r,a,o,s){const c=W3(n,t);let u,l=n.inputs;!s&&null!=l&&(u=l[i])?(Lu(e,t,u,i,r),Yn(n)&&function lN(e,n){const t=T3(n,e);16&t[2]||(t[2]|=64)}(t,n.index)):3&n.type&&(i=function cN(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(i),r=null!=o?o(r,n.value||"",i):r,m1(a)?a.setProperty(c,i,r):gr(i)||(c.setProperty?c.setProperty(i,r):c[i]=r))}function ua(e,n,t,i){let r=!1;if(Mc()){const a=function pN(e,n,t){const i=e.directiveRegistry;let r=null;if(i)for(let a=0;a<i.length;a++){const o=i[a];Gl(t,o.selectors,!1)&&(r||(r=[]),s8(n5(t,n),e,o.type),C4(o)?(hu(e,t),r.unshift(o)):r.push(o))}return r}(e,n,t),o=null===i?null:{"":-1};if(null!==a){r=!0,pu(t,e.data.length,a.length);for(let u=0;u<a.length;u++){const f=a[u];f.providersResolver&&f.providersResolver(f)}let s=!1,c=!1,l=Qt(e,n,a.length,null);for(let u=0;u<a.length;u++){const f=a[u];t.mergedAttrs=r8(t.mergedAttrs,f.hostAttrs),gu(e,t,n,l,f),mN(l,f,o),null!==f.contentQueries&&(t.flags|=8),(null!==f.hostBindings||null!==f.hostAttrs||0!==f.hostVars)&&(t.flags|=128);const h=f.type.prototype;!s&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t.index),s=!0),!c&&(h.ngOnChanges||h.ngDoCheck)&&((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t.index),c=!0),l++}!function sN(e,n){const i=n.directiveEnd,r=e.data,a=n.attrs,o=[];let s=null,c=null;for(let l=n.directiveStart;l<i;l++){const u=r[l],f=u.inputs,h=null===a||jl(n)?null:MN(f,a);o.push(h),s=uu(f,l,s),c=uu(u.outputs,l,c)}null!==s&&(s.hasOwnProperty("class")&&(n.flags|=16),s.hasOwnProperty("style")&&(n.flags|=32)),n.initialInputs=o,n.inputs=s,n.outputs=c}(e,t)}o&&function gN(e,n,t){if(n){const i=e.localNames=[];for(let r=0;r<n.length;r+=2){const a=t[n[r+1]];if(null==a)throw new S2(-301,!1);i.push(n[r],a)}}}(t,i,o)}return t.mergedAttrs=r8(t.mergedAttrs,t.attrs),r}function Cu(e,n,t,i,r,a){const o=a.hostBindings;if(o){let s=e.hostBindingOpCodes;null===s&&(s=e.hostBindingOpCodes=[]);const c=~n.index;(function CN(e){let n=e.length;for(;n>0;){const t=e[--n];if("number"==typeof t&&t<0)return t}return 0})(s)!=c&&s.push(c),s.push(i,r,o)}}function du(e,n){null!==e.hostBindings&&e.hostBindings(1,n)}function hu(e,n){n.flags|=2,(e.components||(e.components=[])).push(n.index)}function mN(e,n,t){if(t){if(n.exportAs)for(let i=0;i<n.exportAs.length;i++)t[n.exportAs[i]]=e;C4(n)&&(t[""]=e)}}function pu(e,n,t){e.flags|=1,e.directiveStart=n,e.directiveEnd=n+t,e.providerIndexes=n}function gu(e,n,t,i,r){e.data[i]=r;const a=r.factory||(r.factory=qe(r.type)),o=new e5(a,C4(r),null);e.blueprint[i]=o,t[i]=o,Cu(e,n,0,i,Qt(e,t,r.hostVars,l2),r)}function vN(e,n,t){const i=W3(n,e),r=ou(t),a=e[10],o=V8(e,_5(e,r,null,t.onPush?64:16,i,n,a,a.createRenderer(i,t),null,null));e[n.index]=o}function T4(e,n,t,i,r,a){const o=W3(e,n);!function fa(e,n,t,i,r,a,o){if(null==a)m1(e)?e.removeAttribute(n,r,t):n.removeAttribute(r);else{const s=null==o?o2(a):o(a,i||"",r);m1(e)?e.setAttribute(n,r,s,t):t?n.setAttributeNS(t,r,s):n.setAttribute(r,s)}}(n[11],o,a,e.value,t,i,r)}function _N(e,n,t,i,r,a){const o=a[n];if(null!==o){const s=i.setInput;for(let c=0;c<o.length;){const l=o[c++],u=o[c++],f=o[c++];null!==s?i.setInput(t,f,l,u):t[u]=f}}}function MN(e,n){let t=null,i=0;for(;i<n.length;){const r=n[i];if(0!==r)if(5!==r){if("number"==typeof r)break;e.hasOwnProperty(r)&&(null===t&&(t=[]),t.push(r,e[r],n[i+1])),i+=2}else i+=2;else i+=4}return t}function mu(e,n,t,i){return new Array(e,!0,!1,n,null,0,i,t,null,null)}function LN(e,n){const t=T3(n,e);if(sr(t)){const i=t[1];80&t[2]?Zt(i,t,i.template,t[8]):t[5]>0&&Ca(t)}}function Ca(e){for(let i=Fr(e);null!==i;i=Br(i))for(let r=10;r<i.length;r++){const a=i[r];if(1024&a[2]){const o=a[1];Zt(o,a,o.template,a[8])}else a[5]>0&&Ca(a)}const t=e[1].components;if(null!==t)for(let i=0;i<t.length;i++){const r=T3(t[i],e);sr(r)&&r[5]>0&&Ca(r)}}function VN(e,n){const t=T3(n,e),i=t[1];(function HN(e,n){for(let t=n.length;t<e.blueprint.length;t++)n.push(e.blueprint[t])})(i,t),M5(i,t,t[8])}function V8(e,n){return e[13]?e[14][4]=n:e[13]=n,e[14]=n,n}function da(e){for(;e;){e[2]|=64;const n=m5(e);if(oD(e)&&!n)return e;e=n}return null}function vu(e){!function ha(e){for(let n=0;n<e.components.length;n++){const t=e.components[n],i=kr(t),r=i[1];rN(r,i,r.template,t)}}(e[8])}function ga(e,n,t){dr(0),n(e,t)}const DN=(()=>Promise.resolve(null))();function _u(e){return e[7]||(e[7]=[])}function Mu(e){return e.cleanup||(e.cleanup=[])}function bu(e,n){const t=e[9],i=t?t.get(g5,null):null;i&&i.handleError(n)}function Lu(e,n,t,i,r){for(let a=0;a<t.length;){const o=t[a++],s=t[a++],c=n[o],l=e.data[o];null!==l.setInput?l.setInput(c,r,i,s):c[s]=r}}function J4(e,n,t){const i=Qn(n,e);!function wl(e,n,t){m1(e)?e.setValue(n,t):n.textContent=t}(e[11],i,t)}function H8(e,n,t){let i=t?e.styles:null,r=t?e.classes:null,a=0;if(null!==n)for(let o=0;o<n.length;o++){const s=n[o];"number"==typeof s?a=s:1==a?r=Gi(r,s):2==a&&(i=Gi(i,s+": "+n[++o]+";"))}t?e.styles=i:e.stylesWithoutHost=i,t?e.classes=r:e.classesWithoutHost=r}const ma=new v2("INJECTOR",-1);class Vu{get(n,t=s5){if(t===s5){const i=new Error(`NullInjectorError: No provider for ${k2(n)}!`);throw i.name="NullInjectorError",i}return t}}const va=new v2("Set Injector scope."),y5={},NN={};let _a;function Hu(){return void 0===_a&&(_a=new Vu),_a}function wu(e,n=null,t=null,i){const r=Du(e,n,t,i);return r._resolveInjectorDefTypes(),r}function Du(e,n=null,t=null,i){return new xN(e,t,n||Hu(),i)}class xN{constructor(n,t,i,r=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const a=[];t&&z4(t,s=>this.processProvider(s,n,t)),z4([n],s=>this.processInjectorType(s,[],a)),this.records.set(ma,Jt(void 0,this));const o=this.records.get(va);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof n?null:k2(n))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(n=>n.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(n,t=s5,i=r2.Default){this.assertNotDestroyed();const r=Kc(this),a=ge(void 0);try{if(!(i&r2.SkipSelf)){let s=this.records.get(n);if(void 0===s){const c=function PN(e){return"function"==typeof e||"object"==typeof e&&e instanceof v2}(n)&&Wi(n);s=c&&this.injectableDefInScope(c)?Jt(Ma(n),y5):null,this.records.set(n,s)}if(null!=s)return this.hydrate(n,s)}return(i&r2.Self?Hu():this.parent).get(n,t=i&r2.Optional&&t===s5?null:t)}catch(o){if("NullInjectorError"===o.name){if((o[f8]=o[f8]||[]).unshift(k2(n)),r)throw o;return function dS(e,n,t,i){const r=e[f8];throw n[Yc]&&r.unshift(n[Yc]),e.message=function hS(e,n,t,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let r=k2(n);if(Array.isArray(n))r=n.map(k2).join(" -> ");else if("object"==typeof n){let a=[];for(let o in n)if(n.hasOwnProperty(o)){let s=n[o];a.push(o+":"+("string"==typeof s?JSON.stringify(s):k2(s)))}r=`{${a.join(", ")}}`}return`${t}${i?"("+i+")":""}[${r}]: ${e.replace(sS,"\n ")}`}("\n"+e.message,r,t,i),e.ngTokenPath=r,e[f8]=null,e}(o,n,"R3InjectorError",this.source)}throw o}finally{ge(a),Kc(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(n=>this.get(n))}toString(){const n=[];return this.records.forEach((i,r)=>n.push(k2(r))),`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new S2(205,!1)}processInjectorType(n,t,i){if(!(n=d2(n)))return!1;let r=rc(n);const a=null==r&&n.ngModule||void 0,o=void 0===a?n:a,s=-1!==i.indexOf(o);if(void 0!==a&&(r=rc(a)),null==r)return!1;if(null!=r.imports&&!s){let u;i.push(o);try{z4(r.imports,f=>{this.processInjectorType(f,t,i)&&(void 0===u&&(u=[]),u.push(f))})}finally{}if(void 0!==u)for(let f=0;f<u.length;f++){const{ngModule:h,providers:p}=u[f];z4(p,L=>this.processProvider(L,h,p||j2))}}this.injectorDefTypes.add(o);const c=qe(o)||(()=>new o);this.records.set(o,Jt(c,y5));const l=r.providers;if(null!=l&&!s){const u=n;z4(l,f=>this.processProvider(f,u,l))}return void 0!==a&&void 0!==n.providers}processProvider(n,t,i){let r=Xt(n=d2(n))?n:d2(n&&n.provide);const a=function TN(e,n,t){return zu(e)?Jt(void 0,e.useValue):Jt(Su(e),y5)}(n);if(Xt(n)||!0!==n.multi)this.records.get(r);else{let o=this.records.get(r);o||(o=Jt(void 0,y5,!0),o.factory=()=>wr(o.multi),this.records.set(r,o)),r=n,o.multi.push(n)}this.records.set(r,a)}hydrate(n,t){return t.value===y5&&(t.value=NN,t.value=t.factory()),"object"==typeof t.value&&t.value&&function RN(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this.onDestroy.add(t.value),t.value}injectableDefInScope(n){if(!n.providedIn)return!1;const t=d2(n.providedIn);return"string"==typeof t?"any"===t||t===this.scope:this.injectorDefTypes.has(t)}}function Ma(e){const n=Wi(e),t=null!==n?n.factory:qe(e);if(null!==t)return t;if(e instanceof v2)throw new S2(204,!1);if(e instanceof Function)return function EN(e){const n=e.length;if(n>0)throw o5(n,"?"),new S2(204,!1);const t=function qw(e){const n=e&&(e[jn]||e[ac]);if(n){const t=function Yw(e){if(e.hasOwnProperty("name"))return e.name;const n=(""+e).match(/^function\s*([^\s(]+)/);return null===n?"":n[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${t}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${t}" class.`),n}return null}(e);return null!==t?()=>t.factory(e):()=>new e}(e);throw new S2(204,!1)}function Su(e,n,t){let i;if(Xt(e)){const r=d2(e);return qe(r)||Ma(r)}if(zu(e))i=()=>d2(e.useValue);else if(function kN(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...wr(e.deps||[]));else if(function AN(e){return!(!e||!e.useExisting)}(e))i=()=>q(d2(e.useExisting));else{const r=d2(e&&(e.useClass||e.provide));if(!function ON(e){return!!e.deps}(e))return qe(r)||Ma(r);i=()=>new r(...wr(e.deps))}return i}function Jt(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function zu(e){return null!==e&&"object"==typeof e&&lS in e}function Xt(e){return"function"==typeof e}let R1=(()=>{class e{static create(t,i){var r;if(Array.isArray(t))return wu({name:""},i,t,"");{const a=null!==(r=t.name)&&void 0!==r?r:"";return wu({name:a},t.parent,t.providers,a)}}}return e.THROW_IF_NOT_FOUND=s5,e.NULL=new Vu,e.\u0275prov=Z({token:e,providedIn:"any",factory:()=>q(ma)}),e.__NG_ELEMENT_ID__=-1,e})();function qN(e,n){e8(kr(e)[1],I1())}function J(e){let n=function Bu(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),t=!0;const i=[e];for(;n;){let r;if(C4(e))r=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new S2(903,"");r=n.\u0275dir}if(r){if(t){i.push(r);const o=e;o.inputs=La(e.inputs),o.declaredInputs=La(e.declaredInputs),o.outputs=La(e.outputs);const s=r.hostBindings;s&&ZN(e,s);const c=r.viewQuery,l=r.contentQueries;if(c&&KN(e,c),l&&QN(e,l),ji(e.inputs,r.inputs),ji(e.declaredInputs,r.declaredInputs),ji(e.outputs,r.outputs),C4(r)&&r.data.animation){const u=e.data;u.animation=(u.animation||[]).concat(r.data.animation)}}const a=r.features;if(a)for(let o=0;o<a.length;o++){const s=a[o];s&&s.ngInherit&&s(e),s===J&&(t=!1)}}n=Object.getPrototypeOf(n)}!function YN(e){let n=0,t=null;for(let i=e.length-1;i>=0;i--){const r=e[i];r.hostVars=n+=r.hostVars,r.hostAttrs=r8(r.hostAttrs,t=r8(t,r.hostAttrs))}}(i)}function La(e){return e===St?{}:e===j2?[]:e}function KN(e,n){const t=e.viewQuery;e.viewQuery=t?(i,r)=>{n(i,r),t(i,r)}:n}function QN(e,n){const t=e.contentQueries;e.contentQueries=t?(i,r,a)=>{n(i,r,a),t(i,r,a)}:n}function ZN(e,n){const t=e.hostBindings;e.hostBindings=t?(i,r)=>{n(i,r),t(i,r)}:n}let w8=null;function e6(){if(!w8){const e=R2.Symbol;if(e&&e.iterator)w8=e.iterator;else{const n=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<n.length;++t){const i=n[t];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(w8=i)}}}return w8}function b5(e){return!!function Va(e){return null!==e&&("function"==typeof e||"object"==typeof e)}(e)&&(Array.isArray(e)||!(e instanceof Map)&&e6()in e)}function f3(e,n,t){return!Object.is(e[n],t)&&(e[n]=t,!0)}function Je(e,n,t,i){const r=f3(e,n,t);return f3(e,n+1,i)||r}function j(e,n,t,i){const r=k();return f3(r,At(),n)&&(z2(),T4(v1(),r,e,n,t,i)),j}function n6(e,n,t,i){return f3(e,At(),t)?n+o2(t)+i:l2}function i6(e,n,t,i,r,a){const s=Je(e,function Y4(){return c2.lFrame.bindingIndex}(),t,r);return K4(2),s?n+o2(t)+i+o2(r)+a:l2}function O(e,n,t,i,r,a,o,s){const c=k(),l=z2(),u=e+20,f=l.firstCreatePass?function rx(e,n,t,i,r,a,o,s,c){const l=n.consts,u=Kt(n,e,4,o||null,_e(l,s));ua(n,t,u,_e(l,c)),e8(n,u);const f=u.tViews=L8(2,u,i,r,a,n.directiveRegistry,n.pipeRegistry,null,n.schemas,l);return null!==n.queries&&(n.queries.template(n,u),f.queries=n.queries.embeddedTView(u)),u}(u,l,c,n,t,i,r,a,o):l.data[u];S4(f,!1);const h=c[11].createComment("");v8(l,c,h,f),u3(h,c),V8(c,c[u]=mu(h,c,h,f)),Kn(f)&&ca(l,c,f),null!=o&&la(c,f,s)}function K3(e){return function Tt(e,n){return e[n]}(function DD(){return c2.lFrame.contextLView}(),20+e)}function V(e,n=r2.Default){const t=k();return null===t?q(e,n):Rc(I1(),t,d2(e),n)}function za(){throw new Error("invalid")}function b(e,n,t){const i=k();return f3(i,At(),n)&&O3(z2(),v1(),i,e,n,i[11],t,!1),b}function Na(e,n,t,i,r){const o=r?"class":"style";Lu(e,t,n.inputs[o],o,i)}function g(e,n,t,i){const r=k(),a=z2(),o=20+e,s=r[11],c=r[o]=jr(s,n,function ID(){return c2.lFrame.currentNamespace}()),l=a.firstCreatePass?function Hx(e,n,t,i,r,a,o){const s=n.consts,l=Kt(n,e,2,r,_e(s,a));return ua(n,t,l,_e(s,o)),null!==l.attrs&&H8(l,l.attrs,!1),null!==l.mergedAttrs&&H8(l,l.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,l),l}(o,a,r,0,n,t,i):a.data[o];S4(l,!0);const u=l.mergedAttrs;null!==u&&i8(s,c,u);const f=l.classes;null!==f&&Kr(s,c,f);const h=l.styles;return null!==h&&Fl(s,c,h),64!=(64&l.flags)&&v8(a,r,c,l),0===function bD(){return c2.lFrame.elementDepthCount}()&&u3(c,r),function LD(){c2.lFrame.elementDepthCount++}(),Kn(l)&&(ca(a,r,l),function au(e,n,t){if(Xi(n)){const r=n.directiveEnd;for(let a=n.directiveStart;a<r;a++){const o=e.data[a];o.contentQueries&&o.contentQueries(1,t[a],a)}}}(a,l,r)),null!==i&&la(r,l),g}function m(){let e=I1();lr()?ur():(e=e.parent,S4(e,!1));const n=e;!function VD(){c2.lFrame.elementDepthCount--}();const t=z2();return t.firstCreatePass&&(e8(t,e),Xi(e)&&t.queries.elementEnd(e)),null!=n.classesWithoutHost&&function BD(e){return 0!=(16&e.flags)}(n)&&Na(t,n,k(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function UD(e){return 0!=(32&e.flags)}(n)&&Na(t,n,k(),n.stylesWithoutHost,!1),m}function R(e,n,t,i){return g(e,n,t,i),m(),R}function V1(){return k()}function V5(e){return!!e&&"function"==typeof e.then}const Ta=function uf(e){return!!e&&"function"==typeof e.subscribe};function T(e,n,t,i){const r=k(),a=z2(),o=I1();return function Cf(e,n,t,i,r,a,o,s){const c=Kn(i),u=e.firstCreatePass&&Mu(e),f=n[8],h=_u(n);let p=!0;if(3&i.type||s){const S=W3(i,n),z=s?s(S):S,w=h.length,A=s?F=>s(x1(F[i.index])):i.index;if(m1(t)){let F=null;if(!s&&c&&(F=function Dx(e,n,t,i){const r=e.cleanup;if(null!=r)for(let a=0;a<r.length-1;a+=2){const o=r[a];if(o===t&&r[a+1]===i){const s=n[7],c=r[a+2];return s.length>c?s[c]:null}"string"==typeof o&&(a+=2)}return null}(e,n,r,i.index)),null!==F)(F.__ngLastListenerFn__||F).__ngNextListenerFn__=a,F.__ngLastListenerFn__=a,p=!1;else{a=Aa(i,n,f,a,!1);const B=t.listen(z,r,a);h.push(a,B),u&&u.push(r,A,w,w+1)}}else a=Aa(i,n,f,a,!0),z.addEventListener(r,a,o),h.push(a),u&&u.push(r,A,w,o)}else a=Aa(i,n,f,a,!1);const L=i.outputs;let H;if(p&&null!==L&&(H=L[r])){const S=H.length;if(S)for(let z=0;z<S;z+=2){const Q=n[H[z]][H[z+1]].subscribe(a),f2=h.length;h.push(a,Q),u&&u.push(r,i.index,f2,-(f2+1))}}}(a,r,r[11],o,e,n,!!t,i),T}function df(e,n,t,i){try{return!1!==t(i)}catch(r){return bu(e,r),!1}}function Aa(e,n,t,i,r){return function a(o){if(o===Function)return i;const s=2&e.flags?T3(e.index,n):n;0==(32&n[2])&&da(s);let c=df(n,0,i,o),l=a.__ngNextListenerFn__;for(;l;)c=df(n,0,l,o)&&c,l=l.__ngNextListenerFn__;return r&&!1===c&&(o.preventDefault(),o.returnValue=!1),c}}function E(e=1){return function ED(e){return(c2.lFrame.contextLView=function TD(e,n){for(;e>0;)n=n[15],e--;return n}(e,c2.lFrame.contextLView))[8]}(e)}function Sx(e,n){let t=null;const i=function Rz(e){const n=e.attrs;if(null!=n){const t=n.indexOf(5);if(0==(1&t))return n[t+1]}return null}(e);for(let r=0;r<n.length;r++){const a=n[r];if("*"!==a){if(null===i?Gl(e,a,!0):Bz(i,a))return r}else t=r}return t}function H5(e){const n=k()[16][6];if(!n.projection){const i=n.projection=o5(e?e.length:1,null),r=i.slice();let a=n.child;for(;null!==a;){const o=e?Sx(a,e):0;null!==o&&(r[o]?r[o].projectionNext=a:i[o]=a,r[o]=a),a=a.next}}}function w5(e,n=0,t){const i=k(),r=z2(),a=Kt(r,20+e,16,null,t||null);null===a.projection&&(a.projection=n),ur(),64!=(64&a.flags)&&function xz(e,n,t){Pl(n[11],0,n,t,zl(e,t,n),Tl(t.parent||n[6],t,n))}(r,i,a)}function ka(e,n,t){return f6(e,"",n,"",t),ka}function f6(e,n,t,i,r){const a=k(),o=n6(a,n,t,i);return o!==l2&&O3(z2(),v1(),a,e,o,a[11],r,!1),f6}function bf(e,n,t,i,r){const a=e[t+1],o=null===n;let s=i?h4(a):Z4(a),c=!1;for(;0!==s&&(!1===c||o);){const u=e[s+1];xx(e[s],n)&&(c=!0,e[s+1]=i?Jr(u):Qr(u)),s=i?h4(u):Z4(u)}c&&(e[t+1]=i?Qr(a):Jr(a))}function xx(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&Gt(e,n)>=0}const P1={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Lf(e){return e.substring(P1.key,P1.keyEnd)}function Vf(e,n){const t=P1.textEnd;return t===n?-1:(n=P1.keyEnd=function kx(e,n,t){for(;n<t&&e.charCodeAt(n)>32;)n++;return n}(e,P1.key=n,t),C6(e,n,t))}function C6(e,n,t){for(;n<t&&e.charCodeAt(n)<=32;)n++;return n}function n1(e,n){return function g4(e,n,t,i){const r=k(),a=z2(),o=K4(2);a.firstUpdatePass&&Nf(a,e,o,i),n!==l2&&f3(r,o,n)&&Ef(a,a.data[v3()],r,r[11],e,r[o+1]=function $x(e,n){return null==e||("string"==typeof n?e+=n:"object"==typeof e&&(e=k2(k3(e)))),e}(n,t),i,o)}(e,n,null,!0),n1}function He(e){!function m4(e,n,t,i){const r=z2(),a=K4(2);r.firstUpdatePass&&Nf(r,null,a,i);const o=k();if(t!==l2&&f3(o,a,t)){const s=r.data[v3()];if(Af(s,i)&&!zf(r,a)){let c=i?s.classesWithoutHost:s.stylesWithoutHost;null!==c&&(t=Gi(c,t||"")),Na(r,s,o,t,i)}else!function Gx(e,n,t,i,r,a,o,s){r===l2&&(r=j2);let c=0,l=0,u=0<r.length?r[0]:null,f=0<a.length?a[0]:null;for(;null!==u||null!==f;){const h=c<r.length?r[c+1]:void 0,p=l<a.length?a[l+1]:void 0;let H,L=null;u===f?(c+=2,l+=2,h!==p&&(L=f,H=p)):null===f||null!==u&&u<f?(c+=2,L=u):(l+=2,L=f,H=p),null!==L&&Ef(e,n,t,i,L,H,o,s),u=c<r.length?r[c]:null,f=l<a.length?a[l]:null}}(r,s,o,o[11],o[a+1],o[a+1]=function jx(e,n,t){if(null==t||""===t)return j2;const i=[],r=k3(t);if(Array.isArray(r))for(let a=0;a<r.length;a++)e(i,r[a],!0);else if("object"==typeof r)for(const a in r)r.hasOwnProperty(a)&&e(i,a,r[a]);else"string"==typeof r&&n(i,r);return i}(e,n,t),i,a)}}(A3,I4,e,!0)}function I4(e,n){for(let t=function Tx(e){return function wf(e){P1.key=0,P1.keyEnd=0,P1.value=0,P1.valueEnd=0,P1.textEnd=e.length}(e),Vf(e,C6(e,0,P1.textEnd))}(n);t>=0;t=Vf(n,t))A3(e,Lf(n),!0)}function zf(e,n){return n>=e.expandoStartIndex}function Nf(e,n,t,i){const r=e.data;if(null===r[t+1]){const a=r[v3()],o=zf(e,t);Af(a,i)&&null===n&&!o&&(n=!1),n=function Px(e,n,t,i){const r=function Cr(e){const n=c2.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}(e);let a=i?n.residualClasses:n.residualStyles;if(null===r)0===(i?n.classBindings:n.styleBindings)&&(t=D5(t=Oa(null,e,n,t,i),n.attrs,i),a=null);else{const o=n.directiveStylingLast;if(-1===o||e[o]!==r)if(t=Oa(r,e,n,t,i),null===a){let c=function Fx(e,n,t){const i=t?n.classBindings:n.styleBindings;if(0!==Z4(i))return e[h4(i)]}(e,n,i);void 0!==c&&Array.isArray(c)&&(c=Oa(null,e,n,c[1],i),c=D5(c,n.attrs,i),function Bx(e,n,t,i){e[h4(t?n.classBindings:n.styleBindings)]=i}(e,n,i,c))}else a=function Ux(e,n,t){let i;const r=n.directiveEnd;for(let a=1+n.directiveStylingLast;a<r;a++)i=D5(i,e[a].hostAttrs,t);return D5(i,n.attrs,t)}(e,n,i)}return void 0!==a&&(i?n.residualClasses=a:n.residualStyles=a),t}(r,a,n,i),function zx(e,n,t,i,r,a){let o=a?n.classBindings:n.styleBindings,s=h4(o),c=Z4(o);e[i]=t;let u,l=!1;if(Array.isArray(t)){const f=t;u=f[1],(null===u||Gt(f,u)>0)&&(l=!0)}else u=t;if(r)if(0!==c){const h=h4(e[s+1]);e[i+1]=M8(h,s),0!==h&&(e[h+1]=Zr(e[h+1],i)),e[s+1]=function $z(e,n){return 131071&e|n<<17}(e[s+1],i)}else e[i+1]=M8(s,0),0!==s&&(e[s+1]=Zr(e[s+1],i)),s=i;else e[i+1]=M8(c,0),0===s?s=i:e[c+1]=Zr(e[c+1],i),c=i;l&&(e[i+1]=Qr(e[i+1])),bf(e,u,i,!0),bf(e,u,i,!1),function Nx(e,n,t,i,r){const a=r?e.residualClasses:e.residualStyles;null!=a&&"string"==typeof n&&Gt(a,n)>=0&&(t[i+1]=Jr(t[i+1]))}(n,u,e,i,a),o=M8(s,c),a?n.classBindings=o:n.styleBindings=o}(r,a,n,t,o,i)}}function Oa(e,n,t,i,r){let a=null;const o=t.directiveEnd;let s=t.directiveStylingLast;for(-1===s?s=t.directiveStart:s++;s<o&&(a=n[s],i=D5(i,a.hostAttrs,r),a!==e);)s++;return null!==e&&(t.directiveStylingLast=s),i}function D5(e,n,t){const i=t?1:2;let r=-1;if(null!==n)for(let a=0;a<n.length;a++){const o=n[a];"number"==typeof o?r=o:r===i&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),A3(e,o,!!t||n[++a]))}return void 0===e?null:e}function Ef(e,n,t,i,r,a,o,s){if(!(3&n.type))return;const c=e.data,l=c[s+1];z8(function Kl(e){return 1==(1&e)}(l)?Tf(c,n,t,r,Z4(l),o):void 0)||(z8(a)||function Yl(e){return 2==(2&e)}(l)&&(a=Tf(c,null,t,r,s,o)),function Tz(e,n,t,i,r){const a=m1(e);if(n)r?a?e.addClass(t,i):t.classList.add(i):a?e.removeClass(t,i):t.classList.remove(i);else{let o=-1===i.indexOf("-")?void 0:I3.DashCase;if(null==r)a?e.removeStyle(t,i,o):t.style.removeProperty(i);else{const s="string"==typeof r&&r.endsWith("!important");s&&(r=r.slice(0,-10),o|=I3.Important),a?e.setStyle(t,i,r,o):t.style.setProperty(i,r,s?"important":"")}}}(i,o,Qn(v3(),t),r,a))}function Tf(e,n,t,i,r,a){const o=null===n;let s;for(;r>0;){const c=e[r],l=Array.isArray(c),u=l?c[1]:c,f=null===u;let h=t[r+1];h===l2&&(h=f?j2:void 0);let p=f?Lr(h,i):u===i?h:void 0;if(l&&!z8(p)&&(p=Lr(c,i)),z8(p)&&(s=p,o))return s;const L=e[r+1];r=o?h4(L):Z4(L)}if(null!==n){let c=a?n.residualClasses:n.residualStyles;null!=c&&(s=Lr(c,i))}return s}function z8(e){return void 0!==e}function Af(e,n){return 0!=(e.flags&(n?16:32))}function y(e,n=""){const t=k(),i=z2(),r=e+20,a=i.firstCreatePass?Kt(i,r,1,n,null):i.data[r],o=t[r]=function Ur(e,n){return m1(e)?e.createText(n):e.createTextNode(n)}(t[11],n);v8(i,t,o,a),S4(a,!1)}function S5(e){return Q3("",e,""),S5}function Q3(e,n,t){const i=k(),r=n6(i,e,n,t);return r!==l2&&J4(i,v3(),r),Q3}function d6(e,n,t,i,r){const a=k(),o=i6(a,e,n,t,i,r);return o!==l2&&J4(a,v3(),o),d6}function O4(e,n,t){const i=k();return f3(i,At(),n)&&O3(z2(),v1(),i,e,n,i[11],t,!0),O4}const N8="en-US";let eC=N8;function Ba(e,n,t,i,r){if(e=d2(e),Array.isArray(e))for(let a=0;a<e.length;a++)Ba(e[a],n,t,i,r);else{const a=z2(),o=k();let s=Xt(e)?e:d2(e.provide),c=Su(e);const l=I1(),u=1048575&l.providerIndexes,f=l.directiveStart,h=l.providerIndexes>>20;if(Xt(e)||!e.multi){const p=new e5(c,r,V),L=ja(s,n,r?u:u+h,f);-1===L?(s8(n5(l,o),a,s),Ua(a,e,n.length),n.push(s),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),t.push(p),o.push(p)):(t[L]=p,o[L]=p)}else{const p=ja(s,n,u+h,f),L=ja(s,n,u,u+h),H=p>=0&&t[p],S=L>=0&&t[L];if(r&&!S||!r&&!H){s8(n5(l,o),a,s);const z=function cT(e,n,t,i,r){const a=new e5(e,t,V);return a.multi=[],a.index=n,a.componentProviders=0,VC(a,r,i&&!t),a}(r?sT:oT,t.length,r,i,c);!r&&S&&(t[L].providerFactory=z),Ua(a,e,n.length,0),n.push(s),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),t.push(z),o.push(z)}else Ua(a,e,p>-1?p:L,VC(t[r?L:p],c,!r&&i));!r&&i&&S&&t[L].componentProviders++}}}function Ua(e,n,t,i){const r=Xt(n),a=function IN(e){return!!e.useClass}(n);if(r||a){const c=(a?d2(n.useClass):n).prototype.ngOnDestroy;if(c){const l=e.destroyHooks||(e.destroyHooks=[]);if(!r&&n.multi){const u=l.indexOf(t);-1===u?l.push(t,[i,c]):l[u+1].push(i,c)}else l.push(t,c)}}}function VC(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function ja(e,n,t,i){for(let r=t;r<i;r++)if(n[r]===e)return r;return-1}function oT(e,n,t,i){return Ga(this.multi,[])}function sT(e,n,t,i){const r=this.multi;let a;if(this.providerFactory){const o=this.providerFactory.componentProviders,s=i5(t,t[1],this.providerFactory.index,i);a=s.slice(0,o),Ga(r,a);for(let c=o;c<s.length;c++)a.push(s[c])}else a=[],Ga(r,a);return a}function Ga(e,n){for(let t=0;t<e.length;t++)n.push((0,e[t])());return n}function G2(e,n=[]){return t=>{t.providersResolver=(i,r)=>function aT(e,n,t){const i=z2();if(i.firstCreatePass){const r=C4(e);Ba(t,i.data,i.blueprint,r,!0),Ba(n,i.data,i.blueprint,r,!1)}}(i,r?r(e):e,n)}}class HC{}class fT{resolveComponentFactory(n){throw function uT(e){const n=Error(`No component factory found for ${k2(e)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=e,n}(n)}}let g6=(()=>{class e{}return e.NULL=new fT,e})();function CT(){return m6(I1(),k())}function m6(e,n){return new I2(W3(e,n))}let I2=(()=>{class e{constructor(t){this.nativeElement=t}}return e.__NG_ELEMENT_ID__=CT,e})();function dT(e){return e instanceof I2?e.nativeElement:e}class $a{}let y3=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function pT(){const e=k(),t=T3(I1().index,e);return function hT(e){return e[11]}(D4(t)?t:e)}(),e})(),gT=(()=>{class e{}return e.\u0275prov=Z({token:e,providedIn:"root",factory:()=>null}),e})();class T5{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const mT=new T5("13.3.11"),Wa={};function k8(e,n,t,i,r=!1){for(;null!==t;){const a=n[t.index];if(null!==a&&i.push(x1(a)),f4(a))for(let s=10;s<a.length;s++){const c=a[s],l=c[1].firstChild;null!==l&&k8(c[1],c,l,i)}const o=t.type;if(8&o)k8(e,n,t.child,i);else if(32&o){const s=Pr(t,n);let c;for(;c=s();)i.push(c)}else if(16&o){const s=Ol(n,t);if(Array.isArray(s))i.push(...s);else{const c=m5(n[16]);k8(c[1],c,s,i,!0)}}t=r?t.projectionNext:t.next}return i}class A5{constructor(n,t){this._lView=n,this._cdRefInjectingView=t,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const n=this._lView,t=n[1];return k8(t,n,t.firstChild,[])}get context(){return this._lView[8]}set context(n){this._lView[8]=n}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[3];if(f4(n)){const t=n[8],i=t?t.indexOf(this):-1;i>-1&&(Gr(n,i),l8(t,i))}this._attachedToViewContainer=!1}Sl(this._lView[1],this._lView)}onDestroy(n){lu(this._lView[1],this._lView,null,n)}markForCheck(){da(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function pa(e,n,t){const i=n[10];i.begin&&i.begin();try{Zt(e,n,e.template,t)}catch(r){throw bu(n,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new S2(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Lz(e,n){v5(e,n,n[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new S2(902,"");this._appRef=n}}class vT extends A5{constructor(n){super(n),this._view=n}detectChanges(){vu(this._view)}checkNoChanges(){}get context(){return null}}class DC extends g6{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const t=s3(n);return new qa(t,this.ngModule)}}function SC(e){const n=[];for(let t in e)e.hasOwnProperty(t)&&n.push({propName:e[t],templateName:t});return n}class qa extends HC{constructor(n,t){super(),this.componentDef=n,this.ngModule=t,this.componentType=n.type,this.selector=function jz(e){return e.map(Uz).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return SC(this.componentDef.inputs)}get outputs(){return SC(this.componentDef.outputs)}create(n,t,i,r){const a=(r=r||this.ngModule)?function MT(e,n){return{get:(t,i,r)=>{const a=e.get(t,Wa,r);return a!==Wa||i===Wa?a:n.get(t,i,r)}}}(n,r.injector):n,o=a.get($a,gc),s=a.get(gT,null),c=o.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",u=i?function cu(e,n,t){if(m1(e))return e.selectRootElement(n,t===w4.ShadowDom);let i="string"==typeof n?e.querySelector(n):n;return i.textContent="",i}(c,i,this.componentDef.encapsulation):jr(o.createRenderer(null,this.componentDef),l,function _T(e){const n=e.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(l)),f=this.componentDef.onPush?576:528,h=function Fu(e,n){return{components:[],scheduler:e||pz,clean:DN,playerHandler:n||null,flags:0}}(),p=L8(0,null,null,1,0,null,null,null,null,null),L=_5(null,p,h,f,null,null,o,c,s,a);let H,S;Jn(L);try{const z=function Ru(e,n,t,i,r,a){const o=t[1];t[20]=e;const c=Kt(o,20,2,"#host",null),l=c.mergedAttrs=n.hostAttrs;null!==l&&(H8(c,l,!0),null!==e&&(i8(r,e,l),null!==c.classes&&Kr(r,e,c.classes),null!==c.styles&&Fl(r,e,c.styles)));const u=i.createRenderer(e,n),f=_5(t,ou(n),null,n.onPush?64:16,t[20],c,i,u,a||null,null);return o.firstCreatePass&&(s8(n5(c,t),o,n.type),hu(o,c),pu(c,t.length,1)),V8(t,f),t[20]=f}(u,this.componentDef,L,o,c);if(u)if(i)i8(c,u,["ng-version",mT.full]);else{const{attrs:w,classes:A}=function Gz(e){const n=[],t=[];let i=1,r=2;for(;i<e.length;){let a=e[i];if("string"==typeof a)2===r?""!==a&&n.push(a,e[++i]):8===r&&t.push(a);else{if(!d4(r))break;r=a}i++}return{attrs:n,classes:t}}(this.componentDef.selectors[0]);w&&i8(c,u,w),A&&A.length>0&&Kr(c,u,A.join(" "))}if(S=or(p,20),void 0!==t){const w=S.projection=[];for(let A=0;A<this.ngContentSelectors.length;A++){const F=t[A];w.push(null!=F?Array.from(F):null)}}H=function Pu(e,n,t,i,r){const a=t[1],o=function fN(e,n,t){const i=I1();e.firstCreatePass&&(t.providersResolver&&t.providersResolver(t),gu(e,i,n,Qt(e,n,1,null),t));const r=i5(n,e,i.directiveStart,i);u3(r,n);const a=W3(i,n);return a&&u3(a,n),r}(a,t,n);if(i.components.push(o),e[8]=o,r&&r.forEach(c=>c(o,n)),n.contentQueries){const c=I1();n.contentQueries(1,o,c.directiveStart)}const s=I1();return!a.firstCreatePass||null===n.hostBindings&&null===n.hostAttrs||(Me(s.index),Cu(t[1],s,0,s.directiveStart,s.directiveEnd,n),du(n,o)),o}(z,this.componentDef,L,h,[qN]),M5(p,L,null)}finally{Xn()}return new bT(this.componentType,H,m6(S,L),L,S)}}class bT extends class lT{}{constructor(n,t,i,r,a){super(),this.location=i,this._rootLView=r,this._tNode=a,this.instance=t,this.hostView=this.changeDetectorRef=new vT(r),this.componentType=n}get injector(){return new Pt(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}class X4{}class zC{}const v6=new Map;class EC extends X4{constructor(n,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new DC(this);const i=j3(n);this._bootstrapComponents=E4(i.bootstrap),this._r3Injector=Du(n,t,[{provide:X4,useValue:this},{provide:g6,useValue:this.componentFactoryResolver}],k2(n)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(n)}get(n,t=R1.THROW_IF_NOT_FOUND,i=r2.Default){return n===R1||n===X4||n===ma?this:this._r3Injector.get(n,t,i)}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class Ya extends zC{constructor(n){super(),this.moduleType=n,null!==j3(n)&&function VT(e){const n=new Set;!function t(i){const r=j3(i,!0),a=r.id;null!==a&&(function NC(e,n,t){if(n&&n!==t)throw new Error(`Duplicate module registered for ${e} - ${k2(n)} vs ${k2(n.name)}`)}(a,v6.get(a),i),v6.set(a,i));const o=E4(r.imports);for(const s of o)n.has(s)||(n.add(s),t(s))}(e)}(n)}create(n){return new EC(this.moduleType,n)}}function k5(e,n,t,i,r){return function AC(e,n,t,i,r,a,o){const s=n+t;return Je(e,s,r,a)?function A4(e,n,t){return e[n]=t}(e,s+2,o?i.call(o,r,a):i(r,a)):function I5(e,n){const t=e[n];return t===l2?void 0:t}(e,s+2)}(k(),function m3(){const e=c2.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}(),e,n,t,i,r)}function Qa(e){return n=>{setTimeout(e,void 0,n)}}const u2=class PT extends C2{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,t,i){var r,a,o;let s=n,c=t||(()=>null),l=i;if(n&&"object"==typeof n){const f=n;s=null===(r=f.next)||void 0===r?void 0:r.bind(f),c=null===(a=f.error)||void 0===a?void 0:a.bind(f),l=null===(o=f.complete)||void 0===o?void 0:o.bind(f)}this.__isAsync&&(c=Qa(c),s&&(s=Qa(s)),l&&(l=Qa(l)));const u=super.subscribe({next:s,error:c,complete:l});return n instanceof H2&&n.add(u),u}};function FT(){return this._results[e6()]()}class Za{constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=e6(),i=Za.prototype;i[t]||(i[t]=FT)}get changes(){return this._changes||(this._changes=new u2)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,t){return this._results.reduce(n,t)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,t){const i=this;i.dirty=!1;const r=q3(n);(this._changesDetected=!function JD(e,n,t){if(e.length!==n.length)return!1;for(let i=0;i<e.length;i++){let r=e[i],a=n[i];if(t&&(r=t(r),a=t(a)),a!==r)return!1}return!0}(i._results,r,t))&&(i._results=r,i.length=r.length,i.last=r[this.length-1],i.first=r[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let c1=(()=>{class e{}return e.__NG_ELEMENT_ID__=jT,e})();const BT=c1,UT=class extends BT{constructor(n,t,i){super(),this._declarationLView=n,this._declarationTContainer=t,this.elementRef=i}createEmbeddedView(n){const t=this._declarationTContainer.tViews,i=_5(this._declarationLView,t,n,16,null,t.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[19];return null!==a&&(i[19]=a.createEmbeddedView(t)),M5(t,i,n),new A5(i)}};function jT(){return O8(I1(),k())}function O8(e,n){return 4&e.type?new UT(n,e,m6(e,n)):null}let Z3=(()=>{class e{}return e.__NG_ELEMENT_ID__=GT,e})();function GT(){return FC(I1(),k())}const $T=Z3,RC=class extends $T{constructor(n,t,i){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=i}get element(){return m6(this._hostTNode,this._hostLView)}get injector(){return new Pt(this._hostTNode,this._hostLView)}get parentInjector(){const n=o8(this._hostTNode,this._hostLView);if(Tc(n)){const t=Rt(n,this._hostLView),i=Ot(n);return new Pt(t[1].data[i+8],t)}return new Pt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=PC(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-10}createEmbeddedView(n,t,i){const r=n.createEmbeddedView(t||{});return this.insert(r,i),r}createComponent(n,t,i,r,a){const o=n&&!function a5(e){return"function"==typeof e}(n);let s;if(o)s=t;else{const f=t||{};s=f.index,i=f.injector,r=f.projectableNodes,a=f.ngModuleRef}const c=o?n:new qa(s3(n)),l=i||this.parentInjector;if(!a&&null==c.ngModule){const h=(o?l:this.parentInjector).get(X4,null);h&&(a=h)}const u=c.create(l,r,void 0,a);return this.insert(u.hostView,s),u}insert(n,t){const i=n._lView,r=i[1];if(function yD(e){return f4(e[3])}(i)){const u=this.indexOf(n);if(-1!==u)this.detach(u);else{const f=i[3],h=new RC(f,f[6],f[3]);h.detach(h.indexOf(n))}}const a=this._adjustIndex(t),o=this._lContainer;!function Hz(e,n,t,i){const r=10+i,a=t.length;i>0&&(t[r-1][4]=n),i<a-10?(n[4]=t[r],jc(t,10+i,n)):(t.push(n),n[4]=null),n[3]=t;const o=n[17];null!==o&&t!==o&&function wz(e,n){const t=e[9];n[16]!==n[3][3][16]&&(e[2]=!0),null===t?e[9]=[n]:t.push(n)}(o,n);const s=n[19];null!==s&&s.insertView(e),n[2]|=128}(r,i,o,a);const s=qr(a,o),c=i[11],l=m8(c,o[7]);return null!==l&&function bz(e,n,t,i,r,a){i[0]=r,i[6]=n,v5(e,i,t,1,r,a)}(r,o[6],c,i,l,s),n.attachToViewContainerRef(),jc(Ja(o),a,n),n}move(n,t){return this.insert(n,t)}indexOf(n){const t=PC(this._lContainer);return null!==t?t.indexOf(n):-1}remove(n){const t=this._adjustIndex(n,-1),i=Gr(this._lContainer,t);i&&(l8(Ja(this._lContainer),t),Sl(i[1],i))}detach(n){const t=this._adjustIndex(n,-1),i=Gr(this._lContainer,t);return i&&null!=l8(Ja(this._lContainer),t)?new A5(i):null}_adjustIndex(n,t=0){return null==n?this.length+t:n}};function PC(e){return e[8]}function Ja(e){return e[8]||(e[8]=[])}function FC(e,n){let t;const i=n[e.index];if(f4(i))t=i;else{let r;if(8&e.type)r=x1(i);else{const a=n[11];r=a.createComment("");const o=W3(e,n);Ze(a,m8(a,o),r,function Nz(e,n){return m1(e)?e.nextSibling(n):n.nextSibling}(a,o),!1)}n[e.index]=t=mu(i,n,r,e),V8(n,t)}return new RC(t,e,n)}class Xa{constructor(n){this.queryList=n,this.matches=null}clone(){return new Xa(this.queryList)}setDirty(){this.queryList.setDirty()}}class eo{constructor(n=[]){this.queries=n}createEmbeddedView(n){const t=n.queries;if(null!==t){const i=null!==n.contentQueries?n.contentQueries[0]:t.length,r=[];for(let a=0;a<i;a++){const o=t.getByIndex(a);r.push(this.queries[o.indexInDeclarationView].clone())}return new eo(r)}return null}insertView(n){this.dirtyQueriesWithMatches(n)}detachView(n){this.dirtyQueriesWithMatches(n)}dirtyQueriesWithMatches(n){for(let t=0;t<this.queries.length;t++)null!==$C(n,t).matches&&this.queries[t].setDirty()}}class BC{constructor(n,t,i=null){this.predicate=n,this.flags=t,this.read=i}}class to{constructor(n=[]){this.queries=n}elementStart(n,t){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(n,t)}elementEnd(n){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(n)}embeddedTView(n){let t=null;for(let i=0;i<this.length;i++){const r=null!==t?t.length:0,a=this.getByIndex(i).embeddedTView(n,r);a&&(a.indexInDeclarationView=i,null!==t?t.push(a):t=[a])}return null!==t?new to(t):null}template(n,t){for(let i=0;i<this.queries.length;i++)this.queries[i].template(n,t)}getByIndex(n){return this.queries[n]}get length(){return this.queries.length}track(n){this.queries.push(n)}}class no{constructor(n,t=-1){this.metadata=n,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}elementStart(n,t){this.isApplyingToNode(t)&&this.matchTNode(n,t)}elementEnd(n){this._declarationNodeIndex===n.index&&(this._appliesToNextNode=!1)}template(n,t){this.elementStart(n,t)}embeddedTView(n,t){return this.isApplyingToNode(n)?(this.crossesNgTemplate=!0,this.addMatch(-n.index,t),new no(this.metadata)):null}isApplyingToNode(n){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const t=this._declarationNodeIndex;let i=n.parent;for(;null!==i&&8&i.type&&i.index!==t;)i=i.parent;return t===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(n,t){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const a=i[r];this.matchTNodeWithReadOption(n,t,YT(t,a)),this.matchTNodeWithReadOption(n,t,c8(t,n,a,!1,!1))}else i===c1?4&t.type&&this.matchTNodeWithReadOption(n,t,-1):this.matchTNodeWithReadOption(n,t,c8(t,n,i,!1,!1))}matchTNodeWithReadOption(n,t,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===I2||r===Z3||r===c1&&4&t.type)this.addMatch(t.index,-2);else{const a=c8(t,n,r,!1,!1);null!==a&&this.addMatch(t.index,a)}else this.addMatch(t.index,i)}}addMatch(n,t){null===this.matches?this.matches=[n,t]:this.matches.push(n,t)}}function YT(e,n){const t=e.localNames;if(null!==t)for(let i=0;i<t.length;i+=2)if(t[i]===n)return t[i+1];return null}function QT(e,n,t,i){return-1===t?function KT(e,n){return 11&e.type?m6(e,n):4&e.type?O8(e,n):null}(n,e):-2===t?function ZT(e,n,t){return t===I2?m6(n,e):t===c1?O8(n,e):t===Z3?FC(n,e):void 0}(e,n,i):i5(e,e[1],t,n)}function UC(e,n,t,i){const r=n[19].queries[i];if(null===r.matches){const a=e.data,o=t.matches,s=[];for(let c=0;c<o.length;c+=2){const l=o[c];s.push(l<0?null:QT(n,a[l],o[c+1],t.metadata.read))}r.matches=s}return r.matches}function io(e,n,t,i){const r=e.queries.getByIndex(t),a=r.matches;if(null!==a){const o=UC(e,n,r,t);for(let s=0;s<a.length;s+=2){const c=a[s];if(c>0)i.push(o[s/2]);else{const l=a[s+1],u=n[-c];for(let f=10;f<u.length;f++){const h=u[f];h[17]===h[3]&&io(h[1],h,l,i)}if(null!==u[9]){const f=u[9];for(let h=0;h<f.length;h++){const p=f[h];io(p[1],p,l,i)}}}}}return i}function f1(e){const n=k(),t=z2(),i=Vc();dr(i+1);const r=$C(t,i);if(e.dirty&&mc(n)===(2==(2&r.metadata.flags))){if(null===r.matches)e.reset([]);else{const a=r.crossesNgTemplate?io(t,n,i,[]):UC(t,n,r,i);e.reset(a,dT),e.notifyOnChanges()}return!0}return!1}function H1(e,n,t,i){const r=z2();if(r.firstCreatePass){const a=I1();GC(r,new BC(n,t,i),a.index),function XT(e,n){const t=e.contentQueries||(e.contentQueries=[]);n!==(t.length?t[t.length-1]:-1)&&t.push(e.queries.length-1,n)}(r,e),2==(2&t)&&(r.staticContentQueries=!0)}jC(r,k(),t)}function C1(){return function JT(e,n){return e[19].queries[n].queryList}(k(),Vc())}function jC(e,n,t){const i=new Za(4==(4&t));lu(e,n,i,i.destroy),null===n[19]&&(n[19]=new eo),n[19].queries.push(new Xa(i))}function GC(e,n,t){null===e.queries&&(e.queries=new to),e.queries.track(new no(n,t))}function $C(e,n){return e.queries.getByIndex(n)}function J3(e,n){return O8(e,n)}function F8(...e){}const uo=new v2("Application Initializer");let fo=(()=>{class e{constructor(t){this.appInits=t,this.resolve=F8,this.reject=F8,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const t=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r<this.appInits.length;r++){const a=this.appInits[r]();if(V5(a))t.push(a);else if(Ta(a)){const o=new Promise((s,c)=>{a.subscribe({complete:s,error:c})});t.push(o)}}Promise.all(t).then(()=>{i()}).catch(r=>{this.reject(r)}),0===t.length&&i(),this.initialized=!0}}return e.\u0275fac=function(t){return new(t||e)(q(uo,8))},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const P5=new v2("AppId",{providedIn:"root",factory:function cd(){return`${Co()}${Co()}${Co()}`}});function Co(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const ld=new v2("Platform Initializer"),ho=new v2("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),ud=new v2("appBootstrapListener");let gA=(()=>{class e{log(t){console.log(t)}warn(t){console.warn(t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const De=new v2("LocaleId",{providedIn:"root",factory:()=>fS(De,r2.Optional|r2.SkipSelf)||function mA(){return"undefined"!=typeof $localize&&$localize.locale||N8}()});class _A{constructor(n,t){this.ngModuleFactory=n,this.componentFactories=t}}let fd=(()=>{class e{compileModuleSync(t){return new Ya(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const i=this.compileModuleSync(t),a=E4(j3(t).declarations).reduce((o,s)=>{const c=s3(s);return c&&o.push(new qa(c)),o},[]);return new _A(i,a)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const yA=(()=>Promise.resolve(0))();function po(e){"undefined"==typeof Zone?yA.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class $2{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new u2(!1),this.onMicrotaskEmpty=new u2(!1),this.onStable=new u2(!1),this.onError=new u2(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&t,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function bA(){let e=R2.requestAnimationFrame,n=R2.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&n){const t=e[Zone.__symbol__("OriginalDelegate")];t&&(e=t);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function HA(e){const n=()=>{!function VA(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(R2,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,mo(e),e.isCheckStableRunning=!0,go(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),mo(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,i,r,a,o,s)=>{try{return Cd(e),t.invokeTask(r,a,o,s)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===a.type||e.shouldCoalesceRunChangeDetection)&&n(),dd(e)}},onInvoke:(t,i,r,a,o,s,c)=>{try{return Cd(e),t.invoke(r,a,o,s,c)}finally{e.shouldCoalesceRunChangeDetection&&n(),dd(e)}},onHasTask:(t,i,r,a)=>{t.hasTask(r,a),i===r&&("microTask"==a.change?(e._hasPendingMicrotasks=a.microTask,mo(e),go(e)):"macroTask"==a.change&&(e.hasPendingMacrotasks=a.macroTask))},onHandleError:(t,i,r,a)=>(t.handleError(r,a),e.runOutsideAngular(()=>e.onError.emit(a)),!1)})}(r)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!$2.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if($2.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(n,t,i){return this._inner.run(n,t,i)}runTask(n,t,i,r){const a=this._inner,o=a.scheduleEventTask("NgZoneEvent: "+r,n,LA,F8,F8);try{return a.runTask(o,t,i)}finally{a.cancelTask(o)}}runGuarded(n,t,i){return this._inner.runGuarded(n,t,i)}runOutsideAngular(n){return this._outer.run(n)}}const LA={};function go(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 mo(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Cd(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function dd(e){e._nesting--,go(e)}class wA{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new u2,this.onMicrotaskEmpty=new u2,this.onStable=new u2,this.onError=new u2}run(n,t,i){return n.apply(t,i)}runGuarded(n,t,i){return n.apply(t,i)}runOutsideAngular(n){return n()}runTask(n,t,i,r){return n.apply(t,i)}}let vo=(()=>{class e{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{$2.assertNotInAngularZone(),po(()=>{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())po(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(t)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,i,r){let a=-1;i&&i>0&&(a=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==a),t(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:t,timeoutId:a,updateCb:r})}whenStable(t,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,i,r){return[]}}return e.\u0275fac=function(t){return new(t||e)(q($2))},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})(),DA=(()=>{class e{constructor(){this._applications=new Map,_o.addToWindow(this)}registerApplication(t,i){this._applications.set(t,i)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,i=!0){return _o.findTestabilityInTree(this,t,i)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();class SA{addToWindow(n){}findTestabilityInTree(n,t,i){return null}}let _o=new SA,et=null;const hd=new v2("AllowMultipleToken"),pd=new v2("PlatformOnDestroy");class gd{constructor(n,t){this.name=n,this.token=t}}function md(e,n,t=[]){const i=`Platform: ${n}`,r=new v2(i);return(a=[])=>{let o=Mo();if(!o||o.injector.get(hd,!1)){const s=[...t,...a,{provide:r,useValue:!0}];e?e(s):function EA(e){if(et&&!et.get(hd,!1))throw new S2(400,"");et=e;const n=e.get(vd),t=e.get(ld,null);t&&t.forEach(i=>i())}(function AA(e=[],n){return R1.create({name:n,providers:[{provide:va,useValue:"platform"},{provide:pd,useValue:()=>et=null},...e]})}(s,i))}return function TA(e){const n=Mo();if(!n)throw new S2(401,"");return n}()}}function Mo(){var e;return null!==(e=null==et?void 0:et.get(vd))&&void 0!==e?e:null}let vd=(()=>{class e{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,i){const s=function kA(e,n){let t;return t="noop"===e?new wA:("zone.js"===e?void 0:e)||new $2({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==n?void 0:n.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==n?void 0:n.ngZoneRunCoalescing)}),t}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),c=[{provide:$2,useValue:s}];return s.run(()=>{const l=R1.create({providers:c,parent:this.injector,name:t.moduleType.name}),u=t.create(l),f=u.injector.get(g5,null);if(!f)throw new S2(402,"");return s.runOutsideAngular(()=>{const h=s.onError.subscribe({next:p=>{f.handleError(p)}});u.onDestroy(()=>{yo(this._modules,u),h.unsubscribe()})}),function IA(e,n,t){try{const i=t();return V5(i)?i.catch(r=>{throw n.runOutsideAngular(()=>e.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>e.handleError(i)),i}}(f,s,()=>{const h=u.injector.get(fo);return h.runInitializers(),h.donePromise.then(()=>(function gE(e){x3(e,"Expected localeId to be defined"),"string"==typeof e&&(eC=e.toLowerCase().replace(/_/g,"-"))}(u.injector.get(De,N8)||N8),this._moduleDoBootstrap(u),u))})})}bootstrapModule(t,i=[]){const r=_d({},i);return function NA(e,n,t){const i=new Ya(t);return Promise.resolve(i)}(0,0,t).then(a=>this.bootstrapModuleFactory(a,r))}_moduleDoBootstrap(t){const i=t.injector.get(F5);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!t.instance.ngDoBootstrap)throw new S2(403,"");t.instance.ngDoBootstrap(i)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new S2(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const t=this._injector.get(pd,null);null==t||t(),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(t){return new(t||e)(q(R1))},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function _d(e,n){return Array.isArray(n)?n.reduce(_d,e):Object.assign(Object.assign({},e),n)}let F5=(()=>{class e{constructor(t,i,r,a){this._zone=t,this._injector=i,this._exceptionHandler=r,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new A2(c=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{c.next(this._stable),c.complete()})}),s=new A2(c=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{$2.assertNotInAngularZone(),po(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,c.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{$2.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{c.next(!1)}))});return()=>{l.unsubscribe(),u.unsubscribe()}});this.isStable=ec(o,s.pipe(tc()))}bootstrap(t,i){if(!this._initStatus.done)throw new S2(405,"");let r;r=t instanceof HC?t:this._injector.get(g6).resolveComponentFactory(t),this.componentTypes.push(r.componentType);const a=function xA(e){return e.isBoundToModule}(r)?void 0:this._injector.get(X4),s=r.create(R1.NULL,[],i||r.selector,a),c=s.location.nativeElement,l=s.injector.get(vo,null),u=l&&s.injector.get(DA);return l&&u&&u.registerApplication(c,l),s.onDestroy(()=>{this.detachView(s.hostView),yo(this.components,s),u&&u.unregisterApplication(c)}),this._loadComponent(s),s}tick(){if(this._runningTick)throw new S2(101,"");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const i=t;this._views.push(i),i.attachToAppRef(this)}detachView(t){const i=t;yo(this._views,i),i.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(ud,[]).concat(this._bootstrapListeners).forEach(r=>r(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(t){return new(t||e)(q($2),q(R1),q(g5),q(fo))},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function yo(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}let yd=!0,X3=(()=>{class e{}return e.__NG_ELEMENT_ID__=PA,e})();function PA(e){return function FA(e,n,t){if(Yn(e)&&!t){const i=T3(e.index,n);return new A5(i,i)}return 47&e.type?new A5(n[16],n):null}(I1(),k(),16==(16&e))}class wd{constructor(){}supports(n){return b5(n)}create(n){return new WA(n)}}const $A=(e,n)=>n;class WA{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||$A}forEachItem(n){let t;for(t=this._itHead;null!==t;t=t._next)n(t)}forEachOperation(n){let t=this._itHead,i=this._removalsHead,r=0,a=null;for(;t||i;){const o=!i||t&&t.currentIndex<Sd(i,r,a)?t:i,s=Sd(o,r,a),c=o.currentIndex;if(o===i)r--,i=i._nextRemoved;else if(t=t._next,null==o.previousIndex)r++;else{a||(a=[]);const l=s-r,u=c-r;if(l!=u){for(let h=0;h<l;h++){const p=h<a.length?a[h]:a[h]=0,L=p+h;u<=L&&L<l&&(a[h]=p+1)}a[o.previousIndex]=u-l}}s!==c&&n(o,s,c)}}forEachPreviousItem(n){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)n(t)}forEachAddedItem(n){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)n(t)}forEachMovedItem(n){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)n(t)}forEachRemovedItem(n){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)n(t)}forEachIdentityChange(n){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)n(t)}diff(n){if(null==n&&(n=[]),!b5(n))throw new S2(900,"");return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let r,a,o,t=this._itHead,i=!1;if(Array.isArray(n)){this.length=n.length;for(let s=0;s<this.length;s++)a=n[s],o=this._trackByFn(s,a),null!==t&&Object.is(t.trackById,o)?(i&&(t=this._verifyReinsertion(t,a,o,s)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,o,s),i=!0),t=t._next}else r=0,function ix(e,n){if(Array.isArray(e))for(let t=0;t<e.length;t++)n(e[t]);else{const t=e[e6()]();let i;for(;!(i=t.next()).done;)n(i.value)}}(n,s=>{o=this._trackByFn(r,s),null!==t&&Object.is(t.trackById,o)?(i&&(t=this._verifyReinsertion(t,s,o,r)),Object.is(t.item,s)||this._addIdentityChange(t,s)):(t=this._mismatch(t,s,o,r),i=!0),t=t._next,r++}),this.length=r;return this._truncate(t),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,t,i,r){let a;return null===n?a=this._itTail:(a=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._reinsertAfter(n,a,r)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._moveAfter(n,a,r)):n=this._addAfter(new qA(t,i),a,r),n}_verifyReinsertion(n,t,i,r){let a=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==a?n=this._reinsertAfter(a,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;null!==n;){const t=n._next;this._addToRemovals(this._unlink(n)),n=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,t,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const r=n._prevRemoved,a=n._nextRemoved;return null===r?this._removalsHead=a:r._nextRemoved=a,null===a?this._removalsTail=r:a._prevRemoved=r,this._insertAfter(n,t,i),this._addToMoves(n,i),n}_moveAfter(n,t,i){return this._unlink(n),this._insertAfter(n,t,i),this._addToMoves(n,i),n}_addAfter(n,t,i){return this._insertAfter(n,t,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,t,i){const r=null===t?this._itHead:t._next;return n._next=r,n._prev=t,null===r?this._itTail=n:r._prev=n,null===t?this._itHead=n:t._next=n,null===this._linkedRecords&&(this._linkedRecords=new Dd),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const t=n._prev,i=n._next;return null===t?this._itHead=i:t._next=i,null===i?this._itTail=t:i._prev=t,n}_addToMoves(n,t){return n.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Dd),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,t){return n.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class qA{constructor(n,t){this.item=n,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class YA{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,t){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===t||t<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const t=n._prevDup,i=n._nextDup;return null===t?this._head=i:t._nextDup=i,null===i?this._tail=t:i._prevDup=t,null===this._head}}class Dd{constructor(){this.map=new Map}put(n){const t=n.trackById;let i=this.map.get(t);i||(i=new YA,this.map.set(t,i)),i.add(n)}get(n,t){const r=this.map.get(n);return r?r.get(n,t):null}remove(n){const t=n.trackById;return this.map.get(t).remove(n)&&this.map.delete(t),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Sd(e,n,t){const i=e.previousIndex;if(null===i)return i;let r=0;return t&&i<t.length&&(r=t[i]),i+n+r}function Nd(){return new j8([new wd])}let j8=(()=>{class e{constructor(t){this.factories=t}static create(t,i){if(null!=i){const r=i.factories.slice();t=t.concat(r)}return new e(t)}static extend(t){return{provide:e,useFactory:i=>e.create(t,i||Nd()),deps:[[e,new u5,new be]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(null!=i)return i;throw new S2(901,"")}}return e.\u0275prov=Z({token:e,providedIn:"root",factory:Nd}),e})();const XA=md(null,"core",[]);let ek=(()=>{class e{constructor(t){}}return e.\u0275fac=function(t){return new(t||e)(q(F5))},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({}),e})(),G8=null;function R4(){return G8}const E1=new v2("DocumentToken");let nt=(()=>{class e{historyGo(t){throw new Error("Not implemented")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:function(){return function rk(){return q(Ed)}()},providedIn:"platform"}),e})();const ak=new v2("Location Initialized");let Ed=(()=>{class e extends nt{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return R4().getBaseHref(this._doc)}onPopState(t){const i=R4().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",t,!1),()=>i.removeEventListener("popstate",t)}onHashChange(t){const i=R4().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",t,!1),()=>i.removeEventListener("hashchange",t)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,i,r){Td()?this._history.pushState(t,i,r):this.location.hash=r}replaceState(t,i,r){Td()?this._history.replaceState(t,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return e.\u0275fac=function(t){return new(t||e)(q(E1))},e.\u0275prov=Z({token:e,factory:function(){return function ok(){return new Ed(q(E1))}()},providedIn:"platform"}),e})();function Td(){return!!window.history.pushState}function wo(e,n){if(0==e.length)return n;if(0==n.length)return e;let t=0;return e.endsWith("/")&&t++,n.startsWith("/")&&t++,2==t?e+n.substring(1):1==t?e+n:e+"/"+n}function Ad(e){const n=e.match(/#|\?|$/),t=n&&n.index||e.length;return e.slice(0,t-("/"===e[t-1]?1:0))+e.slice(t)}function ee(e){return e&&"?"!==e[0]?"?"+e:e}let it=(()=>{class e{historyGo(t){throw new Error("Not implemented")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:function(){return function sk(e){const n=q(E1).location;return new kd(q(nt),n&&n.origin||"")}()},providedIn:"root"}),e})();const Do=new v2("appBaseHref");let kd=(()=>{class e extends it{constructor(t,i){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=i}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return wo(this._baseHref,t)}path(t=!1){const i=this._platformLocation.pathname+ee(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?`${i}${r}`:i}pushState(t,i,r,a){const o=this.prepareExternalUrl(r+ee(a));this._platformLocation.pushState(t,i,o)}replaceState(t,i,r,a){const o=this.prepareExternalUrl(r+ee(a));this._platformLocation.replaceState(t,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,t)}}return e.\u0275fac=function(t){return new(t||e)(q(nt),q(Do,8))},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})(),Id=(()=>{class e extends it{constructor(t,i){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(t){const i=wo(this._baseHref,t);return i.length>0?"#"+i:i}pushState(t,i,r,a){let o=this.prepareExternalUrl(r+ee(a));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,i,o)}replaceState(t,i,r,a){let o=this.prepareExternalUrl(r+ee(a));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(t,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,t)}}return e.\u0275fac=function(t){return new(t||e)(q(nt),q(Do,8))},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})(),So=(()=>{class e{constructor(t,i){this._subject=new u2,this._urlChangeListeners=[],this._platformStrategy=t;const r=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=Ad(Od(r)),this._platformStrategy.onPopState(a=>{this._subject.emit({url:this.path(!0),pop:!0,state:a.state,type:a.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,i=""){return this.path()==this.normalize(t+ee(i))}normalize(t){return e.stripTrailingSlash(function lk(e,n){return e&&n.startsWith(e)?n.substring(e.length):n}(this._baseHref,Od(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,i="",r=null){this._platformStrategy.pushState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ee(i)),r)}replaceState(t,i="",r=null){this._platformStrategy.replaceState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ee(i)),r)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var i,r;null===(r=(i=this._platformStrategy).historyGo)||void 0===r||r.call(i,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(t="",i){this._urlChangeListeners.forEach(r=>r(t,i))}subscribe(t,i,r){return this._subject.subscribe({next:t,error:i,complete:r})}}return e.normalizeQueryParams=ee,e.joinWithSlash=wo,e.stripTrailingSlash=Ad,e.\u0275fac=function(t){return new(t||e)(q(it),q(nt))},e.\u0275prov=Z({token:e,factory:function(){return function ck(){return new So(q(it),q(nt))}()},providedIn:"root"}),e})();function Od(e){return e.replace(/\/index.html$/,"")}class Kk{constructor(n,t,i,r){this.$implicit=n,this.ngForOf=t,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let rt=(()=>{class e{constructor(t,i,r){this._viewContainer=t,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const i=this._viewContainer;t.forEachOperation((r,a,o)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new Kk(r.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)i.remove(null===a?void 0:a);else if(null!==a){const s=i.get(a);i.move(s,o),Wd(s,r)}});for(let r=0,a=i.length;r<a;r++){const s=i.get(r).context;s.index=r,s.count=a,s.ngForOf=this._ngForOf}t.forEachIdentityChange(r=>{Wd(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(t,i){return!0}}return e.\u0275fac=function(t){return new(t||e)(V(Z3),V(c1),V(j8))},e.\u0275dir=U({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e})();function Wd(e,n){e.context.$implicit=n.item}let B1=(()=>{class e{constructor(t,i){this._viewContainer=t,this._context=new Qk,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){qd("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){qd("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,i){return!0}}return e.\u0275fac=function(t){return new(t||e)(V(Z3),V(c1))},e.\u0275dir=U({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e})();class Qk{constructor(){this.$implicit=null,this.ngIf=null}}function qd(e,n){if(n&&!n.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${k2(n)}'.`)}let M6=(()=>{class e{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(t.ngTemplateOutlet){const i=this._viewContainerRef;this._viewRef&&i.remove(i.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?i.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return e.\u0275fac=function(t){return new(t||e)(V(Z3))},e.\u0275dir=U({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[N1]}),e})(),R3=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({}),e})();let wI=(()=>{class e{}return e.\u0275prov=Z({token:e,providedIn:"root",factory:()=>new DI(q(E1),window)}),e})();class DI{constructor(n,t){this.document=n,this.window=t,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const t=function SI(e,n){const t=e.getElementById(n)||e.getElementsByName(n)[0];if(t)return t;if("function"==typeof e.createTreeWalker&&e.body&&(e.body.createShadowRoot||e.body.attachShadow)){const i=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const a=r.shadowRoot;if(a){const o=a.getElementById(n)||a.querySelector(`[name="${n}"]`);if(o)return o}r=i.nextNode()}}return null}(this.document,n);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=n)}}scrollToElement(n){const t=n.getBoundingClientRect(),i=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,a=this.offset();this.window.scrollTo(i-a[0],r-a[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=Zd(this.window.history)||Zd(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch(n){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(n){return!1}}}function Zd(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class Uo extends class NI extends class ik{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function nk(e){G8||(G8=e)}(new Uo)}onAndCancel(n,t,i){return n.addEventListener(t,i,!1),()=>{n.removeEventListener(t,i,!1)}}dispatchEvent(n,t){n.dispatchEvent(t)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,t){return(t=t||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,t){return"window"===t?window:"document"===t?n:"body"===t?n.body:null}getBaseHref(n){const t=function xI(){return G5=G5||document.querySelector("base"),G5?G5.getAttribute("href"):null}();return null==t?null:function EI(e){e0=e0||document.createElement("a"),e0.setAttribute("href",e);const n=e0.pathname;return"/"===n.charAt(0)?n:`/${n}`}(t)}resetBaseElement(){G5=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return function Wk(e,n){n=encodeURIComponent(n);for(const t of e.split(";")){const i=t.indexOf("="),[r,a]=-1==i?[t,""]:[t.slice(0,i),t.slice(i+1)];if(r.trim()===n)return decodeURIComponent(a)}return null}(document.cookie,n)}}let e0,G5=null;const Jd=new v2("TRANSITION_ID"),AI=[{provide:uo,useFactory:function TI(e,n,t){return()=>{t.get(fo).donePromise.then(()=>{const i=R4(),r=n.querySelectorAll(`style[ng-transition="${e}"]`);for(let a=0;a<r.length;a++)i.remove(r[a])})}},deps:[Jd,E1,R1],multi:!0}];class jo{static init(){!function zA(e){_o=e}(new jo)}addToWindow(n){R2.getAngularTestability=(i,r=!0)=>{const a=n.findTestabilityInTree(i,r);if(null==a)throw new Error("Could not find testability for element.");return a},R2.getAllAngularTestabilities=()=>n.getAllTestabilities(),R2.getAllAngularRootElements=()=>n.getAllRootElements(),R2.frameworkStabilizers||(R2.frameworkStabilizers=[]),R2.frameworkStabilizers.push(i=>{const r=R2.getAllAngularTestabilities();let a=r.length,o=!1;const s=function(c){o=o||c,a--,0==a&&i(o)};r.forEach(function(c){c.whenStable(s)})})}findTestabilityInTree(n,t,i){if(null==t)return null;const r=n.getTestability(t);return null!=r?r:i?R4().isShadowRoot(t)?this.findTestabilityInTree(n,t.host,!0):this.findTestabilityInTree(n,t.parentElement,!0):null}}let kI=(()=>{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})();const t0=new v2("EventManagerPlugins");let n0=(()=>{class e{constructor(t,i){this._zone=i,this._eventNameToPlugin=new Map,t.forEach(r=>r.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,i,r){return this._findPluginFor(i).addEventListener(t,i,r)}addGlobalEventListener(t,i,r){return this._findPluginFor(i).addGlobalEventListener(t,i,r)}getZone(){return this._zone}_findPluginFor(t){const i=this._eventNameToPlugin.get(t);if(i)return i;const r=this._plugins;for(let a=0;a<r.length;a++){const o=r[a];if(o.supports(t))return this._eventNameToPlugin.set(t,o),o}throw new Error(`No event manager plugin found for event ${t}`)}}return e.\u0275fac=function(t){return new(t||e)(q(t0),q($2))},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})();class Xd{constructor(n){this._doc=n}addGlobalEventListener(n,t,i){const r=R4().getGlobalEventTarget(this._doc,n);if(!r)throw new Error(`Unsupported event target ${r} for event ${t}`);return this.addEventListener(r,t,i)}}let eh=(()=>{class e{constructor(){this._stylesSet=new Set}addStyles(t){const i=new Set;t.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})(),$5=(()=>{class e extends eh{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,i,r){t.forEach(a=>{const o=this._doc.createElement("style");o.textContent=a,r.push(i.appendChild(o))})}addHost(t){const i=[];this._addStylesToHost(this._stylesSet,t,i),this._hostNodes.set(t,i)}removeHost(t){const i=this._hostNodes.get(t);i&&i.forEach(th),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(t,r,i)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(th))}}return e.\u0275fac=function(t){return new(t||e)(q(E1))},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})();function th(e){R4().remove(e)}const Go={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/"},$o=/%COMP%/g;function r0(e,n,t){for(let i=0;i<n.length;i++){let r=n[i];Array.isArray(r)?r0(e,r,t):(r=r.replace($o,e),t.push(r))}return t}function rh(e){return n=>{if("__ngUnwrap__"===n)return e;!1===e(n)&&(n.preventDefault(),n.returnValue=!1)}}let Wo=(()=>{class e{constructor(t,i,r){this.eventManager=t,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new qo(t)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;switch(i.encapsulation){case w4.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new BI(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(t),r}case 1:case w4.ShadowDom:return new UI(this.eventManager,this.sharedStylesHost,t,i);default:if(!this.rendererByCompId.has(i.id)){const r=r0(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(t){return new(t||e)(q(n0),q($5),q(P5))},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})();class qo{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,t){return t?document.createElementNS(Go[t]||t,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,t){n.appendChild(t)}insertBefore(n,t,i){n&&n.insertBefore(t,i)}removeChild(n,t){n&&n.removeChild(t)}selectRootElement(n,t){let i="string"==typeof n?document.querySelector(n):n;if(!i)throw new Error(`The selector "${n}" did not match any elements`);return t||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,t,i,r){if(r){t=r+":"+t;const a=Go[r];a?n.setAttributeNS(a,t,i):n.setAttribute(t,i)}else n.setAttribute(t,i)}removeAttribute(n,t,i){if(i){const r=Go[i];r?n.removeAttributeNS(r,t):n.removeAttribute(`${i}:${t}`)}else n.removeAttribute(t)}addClass(n,t){n.classList.add(t)}removeClass(n,t){n.classList.remove(t)}setStyle(n,t,i,r){r&(I3.DashCase|I3.Important)?n.style.setProperty(t,i,r&I3.Important?"important":""):n.style[t]=i}removeStyle(n,t,i){i&I3.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,i){n[t]=i}setValue(n,t){n.nodeValue=t}listen(n,t,i){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,t,rh(i)):this.eventManager.addEventListener(n,t,rh(i))}}class BI extends qo{constructor(n,t,i,r){super(n),this.component=i;const a=r0(r+"-"+i.id,i.styles,[]);t.addStyles(a),this.contentAttr=function RI(e){return"_ngcontent-%COMP%".replace($o,e)}(r+"-"+i.id),this.hostAttr=function PI(e){return"_nghost-%COMP%".replace($o,e)}(r+"-"+i.id)}applyToHost(n){super.setAttribute(n,this.hostAttr,"")}createElement(n,t){const i=super.createElement(n,t);return super.setAttribute(i,this.contentAttr,""),i}}class UI extends qo{constructor(n,t,i,r){super(n),this.sharedStylesHost=t,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const a=r0(r.id,r.styles,[]);for(let o=0;o<a.length;o++){const s=document.createElement("style");s.textContent=a[o],this.shadowRoot.appendChild(s)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(n,t){return super.appendChild(this.nodeOrShadowRoot(n),t)}insertBefore(n,t,i){return super.insertBefore(this.nodeOrShadowRoot(n),t,i)}removeChild(n,t){return super.removeChild(this.nodeOrShadowRoot(n),t)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}}let jI=(()=>{class e extends Xd{constructor(t){super(t)}supports(t){return!0}addEventListener(t,i,r){return t.addEventListener(i,r,!1),()=>this.removeEventListener(t,i,r)}removeEventListener(t,i,r){return t.removeEventListener(i,r)}}return e.\u0275fac=function(t){return new(t||e)(q(E1))},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})();const oh=["alt","control","meta","shift"],$I={"\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"},sh={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},WI={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let qI=(()=>{class e extends Xd{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,i,r){const a=e.parseEventName(i),o=e.eventCallback(a.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>R4().onAndCancel(t,a.domEventName,o))}static parseEventName(t){const i=t.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const a=e._normalizeKey(i.pop());let o="";if(oh.forEach(c=>{const l=i.indexOf(c);l>-1&&(i.splice(l,1),o+=c+".")}),o+=a,0!=i.length||0===a.length)return null;const s={};return s.domEventName=r,s.fullKey=o,s}static getEventFullKey(t){let i="",r=function YI(e){let n=e.key;if(null==n){if(n=e.keyIdentifier,null==n)return"Unidentified";n.startsWith("U+")&&(n=String.fromCharCode(parseInt(n.substring(2),16)),3===e.location&&sh.hasOwnProperty(n)&&(n=sh[n]))}return $I[n]||n}(t);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),oh.forEach(a=>{a!=r&&WI[a](t)&&(i+=a+".")}),i+=r,i}static eventCallback(t,i,r){return a=>{e.getEventFullKey(a)===t&&r.runGuarded(()=>i(a))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return e.\u0275fac=function(t){return new(t||e)(q(E1))},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})();const JI=md(XA,"browser",[{provide:ho,useValue:"browser"},{provide:ld,useValue:function KI(){Uo.makeCurrent(),jo.init()},multi:!0},{provide:E1,useFactory:function ZI(){return function mD(e){rr=e}(document),document},deps:[]}]),XI=[{provide:va,useValue:"root"},{provide:g5,useFactory:function QI(){return new g5},deps:[]},{provide:t0,useClass:jI,multi:!0,deps:[E1,$2,ho]},{provide:t0,useClass:qI,multi:!0,deps:[E1]},{provide:Wo,useClass:Wo,deps:[n0,$5,P5]},{provide:$a,useExisting:Wo},{provide:eh,useExisting:$5},{provide:$5,useClass:$5,deps:[E1]},{provide:vo,useClass:vo,deps:[$2]},{provide:n0,useClass:n0,deps:[t0,$2]},{provide:class zI{},useClass:kI,deps:[]}];let eO=(()=>{class e{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:e,providers:[{provide:P5,useValue:t.appId},{provide:Jd,useExisting:P5},AI]}}}return e.\u0275fac=function(t){return new(t||e)(q(e,12))},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({providers:XI,imports:[R3,ek]}),e})();"undefined"!=typeof window&&window;let uh=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:function(t){let i=null;return i=t?new(t||e):q(fh),i},providedIn:"root"}),e})(),fh=(()=>{class e extends uh{constructor(t){super(),this._doc=t}sanitize(t,i){if(null==i)return null;switch(t){case Q2.NONE:return i;case Q2.HTML:return N4(i,"HTML")?k3(i):Cl(this._doc,String(i)).toString();case Q2.STYLE:return N4(i,"Style")?k3(i):i;case Q2.SCRIPT:if(N4(i,"Script"))return k3(i);throw new Error("unsafe value used in a script context");case Q2.URL:return rl(i),N4(i,"URL")?k3(i):C5(String(i));case Q2.RESOURCE_URL:if(N4(i,"ResourceURL"))return k3(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return function NS(e){return new HS(e)}(t)}bypassSecurityTrustStyle(t){return function xS(e){return new wS(e)}(t)}bypassSecurityTrustScript(t){return function ES(e){return new DS(e)}(t)}bypassSecurityTrustUrl(t){return function TS(e){return new SS(e)}(t)}bypassSecurityTrustResourceUrl(t){return function AS(e){return new zS(e)}(t)}}return e.\u0275fac=function(t){return new(t||e)(q(E1))},e.\u0275prov=Z({token:e,factory:function(t){let i=null;return i=t?new t:function uO(e){return new fh(e.get(E1))}(q(R1)),i},providedIn:"root"}),e})();const{isArray:fO}=Array,{getPrototypeOf:CO,prototype:dO,keys:hO}=Object;function Ch(e){if(1===e.length){const n=e[0];if(fO(n))return{args:n,keys:null};if(function pO(e){return e&&"object"==typeof e&&CO(e)===dO}(n)){const t=hO(n);return{args:t.map(i=>n[i]),keys:t}}}return{args:e,keys:null}}const{isArray:gO}=Array;function Ko(e){return m2(n=>function mO(e,n){return gO(n)?e(...n):e(n)}(e,n))}function dh(e,n){return e.reduce((t,i,r)=>(t[i]=n[r],t),{})}let hh=(()=>{class e{constructor(t,i){this._renderer=t,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(t,i){this._renderer.setProperty(this._elementRef.nativeElement,t,i)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return e.\u0275fac=function(t){return new(t||e)(V(y3),V(I2))},e.\u0275dir=U({type:e}),e})(),at=(()=>{class e extends hh{}return e.\u0275fac=function(){let n;return function(i){return(n||(n=l3(e)))(i||e)}}(),e.\u0275dir=U({type:e,features:[J]}),e})();const n4=new v2("NgValueAccessor"),_O={provide:n4,useExisting:N2(()=>C3),multi:!0};let C3=(()=>{class e extends at{writeValue(t){this.setProperty("checked",t)}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=l3(e)))(i||e)}}(),e.\u0275dir=U({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,i){1&t&&T("change",function(a){return i.onChange(a.target.checked)})("blur",function(){return i.onTouched()})},features:[G2([_O]),J]}),e})();const MO={provide:n4,useExisting:N2(()=>ze),multi:!0},bO=new v2("CompositionEventMode");let ze=(()=>{class e extends hh{constructor(t,i,r){super(t,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function yO(){const e=R4()?R4().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(t){this.setProperty("value",null==t?"":t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return e.\u0275fac=function(t){return new(t||e)(V(y3),V(I2),V(bO,8))},e.\u0275dir=U({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,i){1&t&&T("input",function(a){return i._handleInput(a.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(a){return i._compositionEnd(a.target.value)})},features:[G2([MO]),J]}),e})();const d3=new v2("NgValidators"),xe=new v2("NgAsyncValidators"),LO=/^(?=.{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 Mh(e){return function Ne(e){return null==e||0===e.length}(e.value)||LO.test(e.value)?null:{email:!0}}function a0(e){return null}function Vh(e){return null!=e}function Hh(e){const n=V5(e)?G1(e):e;return Ta(n),n}function wh(e){let n={};return e.forEach(t=>{n=null!=t?Object.assign(Object.assign({},n),t):n}),0===Object.keys(n).length?null:n}function Dh(e,n){return n.map(t=>t(e))}function Sh(e){return e.map(n=>function VO(e){return!e.validate}(n)?n:t=>n.validate(t))}function Qo(e){return null!=e?function zh(e){if(!e)return null;const n=e.filter(Vh);return 0==n.length?null:function(t){return wh(Dh(t,n))}}(Sh(e)):null}function Zo(e){return null!=e?function Nh(e){if(!e)return null;const n=e.filter(Vh);return 0==n.length?null:function(t){return function vO(...e){const n=Bn(e),{args:t,keys:i}=Ch(e),r=new A2(a=>{const{length:o}=t;if(!o)return void a.complete();const s=new Array(o);let c=o,l=o;for(let u=0;u<o;u++){let f=!1;o3(t[u]).subscribe(O2(a,h=>{f||(f=!0,l--),s[u]=h},()=>c--,void 0,()=>{(!c||!f)&&(l||a.next(i?dh(i,s):s),a.complete())}))}});return n?r.pipe(Ko(n)):r}(Dh(t,n).map(Hh)).pipe(m2(wh))}}(Sh(e)):null}function xh(e,n){return null===e?[n]:Array.isArray(e)?[...e,n]:[e,n]}function Jo(e){return e?Array.isArray(e)?e:[e]:[]}function o0(e,n){return Array.isArray(e)?e.includes(n):e===n}function Ah(e,n){const t=Jo(n);return Jo(e).forEach(r=>{o0(t,r)||t.push(r)}),t}function kh(e,n){return Jo(n).filter(t=>!o0(e,t))}class Ih{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=Qo(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Zo(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,t){return!!this.control&&this.control.hasError(n,t)}getError(n,t){return this.control?this.control.getError(n,t):null}}class Ee extends Ih{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class L3 extends Ih{get formDirective(){return null}get path(){return null}}let M1=(()=>{class e extends class Oh{constructor(n){this._cd=n}is(n){var t,i,r;return"submitted"===n?!!(null===(t=this._cd)||void 0===t?void 0:t.submitted):!!(null===(r=null===(i=this._cd)||void 0===i?void 0:i.control)||void 0===r?void 0:r[n])}}{constructor(t){super(t)}}return e.\u0275fac=function(t){return new(t||e)(V(Ee,2))},e.\u0275dir=U({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,i){2&t&&n1("ng-untouched",i.is("untouched"))("ng-touched",i.is("touched"))("ng-pristine",i.is("pristine"))("ng-dirty",i.is("dirty"))("ng-valid",i.is("valid"))("ng-invalid",i.is("invalid"))("ng-pending",i.is("pending"))},features:[J]}),e})();function W5(e,n){(function t7(e,n){const t=function Eh(e){return e._rawValidators}(e);null!==n.validator?e.setValidators(xh(t,n.validator)):"function"==typeof t&&e.setValidators([t]);const i=function Th(e){return e._rawAsyncValidators}(e);null!==n.asyncValidator?e.setAsyncValidators(xh(i,n.asyncValidator)):"function"==typeof i&&e.setAsyncValidators([i]);const r=()=>e.updateValueAndValidity();u0(n._rawValidators,r),u0(n._rawAsyncValidators,r)})(e,n),n.valueAccessor.writeValue(e.value),function TO(e,n){n.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&Ph(e,n)})}(e,n),function kO(e,n){const t=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};e.registerOnChange(t),n._registerOnDestroy(()=>{e._unregisterOnChange(t)})}(e,n),function AO(e,n){n.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&Ph(e,n),"submit"!==e.updateOn&&e.markAsTouched()})}(e,n),function EO(e,n){if(n.valueAccessor.setDisabledState){const t=i=>{n.valueAccessor.setDisabledState(i)};e.registerOnDisabledChange(t),n._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}(e,n)}function u0(e,n){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function Ph(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function r7(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}const q5="VALID",C0="INVALID",y6="PENDING",Y5="DISABLED";function o7(e){return(d0(e)?e.validators:e)||null}function jh(e){return Array.isArray(e)?Qo(e):e||null}function s7(e,n){return(d0(n)?n.asyncValidators:e)||null}function Gh(e){return Array.isArray(e)?Zo(e):e||null}function d0(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}const c7=e=>e instanceof u7;function Wh(e){return(e=>e instanceof Kh)(e)?e.value:e.getRawValue()}function qh(e,n){const t=c7(e),i=e.controls;if(!(t?Object.keys(i):i).length)throw new S2(1e3,"");if(!i[n])throw new S2(1001,"")}function Yh(e,n){c7(e),e._forEachChild((i,r)=>{if(void 0===n[r])throw new S2(1002,"")})}class l7{constructor(n,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=n,this._rawAsyncValidators=t,this._composedValidatorFn=jh(this._rawValidators),this._composedAsyncValidatorFn=Gh(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===q5}get invalid(){return this.status===C0}get pending(){return this.status==y6}get disabled(){return this.status===Y5}get enabled(){return this.status!==Y5}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._rawValidators=n,this._composedValidatorFn=jh(n)}setAsyncValidators(n){this._rawAsyncValidators=n,this._composedAsyncValidatorFn=Gh(n)}addValidators(n){this.setValidators(Ah(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(Ah(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(kh(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(kh(n,this._rawAsyncValidators))}hasValidator(n){return o0(this._rawValidators,n)}hasAsyncValidator(n){return o0(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=y6,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=Y5,this.errors=null,this._forEachChild(i=>{i.disable(Object.assign(Object.assign({},n),{onlySelf:!0}))}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},n),{skipPristineCheck:t})),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=q5,this._forEachChild(i=>{i.enable(Object.assign(Object.assign({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},n),{skipPristineCheck:t})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===q5||this.status===y6)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Y5:q5}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=y6,this._hasOwnPendingAsyncValidator=!0;const t=Hh(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,t={}){this.errors=n,this._updateControlsErrors(!1!==t.emitEvent)}get(n){return function PO(e,n,t){if(null==n||(Array.isArray(n)||(n=n.split(t)),Array.isArray(n)&&0===n.length))return null;let i=e;return n.forEach(r=>{i=c7(i)?i.controls.hasOwnProperty(r)?i.controls[r]:null:(e=>e instanceof BO)(i)&&i.at(r)||null}),i}(this,n,".")}getError(n,t){const i=t?this.get(t):this;return i&&i.errors?i.errors[n]:null}hasError(n,t){return!!this.getError(n,t)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new u2,this.statusChanges=new u2}_calculateStatus(){return this._allControlsDisabled()?Y5:this.errors?C0:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(y6)?y6:this._anyControlsHaveStatus(C0)?C0:q5}_anyControlsHaveStatus(n){return this._anyControls(t=>t.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_isBoxedValue(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){d0(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Kh extends l7{constructor(n=null,t,i){super(o7(t),s7(i,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),d0(t)&&t.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(n)?n.value:n)}setValue(n,t={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(n,t={}){this.setValue(n,t)}reset(n=this.defaultValue,t={}){this._applyFormState(n),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){r7(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){r7(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){this._isBoxedValue(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}}class u7 extends l7{constructor(n,t,i){super(o7(t),s7(i,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,t){return this.controls[n]?this.controls[n]:(this.controls[n]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(n,t,i={}){this.registerControl(n,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,t={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(n,t,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],t&&this.registerControl(n,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,t={}){Yh(this,n),Object.keys(n).forEach(i=>{qh(this,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(Object.keys(n).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(n[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n={},t={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(n,t,i)=>(n[i]=Wh(t),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(t,i)=>!!i._syncPendingControls()||t);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(t=>{const i=this.controls[t];i&&n(i,t)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const t of Object.keys(this.controls)){const i=this.controls[t];if(this.contains(t)&&n(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(n,t,i)=>((t.enabled||this.disabled)&&(n[i]=t.value),n))}_reduceChildren(n,t){let i=n;return this._forEachChild((r,a)=>{i=t(i,r,a)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class BO extends l7{constructor(n,t,i){super(o7(t),s7(i,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[n]}push(n,t={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(n,t,i={}){this.controls.splice(n,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,t={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(n,t,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),t&&(this.controls.splice(n,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,t={}){Yh(this,n),n.forEach((i,r)=>{qh(this,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(n.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n=[],t={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(n=>Wh(n))}clear(n={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_syncPendingControls(){let n=this.controls.reduce((t,i)=>!!i._syncPendingControls()||t,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((t,i)=>{n(t,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(t=>t.enabled&&n(t))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}}const GO={provide:Ee,useExisting:N2(()=>h1)},Jh=(()=>Promise.resolve(null))();let h1=(()=>{class e extends Ee{constructor(t,i,r,a,o){super(),this._changeDetectorRef=o,this.control=new Kh,this._registered=!1,this.update=new u2,this._parent=t,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=function i7(e,n){if(!n)return null;let t,i,r;return Array.isArray(n),n.forEach(a=>{a.constructor===ze?t=a:function RO(e){return Object.getPrototypeOf(e.constructor)===at}(a)?i=a:r=a}),r||i||t||null}(0,a)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){const i=t.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),function n7(e,n){if(!e.hasOwnProperty("model"))return!1;const t=e.model;return!!t.isFirstChange()||!Object.is(n,t.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){W5(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){Jh.then(()=>{var i;this.control.setValue(t,{emitViewToModelChange:!1}),null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()})}_updateDisabled(t){const i=t.isDisabled.currentValue,r=""===i||i&&"false"!==i;Jh.then(()=>{var a;r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),null===(a=this._changeDetectorRef)||void 0===a||a.markForCheck()})}_getPath(t){return this._parent?function c0(e,n){return[...n.path,e]}(t,this._parent):[t]}}return e.\u0275fac=function(t){return new(t||e)(V(L3,9),V(d3,10),V(xe,10),V(n4,10),V(X3,8))},e.\u0275dir=U({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[G2([GO]),J,N1]}),e})();const WO={provide:n4,useExisting:N2(()=>b6),multi:!0};let b6=(()=>{class e extends at{writeValue(t){this.setProperty("value",null==t?"":t)}registerOnChange(t){this.onChange=i=>{t(""==i?null:parseFloat(i))}}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=l3(e)))(i||e)}}(),e.\u0275dir=U({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,i){1&t&&T("input",function(a){return i.onChange(a.target.value)})("blur",function(){return i.onTouched()})},features:[G2([WO]),J]}),e})(),Xh=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({}),e})();const tR={provide:n4,useExisting:N2(()=>ne),multi:!0};function op(e,n){return null==e?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${e}: ${n}`.slice(0,50))}let ne=(()=>{class e extends at{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const r=op(this._getOptionId(t),t);this.setProperty("value",r)}registerOnChange(t){this.onChange=i=>{this.value=this._getOptionValue(i),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const i of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(i),t))return i;return null}_getOptionValue(t){const i=function nR(e){return e.split(":")[0]}(t);return this._optionMap.has(i)?this._optionMap.get(i):t}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=l3(e)))(i||e)}}(),e.\u0275dir=U({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,i){1&t&&T("change",function(a){return i.onChange(a.target.value)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[G2([tR]),J]}),e})(),ot=(()=>{class e{constructor(t,i,r){this._element=t,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(op(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return e.\u0275fac=function(t){return new(t||e)(V(I2),V(y3),V(ne,9))},e.\u0275dir=U({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})();const iR={provide:n4,useExisting:N2(()=>p7),multi:!0};function sp(e,n){return null==e?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${e}: ${n}`.slice(0,50))}let p7=(()=>{class e extends at{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let i;if(this.value=t,Array.isArray(t)){const r=t.map(a=>this._getOptionId(a));i=(a,o)=>{a._setSelected(r.indexOf(o.toString())>-1)}}else i=(r,a)=>{r._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(t){this.onChange=i=>{const r=[],a=i.selectedOptions;if(void 0!==a){const o=a;for(let s=0;s<o.length;s++){const l=this._getOptionValue(o[s].value);r.push(l)}}else{const o=i.options;for(let s=0;s<o.length;s++){const c=o[s];if(c.selected){const l=this._getOptionValue(c.value);r.push(l)}}}this.value=r,t(r)}}_registerOption(t){const i=(this._idCounter++).toString();return this._optionMap.set(i,t),i}_getOptionId(t){for(const i of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(i)._value,t))return i;return null}_getOptionValue(t){const i=function rR(e){return e.split(":")[0]}(t);return this._optionMap.has(i)?this._optionMap.get(i)._value:t}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=l3(e)))(i||e)}}(),e.\u0275dir=U({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(t,i){1&t&&T("change",function(a){return i.onChange(a.target)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[G2([iR]),J]}),e})(),st=(()=>{class e{constructor(t,i,r){this._element=t,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(sp(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(sp(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return e.\u0275fac=function(t){return new(t||e)(V(I2),V(y3),V(p7,9))},e.\u0275dir=U({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})(),ct=(()=>{class e{constructor(){this._validator=a0}ngOnChanges(t){if(this.inputName in t){const i=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):a0,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return null!=t}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=U({type:e,features:[N1]}),e})();const uR={provide:d3,useExisting:N2(()=>m7),multi:!0};let m7=(()=>{class e extends ct{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=t=>""===t||!0===t||"true"===t,this.createValidator=t=>Mh}enabled(t){return t}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=l3(e)))(i||e)}}(),e.\u0275dir=U({type:e,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[G2([uR]),J]}),e})(),hR=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({imports:[[Xh]]}),e})(),gp=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({imports:[hR]}),e})();function a2(...e){return G1(e,Y6(e))}const pR=["addListener","removeListener"],gR=["addEventListener","removeEventListener"],mR=["on","off"];function h3(e,n,t,i){if(Y(t)&&(i=t,t=void 0),i)return h3(e,n,t).pipe(Ko(i));const[r,a]=function MR(e){return Y(e.addEventListener)&&Y(e.removeEventListener)}(e)?gR.map(o=>s=>e[o](n,s,t)):function vR(e){return Y(e.addListener)&&Y(e.removeListener)}(e)?pR.map(mp(e,n)):function _R(e){return Y(e.on)&&Y(e.off)}(e)?mR.map(mp(e,n)):[];if(!r&&Fi(e))return b1(o=>h3(o,n,t))(o3(e));if(!r)throw new TypeError("Invalid event target");return new A2(o=>{const s=(...c)=>o.next(1<c.length?c:c[0]);return r(s),()=>a(s)})}function mp(e,n){return t=>i=>e[t](n,i)}class yR extends H2{constructor(n,t){super()}schedule(n,t=0){return this}}const h0={setInterval(e,n,...t){const{delegate:i}=h0;return(null==i?void 0:i.setInterval)?i.setInterval(e,n,...t):setInterval(e,n,...t)},clearInterval(e){const{delegate:n}=h0;return((null==n?void 0:n.clearInterval)||clearInterval)(e)},delegate:void 0},vp={now:()=>(vp.delegate||Date).now(),delegate:void 0};class Q5{constructor(n,t=Q5.now){this.schedulerActionCtor=n,this.now=t}schedule(n,t=0,i){return new this.schedulerActionCtor(this,n).schedule(i,t)}}Q5.now=vp.now;const _p=new class LR extends Q5{constructor(n,t=Q5.now){super(n,t),this.actions=[],this._active=!1,this._scheduled=void 0}flush(n){const{actions:t}=this;if(this._active)return void t.push(n);let i;this._active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=t.shift());if(this._active=!1,i){for(;n=t.shift();)n.unsubscribe();throw i}}}(class bR extends yR{constructor(n,t){super(n,t),this.scheduler=n,this.work=t,this.pending=!1}schedule(n,t=0){if(this.closed)return this;this.state=n;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}requestAsyncId(n,t,i=0){return h0.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,t,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return t;h0.clearInterval(t)}execute(n,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,t);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,t){let r,i=!1;try{this.work(n)}catch(a){i=!0,r=a||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:n,scheduler:t}=this,{actions:i}=t;this.work=this.state=this.scheduler=null,this.pending=!1,W2(i,this),null!=n&&(this.id=this.recycleAsyncId(t,n,null)),this.delay=null,super.unsubscribe()}}}),VR=_p;function v7(e=0,n,t=VR){let i=-1;return null!=n&&(Q9(n)?t=n:i=n),new A2(r=>{let a=function HR(e){return e instanceof Date&&!isNaN(e)}(e)?+e-t.now():e;a<0&&(a=0);let o=0;return t.schedule(function(){r.closed||(r.next(o++),0<=i?this.schedule(void 0,i):r.complete())},a)})}const{isArray:wR}=Array;function Mp(e){return 1===e.length&&wR(e[0])?e[0]:e}function yp(...e){return 1===(e=Mp(e)).length?o3(e[0]):new A2(function DR(e){return n=>{let t=[];for(let i=0;t&&!n.closed&&i<e.length;i++)t.push(o3(e[i]).subscribe(O2(n,r=>{if(t){for(let a=0;a<t.length;a++)a!==i&&t[a].unsubscribe();t=null}n.next(r)})))}}(e))}class W1 extends C2{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const t=super._subscribe(n);return!t.closed&&n.next(this._value),t}getValue(){const{hasError:n,thrownError:t,_value:i}=this;if(n)throw t;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}function bp(e,n,t){e?$4(t,e,n):n()}function p0(...e){const n=Bn(e),t=Mp(e);return t.length?new A2(i=>{let r=t.map(()=>[]),a=t.map(()=>!1);i.add(()=>{r=a=null});for(let o=0;!i.closed&&o<t.length;o++)o3(t[o]).subscribe(O2(i,s=>{if(r[o].push(s),r.every(c=>c.length)){const c=r.map(l=>l.shift());i.next(n?n(...c):c),r.some((l,u)=>!l.length&&a[u])&&i.complete()}},()=>{a[o]=!0,!r[o].length&&i.complete()}));return()=>{r=a=null}}):c4}function Z5(...e){return function zR(){return q6(1)}()(G1(e,Y6(e)))}function U1(e){return a1((n,t)=>{o3(e).subscribe(O2(t,()=>t.complete(),k1)),!t.closed&&n.subscribe(t)})}function Z1(e,n){return a1((t,i)=>{let r=0;t.subscribe(O2(i,a=>e.call(n,a,r++)&&i.next(a)))})}function ie(e,n){return a1((t,i)=>{let r=null,a=0,o=!1;const s=()=>o&&!r&&i.complete();t.subscribe(O2(i,c=>{null==r||r.unsubscribe();let l=0;const u=a++;o3(e(c,u)).subscribe(r=O2(i,f=>i.next(n?n(c,f,u,l++):f),()=>{r=null,s()}))},()=>{o=!0,s()}))})}function p3(e,n,t){const i=Y(e)||n||t?{next:e,error:n,complete:t}:e;return i?a1((r,a)=>{var o;null===(o=i.subscribe)||void 0===o||o.call(i);let s=!0;r.subscribe(O2(a,c=>{var l;null===(l=i.next)||void 0===l||l.call(i,c),a.next(c)},()=>{var c;s=!1,null===(c=i.complete)||void 0===c||c.call(i),a.complete()},c=>{var l;s=!1,null===(l=i.error)||void 0===l||l.call(i,c),a.error(c)},()=>{var c,l;s&&(null===(c=i.unsubscribe)||void 0===c||c.call(i)),null===(l=i.finalize)||void 0===l||l.call(i)}))}):o4}function y7(...e){const n=Bn(e);return a1((t,i)=>{const r=e.length,a=new Array(r);let o=e.map(()=>!1),s=!1;for(let c=0;c<r;c++)o3(e[c]).subscribe(O2(i,l=>{a[c]=l,!s&&!o[c]&&(o[c]=!0,(s=o.every(o4))&&(o=null))},k1));t.subscribe(O2(i,c=>{if(s){const l=[c,...a];i.next(n?n(...l):l)}}))})}function Vp(e,n){return n?t=>Z5(n.pipe(K1(1),function ER(){return a1((e,n)=>{e.subscribe(O2(n,k1))})}()),t.pipe(Vp(e))):b1((t,i)=>e(t,i).pipe(K1(1),function TR(e){return m2(()=>e)}(t)))}function Hp(e,n=_p){const t=v7(e,n);return Vp(()=>t)}new A2(k1);var kR={left:"right",right:"left",bottom:"top",top:"bottom"};function m0(e){return e.replace(/left|right|bottom|top/g,function(n){return kR[n]})}function P4(e){return e.split("-")[0]}var IR={start:"end",end:"start"};function wp(e){return e.replace(/start|end/g,function(n){return IR[n]})}var P3="top",M4="bottom",y4="right",F3="left",b7="auto",J5=[P3,M4,y4,F3],L6="start",X5="end",Dp="viewport",en="popper",Sp=J5.reduce(function(e,n){return e.concat([n+"-"+L6,n+"-"+X5])},[]),zp=[].concat(J5,[b7]).reduce(function(e,n){return e.concat([n,n+"-"+L6,n+"-"+X5])},[]),YR=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function b4(e){if(null==e)return window;if("[object Window]"!==e.toString()){var n=e.ownerDocument;return n&&n.defaultView||window}return e}function V6(e){return e instanceof b4(e).Element||e instanceof Element}function i4(e){return e instanceof b4(e).HTMLElement||e instanceof HTMLElement}function L7(e){return"undefined"!=typeof ShadowRoot&&(e instanceof b4(e).ShadowRoot||e instanceof ShadowRoot)}function Te(e){return((V6(e)?e.ownerDocument:e.document)||window.document).documentElement}var lt=Math.max,v0=Math.min,H6=Math.round;function w6(e,n){void 0===n&&(n=!1);var t=e.getBoundingClientRect(),i=1,r=1;if(i4(e)&&n){var a=e.offsetHeight,o=e.offsetWidth;o>0&&(i=H6(t.width)/o||1),a>0&&(r=H6(t.height)/a||1)}return{width:t.width/i,height:t.height/r,top:t.top/r,right:t.right/i,bottom:t.bottom/r,left:t.left/i,x:t.left/i,y:t.top/r}}function V7(e){var n=b4(e);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function H7(e){return w6(Te(e)).left+V7(e).scrollLeft}function re(e){return b4(e).getComputedStyle(e)}function F4(e){return e?(e.nodeName||"").toLowerCase():null}function _0(e){return"html"===F4(e)?e:e.assignedSlot||e.parentNode||(L7(e)?e.host:null)||Te(e)}function w7(e){var n=re(e);return/auto|scroll|overlay|hidden/.test(n.overflow+n.overflowY+n.overflowX)}function Np(e){return["html","body","#document"].indexOf(F4(e))>=0?e.ownerDocument.body:i4(e)&&w7(e)?e:Np(_0(e))}function tn(e,n){var t;void 0===n&&(n=[]);var i=Np(e),r=i===(null==(t=e.ownerDocument)?void 0:t.body),a=b4(i),o=r?[a].concat(a.visualViewport||[],w7(i)?i:[]):i,s=n.concat(o);return r?s:s.concat(tn(_0(o)))}function ZR(e){return["table","td","th"].indexOf(F4(e))>=0}function xp(e){return i4(e)&&"fixed"!==re(e).position?e.offsetParent:null}function nn(e){for(var n=b4(e),t=xp(e);t&&ZR(t)&&"static"===re(t).position;)t=xp(t);return t&&("html"===F4(t)||"body"===F4(t)&&"static"===re(t).position)?n:t||function JR(e){var n=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&i4(e)&&"fixed"===re(e).position)return null;var r=_0(e);for(L7(r)&&(r=r.host);i4(r)&&["html","body"].indexOf(F4(r))<0;){var a=re(r);if("none"!==a.transform||"none"!==a.perspective||"paint"===a.contain||-1!==["transform","perspective"].indexOf(a.willChange)||n&&"filter"===a.willChange||n&&a.filter&&"none"!==a.filter)return r;r=r.parentNode}return null}(e)||n}function Ep(e,n){var t=n.getRootNode&&n.getRootNode();if(e.contains(n))return!0;if(t&&L7(t)){var i=n;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function D7(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Tp(e,n){return n===Dp?D7(function KR(e){var n=b4(e),t=Te(e),i=n.visualViewport,r=t.clientWidth,a=t.clientHeight,o=0,s=0;return i&&(r=i.width,a=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=i.offsetLeft,s=i.offsetTop)),{width:r,height:a,x:o+H7(e),y:s}}(e)):V6(n)?function XR(e){var n=w6(e);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(n):D7(function QR(e){var n,t=Te(e),i=V7(e),r=null==(n=e.ownerDocument)?void 0:n.body,a=lt(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=lt(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-i.scrollLeft+H7(e),c=-i.scrollTop;return"rtl"===re(r||t).direction&&(s+=lt(t.clientWidth,r?r.clientWidth:0)-a),{width:a,height:o,x:s,y:c}}(Te(e)))}function D6(e){return e.split("-")[1]}function S7(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ap(e){var c,n=e.reference,t=e.element,i=e.placement,r=i?P4(i):null,a=i?D6(i):null,o=n.x+n.width/2-t.width/2,s=n.y+n.height/2-t.height/2;switch(r){case P3:c={x:o,y:n.y-t.height};break;case M4:c={x:o,y:n.y+n.height};break;case y4:c={x:n.x+n.width,y:s};break;case F3:c={x:n.x-t.width,y:s};break;default:c={x:n.x,y:n.y}}var l=r?S7(r):null;if(null!=l){var u="y"===l?"height":"width";switch(a){case L6:c[l]=c[l]-(n[u]/2-t[u]/2);break;case X5:c[l]=c[l]+(n[u]/2-t[u]/2)}}return c}function Ip(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Op(e,n){return n.reduce(function(t,i){return t[i]=e,t},{})}function z7(e,n){void 0===n&&(n={});var i=n.placement,r=void 0===i?e.placement:i,a=n.boundary,o=void 0===a?"clippingParents":a,s=n.rootBoundary,c=void 0===s?Dp:s,l=n.elementContext,u=void 0===l?en:l,f=n.altBoundary,h=void 0!==f&&f,p=n.padding,L=void 0===p?0:p,H=Ip("number"!=typeof L?L:Op(L,J5)),z=e.rects.popper,w=e.elements[h?u===en?"reference":en:u],A=function tP(e,n,t){var i="clippingParents"===n?function eP(e){var n=tn(_0(e)),i=["absolute","fixed"].indexOf(re(e).position)>=0&&i4(e)?nn(e):e;return V6(i)?n.filter(function(r){return V6(r)&&Ep(r,i)&&"body"!==F4(r)}):[]}(e):[].concat(n),r=[].concat(i,[t]),o=r.reduce(function(s,c){var l=Tp(e,c);return s.top=lt(l.top,s.top),s.right=v0(l.right,s.right),s.bottom=v0(l.bottom,s.bottom),s.left=lt(l.left,s.left),s},Tp(e,r[0]));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}(V6(w)?w:w.contextElement||Te(e.elements.popper),o,c),F=w6(e.elements.reference),B=Ap({reference:F,element:z,strategy:"absolute",placement:r}),Q=D7(Object.assign({},z,B)),f2=u===en?Q:F,g2={top:A.top-f2.top+H.top,bottom:f2.bottom-A.bottom+H.bottom,left:A.left-f2.left+H.left,right:f2.right-A.right+H.right},P2=e.modifiersData.offset;if(u===en&&P2){var D1=P2[r];Object.keys(g2).forEach(function(X2){var V3=[y4,M4].indexOf(X2)>=0?1:-1,e3=[P3,M4].indexOf(X2)>=0?"y":"x";g2[X2]+=D1[e3]*V3})}return g2}const aP={name:"flip",enabled:!0,phase:"main",fn:function rP(e){var n=e.state,t=e.options,i=e.name;if(!n.modifiersData[i]._skip){for(var r=t.mainAxis,a=void 0===r||r,o=t.altAxis,s=void 0===o||o,c=t.fallbackPlacements,l=t.padding,u=t.boundary,f=t.rootBoundary,h=t.altBoundary,p=t.flipVariations,L=void 0===p||p,H=t.allowedAutoPlacements,S=n.options.placement,z=P4(S),A=c||(z!==S&&L?function iP(e){if(P4(e)===b7)return[];var n=m0(e);return[wp(e),n,wp(n)]}(S):[m0(S)]),F=[S].concat(A).reduce(function(F6,Fe){return F6.concat(P4(Fe)===b7?function nP(e,n){void 0===n&&(n={});var r=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=void 0===c?zp:c,u=D6(n.placement),f=u?s?Sp:Sp.filter(function(L){return D6(L)===u}):J5,h=f.filter(function(L){return l.indexOf(L)>=0});0===h.length&&(h=f);var p=h.reduce(function(L,H){return L[H]=z7(e,{placement:H,boundary:r,rootBoundary:a,padding:o})[P4(H)],L},{});return Object.keys(p).sort(function(L,H){return p[L]-p[H]})}(n,{placement:Fe,boundary:u,rootBoundary:f,padding:l,flipVariations:L,allowedAutoPlacements:H}):Fe)},[]),B=n.rects.reference,Q=n.rects.popper,f2=new Map,g2=!0,P2=F[0],D1=0;D1<F.length;D1++){var X2=F[D1],V3=P4(X2),e3=D6(X2)===L6,he=[P3,M4].indexOf(V3)>=0,pe=he?"width":"height",t3=z7(n,{placement:X2,boundary:u,rootBoundary:f,altBoundary:h,padding:l}),H4=he?e3?y4:F3:e3?M4:P3;B[pe]>Q[pe]&&(H4=m0(H4));var Hi=m0(H4),Lt=[];if(a&&Lt.push(t3[V3]<=0),s&&Lt.push(t3[H4]<=0,t3[Hi]<=0),Lt.every(function(F6){return F6})){P2=X2,g2=!1;break}f2.set(X2,Lt)}if(g2)for(var I9=function(Fe){var kn=F.find(function(Si){var Vt=f2.get(Si);if(Vt)return Vt.slice(0,Fe).every(function(O9){return O9})});if(kn)return P2=kn,"break"},An=L?3:1;An>0&&"break"!==I9(An);An--);n.placement!==P2&&(n.modifiersData[i]._skip=!0,n.placement=P2,n.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function rn(e,n,t){return lt(e,v0(n,t))}function N7(e){var n=w6(e),t=e.offsetWidth,i=e.offsetHeight;return Math.abs(n.width-t)<=1&&(t=n.width),Math.abs(n.height-i)<=1&&(i=n.height),{x:e.offsetLeft,y:e.offsetTop,width:t,height:i}}const lP={name:"preventOverflow",enabled:!0,phase:"main",fn:function cP(e){var n=e.state,t=e.options,i=e.name,r=t.mainAxis,a=void 0===r||r,o=t.altAxis,s=void 0!==o&&o,h=t.tether,p=void 0===h||h,L=t.tetherOffset,H=void 0===L?0:L,S=z7(n,{boundary:t.boundary,rootBoundary:t.rootBoundary,padding:t.padding,altBoundary:t.altBoundary}),z=P4(n.placement),w=D6(n.placement),A=!w,F=S7(z),B=function oP(e){return"x"===e?"y":"x"}(F),Q=n.modifiersData.popperOffsets,f2=n.rects.reference,g2=n.rects.popper,P2="function"==typeof H?H(Object.assign({},n.rects,{placement:n.placement})):H,D1="number"==typeof P2?{mainAxis:P2,altAxis:P2}:Object.assign({mainAxis:0,altAxis:0},P2),X2=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,V3={x:0,y:0};if(Q){if(a){var e3,he="y"===F?P3:F3,pe="y"===F?M4:y4,t3="y"===F?"height":"width",H4=Q[F],Hi=H4+S[he],Lt=H4-S[pe],wi=p?-g2[t3]/2:0,I9=w===L6?f2[t3]:g2[t3],An=w===L6?-g2[t3]:-f2[t3],Di=n.elements.arrow,F6=p&&Di?N7(Di):{width:0,height:0},Fe=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},kn=Fe[he],Si=Fe[pe],Vt=rn(0,f2[t3],F6[t3]),O9=A?f2[t3]/2-wi-Vt-kn-D1.mainAxis:I9-Vt-kn-D1.mainAxis,zf2=A?-f2[t3]/2+wi+Vt+Si+D1.mainAxis:An+Vt+Si+D1.mainAxis,R9=n.elements.arrow&&nn(n.elements.arrow),mw=null!=(e3=null==X2?void 0:X2[F])?e3:0,Ef2=H4+zf2-mw,vw=rn(p?v0(Hi,H4+O9-mw-(R9?"y"===F?R9.clientTop||0:R9.clientLeft||0:0)):Hi,H4,p?lt(Lt,Ef2):Lt);Q[F]=vw,V3[F]=vw-H4}if(s){var _w,Ht=Q[B],zi="y"===B?"height":"width",Mw=Ht+S["x"===F?P3:F3],yw=Ht-S["x"===F?M4:y4],P9=-1!==[P3,F3].indexOf(z),bw=null!=(_w=null==X2?void 0:X2[B])?_w:0,Lw=P9?Mw:Ht-f2[zi]-g2[zi]-bw+D1.altAxis,Vw=P9?Ht+f2[zi]+g2[zi]-bw-D1.altAxis:yw,Hw=p&&P9?function sP(e,n,t){var i=rn(e,n,t);return i>t?t:i}(Lw,Ht,Vw):rn(p?Lw:Mw,Ht,p?Vw:yw);Q[B]=Hw,V3[B]=Hw-Ht}n.modifiersData[i]=V3}},requiresIfExists:["offset"]},dP={name:"arrow",enabled:!0,phase:"main",fn:function fP(e){var n,t=e.state,i=e.name,r=e.options,a=t.elements.arrow,o=t.modifiersData.popperOffsets,s=P4(t.placement),c=S7(s),u=[F3,y4].indexOf(s)>=0?"height":"width";if(a&&o){var f=function(n,t){return Ip("number"!=typeof(n="function"==typeof n?n(Object.assign({},t.rects,{placement:t.placement})):n)?n:Op(n,J5))}(r.padding,t),h=N7(a),p="y"===c?P3:F3,L="y"===c?M4:y4,H=t.rects.reference[u]+t.rects.reference[c]-o[c]-t.rects.popper[u],S=o[c]-t.rects.reference[c],z=nn(a),w=z?"y"===c?z.clientHeight||0:z.clientWidth||0:0,Q=w/2-h[u]/2+(H/2-S/2),f2=rn(f[p],Q,w-h[u]-f[L]);t.modifiersData[i]=((n={})[c]=f2,n.centerOffset=f2-Q,n)}},effect:function CP(e){var n=e.state,i=e.options.element,r=void 0===i?"[data-popper-arrow]":i;null!=r&&("string"==typeof r&&!(r=n.elements.popper.querySelector(r))||!Ep(n.elements.popper,r)||(n.elements.arrow=r))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function mP(e,n,t){void 0===t&&(t=!1);var i=i4(n),r=i4(n)&&function gP(e){var n=e.getBoundingClientRect(),t=H6(n.width)/e.offsetWidth||1,i=H6(n.height)/e.offsetHeight||1;return 1!==t||1!==i}(n),a=Te(n),o=w6(e,r),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!t)&&(("body"!==F4(n)||w7(a))&&(s=function pP(e){return e!==b4(e)&&i4(e)?function hP(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(e):V7(e)}(n)),i4(n)?((c=w6(n,!0)).x+=n.clientLeft,c.y+=n.clientTop):a&&(c.x=H7(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function vP(e){var n=new Map,t=new Set,i=[];function r(a){t.add(a.name),[].concat(a.requires||[],a.requiresIfExists||[]).forEach(function(s){if(!t.has(s)){var c=n.get(s);c&&r(c)}}),i.push(a)}return e.forEach(function(a){n.set(a.name,a)}),e.forEach(function(a){t.has(a.name)||r(a)}),i}function MP(e){var n;return function(){return n||(n=new Promise(function(t){Promise.resolve().then(function(){n=void 0,t(e())})})),n}}var Rp={placement:"bottom",modifiers:[],strategy:"absolute"};function Pp(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return!n.some(function(i){return!(i&&"function"==typeof i.getBoundingClientRect)})}function bP(e){void 0===e&&(e={});var t=e.defaultModifiers,i=void 0===t?[]:t,r=e.defaultOptions,a=void 0===r?Rp:r;return function(s,c,l){void 0===l&&(l=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Rp,a),modifiersData:{},elements:{reference:s,popper:c},attributes:{},styles:{}},f=[],h=!1,p={state:u,setOptions:function(z){var w="function"==typeof z?z(u.options):z;H(),u.options=Object.assign({},a,u.options,w),u.scrollParents={reference:V6(s)?tn(s):s.contextElement?tn(s.contextElement):[],popper:tn(c)};var A=function _P(e){var n=vP(e);return YR.reduce(function(t,i){return t.concat(n.filter(function(r){return r.phase===i}))},[])}(function yP(e){var n=e.reduce(function(t,i){var r=t[i.name];return t[i.name]=r?Object.assign({},r,i,{options:Object.assign({},r.options,i.options),data:Object.assign({},r.data,i.data)}):i,t},{});return Object.keys(n).map(function(t){return n[t]})}([].concat(i,u.options.modifiers)));return u.orderedModifiers=A.filter(function(X2){return X2.enabled}),function L(){u.orderedModifiers.forEach(function(S){var w=S.options,F=S.effect;if("function"==typeof F){var B=F({state:u,name:S.name,instance:p,options:void 0===w?{}:w});f.push(B||function(){})}})}(),p.update()},forceUpdate:function(){if(!h){var z=u.elements,w=z.reference,A=z.popper;if(Pp(w,A)){u.rects={reference:mP(w,nn(A),"fixed"===u.options.strategy),popper:N7(A)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(X2){return u.modifiersData[X2.name]=Object.assign({},X2.data)});for(var B=0;B<u.orderedModifiers.length;B++)if(!0!==u.reset){var Q=u.orderedModifiers[B],f2=Q.fn,g2=Q.options;"function"==typeof f2&&(u=f2({state:u,options:void 0===g2?{}:g2,name:Q.name,instance:p})||u)}else u.reset=!1,B=-1}}},update:MP(function(){return new Promise(function(S){p.forceUpdate(),S(u)})}),destroy:function(){H(),h=!0}};if(!Pp(s,c))return p;function H(){f.forEach(function(S){return S()}),f=[]}return p.setOptions(l).then(function(S){!h&&l.onFirstUpdate&&l.onFirstUpdate(S)}),p}}var M0={passive:!0},DP={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Fp(e){var n,t=e.popper,i=e.popperRect,r=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,f=e.isFixed,h=o.x,p=void 0===h?0:h,L=o.y,H=void 0===L?0:L,S="function"==typeof u?u({x:p,y:H}):{x:p,y:H};p=S.x,H=S.y;var z=o.hasOwnProperty("x"),w=o.hasOwnProperty("y"),A=F3,F=P3,B=window;if(l){var Q=nn(t),f2="clientHeight",g2="clientWidth";Q===b4(t)&&"static"!==re(Q=Te(t)).position&&"absolute"===s&&(f2="scrollHeight",g2="scrollWidth"),Q=Q,(r===P3||(r===F3||r===y4)&&a===X5)&&(F=M4,H-=(f&&Q===B&&B.visualViewport?B.visualViewport.height:Q[f2])-i.height,H*=c?1:-1),r!==F3&&(r!==P3&&r!==M4||a!==X5)||(A=y4,p-=(f&&Q===B&&B.visualViewport?B.visualViewport.width:Q[g2])-i.width,p*=c?1:-1)}var e3,X2=Object.assign({position:s},l&&DP),V3=!0===u?function SP(e){var t=e.y,r=window.devicePixelRatio||1;return{x:H6(e.x*r)/r||0,y:H6(t*r)/r||0}}({x:p,y:H}):{x:p,y:H};return p=V3.x,H=V3.y,Object.assign({},X2,c?((e3={})[F]=w?"0":"",e3[A]=z?"0":"",e3.transform=(B.devicePixelRatio||1)<=1?"translate("+p+"px, "+H+"px)":"translate3d("+p+"px, "+H+"px, 0)",e3):((n={})[F]=w?H+"px":"",n[A]=z?p+"px":"",n.transform="",n))}var AP=bP({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function LP(e){var n=e.state,t=e.instance,i=e.options,r=i.scroll,a=void 0===r||r,o=i.resize,s=void 0===o||o,c=b4(n.elements.popper),l=[].concat(n.scrollParents.reference,n.scrollParents.popper);return a&&l.forEach(function(u){u.addEventListener("scroll",t.update,M0)}),s&&c.addEventListener("resize",t.update,M0),function(){a&&l.forEach(function(u){u.removeEventListener("scroll",t.update,M0)}),s&&c.removeEventListener("resize",t.update,M0)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function HP(e){var n=e.state;n.modifiersData[e.name]=Ap({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function zP(e){var n=e.state,t=e.options,i=t.gpuAcceleration,r=void 0===i||i,a=t.adaptive,o=void 0===a||a,s=t.roundOffsets,c=void 0===s||s,u={placement:P4(n.placement),variation:D6(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:r,isFixed:"fixed"===n.options.strategy};null!=n.modifiersData.popperOffsets&&(n.styles.popper=Object.assign({},n.styles.popper,Fp(Object.assign({},u,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:o,roundOffsets:c})))),null!=n.modifiersData.arrow&&(n.styles.arrow=Object.assign({},n.styles.arrow,Fp(Object.assign({},u,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function xP(e){var n=e.state;Object.keys(n.elements).forEach(function(t){var i=n.styles[t]||{},r=n.attributes[t]||{},a=n.elements[t];!i4(a)||!F4(a)||(Object.assign(a.style,i),Object.keys(r).forEach(function(o){var s=r[o];!1===s?a.removeAttribute(o):a.setAttribute(o,!0===s?"":s)}))})},effect:function EP(e){var n=e.state,t={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,t.popper),n.styles=t,n.elements.arrow&&Object.assign(n.elements.arrow.style,t.arrow),function(){Object.keys(n.elements).forEach(function(i){var r=n.elements[i],a=n.attributes[i]||{},s=Object.keys(n.styles.hasOwnProperty(i)?n.styles[i]:t[i]).reduce(function(c,l){return c[l]="",c},{});!i4(r)||!F4(r)||(Object.assign(r.style,s),Object.keys(a).forEach(function(c){r.removeAttribute(c)}))})}},requires:["computeStyles"]}]});const OP={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function IP(e){var n=e.state,i=e.name,r=e.options.offset,a=void 0===r?[0,0]:r,o=zp.reduce(function(u,f){return u[f]=function kP(e,n,t){var i=P4(e),r=[F3,P3].indexOf(i)>=0?-1:1,a="function"==typeof t?t(Object.assign({},n,{placement:e})):t,o=a[0],s=a[1];return o=o||0,s=(s||0)*r,[F3,y4].indexOf(i)>=0?{x:s,y:o}:{x:o,y:s}}(f,n.rects,a),u},{}),s=o[n.placement],l=s.y;null!=n.modifiersData.popperOffsets&&(n.modifiersData.popperOffsets.x+=s.x,n.modifiersData.popperOffsets.y+=l),n.modifiersData[i]=o}};function RP(e,n){}function PP(e,n){if(1&e&&(g(0,"button",3),y(1),O(2,RP,0,0,"ng-template",4),m()),2&e){const t=n.$implicit;b("ngbPanelToggle",t),_(1),Q3(" ",t.title,""),_(1),b("ngTemplateOutlet",null==t.titleTpl?null:t.titleTpl.templateRef)}}function FP(e,n){}function BP(e,n){}function UP(e,n){if(1&e){const t=V1();g(0,"div",8),T("ngbRef",function(r){return W(t),E().$implicit.panelDiv=r}),g(1,"div",9),O(2,BP,0,0,"ng-template",4),m()()}if(2&e){const t=E().$implicit;ka("id",t.id),j("aria-labelledby",t.id+"-header"),_(2),b("ngTemplateOutlet",(null==t.contentTpl?null:t.contentTpl.templateRef)||null)}}const jP=function(e,n){return{$implicit:e,opened:n}};function GP(e,n){if(1&e&&(g(0,"div")(1,"div",5),O(2,FP,0,0,"ng-template",6),m(),O(3,UP,3,3,"div",7),m()),2&e){const t=n.$implicit,i=E(),r=K3(1);He("accordion-item "+(t.cardClass||"")),_(1),He("accordion-header "+(t.type?"bg-"+t.type:i.type?"bg-"+i.type:"")),f6("id","",t.id,"-header"),_(1),b("ngTemplateOutlet",(null==t.headerTpl?null:t.headerTpl.templateRef)||r)("ngTemplateOutletContext",k5(8,jP,t,t.isOpen)),_(1),b("ngIf",!i.destroyOnHide||t.isOpen||t.transitionRunning)}}function $P(e,n){if(1&e){const t=V1();g(0,"button",1),T("click",function(){return W(t),E().close()}),m()}}const x7=["*"],lF=["dialog"];function BF(e,n){1&e&&y(0),2&e&&S5(E(2).title)}function UF(e,n){}function jF(e,n){if(1&e&&(g(0,"h3",3),O(1,BF,1,1,"ng-template",null,4,J3),O(3,UF,0,0,"ng-template",5),m()),2&e){const t=K3(2),i=E();_(3),b("ngTemplateOutlet",i.isTitleTemplate()?i.title:t)("ngTemplateOutletContext",i.context)}}function T7(e){return"string"==typeof e}function ut(e){return null!=e}function S6(e){return(e||document.body).getBoundingClientRect()}const Up={animation:!0,transitionTimerDelayMs:5},rB=()=>{},{transitionTimerDelayMs:aB}=Up,an=new Map,g3=(e,n,t,i)=>{let r=i.context||{};const a=an.get(n);if(a)switch(i.runningTransition){case"continue":return c4;case"stop":e.run(()=>a.transition$.complete()),r=Object.assign(a.context,r),an.delete(n)}const o=t(n,i.animation,r)||rB;if(!i.animation||"none"===window.getComputedStyle(n).transitionProperty)return e.run(()=>o()),a2(void 0).pipe(function nB(e){return n=>new A2(t=>n.subscribe({next:o=>e.run(()=>t.next(o)),error:o=>e.run(()=>t.error(o)),complete:()=>e.run(()=>t.complete())}))}(e));const s=new C2,c=new C2,l=s.pipe(function NR(...e){return n=>Z5(n,a2(...e))}(!0));an.set(n,{transition$:s,complete:()=>{c.next(),c.complete()},context:r});const u=function iB(e){const{transitionDelay:n,transitionDuration:t}=window.getComputedStyle(e);return 1e3*(parseFloat(n)+parseFloat(t))}(n);return e.runOutsideAngular(()=>{const f=h3(n,"transitionend").pipe(U1(l),Z1(({target:p})=>p===n));yp(v7(u+aB).pipe(U1(l)),f,c).pipe(U1(l)).subscribe(()=>{an.delete(n),e.run(()=>{o(),s.next(),s.complete()})})}),s.asObservable()},jp=(e,n,t)=>{let{direction:i,maxHeight:r}=t;const{classList:a}=e;function o(){a.add("collapse"),"show"===i?a.add("show"):a.remove("show")}if(n)return r||(r=function sB(e){if("undefined"==typeof navigator)return"0px";const{classList:n}=e,t=n.contains("show");t||n.add("show"),e.style.height="";const i=e.getBoundingClientRect().height+"px";return t||n.remove("show"),i}(e),t.maxHeight=r,e.style.height="show"!==i?r:"0px",a.remove("collapse"),a.remove("collapsing"),a.remove("show"),S6(e),a.add("collapsing")),e.style.height="show"===i?r:"0px",()=>{o(),a.remove("collapsing"),e.style.height=""};o()};let z6=(()=>{class e{constructor(){this.animation=Up.animation}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),cB=(()=>{class e{constructor(t){this._ngbConfig=t,this.closeOthers=!1}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(t){this._animation=t}}return e.\u0275fac=function(t){return new(t||e)(q(z6))},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),lB=0,b0=(()=>{class e{constructor(t){this.templateRef=t}}return e.\u0275fac=function(t){return new(t||e)(V(c1))},e.\u0275dir=U({type:e,selectors:[["ng-template","ngbPanelHeader",""]]}),e})(),k7=(()=>{class e{constructor(t){this.templateRef=t}}return e.\u0275fac=function(t){return new(t||e)(V(c1))},e.\u0275dir=U({type:e,selectors:[["ng-template","ngbPanelTitle",""]]}),e})(),I7=(()=>{class e{constructor(t){this.templateRef=t}}return e.\u0275fac=function(t){return new(t||e)(V(c1))},e.\u0275dir=U({type:e,selectors:[["ng-template","ngbPanelContent",""]]}),e})(),L0=(()=>{class e{constructor(){this.disabled=!1,this.id="ngb-panel-"+lB++,this.isOpen=!1,this.initClassDone=!1,this.transitionRunning=!1,this.shown=new u2,this.hidden=new u2}ngAfterContentChecked(){this.titleTpl=this.titleTpls.first,this.headerTpl=this.headerTpls.first,this.contentTpl=this.contentTpls.first}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=U({type:e,selectors:[["ngb-panel"]],contentQueries:function(t,i,r){if(1&t&&(H1(r,k7,4),H1(r,b0,4),H1(r,I7,4)),2&t){let a;f1(a=C1())&&(i.titleTpls=a),f1(a=C1())&&(i.headerTpls=a),f1(a=C1())&&(i.contentTpls=a)}},inputs:{disabled:"disabled",id:"id",title:"title",type:"type",cardClass:"cardClass"},outputs:{shown:"shown",hidden:"hidden"}}),e})(),uB=(()=>{class e{constructor(t){this._El=t,this.ngbRef=new u2}ngOnInit(){this.ngbRef.emit(this._El.nativeElement)}ngOnDestroy(){this.ngbRef.emit(null)}}return e.\u0275fac=function(t){return new(t||e)(V(I2))},e.\u0275dir=U({type:e,selectors:[["","ngbRef",""]],outputs:{ngbRef:"ngbRef"}}),e})(),O7=(()=>{class e{constructor(t,i,r){this._ngZone=i,this._changeDetector=r,this.activeIds=[],this.destroyOnHide=!0,this.panelChange=new u2,this.shown=new u2,this.hidden=new u2,this.animation=t.animation,this.type=t.type,this.closeOtherPanels=t.closeOthers}isExpanded(t){return this.activeIds.indexOf(t)>-1}expand(t){this._changeOpenState(this._findPanelById(t),!0)}expandAll(){this.closeOtherPanels?0===this.activeIds.length&&this.panels.length&&this._changeOpenState(this.panels.first,!0):this.panels.forEach(t=>this._changeOpenState(t,!0))}collapse(t){this._changeOpenState(this._findPanelById(t),!1)}collapseAll(){this.panels.forEach(t=>{this._changeOpenState(t,!1)})}toggle(t){const i=this._findPanelById(t);i&&this._changeOpenState(i,!i.isOpen)}ngAfterContentChecked(){T7(this.activeIds)&&(this.activeIds=this.activeIds.split(/\s*,\s*/)),this.panels.forEach(t=>{t.isOpen=!t.disabled&&this.activeIds.indexOf(t.id)>-1}),this.activeIds.length>1&&this.closeOtherPanels&&(this._closeOthers(this.activeIds[0],!1),this._updateActiveIds()),this._ngZone.onStable.pipe(K1(1)).subscribe(()=>{this.panels.forEach(t=>{const i=t.panelDiv;i?t.initClassDone||(t.initClassDone=!0,g3(this._ngZone,i,jp,{animation:!1,runningTransition:"continue",context:{direction:t.isOpen?"show":"hide"}})):t.initClassDone=!1})})}_changeOpenState(t,i){if(null!=t&&!t.disabled&&t.isOpen!==i){let r=!1;this.panelChange.emit({panelId:t.id,nextState:i,preventDefault:()=>{r=!0}}),r||(t.isOpen=i,t.transitionRunning=!0,i&&this.closeOtherPanels&&this._closeOthers(t.id),this._updateActiveIds(),this._runTransitions(this.animation))}}_closeOthers(t,i=!0){this.panels.forEach(r=>{r.id!==t&&r.isOpen&&(r.isOpen=!1,r.transitionRunning=i)})}_findPanelById(t){return this.panels.find(i=>i.id===t)||null}_updateActiveIds(){this.activeIds=this.panels.filter(t=>t.isOpen&&!t.disabled).map(t=>t.id)}_runTransitions(t){this._changeDetector.detectChanges(),this.panels.forEach(i=>{i.transitionRunning&&g3(this._ngZone,i.panelDiv,jp,{animation:t,runningTransition:"stop",context:{direction:i.isOpen?"show":"hide"}}).subscribe(()=>{i.transitionRunning=!1;const{id:a}=i;i.isOpen?(i.shown.emit(),this.shown.emit(a)):(i.hidden.emit(),this.hidden.emit(a))})})}}return e.\u0275fac=function(t){return new(t||e)(V(cB),V($2),V(X3))},e.\u0275cmp=s2({type:e,selectors:[["ngb-accordion"]],contentQueries:function(t,i,r){if(1&t&&H1(r,L0,4),2&t){let a;f1(a=C1())&&(i.panels=a)}},hostAttrs:["role","tablist",1,"accordion"],hostVars:1,hostBindings:function(t,i){2&t&&j("aria-multiselectable",!i.closeOtherPanels)},inputs:{animation:"animation",activeIds:"activeIds",closeOtherPanels:["closeOthers","closeOtherPanels"],destroyOnHide:"destroyOnHide",type:"type"},outputs:{panelChange:"panelChange",shown:"shown",hidden:"hidden"},exportAs:["ngbAccordion"],decls:3,vars:1,consts:[["ngbPanelHeader",""],["t",""],["ngFor","",3,"ngForOf"],[1,"accordion-button",3,"ngbPanelToggle"],[3,"ngTemplateOutlet"],["role","tab",3,"id"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["role","tabpanel",3,"id","ngbRef",4,"ngIf"],["role","tabpanel",3,"id","ngbRef"],[1,"accordion-body"]],template:function(t,i){1&t&&(O(0,PP,3,3,"ng-template",0,1,J3),O(2,GP,4,11,"ng-template",2)),2&t&&(_(2),b("ngForOf",i.panels))},directives:function(){return[b0,R7,M6,rt,B1,uB]},encapsulation:2}),e})(),R7=(()=>{class e{constructor(t,i){this.accordion=t,this.panel=i}set ngbPanelToggle(t){t&&(this.panel=t)}}return e.\u0275fac=function(t){return new(t||e)(V(O7),V(L0,9))},e.\u0275dir=U({type:e,selectors:[["button","ngbPanelToggle",""]],hostAttrs:["type","button"],hostVars:5,hostBindings:function(t,i){1&t&&T("click",function(){return i.accordion.toggle(i.panel.id)}),2&t&&(O4("disabled",i.panel.disabled),j("aria-expanded",i.panel.isOpen)("aria-controls",i.panel.id),n1("collapsed",!i.panel.isOpen))},inputs:{ngbPanelToggle:"ngbPanelToggle"}}),e})(),Gp=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({imports:[[R3]]}),e})();const fB=({classList:e})=>{e.remove("show")};let CB=(()=>{class e{constructor(t){this._ngbConfig=t,this.dismissible=!0,this.type="warning"}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(t){this._animation=t}}return e.\u0275fac=function(t){return new(t||e)(q(z6))},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),$p=(()=>{class e{constructor(t,i,r,a){this._renderer=i,this._element=r,this._zone=a,this.closed=new u2,this.dismissible=t.dismissible,this.type=t.type,this.animation=t.animation}close(){const t=g3(this._zone,this._element.nativeElement,fB,{animation:this.animation,runningTransition:"continue"});return t.subscribe(()=>this.closed.emit()),t}ngOnChanges(t){const i=t.type;i&&!i.firstChange&&(this._renderer.removeClass(this._element.nativeElement,`alert-${i.previousValue}`),this._renderer.addClass(this._element.nativeElement,`alert-${i.currentValue}`))}ngOnInit(){this._renderer.addClass(this._element.nativeElement,`alert-${this.type}`)}}return e.\u0275fac=function(t){return new(t||e)(V(CB),V(y3),V(I2),V($2))},e.\u0275cmp=s2({type:e,selectors:[["ngb-alert"]],hostAttrs:["role","alert",1,"alert","show"],hostVars:4,hostBindings:function(t,i){2&t&&n1("fade",i.animation)("alert-dismissible",i.dismissible)},inputs:{animation:"animation",dismissible:"dismissible",type:"type"},outputs:{closed:"closed"},exportAs:["ngbAlert"],features:[N1],ngContentSelectors:x7,decls:2,vars:1,consts:function(){let n;return n=$localize`:@@ngb.alert.close:Close`,[["type","button","class","btn-close","aria-label",n,3,"click",4,"ngIf"],["type","button","aria-label",n,1,"btn-close",3,"click"]]},template:function(t,i){1&t&&(H5(),w5(0),O(1,$P,1,0,"button",0)),2&t&&(_(1),b("ngIf",i.dismissible))},directives:[B1],styles:["ngb-alert{display:block}\n"],encapsulation:2,changeDetection:0}),e})(),Wp=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({imports:[[R3]]}),e})(),Yp=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({}),e})(),Zp=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({imports:[[R3]]}),e})(),Jp=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({}),e})();var j1=(()=>{return(e=j1||(j1={}))[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",j1;var e})();const H0=(e,n)=>!!n&&n.some(t=>t.contains(e)),Xp=(e,n)=>!n||null!=function tB(e,n){return n&&void 0!==e.closest?e.closest(n):null}(e,n),wB="undefined"!=typeof navigator&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));const tg=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function ng(e){const n=Array.from(e.querySelectorAll(tg)).filter(t=>-1!==t.tabIndex);return[n[0],n[n.length-1]]}const zB=/\s+/,NB=/ +/gi,xB=/^start/,EB=/^end/,TB=/-(top|left)$/,AB=/-(bottom|right)$/,IB=/^left/,OB=/^right/,RB=/^start/,PB=/^end/;function ig({placement:e,baseClass:n}){let t=Array.isArray(e)?e:e.split(zB),r=t.findIndex(c=>"auto"===c);r>=0&&["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end","start-top","start-bottom","end-top","end-bottom"].forEach(function(c){null==t.find(l=>-1!==l.search("^"+c))&&t.splice(r++,1,c)});const a=t.map(c=>function kB(e){return e.replace(xB,"left").replace(EB,"right").replace(TB,"-start").replace(AB,"-end")}(c));return{placement:a.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!n,phase:"write",fn({state:c}){const l=new RegExp(n+"(-[a-z]+)*","gi"),u=c.elements.popper,f=c.placement;let h=u.className;h=h.replace(l,""),h+=` ${function FB(e,n){let[t,i]=n.split("-");const r=t.replace(IB,"start").replace(OB,"end");let a=[r];if(i){let o=i;("left"===t||"right"===t)&&(o=o.replace(RB,"top").replace(PB,"bottom")),a.push(`${r}-${o}`)}return e&&(a=a.map(o=>`${e}-${o}`)),a.join(" ")}(n,f)}`,h=h.trim().replace(NB," "),u.className=h}},aP,lP,dP,{enabled:!0,name:"flip",options:{fallbackPlacements:a}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function rg(e){return e}function og(e){return n=>(n.modifiers.push(OP,{name:"offset",options:{offset:()=>e}}),n)}new Date(1882,10,12),new Date(2174,10,25);let Cg=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({imports:[[R3,gp]]}),e})(),gg=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({}),e})();class ht{constructor(n,t,i){this.nodes=n,this.viewRef=t,this.componentRef=i}}class ZB{constructor(n,t,i,r,a,o){this._type=n,this._injector=t,this._viewContainerRef=i,this._renderer=r,this._ngZone=a,this._applicationRef=o,this._windowRef=null,this._contentRef=null}open(n,t,i=!1){this._windowRef||(this._contentRef=this._getContentRef(n,t),this._windowRef=this._viewContainerRef.createComponent(this._type,{index:this._viewContainerRef.length,injector:this._injector,projectableNodes:this._contentRef.nodes}));const{nativeElement:r}=this._windowRef.location,a=this._ngZone.onStable.pipe(K1(1),b1(()=>g3(this._ngZone,r,({classList:o})=>o.add("show"),{animation:i,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:a}}close(n=!1){return this._windowRef?g3(this._ngZone,this._windowRef.location.nativeElement,({classList:t})=>t.remove("show"),{animation:n,runningTransition:"stop"}).pipe(p3(()=>{var t;this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),(null===(t=this._contentRef)||void 0===t?void 0:t.viewRef)&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):a2(void 0)}_getContentRef(n,t){if(n){if(n instanceof c1){const i=n.createEmbeddedView(t);return this._applicationRef.attachView(i),new ht([i.rootNodes],i)}return new ht([[this._renderer.createText(`${n}`)]])}return new ht([])}}let JB=(()=>{class e{constructor(t,i){this._el=t,this._zone=i}ngOnInit(){this._zone.onStable.asObservable().pipe(K1(1)).subscribe(()=>{g3(this._zone,this._el.nativeElement,(t,i)=>{i&&S6(t),t.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return g3(this._zone,this._el.nativeElement,({classList:t})=>t.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return e.\u0275fac=function(t){return new(t||e)(V(I2),V($2))},e.\u0275cmp=s2({type:e,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(t,i){2&t&&(He("modal-backdrop"+(i.backdropClass?" "+i.backdropClass:"")),n1("show",!i.animation)("fade",i.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(t,i){},encapsulation:2}),e})();class mg{close(n){}dismiss(n){}}class XB{constructor(n,t,i,r){this._windowCmptRef=n,this._contentRef=t,this._backdropCmptRef=i,this._beforeDismiss=r,this._closed=new C2,this._dismissed=new C2,this._hidden=new C2,n.instance.dismissEvent.subscribe(a=>{this.dismiss(a)}),this.result=new Promise((a,o)=>{this._resolve=a,this._reject=o}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(U1(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(U1(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}close(n){this._windowCmptRef&&(this._closed.next(n),this._resolve(n),this._removeModalElements())}_dismiss(n){this._dismissed.next(n),this._reject(n),this._removeModalElements()}dismiss(n){if(this._windowCmptRef)if(this._beforeDismiss){const t=this._beforeDismiss();!function Bp(e){return e&&e.then}(t)?!1!==t&&this._dismiss(n):t.then(i=>{!1!==i&&this._dismiss(n)},()=>{})}else this._dismiss(n)}_removeModalElements(){const n=this._windowCmptRef.instance.hide(),t=this._backdropCmptRef?this._backdropCmptRef.instance.hide():a2(void 0);n.subscribe(()=>{const{nativeElement:i}=this._windowCmptRef.location;i.parentNode.removeChild(i),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),t.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:i}=this._backdropCmptRef.location;i.parentNode.removeChild(i),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),p0(n,t).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var pt=(()=>{return(e=pt||(pt={}))[e.BACKDROP_CLICK=0]="BACKDROP_CLICK",e[e.ESC=1]="ESC",pt;var e})();let eU=(()=>{class e{constructor(t,i,r){this._document=t,this._elRef=i,this._zone=r,this._closed$=new C2,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new u2,this.shown=new C2,this.hidden=new C2}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":T7(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(t){this.dismissEvent.emit(t)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(K1(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:t}=this._elRef,i={animation:this.animation,runningTransition:"stop"},o=p0(g3(this._zone,t,()=>t.classList.remove("show"),i),g3(this._zone,this._dialogEl.nativeElement,()=>{},i));return o.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),o}_show(){const t={animation:this.animation,runningTransition:"continue"};p0(g3(this._zone,this._elRef.nativeElement,(a,o)=>{o&&S6(a),a.classList.add("show")},t),g3(this._zone,this._dialogEl.nativeElement,()=>{},t)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:t}=this._elRef;this._zone.runOutsideAngular(()=>{h3(t,"keydown").pipe(U1(this._closed$),Z1(r=>r.which===j1.Escape)).subscribe(r=>{this.keyboard?requestAnimationFrame(()=>{r.defaultPrevented||this._zone.run(()=>this.dismiss(pt.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let i=!1;h3(this._dialogEl.nativeElement,"mousedown").pipe(U1(this._closed$),p3(()=>i=!1),ie(()=>h3(t,"mouseup").pipe(U1(this._closed$),K1(1))),Z1(({target:r})=>t===r)).subscribe(()=>{i=!0}),h3(t,"click").pipe(U1(this._closed$)).subscribe(({target:r})=>{t===r&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!i&&this._zone.run(()=>this.dismiss(pt.BACKDROP_CLICK))),i=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:t}=this._elRef;if(!t.contains(document.activeElement)){const i=t.querySelector("[ngbAutofocus]"),r=ng(t)[0];(i||r||t).focus()}}_restoreFocus(){const t=this._document.body,i=this._elWithFocus;let r;r=i&&i.focus&&t.contains(i)?i:t,this._zone.runOutsideAngular(()=>{setTimeout(()=>r.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&g3(this._zone,this._elRef.nativeElement,({classList:t})=>(t.add("modal-static"),()=>t.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return e.\u0275fac=function(t){return new(t||e)(V(E1),V(I2),V($2))},e.\u0275cmp=s2({type:e,selectors:[["ngb-modal-window"]],viewQuery:function(t,i){if(1&t&&function ro(e,n,t){const i=z2();i.firstCreatePass&&(GC(i,new BC(e,n,t),-1),2==(2&n)&&(i.staticViewQueries=!0)),jC(i,k(),n)}(lF,7),2&t){let r;f1(r=C1())&&(i._dialogEl=r.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(t,i){2&t&&(j("aria-modal",!0)("aria-labelledby",i.ariaLabelledBy)("aria-describedby",i.ariaDescribedBy),He("modal d-block"+(i.windowClass?" "+i.windowClass:"")),n1("fade",i.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:x7,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(t,i){1&t&&(H5(),g(0,"div",0,1)(2,"div",2),w5(3),m()()),2&t&&He("modal-dialog"+(i.size?" modal-"+i.size:"")+(i.centered?" modal-dialog-centered":"")+i.fullscreenClass+(i.scrollable?" modal-dialog-scrollable":"")+(i.modalDialogClass?" "+i.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}\n"],encapsulation:2}),e})(),tU=(()=>{class e{constructor(t){this._document=t}hide(){const t=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),i=this._document.body,r=i.style,{overflow:a,paddingRight:o}=r;if(t>0){const s=parseFloat(window.getComputedStyle(i).paddingRight);r.paddingRight=`${s+t}px`}return r.overflow="hidden",()=>{t>0&&(r.paddingRight=o),r.overflow=a}}}return e.\u0275fac=function(t){return new(t||e)(q(E1))},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),nU=(()=>{class e{constructor(t,i,r,a,o,s){this._applicationRef=t,this._injector=i,this._document=r,this._scrollBar=a,this._rendererFactory=o,this._ngZone=s,this._activeWindowCmptHasChanged=new C2,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._backdropAttributes=["animation","backdropClass"],this._modalRefs=[],this._windowAttributes=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],this._windowCmpts=[],this._activeInstances=new u2,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const c=this._windowCmpts[this._windowCmpts.length-1];((e,n,t,i=!1)=>{this._ngZone.runOutsideAngular(()=>{const r=h3(n,"focusin").pipe(U1(t),m2(a=>a.target));h3(n,"keydown").pipe(U1(t),Z1(a=>a.which===j1.Tab),y7(r)).subscribe(([a,o])=>{const[s,c]=ng(n);(o===s||o===n)&&a.shiftKey&&(c.focus(),a.preventDefault()),o===c&&!a.shiftKey&&(s.focus(),a.preventDefault())}),i&&h3(n,"click").pipe(U1(t),y7(r),m2(a=>a[1])).subscribe(a=>a.focus())})})(0,c.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(c.location.nativeElement)}})}_restoreScrollBar(){const t=this._scrollBarRestoreFn;t&&(this._scrollBarRestoreFn=null,t())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(t,i,r,a){const o=a.container instanceof HTMLElement?a.container:ut(a.container)?this._document.querySelector(a.container):this._document.body,s=this._rendererFactory.createRenderer(null,null);if(!o)throw new Error(`The specified modal container "${a.container||"body"}" was not found in the DOM.`);this._hideScrollBar();const c=new mg,l=this._getContentRef(t,a.injector||i,r,c,a);let u=!1!==a.backdrop?this._attachBackdrop(t,o):void 0,f=this._attachWindowComponent(t,o,l),h=new XB(f,l,u,a.beforeDismiss);return this._registerModalRef(h),this._registerWindowCmpt(f),h.hidden.pipe(K1(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(s.removeClass(this._document.body,"modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),c.close=p=>{h.close(p)},c.dismiss=p=>{h.dismiss(p)},this._applyWindowOptions(f.instance,a),1===this._modalRefs.length&&s.addClass(this._document.body,"modal-open"),u&&u.instance&&(this._applyBackdropOptions(u.instance,a),u.changeDetectorRef.detectChanges()),f.changeDetectorRef.detectChanges(),h}get activeInstances(){return this._activeInstances}dismissAll(t){this._modalRefs.forEach(i=>i.dismiss(t))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(t,i){let a=t.resolveComponentFactory(JB).create(this._injector);return this._applicationRef.attachView(a.hostView),i.appendChild(a.location.nativeElement),a}_attachWindowComponent(t,i,r){let o=t.resolveComponentFactory(eU).create(this._injector,r.nodes);return this._applicationRef.attachView(o.hostView),i.appendChild(o.location.nativeElement),o}_applyWindowOptions(t,i){this._windowAttributes.forEach(r=>{ut(i[r])&&(t[r]=i[r])})}_applyBackdropOptions(t,i){this._backdropAttributes.forEach(r=>{ut(i[r])&&(t[r]=i[r])})}_getContentRef(t,i,r,a,o){return r?r instanceof c1?this._createFromTemplateRef(r,a):T7(r)?this._createFromString(r):this._createFromComponent(t,i,r,a,o):new ht([])}_createFromTemplateRef(t,i){const a=t.createEmbeddedView({$implicit:i,close(o){i.close(o)},dismiss(o){i.dismiss(o)}});return this._applicationRef.attachView(a),new ht([a.rootNodes],a)}_createFromString(t){const i=this._document.createTextNode(`${t}`);return new ht([[i]])}_createFromComponent(t,i,r,a,o){const s=t.resolveComponentFactory(r),c=R1.create({providers:[{provide:mg,useValue:a}],parent:i}),l=s.create(c),u=l.location.nativeElement;return o.scrollable&&u.classList.add("component-host-scrollable"),this._applicationRef.attachView(l.hostView),new ht([[u]],l.hostView,l)}_setAriaHidden(t){const i=t.parentElement;i&&t!==this._document.body&&(Array.from(i.children).forEach(r=>{r!==t&&"SCRIPT"!==r.nodeName&&(this._ariaHiddenValues.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}),this._setAriaHidden(i))}_revertAriaHidden(){this._ariaHiddenValues.forEach((t,i)=>{t?i.setAttribute("aria-hidden",t):i.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(t){const i=()=>{const r=this._modalRefs.indexOf(t);r>-1&&(this._modalRefs.splice(r,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(t),this._activeInstances.emit(this._modalRefs),t.result.then(i,i)}_registerWindowCmpt(t){this._windowCmpts.push(t),this._activeWindowCmptHasChanged.next(),t.onDestroy(()=>{const i=this._windowCmpts.indexOf(t);i>-1&&(this._windowCmpts.splice(i,1),this._activeWindowCmptHasChanged.next())})}}return e.\u0275fac=function(t){return new(t||e)(q(F5),q(R1),q(E1),q(tU),q($a),q($2))},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),iU=(()=>{class e{constructor(t){this._ngbConfig=t,this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(t){this._animation=t}}return e.\u0275fac=function(t){return new(t||e)(q(z6))},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),vg=(()=>{class e{constructor(t,i,r,a){this._moduleCFR=t,this._injector=i,this._modalStack=r,this._config=a}open(t,i={}){const r=Object.assign(Object.assign(Object.assign({},this._config),{animation:this._config.animation}),i);return this._modalStack.open(this._moduleCFR,this._injector,t,r)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(t){this._modalStack.dismissAll(t)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return e.\u0275fac=function(t){return new(t||e)(q(g6),q(R1),q(nU),q(iU))},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),_g=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({providers:[vg]}),e})(),Lg=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({imports:[[R3]]}),e})(),xg=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({imports:[[R3]]}),e})();class lU{constructor(n,t){this.open=n,this.close=t,t||(this.close=n)}isManual(){return"manual"===this.open||"manual"===this.close}}const uU={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},Eg=e=>e>0?Hp(e):n=>n;let pU=(()=>{class e{constructor(t){this._ngbConfig=t,this.autoClose=!0,this.placement="auto",this.triggers="click",this.disablePopover=!1,this.openDelay=0,this.closeDelay=0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(t){this._animation=t}}return e.\u0275fac=function(t){return new(t||e)(q(z6))},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),gU=0,mU=(()=>{class e{isTitleTemplate(){return this.title instanceof c1}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=s2({type:e,selectors:[["ngb-popover-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(t,i){2&t&&(O4("id",i.id),He("popover"+(i.popoverClass?" "+i.popoverClass:"")),n1("fade",i.animation))},inputs:{animation:"animation",title:"title",id:"id",popoverClass:"popoverClass",context:"context"},ngContentSelectors:x7,decls:4,vars:1,consts:[["data-popper-arrow","",1,"popover-arrow"],["class","popover-header",4,"ngIf"],[1,"popover-body"],[1,"popover-header"],["simpleTitle",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,i){1&t&&(H5(),R(0,"div",0),O(1,jF,4,2,"h3",1),g(2,"div",2),w5(3),m()),2&t&&(_(1),b("ngIf",i.title))},directives:[B1,M6],encapsulation:2,changeDetection:0}),e})(),vU=(()=>{class e{constructor(t,i,r,a,o,s,c,l,u){this._elementRef=t,this._renderer=i,this._ngZone=s,this._document=c,this._changeDetector=l,this.shown=new u2,this.hidden=new u2,this._ngbPopoverWindowId="ngb-popover-"+gU++,this._windowRef=null,this._positioning=function ag(){let e=null;return{createPopper(n){if(!e){let i=(n.updatePopperOptions||rg)(ig(n));e=AP(n.hostElement,n.targetElement,i)}},update(){e&&e.update()},setOptions(n){if(e){let i=(n.updatePopperOptions||rg)(ig(n));e.setOptions(i)}},destroy(){e&&(e.destroy(),e=null)}}}(),this.animation=o.animation,this.autoClose=o.autoClose,this.placement=o.placement,this.triggers=o.triggers,this.container=o.container,this.disablePopover=o.disablePopover,this.popoverClass=o.popoverClass,this.openDelay=o.openDelay,this.closeDelay=o.closeDelay,this._popupService=new ZB(mU,r,a,i,this._ngZone,u)}_isDisabled(){return!(!this.disablePopover&&(this.ngbPopover||this.popoverTitle))}open(t){if(!this._windowRef&&!this._isDisabled()){const{windowRef:i,transition$:r}=this._popupService.open(this.ngbPopover,t,this.animation);this._windowRef=i,this._windowRef.instance.animation=this.animation,this._windowRef.instance.title=this.popoverTitle,this._windowRef.instance.context=t,this._windowRef.instance.popoverClass=this.popoverClass,this._windowRef.instance.id=this._ngbPopoverWindowId,this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ngbPopoverWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._elementRef.nativeElement,targetElement:this._windowRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,baseClass:"bs-popover",updatePopperOptions:og([0,8])}),Promise.resolve().then(()=>{this._positioning.update(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update())})}),function eg(e,n,t,i,r,a,o,s){t&&e.runOutsideAngular((e=>wB?()=>setTimeout(()=>e(),100):e)(()=>{const l=h3(n,"keydown").pipe(U1(r),Z1(h=>h.which===j1.Escape),p3(h=>h.preventDefault())),u=h3(n,"mousedown").pipe(m2(h=>{const p=h.target;return 2!==h.button&&!H0(p,o)&&("inside"===t?H0(p,a)&&Xp(p,s):"outside"===t?!H0(p,a):Xp(p,s)||!H0(p,a))}),U1(r)),f=h3(n,"mouseup").pipe(y7(u),Z1(([h,p])=>p),Hp(0),U1(r));yp([l.pipe(m2(h=>0)),f.pipe(m2(h=>1))]).subscribe(h=>e.run(()=>i(h)))}))}(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),r.subscribe(()=>this.shown.emit())}}close(t=this.animation){this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(t).subscribe(()=>{var i;this._windowRef=null,this._positioning.destroy(),null===(i=this._zoneSubscription)||void 0===i||i.unsubscribe(),this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=function hU(e,n,t,i,r,a,o=0,s=0){const c=function fU(e,n=uU){const t=(e||"").trim();if(0===t.length)return[];const i=t.split(/\s+/).map(a=>a.split(":")).map(a=>{let o=n[a[0]]||a;return new lU(o[0],o[1])}),r=i.filter(a=>a.isManual());if(r.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===r.length&&i.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return i}(t);if(1===c.length&&c[0].isManual())return()=>{};const l=function CU(e,n,t,i){return new A2(r=>{const a=[],o=()=>r.next(!0),s=()=>r.next(!1),c=()=>r.next(!i());return t.forEach(l=>{l.open===l.close?a.push(e.listen(n,l.open,c)):a.push(e.listen(n,l.open,o),e.listen(n,l.close,s))}),()=>{a.forEach(l=>l())}})}(e,n,c,i).pipe(function dU(e,n,t){return i=>{let r=null;const a=i.pipe(m2(c=>({open:c})),Z1(c=>{const l=t();return l===c.open||r&&r.open!==l?(r&&r.open!==c.open&&(r=null),!1):(r=c,!0)}),tc());return ec(a.pipe(Z1(c=>c.open),Eg(e)),a.pipe(Z1(c=>!c.open),Eg(n))).pipe(Z1(c=>c===r&&(r=null,c.open!==t())),m2(c=>c.open))}}(o,s,i)).subscribe(u=>u?r():a());return()=>l.unsubscribe()}(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({ngbPopover:t,popoverTitle:i,disablePopover:r,popoverClass:a}){a&&this.isOpen()&&(this._windowRef.instance.popoverClass=a.currentValue),(t||i||r)&&this._isDisabled()&&this.close()}ngOnDestroy(){var t;this.close(!1),null===(t=this._unregisterListenersFn)||void 0===t||t.call(this)}}return e.\u0275fac=function(t){return new(t||e)(V(I2),V(y3),V(R1),V(Z3),V(pU),V($2),V(E1),V(X3),V(F5))},e.\u0275dir=U({type:e,selectors:[["","ngbPopover",""]],inputs:{animation:"animation",autoClose:"autoClose",ngbPopover:"ngbPopover",popoverTitle:"popoverTitle",placement:"placement",triggers:"triggers",container:"container",disablePopover:"disablePopover",popoverClass:"popoverClass",openDelay:"openDelay",closeDelay:"closeDelay"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbPopover"],features:[N1]}),e})(),Tg=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({imports:[[R3]]}),e})(),Ag=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({imports:[[R3]]}),e})(),kg=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({imports:[[R3]]}),e})(),Ig=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({imports:[[R3]]}),e})(),Og=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({imports:[[R3]]}),e})(),Rg=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({}),e})();new v2("live announcer delay",{providedIn:"root",factory:function yU(){return 100}});let Pg=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({imports:[[R3]]}),e})(),Fg=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({}),e})();const bU=[Gp,Wp,Yp,Zp,Jp,Cg,gg,_g,Lg,Fg,xg,Tg,Ag,kg,Ig,Og,Rg,Pg];let LU=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({imports:[bU,Gp,Wp,Yp,Zp,Jp,Cg,gg,_g,Lg,Fg,xg,Tg,Ag,kg,Ig,Og,Rg,Pg]}),e})();function Bg(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,i)}return t}function K(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Bg(Object(t),!0).forEach(function(i){wU(e,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Bg(Object(t)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))})}return e}function x0(e){return(x0="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(e)}function Ug(e,n){for(var t=0;t<n.length;t++){var i=n[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function wU(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function W7(e,n){return function zU(e){if(Array.isArray(e))return e}(e)||function xU(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var o,s,i=[],r=!0,a=!1;try{for(t=t.call(e);!(r=(o=t.next()).done)&&(i.push(o.value),!n||i.length!==n);r=!0);}catch(c){a=!0,s=c}finally{try{!r&&null!=t.return&&t.return()}finally{if(a)throw s}}return i}}(e,n)||jg(e,n)||function TU(){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 T0(e){return function SU(e){if(Array.isArray(e))return q7(e)}(e)||function NU(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||jg(e)||function EU(){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 jg(e,n){if(e){if("string"==typeof e)return q7(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return q7(e,n)}}function q7(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t<n;t++)i[t]=e[t];return i}var Gg=function(){},Y7={},$g={},Wg=null,qg={mark:Gg,measure:Gg};try{"undefined"!=typeof window&&(Y7=window),"undefined"!=typeof document&&($g=document),"undefined"!=typeof MutationObserver&&(Wg=MutationObserver),"undefined"!=typeof performance&&(qg=performance)}catch(e){}var Yg=(Y7.navigator||{}).userAgent,Kg=void 0===Yg?"":Yg,ke=Y7,i1=$g,Qg=Wg,A0=qg,oe=!!i1.documentElement&&!!i1.head&&"function"==typeof i1.addEventListener&&"function"==typeof i1.createElement,Zg=~Kg.indexOf("MSIE")||~Kg.indexOf("Trident/"),se="___FONT_AWESOME___",Xg="svg-inline--fa",gt="data-fa-i2svg",Q7="data-fa-pseudo-element",Z7="data-prefix",J7="data-icon",em="fontawesome-i2svg",OU=["HTML","HEAD","STYLE","SCRIPT"],tm=function(){try{return!0}catch(e){return!1}}(),X7={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",fa:"solid"},k0={solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"},nm={fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},RU={"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},PU=/fa[srltdbk\-\ ]/,im="fa-layers-text",FU=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Kit)?.*/i,BU={900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},rm=[1,2,3,4,5,6,7,8,9,10],UU=rm.concat([11,12,13,14,15,16,17,18,19,20]),jU=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],GU=[].concat(T0(Object.keys(k0)),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul","duotone-group","swap-opacity","primary","secondary"]).concat(rm.map(function(e){return"".concat(e,"x")})).concat(UU.map(function(e){return"w-".concat(e)})),am=ke.FontAwesomeConfig||{};i1&&"function"==typeof i1.querySelector&&[["data-family-prefix","familyPrefix"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(function(e){var n=W7(e,2),i=n[1],r=function WU(e){return""===e||"false"!==e&&("true"===e||e)}(function $U(e){var n=i1.querySelector("script["+e+"]");if(n)return n.getAttribute(e)}(n[0]));null!=r&&(am[i]=r)});var un=K(K({},{familyPrefix:"fa",styleDefault:"solid",replacementClass:Xg,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0}),am);un.autoReplaceSvg||(un.observeMutations=!1);var X={};Object.keys(un).forEach(function(e){Object.defineProperty(X,e,{enumerable:!0,set:function(t){un[e]=t,I0.forEach(function(i){return i(X)})},get:function(){return un[e]}})}),ke.FontAwesomeConfig=X;var I0=[],U4={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function fn(){for(var e=12,n="";e-- >0;)n+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return n}function x6(e){for(var n=[],t=(e||[]).length>>>0;t--;)n[t]=e[t];return n}function es(e){return e.classList?x6(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(n){return n})}function om(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function O0(e){return Object.keys(e||{}).reduce(function(n,t){return n+"".concat(t,": ").concat(e[t].trim(),";")},"")}function ts(e){return e.size!==U4.size||e.x!==U4.x||e.y!==U4.y||e.rotate!==U4.rotate||e.flipX||e.flipY}function sm(){var e="fa",n=Xg,t=X.familyPrefix,i=X.replacementClass,r=':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-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, 0);\n animation-delay: var(--fa-animation-delay, 0);\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, 0);\n animation-delay: var(--fa-animation-delay, 0);\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, 0);\n animation-delay: var(--fa-animation-delay, 0);\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, 0);\n animation-delay: var(--fa-animation-delay, 0);\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, 0);\n animation-delay: var(--fa-animation-delay, 0);\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, 0);\n animation-delay: var(--fa-animation-delay, 0);\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, 0);\n animation-delay: var(--fa-animation-delay, 0);\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 transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';if(t!==e||i!==n){var a=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(n),"g");r=r.replace(a,".".concat(t,"-")).replace(o,"--".concat(t,"-")).replace(s,".".concat(i))}return r}var cm=!1;function ns(){X.autoAddCss&&!cm&&(function QU(e){if(e&&oe){var n=i1.createElement("style");n.setAttribute("type","text/css"),n.innerHTML=e;for(var t=i1.head.childNodes,i=null,r=t.length-1;r>-1;r--){var a=t[r],o=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(i=a)}i1.head.insertBefore(n,i)}}(sm()),cm=!0)}var nj={mixout:function(){return{dom:{css:sm,insertCss:ns}}},hooks:function(){return{beforeDOMElementCreation:function(){ns()},beforeI2svg:function(){ns()}}}},ce=ke||{};ce[se]||(ce[se]={}),ce[se].styles||(ce[se].styles={}),ce[se].hooks||(ce[se].hooks={}),ce[se].shims||(ce[se].shims=[]);var V4=ce[se],lm=[],R0=!1;function rj(e){!oe||(R0?setTimeout(e,0):lm.push(e))}function Cn(e){var n=e.tag,t=e.attributes,i=void 0===t?{}:t,r=e.children,a=void 0===r?[]:r;return"string"==typeof e?om(e):"<".concat(n," ").concat(function JU(e){return Object.keys(e||{}).reduce(function(n,t){return n+"".concat(t,'="').concat(om(e[t]),'" ')},"").trim()}(i),">").concat(a.map(Cn).join(""),"</").concat(n,">")}function um(e,n,t){if(e&&e[n]&&e[n][t])return{prefix:n,iconName:t,icon:e[n][t]}}oe&&((R0=(i1.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(i1.readyState))||i1.addEventListener("DOMContentLoaded",function e(){i1.removeEventListener("DOMContentLoaded",e),R0=1,lm.map(function(n){return n()})}));var is=function(n,t,i,r){var c,l,u,a=Object.keys(n),o=a.length,s=void 0!==r?function(n,t){return function(i,r,a,o){return n.call(t,i,r,a,o)}}(t,r):t;for(void 0===i?(c=1,u=n[a[0]]):(c=0,u=i);c<o;c++)u=s(u,n[l=a[c]],l,n);return u};function rs(e){var n=function oj(e){for(var n=[],t=0,i=e.length;t<i;){var r=e.charCodeAt(t++);if(r>=55296&&r<=56319&&t<i){var a=e.charCodeAt(t++);56320==(64512&a)?n.push(((1023&r)<<10)+(1023&a)+65536):(n.push(r),t--)}else n.push(r)}return n}(e);return 1===n.length?n[0].toString(16):null}function fm(e){return Object.keys(e).reduce(function(n,t){var i=e[t];return i.icon?n[i.iconName]=i.icon:n[t]=i,n},{})}function as(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t.skipHooks,r=void 0!==i&&i,a=fm(n);"function"!=typeof V4.hooks.addPack||r?V4.styles[e]=K(K({},V4.styles[e]||{}),a):V4.hooks.addPack(e,fm(n)),"fas"===e&&as("fa",n)}var dn=V4.styles,cj=V4.shims,lj=Object.values(nm),os=null,Cm={},dm={},hm={},pm={},gm={},uj=Object.keys(X7);function Cj(e,n){var t=n.split("-"),i=t[0],r=t.slice(1).join("-");return i!==e||""===r||function fj(e){return~GU.indexOf(e)}(r)?null:r}var mm=function(){var n=function(a){return is(dn,function(o,s,c){return o[c]=is(s,a,{}),o},{})};Cm=n(function(r,a,o){return a[3]&&(r[a[3]]=o),a[2]&&a[2].filter(function(c){return"number"==typeof c}).forEach(function(c){r[c.toString(16)]=o}),r}),dm=n(function(r,a,o){return r[o]=o,a[2]&&a[2].filter(function(c){return"string"==typeof c}).forEach(function(c){r[c]=o}),r}),gm=n(function(r,a,o){var s=a[2];return r[o]=o,s.forEach(function(c){r[c]=o}),r});var t="far"in dn||X.autoFetchSvg,i=is(cj,function(r,a){var o=a[0],s=a[1],c=a[2];return"far"===s&&!t&&(s="fas"),"string"==typeof o&&(r.names[o]={prefix:s,iconName:c}),"number"==typeof o&&(r.unicodes[o.toString(16)]={prefix:s,iconName:c}),r},{names:{},unicodes:{}});hm=i.names,pm=i.unicodes,os=P0(X.styleDefault)};function ss(e,n){return(Cm[e]||{})[n]}function E6(e,n){return(gm[e]||{})[n]}function vm(e){return hm[e]||{prefix:null,iconName:null}}function Oe(){return os}function P0(e){return k0[e]||k0[X7[e]]||(e in V4.styles?e:null)||null}function F0(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.skipLookups,i=void 0!==t&&t,r=null,a=e.reduce(function(o,s){var c=Cj(X.familyPrefix,s);if(dn[s]?(s=lj.includes(s)?RU[s]:s,r=s,o.prefix=s):uj.indexOf(s)>-1?(r=s,o.prefix=P0(s)):c?o.iconName=c:s!==X.replacementClass&&o.rest.push(s),!i&&o.prefix&&o.iconName){var l="fa"===r?vm(o.iconName):{},u=E6(o.prefix,o.iconName);l.prefix&&(r=null),o.iconName=l.iconName||u||o.iconName,o.prefix=l.prefix||o.prefix,"far"===o.prefix&&!dn.far&&dn.fas&&!X.autoFetchSvg&&(o.prefix="fas")}return o},{prefix:null,iconName:null,rest:[]});return("fa"===a.prefix||"fa"===r)&&(a.prefix=Oe()||"fas"),a}(function KU(e){I0.push(e)})(function(e){os=P0(e.styleDefault)}),mm();var pj=function(){function e(){(function VU(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")})(this,e),this.definitions={}}return function HU(e,n,t){n&&Ug(e.prototype,n),t&&Ug(e,t),Object.defineProperty(e,"prototype",{writable:!1})}(e,[{key:"add",value:function(){for(var t=this,i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];var o=r.reduce(this._pullDefinitions,{});Object.keys(o).forEach(function(s){t.definitions[s]=K(K({},t.definitions[s]||{}),o[s]),as(s,o[s]);var c=nm[s];c&&as(c,o[s]),mm()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(t,i){var r=i.prefix&&i.iconName&&i.icon?{0:i}:i;return Object.keys(r).map(function(a){var o=r[a],s=o.prefix,c=o.iconName,l=o.icon,u=l[2];t[s]||(t[s]={}),u.length>0&&u.forEach(function(f){"string"==typeof f&&(t[s][f]=l)}),t[s][c]=l}),t}}]),e}(),_m=[],T6={},A6={},gj=Object.keys(A6);function ls(e,n){for(var t=arguments.length,i=new Array(t>2?t-2:0),r=2;r<t;r++)i[r-2]=arguments[r];var a=T6[e]||[];return a.forEach(function(o){n=o.apply(null,[n].concat(i))}),n}function vt(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),i=1;i<n;i++)t[i-1]=arguments[i];var r=T6[e]||[];r.forEach(function(a){a.apply(null,t)})}function le(){var e=arguments[0],n=Array.prototype.slice.call(arguments,1);return A6[e]?A6[e].apply(null,n):void 0}function us(e){"fa"===e.prefix&&(e.prefix="fas");var n=e.iconName,t=e.prefix||Oe();if(n)return n=E6(t,n)||n,um(Mm.definitions,t,n)||um(V4.styles,t,n)}var Mm=new pj,_j={i2svg:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return oe?(vt("beforeI2svg",n),le("pseudoElements2svg",n),le("i2svg",n)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.autoReplaceSvgRoot;!1===X.autoReplaceSvg&&(X.autoReplaceSvg=!0),X.observeMutations=!0,rj(function(){yj({autoReplaceSvgRoot:t}),vt("watch",n)})}},B3={noAuto:function(){X.autoReplaceSvg=!1,X.observeMutations=!1,vt("noAuto")},config:X,dom:_j,parse:{icon:function(n){if(null===n)return null;if("object"===x0(n)&&n.prefix&&n.iconName)return{prefix:n.prefix,iconName:E6(n.prefix,n.iconName)||n.iconName};if(Array.isArray(n)&&2===n.length){var t=0===n[1].indexOf("fa-")?n[1].slice(3):n[1],i=P0(n[0]);return{prefix:i,iconName:E6(i,t)||t}}if("string"==typeof n&&(n.indexOf("".concat(X.familyPrefix,"-"))>-1||n.match(PU))){var r=F0(n.split(" "),{skipLookups:!0});return{prefix:r.prefix||Oe(),iconName:E6(r.prefix,r.iconName)||r.iconName}}if("string"==typeof n){var a=Oe();return{prefix:a,iconName:E6(a,n)||n}}}},library:Mm,findIconDefinition:us,toHtml:Cn},yj=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.autoReplaceSvgRoot,i=void 0===t?i1:t;(Object.keys(V4.styles).length>0||X.autoFetchSvg)&&oe&&X.autoReplaceSvg&&B3.dom.i2svg({node:i})};function B0(e,n){return Object.defineProperty(e,"abstract",{get:n}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(i){return Cn(i)})}}),Object.defineProperty(e,"node",{get:function(){if(oe){var i=i1.createElement("div");return i.innerHTML=e.html,i.children}}}),e}function fs(e){var n=e.icons,t=n.main,i=n.mask,r=e.prefix,a=e.iconName,o=e.transform,s=e.symbol,c=e.title,l=e.maskId,u=e.titleId,f=e.extra,h=e.watchable,p=void 0!==h&&h,L=i.found?i:t,H=L.width,S=L.height,z="fak"===r,w=[X.replacementClass,a?"".concat(X.familyPrefix,"-").concat(a):""].filter(function(P2){return-1===f.classes.indexOf(P2)}).filter(function(P2){return""!==P2||!!P2}).concat(f.classes).join(" "),A={children:[],attributes:K(K({},f.attributes),{},{"data-prefix":r,"data-icon":a,class:w,role:f.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(H," ").concat(S)})},F=z&&!~f.classes.indexOf("fa-fw")?{width:"".concat(H/S*16*.0625,"em")}:{};p&&(A.attributes[gt]=""),c&&(A.children.push({tag:"title",attributes:{id:A.attributes["aria-labelledby"]||"title-".concat(u||fn())},children:[c]}),delete A.attributes.title);var B=K(K({},A),{},{prefix:r,iconName:a,main:t,mask:i,maskId:l,transform:o,symbol:s,styles:K(K({},F),f.styles)}),Q=i.found&&t.found?le("generateAbstractMask",B)||{children:[],attributes:{}}:le("generateAbstractIcon",B)||{children:[],attributes:{}},g2=Q.attributes;return B.children=Q.children,B.attributes=g2,s?function Lj(e){var t=e.iconName,i=e.children,r=e.attributes,a=e.symbol,o=!0===a?"".concat(e.prefix,"-").concat(X.familyPrefix,"-").concat(t):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:K(K({},r),{},{id:o}),children:i}]}]}(B):function bj(e){var n=e.children,t=e.main,i=e.mask,r=e.attributes,a=e.styles,o=e.transform;if(ts(o)&&t.found&&!i.found){var l={x:t.width/t.height/2,y:.5};r.style=O0(K(K({},a),{},{"transform-origin":"".concat(l.x+o.x/16,"em ").concat(l.y+o.y/16,"em")}))}return[{tag:"svg",attributes:r,children:n}]}(B)}function ym(e){var n=e.content,t=e.width,i=e.height,r=e.transform,a=e.title,o=e.extra,s=e.watchable,c=void 0!==s&&s,l=K(K(K({},o.attributes),a?{title:a}:{}),{},{class:o.classes.join(" ")});c&&(l[gt]="");var u=K({},o.styles);ts(r)&&(u.transform=function ej(e){var n=e.transform,t=e.width,r=e.height,a=void 0===r?16:r,o=e.startCentered,s=void 0!==o&&o,c="";return c+=s&&Zg?"translate(".concat(n.x/16-(void 0===t?16:t)/2,"em, ").concat(n.y/16-a/2,"em) "):s?"translate(calc(-50% + ".concat(n.x/16,"em), calc(-50% + ").concat(n.y/16,"em)) "):"translate(".concat(n.x/16,"em, ").concat(n.y/16,"em) "),(c+="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "))+"rotate(".concat(n.rotate,"deg) ")}({transform:r,startCentered:!0,width:t,height:i}),u["-webkit-transform"]=u.transform);var f=O0(u);f.length>0&&(l.style=f);var h=[];return h.push({tag:"span",attributes:l,children:[n]}),a&&h.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),h}function Vj(e){var n=e.content,t=e.title,i=e.extra,r=K(K(K({},i.attributes),t?{title:t}:{}),{},{class:i.classes.join(" ")}),a=O0(i.styles);a.length>0&&(r.style=a);var o=[];return o.push({tag:"span",attributes:r,children:[n]}),t&&o.push({tag:"span",attributes:{class:"sr-only"},children:[t]}),o}var Cs=V4.styles;function ds(e){var n=e[0],t=e[1],a=W7(e.slice(4),1)[0];return{found:!0,width:n,height:t,icon:Array.isArray(a)?{tag:"g",attributes:{class:"".concat(X.familyPrefix,"-").concat("duotone-group")},children:[{tag:"path",attributes:{class:"".concat(X.familyPrefix,"-").concat("secondary"),fill:"currentColor",d:a[0]}},{tag:"path",attributes:{class:"".concat(X.familyPrefix,"-").concat("primary"),fill:"currentColor",d:a[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:a}}}}var Hj={found:!1,width:512,height:512};function hs(e,n){var t=n;return"fa"===n&&null!==X.styleDefault&&(n=Oe()),new Promise(function(i,r){if(le("missingIconAbstract"),"fa"===t){var o=vm(e)||{};e=o.iconName||e,n=o.prefix||n}if(e&&n&&Cs[n]&&Cs[n][e])return i(ds(Cs[n][e]));(function wj(e,n){!tm&&!X.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(n,'" is missing.'))})(e,n),i(K(K({},Hj),{},{icon:X.showMissingIcons&&e&&le("missingIconAbstract")||{}}))})}var bm=function(){},ps=X.measurePerformance&&A0&&A0.mark&&A0.measure?A0:{mark:bm,measure:bm},hn='FA "6.1.1"',gs_begin=function(n){return ps.mark("".concat(hn," ").concat(n," begins")),function(){return function(n){ps.mark("".concat(hn," ").concat(n," ends")),ps.measure("".concat(hn," ").concat(n),"".concat(hn," ").concat(n," begins"),"".concat(hn," ").concat(n," ends"))}(n)}},U0=function(){};function Vm(e){return"string"==typeof(e.getAttribute?e.getAttribute(gt):null)}function xj(e){return i1.createElementNS("http://www.w3.org/2000/svg",e)}function Ej(e){return i1.createElement(e)}function Hm(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.ceFn,i=void 0===t?"svg"===e.tag?xj:Ej:t;if("string"==typeof e)return i1.createTextNode(e);var r=i(e.tag);Object.keys(e.attributes||[]).forEach(function(o){r.setAttribute(o,e.attributes[o])});var a=e.children||[];return a.forEach(function(o){r.appendChild(Hm(o,{ceFn:i}))}),r}var j0={replace:function(n){var t=n[0];if(t.parentNode)if(n[1].forEach(function(r){t.parentNode.insertBefore(Hm(r),t)}),null===t.getAttribute(gt)&&X.keepOriginalSource){var i=i1.createComment(function Tj(e){var n=" ".concat(e.outerHTML," ");return"".concat(n,"Font Awesome fontawesome.com ")}(t));t.parentNode.replaceChild(i,t)}else t.remove()},nest:function(n){var t=n[0],i=n[1];if(~es(t).indexOf(X.replacementClass))return j0.replace(n);var r=new RegExp("".concat(X.familyPrefix,"-.*"));if(delete i[0].attributes.id,i[0].attributes.class){var a=i[0].attributes.class.split(" ").reduce(function(s,c){return c===X.replacementClass||c.match(r)?s.toSvg.push(c):s.toNode.push(c),s},{toNode:[],toSvg:[]});i[0].attributes.class=a.toSvg.join(" "),0===a.toNode.length?t.removeAttribute("class"):t.setAttribute("class",a.toNode.join(" "))}var o=i.map(function(s){return Cn(s)}).join("\n");t.setAttribute(gt,""),t.innerHTML=o}};function wm(e){e()}function Dm(e,n){var t="function"==typeof n?n:U0;if(0===e.length)t();else{var i=wm;"async"===X.mutateApproach&&(i=ke.requestAnimationFrame||wm),i(function(){var r=function Nj(){return!0===X.autoReplaceSvg?j0.replace:j0[X.autoReplaceSvg]||j0.replace}(),a=gs_begin("mutate");e.map(r),a(),t()})}}var ms=!1;function Sm(){ms=!0}function vs(){ms=!1}var G0=null;function zm(e){if(Qg&&X.observeMutations){var n=e.treeCallback,t=void 0===n?U0:n,i=e.nodeCallback,r=void 0===i?U0:i,a=e.pseudoElementsCallback,o=void 0===a?U0:a,s=e.observeMutationsRoot,c=void 0===s?i1:s;G0=new Qg(function(l){if(!ms){var u=Oe();x6(l).forEach(function(f){if("childList"===f.type&&f.addedNodes.length>0&&!Vm(f.addedNodes[0])&&(X.searchPseudoElements&&o(f.target),t(f.target)),"attributes"===f.type&&f.target.parentNode&&X.searchPseudoElements&&o(f.target.parentNode),"attributes"===f.type&&Vm(f.target)&&~jU.indexOf(f.attributeName))if("class"===f.attributeName&&function Sj(e){var n=e.getAttribute?e.getAttribute(Z7):null,t=e.getAttribute?e.getAttribute(J7):null;return n&&t}(f.target)){var h=F0(es(f.target)),L=h.iconName;f.target.setAttribute(Z7,h.prefix||u),L&&f.target.setAttribute(J7,L)}else(function zj(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(X.replacementClass)})(f.target)&&r(f.target)})}}),oe&&G0.observe(c,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function kj(e){var n=e.getAttribute("style"),t=[];return n&&(t=n.split(";").reduce(function(i,r){var a=r.split(":"),o=a[0],s=a.slice(1);return o&&s.length>0&&(i[o]=s.join(":").trim()),i},{})),t}function Ij(e){var n=e.getAttribute("data-prefix"),t=e.getAttribute("data-icon"),i=void 0!==e.innerText?e.innerText.trim():"",r=F0(es(e));return r.prefix||(r.prefix=Oe()),n&&t&&(r.prefix=n,r.iconName=t),r.iconName&&r.prefix||r.prefix&&i.length>0&&(r.iconName=function dj(e,n){return(dm[e]||{})[n]}(r.prefix,e.innerText)||ss(r.prefix,rs(e.innerText))),r}function Oj(e){var n=x6(e.attributes).reduce(function(r,a){return"class"!==r.name&&"style"!==r.name&&(r[a.name]=a.value),r},{}),t=e.getAttribute("title"),i=e.getAttribute("data-fa-title-id");return X.autoA11y&&(t?n["aria-labelledby"]="".concat(X.replacementClass,"-title-").concat(i||fn()):(n["aria-hidden"]="true",n.focusable="false")),n}function Nm(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},t=Ij(e),i=t.iconName,r=t.prefix,a=t.rest,o=Oj(e),s=ls("parseNodeAttributes",{},e),c=n.styleParser?kj(e):[];return K({iconName:i,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:U4,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:c,attributes:o}},s)}var Pj=V4.styles;function xm(e){var n="nest"===X.autoReplaceSvg?Nm(e,{styleParser:!1}):Nm(e);return~n.extra.classes.indexOf(im)?le("generateLayersText",e,n):le("generateSvgReplacementMutation",e,n)}function Em(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!oe)return Promise.resolve();var t=i1.documentElement.classList,i=function(f){return t.add("".concat(em,"-").concat(f))},r=function(f){return t.remove("".concat(em,"-").concat(f))},a=Object.keys(X.autoFetchSvg?X7:Pj),o=[".".concat(im,":not([").concat(gt,"])")].concat(a.map(function(u){return".".concat(u,":not([").concat(gt,"])")})).join(", ");if(0===o.length)return Promise.resolve();var s=[];try{s=x6(e.querySelectorAll(o))}catch(u){}if(!(s.length>0))return Promise.resolve();i("pending"),r("complete");var c=gs_begin("onTree"),l=s.reduce(function(u,f){try{var h=xm(f);h&&u.push(h)}catch(p){tm||"MissingIcon"===p.name&&console.error(p)}return u},[]);return new Promise(function(u,f){Promise.all(l).then(function(h){Dm(h,function(){i("active"),i("complete"),r("pending"),"function"==typeof n&&n(),c(),u()})}).catch(function(h){c(),f(h)})})}function Fj(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;xm(e).then(function(t){t&&Dm([t],n)})}var Uj=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.transform,r=void 0===i?U4:i,a=t.symbol,o=void 0!==a&&a,s=t.mask,c=void 0===s?null:s,l=t.maskId,u=void 0===l?null:l,f=t.title,h=void 0===f?null:f,p=t.titleId,L=void 0===p?null:p,H=t.classes,S=void 0===H?[]:H,z=t.attributes,w=void 0===z?{}:z,A=t.styles,F=void 0===A?{}:A;if(n){var B=n.prefix,Q=n.iconName,f2=n.icon;return B0(K({type:"icon"},n),function(){return vt("beforeDOMElementCreation",{iconDefinition:n,params:t}),X.autoA11y&&(h?w["aria-labelledby"]="".concat(X.replacementClass,"-title-").concat(L||fn()):(w["aria-hidden"]="true",w.focusable="false")),fs({icons:{main:ds(f2),mask:c?ds(c.icon):{found:!1,width:null,height:null,icon:{}}},prefix:B,iconName:Q,transform:K(K({},U4),r),symbol:o,title:h,maskId:u,titleId:L,extra:{attributes:w,styles:F,classes:S}})})}},jj={mixout:function(){return{icon:(e=Uj,function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(n||{}).icon?n:us(n||{}),r=t.mask;return r&&(r=(r||{}).icon?r:us(r||{})),e(i,K(K({},t),{},{mask:r}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(t){return t.treeCallback=Em,t.nodeCallback=Fj,t}}},provides:function(n){n.i2svg=function(t){var i=t.node,a=t.callback;return Em(void 0===i?i1:i,void 0===a?function(){}:a)},n.generateSvgReplacementMutation=function(t,i){var r=i.iconName,a=i.title,o=i.titleId,s=i.prefix,c=i.transform,l=i.symbol,u=i.mask,f=i.maskId,h=i.extra;return new Promise(function(p,L){Promise.all([hs(r,s),u.iconName?hs(u.iconName,u.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(H){var S=W7(H,2);p([t,fs({icons:{main:S[0],mask:S[1]},prefix:s,iconName:r,transform:c,symbol:l,maskId:f,title:a,titleId:o,extra:h,watchable:!0})])}).catch(L)})},n.generateAbstractIcon=function(t){var l,i=t.children,r=t.attributes,a=t.main,o=t.transform,c=O0(t.styles);return c.length>0&&(r.style=c),ts(o)&&(l=le("generateAbstractTransformGrouping",{main:a,transform:o,containerWidth:a.width,iconWidth:a.width})),i.push(l||a.icon),{children:i,attributes:r}}}},Gj={mixout:function(){return{layer:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.classes,a=void 0===r?[]:r;return B0({type:"layer"},function(){vt("beforeDOMElementCreation",{assembler:t,params:i});var o=[];return t(function(s){Array.isArray(s)?s.map(function(c){o=o.concat(c.abstract)}):o=o.concat(s.abstract)}),[{tag:"span",attributes:{class:["".concat(X.familyPrefix,"-layers")].concat(T0(a)).join(" ")},children:o}]})}}}},$j={mixout:function(){return{counter:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.title,a=void 0===r?null:r,o=i.classes,s=void 0===o?[]:o,c=i.attributes,l=void 0===c?{}:c,u=i.styles,f=void 0===u?{}:u;return B0({type:"counter",content:t},function(){return vt("beforeDOMElementCreation",{content:t,params:i}),Vj({content:t.toString(),title:a,extra:{attributes:l,styles:f,classes:["".concat(X.familyPrefix,"-layers-counter")].concat(T0(s))}})})}}}},Wj={mixout:function(){return{text:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.transform,a=void 0===r?U4:r,o=i.title,s=void 0===o?null:o,c=i.classes,l=void 0===c?[]:c,u=i.attributes,f=void 0===u?{}:u,h=i.styles,p=void 0===h?{}:h;return B0({type:"text",content:t},function(){return vt("beforeDOMElementCreation",{content:t,params:i}),ym({content:t,transform:K(K({},U4),a),title:s,extra:{attributes:f,styles:p,classes:["".concat(X.familyPrefix,"-layers-text")].concat(T0(l))}})})}}},provides:function(n){n.generateLayersText=function(t,i){var r=i.title,a=i.transform,o=i.extra,s=null,c=null;if(Zg){var l=parseInt(getComputedStyle(t).fontSize,10),u=t.getBoundingClientRect();s=u.width/l,c=u.height/l}return X.autoA11y&&!r&&(o.attributes["aria-hidden"]="true"),Promise.resolve([t,ym({content:t.innerHTML,width:s,height:c,transform:a,title:r,extra:o,watchable:!0})])}}},qj=new RegExp('"',"ug"),Tm=[1105920,1112319];function Am(e,n){var t="".concat("data-fa-pseudo-element-pending").concat(n.replace(":","-"));return new Promise(function(i,r){if(null!==e.getAttribute(t))return i();var o=x6(e.children).filter(function(Q){return Q.getAttribute(Q7)===n})[0],s=ke.getComputedStyle(e,n),c=s.getPropertyValue("font-family").match(FU),l=s.getPropertyValue("font-weight"),u=s.getPropertyValue("content");if(o&&!c)return e.removeChild(o),i();if(c&&"none"!==u&&""!==u){var f=s.getPropertyValue("content"),h=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(c[2])?k0[c[2].toLowerCase()]:BU[l],p=function Yj(e){var n=e.replace(qj,""),t=function sj(e,n){var r,t=e.length,i=e.charCodeAt(n);return i>=55296&&i<=56319&&t>n+1&&(r=e.charCodeAt(n+1))>=56320&&r<=57343?1024*(i-55296)+r-56320+65536:i}(n,0),i=t>=Tm[0]&&t<=Tm[1],r=2===n.length&&n[0]===n[1];return{value:rs(r?n[0]:n),isSecondary:i||r}}(f),L=p.value,H=p.isSecondary,S=c[0].startsWith("FontAwesome"),z=ss(h,L),w=z;if(S){var A=function hj(e){var n=pm[e],t=ss("fas",e);return n||(t?{prefix:"fas",iconName:t}:null)||{prefix:null,iconName:null}}(L);A.iconName&&A.prefix&&(z=A.iconName,h=A.prefix)}if(!z||H||o&&o.getAttribute(Z7)===h&&o.getAttribute(J7)===w)i();else{e.setAttribute(t,w),o&&e.removeChild(o);var F=function Rj(){return{iconName:null,title:null,titleId:null,prefix:null,transform:U4,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),B=F.extra;B.attributes[Q7]=n,hs(z,h).then(function(Q){var f2=fs(K(K({},F),{},{icons:{main:Q,mask:{prefix:null,iconName:null,rest:[]}},prefix:h,iconName:w,extra:B,watchable:!0})),g2=i1.createElement("svg");"::before"===n?e.insertBefore(g2,e.firstChild):e.appendChild(g2),g2.outerHTML=f2.map(function(P2){return Cn(P2)}).join("\n"),e.removeAttribute(t),i()}).catch(r)}}else i()})}function Kj(e){return Promise.all([Am(e,"::before"),Am(e,"::after")])}function Qj(e){return!(e.parentNode===document.head||~OU.indexOf(e.tagName.toUpperCase())||e.getAttribute(Q7)||e.parentNode&&"svg"===e.parentNode.tagName)}function km(e){if(oe)return new Promise(function(n,t){var i=x6(e.querySelectorAll("*")).filter(Qj).map(Kj),r=gs_begin("searchPseudoElements");Sm(),Promise.all(i).then(function(){r(),vs(),n()}).catch(function(){r(),vs(),t()})})}var Im=!1,Om=function(n){return n.toLowerCase().split(" ").reduce(function(i,r){var a=r.toLowerCase().split("-"),o=a[0],s=a.slice(1).join("-");if(o&&"h"===s)return i.flipX=!0,i;if(o&&"v"===s)return i.flipY=!0,i;if(s=parseFloat(s),isNaN(s))return i;switch(o){case"grow":i.size=i.size+s;break;case"shrink":i.size=i.size-s;break;case"left":i.x=i.x-s;break;case"right":i.x=i.x+s;break;case"up":i.y=i.y-s;break;case"down":i.y=i.y+s;break;case"rotate":i.rotate=i.rotate+s}return i},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},_s={x:0,y:0,width:"100%",height:"100%"};function Rm(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||n)&&(e.attributes.fill="black"),e}!function mj(e,n){var t=n.mixoutsTo;_m=e,T6={},Object.keys(A6).forEach(function(i){-1===gj.indexOf(i)&&delete A6[i]}),_m.forEach(function(i){var r=i.mixout?i.mixout():{};if(Object.keys(r).forEach(function(o){"function"==typeof r[o]&&(t[o]=r[o]),"object"===x0(r[o])&&Object.keys(r[o]).forEach(function(s){t[o]||(t[o]={}),t[o][s]=r[o][s]})}),i.hooks){var a=i.hooks();Object.keys(a).forEach(function(o){T6[o]||(T6[o]=[]),T6[o].push(a[o])})}i.provides&&i.provides(A6)})}([nj,jj,Gj,$j,Wj,{hooks:function(){return{mutationObserverCallbacks:function(t){return t.pseudoElementsCallback=km,t}}},provides:function(n){n.pseudoElements2svg=function(t){var i=t.node;X.searchPseudoElements&&km(void 0===i?i1:i)}}},{mixout:function(){return{dom:{unwatch:function(){Sm(),Im=!0}}}},hooks:function(){return{bootstrap:function(){zm(ls("mutationObserverCallbacks",{}))},noAuto:function(){!function Aj(){!G0||G0.disconnect()}()},watch:function(t){var i=t.observeMutationsRoot;Im?vs():zm(ls("mutationObserverCallbacks",{observeMutationsRoot:i}))}}}},{mixout:function(){return{parse:{transform:function(t){return Om(t)}}}},hooks:function(){return{parseNodeAttributes:function(t,i){var r=i.getAttribute("data-fa-transform");return r&&(t.transform=Om(r)),t}}},provides:function(n){n.generateAbstractTransformGrouping=function(t){var i=t.main,r=t.transform,o=t.iconWidth,s={transform:"translate(".concat(t.containerWidth/2," 256)")},c="translate(".concat(32*r.x,", ").concat(32*r.y,") "),l="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),u="rotate(".concat(r.rotate," 0 0)"),p={outer:s,inner:{transform:"".concat(c," ").concat(l," ").concat(u)},path:{transform:"translate(".concat(o/2*-1," -256)")}};return{tag:"g",attributes:K({},p.outer),children:[{tag:"g",attributes:K({},p.inner),children:[{tag:i.icon.tag,children:i.icon.children,attributes:K(K({},i.icon.attributes),p.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(t,i){var r=i.getAttribute("data-fa-mask"),a=r?F0(r.split(" ").map(function(o){return o.trim()})):{prefix:null,iconName:null,rest:[]};return a.prefix||(a.prefix=Oe()),t.mask=a,t.maskId=i.getAttribute("data-fa-mask-id"),t}}},provides:function(n){n.generateAbstractMask=function(t){var e,i=t.children,r=t.attributes,a=t.main,o=t.mask,s=t.maskId,u=a.icon,h=o.icon,p=function XU(e){var n=e.transform,i=e.iconWidth,r={transform:"translate(".concat(e.containerWidth/2," 256)")},a="translate(".concat(32*n.x,", ").concat(32*n.y,") "),o="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),s="rotate(".concat(n.rotate," 0 0)");return{outer:r,inner:{transform:"".concat(a," ").concat(o," ").concat(s)},path:{transform:"translate(".concat(i/2*-1," -256)")}}}({transform:t.transform,containerWidth:o.width,iconWidth:a.width}),L={tag:"rect",attributes:K(K({},_s),{},{fill:"white"})},H=u.children?{children:u.children.map(Rm)}:{},S={tag:"g",attributes:K({},p.inner),children:[Rm(K({tag:u.tag,attributes:K(K({},u.attributes),p.path)},H))]},z={tag:"g",attributes:K({},p.outer),children:[S]},w="mask-".concat(s||fn()),A="clip-".concat(s||fn()),F={tag:"mask",attributes:K(K({},_s),{},{id:w,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[L,z]},B={tag:"defs",children:[{tag:"clipPath",attributes:{id:A},children:(e=h,"g"===e.tag?e.children:[e])},F]};return i.push(B,{tag:"rect",attributes:K({fill:"currentColor","clip-path":"url(#".concat(A,")"),mask:"url(#".concat(w,")")},_s)}),{children:i,attributes:r}}}},{provides:function(n){var t=!1;ke.matchMedia&&(t=ke.matchMedia("(prefers-reduced-motion: reduce)").matches),n.missingIconAbstract=function(){var i=[],r={fill:"currentColor"},a={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};i.push({tag:"path",attributes:K(K({},r),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var o=K(K({},a),{},{attributeName:"opacity"}),s={tag:"circle",attributes:K(K({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||s.children.push({tag:"animate",attributes:K(K({},a),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:K(K({},o),{},{values:"1;0;1;1;0;1;"})}),i.push(s),i.push({tag:"path",attributes:K(K({},r),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:K(K({},o),{},{values:"1;0;0;0;0;1;"})}]}),t||i.push({tag:"path",attributes:K(K({},r),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:K(K({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:i}}}},{hooks:function(){return{parseNodeAttributes:function(t,i){var r=i.getAttribute("data-fa-symbol");return t.symbol=null!==r&&(""===r||r),t}}}}],{mixoutsTo:B3});var aG=B3.parse,oG=B3.icon;const sG=["*"],uG=e=>{const n={"fa-spin":e.spin,"fa-pulse":e.pulse,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-inverse":e.inverse,"fa-layers-counter":e.counter,"fa-flip-horizontal":"horizontal"===e.flip||"both"===e.flip,"fa-flip-vertical":"vertical"===e.flip||"both"===e.flip,[`fa-${e.size}`]:null!==e.size,[`fa-rotate-${e.rotate}`]:null!==e.rotate,[`fa-pull-${e.pull}`]:null!==e.pull,[`fa-stack-${e.stackItemSize}`]:null!=e.stackItemSize};return Object.keys(n).map(t=>n[t]?t:null).filter(t=>t)};let dG=(()=>{class e{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),hG=(()=>{class e{constructor(){this.definitions={}}addIcons(...t){for(const i of t){i.prefix in this.definitions||(this.definitions[i.prefix]={}),this.definitions[i.prefix][i.iconName]=i;for(const r of i.icon[2])"string"==typeof r&&(this.definitions[i.prefix][r]=i)}}addIconPacks(...t){for(const i of t){const r=Object.keys(i).map(a=>i[a]);this.addIcons(...r)}}getIconDefinition(t,i){return t in this.definitions&&i in this.definitions[t]?this.definitions[t][i]:null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),pG=(()=>{class e{constructor(){this.stackItemSize="1x"}ngOnChanges(t){if("size"in t)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: <fa-stack size="4x">...</fa-stack>.')}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=U({type:e,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[N1]}),e})(),gG=(()=>{class e{constructor(t,i){this.renderer=t,this.elementRef=i}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(t){"size"in t&&(null!=t.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${t.size.currentValue}`),null!=t.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${t.size.previousValue}`))}}return e.\u0275fac=function(t){return new(t||e)(V(y3),V(I2))},e.\u0275cmp=s2({type:e,selectors:[["fa-stack"]],inputs:{size:"size"},features:[N1],ngContentSelectors:sG,decls:1,vars:0,template:function(t,i){1&t&&(H5(),w5(0))},encapsulation:2}),e})(),Pm=(()=>{class e{constructor(t,i,r,a,o){this.sanitizer=t,this.config=i,this.iconLibrary=r,this.stackItem=a,this.classes=[],null!=o&&null==a&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: <fa-icon stackItemSize="2x"></fa-icon>.')}ngOnChanges(t){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let i=null;if(i=null==this.icon?this.config.fallbackIcon:this.icon,t){const r=this.findIconDefinition(i);if(null!=r){const a=this.buildParams();this.renderIcon(r,a)}}}render(){this.ngOnChanges({})}findIconDefinition(t){const i=((e,n)=>(e=>void 0!==e.prefix&&void 0!==e.iconName)(e)?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:n,iconName:e}:void 0)(t,this.config.defaultPrefix);if("icon"in i)return i;const r=this.iconLibrary.getIconDefinition(i.prefix,i.iconName);return null!=r?r:((e=>{throw new Error(`Could not find icon with iconName=${e.iconName} and prefix=${e.prefix} in the icon library.`)})(i),null)}buildParams(){const t={flip:this.flip,spin:this.spin,pulse:this.pulse,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:"boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize:null},i="string"==typeof this.transform?aG.transform(this.transform):this.transform;return{title:this.title,transform:i,classes:[...uG(t),...this.classes],mask:null!=this.mask?this.findIconDefinition(this.mask):null,styles:null!=this.styles?this.styles:{},symbol:this.symbol,attributes:{role:this.a11yRole}}}renderIcon(t,i){const r=oG(t,i);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(r.html.join("\n"))}}return e.\u0275fac=function(t){return new(t||e)(V(uh),V(dG),V(hG),V(pG,8),V(gG,8))},e.\u0275cmp=s2({type:e,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(t,i){2&t&&(O4("innerHTML",i.renderedIconHTML,dl),j("title",i.title))},inputs:{icon:"icon",title:"title",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",classes:"classes",transform:"transform",a11yRole:"a11yRole"},features:[N1],decls:0,vars:0,template:function(t,i){},encapsulation:2}),e})(),mG=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({}),e})();function $0(e,n){const t=Y(e)?e:()=>e,i=r=>r.error(t());return new A2(n?r=>n.schedule(i,0,r):i)}const W0=n3(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Fm(e){return new A2(n=>{o3(e()).subscribe(n)})}function Bm(){return a1((e,n)=>{let t=null;e._refCount++;const i=O2(n,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(t=null);const r=e._connection,a=t;t=null,r&&(!a||r===a)&&r.unsubscribe(),n.unsubscribe()});e.subscribe(i),i.closed||(t=e.connect())})}class vG extends A2{constructor(n,t){super(),this.source=n,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,G6(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,null==n||n.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new H2;const t=this.getSubject();n.add(this.source.subscribe(O2(t,void 0,()=>{this._teardown(),t.complete()},i=>{this._teardown(),t.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=H2.EMPTY)}return n}refCount(){return Bm()(this)}}function _G(e,n,t,i,r){return(a,o)=>{let s=t,c=n,l=0;a.subscribe(O2(o,u=>{const f=l++;c=s?e(c,u,f):(s=!0,u),i&&o.next(c)},r&&(()=>{s&&o.next(c),o.complete()})))}}function Um(e,n){return a1(_G(e,n,arguments.length>=2,!0))}function Re(e){return a1((n,t)=>{let a,i=null,r=!1;i=n.subscribe(O2(t,void 0,void 0,o=>{a=o3(e(o,Re(e)(n))),i?(i.unsubscribe(),i=null,a.subscribe(t)):r=!0})),r&&(i.unsubscribe(),i=null,a.subscribe(t))})}function pn(e,n){return Y(n)?b1(e,n,1):b1(e,1)}function Ms(e){return e<=0?()=>c4:a1((n,t)=>{let i=[];n.subscribe(O2(t,r=>{i.push(r),e<i.length&&i.shift()},()=>{for(const r of i)t.next(r);t.complete()},void 0,()=>{i=null}))})}function jm(e=MG){return a1((n,t)=>{let i=!1;n.subscribe(O2(t,r=>{i=!0,t.next(r)},()=>i?t.complete():t.error(e())))})}function MG(){return new W0}function Gm(e){return a1((n,t)=>{let i=!1;n.subscribe(O2(t,r=>{i=!0,t.next(r)},()=>{i||t.next(e),t.complete()}))})}function k6(e,n){const t=arguments.length>=2;return i=>i.pipe(e?Z1((r,a)=>e(r,a,i)):o4,K1(1),t?Gm(n):jm(()=>new W0))}class ue{constructor(n,t){this.id=n,this.url=t}}class q0 extends ue{constructor(n,t,i="imperative",r=null){super(n,t),this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class gn extends ue{constructor(n,t,i){super(n,t),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class $m extends ue{constructor(n,t,i){super(n,t),this.reason=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class LG extends ue{constructor(n,t,i){super(n,t),this.error=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class VG extends ue{constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class HG extends ue{constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class wG extends ue{constructor(n,t,i,r,a){super(n,t),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=a}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class DG extends ue{constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class SG extends ue{constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Wm{constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class qm{constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class zG{constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class NG{constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class xG{constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class EG{constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ym{constructor(n,t,i){this.routerEvent=n,this.position=t,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const y2="primary";class TG{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t[0]:t}return null}getAll(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function I6(e){return new TG(e)}const Km="ngNavigationCancelingError";function ys(e){const n=Error("NavigationCancelingError: "+e);return n[Km]=!0,n}function kG(e,n,t){const i=t.path.split("/");if(i.length>e.length||"full"===t.pathMatch&&(n.hasChildren()||i.length<e.length))return null;const r={};for(let a=0;a<i.length;a++){const o=i[a],s=e[a];if(o.startsWith(":"))r[o.substring(1)]=s;else if(o!==s.path)return null}return{consumed:e.slice(0,i.length),posParams:r}}function j4(e,n){const t=e?Object.keys(e):void 0,i=n?Object.keys(n):void 0;if(!t||!i||t.length!=i.length)return!1;let r;for(let a=0;a<t.length;a++)if(r=t[a],!Qm(e[r],n[r]))return!1;return!0}function Qm(e,n){if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return!1;const t=[...e].sort(),i=[...n].sort();return t.every((r,a)=>i[a]===r)}return e===n}function Zm(e){return Array.prototype.concat.apply([],e)}function Jm(e){return e.length>0?e[e.length-1]:null}function J1(e,n){for(const t in e)e.hasOwnProperty(t)&&n(e[t],t)}function G4(e){return Ta(e)?e:V5(e)?G1(Promise.resolve(e)):a2(e)}const RG={exact:function tv(e,n,t){if(!Mt(e.segments,n.segments)||!Y0(e.segments,n.segments,t)||e.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!e.children[i]||!tv(e.children[i],n.children[i],t))return!1;return!0},subset:nv},Xm={exact:function PG(e,n){return j4(e,n)},subset:function FG(e,n){return Object.keys(n).length<=Object.keys(e).length&&Object.keys(n).every(t=>Qm(e[t],n[t]))},ignored:()=>!0};function ev(e,n,t){return RG[t.paths](e.root,n.root,t.matrixParams)&&Xm[t.queryParams](e.queryParams,n.queryParams)&&!("exact"===t.fragment&&e.fragment!==n.fragment)}function nv(e,n,t){return iv(e,n,n.segments,t)}function iv(e,n,t,i){if(e.segments.length>t.length){const r=e.segments.slice(0,t.length);return!(!Mt(r,t)||n.hasChildren()||!Y0(r,t,i))}if(e.segments.length===t.length){if(!Mt(e.segments,t)||!Y0(e.segments,t,i))return!1;for(const r in n.children)if(!e.children[r]||!nv(e.children[r],n.children[r],i))return!1;return!0}{const r=t.slice(0,e.segments.length),a=t.slice(e.segments.length);return!!(Mt(e.segments,r)&&Y0(e.segments,r,i)&&e.children[y2])&&iv(e.children[y2],n,a,i)}}function Y0(e,n,t){return n.every((i,r)=>Xm[t](e[r].parameters,i.parameters))}class _t{constructor(n,t,i){this.root=n,this.queryParams=t,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=I6(this.queryParams)),this._queryParamMap}toString(){return jG.serialize(this)}}class V2{constructor(n,t){this.segments=n,this.children=t,this.parent=null,J1(t,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return K0(this)}}class mn{constructor(n,t){this.path=n,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=I6(this.parameters)),this._parameterMap}toString(){return cv(this)}}function Mt(e,n){return e.length===n.length&&e.every((t,i)=>t.path===n[i].path)}class rv{}class av{parse(n){const t=new JG(n);return new _t(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(n){const t=`/${vn(n.root,!0)}`,i=function WG(e){const n=Object.keys(e).map(t=>{const i=e[t];return Array.isArray(i)?i.map(r=>`${Q0(t)}=${Q0(r)}`).join("&"):`${Q0(t)}=${Q0(i)}`}).filter(t=>!!t);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${t}${i}${"string"==typeof n.fragment?`#${function GG(e){return encodeURI(e)}(n.fragment)}`:""}`}}const jG=new av;function K0(e){return e.segments.map(n=>cv(n)).join("/")}function vn(e,n){if(!e.hasChildren())return K0(e);if(n){const t=e.children[y2]?vn(e.children[y2],!1):"",i=[];return J1(e.children,(r,a)=>{a!==y2&&i.push(`${a}:${vn(r,!1)}`)}),i.length>0?`${t}(${i.join("//")})`:t}{const t=function UG(e,n){let t=[];return J1(e.children,(i,r)=>{r===y2&&(t=t.concat(n(i,r)))}),J1(e.children,(i,r)=>{r!==y2&&(t=t.concat(n(i,r)))}),t}(e,(i,r)=>r===y2?[vn(e.children[y2],!1)]:[`${r}:${vn(i,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[y2]?`${K0(e)}/${t[0]}`:`${K0(e)}/(${t.join("//")})`}}function ov(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Q0(e){return ov(e).replace(/%3B/gi,";")}function bs(e){return ov(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Z0(e){return decodeURIComponent(e)}function sv(e){return Z0(e.replace(/\+/g,"%20"))}function cv(e){return`${bs(e.path)}${function $G(e){return Object.keys(e).map(n=>`;${bs(n)}=${bs(e[n])}`).join("")}(e.parameters)}`}const qG=/^[^\/()?;=#]+/;function J0(e){const n=e.match(qG);return n?n[0]:""}const YG=/^[^=?&#]+/,QG=/^[^&#]+/;class JG{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new V2([],{}):new V2([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(t).length>0)&&(i[y2]=new V2(n,t)),i}parseSegment(){const n=J0(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(n),new mn(Z0(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const t=J0(this.remaining);if(!t)return;this.capture(t);let i="";if(this.consumeOptional("=")){const r=J0(this.remaining);r&&(i=r,this.capture(i))}n[Z0(t)]=Z0(i)}parseQueryParam(n){const t=function KG(e){const n=e.match(YG);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let i="";if(this.consumeOptional("=")){const o=function ZG(e){const n=e.match(QG);return n?n[0]:""}(this.remaining);o&&(i=o,this.capture(i))}const r=sv(t),a=sv(i);if(n.hasOwnProperty(r)){let o=n[r];Array.isArray(o)||(o=[o],n[r]=o),o.push(a)}else n[r]=a}parseParens(n){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=J0(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let a;i.indexOf(":")>-1?(a=i.substr(0,i.indexOf(":")),this.capture(a),this.capture(":")):n&&(a=y2);const o=this.parseChildren();t[a]=1===Object.keys(o).length?o[y2]:new V2([],o),this.consumeOptional("//")}return t}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new Error(`Expected "${n}".`)}}class lv{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const t=this.pathFromRoot(n);return t.length>1?t[t.length-2]:null}children(n){const t=Ls(n,this._root);return t?t.children.map(i=>i.value):[]}firstChild(n){const t=Ls(n,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(n){const t=Vs(n,this._root);return t.length<2?[]:t[t.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return Vs(n,this._root).map(t=>t.value)}}function Ls(e,n){if(e===n.value)return n;for(const t of n.children){const i=Ls(e,t);if(i)return i}return null}function Vs(e,n){if(e===n.value)return[n];for(const t of n.children){const i=Vs(e,t);if(i.length)return i.unshift(n),i}return[]}class fe{constructor(n,t){this.value=n,this.children=t}toString(){return`TreeNode(${this.value})`}}function O6(e){const n={};return e&&e.children.forEach(t=>n[t.value.outlet]=t),n}class uv extends lv{constructor(n,t){super(n),this.snapshot=t,Hs(this,n)}toString(){return this.snapshot.toString()}}function fv(e,n){const t=function XG(e,n){const o=new X0([],{},{},"",{},y2,n,null,e.root,-1,{});return new dv("",new fe(o,[]))}(e,n),i=new W1([new mn("",{})]),r=new W1({}),a=new W1({}),o=new W1({}),s=new W1(""),c=new Ce(i,r,o,s,a,y2,n,t.root);return c.snapshot=t.root,new uv(new fe(c,[]),t)}class Ce{constructor(n,t,i,r,a,o,s,c){this.url=n,this.params=t,this.queryParams=i,this.fragment=r,this.data=a,this.outlet=o,this.component=s,this._futureSnapshot=c}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(m2(n=>I6(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(m2(n=>I6(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Cv(e,n="emptyOnly"){const t=e.pathFromRoot;let i=0;if("always"!==n)for(i=t.length-1;i>=1;){const r=t[i],a=t[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(a.component)break;i--}}return function e$(e){return e.reduce((n,t)=>({params:Object.assign(Object.assign({},n.params),t.params),data:Object.assign(Object.assign({},n.data),t.data),resolve:Object.assign(Object.assign({},n.resolve),t._resolvedData)}),{params:{},data:{},resolve:{}})}(t.slice(i))}class X0{constructor(n,t,i,r,a,o,s,c,l,u,f){this.url=n,this.params=t,this.queryParams=i,this.fragment=r,this.data=a,this.outlet=o,this.component=s,this.routeConfig=c,this._urlSegment=l,this._lastPathIndex=u,this._resolve=f}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=I6(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=I6(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class dv extends lv{constructor(n,t){super(t),this.url=n,Hs(this,t)}toString(){return hv(this._root)}}function Hs(e,n){n.value._routerState=e,n.children.forEach(t=>Hs(e,t))}function hv(e){const n=e.children.length>0?` { ${e.children.map(hv).join(", ")} } `:"";return`${e.value}${n}`}function ws(e){if(e.snapshot){const n=e.snapshot,t=e._futureSnapshot;e.snapshot=t,j4(n.queryParams,t.queryParams)||e.queryParams.next(t.queryParams),n.fragment!==t.fragment&&e.fragment.next(t.fragment),j4(n.params,t.params)||e.params.next(t.params),function IG(e,n){if(e.length!==n.length)return!1;for(let t=0;t<e.length;++t)if(!j4(e[t],n[t]))return!1;return!0}(n.url,t.url)||e.url.next(t.url),j4(n.data,t.data)||e.data.next(t.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function Ds(e,n){const t=j4(e.params,n.params)&&function BG(e,n){return Mt(e,n)&&e.every((t,i)=>j4(t.parameters,n[i].parameters))}(e.url,n.url);return t&&!(!e.parent!=!n.parent)&&(!e.parent||Ds(e.parent,n.parent))}function _n(e,n,t){if(t&&e.shouldReuseRoute(n.value,t.value.snapshot)){const i=t.value;i._futureSnapshot=n.value;const r=function n$(e,n,t){return n.children.map(i=>{for(const r of t.children)if(e.shouldReuseRoute(i.value,r.value.snapshot))return _n(e,i,r);return _n(e,i)})}(e,n,t);return new fe(i,r)}{if(e.shouldAttach(n.value)){const a=e.retrieve(n.value);if(null!==a){const o=a.route;return o.value._futureSnapshot=n.value,o.children=n.children.map(s=>_n(e,s)),o}}const i=function i$(e){return new Ce(new W1(e.url),new W1(e.params),new W1(e.queryParams),new W1(e.fragment),new W1(e.data),e.outlet,e.component,e)}(n.value),r=n.children.map(a=>_n(e,a));return new fe(i,r)}}function ei(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Mn(e){return"object"==typeof e&&null!=e&&e.outlets}function Ss(e,n,t,i,r){let a={};if(i&&J1(i,(s,c)=>{a[c]=Array.isArray(s)?s.map(l=>`${l}`):`${s}`}),e===n)return new _t(t,a,r);const o=pv(e,n,t);return new _t(o,a,r)}function pv(e,n,t){const i={};return J1(e.children,(r,a)=>{i[a]=r===n?t:pv(r,n,t)}),new V2(e.segments,i)}class gv{constructor(n,t,i){if(this.isAbsolute=n,this.numberOfDoubleDots=t,this.commands=i,n&&i.length>0&&ei(i[0]))throw new Error("Root segment cannot have matrix parameters");const r=i.find(Mn);if(r&&r!==Jm(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class zs{constructor(n,t,i){this.segmentGroup=n,this.processChildren=t,this.index=i}}function mv(e,n,t){if(e||(e=new V2([],{})),0===e.segments.length&&e.hasChildren())return ti(e,n,t);const i=function l$(e,n,t){let i=0,r=n;const a={match:!1,pathIndex:0,commandIndex:0};for(;r<e.segments.length;){if(i>=t.length)return a;const o=e.segments[r],s=t[i];if(Mn(s))break;const c=`${s}`,l=i<t.length-1?t[i+1]:null;if(r>0&&void 0===c)break;if(c&&l&&"object"==typeof l&&void 0===l.outlets){if(!_v(c,l,o))return a;i+=2}else{if(!_v(c,{},o))return a;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,n,t),r=t.slice(i.commandIndex);if(i.match&&i.pathIndex<e.segments.length){const a=new V2(e.segments.slice(0,i.pathIndex),{});return a.children[y2]=new V2(e.segments.slice(i.pathIndex),e.children),ti(a,0,r)}return i.match&&0===r.length?new V2(e.segments,{}):i.match&&!e.hasChildren()?Ns(e,n,t):i.match?ti(e,0,r):Ns(e,n,t)}function ti(e,n,t){if(0===t.length)return new V2(e.segments,{});{const i=function c$(e){return Mn(e[0])?e[0].outlets:{[y2]:e}}(t),r={};return J1(i,(a,o)=>{"string"==typeof a&&(a=[a]),null!==a&&(r[o]=mv(e.children[o],n,a))}),J1(e.children,(a,o)=>{void 0===i[o]&&(r[o]=a)}),new V2(e.segments,r)}}function Ns(e,n,t){const i=e.segments.slice(0,n);let r=0;for(;r<t.length;){const a=t[r];if(Mn(a)){const c=u$(a.outlets);return new V2(i,c)}if(0===r&&ei(t[0])){i.push(new mn(e.segments[n].path,vv(t[0]))),r++;continue}const o=Mn(a)?a.outlets[y2]:`${a}`,s=r<t.length-1?t[r+1]:null;o&&s&&ei(s)?(i.push(new mn(o,vv(s))),r+=2):(i.push(new mn(o,{})),r++)}return new V2(i,{})}function u$(e){const n={};return J1(e,(t,i)=>{"string"==typeof t&&(t=[t]),null!==t&&(n[i]=Ns(new V2([],{}),0,t))}),n}function vv(e){const n={};return J1(e,(t,i)=>n[i]=`${t}`),n}function _v(e,n,t){return e==t.path&&j4(n,t.parameters)}class C${constructor(n,t,i,r){this.routeReuseStrategy=n,this.futureState=t,this.currState=i,this.forwardEvent=r}activate(n){const t=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,i,n),ws(this.futureState.root),this.activateChildRoutes(t,i,n)}deactivateChildRoutes(n,t,i){const r=O6(t);n.children.forEach(a=>{const o=a.value.outlet;this.deactivateRoutes(a,r[o],i),delete r[o]}),J1(r,(a,o)=>{this.deactivateRouteAndItsChildren(a,i)})}deactivateRoutes(n,t,i){const r=n.value,a=t?t.value:null;if(r===a)if(r.component){const o=i.getContext(r.outlet);o&&this.deactivateChildRoutes(n,t,o.children)}else this.deactivateChildRoutes(n,t,i);else a&&this.deactivateRouteAndItsChildren(t,i)}deactivateRouteAndItsChildren(n,t){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,t):this.deactivateRouteAndOutlet(n,t)}detachAndStoreRouteSubtree(n,t){const i=t.getContext(n.value.outlet),r=i&&n.value.component?i.children:t,a=O6(n);for(const o of Object.keys(a))this.deactivateRouteAndItsChildren(a[o],r);if(i&&i.outlet){const o=i.outlet.detach(),s=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:o,route:n,contexts:s})}}deactivateRouteAndOutlet(n,t){const i=t.getContext(n.value.outlet),r=i&&n.value.component?i.children:t,a=O6(n);for(const o of Object.keys(a))this.deactivateRouteAndItsChildren(a[o],r);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(n,t,i){const r=O6(t);n.children.forEach(a=>{this.activateRoutes(a,r[a.value.outlet],i),this.forwardEvent(new EG(a.value.snapshot))}),n.children.length&&this.forwardEvent(new NG(n.value.snapshot))}activateRoutes(n,t,i){const r=n.value,a=t?t.value:null;if(ws(r),r===a)if(r.component){const o=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,t,o.children)}else this.activateChildRoutes(n,t,i);else if(r.component){const o=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(s.contexts),o.attachRef=s.componentRef,o.route=s.route.value,o.outlet&&o.outlet.attach(s.componentRef,s.route.value),ws(s.route.value),this.activateChildRoutes(n,null,o.children)}else{const s=function d$(e){for(let n=e.parent;n;n=n.parent){const t=n.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(r.snapshot),c=s?s.module.componentFactoryResolver:null;o.attachRef=null,o.route=r,o.resolver=c,o.outlet&&o.outlet.activateWith(r,c),this.activateChildRoutes(n,null,o.children)}}else this.activateChildRoutes(n,null,i)}}class xs{constructor(n,t){this.routes=n,this.module=t}}function Pe(e){return"function"==typeof e}function yt(e){return e instanceof _t}const yn=Symbol("INITIAL_VALUE");function bn(){return ie(e=>function _7(...e){const n=Y6(e),t=Bn(e),{args:i,keys:r}=Ch(e);if(0===i.length)return G1([],n);const a=new A2(function SR(e,n,t=o4){return i=>{bp(n,()=>{const{length:r}=e,a=new Array(r);let o=r,s=r;for(let c=0;c<r;c++)bp(n,()=>{const l=G1(e[c],n);let u=!1;l.subscribe(O2(i,f=>{a[c]=f,u||(u=!0,s--),s||i.next(t(a.slice()))},()=>{--o||i.complete()}))},i)},i)}}(i,n,r?o=>dh(r,o):o4));return t?a.pipe(Ko(t)):a}(e.map(n=>n.pipe(K1(1),function g0(...e){const n=Y6(e);return a1((t,i)=>{(n?Z5(e,t,n):Z5(e,t)).subscribe(i)})}(yn)))).pipe(Um((n,t)=>{let i=!1;return t.reduce((r,a,o)=>r!==yn?r:(a===yn&&(i=!0),i||!1!==a&&o!==t.length-1&&!yt(a)?r:a),n)},yn),Z1(n=>n!==yn),m2(n=>yt(n)?n:!0===n),K1(1)))}class _${constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Ln,this.attachRef=null}}class Ln{constructor(){this.contexts=new Map}onChildOutletCreated(n,t){const i=this.getOrCreateContext(n);i.outlet=t,this.contexts.set(n,i)}onChildOutletDestroyed(n){const t=this.getContext(n);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let t=this.getContext(n);return t||(t=new _$,this.contexts.set(n,t)),t}getContext(n){return this.contexts.get(n)||null}}let Es=(()=>{class e{constructor(t,i,r,a,o){this.parentContexts=t,this.location=i,this.resolver=r,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new u2,this.deactivateEvents=new u2,this.attachEvents=new u2,this.detachEvents=new u2,this.name=a||y2,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,i){this.activated=t,this._activatedRoute=i,this.location.insert(t.hostView),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,i){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const o=(i=i||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),s=this.parentContexts.getOrCreateContext(this.name).children,c=new M$(t,s,this.location.injector);this.activated=this.location.createComponent(o,this.location.length,c),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(t){return new(t||e)(V(Ln),V(Z3),V(g6),function Ye(e){return function WD(e,n){if("class"===n)return e.classes;if("style"===n)return e.styles;const t=e.attrs;if(t){const i=t.length;let r=0;for(;r<i;){const a=t[r];if(xc(a))break;if(0===a)r+=2;else if("number"==typeof a)for(r++;r<i&&"string"==typeof t[r];)r++;else{if(a===n)return t[r+1];r+=2}}}return null}(I1(),e)}("name"),V(X3))},e.\u0275dir=U({type:e,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),e})();class M${constructor(n,t,i){this.route=n,this.childContexts=t,this.parent=i}get(n,t){return n===Ce?this.route:n===Ln?this.childContexts:this.parent.get(n,t)}}let Mv=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=s2({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,i){1&t&&R(0,"router-outlet")},directives:[Es],encapsulation:2}),e})();function yv(e,n=""){for(let t=0;t<e.length;t++){const i=e[t];y$(i,b$(n,i))}}function y$(e,n){e.children&&yv(e.children,n)}function b$(e,n){return n?e||n.path?e&&!n.path?`${e}/`:!e&&n.path?n.path:`${e}/${n.path}`:"":e}function Ts(e){const n=e.children&&e.children.map(Ts),t=n?Object.assign(Object.assign({},e),{children:n}):Object.assign({},e);return!t.component&&(n||t.loadChildren)&&t.outlet&&t.outlet!==y2&&(t.component=Mv),t}function r4(e){return e.outlet||y2}function bv(e,n){const t=e.filter(i=>r4(i)===n);return t.push(...e.filter(i=>r4(i)!==n)),t}const Lv={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ni(e,n,t){var i;if(""===n.path)return"full"===n.pathMatch&&(e.hasChildren()||t.length>0)?Object.assign({},Lv):{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const a=(n.matcher||kG)(t,e,n);if(!a)return Object.assign({},Lv);const o={};J1(a.posParams,(c,l)=>{o[l]=c.path});const s=a.consumed.length>0?Object.assign(Object.assign({},o),a.consumed[a.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:a.consumed,remainingSegments:t.slice(a.consumed.length),parameters:s,positionalParamSegments:null!==(i=a.posParams)&&void 0!==i?i:{}}}function ii(e,n,t,i,r="corrected"){if(t.length>0&&function H$(e,n,t){return t.some(i=>ri(e,n,i)&&r4(i)!==y2)}(e,t,i)){const o=new V2(n,function V$(e,n,t,i){const r={};r[y2]=i,i._sourceSegment=e,i._segmentIndexShift=n.length;for(const a of t)if(""===a.path&&r4(a)!==y2){const o=new V2([],{});o._sourceSegment=e,o._segmentIndexShift=n.length,r[r4(a)]=o}return r}(e,n,i,new V2(t,e.children)));return o._sourceSegment=e,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:[]}}if(0===t.length&&function w$(e,n,t){return t.some(i=>ri(e,n,i))}(e,t,i)){const o=new V2(e.segments,function L$(e,n,t,i,r,a){const o={};for(const s of i)if(ri(e,t,s)&&!r[r4(s)]){const c=new V2([],{});c._sourceSegment=e,c._segmentIndexShift="legacy"===a?e.segments.length:n.length,o[r4(s)]=c}return Object.assign(Object.assign({},r),o)}(e,n,t,i,e.children,r));return o._sourceSegment=e,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:t}}const a=new V2(e.segments,e.children);return a._sourceSegment=e,a._segmentIndexShift=n.length,{segmentGroup:a,slicedSegments:t}}function ri(e,n,t){return(!(e.hasChildren()||n.length>0)||"full"!==t.pathMatch)&&""===t.path}function Vv(e,n,t,i){return!!(r4(e)===i||i!==y2&&ri(n,t,e))&&("**"===e.path||ni(n,e,t).matched)}function Hv(e,n,t){return 0===n.length&&!e.children[t]}class ai{constructor(n){this.segmentGroup=n||null}}class wv{constructor(n){this.urlTree=n}}function Vn(e){return $0(new ai(e))}function Dv(e){return $0(new wv(e))}class N${constructor(n,t,i,r,a){this.configLoader=t,this.urlSerializer=i,this.urlTree=r,this.config=a,this.allowRedirects=!0,this.ngModule=n.get(X4)}apply(){const n=ii(this.urlTree.root,[],[],this.config).segmentGroup,t=new V2(n.segments,n.children);return this.expandSegmentGroup(this.ngModule,this.config,t,y2).pipe(m2(a=>this.createUrlTree(As(a),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Re(a=>{if(a instanceof wv)return this.allowRedirects=!1,this.match(a.urlTree);throw a instanceof ai?this.noMatchError(a):a}))}match(n){return this.expandSegmentGroup(this.ngModule,this.config,n.root,y2).pipe(m2(r=>this.createUrlTree(As(r),n.queryParams,n.fragment))).pipe(Re(r=>{throw r instanceof ai?this.noMatchError(r):r}))}noMatchError(n){return new Error(`Cannot match any routes. URL Segment: '${n.segmentGroup}'`)}createUrlTree(n,t,i){const r=n.segments.length>0?new V2([],{[y2]:n}):n;return new _t(r,t,i)}expandSegmentGroup(n,t,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(n,t,i).pipe(m2(a=>new V2([],a))):this.expandSegment(n,i,t,i.segments,r,!0)}expandChildren(n,t,i){const r=[];for(const a of Object.keys(i.children))"primary"===a?r.unshift(a):r.push(a);return G1(r).pipe(pn(a=>{const o=i.children[a],s=bv(t,a);return this.expandSegmentGroup(n,s,o,a).pipe(m2(c=>({segment:c,outlet:a})))}),Um((a,o)=>(a[o.outlet]=o.segment,a),{}),function yG(e,n){const t=arguments.length>=2;return i=>i.pipe(e?Z1((r,a)=>e(r,a,i)):o4,Ms(1),t?Gm(n):jm(()=>new W0))}())}expandSegment(n,t,i,r,a,o){return G1(i).pipe(pn(s=>this.expandSegmentAgainstRoute(n,t,i,s,r,a,o).pipe(Re(l=>{if(l instanceof ai)return a2(null);throw l}))),k6(s=>!!s),Re((s,c)=>{if(s instanceof W0||"EmptyError"===s.name)return Hv(t,r,a)?a2(new V2([],{})):Vn(t);throw s}))}expandSegmentAgainstRoute(n,t,i,r,a,o,s){return Vv(r,t,a,o)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(n,t,r,a,o):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,t,i,r,a,o):Vn(t):Vn(t)}expandSegmentAgainstRouteUsingRedirect(n,t,i,r,a,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,i,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(n,t,i,r,a,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,t,i,r){const a=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?Dv(a):this.lineralizeSegments(i,a).pipe(b1(o=>{const s=new V2(o,{});return this.expandSegment(n,s,t,o,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,t,i,r,a,o){const{matched:s,consumedSegments:c,remainingSegments:l,positionalParamSegments:u}=ni(t,r,a);if(!s)return Vn(t);const f=this.applyRedirectCommands(c,r.redirectTo,u);return r.redirectTo.startsWith("/")?Dv(f):this.lineralizeSegments(r,f).pipe(b1(h=>this.expandSegment(n,t,i,h.concat(l),o,!1)))}matchSegmentAgainstRoute(n,t,i,r,a){if("**"===i.path)return i.loadChildren?(i._loadedConfig?a2(i._loadedConfig):this.configLoader.load(n.injector,i)).pipe(m2(f=>(i._loadedConfig=f,new V2(r,{})))):a2(new V2(r,{}));const{matched:o,consumedSegments:s,remainingSegments:c}=ni(t,i,r);return o?this.getChildConfig(n,i,r).pipe(b1(u=>{const f=u.module,h=u.routes,{segmentGroup:p,slicedSegments:L}=ii(t,s,c,h),H=new V2(p.segments,p.children);if(0===L.length&&H.hasChildren())return this.expandChildren(f,h,H).pipe(m2(A=>new V2(s,A)));if(0===h.length&&0===L.length)return a2(new V2(s,{}));const S=r4(i)===a;return this.expandSegment(f,H,h,L,S?y2:a,!0).pipe(m2(w=>new V2(s.concat(w.segments),w.children)))})):Vn(t)}getChildConfig(n,t,i){return t.children?a2(new xs(t.children,n)):t.loadChildren?void 0!==t._loadedConfig?a2(t._loadedConfig):this.runCanLoadGuards(n.injector,t,i).pipe(b1(r=>r?this.configLoader.load(n.injector,t).pipe(m2(a=>(t._loadedConfig=a,a))):function S$(e){return $0(ys(`Cannot load children because the guard of the route "path: '${e.path}'" returned false`))}(t))):a2(new xs([],n))}runCanLoadGuards(n,t,i){const r=t.canLoad;return r&&0!==r.length?a2(r.map(o=>{const s=n.get(o);let c;if(function p$(e){return e&&Pe(e.canLoad)}(s))c=s.canLoad(t,i);else{if(!Pe(s))throw new Error("Invalid CanLoad guard");c=s(t,i)}return G4(c)})).pipe(bn(),p3(o=>{if(!yt(o))return;const s=ys(`Redirecting to "${this.urlSerializer.serialize(o)}"`);throw s.url=o,s}),m2(o=>!0===o)):a2(!0)}lineralizeSegments(n,t){let i=[],r=t.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return a2(i);if(r.numberOfChildren>1||!r.children[y2])return $0(new Error(`Only absolute redirects can have named outlets. redirectTo: '${n.redirectTo}'`));r=r.children[y2]}}applyRedirectCommands(n,t,i){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),n,i)}applyRedirectCreatreUrlTree(n,t,i,r){const a=this.createSegmentGroup(n,t.root,i,r);return new _t(a,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(n,t){const i={};return J1(n,(r,a)=>{if("string"==typeof r&&r.startsWith(":")){const s=r.substring(1);i[a]=t[s]}else i[a]=r}),i}createSegmentGroup(n,t,i,r){const a=this.createSegments(n,t.segments,i,r);let o={};return J1(t.children,(s,c)=>{o[c]=this.createSegmentGroup(n,s,i,r)}),new V2(a,o)}createSegments(n,t,i,r){return t.map(a=>a.path.startsWith(":")?this.findPosParam(n,a,r):this.findOrReturn(a,i))}findPosParam(n,t,i){const r=i[t.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${n}'. Cannot find '${t.path}'.`);return r}findOrReturn(n,t){let i=0;for(const r of t){if(r.path===n.path)return t.splice(i),r;i++}return n}}function As(e){const n={};for(const i of Object.keys(e.children)){const a=As(e.children[i]);(a.segments.length>0||a.hasChildren())&&(n[i]=a)}return function x$(e){if(1===e.numberOfChildren&&e.children[y2]){const n=e.children[y2];return new V2(e.segments.concat(n.segments),n.children)}return e}(new V2(e.segments,n))}class Sv{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class oi{constructor(n,t){this.component=n,this.route=t}}function T$(e,n,t){const i=e._root;return Hn(i,n?n._root:null,t,[i.value])}function si(e,n,t){const i=function k$(e){if(!e)return null;for(let n=e.parent;n;n=n.parent){const t=n.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(n);return(i?i.module.injector:t).get(e)}function Hn(e,n,t,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const a=O6(n);return e.children.forEach(o=>{(function I$(e,n,t,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const a=e.value,o=n?n.value:null,s=t?t.getContext(e.value.outlet):null;if(o&&a.routeConfig===o.routeConfig){const c=function O$(e,n,t){if("function"==typeof t)return t(e,n);switch(t){case"pathParamsChange":return!Mt(e.url,n.url);case"pathParamsOrQueryParamsChange":return!Mt(e.url,n.url)||!j4(e.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ds(e,n)||!j4(e.queryParams,n.queryParams);default:return!Ds(e,n)}}(o,a,a.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new Sv(i)):(a.data=o.data,a._resolvedData=o._resolvedData),Hn(e,n,a.component?s?s.children:null:t,i,r),c&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new oi(s.outlet.component,o))}else o&&wn(n,s,r),r.canActivateChecks.push(new Sv(i)),Hn(e,null,a.component?s?s.children:null:t,i,r)})(o,a[o.value.outlet],t,i.concat([o.value]),r),delete a[o.value.outlet]}),J1(a,(o,s)=>wn(o,t.getContext(s),r)),r}function wn(e,n,t){const i=O6(e),r=e.value;J1(i,(a,o)=>{wn(a,r.component?n?n.children.getContext(o):null:n,t)}),t.canDeactivateChecks.push(new oi(r.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,r))}class W${}function zv(e){return new A2(n=>n.error(e))}class Y${constructor(n,t,i,r,a,o){this.rootComponentType=n,this.config=t,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=a,this.relativeLinkResolution=o}recognize(){const n=ii(this.urlTree.root,[],[],this.config.filter(o=>void 0===o.redirectTo),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,n,y2);if(null===t)return null;const i=new X0([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},y2,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new fe(i,t),a=new dv(this.url,r);return this.inheritParamsAndData(a._root),a}inheritParamsAndData(n){const t=n.value,i=Cv(t,this.paramsInheritanceStrategy);t.params=Object.freeze(i.params),t.data=Object.freeze(i.data),n.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(n,t,i){return 0===t.segments.length&&t.hasChildren()?this.processChildren(n,t):this.processSegment(n,t,t.segments,i)}processChildren(n,t){const i=[];for(const a of Object.keys(t.children)){const o=t.children[a],s=bv(n,a),c=this.processSegmentGroup(s,o,a);if(null===c)return null;i.push(...c)}const r=Nv(i);return function K$(e){e.sort((n,t)=>n.value.outlet===y2?-1:t.value.outlet===y2?1:n.value.outlet.localeCompare(t.value.outlet))}(r),r}processSegment(n,t,i,r){for(const a of n){const o=this.processSegmentAgainstRoute(a,t,i,r);if(null!==o)return o}return Hv(t,i,r)?[]:null}processSegmentAgainstRoute(n,t,i,r){if(n.redirectTo||!Vv(n,t,i,r))return null;let a,o=[],s=[];if("**"===n.path){const p=i.length>0?Jm(i).parameters:{};a=new X0(i,p,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Tv(n),r4(n),n.component,n,xv(t),Ev(t)+i.length,Av(n))}else{const p=ni(t,n,i);if(!p.matched)return null;o=p.consumedSegments,s=p.remainingSegments,a=new X0(o,p.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Tv(n),r4(n),n.component,n,xv(t),Ev(t)+o.length,Av(n))}const c=function Q$(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(n),{segmentGroup:l,slicedSegments:u}=ii(t,o,s,c.filter(p=>void 0===p.redirectTo),this.relativeLinkResolution);if(0===u.length&&l.hasChildren()){const p=this.processChildren(c,l);return null===p?null:[new fe(a,p)]}if(0===c.length&&0===u.length)return[new fe(a,[])];const f=r4(n)===r,h=this.processSegment(c,l,u,f?y2:r);return null===h?null:[new fe(a,h)]}}function Z$(e){const n=e.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function Nv(e){const n=[],t=new Set;for(const i of e){if(!Z$(i)){n.push(i);continue}const r=n.find(a=>i.value.routeConfig===a.value.routeConfig);void 0!==r?(r.children.push(...i.children),t.add(r)):n.push(i)}for(const i of t){const r=Nv(i.children);n.push(new fe(i.value,r))}return n.filter(i=>!t.has(i))}function xv(e){let n=e;for(;n._sourceSegment;)n=n._sourceSegment;return n}function Ev(e){let n=e,t=n._segmentIndexShift?n._segmentIndexShift:0;for(;n._sourceSegment;)n=n._sourceSegment,t+=n._segmentIndexShift?n._segmentIndexShift:0;return t-1}function Tv(e){return e.data||{}}function Av(e){return e.resolve||{}}function kv(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function ks(e){return ie(n=>{const t=e(n);return t?G1(t).pipe(m2(()=>n)):a2(n)})}class aW extends class rW{shouldDetach(n){return!1}store(n,t){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,t){return n.routeConfig===t.routeConfig}}{}const Is=new v2("ROUTES");class Iv{constructor(n,t,i,r){this.injector=n,this.compiler=t,this.onLoadStartListener=i,this.onLoadEndListener=r}load(n,t){if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);const r=this.loadModuleFactory(t.loadChildren).pipe(m2(a=>{this.onLoadEndListener&&this.onLoadEndListener(t);const o=a.create(n);return new xs(Zm(o.injector.get(Is,void 0,r2.Self|r2.Optional)).map(Ts),o)}),Re(a=>{throw t._loader$=void 0,a}));return t._loader$=new vG(r,()=>new C2).pipe(Bm()),t._loader$}loadModuleFactory(n){return G4(n()).pipe(b1(t=>t instanceof zC?a2(t):G1(this.compiler.compileModuleAsync(t))))}}class sW{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,t){return n}}function cW(e){throw e}function lW(e,n,t){return n.parse("/")}function Ov(e,n){return a2(null)}const uW={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},fW={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let X1=(()=>{class e{constructor(t,i,r,a,o,s,c){this.rootComponentType=t,this.urlSerializer=i,this.rootContexts=r,this.location=a,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new C2,this.errorHandler=cW,this.malformedUriErrorHandler=lW,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Ov,afterPreactivation:Ov},this.urlHandlingStrategy=new sW,this.routeReuseStrategy=new aW,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(X4),this.console=o.get(gA);const f=o.get($2);this.isNgZoneEnabled=f instanceof $2&&$2.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=function OG(){return new _t(new V2([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Iv(o,s,h=>this.triggerEvent(new Wm(h)),h=>this.triggerEvent(new qm(h))),this.routerState=fv(this.currentUrlTree,this.rootComponentType),this.transitions=new W1({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var t;return null===(t=this.location.getState())||void 0===t?void 0:t.\u0275routerPageId}setupNavigations(t){const i=this.events;return t.pipe(Z1(r=>0!==r.id),m2(r=>Object.assign(Object.assign({},r),{extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),ie(r=>{let a=!1,o=!1;return a2(r).pipe(p3(s=>{this.currentNavigation={id:s.id,initialUrl:s.currentRawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),ie(s=>{const c=this.browserUrlTree.toString(),l=!this.navigated||s.extractedUrl.toString()!==c||c!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||l)&&this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return Rv(s.source)&&(this.browserUrlTree=s.extractedUrl),a2(s).pipe(ie(f=>{const h=this.transitions.getValue();return i.next(new q0(f.id,this.serializeUrl(f.extractedUrl),f.source,f.restoredState)),h!==this.transitions.getValue()?c4:Promise.resolve(f)}),function E$(e,n,t,i){return ie(r=>function z$(e,n,t,i,r){return new N$(e,n,t,i,r).apply()}(e,n,t,r.extractedUrl,i).pipe(m2(a=>Object.assign(Object.assign({},r),{urlAfterRedirects:a}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),p3(f=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:f.urlAfterRedirects})}),function J$(e,n,t,i,r){return b1(a=>function q$(e,n,t,i,r="emptyOnly",a="legacy"){try{const o=new Y$(e,n,t,i,r,a).recognize();return null===o?zv(new W$):a2(o)}catch(o){return zv(o)}}(e,n,a.urlAfterRedirects,t(a.urlAfterRedirects),i,r).pipe(m2(o=>Object.assign(Object.assign({},a),{targetSnapshot:o}))))}(this.rootComponentType,this.config,f=>this.serializeUrl(f),this.paramsInheritanceStrategy,this.relativeLinkResolution),p3(f=>{if("eager"===this.urlUpdateStrategy){if(!f.extras.skipLocationChange){const p=this.urlHandlingStrategy.merge(f.urlAfterRedirects,f.rawUrl);this.setBrowserUrl(p,f)}this.browserUrlTree=f.urlAfterRedirects}const h=new VG(f.id,this.serializeUrl(f.extractedUrl),this.serializeUrl(f.urlAfterRedirects),f.targetSnapshot);i.next(h)}));if(l&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:h,extractedUrl:p,source:L,restoredState:H,extras:S}=s,z=new q0(h,this.serializeUrl(p),L,H);i.next(z);const w=fv(p,this.rootComponentType).snapshot;return a2(Object.assign(Object.assign({},s),{targetSnapshot:w,urlAfterRedirects:p,extras:Object.assign(Object.assign({},S),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=s.rawUrl,s.resolve(null),c4}),ks(s=>{const{targetSnapshot:c,id:l,extractedUrl:u,rawUrl:f,extras:{skipLocationChange:h,replaceUrl:p}}=s;return this.hooks.beforePreactivation(c,{navigationId:l,appliedUrlTree:u,rawUrlTree:f,skipLocationChange:!!h,replaceUrl:!!p})}),p3(s=>{const c=new HG(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot);this.triggerEvent(c)}),m2(s=>Object.assign(Object.assign({},s),{guards:T$(s.targetSnapshot,s.currentSnapshot,this.rootContexts)})),function R$(e,n){return b1(t=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:a,canDeactivateChecks:o}}=t;return 0===o.length&&0===a.length?a2(Object.assign(Object.assign({},t),{guardsResult:!0})):function P$(e,n,t,i){return G1(e).pipe(b1(r=>function $$(e,n,t,i,r){const a=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return a&&0!==a.length?a2(a.map(s=>{const c=si(s,n,r);let l;if(function v$(e){return e&&Pe(e.canDeactivate)}(c))l=G4(c.canDeactivate(e,n,t,i));else{if(!Pe(c))throw new Error("Invalid CanDeactivate guard");l=G4(c(e,n,t,i))}return l.pipe(k6())})).pipe(bn()):a2(!0)}(r.component,r.route,t,n,i)),k6(r=>!0!==r,!0))}(o,i,r,e).pipe(b1(s=>s&&function h$(e){return"boolean"==typeof e}(s)?function F$(e,n,t,i){return G1(n).pipe(pn(r=>Z5(function U$(e,n){return null!==e&&n&&n(new zG(e)),a2(!0)}(r.route.parent,i),function B$(e,n){return null!==e&&n&&n(new xG(e)),a2(!0)}(r.route,i),function G$(e,n,t){const i=n[n.length-1],a=n.slice(0,n.length-1).reverse().map(o=>function A$(e){const n=e.routeConfig?e.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:e,guards:n}:null}(o)).filter(o=>null!==o).map(o=>Fm(()=>a2(o.guards.map(c=>{const l=si(c,o.node,t);let u;if(function m$(e){return e&&Pe(e.canActivateChild)}(l))u=G4(l.canActivateChild(i,e));else{if(!Pe(l))throw new Error("Invalid CanActivateChild guard");u=G4(l(i,e))}return u.pipe(k6())})).pipe(bn())));return a2(a).pipe(bn())}(e,r.path,t),function j$(e,n,t){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return a2(!0);const r=i.map(a=>Fm(()=>{const o=si(a,n,t);let s;if(function g$(e){return e&&Pe(e.canActivate)}(o))s=G4(o.canActivate(n,e));else{if(!Pe(o))throw new Error("Invalid CanActivate guard");s=G4(o(n,e))}return s.pipe(k6())}));return a2(r).pipe(bn())}(e,r.route,t))),k6(r=>!0!==r,!0))}(i,a,e,n):a2(s)),m2(s=>Object.assign(Object.assign({},t),{guardsResult:s})))})}(this.ngModule.injector,s=>this.triggerEvent(s)),p3(s=>{if(yt(s.guardsResult)){const l=ys(`Redirecting to "${this.serializeUrl(s.guardsResult)}"`);throw l.url=s.guardsResult,l}const c=new wG(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.triggerEvent(c)}),Z1(s=>!!s.guardsResult||(this.restoreHistory(s),this.cancelNavigationTransition(s,""),!1)),ks(s=>{if(s.guards.canActivateChecks.length)return a2(s).pipe(p3(c=>{const l=new DG(c.id,this.serializeUrl(c.extractedUrl),this.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);this.triggerEvent(l)}),ie(c=>{let l=!1;return a2(c).pipe(function X$(e,n){return b1(t=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=t;if(!r.length)return a2(t);let a=0;return G1(r).pipe(pn(o=>function eW(e,n,t,i){return function tW(e,n,t,i){const r=kv(e);if(0===r.length)return a2({});const a={};return G1(r).pipe(b1(o=>function nW(e,n,t,i){const r=si(e,n,i);return G4(r.resolve?r.resolve(n,t):r(n,t))}(e[o],n,t,i).pipe(p3(s=>{a[o]=s}))),Ms(1),b1(()=>kv(a).length===r.length?a2(a):c4))}(e._resolve,e,n,i).pipe(m2(a=>(e._resolvedData=a,e.data=Object.assign(Object.assign({},e.data),Cv(e,t).resolve),null)))}(o.route,i,e,n)),p3(()=>a++),Ms(1),b1(o=>a===r.length?a2(t):c4))})}(this.paramsInheritanceStrategy,this.ngModule.injector),p3({next:()=>l=!0,complete:()=>{l||(this.restoreHistory(c),this.cancelNavigationTransition(c,"At least one route resolver didn't emit any value."))}}))}),p3(c=>{const l=new SG(c.id,this.serializeUrl(c.extractedUrl),this.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);this.triggerEvent(l)}))}),ks(s=>{const{targetSnapshot:c,id:l,extractedUrl:u,rawUrl:f,extras:{skipLocationChange:h,replaceUrl:p}}=s;return this.hooks.afterPreactivation(c,{navigationId:l,appliedUrlTree:u,rawUrlTree:f,skipLocationChange:!!h,replaceUrl:!!p})}),m2(s=>{const c=function t$(e,n,t){const i=_n(e,n._root,t?t._root:void 0);return new uv(i,n)}(this.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return Object.assign(Object.assign({},s),{targetRouterState:c})}),p3(s=>{this.currentUrlTree=s.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),this.routerState=s.targetRouterState,"deferred"===this.urlUpdateStrategy&&(s.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,s),this.browserUrlTree=s.urlAfterRedirects)}),((e,n,t)=>m2(i=>(new C$(n,i.targetRouterState,i.currentRouterState,t).activate(e),i)))(this.rootContexts,this.routeReuseStrategy,s=>this.triggerEvent(s)),p3({next(){a=!0},complete(){a=!0}}),function bG(e){return a1((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})}(()=>{var s;a||o||this.cancelNavigationTransition(r,`Navigation ID ${r.id} is not equal to the current navigation id ${this.navigationId}`),(null===(s=this.currentNavigation)||void 0===s?void 0:s.id)===r.id&&(this.currentNavigation=null)}),Re(s=>{if(o=!0,function AG(e){return e&&e[Km]}(s)){const c=yt(s.url);c||(this.navigated=!0,this.restoreHistory(r,!0));const l=new $m(r.id,this.serializeUrl(r.extractedUrl),s.message);i.next(l),c?setTimeout(()=>{const u=this.urlHandlingStrategy.merge(s.url,this.rawUrlTree),f={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Rv(r.source)};this.scheduleNavigation(u,"imperative",null,f,{resolve:r.resolve,reject:r.reject,promise:r.promise})},0):r.resolve(!1)}else{this.restoreHistory(r,!0);const c=new LG(r.id,this.serializeUrl(r.extractedUrl),s);i.next(c);try{r.resolve(this.errorHandler(s))}catch(l){r.reject(l)}}return c4}))}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const i="popstate"===t.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{var r;const a={replaceUrl:!0},o=(null===(r=t.state)||void 0===r?void 0:r.navigationId)?t.state:null;if(o){const c=Object.assign({},o);delete c.navigationId,delete c.\u0275routerPageId,0!==Object.keys(c).length&&(a.state=c)}const s=this.parseUrl(t.url);this.scheduleNavigation(s,i,o,a)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){yv(t),this.config=t.map(Ts),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,i={}){const{relativeTo:r,queryParams:a,fragment:o,queryParamsHandling:s,preserveFragment:c}=i,l=r||this.routerState.root,u=c?this.currentUrlTree.fragment:o;let f=null;switch(s){case"merge":f=Object.assign(Object.assign({},this.currentUrlTree.queryParams),a);break;case"preserve":f=this.currentUrlTree.queryParams;break;default:f=a||null}return null!==f&&(f=this.removeEmptyProps(f)),function r$(e,n,t,i,r){if(0===t.length)return Ss(n.root,n.root,n.root,i,r);const a=function a$(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new gv(!0,0,e);let n=0,t=!1;const i=e.reduce((r,a,o)=>{if("object"==typeof a&&null!=a){if(a.outlets){const s={};return J1(a.outlets,(c,l)=>{s[l]="string"==typeof c?c.split("/"):c}),[...r,{outlets:s}]}if(a.segmentPath)return[...r,a.segmentPath]}return"string"!=typeof a?[...r,a]:0===o?(a.split("/").forEach((s,c)=>{0==c&&"."===s||(0==c&&""===s?t=!0:".."===s?n++:""!=s&&r.push(s))}),r):[...r,a]},[]);return new gv(t,n,i)}(t);if(a.toRoot())return Ss(n.root,n.root,new V2([],{}),i,r);const o=function o$(e,n,t){if(e.isAbsolute)return new zs(n.root,!0,0);if(-1===t.snapshot._lastPathIndex){const a=t.snapshot._urlSegment;return new zs(a,a===n.root,0)}const i=ei(e.commands[0])?0:1;return function s$(e,n,t){let i=e,r=n,a=t;for(;a>r;){if(a-=r,i=i.parent,!i)throw new Error("Invalid number of '../'");r=i.segments.length}return new zs(i,!1,r-a)}(t.snapshot._urlSegment,t.snapshot._lastPathIndex+i,e.numberOfDoubleDots)}(a,n,e),s=o.processChildren?ti(o.segmentGroup,o.index,a.commands):mv(o.segmentGroup,o.index,a.commands);return Ss(n.root,o.segmentGroup,s,i,r)}(l,this.currentUrlTree,t,f,null!=u?u:null)}navigateByUrl(t,i={skipLocationChange:!1}){const r=yt(t)?t:this.parseUrl(t),a=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(a,"imperative",null,i)}navigate(t,i={skipLocationChange:!1}){return function CW(e){for(let n=0;n<e.length;n++){const t=e[n];if(null==t)throw new Error(`The requested path contains ${t} segment at index ${n}`)}}(t),this.navigateByUrl(this.createUrlTree(t,i),i)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){let i;try{i=this.urlSerializer.parse(t)}catch(r){i=this.malformedUriErrorHandler(r,this.urlSerializer,t)}return i}isActive(t,i){let r;if(r=!0===i?Object.assign({},uW):!1===i?Object.assign({},fW):i,yt(t))return ev(this.currentUrlTree,t,r);const a=this.parseUrl(t);return ev(this.currentUrlTree,a,r)}removeEmptyProps(t){return Object.keys(t).reduce((i,r)=>{const a=t[r];return null!=a&&(i[r]=a),i},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new gn(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)})}scheduleNavigation(t,i,r,a,o){var s,c;if(this.disposed)return Promise.resolve(!1);let l,u,f;o?(l=o.resolve,u=o.reject,f=o.promise):f=new Promise((L,H)=>{l=L,u=H});const h=++this.navigationId;let p;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),p=r&&r.\u0275routerPageId?r.\u0275routerPageId:a.replaceUrl||a.skipLocationChange?null!==(s=this.browserPageId)&&void 0!==s?s:0:(null!==(c=this.browserPageId)&&void 0!==c?c:0)+1):p=0,this.setTransition({id:h,targetPageId:p,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:a,resolve:l,reject:u,promise:f,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),f.catch(L=>Promise.reject(L))}setBrowserUrl(t,i){const r=this.urlSerializer.serialize(t),a=Object.assign(Object.assign({},i.extras.state),this.generateNgRouterState(i.id,i.targetPageId));this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl?this.location.replaceState(r,"",a):this.location.go(r,"",a)}restoreHistory(t,i=!1){var r,a;if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)||0===o?this.currentUrlTree===(null===(a=this.currentNavigation)||void 0===a?void 0:a.finalUrl)&&0===o&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,i){const r=new $m(t.id,this.serializeUrl(t.extractedUrl),i);this.triggerEvent(r),t.resolve(!1)}generateNgRouterState(t,i){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:i}:{navigationId:t}}}return e.\u0275fac=function(t){za()},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})();function Rv(e){return"imperative"!==e}let de=(()=>{class e{constructor(t,i,r){this.router=t,this.route=i,this.locationStrategy=r,this.commands=null,this.href=null,this.onChanges=new C2,this.subscription=t.events.subscribe(a=>{a instanceof gn&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:null}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,i,r,a,o){if(0!==t||i||r||a||o||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const s={skipLocationChange:R6(this.skipLocationChange),replaceUrl:R6(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:R6(this.preserveFragment)})}}return e.\u0275fac=function(t){return new(t||e)(V(X1),V(Ce),V(it))},e.\u0275dir=U({type:e,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,i){1&t&&T("click",function(a){return i.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),2&t&&j("target",i.target)("href",i.href,Qe)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[N1]}),e})();function R6(e){return""===e||!!e}class Pv{}class Fv{preload(n,t){return a2(null)}}let Bv=(()=>{class e{constructor(t,i,r,a){this.router=t,this.injector=r,this.preloadingStrategy=a,this.loader=new Iv(r,i,c=>t.triggerEvent(new Wm(c)),c=>t.triggerEvent(new qm(c)))}setUpPreloading(){this.subscription=this.router.events.pipe(Z1(t=>t instanceof gn),pn(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(X4);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,i){const r=[];for(const a of i)if(a.loadChildren&&!a.canLoad&&a._loadedConfig){const o=a._loadedConfig;r.push(this.processRoutes(o.module,o.routes))}else a.loadChildren&&!a.canLoad?r.push(this.preloadConfig(t,a)):a.children&&r.push(this.processRoutes(t,a.children));return G1(r).pipe(q6(),m2(a=>{}))}preloadConfig(t,i){return this.preloadingStrategy.preload(i,()=>(i._loadedConfig?a2(i._loadedConfig):this.loader.load(t.injector,i)).pipe(b1(a=>(i._loadedConfig=a,this.processRoutes(a.module,a.routes)))))}}return e.\u0275fac=function(t){return new(t||e)(q(X1),q(fd),q(R1),q(Pv))},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})(),Rs=(()=>{class e{constructor(t,i,r={}){this.router=t,this.viewportScroller=i,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof q0?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof gn&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Ym&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,i){this.router.triggerEvent(new Ym(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return e.\u0275fac=function(t){za()},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})();const bt=new v2("ROUTER_CONFIGURATION"),Uv=new v2("ROUTER_FORROOT_GUARD"),gW=[So,{provide:rv,useClass:av},{provide:X1,useFactory:function yW(e,n,t,i,r,a,o={},s,c){const l=new X1(null,e,n,t,i,r,Zm(a));return s&&(l.urlHandlingStrategy=s),c&&(l.routeReuseStrategy=c),function bW(e,n){e.errorHandler&&(n.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(n.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(n.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(n.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(n.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(n.urlUpdateStrategy=e.urlUpdateStrategy),e.canceledNavigationResolution&&(n.canceledNavigationResolution=e.canceledNavigationResolution)}(o,l),o.enableTracing&&l.events.subscribe(u=>{var f,h;null===(f=console.group)||void 0===f||f.call(console,`Router Event: ${u.constructor.name}`),console.log(u.toString()),console.log(u),null===(h=console.groupEnd)||void 0===h||h.call(console)}),l},deps:[rv,Ln,So,R1,fd,Is,bt,[class oW{},new be],[class iW{},new be]]},Ln,{provide:Ce,useFactory:function LW(e){return e.routerState.root},deps:[X1]},Bv,Fv,class pW{preload(n,t){return t().pipe(Re(()=>a2(null)))}},{provide:bt,useValue:{enableTracing:!1}}];function mW(){return new gd("Router",X1)}let jv=(()=>{class e{constructor(t,i){}static forRoot(t,i){return{ngModule:e,providers:[gW,Gv(t),{provide:Uv,useFactory:MW,deps:[[X1,new be,new u5]]},{provide:bt,useValue:i||{}},{provide:it,useFactory:_W,deps:[nt,[new C8(Do),new be],bt]},{provide:Rs,useFactory:vW,deps:[X1,wI,bt]},{provide:Pv,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:Fv},{provide:gd,multi:!0,useFactory:mW},[Ps,{provide:uo,multi:!0,useFactory:VW,deps:[Ps]},{provide:$v,useFactory:HW,deps:[Ps]},{provide:ud,multi:!0,useExisting:$v}]]}}static forChild(t){return{ngModule:e,providers:[Gv(t)]}}}return e.\u0275fac=function(t){return new(t||e)(q(Uv,8),q(X1,8))},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({}),e})();function vW(e,n,t){return t.scrollOffset&&n.setOffset(t.scrollOffset),new Rs(e,n,t)}function _W(e,n,t={}){return t.useHash?new Id(e,n):new kd(e,n)}function MW(e){return"guarded"}function Gv(e){return[{provide:ZD,multi:!0,useValue:e},{provide:Is,multi:!0,useValue:e}]}let Ps=(()=>{class e{constructor(t){this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new C2}appInitializer(){return this.injector.get(ak,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let i=null;const r=new Promise(s=>i=s),a=this.injector.get(X1),o=this.injector.get(bt);return"disabled"===o.initialNavigation?(a.setUpLocationChangeListener(),i(!0)):"enabled"===o.initialNavigation||"enabledBlocking"===o.initialNavigation?(a.hooks.afterPreactivation=()=>this.initNavigation?a2(null):(this.initNavigation=!0,i(!0),this.resultOfPreactivationDone),a.initialNavigation()):i(!0),r})}bootstrapListener(t){const i=this.injector.get(bt),r=this.injector.get(Bv),a=this.injector.get(Rs),o=this.injector.get(X1),s=this.injector.get(F5);t===s.components[0]&&(("enabledNonBlocking"===i.initialNavigation||void 0===i.initialNavigation)&&o.initialNavigation(),r.setUpPreloading(),a.init(),o.resetRootComponentType(s.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return e.\u0275fac=function(t){return new(t||e)(q(R1))},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})();function VW(e){return e.appInitializer.bind(e)}function HW(e){return e.bootstrapListener.bind(e)}const $v=new v2("Router Initializer");let DW=(()=>{class e{constructor(){this.title="config-ui",this.logoSrc="assets/images/homebridge-eufy-security.png"}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=s2({type:e,selectors:[["app-root"]],decls:16,vars:1,consts:[[1,"card","card-body",2,"width","100%"],[1,"logo"],[1,"logo",3,"src"],[1,"text-center"],[2,"font-weight","800"],[1,"pluginContent",2,"max-width","720px !important"],[1,"footer"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"div",1),R(2,"img",2),m(),g(3,"h3",3),y(4," Welcome to"),R(5,"br"),g(6,"b",4),y(7,"Eufy Security Plugin"),m()(),g(8,"h6",3),y(9,"Homebridge plugin for Eufy Security Devices"),m(),R(10,"hr"),g(11,"div",5),R(12,"router-outlet"),m(),R(13,"hr"),g(14,"div",6),y(15,"We are not affiliated, associated, authorized, endorsed by, or in any way officially connected with Anker Innovations Technology Co.LTd, and Shenzhen Oceanwing Smart Innovations Technology Co., Ltd, and its affiliated companies within the Anker Group, or any of its subsidiaries or its affiliates. "),m()()),2&t&&(_(2),b("src",i.logoSrc,Qe))},directives:[Es],styles:["div.logo[_ngcontent-%COMP%]{text-align:center;margin:0 0 5px}img.logo[_ngcontent-%COMP%]{text-align:center;margin:0 auto;max-width:75%;height:auto;object-fit:cover}.footer[_ngcontent-%COMP%]{font-size:small;color:#888}"]}),e})();function Wv(e,n,t,i,r,a,o){try{var s=e[a](o),c=s.value}catch(l){return void t(l)}s.done?n(c):Promise.resolve(c).then(i,r)}function L2(e){return function(){var n=this,t=arguments;return new Promise(function(i,r){var a=e.apply(n,t);function o(c){Wv(a,i,r,o,s,"next",c)}function s(c){Wv(a,i,r,o,s,"throw",c)}o(void 0)})}}var pM={prefix:"fas",iconName:"circle",icon:[512,512,[128308,128309,128992,128993,128994,128995,128996,9898,9899,11044,61708,61915,9679],"f111","M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256z"]},AM={prefix:"fas",iconName:"circle-minus",icon:[512,512,["minus-circle"],"f056","M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM168 232C154.7 232 144 242.7 144 256C144 269.3 154.7 280 168 280H344C357.3 280 368 269.3 368 256C368 242.7 357.3 232 344 232H168z"]},RM={prefix:"fas",iconName:"circle-plus",icon:[512,512,["plus-circle"],"f055","M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM256 368C269.3 368 280 357.3 280 344V280H344C357.3 280 368 269.3 368 256C368 242.7 357.3 232 344 232H280V168C280 154.7 269.3 144 256 144C242.7 144 232 154.7 232 168V232H168C154.7 232 144 242.7 144 256C144 269.3 154.7 280 168 280H232V344C232 357.3 242.7 368 256 368z"]},vy={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M150.7 92.77C195 58.27 251.8 32 320 32C400.8 32 465.5 68.84 512.6 112.6C559.4 156 590.7 207.1 605.5 243.7C608.8 251.6 608.8 260.4 605.5 268.3C592.1 300.6 565.2 346.1 525.6 386.7L630.8 469.1C641.2 477.3 643.1 492.4 634.9 502.8C626.7 513.2 611.6 515.1 601.2 506.9L9.196 42.89C-1.236 34.71-3.065 19.63 5.112 9.196C13.29-1.236 28.37-3.065 38.81 5.112L150.7 92.77zM223.1 149.5L313.4 220.3C317.6 211.8 320 202.2 320 191.1C320 180.5 316.1 169.7 311.6 160.4C314.4 160.1 317.2 159.1 320 159.1C373 159.1 416 202.1 416 255.1C416 269.7 413.1 282.7 407.1 294.5L446.6 324.7C457.7 304.3 464 280.9 464 255.1C464 176.5 399.5 111.1 320 111.1C282.7 111.1 248.6 126.2 223.1 149.5zM320 480C239.2 480 174.5 443.2 127.4 399.4C80.62 355.1 49.34 304 34.46 268.3C31.18 260.4 31.18 251.6 34.46 243.7C44 220.8 60.29 191.2 83.09 161.5L177.4 235.8C176.5 242.4 176 249.1 176 255.1C176 335.5 240.5 400 320 400C338.7 400 356.6 396.4 373 389.9L446.2 447.5C409.9 467.1 367.8 480 320 480H320z"]},v9={prefix:"fas",iconName:"rotate",icon:[512,512,[128260,"sync-alt"],"f2f1","M449.9 39.96l-48.5 48.53C362.5 53.19 311.4 32 256 32C161.5 32 78.59 92.34 49.58 182.2c-5.438 16.81 3.797 34.88 20.61 40.28c16.97 5.5 34.86-3.812 40.3-20.59C130.9 138.5 189.4 96 256 96c37.96 0 73 14.18 100.2 37.8L311.1 178C295.1 194.8 306.8 223.4 330.4 224h146.9C487.7 223.7 496 215.3 496 204.9V59.04C496 34.99 466.9 22.95 449.9 39.96zM441.8 289.6c-16.94-5.438-34.88 3.812-40.3 20.59C381.1 373.5 322.6 416 256 416c-37.96 0-73-14.18-100.2-37.8L200 334C216.9 317.2 205.2 288.6 181.6 288H34.66C24.32 288.3 16 296.7 16 307.1v145.9c0 24.04 29.07 36.08 46.07 19.07l48.5-48.53C149.5 458.8 200.6 480 255.1 480c94.45 0 177.4-60.34 206.4-150.2C467.9 313 458.6 294.1 441.8 289.6z"]},M9={prefix:"fas",iconName:"screwdriver-wrench",icon:[512,512,["tools"],"f7d9","M331.8 224.1c28.29 0 54.88 10.99 74.86 30.97l19.59 19.59c40.01-17.74 71.25-53.3 81.62-96.65c5.725-23.92 5.34-47.08 .2148-68.4c-2.613-10.88-16.43-14.51-24.34-6.604l-68.9 68.9h-75.6V97.2l68.9-68.9c7.912-7.912 4.275-21.73-6.604-24.34c-21.32-5.125-44.48-5.51-68.4 .2148c-55.3 13.23-98.39 60.22-107.2 116.4C224.5 128.9 224.2 137 224.3 145l82.78 82.86C315.2 225.1 323.5 224.1 331.8 224.1zM384 278.6c-23.16-23.16-57.57-27.57-85.39-13.9L191.1 158L191.1 95.99l-127.1-95.99L0 63.1l96 127.1l62.04 .0077l106.7 106.6c-13.67 27.82-9.251 62.23 13.91 85.39l117 117.1c14.62 14.5 38.21 14.5 52.71-.0016l52.75-52.75c14.5-14.5 14.5-38.08-.0016-52.71L384 278.6zM227.9 307L168.7 247.9l-148.9 148.9c-26.37 26.37-26.37 69.08 0 95.45C32.96 505.4 50.21 512 67.5 512s34.54-6.592 47.72-19.78l119.1-119.1C225.5 352.3 222.6 329.4 227.9 307zM64 472c-13.25 0-24-10.75-24-24c0-13.26 10.75-24 24-24S88 434.7 88 448C88 461.3 77.25 472 64 472z"]},x=(()=>{return(e=x||(x={}))[e.STATION=0]="STATION",e[e.CAMERA=1]="CAMERA",e[e.SENSOR=2]="SENSOR",e[e.FLOODLIGHT=3]="FLOODLIGHT",e[e.CAMERA_E=4]="CAMERA_E",e[e.DOORBELL=5]="DOORBELL",e[e.BATTERY_DOORBELL=7]="BATTERY_DOORBELL",e[e.CAMERA2C=8]="CAMERA2C",e[e.CAMERA2=9]="CAMERA2",e[e.MOTION_SENSOR=10]="MOTION_SENSOR",e[e.KEYPAD=11]="KEYPAD",e[e.CAMERA2_PRO=14]="CAMERA2_PRO",e[e.CAMERA2C_PRO=15]="CAMERA2C_PRO",e[e.BATTERY_DOORBELL_2=16]="BATTERY_DOORBELL_2",e[e.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.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",x;var e})();class En{static isDoorbell(n){return n===x.DOORBELL||n===x.BATTERY_DOORBELL||n===x.BATTERY_DOORBELL_2||n===x.BATTERY_DOORBELL_PLUS||n===x.DOORBELL_SOLO}static isCamera(n){return n===x.CAMERA||n===x.CAMERA2||n===x.CAMERA_E||n===x.CAMERA2C||n===x.INDOOR_CAMERA||n===x.INDOOR_PT_CAMERA||n===x.FLOODLIGHT||n===x.DOORBELL||n===x.BATTERY_DOORBELL||n===x.BATTERY_DOORBELL_2||n===x.BATTERY_DOORBELL_PLUS||n===x.DOORBELL_SOLO||n===x.CAMERA2C_PRO||n===x.CAMERA2_PRO||n===x.INDOOR_CAMERA_1080||n===x.INDOOR_PT_CAMERA_1080||n===x.SOLO_CAMERA||n===x.SOLO_CAMERA_PRO||n===x.SOLO_CAMERA_SPOTLIGHT_1080||n===x.SOLO_CAMERA_SPOTLIGHT_2K||n===x.SOLO_CAMERA_SPOTLIGHT_SOLAR||n===x.INDOOR_OUTDOOR_CAMERA_1080P||n===x.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT||n===x.INDOOR_OUTDOOR_CAMERA_2K||n===x.INDOOR_COST_DOWN_CAMERA||n===x.FLOODLIGHT_CAMERA_8422||n===x.FLOODLIGHT_CAMERA_8423||n===x.FLOODLIGHT_CAMERA_8424}static supportsRTSP(n){return n===x.CAMERA||n===x.CAMERA2||n===x.CAMERA2C||n===x.CAMERA2C_PRO||n===x.CAMERA_E||n===x.INDOOR_CAMERA||n===x.INDOOR_CAMERA_1080||n===x.INDOOR_OUTDOOR_CAMERA_1080P||n===x.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT||n===x.INDOOR_OUTDOOR_CAMERA_2K||n===x.INDOOR_PT_CAMERA||n===x.INDOOR_PT_CAMERA_1080||n===x.INDOOR_COST_DOWN_CAMERA||n===x.FLOODLIGHT_CAMERA_8423}static supportsTalkback(n){return n===x.CAMERA2||n===x.CAMERA2C||n===x.CAMERA2C_PRO||n===x.CAMERA2_PRO||n===x.DOORBELL||n===x.BATTERY_DOORBELL||n===x.BATTERY_DOORBELL_2||n===x.BATTERY_DOORBELL_PLUS||n===x.DOORBELL_SOLO||n===x.INDOOR_CAMERA||n===x.INDOOR_CAMERA_1080||n===x.INDOOR_OUTDOOR_CAMERA_1080P||n===x.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT||n===x.INDOOR_OUTDOOR_CAMERA_2K||n===x.INDOOR_PT_CAMERA||n===x.INDOOR_PT_CAMERA_1080||n===x.INDOOR_COST_DOWN_CAMERA||n===x.SOLO_CAMERA||n===x.SOLO_CAMERA_PRO||n===x.SOLO_CAMERA_SPOTLIGHT_1080||n===x.SOLO_CAMERA_SPOTLIGHT_2K||n===x.SOLO_CAMERA_SPOTLIGHT_SOLAR||n===x.FLOODLIGHT||n===x.FLOODLIGHT_CAMERA_8422||n===x.FLOODLIGHT_CAMERA_8423||n===x.FLOODLIGHT_CAMERA_8424}}const k9=new Map([[x.STATION,{image:"homebase2_large.jpg",padding:"0px"}],[x.CAMERA,{image:"eufycam_large.jpg",padding:"0px"}],[x.SENSOR,{image:"sensor_large.jpg",padding:"0px"}],[x.FLOODLIGHT,{image:"floodlight_large.jpg",padding:"0px"}],[x.CAMERA_E,{image:"eufycam_large.jpg",padding:"0px"}],[x.DOORBELL,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[x.BATTERY_DOORBELL,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[x.CAMERA2C,{image:"eufycam2c_large.jpg",padding:"0px"}],[x.CAMERA2,{image:"eufycam2_large.jpg",padding:"0px"}],[x.MOTION_SENSOR,{image:"motionsensor_large.jpg",padding:"0px"}],[x.KEYPAD,{image:"keypad_large.jpg",padding:"0px"}],[x.CAMERA2_PRO,{image:"eufycam2pro_large.jpg",padding:"0px"}],[x.CAMERA2C_PRO,{image:"eufycam2cpro_large.jpg",padding:"0px"}],[x.BATTERY_DOORBELL_2,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[x.INDOOR_CAMERA,{image:"indoorcammini_large.jpg",padding:"0px"}],[x.INDOOR_PT_CAMERA,{image:"indoorcamp24_large.jpg",padding:"0px"}],[x.SOLO_CAMERA,{image:"solocame20_large.jpg",padding:"0px"}],[x.SOLO_CAMERA_PRO,{image:"solocame20_large.jpg",padding:"0px"}],[x.INDOOR_CAMERA_1080,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[x.INDOOR_PT_CAMERA_1080,{image:"indoorcamp24_large.jpg",padding:"0px"}],[x.FLOODLIGHT_CAMERA_8422,{image:"floodlight_large.jpg",padding:"0px"}],[x.FLOODLIGHT_CAMERA_8423,{image:"floodlight2pro_large.jpg",padding:"0px"}],[x.FLOODLIGHT_CAMERA_8424,{image:"floodlight2_large.jpg",padding:"0px"}],[x.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[x.INDOOR_OUTDOOR_CAMERA_2K,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[x.INDOOR_OUTDOOR_CAMERA_1080P,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[x.LOCK_BLE,{image:"smartlock_touch_t8510_large.jpg",padding:"0px"}],[x.LOCK_WIFI,{image:"smartlock_touch_t8510_large.jpg",padding:"0px"}],[x.LOCK_BLE_NO_FINGER,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[x.LOCK_WIFI_NO_FINGER,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[x.LOCK_8503,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[x.LOCK_8530,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[x.LOCK_85A3,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[x.LOCK_8592,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[x.LOCK_8504,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[x.SOLO_CAMERA_SPOTLIGHT_1080,{image:"solooutdoorcamc24_large.jpg",padding:"15px"}],[x.SOLO_CAMERA_SPOTLIGHT_2K,{image:"solooutdoorcamc24_large.jpg",padding:"15px"}],[x.SOLO_CAMERA_SPOTLIGHT_SOLAR,{image:"solocams40_large.jpg",padding:"10px"}],[x.SMART_DROP,{image:"unknown.png",padding:"20px"}],[x.BATTERY_DOORBELL_PLUS,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[x.DOORBELL_SOLO,{image:"wireddoorbelldual_large.jpg",padding:"0px"}],[x.INDOOR_COST_DOWN_CAMERA,{image:"indoorcammini_large.jpg",padding:"0px"}],[x.CAMERA_GUN,{image:"unknown.png",padding:"20px"}],[x.CAMERA_SNAIL,{image:"unknown.png",padding:"20px"}],[x.CAMERA_FG,{image:"unknown.png",padding:"20px"}],[x.SMART_SAFE_7400,{image:"unknown.png",padding:"20px"}],[x.SMART_SAFE_7401,{image:"unknown.png",padding:"20px"}],[x.SMART_SAFE_7402,{image:"unknown.png",padding:"20px"}],[x.SMART_SAFE_7403,{image:"unknown.png",padding:"20px"}]]);let J2=(()=>{class e extends EventTarget{constructor(){super(),this.stations=[],this.devices=[],this.accessories$=h3(window.homebridge,"addAccessory"),this.init()}init(){this.accessories$.subscribe(t=>{this.loadStoredAccessories()}),this.loadStoredAccessories()}getStations(){return this.stations}getDevices(){return this.devices}getStation(t){return this.stations.find(i=>i.uniqueId===t)}getDevice(t){return this.devices.find(i=>i.uniqueId===t)}loadStoredAccessories(){var t=this;return L2(function*(){try{const i=yield window.homebridge.request("/storedAccessories");return i.forEach(r=>{t.addAccessory(r)}),0!==i.length&&t.dispatchEvent(new Event("newAccessories")),Promise.resolve(0!==i.length)}catch(i){return Promise.reject(i)}})()}addAccessory(t){const i=t.station?this.stations:this.devices;i.find(r=>r.uniqueId===t.uniqueId)||i.push(t)}getConfig(){var t=this;return L2(function*(){return t.config?Promise.resolve(t.config):t.getPlatformConfig()})()}updateConfig(t,i){var r=this;return L2(function*(){try{yield window.homebridge.updatePluginConfig([t]),r.config=t,i&&(yield window.homebridge.savePluginConfig()),r.dispatchEvent(new Event("configChanged"))}catch(a){console.log("There was an error updating the credentials in your config: "+a)}})()}getPlatformConfig(){var t=this;return L2(function*(){try{const i=yield window.homebridge.getPluginConfig();return i.length>0?(t.config=i[0],t.config.platform="EufySecurity",Promise.resolve(i[0])):Promise.reject("Could not get Platform config")}catch(i){return Promise.reject(i)}})()}getCachedName(t){return L2(function*(){let r;return(yield window.homebridge.getCachedAccessories()).forEach(a=>{a.context&&a.context.device&&a.context.device.uniqueId===t.uniqueId&&a.context.device.station===t.station&&(r=a.context.device.displayName)}),Promise.resolve(r)})()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function $l2(e,n){if(1&e){const t=V1();g(0,"div",2)(1,"h4",3),y(2,"Refresh stations and devices"),m(),g(3,"button",4),T("click",function(){return W(t).$implicit.dismiss("Cross click")}),m()(),g(4,"div",5)(5,"div",6),y(6," To refresh all stations and devices you will be logged into your eufy account. This can interfere with the plugins connection to the eufy cloud. "),R(7,"p"),g(8,"b",7),y(9,"We strongly recommened that you restart the plugin after you're done with the configuration even if you didn't change any settings."),m(),R(10,"p"),y(11," Otherwise you might experience glitches like no longer working push notifications for the plugin (see "),g(12,"a",8),y(13,"here"),m(),y(14," for more information). "),m()(),g(15,"div",9)(16,"a",10),T("click",function(){return W(t).$implicit.close("Login")}),y(17,"Login with eufy"),m()()}}function Wl2(e,n){1&e&&(g(0,"div",11)(1,"div",12),R(2,"div",13),g(3,"div",14)(4,"div",15)(5,"div",16),y(6," Loading Accessories... "),g(7,"div",17),R(8,"div",18),m()()()(),R(9,"div",13),m()())}function ql2(e,n){if(1&e&&(g(0,"span",42),R(1,"fa-icon",43),m()),2&e){const t=E(3);_(1),b("icon",t.ignoreIcon)}}function Yl2(e,n){if(1&e&&(g(0,"div",31)(1,"div",32)(2,"div",33)(3,"a",34)(4,"div",35),R(5,"img",36),g(6,"span",37),R(7,"fa-icon",38),m(),O(8,ql2,2,1,"span",39),m()()()(),g(9,"span",40),y(10),m(),g(11,"span",41),y(12),m()()),2&e){const t=n.$implicit,i=E(2);let r;_(3),f6("routerLink","/stationConfig/",t.uniqueId,""),_(2),b("src","assets/devices/"+(i.DeviceImage.get(t.type)?null==(r=i.DeviceImage.get(t.type))?null:r.image:"unknown.png"),Qe),j("style",i.getDevicePanelStyle(t),Q4),_(2),b("icon",i.settingsIcon),_(1),b("ngIf",t.ignored),_(2),S5(t.cachedName?t.cachedName:t.displayName),_(2),Q3("(",t.uniqueId,")")}}function Kl2(e,n){if(1&e&&(g(0,"span",42),R(1,"fa-icon",43),m()),2&e){const t=E(3);_(1),b("icon",t.ignoreIcon)}}function Ql2(e,n){if(1&e&&(g(0,"div",31)(1,"div",32)(2,"div",33)(3,"a",34)(4,"div",35),R(5,"img",36),g(6,"span",37),R(7,"fa-icon",38),m(),O(8,Kl2,2,1,"span",39),m()()()(),g(9,"span",40),y(10),m(),g(11,"span",41),y(12),m()()),2&e){const t=n.$implicit,i=E(2);let r;_(3),f6("routerLink","/cameraConfig/",t.uniqueId,""),_(2),b("src","assets/devices/"+(i.DeviceImage.get(t.type)?null==(r=i.DeviceImage.get(t.type))?null:r.image:"unknown.png"),Qe),j("style",i.getDevicePanelStyle(t),Q4),_(2),b("icon",i.settingsIcon),_(1),b("ngIf",t.ignored),_(2),S5(t.cachedName?t.cachedName:t.displayName),_(2),Q3("(",t.uniqueId,")")}}function Zl2(e,n){if(1&e){const t=V1();g(0,"div",11)(1,"div",19)(2,"div",20)(3,"button",21),T("click",function(){W(t);const r=E(),a=K3(1);return r.openReloadModal(a)}),R(4,"fa-icon",22),m()(),g(5,"div",23)(6,"a",24),y(7,"Plugin Settings"),m()()(),R(8,"p"),g(9,"span"),y(10,"Click on any device below to access its settings."),m(),R(11,"p"),g(12,"div",25)(13,"div",26),y(14," Stations "),m(),g(15,"div",27)(16,"div",19),O(17,Yl2,13,7,"div",28),m()()(),R(18,"p"),g(19,"div",25)(20,"div",26),y(21," Devices "),m(),g(22,"div",29)(23,"div",19),O(24,Ql2,13,7,"div",28),m()()(),R(25,"p"),g(26,"span")(27,"i"),y(28,"The images used above are 'best effort' for now, since we do not own every eufy device. If you experience that your device is depicted with a wrong image please feel free to let us know in an issue on our "),g(29,"a",30),y(30,"Github page."),m()()()()}if(2&e){const t=E();_(4),b("icon",t.reloadIcon),_(13),b("ngForOf",t.stations),_(7),b("ngForOf",t.devices)}}let Jl2=(()=>{class e{constructor(t,i,r,a){this.modalService=t,this.pluginService=i,this.route=r,this.routerService=a,this.stations=[],this.devices=[],this.settingsIcon=M9,this.ignoreIcon=vy,this.reloadIcon=v9,this.DeviceImage=k9,this.closeResult=""}ngOnInit(){this.waitForAccessories="true"===this.route.snapshot.paramMap.get("waitForAccessories"),this.pluginService.addEventListener("newAccessories",()=>{console.log("plugin accessories have changed. updating..."),this.updateDevices(),this.updateStations()}),this.updateStations(),this.updateDevices(),!this.waitForAccessories&&0===this.stations.length&&0===this.devices.length&&this.pluginService.loadStoredAccessories().then(t=>{t||this.routerService.navigateByUrl("/login")}).catch(t=>{this.routerService.navigateByUrl("/login")})}updateStations(){this.stations=this.pluginService.getStations(),this.updateProperties()}updateDevices(){this.devices=this.pluginService.getDevices(),this.updateProperties()}updateProperties(){var t=this;return L2(function*(){const i=yield t.pluginService.getConfig();Array.isArray(i.ignoreStations)&&t.stations.forEach(r=>{r.ignored=void 0!==i.ignoreStations.find(a=>a===r.uniqueId)}),Array.isArray(i.ignoreDevices)&&t.devices.forEach(r=>{r.ignored=void 0!==i.ignoreDevices.find(a=>a===r.uniqueId)}),t.stations.forEach(r=>{t.pluginService.getCachedName(r).then(a=>r.cachedName=a)}),t.devices.forEach(r=>{t.pluginService.getCachedName(r).then(a=>r.cachedName=a)})})()}openReloadModal(t){this.modalService.open(t,{ariaLabelledBy:"modal-basic-title",centered:!0}).result.then(i=>{this.closeResult=`Closed with: ${i}`},i=>{this.closeResult=`Dismissed ${this.getDismissReason(i)}`})}getDismissReason(t){return t===pt.ESC?"by pressing ESC":t===pt.BACKDROP_CLICK?"by clicking on a backdrop":`with: ${t}`}getDevicePanelStyle(t){var i;let r="";return t.ignored&&(r+="opacity: 0.2;"),k9.get(t.type)?r+="padding:"+(null===(i=k9.get(t.type))||void 0===i?void 0:i.padding):r+="padding:20px",r}}return e.\u0275fac=function(t){return new(t||e)(V(vg),V(J2),V(Ce),V(X1))},e.\u0275cmp=s2({type:e,selectors:[["app-accessory-list"]],inputs:{waitForAccessories:"waitForAccessories"},decls:4,vars:2,consts:[["reloadModal",""],["class","container",4,"ngIf"],[1,"modal-header"],["id","modal-basic-title",1,"modal-title"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[1,"modal-body"],[1,"mb-3"],[2,"color","#dc3545"],["href","https://github.com/homebridge-eufy-security/plugin/issues/59#issuecomment-1147314942","target","_blank","rel","noopener noreferrer"],[1,"modal-footer"],["routerLink","/login",1,"btn","btn-success",3,"click"],[1,"container"],[1,"row","pl-5","pr-5"],[1,"col",2,"max-width","20%"],[1,"col","d-flex","justify-content-center"],[1,"card","shadow-sm","text-center","pt-3","pb-3",2,"width","100%"],[1,"mx-auto"],[1,"progress",2,"height","8px"],["role","progressbar","aria-valuenow","75","aria-valuemin","0","aria-valuemax","100",1,"progress-bar","progress-bar-striped","bg-info","progress-bar-animated",2,"width","75%"],[1,"row"],[1,"col-6"],["type","button",1,"btn","btn-success",3,"click"],["size","lg",3,"icon"],[1,"col-6","text-end"],["routerLink","/advancedConfig",1,"btn","btn-secondary"],[1,"card"],[1,"card-header"],[1,"card-body","pt-0","pb-0"],["class","col-6 col-sm-4 mt-3 mb-3 d-flex flex-column align-items-center",4,"ngFor","ngForOf"],[1,"card-body"],["href","https://github.com/homebridge-eufy-security/plugin","target","_blank","rel","noopener noreferrer"],[1,"col-6","col-sm-4","mt-3","mb-3","d-flex","flex-column","align-items-center"],[1,"col-12","col-sm-7"],[1,"text-center"],[2,"color","black",3,"routerLink"],[1,"device","ratio","ratio-1x1","border","rounded","shadow-sm"],[1,"deviceimage",3,"src"],[1,"devicesettingsicon","d-flex","border","align-items-center","justify-content-center",2,"z-index","15"],["size","2x",3,"icon"],["class","d-flex border align-items-top justify-content-end","style","z-index: 20;",4,"ngIf"],[1,"col-12","text-center"],[1,"col-12","serial","fw-light","text-center"],[1,"d-flex","border","align-items-top","justify-content-end",2,"z-index","20"],["size","xs",1,"mt-sm-1","m-sm-2","m-1","mt-0",3,"icon"]],template:function(t,i){1&t&&(O(0,$l2,18,0,"ng-template",null,0,J3),O(2,Wl2,10,0,"div",1),O(3,Zl2,31,3,"div",1)),2&t&&(_(2),b("ngIf",0===i.stations.length&&0===i.devices.length),_(1),b("ngIf",0!==i.stations.length||0!==i.devices.length))},directives:[de,B1,Pm,rt],styles:[".device[_ngcontent-%COMP%]:hover{transform:scale(1.05);border-color:#ffc107!important;color:#ffc107}.device[_ngcontent-%COMP%]{background-color:#fff!important;color:#000!important}.device[_ngcontent-%COMP%]:hover .deviceimage[_ngcontent-%COMP%]{opacity:.5}.device[_ngcontent-%COMP%] .devicesettingsicon[_ngcontent-%COMP%]{display:none!important}.device[_ngcontent-%COMP%]:hover .devicesettingsicon[_ngcontent-%COMP%]{display:flex!important;color:#ffa000!important}.serial[_ngcontent-%COMP%]{font-size:12px}"]}),e})(),Xl2=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=s2({type:e,selectors:[["app-edit-credentials"]],decls:6,vars:0,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-center"],[1,"mb-3","mb-sm-0"],["routerLink","/login",1,"btn","btn-secondary","col-12","col-sm-4"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"div",1)(2,"span",2),y(3,"Change username, password and country"),m(),g(4,"a",3),y(5,"New Login"),m()()())},directives:[de],encapsulation:2}),e})();class y1{constructor(n){this.pluginService=n,this.config={},this.pluginService.getConfig().then(t=>{this.config=t}).catch(t=>console.log("Could not get config in config interpreter: "+t))}getCameraConfig(n){var t=this;return L2(function*(){const i=yield t.pluginService.getConfig();return Array.isArray(i.cameras)?Promise.resolve(i.cameras.find(r=>r.serialNumber===n)):Promise.resolve(void 0)})()}getStationConfig(n){var t=this;return L2(function*(){const i=yield t.pluginService.getConfig();return Array.isArray(i.stations)?Promise.resolve(i.stations.find(r=>r.serialNumber===n)):Promise.resolve(void 0)})()}updateConfig(n,t){var i=this;return L2(function*(){let r=yield i.pluginService.getConfig();if(t||(r=Object.assign(Object.assign({},r),n)),t&&!1===t.station){Array.isArray(r.cameras)||(r.cameras=[]);let a=-1;r.cameras.forEach((o,s)=>{o.serialNumber===t.uniqueId&&(a=s)}),a>=0?r.cameras[a]=Object.assign(Object.assign({},r.cameras[a]),n):r.cameras.push(Object.assign({serialNumber:t.uniqueId},n))}else if(t&&!0===t.station){Array.isArray(r.stations)||(r.stations=[]);let a=-1;r.stations.forEach((o,s)=>{o.serialNumber===t.uniqueId&&(a=s)}),a>=0?r.stations[a]=Object.assign(Object.assign({},r.stations[a]),n):r.stations.push(Object.assign({serialNumber:t.uniqueId},n))}i.pluginService.updateConfig(r)})()}}let eu2=(()=>{class e extends y1{constructor(t){super(t),this.value=10,this.inputIsInvalid=!1}ngOnInit(){this.readValue()}readValue(){Object.prototype.hasOwnProperty.call(this.config,"pollingIntervalMinutes")&&(this.value=this.config.pollingIntervalMinutes)}update(){this.inputIsInvalid=!1,(!this.value||this.value<0)&&(this.inputIsInvalid=!0),this.inputIsInvalid||this.updateConfig({pollingIntervalMinutes:this.value})}}return e.\u0275fac=function(t){return new(t||e)(V(J2))},e.\u0275cmp=s2({type:e,selectors:[["app-polling-interval-minutes"]],features:[J],decls:13,vars:2,consts:[[1,"settingsItem","row","p-3","pb-0"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],[1,"input-group","input-group-sm"],["type","number","aria-label","Polling interval minutes","aria-describedby","basic-addon2",3,"ngModel","ngModelChange","change"],[1,"input-group-append"],["id","basic-addon2",1,"input-group-text"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Polling Interval"),m(),g(4,"div",2)(5,"div",3)(6,"input",4),T("ngModelChange",function(a){return i.value=a})("change",function(){return i.update()}),m(),g(7,"div",5)(8,"span",6),y(9,"minutes"),m()()()()(),g(10,"small")(11,"i"),y(12," Time in minutes before polling the eufy cloud for updated device information (set to 0 for no polling). "),m()()()),2&t&&(_(6),b("ngModel",i.value),j("class",i.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},directives:[b6,ze,M1,h1],encapsulation:2}),e})(),tu2=(()=>{class e extends y1{constructor(t){super(t),this.value=30,this.inputIsInvalid=!1}ngOnInit(){this.readValue()}readValue(){Object.prototype.hasOwnProperty.call(this.config,"CameraMaxLivestreamDuration")&&(this.value=this.config.CameraMaxLivestreamDuration)}update(){this.inputIsInvalid=!1,(!this.value||this.value<0)&&(this.inputIsInvalid=!0),this.inputIsInvalid||this.updateConfig({CameraMaxLivestreamDuration:this.value})}}return e.\u0275fac=function(t){return new(t||e)(V(J2))},e.\u0275cmp=s2({type:e,selectors:[["app-livestream-duration-seconds"]],features:[J],decls:13,vars:2,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],[1,"input-group","input-group-sm"],["type","number","aria-label","Polling interval minutes","aria-describedby","basic-addon2",3,"ngModel","ngModelChange","change"],[1,"input-group-append"],["id","basic-addon2",1,"input-group-text"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Maximum Livestream Duration"),m(),g(4,"div",2)(5,"div",3)(6,"input",4),T("ngModelChange",function(a){return i.value=a})("change",function(){return i.update()}),m(),g(7,"div",5)(8,"span",6),y(9,"seconds"),m()()()()(),g(10,"small")(11,"i"),y(12," Time in second before ending the livestream automatically (longer livestreams imply shorter batterylife) "),m()()()),2&t&&(_(6),b("ngModel",i.value),j("class",i.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},directives:[b6,ze,M1,h1],encapsulation:2}),e})(),nu2=(()=>{class e extends y1{constructor(t){super(t),this.model=!1}ngOnInit(){this.readValue()}readValue(){Object.prototype.hasOwnProperty.call(this.config,"enableDetailedLogging")&&(this.model=this.config.enableDetailedLogging)}update(){this.updateConfig({enableDetailedLogging:this.model})}}return e.\u0275fac=function(t){return new(t||e)(V(J2))},e.\u0275cmp=s2({type:e,selectors:[["app-enable-detailed-logging"]],features:[J],decls:9,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Debug Mode"),m(),g(4,"div",2)(5,"input",3),T("ngModelChange",function(a){return i.model=a})("change",function(){return i.update()}),m()()(),g(6,"small")(7,"i"),y(8," This will output more information to the homebridge logs. This helps the plugin team to understand what's going on. "),m()()()),2&t&&(_(5),b("ngModel",i.model))},directives:[C3,M1,h1],encapsulation:2}),e})(),iu2=(()=>{class e extends y1{constructor(t){super(t),this.value=!1}ngOnInit(){this.readValue()}readValue(){Object.prototype.hasOwnProperty.call(this.config,"omitLogFiles")&&(this.value=this.config.omitLogFiles)}update(){this.updateConfig({omitLogFiles:this.value})}}return e.\u0275fac=function(t){return new(t||e)(V(J2))},e.\u0275cmp=s2({type:e,selectors:[["app-omit-log-files"]],features:[J],decls:9,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Don't store log files"),m(),g(4,"div",2)(5,"input",3),T("ngModelChange",function(a){return i.value=a})("change",function(){return i.update()}),m()()(),g(6,"small")(7,"i"),y(8," This setting prevents log files to be stored to disk. If enabled, log messages will only be written to the Homebridge UI log window. "),m()()()),2&t&&(_(5),b("ngModel",i.value))},directives:[C3,M1,h1],encapsulation:2}),e})(),ru2=(()=>{class e extends y1{constructor(t){super(t),this.model=!1}ngOnInit(){this.readValue()}readValue(){Object.prototype.hasOwnProperty.call(this.config,"cleanCache")&&(this.model=this.config.cleanCache)}update(){this.updateConfig({cleanCache:this.model})}}return e.\u0275fac=function(t){return new(t||e)(V(J2))},e.\u0275cmp=s2({type:e,selectors:[["app-clean-cache"]],features:[J],decls:9,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Clean cache automatically"),m(),g(4,"div",2)(5,"input",3),T("ngModelChange",function(a){return i.model=a})("change",function(){return i.update()}),m()()(),g(6,"small")(7,"i"),y(8," When enabled, you let the plugin clean accessory when removed from the Eufy app. "),m()()()),2&t&&(_(5),b("ngModel",i.model))},directives:[C3,M1,h1],encapsulation:2}),e})();function au2(e,n){1&e&&(g(0,"span"),y(1,"These settings will only apply for this station. The global mappings can be found in the plugin settings."),m())}function ou2(e,n){1&e&&(g(0,"option",6),y(1,"Use global setting"),m()),2&e&&b("ngValue",void 0)}function su2(e,n){1&e&&(g(0,"option",6),y(1,"Use global setting"),m()),2&e&&b("ngValue",void 0)}function cu2(e,n){1&e&&(g(0,"option",6),y(1,"Use global setting"),m()),2&e&&b("ngValue",void 0)}function lu2(e,n){1&e&&(g(0,"option",6),y(1,"Use global setting"),m()),2&e&&b("ngValue",void 0)}let uu2=(()=>{class e extends y1{constructor(t){super(t),this.hkHome=void 0,this.hkAway=void 0,this.hkNight=void 0,this.hkOff=void 0}ngOnInit(){this.readValue()}readValue(){var t=this;return L2(function*(){const i=t.accessory?yield t.getStationConfig(t.accessory.uniqueId):yield t.pluginService.getConfig();i&&Object.prototype.hasOwnProperty.call(i,"hkHome")?t.hkHome=i.hkHome:t.accessory||(t.hkHome=1),i&&Object.prototype.hasOwnProperty.call(i,"hkAway")?t.hkAway=i.hkAway:t.accessory||(t.hkAway=0),i&&Object.prototype.hasOwnProperty.call(i,"hkNight")?t.hkNight=i.hkNight:t.accessory||(t.hkNight=3),i&&Object.prototype.hasOwnProperty.call(i,"hkOff")?t.hkOff=i.hkOff:t.accessory||(t.hkOff=63)})()}update(){var t=this;return L2(function*(){let i=t.accessory?yield t.getStationConfig(t.accessory.uniqueId):yield t.pluginService.getConfig();void 0===i&&(i={}),void 0===t.hkHome&&Object.prototype.hasOwnProperty.call(i,"hkHome")?delete i.hkHome:i.hkHome=t.hkHome,void 0===t.hkAway&&Object.prototype.hasOwnProperty.call(i,"hkAway")?delete i.hkAway:i.hkAway=t.hkAway,void 0===t.hkNight&&Object.prototype.hasOwnProperty.call(i,"hkNight")?delete i.hkNight:i.hkNight=t.hkNight,void 0===t.hkOff&&Object.prototype.hasOwnProperty.call(i,"hkOff")?delete i.hkOff:i.hkOff=t.hkOff;let r=yield t.pluginService.getConfig();if(t.accessory){Array.isArray(r.stations)||(r.stations=[]);let a=-1;r.stations.forEach((o,s)=>{var c;o.serialNumber===(null===(c=t.accessory)||void 0===c?void 0:c.uniqueId)&&(a=s)}),a>=0?r.stations[a]=i:(i.serialNumber=t.accessory.uniqueId,r.stations.push(i))}else r=i;t.pluginService.updateConfig(r)})()}}return e.\u0275fac=function(t){return new(t||e)(V(J2))},e.\u0275cmp=s2({type:e,selectors:[["app-guard-modes-mapping"]],inputs:{accessory:"accessory"},features:[J],decls:90,vars:41,consts:[[1,"settingsItem","row","p-3"],[4,"ngIf"],[1,"input-group","mb-1"],["for","inputGroupSelect01",1,"input-group-text","w-25"],["id","inputGroupSelect01",1,"form-select",3,"ngModel","ngModelChange","change"],[3,"ngValue",4,"ngIf"],[3,"ngValue"],["for","inputGroupSelect02",1,"input-group-text","w-25"],["id","inputGroupSelect02",1,"form-select",3,"ngModel","ngModelChange","change"],["for","inputGroupSelect03",1,"input-group-text","w-25"],["id","inputGroupSelect03",1,"form-select",3,"ngModel","ngModelChange","change"],["for","inputGroupSelect04",1,"input-group-text","w-25"],["id","inputGroupSelect04",1,"form-select",3,"ngModel","ngModelChange","change"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"span"),y(2,"Change how each mode in the HomeKit security system is mapped to the modes in the Eufy App."),m(),R(3,"p"),O(4,au2,2,0,"span",1),R(5,"p"),g(6,"div",2)(7,"label",3),y(8,"HomeKit Home"),m(),g(9,"select",4),T("ngModelChange",function(a){return i.hkHome=a})("change",function(){return i.update()}),O(10,ou2,2,1,"option",5),g(11,"option",6),y(12,"Eufy Home"),m(),g(13,"option",6),y(14,"Eufy Away"),m(),g(15,"option",6),y(16,"Eufy Schedule"),m(),g(17,"option",6),y(18,"Eufy Custom 1 (Night)"),m(),g(19,"option",6),y(20,"Eufy Custom 2"),m(),g(21,"option",6),y(22,"Eufy Custom 3"),m(),g(23,"option",6),y(24,"Eufy Geofencing"),m(),g(25,"option",6),y(26,"Eufy Disarmed"),m()()(),g(27,"div",2)(28,"label",7),y(29,"HomeKit Away"),m(),g(30,"select",8),T("ngModelChange",function(a){return i.hkAway=a})("change",function(){return i.update()}),O(31,su2,2,1,"option",5),g(32,"option",6),y(33,"Eufy Home"),m(),g(34,"option",6),y(35,"Eufy Away"),m(),g(36,"option",6),y(37,"Eufy Schedule"),m(),g(38,"option",6),y(39,"Eufy Custom 1 (Night)"),m(),g(40,"option",6),y(41,"Eufy Custom 2"),m(),g(42,"option",6),y(43,"Eufy Custom 3"),m(),g(44,"option",6),y(45,"Eufy Geofencing"),m(),g(46,"option",6),y(47,"Eufy Disarmed"),m()()(),g(48,"div",2)(49,"label",9),y(50,"HomeKit Night"),m(),g(51,"select",10),T("ngModelChange",function(a){return i.hkNight=a})("change",function(){return i.update()}),O(52,cu2,2,1,"option",5),g(53,"option",6),y(54,"Eufy Home"),m(),g(55,"option",6),y(56,"Eufy Away"),m(),g(57,"option",6),y(58,"Eufy Schedule"),m(),g(59,"option",6),y(60,"Eufy Custom 1 (Night)"),m(),g(61,"option",6),y(62,"Eufy Custom 2"),m(),g(63,"option",6),y(64,"Eufy Custom 3"),m(),g(65,"option",6),y(66,"Eufy Geofencing"),m(),g(67,"option",6),y(68,"Eufy Disarmed"),m()()(),g(69,"div",2)(70,"label",11),y(71,"HomeKit Off"),m(),g(72,"select",12),T("ngModelChange",function(a){return i.hkOff=a})("change",function(){return i.update()}),O(73,lu2,2,1,"option",5),g(74,"option",6),y(75,"Eufy Home"),m(),g(76,"option",6),y(77,"Eufy Away"),m(),g(78,"option",6),y(79,"Eufy Schedule"),m(),g(80,"option",6),y(81,"Eufy Custom 1 (Night)"),m(),g(82,"option",6),y(83,"Eufy Custom 2"),m(),g(84,"option",6),y(85,"Eufy Custom 3"),m(),g(86,"option",6),y(87,"Eufy Geofencing"),m(),g(88,"option",6),y(89,"Eufy Disarmed"),m()()()()),2&t&&(_(4),b("ngIf",i.accessory),_(5),b("ngModel",i.hkHome),_(1),b("ngIf",i.accessory),_(1),b("ngValue",1),_(2),b("ngValue",0),_(2),b("ngValue",2),_(2),b("ngValue",3),_(2),b("ngValue",4),_(2),b("ngValue",5),_(2),b("ngValue",47),_(2),b("ngValue",63),_(5),b("ngModel",i.hkAway),_(1),b("ngIf",i.accessory),_(1),b("ngValue",1),_(2),b("ngValue",0),_(2),b("ngValue",2),_(2),b("ngValue",3),_(2),b("ngValue",4),_(2),b("ngValue",5),_(2),b("ngValue",47),_(2),b("ngValue",63),_(5),b("ngModel",i.hkNight),_(1),b("ngIf",i.accessory),_(1),b("ngValue",1),_(2),b("ngValue",0),_(2),b("ngValue",2),_(2),b("ngValue",3),_(2),b("ngValue",4),_(2),b("ngValue",5),_(2),b("ngValue",47),_(2),b("ngValue",63),_(5),b("ngModel",i.hkOff),_(1),b("ngIf",i.accessory),_(1),b("ngValue",1),_(2),b("ngValue",0),_(2),b("ngValue",2),_(2),b("ngValue",3),_(2),b("ngValue",4),_(2),b("ngValue",5),_(2),b("ngValue",47),_(2),b("ngValue",63))},directives:[B1,ne,M1,h1,ot,st],encapsulation:2}),e})();var fu2=r1(172);function Cu2(e,n){if(1&e&&(g(0,"div",7),y(1),m()),2&e){const t=E();_(1),Q3(" ",t.failureMessage," ")}}function du2(e,n){1&e&&R(0,"span",10)}function hu2(e,n){1&e&&(g(0,"span"),y(1,"Download Logs"),m())}function pu2(e,n){1&e&&(g(0,"span"),y(1," Generating Log File..."),m())}function gu2(e,n){if(1&e){const t=V1();g(0,"button",8),T("click",function(){return W(t),E().downloadLogs()}),O(1,du2,1,0,"span",9),O(2,hu2,2,0,"span",6),O(3,pu2,2,0,"span",6),m()}if(2&e){const t=E();j("disabled",!!t.isDownloading||null),_(1),b("ngIf",t.isDownloading),_(1),b("ngIf",!t.isDownloading),_(1),b("ngIf",t.isDownloading)}}function mu2(e,n){if(1&e){const t=V1();g(0,"a",11),T("click",function(){return W(t),E().openLink()}),g(1,"span"),y(2,"Download Logs"),m()()}}function vu2(e,n){if(1&e&&(g(0,"small")(1,"i"),y(2),m()()),2&e){const t=E();_(2),Q3(" ",t.downloadMessage," ")}}function _u2(e,n){1&e&&(g(0,"small")(1,"i"),y(2," The log file should have downloaded. If not click the button again. The file will be named 'Unknown.zip', due to technical reasons."),R(3,"br"),g(4,"b"),y(5,"Please make sure that you have pop-ups allowed for this site. If you're not sure, maybe this "),g(6,"a",12),y(7,"site"),m(),y(8," can help."),m()()())}let Mu2=(()=>{class e{constructor(t,i){this.router=t,this.zone=i,this.failed=!1,this.isDownloading=!1,this.hasDownloaded=!1,this.failureMessage="",this.logFileLocation=""}ngOnInit(){this.routeSub=this.router.events.subscribe(t=>{t instanceof q0&&""!==this.logFileLocation&&(console.log("revoke log zip file blob location url."),window.URL.revokeObjectURL(this.logFileLocation),this.logFileLocation="")}),window.homebridge.addEventListener("downloadLogsFileCount",t=>{this.updateDownloadMessage(`Compressing ${t.data.numberOfFiles} log files...`)})}downloadLogs(){var t=this;return L2(function*(){try{t.isDownloading=!0;const i=yield window.homebridge.request("/downloadLogs"),r=fu2.lW.from(i.data),a=new File([r],"logs.zip",{type:"application/zip"}),o=window.URL.createObjectURL(a);t.logFileLocation=o,window.open(t.logFileLocation),t.updateDownloadMessage(void 0),t.hasDownloaded=!0}catch(i){console.log(i);const r=i;t.failed=!0,t.updateDownloadMessage(void 0),t.failureMessage=`Generating of compressed logs.zip file did not complete: ${r.message}`}finally{t.isDownloading=!1}})()}openLink(){window.open(this.logFileLocation)}updateDownloadMessage(t){this.zone.run(()=>{this.downloadMessage=t})}}return e.\u0275fac=function(t){return new(t||e)(V(X1),V($2))},e.\u0275cmp=s2({type:e,selectors:[["app-download-logs"]],decls:9,vars:5,consts:[[1,"settingsItem","row","p-3"],["class","alert alert-danger","role","alert",4,"ngIf"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-center","mb-2"],[1,"mb-3","mb-sm-0"],["type","button","class","btn btn-secondary col-12 col-sm-4",3,"click",4,"ngIf"],["class","btn btn-success col-12 col-sm-4",3,"click",4,"ngIf"],[4,"ngIf"],["role","alert",1,"alert","alert-danger"],["type","button",1,"btn","btn-secondary","col-12","col-sm-4",3,"click"],["class","spinner-border spinner-border-sm","role","status","aria-hidden","true",4,"ngIf"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm"],[1,"btn","btn-success","col-12","col-sm-4",3,"click"],["href","https://www.howtogeek.com/773082/how-to-disable-pop-up-blocker-in-chrome-firefox-edge-safari/","target","_blank","rel","noopener noreferrer"]],template:function(t,i){1&t&&(g(0,"div",0),O(1,Cu2,2,1,"div",1),g(2,"div",2)(3,"span",3),y(4,"Download Logs"),m(),O(5,gu2,4,4,"button",4),O(6,mu2,3,0,"a",5),m(),O(7,vu2,3,1,"small",6),O(8,_u2,9,0,"small",6),m()),2&t&&(_(1),b("ngIf",i.failed),_(4),b("ngIf",!i.hasDownloaded),_(1),b("ngIf",i.hasDownloaded),_(1),b("ngIf",i.downloadMessage),_(1),b("ngIf",i.hasDownloaded))},directives:[B1],encapsulation:2}),e})(),yu2=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=s2({type:e,selectors:[["app-reset-plugin"]],decls:9,vars:0,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-center","mb-2"],[1,"mb-3","mb-sm-0"],["routerLink","/reset",1,"btn","btn-danger","col-12","col-sm-4"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"div",1)(2,"span",2),y(3,"Reset Plugin"),m(),g(4,"a",3),y(5,"Remove everything"),m()(),g(6,"small")(7,"i"),y(8," This will delete the plugin settings and files. Please be aware that this will not delete any cached accessories from homebridge. You'll have to remove these manually via the homebridge UI. "),m()()())},directives:[de],encapsulation:2}),e})(),bu2=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=s2({type:e,selectors:[["app-advanced-config-options"]],decls:23,vars:0,consts:[["routerLink","/accessories",1,"btn","btn-secondary","mb-3"],[1,"card"],[1,"card-header"],[1,"card-body","pt-0","pb-4"]],template:function(t,i){1&t&&(g(0,"a",0),y(1,"Back to Devices List"),m(),g(2,"div",1)(3,"div",2),y(4," Advanced Settings "),m(),g(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-omit-log-files")(15,"hr")(16,"app-clean-cache")(17,"hr")(18,"app-guard-modes-mapping")(19,"hr")(20,"app-download-logs")(21,"hr")(22,"app-reset-plugin"),m()())},directives:[de,Xl2,eu2,tu2,nu2,iu2,ru2,uu2,Mu2,yu2],encapsulation:2}),e})(),gw=(()=>{class e extends y1{constructor(t){super(t),this.value=!1}ngOnInit(){this.readValue()}readValue(){var t=this;return L2(function*(){if(t.config=yield t.pluginService.getConfig(),t.accessory){const i=t.accessory.station?"ignoreStations":"ignoreDevices";Array.isArray(t.config[i])&&(t.value=void 0!==t.config[i].find(r=>r===t.accessory.uniqueId))}})()}update(){var t=this;return L2(function*(){if(!t.accessory)return;const i=t.accessory.station?"ignoreStations":"ignoreDevices";t.config=yield t.pluginService.getConfig(),t.value?Array.isArray(t.config[i])&&!t.config[i].find(r=>r===t.accessory.uniqueId)?t.config[i].push(t.accessory.uniqueId):Array.isArray(t.config[i])||(t.config[i]=[t.accessory.uniqueId]):Array.isArray(t.config[i])&&void 0!==t.config[i].find(r=>r===t.accessory.uniqueId)&&(t.config[i]=t.config[i].filter(r=>r!==t.accessory.uniqueId)),t.pluginService.updateConfig(t.config)})()}}return e.\u0275fac=function(t){return new(t||e)(V(J2))},e.\u0275cmp=s2({type:e,selectors:[["app-ignore-accessory"]],inputs:{accessory:"accessory"},features:[J],decls:6,vars:2,consts:[[1,"settingsItem","row","p-3","pb-1"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3),m(),g(4,"div",2)(5,"input",3),T("ngModelChange",function(a){return i.value=a})("change",function(){return i.update()}),m()()()()),2&t&&(_(3),Q3("Ignore ",i.accessory&&i.accessory.station?"Station":"Device",""),_(2),b("ngModel",i.value))},directives:[C3,M1,h1],encapsulation:2}),e})();function Lu2(e,n){1&e&&(g(0,"small")(1,"i"),y(2," This option is disabled since doorbells are handled always as cameras. "),m()())}function Vu2(e,n){1&e&&(g(0,"small")(1,"i"),y(2," Cameras are handled as Motion Sensor by default, switch this setting to use as Camera "),m()())}let Hu2=(()=>{class e extends y1{constructor(t){super(t),this.value=!1,this.disabled=!1}ngOnInit(){this.readValue()}readValue(){var t=this;return L2(function*(){var i;t.accessory&&En.isDoorbell(t.accessory.type)&&(t.value=!0,t.disabled=!0,t.update());const r=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");r&&Object.prototype.hasOwnProperty.call(r,"enableCamera")&&(t.value=r.enableCamera)})()}update(){this.updateConfig({enableCamera:this.value},this.accessory)}}return e.\u0275fac=function(t){return new(t||e)(V(J2))},e.\u0275cmp=s2({type:e,selectors:[["app-enable-camera"]],inputs:{accessory:"accessory"},features:[J],decls:12,vars:4,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],["aria-label","Device Operation Mode",1,"form-select",3,"ngModel","ngModelChange","change"],["value","false"],["value","true"],[4,"ngIf"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Operation Mode"),m(),g(4,"div",2)(5,"select",3),T("ngModelChange",function(a){return i.value=a})("change",function(){return i.update()}),g(6,"option",4),y(7,"Motion Sensor"),m(),g(8,"option",5),y(9,"Camera"),m()()()(),O(10,Lu2,3,0,"small",6),O(11,Vu2,3,0,"small",6),m()),2&t&&(_(5),b("ngModel",i.value),j("disabled",!!i.disabled||null),_(5),b("ngIf",i.disabled),_(1),b("ngIf",!i.disabled))},directives:[ne,M1,h1,ot,st,B1],encapsulation:2}),e})(),wu2=(()=>{class e extends y1{constructor(t){super(t),this.value=false}ngOnInit(){this.readValue()}readValue(){var t=this;return L2(function*(){var i;const r=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");r&&Object.prototype.hasOwnProperty.call(r,"useCachedLocalLivestream")&&(t.value=r.useCachedLocalLivestream)})()}update(){this.updateConfig({useCachedLocalLivestream:this.value},this.accessory)}}return e.\u0275fac=function(t){return new(t||e)(V(J2))},e.\u0275cmp=s2({type:e,selectors:[["app-livestream-cache"]],inputs:{accessory:"accessory"},features:[J],decls:12,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Use Local Livestream Caching"),m(),g(4,"div",2)(5,"input",3),T("ngModelChange",function(a){return i.value=a})("change",function(){return i.update()}),m()()(),g(6,"small")(7,"i")(8,"b"),y(9,"This setting seems only useful if you are able to set the video codec / video compression for the camera in the eufy app to 'low' (aka. H264 codec). If you can, we recommened to do so, since there can be a significant performance boost (aka. startup of livestreams)."),m(),R(10,"p"),y(11," If enabled local livestreams will be kept alive for a short time after the user stops streaming or a snapshot is refreshed (see 'Force Refresh Snapshot' also). This allows subsequent streams to start up much faster, but also may increase power consumption for battery powered devices. Additionally a livestream will be started (cached) immediately after an event (motion, person, doorbell) occurs, so that start up times are decreased. "),m()()()),2&t&&(_(5),b("ngModel",i.value))},directives:[C3,M1,h1],encapsulation:2}),e})();function Du2(e,n){1&e&&(g(0,"div",5),y(1," Talkback will not work while 'RTSP Streaming' is enabled! "),m())}let Su2=(()=>{class e extends y1{constructor(t){super(t),this.value=!1,this.talkbackIsEnabled=!1}ngOnInit(){this.readValue(),this.pluginService.addEventListener("configChanged",()=>this.readValue())}readValue(){var t=this;return L2(function*(){var i;const r=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");r&&Object.prototype.hasOwnProperty.call(r,"rtsp")&&(t.value=r.rtsp),r&&Object.prototype.hasOwnProperty.call(r,"talkback")&&(t.talkbackIsEnabled=r.talkback)})()}update(){this.updateConfig({rtsp:this.value},this.accessory)}}return e.\u0275fac=function(t){return new(t||e)(V(J2))},e.\u0275cmp=s2({type:e,selectors:[["app-rtsp-streaming"]],inputs:{accessory:"accessory"},features:[J],decls:11,vars:2,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"],["class","alert alert-danger","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-danger"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Use RTSP streaming"),m(),g(4,"div",2)(5,"input",3),T("ngModelChange",function(a){return i.value=a})("change",function(){return i.update()}),m()()(),O(6,Du2,2,0,"div",4),g(7,"small")(8,"i"),y(9," Try to utilize RTSP capabilities of some devices. This may result in improved streaming stability. Please be advised that RTSP must be enable within Eufy App first!"),R(10,"br"),m()()()),2&t&&(_(5),b("ngModel",i.value),_(1),b("ngIf",i.talkbackIsEnabled&&i.value))},directives:[C3,M1,h1,B1],encapsulation:2}),e})(),zu2=(()=>{class e extends y1{constructor(t){super(t),this.value=!1,this.samplerate=0}ngOnInit(){this.readValue()}readValue(){var t=this;return L2(function*(){var i;const r=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");if(r&&r.videoConfig&&Object.prototype.hasOwnProperty.call(r.videoConfig,"audio")&&(t.value=r.videoConfig.audio),r&&r.videoConfig&&Object.prototype.hasOwnProperty.call(r.videoConfig,"audioSampleRate")){const a=r.videoConfig.audioSampleRate;(8===a||16===a||24===a)&&(t.samplerate=a)}})()}update(){var t=this;return L2(function*(){var i,r;if(!t.accessory)return;let a=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");a||(a={serialNumber:null===(r=t.accessory)||void 0===r?void 0:r.uniqueId,videoConfig:{}}),Object.prototype.hasOwnProperty.call(a,"videoConfig")||(a.videoConfig={}),a.videoConfig.audio=t.value,a.videoConfig.audioSampleRate=t.samplerate,t.updateConfig(a,t.accessory)})()}}return e.\u0275fac=function(t){return new(t||e)(V(J2))},e.\u0275cmp=s2({type:e,selectors:[["app-enable-audio"]],inputs:{accessory:"accessory"},features:[J],decls:25,vars:7,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],["aria-label","Samplerate",1,"form-select",3,"ngModel","ngModelChange","change"],[3,"ngValue"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Enable Audio"),m(),g(4,"div",2)(5,"input",3),T("ngModelChange",function(a){return i.value=a})("change",function(){return i.update()}),m()()(),g(6,"small")(7,"i"),y(8," Try to enable audio streaming for this device."),R(9,"br"),y(10," If you encounter problems try to disable this setting. "),m()(),R(11,"p"),g(12,"div",4)(13,"span"),y(14,"Force Audio Sample Rate"),m(),g(15,"div",5)(16,"select",6),T("ngModelChange",function(a){return i.samplerate=a})("change",function(){return i.update()}),g(17,"option",7),y(18,"Default Sample Rate"),m(),g(19,"option",7),y(20,"8 kHz"),m(),g(21,"option",7),y(22,"16 kHz"),m(),g(23,"option",7),y(24,"24 kHz"),m()()()()()),2&t&&(_(5),b("ngModel",i.value),_(11),b("ngModel",i.samplerate),j("disabled",!i.value||null),_(1),b("ngValue",0),_(2),b("ngValue",8),_(2),b("ngValue",16),_(2),b("ngValue",24))},directives:[C3,M1,h1,ne,ot,st],encapsulation:2}),e})();function Nu2(e,n){1&e&&(g(0,"div",5),y(1," Talkback will not work while 'RTSP Streaming' is enabled! "),m())}let xu2=(()=>{class e extends y1{constructor(t){super(t),this.value=!1,this.rtspIsEnabled=!1}ngOnInit(){this.readValue(),this.pluginService.addEventListener("configChanged",()=>this.readValue())}readValue(){var t=this;return L2(function*(){var i;const r=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");r&&Object.prototype.hasOwnProperty.call(r,"talkback")&&(t.value=r.talkback),r&&Object.prototype.hasOwnProperty.call(r,"rtsp")&&(t.rtspIsEnabled=r.rtsp)})()}update(){this.updateConfig({talkback:this.value},this.accessory)}}return e.\u0275fac=function(t){return new(t||e)(V(J2))},e.\u0275cmp=s2({type:e,selectors:[["app-talkback"]],inputs:{accessory:"accessory"},features:[J],decls:13,vars:2,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"],["class","alert alert-danger","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-danger"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Enable Talkback (Two way communication)"),m(),g(4,"div",2)(5,"input",3),T("ngModelChange",function(a){return i.value=a})("change",function(){return i.update()}),m()()(),O(6,Nu2,2,0,"div",4),g(7,"small")(8,"i"),y(9," Enables you to talk with someone infront of the camera while streaming. "),R(10,"p"),y(11," Please be advised that this setting is in an early development stage. If you're experiencing issues while streaming, it is recommened to disable this setting."),R(12,"br"),m()()()),2&t&&(_(5),b("ngModel",i.value),_(1),b("ngIf",i.rtspIsEnabled&&i.value))},directives:[C3,M1,h1,B1],encapsulation:2}),e})(),Eu2=(()=>{class e extends y1{constructor(t){super(t),this.enableCameraButton=!0,this.enableMotionButton=!0}ngOnInit(){this.readValue()}readValue(){var t=this;return L2(function*(){var i;const r=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");r&&Object.prototype.hasOwnProperty.call(r,"enableButton")&&(t.enableCameraButton=r.enableButton),r&&Object.prototype.hasOwnProperty.call(r,"motionButton")&&(t.enableMotionButton=r.motionButton)})()}update(){this.updateConfig({enableButton:this.enableCameraButton,motionButton:this.enableMotionButton},this.accessory)}}return e.\u0275fac=function(t){return new(t||e)(V(J2))},e.\u0275cmp=s2({type:e,selectors:[["app-camera-buttons"]],inputs:{accessory:"accessory"},features:[J],decls:17,vars:2,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"],["href","https://github.com/homebridge-eufy-security/plugin/wiki/Common-Issues#unexpected-homekit-behaviour","target","_blank","rel","noopener noreferrer"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Display HomeKit button to switch camera on/off"),m(),g(4,"div",2)(5,"input",3),T("ngModelChange",function(a){return i.enableCameraButton=a})("change",function(){return i.update()}),m()()(),g(6,"div",1)(7,"span"),y(8,"Display HomeKit button to switch motion detection on/off"),m(),g(9,"div",2)(10,"input",3),T("ngModelChange",function(a){return i.enableMotionButton=a})("change",function(){return i.update()}),m()()(),g(11,"small")(12,"i"),y(13," When changing these settings you might need to clear accessory cache (homebridge settings) so it can take effect. See "),g(14,"a",4),y(15,"here"),m(),y(16," for more details. "),m()()()),2&t&&(_(5),b("ngModel",i.enableCameraButton),_(5),b("ngModel",i.enableMotionButton))},directives:[C3,M1,h1],encapsulation:2}),e})(),Tu2=(()=>{class e extends y1{constructor(t){super(t),this.value=false}ngOnInit(){this.readValue()}readValue(){var t=this;return L2(function*(){var i;const r=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");r&&Object.prototype.hasOwnProperty.call(r,"unbridge")&&(t.value=r.unbridge)})()}update(){this.updateConfig({unbridge:this.value},this.accessory)}}return e.\u0275fac=function(t){return new(t||e)(V(J2))},e.\u0275cmp=s2({type:e,selectors:[["app-unbridge-accessory"]],inputs:{accessory:"accessory"},features:[J],decls:12,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"],["href","https://github.com/homebridge-eufy-security/plugin/wiki/Bridged-and-Unbridged-Mode-and-Problems","target","_blank","rel","noopener noreferrer"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Unbridge Camera"),m(),g(4,"div",2)(5,"input",3),T("ngModelChange",function(a){return i.value=a})("change",function(){return i.update()}),m()()(),g(6,"small")(7,"i"),y(8," Bridged cameras can cause slowdowns of the entire Homebridge instance. If unbridged, the camera will need to be added to HomeKit manually. See "),g(9,"a",4),y(10,"here"),m(),y(11," for mor details. "),m()()()),2&t&&(_(5),b("ngModel",i.value))},directives:[C3,M1,h1],encapsulation:2}),e})();function Au2(e,n){if(1&e&&(g(0,"small")(1,"i")(2,"b"),y(3,"Description:"),m(),y(4," The plugin will try to get the latest possible snapshot. If none is present the plugin will start a livestream to render one frame."),R(5,"br"),y(6," This process might take a few seconds and can slow down your homebridge instance for this duration. If you encounter problems with this method please try another. "),R(7,"p")(8,"fa-icon",6),y(9," Up-to-date Snapshots (events)"),R(10,"br")(11,"fa-icon",6),y(12," Up-to-date Snapshots (HomeKit View)"),R(13,"br")(14,"fa-icon",7),y(15," Performance"),R(16,"br")(17,"fa-icon",7),y(18," Battery life"),R(19,"br"),m()()),2&e){const t=E();_(8),b("icon",t.plusIcon),_(3),b("icon",t.plusIcon),_(3),b("icon",t.minusIcon),_(3),b("icon",t.minusIcon)}}function ku2(e,n){if(1&e&&(g(0,"small")(1,"i")(2,"b"),y(3,"Description:"),m(),y(4," This mode combines the other two. When a snapshot is requested the plugin will try to get a new snapshot from the camera."),R(5,"br"),y(6," After one second the snapshot will be delivered - if necessary by using an older snapshot. For events the plugin will wait on a new snapshot. "),R(7,"p")(8,"fa-icon",6),y(9," Up-to-date Snapshots (events)"),R(10,"br")(11,"fa-icon",8),y(12," Up-to-date Snapshots (HomeKit View)"),R(13,"br")(14,"fa-icon",6),y(15," Performance"),R(16,"br")(17,"fa-icon",7),y(18," Battery life"),R(19,"br"),m()()),2&e){const t=E();_(8),b("icon",t.plusIcon),_(3),b("icon",t.mediumIcon),_(3),b("icon",t.plusIcon),_(3),b("icon",t.minusIcon)}}function Iu2(e,n){if(1&e&&(g(0,"small")(1,"i")(2,"b"),y(3,"Description:"),m(),y(4," The plugin will preferablly use cloud snapshots from eufy to fulfill snapshot requests as fast as possible."),R(5,"br"),y(6," If an event, like motion or doorbell ring oocurs, the plugin will try to wait for a cloud snapshot to be provided. But the periodic snapshots in homekit will most likely be outdated (e.g. up to a few hours old). "),R(7,"p")(8,"fa-icon",6),y(9," Up-to-date Snapshots (events)"),R(10,"br")(11,"fa-icon",7),y(12," Up-to-date Snapshots (HomeKit View)"),R(13,"br")(14,"fa-icon",6),y(15," Performance"),R(16,"br")(17,"fa-icon",6),y(18," Battery life"),R(19,"br"),m()()),2&e){const t=E();_(8),b("icon",t.plusIcon),_(3),b("icon",t.minusIcon),_(3),b("icon",t.plusIcon),_(3),b("icon",t.plusIcon)}}let Ou2=(()=>{class e extends y1{constructor(t){super(t),this.plusIcon=RM,this.minusIcon=AM,this.mediumIcon=pM,this.value=3}ngOnInit(){this.readValue()}readValue(){var t=this;return L2(function*(){var i;const r=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");r&&Object.prototype.hasOwnProperty.call(r,"snapshotHandlingMethod")?t.value=r.snapshotHandlingMethod:r&&Object.prototype.hasOwnProperty.call(r,"forcerefreshsnap")&&(t.value=r.forcerefreshsnap?1:3)})()}update(){this.updateConfig({snapshotHandlingMethod:this.value},this.accessory)}}return e.\u0275fac=function(t){return new(t||e)(V(J2))},e.\u0275cmp=s2({type:e,selectors:[["app-snapshot-handling-method"]],inputs:{accessory:"accessory"},features:[J],decls:15,vars:7,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],["aria-label","Device Operation Mode",1,"form-select",3,"ngModel","ngModelChange","change"],[3,"ngValue"],[4,"ngIf"],["size","xs",1,"m-1",2,"color","#7FFF00",3,"icon"],["size","xs",1,"m-1",2,"color","#B22222",3,"icon"],["size","xs",1,"m-1",2,"color","#FF8C00",3,"icon"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Snapshot Handling Method"),m(),g(4,"div",2)(5,"select",3),T("ngModelChange",function(a){return i.value=a})("change",function(){return i.update()}),g(6,"option",4),y(7,"Force Refresh Snapshots"),m(),g(8,"option",4),y(9,"Balanced"),m(),g(10,"option",4),y(11,"Cloud Snapshots"),m()()()(),O(12,Au2,20,4,"small",5),O(13,ku2,20,4,"small",5),O(14,Iu2,20,4,"small",5),m()),2&t&&(_(5),b("ngModel",i.value),_(1),b("ngValue",1),_(2),b("ngValue",2),_(2),b("ngValue",3),_(2),b("ngIf",1===i.value),_(1),b("ngIf",2===i.value),_(1),b("ngIf",3===i.value))},directives:[ne,M1,h1,ot,st,B1,Pm],encapsulation:2}),e})(),Ru2=(()=>{class e extends y1{constructor(t){super(t),this.value=false}ngOnInit(){this.readValue()}readValue(){var t=this;return L2(function*(){var i;const r=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");r&&Object.prototype.hasOwnProperty.call(r,"immediateRingNotificationWithoutSnapshot")&&(t.value=r.immediateRingNotificationWithoutSnapshot)})()}update(){this.updateConfig({immediateRingNotificationWithoutSnapshot:this.value},this.accessory)}}return e.\u0275fac=function(t){return new(t||e)(V(J2))},e.\u0275cmp=s2({type:e,selectors:[["app-immediate-notification-on-ring"]],inputs:{accessory:"accessory"},features:[J],decls:12,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Immediate Notification on ring events"),m(),g(4,"div",2)(5,"input",3),T("ngModelChange",function(a){return i.value=a})("change",function(){return i.update()}),m()()(),g(6,"small")(7,"i"),y(8," In general Homekit will try to get a snapshot to show it in it's push notifications. Since the process to genereate a snapshot takes some time the push notification will be delayed by this time difference. This option allows to generate an empty snapshot on ringing events to speed up the push notification. This can safe up to 10 seconds between the event and the corresponding notification on your device."),R(9,"br"),g(10,"b"),y(11,"This option however delivers most likely an empty (black) snapshot on those events!"),m()()()()),2&t&&(_(5),b("ngModel",i.value))},directives:[C3,M1,h1],encapsulation:2}),e})(),Pu2=(()=>{class e extends y1{constructor(t){super(t),this.value=false}ngOnInit(){this.readValue()}readValue(){var t=this;return L2(function*(){var i;const r=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");r&&Object.prototype.hasOwnProperty.call(r,"delayCameraSnapshot")&&(t.value=r.delayCameraSnapshot)})()}update(){this.updateConfig({delayCameraSnapshot:this.value},this.accessory)}}return e.\u0275fac=function(t){return new(t||e)(V(J2))},e.\u0275cmp=s2({type:e,selectors:[["app-delay-camera-snapshots"]],inputs:{accessory:"accessory"},features:[J],decls:12,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Night-Vision Improvement for camera snapshots"),m(),g(4,"div",2)(5,"input",3),T("ngModelChange",function(a){return i.value=a})("change",function(){return i.update()}),m()()(),g(6,"small")(7,"i"),y(8," Force night vision on dark snapshots to improve the image."),R(9,"br"),g(10,"b"),y(11,"The snapshot request will be delayed by half a second if you enable this setting."),m()()()()),2&t&&(_(5),b("ngModel",i.value))},directives:[C3,M1,h1],encapsulation:2}),e})(),Fu2=(()=>{class e extends y1{constructor(t){super(t),this.value=0,this.inputIsInvalid=!1}ngOnInit(){this.readValue()}readValue(){var t=this;return L2(function*(){var i;const r=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");r&&Object.prototype.hasOwnProperty.call(r,"refreshSnapshotIntervalMinutes")&&(t.value=r.refreshSnapshotIntervalMinutes)})()}switchSetting(){this.value=0===this.value?30:0,this.update()}update(){!this.validate()||this.updateConfig({refreshSnapshotIntervalMinutes:this.value},this.accessory)}validate(){return this.inputIsInvalid=!1,(null==this.value||this.value<5&&0!==this.value)&&(this.inputIsInvalid=!0),!this.inputIsInvalid}}return e.\u0275fac=function(t){return new(t||e)(V(J2))},e.\u0275cmp=s2({type:e,selectors:[["app-periodic-snapshot-refresh"]],inputs:{accessory:"accessory"},features:[J],decls:25,vars:3,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"change"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],[1,"input-group","input-group-sm"],["type","number","aria-label","Polling interval minutes","aria-describedby","basic-addon2",3,"ngModel","ngModelChange","change"],[1,"input-group-append"],["id","basic-addon2",1,"input-group-text"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Periodic Snapshot Refresh"),m(),g(4,"div",2)(5,"input",3),T("change",function(){return i.switchSetting()}),m()()(),g(6,"div",4)(7,"span"),y(8,"Refresh Interval"),m(),g(9,"div",5)(10,"div",6)(11,"input",7),T("ngModelChange",function(a){return i.value=a})("change",function(){return i.update()}),m(),g(12,"div",8)(13,"span",9),y(14,"minutes"),m()()()()(),g(15,"small")(16,"i"),y(17," This option will force a snapshot to be generated every x minutes. This snapshot will then be used for homekit. So that your snapshots will never be older than this."),R(18,"br"),y(19," Best used with 'Cloud Snapshots' handling method."),R(20,"br"),y(21," Every setting below 5 minutes will be discarded due to performance reasons."),R(22,"br"),g(23,"b"),y(24,"Don't use this with the 'Force Refresh Snapshots' method, since it will have negligible effects other than slowing down homebridge and decreasing possible battery life."),m()()()()),2&t&&(_(5),j("checked",i.value>0||null),_(6),b("ngModel",i.value),j("class",i.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},directives:[b6,ze,M1,h1],encapsulation:2}),e})(),Bu2=(()=>{class e extends y1{constructor(t){super(t),this.value=!1}ngOnInit(){this.readValue()}readValue(){var t=this;return L2(function*(){var i;const r=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");r&&Object.prototype.hasOwnProperty.call(r,"forcerefreshsnap")&&(t.value=r.forcerefreshsnap)})()}update(){this.updateConfig({forcerefreshsnap:this.value},this.accessory)}}return e.\u0275fac=function(t){return new(t||e)(V(J2))},e.\u0275cmp=s2({type:e,selectors:[["app-force-refreshsnap"]],inputs:{accessory:"accessory"},features:[J],decls:11,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Force Refresh Snapshot (Deprecated)"),m(),g(4,"div",2)(5,"input",3),T("ngModelChange",function(a){return i.value=a})("change",function(){return i.update()}),m()()(),g(6,"small")(7,"i"),y(8," When enabled, we will start stream for one frame and use as a snapshot (this can affect the battery life). If it's disabled, we will use the Eufy Cloud API one (which could be really old)."),R(9,"br"),y(10," This option is only used if you have disabled enhanced snapshot handling. "),m()()()),2&t&&(_(5),b("ngModel",i.value))},directives:[C3,M1,h1],encapsulation:2}),e})();function Uu2(e,n){1&e&&(g(0,"span")(1,"b"),y(2,"Advanced Video Config"),m()())}function ju2(e,n){1&e&&(g(0,"button",4)(1,"span")(2,"b"),y(3,"Advanced Video Config"),m()()())}function Gu2(e,n){if(1&e&&(g(0,"div"),y(1),m()),2&e){const t=E(2);_(1),Q3(" ",t.presetDescription," ")}}function $u2(e,n){if(1&e){const t=V1();y(0," The following options directly change the way how ffmpeg is configured when a stream is started. If configured incorrectly these will most likely result in faulty streams or bad streaming performance. "),R(1,"p"),y(2," You can try the following presets to improve your streaming experience. We do not guarantee that these will work for you."),R(3,"p"),g(4,"div",5)(5,"div",6)(6,"select",7),T("ngModelChange",function(r){return W(t),E().preset=r})("change",function(){return W(t),E().loadPreset()}),g(7,"option",8),y(8,"No Preset (default)"),m(),g(9,"option",8),y(10,"Copy"),m(),g(11,"option",8),y(12,"Performance"),m(),g(13,"option",8),y(14,"Custom"),m()()()(),O(15,Gu2,2,1,"div",9),R(16,"p"),g(17,"div",10)(18,"div",11)(19,"input",12),T("ngModelChange",function(r){return W(t),E().debug=r})("change",function(){return W(t),E().update()}),m()(),g(20,"span",13),y(21,"ffmpeg debug"),m()(),g(22,"div",10)(23,"div",11)(24,"input",12),T("ngModelChange",function(r){return W(t),E().useSeparateProcesses=r})("change",function(){return W(t),E().update()}),m()(),g(25,"span",13),y(26,"use separate processes for video and audio"),m()(),g(27,"div",10)(28,"div",11)(29,"input",12),T("ngModelChange",function(r){return W(t),E().readRate=r})("change",function(){return W(t),E().update()}),m()(),g(30,"span",13),y(31,"readRate"),m()(),g(32,"div",10)(33,"div",11)(34,"input",14),T("change",function(){W(t);const r=E();return r.vcodec=void 0===r.vcodec?"":void 0,r.update()}),m()(),g(35,"span",13),y(36,"vcodec"),m(),g(37,"input",15),T("ngModelChange",function(r){return W(t),E().vcodec=r})("change",function(){return W(t),E().update()}),m()(),g(38,"div",10)(39,"div",11)(40,"input",14),T("change",function(){W(t);const r=E();return r.acodec=void 0===r.acodec?"":void 0,r.update()}),m()(),g(41,"span",13),y(42,"acodec"),m(),g(43,"input",16),T("ngModelChange",function(r){return W(t),E().acodec=r})("change",function(){return W(t),E().update()}),m()(),g(44,"div",10)(45,"div",11)(46,"input",14),T("change",function(){W(t);const r=E();return r.videoFilter=void 0===r.videoFilter?"":void 0,r.update()}),m()(),g(47,"span",13),y(48,"videoFilter"),m(),g(49,"input",17),T("ngModelChange",function(r){return W(t),E().videoFilter=r})("change",function(){return W(t),E().update()}),m()(),g(50,"div",10)(51,"div",11)(52,"input",14),T("change",function(){W(t);const r=E();return r.encoderOptions=void 0===r.encoderOptions?"":void 0,r.update()}),m()(),g(53,"span",13),y(54,"encoderOptions"),m(),g(55,"input",18),T("ngModelChange",function(r){return W(t),E().encoderOptions=r})("change",function(){return W(t),E().update()}),m()(),g(56,"div",10)(57,"div",11)(58,"input",14),T("change",function(){W(t);const r=E();return r.probeSize=void 0===r.probeSize?0:void 0,r.update()}),m()(),g(59,"span",13),y(60,"probeSize"),m(),g(61,"input",19),T("ngModelChange",function(r){return W(t),E().probeSize=r})("change",function(){return W(t),E().update()}),m()(),g(62,"div",10)(63,"div",11)(64,"input",14),T("change",function(){W(t);const r=E();return r.analyzeDuration=void 0===r.analyzeDuration?0:void 0,r.update()}),m()(),g(65,"span",13),y(66,"analyzeDuration"),m(),g(67,"input",19),T("ngModelChange",function(r){return W(t),E().analyzeDuration=r})("change",function(){return W(t),E().update()}),m()(),g(68,"div",10)(69,"div",11)(70,"input",14),T("change",function(){W(t);const r=E();return r.maxStreams=void 0===r.maxStreams?0:void 0,r.update()}),m()(),g(71,"span",13),y(72,"maxStreams"),m(),g(73,"input",19),T("ngModelChange",function(r){return W(t),E().maxStreams=r})("change",function(){return W(t),E().update()}),m()(),g(74,"div",10)(75,"div",11)(76,"input",14),T("change",function(){W(t);const r=E();return r.maxWidth=void 0===r.maxWidth?0:void 0,r.update()}),m()(),g(77,"span",13),y(78,"maxWidth"),m(),g(79,"input",19),T("ngModelChange",function(r){return W(t),E().maxWidth=r})("change",function(){return W(t),E().update()}),m()(),g(80,"div",10)(81,"div",11)(82,"input",14),T("change",function(){W(t);const r=E();return r.maxHeight=void 0===r.maxHeight?0:void 0,r.update()}),m()(),g(83,"span",13),y(84,"maxHeight"),m(),g(85,"input",19),T("ngModelChange",function(r){return W(t),E().maxHeight=r})("change",function(){return W(t),E().update()}),m()(),g(86,"div",10)(87,"div",11)(88,"input",14),T("change",function(){W(t);const r=E();return r.maxFPS=void 0===r.maxFPS?0:void 0,r.update()}),m()(),g(89,"span",13),y(90,"fps"),m(),g(91,"input",19),T("ngModelChange",function(r){return W(t),E().maxFPS=r})("change",function(){return W(t),E().update()}),m()(),g(92,"div",10)(93,"div",11)(94,"input",14),T("change",function(){W(t);const r=E();return r.maxBitrate=void 0===r.maxBitrate?0:void 0,r.update()}),m()(),g(95,"span",13),y(96,"bitrate"),m(),g(97,"input",19),T("ngModelChange",function(r){return W(t),E().maxBitrate=r})("change",function(){return W(t),E().update()}),m()()}if(2&e){const t=E();_(6),b("ngModel",t.preset),_(1),b("ngValue",0),_(2),b("ngValue",1),_(2),b("ngValue",2),_(2),b("ngValue",3),_(2),b("ngIf",t.presetDescription),_(4),b("ngModel",t.debug),_(5),b("ngModel",t.useSeparateProcesses),_(5),b("ngModel",t.readRate),_(5),b("checked",void 0!==t.vcodec||null),_(3),b("ngModel",t.vcodec),j("disabled",void 0===t.vcodec||null),_(3),b("checked",void 0!==t.acodec||null),_(3),b("ngModel",t.acodec),j("disabled",void 0===t.acodec||null),_(3),b("checked",void 0!==t.videoFilter||null),j("disabled","copy"===t.vcodec||null),_(1),j("style","copy"===t.vcodec?"text-decoration: line-through; color: lightgray;":null,Q4),_(2),b("ngModel",t.videoFilter),j("disabled",void 0===t.videoFilter||"copy"===t.vcodec||null),_(3),b("checked",void 0!==t.encoderOptions||null),j("disabled","copy"===t.vcodec||null),_(1),j("style","copy"===t.vcodec?"text-decoration: line-through; color: lightgray;":null,Q4),_(2),b("ngModel",t.encoderOptions),j("disabled",void 0===t.encoderOptions||"copy"===t.vcodec||null),_(3),b("checked",void 0!==t.probeSize||null),_(3),b("ngModel",t.probeSize),j("disabled",void 0===t.probeSize||null),_(3),b("checked",void 0!==t.analyzeDuration||null),_(3),b("ngModel",t.analyzeDuration),j("disabled",void 0===t.analyzeDuration||null),_(3),b("checked",void 0!==t.maxStreams||null),_(3),b("ngModel",t.maxStreams),j("disabled",void 0===t.maxStreams||null),_(3),b("checked",void 0!==t.maxWidth||null),j("disabled","copy"===t.vcodec||null),_(1),j("style","copy"===t.vcodec?"text-decoration: line-through; color: lightgray;":null,Q4),_(2),b("ngModel",t.maxWidth),j("disabled",void 0===t.maxWidth||"copy"===t.vcodec||null),_(3),b("checked",void 0!==t.maxHeight||null),j("disabled","copy"===t.vcodec||null),_(1),j("style","copy"===t.vcodec?"text-decoration: line-through; color: lightgray;":null,Q4),_(2),b("ngModel",t.maxHeight),j("disabled",void 0===t.maxHeight||"copy"===t.vcodec||null),_(3),b("checked",void 0!==t.maxFPS||null),j("disabled","copy"===t.vcodec||null),_(1),j("style","copy"===t.vcodec?"text-decoration: line-through; color: lightgray;":null,Q4),_(2),b("ngModel",t.maxFPS),j("disabled",void 0===t.maxFPS||"copy"===t.vcodec||null),_(3),b("checked",void 0!==t.maxBitrate||null),j("disabled","copy"===t.vcodec||null),_(1),j("style","copy"===t.vcodec?"text-decoration: line-through; color: lightgray;":null,Q4),_(2),b("ngModel",t.maxBitrate),j("disabled",void 0===t.maxBitrate||"copy"===t.vcodec||null)}}let Wu2=(()=>{class e extends y1{constructor(t){super(t),this.debug=void 0,this.readRate=void 0,this.vcodec=void 0,this.acodec=void 0,this.videoFilter=void 0,this.encoderOptions=void 0,this.probeSize=void 0,this.analyzeDuration=void 0,this.maxStreams=void 0,this.maxWidth=void 0,this.maxHeight=void 0,this.maxFPS=void 0,this.maxBitrate=void 0,this.useSeparateProcesses=void 0,this.preset=0}ngOnInit(){this.readValue()}readValue(){var t=this;return L2(function*(){var i;const r=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");r&&Object.prototype.hasOwnProperty.call(r,"videoConfig")&&Object.entries(r.videoConfig).forEach(([a,o])=>{t[a]=o}),t.updatePreset()})()}loadPreset(){0===this.preset?(this.readRate=void 0,this.vcodec=void 0,this.acodec=void 0,this.videoFilter=void 0,this.encoderOptions=void 0,this.probeSize=void 0,this.analyzeDuration=void 0,this.maxStreams=void 0,this.maxWidth=void 0,this.maxHeight=void 0,this.maxFPS=void 0,this.maxBitrate=void 0,this.useSeparateProcesses=void 0,this.presetDescription=void 0):1===this.preset?(this.readRate=void 0,this.vcodec="copy",this.acodec=void 0,this.videoFilter=void 0,this.encoderOptions=void 0,this.probeSize=void 0,this.analyzeDuration=void 0,this.maxStreams=void 0,this.maxWidth=void 0,this.maxHeight=void 0,this.maxFPS=void 0,this.maxBitrate=void 0,this.useSeparateProcesses=!0,this.presetDescription="Most eufy cams support the same codec that HomeKit requests. You can try and 'forward' the stream directly without encoding it with ffmpeg. This can increase performance and quality drastically."):2===this.preset?(this.readRate=void 0,this.vcodec=void 0,this.acodec=void 0,this.videoFilter=void 0,this.encoderOptions=void 0,this.probeSize=void 0,this.analyzeDuration=void 0,this.maxStreams=void 0,this.maxWidth=640,this.maxHeight=480,this.maxFPS=15,this.maxBitrate=void 0,this.useSeparateProcesses=!0,this.presetDescription="This preset tries to increase performance by reducing the quality of the stream. This can work for low performance hardware like raspberry pis."):this.presetDescription=void 0,this.update()}updatePreset(){let t=3;!this.readRate&&void 0===this.vcodec&&void 0===this.acodec&&void 0===this.videoFilter&&void 0===this.encoderOptions&&void 0===this.probeSize&&void 0===this.analyzeDuration&&void 0===this.maxStreams&&void 0===this.maxWidth&&void 0===this.maxHeight&&void 0===this.maxFPS&&void 0===this.maxBitrate&&void 0===this.useSeparateProcesses&&(t=0),!this.readRate&&"copy"===this.vcodec&&void 0===this.acodec&&void 0===this.videoFilter&&void 0===this.encoderOptions&&void 0===this.probeSize&&void 0===this.analyzeDuration&&void 0===this.maxStreams&&void 0===this.maxWidth&&void 0===this.maxHeight&&void 0===this.maxFPS&&void 0===this.maxBitrate&&!0===this.useSeparateProcesses&&(t=1),!this.readRate&&void 0===this.vcodec&&void 0===this.acodec&&void 0===this.videoFilter&&void 0===this.encoderOptions&&void 0===this.probeSize&&void 0===this.analyzeDuration&&void 0===this.maxStreams&&640===this.maxWidth&&480===this.maxHeight&&15===this.maxFPS&&void 0===this.maxBitrate&&!0===this.useSeparateProcesses&&(t=2),t!==this.preset&&(this.preset=t)}update(){var t=this;return L2(function*(){var i;const r=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||""),a=r&&Object.prototype.hasOwnProperty.call(r,"videoConfig")?r.videoConfig:{},o={};Object.prototype.hasOwnProperty.call(a,"audio")&&(o.audio=a.audio),t.debug&&(o.debug=t.debug),t.readRate&&(o.readRate=t.readRate),t.vcodec&&""!==t.vcodec&&(o.vcodec=t.vcodec),t.acodec&&""!==t.acodec&&(o.acodec=t.acodec),t.videoFilter&&""!==t.videoFilter&&(o.videoFilter=t.videoFilter),t.encoderOptions&&""!==t.encoderOptions&&(o.encoderOptions=t.encoderOptions),void 0!==t.probeSize&&(o.probeSize=t.probeSize),void 0!==t.analyzeDuration&&(o.analyzeDuration=t.analyzeDuration),void 0!==t.maxStreams&&(o.maxStreams=t.maxStreams),void 0!==t.maxWidth&&(o.maxWidth=t.maxWidth),void 0!==t.maxHeight&&(o.maxHeight=t.maxHeight),void 0!==t.maxFPS&&(o.maxFPS=t.maxFPS),void 0!==t.maxBitrate&&(o.maxBitrate=t.maxBitrate),t.useSeparateProcesses&&(o.useSeparateProcesses=t.useSeparateProcesses),t.updateConfig({videoConfig:o},t.accessory),t.updatePreset()})()}}return e.\u0275fac=function(t){return new(t||e)(V(J2))},e.\u0275cmp=s2({type:e,selectors:[["app-advanced-videoconfig"]],inputs:{accessory:"accessory"},features:[J],decls:6,vars:0,consts:[["acc","ngbAccordion"],["ngbPanelTitle","","class","accordion-header"],["ngbPanelHeader",""],["ngbPanelContent",""],["ngbPanelToggle","",1,"accordion-button"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],["aria-label","Presets",1,"form-select",3,"ngModel","ngModelChange","change"],[3,"ngValue"],[4,"ngIf"],[1,"input-group","mb-1"],[1,"input-group-text"],["type","checkbox",1,"form-check-input","mt-0",3,"ngModel","ngModelChange","change"],["id","inputGroup-sizing-default",1,"input-group-text"],["type","checkbox",1,"form-check-input","mt-0",3,"checked","change"],["type","text","placeholder","libx264",1,"form-control",3,"ngModel","ngModelChange","change"],["type","text","placeholder","libfdk_aac",1,"form-control",3,"ngModel","ngModelChange","change"],["type","text","placeholder","leave blank if you don't know",1,"form-control",3,"ngModel","ngModelChange","change"],["type","text","placeholder","-preset ultrafast -tune zerolatency",1,"form-control",3,"ngModel","ngModelChange","change"],["type","number","placeholder","0",1,"form-control",3,"ngModel","ngModelChange","change"]],template:function(t,i){1&t&&(g(0,"ngb-accordion",null,0)(2,"ngb-panel"),O(3,Uu2,3,0,"ng-template",1),O(4,ju2,4,0,"ng-template",2),O(5,$u2,98,54,"ng-template",3),m()())},directives:[O7,L0,k7,b0,R7,I7,ne,M1,h1,ot,st,B1,C3,ze,b6],styles:[".accordion-button[_ngcontent-%COMP%]:not(.collapsed){background-color:#00000008!important;color:#000!important}.accordion-button[_ngcontent-%COMP%]:not(.collapsed):after{background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e\")}.form-check-input[_ngcontent-%COMP%]{margin-left:-.5rem}.input-group-text[_ngcontent-%COMP%]{padding:.375rem 1rem}"]}),e})();function qu2(e,n){1&e&&R(0,"hr")}function Yu2(e,n){1&e&&R(0,"app-rtsp-streaming",6),2&e&&b("accessory",E(3).accessory)}function Ku2(e,n){1&e&&R(0,"hr")}function Qu2(e,n){1&e&&R(0,"app-talkback",6),2&e&&b("accessory",E(3).accessory)}function Zu2(e,n){if(1&e&&(g(0,"div"),R(1,"hr")(2,"app-enable-camera",6)(3,"hr")(4,"app-livestream-cache",6),O(5,qu2,1,0,"hr",2),O(6,Yu2,1,1,"app-rtsp-streaming",7),R(7,"hr")(8,"app-enable-audio",6),O(9,Ku2,1,0,"hr",2),O(10,Qu2,1,1,"app-talkback",7),m()),2&e){const t=E(2);_(2),b("accessory",t.accessory),_(2),b("accessory",t.accessory),_(1),b("ngIf",t.supportsRTSP),_(1),b("ngIf",t.supportsRTSP),_(2),b("accessory",t.accessory),_(1),b("ngIf",t.supportsTalkback),_(1),b("ngIf",t.supportsTalkback)}}function Ju2(e,n){if(1&e&&(g(0,"div",3)(1,"div",4)(2,"b"),y(3,"Camera Settings"),m(),y(4," for "),g(5,"i"),y(6),m()(),g(7,"div",5),R(8,"app-ignore-accessory",6),O(9,Zu2,11,7,"div",2),m()()),2&e){const t=E();_(6),d6("",t.accessory.displayName," (",t.accessory.uniqueId,")"),_(2),b("accessory",t.accessory),_(1),b("ngIf",t.isCamera)}}function Xu2(e,n){if(1&e&&(g(0,"div",3)(1,"div",4)(2,"b"),y(3,"HomeKit Behaviour"),m(),y(4," for "),g(5,"i"),y(6),m()(),g(7,"div",5),R(8,"app-camera-buttons",6)(9,"hr")(10,"app-unbridge-accessory",6),m()()),2&e){const t=E(2);_(6),d6("",t.accessory.displayName," (",t.accessory.uniqueId,")"),_(2),b("accessory",t.accessory),_(2),b("accessory",t.accessory)}}function ef2(e,n){1&e&&R(0,"hr")}function tf2(e,n){1&e&&R(0,"app-immediate-notification-on-ring",6),2&e&&b("accessory",E(3).accessory)}function nf2(e,n){if(1&e&&(g(0,"div"),R(1,"app-force-refreshsnap",6),m()),2&e){const t=E(3);_(1),b("accessory",t.accessory)}}function if2(e,n){if(1&e&&(g(0,"div",3)(1,"div",4)(2,"b"),y(3,"Snapshot Behaviour"),m(),y(4," for "),g(5,"i"),y(6),m()(),g(7,"div",5),R(8,"app-snapshot-handling-method",6),O(9,ef2,1,0,"hr",2),O(10,tf2,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),O(15,nf2,2,1,"div",2),m()()),2&e){const t=E(2);_(6),d6("",t.accessory.displayName," (",t.accessory.uniqueId,")"),_(2),b("accessory",t.accessory),_(1),b("ngIf",t.isDoorbell),_(1),b("ngIf",t.isDoorbell),_(2),b("accessory",t.accessory),_(2),b("accessory",t.accessory),_(1),b("ngIf",!t.showEnhancedSnapshotBehaviour)}}function rf2(e,n){if(1&e&&(g(0,"div"),R(1,"p"),O(2,Xu2,11,4,"div",1),R(3,"p"),O(4,if2,16,8,"div",1),R(5,"p")(6,"app-advanced-videoconfig",6),m()),2&e){const t=E();_(2),b("ngIf",t.accessory),_(2),b("ngIf",t.accessory),_(2),b("accessory",t.accessory)}}let af2=(()=>{class e extends y1{constructor(t,i){super(t),this.route=i,this.showEnhancedSnapshotBehaviour=!0,this.isDoorbell=!1,this.isCamera=!1,this.supportsRTSP=!1,this.supportsTalkback=!1}ngOnInit(){const t=this.route.snapshot.paramMap.get("uniqueId");this.accessory=this.pluginService.getDevice(t),this.accessory&&(this.isDoorbell=En.isDoorbell(this.accessory.type),this.isCamera=En.isCamera(this.accessory.type),this.supportsRTSP=En.supportsRTSP(this.accessory.type),this.supportsTalkback=En.supportsTalkback(this.accessory.type),this.supportsRTSP||this.updateConfig({rtsp:!1},this.accessory),this.supportsTalkback||this.updateConfig({talkback:!1},this.accessory))}updateSnapshotView(t){this.showEnhancedSnapshotBehaviour=t}}return e.\u0275fac=function(t){return new(t||e)(V(J2),V(Ce))},e.\u0275cmp=s2({type:e,selectors:[["app-camera-config-options"]],features:[J],decls:4,vars:2,consts:[["routerLink","/accessories",1,"btn","btn-secondary","mb-3"],["class","card",4,"ngIf"],[4,"ngIf"],[1,"card"],[1,"card-header"],[1,"card-body","pt-0","pb-4"],[3,"accessory"],[3,"accessory",4,"ngIf"]],template:function(t,i){1&t&&(g(0,"a",0),y(1,"Back to Devices List"),m(),O(2,Ju2,10,4,"div",1),O(3,rf2,7,3,"div",2)),2&t&&(_(2),b("ngIf",i.accessory),_(1),b("ngIf",i.isCamera))},directives:[de,B1,gw,Hu2,wu2,Su2,zu2,xu2,Eu2,Tu2,Ou2,Ru2,Pu2,Fu2,Bu2,Wu2],encapsulation:2}),e})();var Tn=(()=>{return(e=Tn||(Tn={}))[e.UNKNOWN=0]="UNKNOWN",e[e.CAPTCHA=1]="CAPTCHA",e[e.TFA=2]="TFA",e[e.TIMEOUT=3]="TIMEOUT",Tn;var e})();const of2={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 sf2=(()=>{class e{constructor(t){this.pluginService=t}getCredentials(){var t=this;return L2(function*(){try{const i=yield t.pluginService.getConfig();return i.username&&i.password?Promise.resolve({username:i.username,password:i.password,country:i.country?i.country:"US"}):Promise.reject("no full credentials in config")}catch(i){return Promise.reject("no config")}})()}login(t){return L2(function*(){try{const i=yield window.homebridge.request("/login",t);return Promise.resolve(i)}catch(i){return Promise.reject(i)}})()}updateConfigCredentials(t){var i=this;return L2(function*(){let r={};try{r=yield i.pluginService.getConfig()}catch(a){console.log("Could not get credentials from config: "+a)}r.username=t.username,r.password=t.password,r.country=t.country,yield i.pluginService.updateConfig(r,!0)})()}}return e.\u0275fac=function(t){return new(t||e)(q(J2))},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function cf2(e,n){1&e&&(kt(),y(0," If you login here the new connection might interfere with any already established connection that was made by the eufy plugin itself."),It(),R(1,"p"),g(2,"i"),y(3,"So even if you do not change any settings we recommened that you restart the plugin after you've connected to the eufy cloud here."),m())}function lf2(e,n){if(1&e){const t=V1();g(0,"p",10)(1,"ngb-alert",11),T("closed",function(){return W(t),E().resetLoginFailed()}),kt(),g(2,"svg",12),R(3,"use",13),m(),It(),g(4,"strong"),y(5,"Login was not successful!"),m()()()}2&e&&(_(1),b("dismissible",!0))}function uf2(e,n){if(1&e&&(g(0,"div",29),kt(),g(1,"svg",30),R(2,"use",31),m(),It(),g(3,"div"),y(4," Please make sure to restart plugin after you're done. "),g(5,"u",32),y(6," Tell me why... "),m()()()),2&e){E(2);const t=K3(6);_(5),b("autoClose","outside")("ngbPopover",t)}}function ff2(e,n){if(1&e&&(g(0,"option"),y(1),m()),2&e){const t=n.$implicit,i=E(2);j("value",t.short)("selected",i.credentials.country===t.short||null),_(1),Q3("",t.long," ")}}function Cf2(e,n){1&e&&R(0,"span",33)}function df2(e,n){1&e&&(g(0,"span"),y(1,"..."),m())}function hf2(e,n){if(1&e){const t=V1();g(0,"div"),O(1,uf2,7,2,"div",14),g(2,"div",15)(3,"input",16),T("ngModelChange",function(r){return W(t),E().credentials.username=r}),m(),g(4,"label",17),y(5,"Email address"),m()(),R(6,"p"),g(7,"div",15)(8,"input",18),T("ngModelChange",function(r){return W(t),E().credentials.password=r}),m(),g(9,"label",19),y(10,"Password"),m()(),g(11,"div",20)(12,"div",21)(13,"select",22),T("ngModelChange",function(r){return W(t),E().credentials.country=r}),O(14,ff2,2,3,"option",23),m(),g(15,"small")(16,"i"),y(17," Make sure to use the same country that you use to login with the eufy app. "),m()()(),R(18,"span",24),g(19,"div",25)(20,"button",26),T("click",function(){return W(t),E().login()}),O(21,Cf2,1,0,"span",27),y(22," Login "),O(23,df2,2,0,"span",9),m(),g(24,"button",28),T("click",function(){return W(t),E().cancelLogin()}),y(25," Cancel "),m()()()()}if(2&e){const t=E();_(1),b("ngIf",!t.firstLoginAssumed),_(2),b("ngModel",t.credentials.username),j("class",t.emailIsValid?"form-control":"form-control is-invalid")("disabled",!!t.loginInProgress||null),_(5),b("ngModel",t.credentials.password),j("class",t.passwordIsValid?"form-control":"form-control is-invalid")("disabled",!!t.loginInProgress||null),_(5),b("ngModel",t.credentials.country),j("disabled",!!t.loginInProgress||null),_(1),b("ngForOf",t.countries),_(6),j("disabled",!!t.loginInProgress||null),_(1),b("ngIf",t.loginInProgress),_(2),b("ngIf",t.loginInProgress),_(1),j("disabled",!!t.loginInProgress||null)}}function pf2(e,n){1&e&&R(0,"span",33)}function gf2(e,n){1&e&&(g(0,"span"),y(1,"..."),m())}function mf2(e,n){if(1&e){const t=V1();g(0,"div")(1,"div",34),y(2,"You should have gotten a 2FA verification code from eufy in your mail. Please enter this below."),m(),g(3,"div",6)(4,"div",35)(5,"input",36),T("ngModelChange",function(r){return W(t),E().otp=r}),m(),g(6,"label",37),y(7,"2FA Code"),m()()(),g(8,"div",38)(9,"div",39)(10,"button",40),T("click",function(){return W(t),E().login()}),O(11,pf2,1,0,"span",27),y(12," Verify "),O(13,gf2,2,0,"span",9),m()()(),g(14,"div",6)(15,"div",39)(16,"button",28),T("click",function(){return W(t),E().cancelLogin()}),y(17," Cancel "),m()()()()}if(2&e){const t=E();_(5),b("ngModel",t.otp),j("class",t.otpIsValid?"form-control":"form-control is-invalid")("disabled",!!t.loginInProgress||null),_(5),j("disabled",!!t.loginInProgress||null),_(1),b("ngIf",t.loginInProgress),_(2),b("ngIf",t.loginInProgress),_(3),j("disabled",!!t.loginInProgress||null)}}function vf2(e,n){1&e&&R(0,"span",33)}function _f2(e,n){1&e&&(g(0,"span"),y(1,"..."),m())}function Mf2(e,n){if(1&e){const t=V1();g(0,"div")(1,"div",34),y(2,"Please enter the captcha below."),m(),g(3,"div",38),R(4,"img",41),m(),g(5,"div",6)(6,"div",35)(7,"input",36),T("ngModelChange",function(r){return W(t),E().captcha=r}),m(),g(8,"label",37),y(9,"Captcha"),m()()(),g(10,"div",38)(11,"div",39)(12,"button",40),T("click",function(){return W(t),E().login()}),O(13,vf2,1,0,"span",27),y(14," Verify "),O(15,_f2,2,0,"span",9),m()()(),g(16,"div",6)(17,"div",39)(18,"button",28),T("click",function(){return W(t),E().cancelLogin()}),y(19," Cancel "),m()()()()}if(2&e){const t=E();_(4),b("src",t.captchaImageData,Qe),_(3),b("ngModel",t.captcha),j("class",t.captchaIsValid?"form-control":"form-control is-invalid")("disabled",!!t.loginInProgress||null),_(5),j("disabled",!!t.loginInProgress||null),_(1),b("ngIf",t.loginInProgress),_(2),b("ngIf",t.loginInProgress),_(3),j("disabled",!!t.loginInProgress||null)}}var S3=(()=>{return(e=S3||(S3={}))[e.LOGIN=1]="LOGIN",e[e.TFA=2]="TFA",e[e.CAPTCHA=3]="CAPTCHA",S3;var e})();let yf2=(()=>{class e{constructor(t,i){this.loginService=t,this.routerService=i,this.countries=[],this.credentials={username:"",password:"",country:"US"},this.otp="",this.captcha="",this.captchaImageData="",this.captchaId="",this.loginInProgress=!1,this.loginFailed=!1,this.loginStep=S3.LOGIN,this.firstLoginAssumed=!1,this.emailIsValid=!0,this.passwordIsValid=!0,this.otpIsValid=!0,this.captchaIsValid=!0}ngOnInit(){this.getCredentials(),this.fillCountryArray()}getCredentials(){this.loginService.getCredentials().then(t=>this.credentials=t).catch(t=>{this.firstLoginAssumed=!0,console.log("Could not get config in login component: "+t)})}fillCountryArray(){Object.entries(of2).forEach(([t,i])=>{this.countries.push({short:t,long:i})})}login(){this.inputIsInvalid()||(this.resetLoginFailed(),this.loginInProgress=!0,this.loginStep===S3.LOGIN&&this.loginWithCredentials(),this.loginStep===S3.TFA&&this.loginWithTFA(),this.loginStep===S3.CAPTCHA&&this.loginWithCaptcha())}loginWithCredentials(){var t=this;return L2(function*(){let i;try{i=yield t.loginService.login(t.credentials)}catch(r){console.log("login error: "+r)}t.evaluateLoginResult(i)})()}loginWithTFA(){var t=this;return L2(function*(){let i;try{i=yield t.loginService.login({verifyCode:t.otp})}catch(r){console.log("login error: "+r)}t.evaluateLoginResult(i)})()}loginWithCaptcha(){var t=this;return L2(function*(){let i;try{i=yield t.loginService.login({captcha:{captchaCode:t.captcha,captchaId:t.captchaId}})}catch(r){console.log("login error: "+r)}t.evaluateLoginResult(i)})()}evaluateLoginResult(t){if(this.loginInProgress=!1,t&&t.success)this.loginService.updateConfigCredentials(this.credentials),this.routerService.navigate(["/accessories",{waitForAccessories:!0}]);else{if(t&&t.failReason&&t.failReason===Tn.TFA)return void(this.loginStep=S3.TFA);if(t&&t.failReason&&t.failReason===Tn.CAPTCHA&&t.data&&t.data.id&&t.data.captcha)return this.loginStep=S3.CAPTCHA,this.captchaId=t.data.id,void(this.captchaImageData=t.data.captcha);this.loginStep=S3.LOGIN,this.loginFailed=!0}}inputIsInvalid(){this.emailIsValid=!0,this.passwordIsValid=!0,this.otpIsValid=!0;let t=!1;return this.loginStep===S3.LOGIN&&this.credentials.username.length<4&&(this.emailIsValid=!1,t=!0),this.loginStep===S3.LOGIN&&this.credentials.password.length<4&&(this.passwordIsValid=!1,t=!0),this.loginStep===S3.TFA&&this.otp.length<6&&(this.otpIsValid=!1,t=!0),this.loginStep===S3.CAPTCHA&&this.captcha.length<4&&(this.captchaIsValid=!1,t=!0),t}resetLoginFailed(){this.loginFailed=!1}cancelLogin(){this.routerService.navigate(["/accessories"])}}return e.\u0275fac=function(t){return new(t||e)(V(sf2),V(X1))},e.\u0275cmp=s2({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"],[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"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm"],[1,"row","mb-3"],[1,"form-floating","mb-3","col-8","col-sm-6"],["type","text","id","floatingOTP","placeholder","",3,"ngModel","ngModelChange"],["for","floatingOTP"],[1,"row","d-flex","justify-content-center","mb-3"],[1,"col-8","col-sm-6"],["type","button",1,"btn","btn-success","col-12",3,"click"],[1,"col-10","col-sm-8",3,"src"]],template:function(t,i){1&t&&(kt(),g(0,"svg",0)(1,"symbol",1),R(2,"path",2),m(),g(3,"symbol",3),R(4,"path",4),m()(),O(5,cf2,4,0,"ng-template",null,5,J3),It(),g(7,"div",6),O(8,lf2,6,1,"p",7),g(9,"div",8),O(10,hf2,26,14,"div",9),O(11,mf2,18,7,"div",9),O(12,Mf2,20,8,"div",9),m()()),2&t&&(_(8),b("ngIf",i.loginFailed),_(2),b("ngIf",1===i.loginStep),_(1),b("ngIf",2===i.loginStep),_(1),b("ngIf",3===i.loginStep))},directives:[B1,$p,vU,ze,M1,h1,m7,ne,rt,ot,st],encapsulation:2}),e})(),bf2=(()=>{class e extends y1{constructor(t){super(t),this.value=[]}ngOnInit(){this.readValue()}readValue(){var t=this;return L2(function*(){var i;const r=yield t.getStationConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");r&&Array.isArray(r.manualTriggerModes)&&(t.value=r.manualTriggerModes)})()}toggle(t){-1!==this.value.indexOf(t)?this.value=this.value.filter(i=>i!==t):this.value.push(t)}update(){this.updateConfig({manualTriggerModes:this.value},this.accessory)}}return e.\u0275fac=function(t){return new(t||e)(V(J2))},e.\u0275cmp=s2({type:e,selectors:[["app-manual-alarm-modes"]],inputs:{accessory:"accessory"},features:[J],decls:36,vars:4,consts:[[1,"settingsItem","row","p-3"],[1,"mb-4"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"change"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"span",1),y(2,"Manual Alarm Trigger Modes"),m(),g(3,"div",2)(4,"span"),y(5,"HomeKit Home"),m(),g(6,"div",3)(7,"input",4),T("change",function(){return i.toggle(0),i.update()}),m()()(),g(8,"div",2)(9,"span"),y(10,"HomeKit Away"),m(),g(11,"div",3)(12,"input",4),T("change",function(){return i.toggle(1),i.update()}),m()()(),g(13,"div",2)(14,"span"),y(15,"HomeKit Night"),m(),g(16,"div",3)(17,"input",4),T("change",function(){return i.toggle(2),i.update()}),m()()(),g(18,"div",2)(19,"span"),y(20,"HomeKit Off/Disarmed"),m(),g(21,"div",3)(22,"input",4),T("change",function(){return i.toggle(3),i.update()}),m()()(),g(23,"small")(24,"i"),y(25," You can manually trigger (and reset) the stations alarm with a switch. Therefore you can utilize non eufy devices (e.g. a motion sensor, leak sensor, break-in sensor, ... from another vendor) to trigger the alarm with a homekit automation."),R(26,"p"),y(27," In order to do so, you must specify in which station mode the alarm can be triggered. "),R(28,"p"),y(29," Please be aware that this setting can only be set on a per station basis and not per automation."),R(30,"br"),y(31," By default the alarm cause will be shown as 'motion detected' in the eufy app. "),R(32,"p"),y(33," The manual alarm respects the delay alarm on leave settings from the eufy app. Triggered automations while the delay is effective will be ignored."),R(34,"br"),y(35," The native alarm delay setting is currently not supported. "),m()()()),2&t&&(_(7),j("checked",-1!==i.value.indexOf(0)||null),_(5),j("checked",-1!==i.value.indexOf(1)||null),_(5),j("checked",-1!==i.value.indexOf(2)||null),_(5),j("checked",-1!==i.value.indexOf(3)||null))},encapsulation:2}),e})();function Lf2(e,n){if(1&e&&(g(0,"div",2)(1,"div",3)(2,"b"),y(3,"Station Settings"),m(),y(4," for "),g(5,"i"),y(6),m()(),g(7,"div",4),R(8,"app-ignore-accessory",5)(9,"hr")(10,"app-manual-alarm-modes",5),m()()),2&e){const t=E();_(6),d6("",t.accessory.displayName," (",t.accessory.uniqueId,")"),_(2),b("accessory",t.accessory),_(2),b("accessory",t.accessory)}}function Hf2(e,n){if(1&e){const t=V1();g(0,"p",7)(1,"ngb-alert",8),T("closed",function(){return W(t),E().failed=!1}),kt(),g(2,"svg",9),R(3,"use",10),m(),It(),g(4,"strong"),y(5,"Reset was not successful!"),m()()()}2&e&&(_(1),b("dismissible",!0))}const wf2=[{path:"",redirectTo:"/accessories",pathMatch:"full"},{path:"accessories",component:Jl2},{path:"advancedConfig",component:bu2},{path:"cameraConfig/:uniqueId",component:af2},{path:"stationConfig/:uniqueId",component:(()=>{class e{constructor(t,i){this.pluginService=t,this.route=i}ngOnInit(){const t=this.route.snapshot.paramMap.get("uniqueId");this.accessory=this.pluginService.getStation(t)}}return e.\u0275fac=function(t){return new(t||e)(V(J2),V(Ce))},e.\u0275cmp=s2({type:e,selectors:[["app-station-config-options"]],decls:3,vars:1,consts:[["routerLink","/accessories",1,"btn","btn-secondary","mb-3"],["class","card",4,"ngIf"],[1,"card"],[1,"card-header"],[1,"card-body","pt-0","pb-4"],[3,"accessory"]],template:function(t,i){1&t&&(g(0,"a",0),y(1,"Back to Devices List"),m(),O(2,Lf2,11,4,"div",1)),2&t&&(_(2),b("ngIf",i.accessory))},directives:[de,B1,gw,bf2],encapsulation:2}),e})()},{path:"login",component:yf2},{path:"reset",component:(()=>{class e{constructor(t,i){this.routerService=t,this.pluginService=i,this.disabled=!1,this.failed=!1}cancel(){this.routerService.navigateByUrl("/accessories")}resetEverything(){var t=this;return L2(function*(){t.disabled=!0;try{const i=yield window.homebridge.request("/reset");t.failed=1!==i.result}catch(i){t.failed=!0}t.disabled=!1,t.failed||(yield t.pluginService.updateConfig({},!0),window.homebridge.closeSettings())})()}}return e.\u0275fac=function(t){return new(t||e)(V(X1),V(J2))},e.\u0275cmp=s2({type:e,selectors:[["app-reset-confirmation"]],decls:10,vars:3,consts:[[1,"row","d-flex","justify-content-center"],["class","col-11 col-sm-7",4,"ngIf"],[1,"col-11","col-sm-7","card","p-4"],[1,"text-center","mb-4"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-center"],["type","button",1,"btn","btn-secondary","col-11","col-sm-3","mb-sm-0","mb-3",3,"click"],["type","button",1,"btn","btn-danger","col-11","col-sm-3",3,"click"],[1,"col-11","col-sm-7"],["type","danger",3,"dismissible","closed"],["width","24","height","24","role","img","aria-label","Login Error",1,"bi","flex-shrink-0","me-2"],[0,"xlink","href","#exclamation-triangle-fill"]],template:function(t,i){1&t&&(g(0,"div",0),O(1,Hf2,6,1,"p",1),g(2,"div",2)(3,"h3",3),y(4,"Are you sure that you want to erase everything?"),m(),g(5,"div",4)(6,"button",5),T("click",function(){return i.cancel()}),y(7,"No"),m(),g(8,"button",6),T("click",function(){return i.resetEverything()}),y(9,"Do it!"),m()()()()),2&t&&(_(1),b("ngIf",i.failed),_(5),j("disabled",!!i.disabled||null),_(2),j("disabled",!!i.disabled||null))},directives:[B1,$p],encapsulation:2}),e})()},{path:"**",redirectTo:"/accessories"}];let Df2=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({imports:[[jv.forRoot(wf2,{scrollPositionRestoration:"enabled"})],jv]}),e})(),Sf2=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e,bootstrap:[DW]}),e.\u0275inj=E2({providers:[{provide:it,useClass:Id}],imports:[[eO,gp,LU,Df2,mG]]}),e})();(function RA(){yd=!1})(),JI().bootstrapModule(Sf2).catch(e=>console.error(e))},343:(wt,z3)=>{"use strict";z3.byteLength=function e1(n2){var _2=x2(n2),u1=_2[1];return 3*(_2[0]+u1)/4-u1},z3.toByteArray=function S1(n2){var _2,a3,F2=x2(n2),u1=F2[0],g1=F2[1],q2=new n3(function N(n2,_2,F2){return 3*(_2+F2)/4-F2}(0,u1,g1)),r3=0,U3=g1>0?u1-4:u1;for(a3=0;a3<U3;a3+=4)_2=Y[n2.charCodeAt(a3)]<<18|Y[n2.charCodeAt(a3+1)]<<12|Y[n2.charCodeAt(a3+2)]<<6|Y[n2.charCodeAt(a3+3)],q2[r3++]=_2>>16&255,q2[r3++]=_2>>8&255,q2[r3++]=255&_2;return 2===g1&&(_2=Y[n2.charCodeAt(a3)]<<2|Y[n2.charCodeAt(a3+1)]>>4,q2[r3++]=255&_2),1===g1&&(_2=Y[n2.charCodeAt(a3)]<<10|Y[n2.charCodeAt(a3+1)]<<4|Y[n2.charCodeAt(a3+2)]>>2,q2[r3++]=_2>>8&255,q2[r3++]=255&_2),q2},z3.fromByteArray=function k1(n2){for(var _2,F2=n2.length,u1=F2%3,g1=[],r3=0,U3=F2-u1;r3<U3;r3+=16383)g1.push(z1(n2,r3,r3+16383>U3?U3:r3+16383));return 1===u1?g1.push(r1[(_2=n2[F2-1])>>2]+r1[_2<<4&63]+"=="):2===u1&&g1.push(r1[(_2=(n2[F2-2]<<8)+n2[F2-1])>>10]+r1[_2>>4&63]+r1[_2<<2&63]+"="),g1.join("")};for(var r1=[],Y=[],n3="undefined"!=typeof Uint8Array?Uint8Array:Array,p1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",W2=0,H2=p1.length;W2<H2;++W2)r1[W2]=p1[W2],Y[p1.charCodeAt(W2)]=W2;function x2(n2){var _2=n2.length;if(_2%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var F2=n2.indexOf("=");return-1===F2&&(F2=_2),[F2,F2===_2?0:4-F2%4]}function t1(n2){return r1[n2>>18&63]+r1[n2>>12&63]+r1[n2>>6&63]+r1[63&n2]}function z1(n2,_2,F2){for(var g1=[],q2=_2;q2<F2;q2+=3)g1.push(t1((n2[q2]<<16&16711680)+(n2[q2+1]<<8&65280)+(255&n2[q2+2])));return g1.join("")}Y["-".charCodeAt(0)]=62,Y["_".charCodeAt(0)]=63},172:(wt,z3,r1)=>{"use strict";var n3=r1(343),p1=r1(461),W2="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;z3.lW=N,z3.h2=50;var H2=2147483647;function e1(v){if(v>H2)throw new RangeError('The value "'+v+'" is invalid for option "size"');var C=new Uint8Array(v);return Object.setPrototypeOf(C,N.prototype),C}function N(v,C,d){if("number"==typeof v){if("string"==typeof C)throw new TypeError('The "string" argument must be of type string. Received type number');return k1(v)}return S1(v,C,d)}function S1(v,C,d){if("string"==typeof v)return function n2(v,C){if(("string"!=typeof C||""===C)&&(C="utf8"),!N.isEncoding(C))throw new TypeError("Unknown encoding: "+C);var d=0|U3(v,C),M=e1(d),D=M.write(v,C);return D!==d&&(M=M.slice(0,D)),M}(v,C);if(ArrayBuffer.isView(v))return function F2(v){if(s4(v,Uint8Array)){var C=new Uint8Array(v);return u1(C.buffer,C.byteOffset,C.byteLength)}return _2(v)}(v);if(null==v)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof v);if(s4(v,ArrayBuffer)||v&&s4(v.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(s4(v,SharedArrayBuffer)||v&&s4(v.buffer,SharedArrayBuffer)))return u1(v,C,d);if("number"==typeof v)throw new TypeError('The "value" argument must not be of type number. Received type number');var M=v.valueOf&&v.valueOf();if(null!=M&&M!==v)return N.from(M,C,d);var D=function g1(v){if(N.isBuffer(v)){var C=0|q2(v.length),d=e1(C);return 0===d.length||v.copy(d,0,0,C),d}return void 0!==v.length?"number"!=typeof v.length||Pn(v.length)?e1(0):_2(v):"Buffer"===v.type&&Array.isArray(v.data)?_2(v.data):void 0}(v);if(D)return D;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof v[Symbol.toPrimitive])return N.from(v[Symbol.toPrimitive]("string"),C,d);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof v)}function t1(v){if("number"!=typeof v)throw new TypeError('"size" argument must be of type number');if(v<0)throw new RangeError('The value "'+v+'" is invalid for option "size"')}function k1(v){return t1(v),e1(v<0?0:0|q2(v))}function _2(v){for(var C=v.length<0?0:0|q2(v.length),d=e1(C),M=0;M<C;M+=1)d[M]=255&v[M];return d}function u1(v,C,d){if(C<0||v.byteLength<C)throw new RangeError('"offset" is outside of buffer bounds');if(v.byteLength<C+(d||0))throw new RangeError('"length" is outside of buffer bounds');var M;return M=void 0===C&&void 0===d?new Uint8Array(v):void 0===d?new Uint8Array(v,C):new Uint8Array(v,C,d),Object.setPrototypeOf(M,N.prototype),M}function q2(v){if(v>=H2)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+H2.toString(16)+" bytes");return 0|v}function U3(v,C){if(N.isBuffer(v))return v.length;if(ArrayBuffer.isView(v)||s4(v,ArrayBuffer))return v.byteLength;if("string"!=typeof v)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof v);var d=v.length,M=arguments.length>2&&!0===arguments[2];if(!M&&0===d)return 0;for(var D=!1;;)switch(C){case"ascii":case"latin1":case"binary":return d;case"utf8":case"utf-8":return Ue(v).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*d;case"hex":return d>>>1;case"base64":return Oi(v).length;default:if(D)return M?-1:Ue(v).length;C=(""+C).toLowerCase(),D=!0}}function a3(v,C,d){var M=!1;if((void 0===C||C<0)&&(C=0),C>this.length||((void 0===d||d>this.length)&&(d=this.length),d<=0)||(d>>>=0)<=(C>>>=0))return"";for(v||(v="utf8");;)switch(v){case"hex":return Ai(this,C,d);case"utf8":case"utf-8":return Ei(this,C,d);case"ascii":return On(this,C,d);case"latin1":case"binary":return Ti(this,C,d);case"base64":return o4(this,C,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ki(this,C,d);default:if(M)throw new TypeError("Unknown encoding: "+v);v=(v+"").toLowerCase(),M=!0}}function a4(v,C,d){var M=v[C];v[C]=v[d],v[d]=M}function In(v,C,d,M,D){if(0===v.length)return-1;if("string"==typeof d?(M=d,d=0):d>2147483647?d=2147483647:d<-2147483648&&(d=-2147483648),Pn(d=+d)&&(d=D?0:v.length-1),d<0&&(d=v.length+d),d>=v.length){if(D)return-1;d=v.length-1}else if(d<0){if(!D)return-1;d=0}if("string"==typeof C&&(C=N.from(C,M)),N.isBuffer(C))return 0===C.length?-1:Be(v,C,d,M,D);if("number"==typeof C)return C&=255,"function"==typeof Uint8Array.prototype.indexOf?D?Uint8Array.prototype.indexOf.call(v,C,d):Uint8Array.prototype.lastIndexOf.call(v,C,d):Be(v,[C],d,M,D);throw new TypeError("val must be string, number or Buffer")}function Be(v,C,d,M,D){var Y2,I=1,P=v.length,D2=C.length;if(void 0!==M&&("ucs2"===(M=String(M).toLowerCase())||"ucs-2"===M||"utf16le"===M||"utf-16le"===M)){if(v.length<2||C.length<2)return-1;I=2,P/=2,D2/=2,d/=2}function w2(Fn,Pi){return 1===I?Fn[Pi]:Fn.readUInt16BE(Pi*I)}if(D){var Y1=-1;for(Y2=d;Y2<P;Y2++)if(w2(v,Y2)===w2(C,-1===Y1?0:Y2-Y1)){if(-1===Y1&&(Y1=Y2),Y2-Y1+1===D2)return Y1*I}else-1!==Y1&&(Y2-=Y2-Y1),Y1=-1}else for(d+D2>P&&(d=P-D2),Y2=d;Y2>=0;Y2--){for(var o1=!0,W6=0;W6<D2;W6++)if(w2(v,Y2+W6)!==w2(C,W6)){o1=!1;break}if(o1)return Y2}return-1}function Dt(v,C,d,M){d=Number(d)||0;var D=v.length-d;M?(M=Number(M))>D&&(M=D):M=D;var I=C.length;M>I/2&&(M=I/2);for(var P=0;P<M;++P){var D2=parseInt(C.substr(2*P,2),16);if(Pn(D2))return P;v[d+P]=D2}return P}function Ni(v,C,d,M){return $6(Ue(C,v.length-d),v,d,M)}function B6(v,C,d,M){return $6(function F9(v){for(var C=[],d=0;d<v.length;++d)C.push(255&v.charCodeAt(d));return C}(C),v,d,M)}function xi(v,C,d,M){return $6(Oi(C),v,d,M)}function U6(v,C,d,M){return $6(function Rn(v,C){for(var d,M,I=[],P=0;P<v.length&&!((C-=2)<0);++P)M=(d=v.charCodeAt(P))>>8,I.push(d%256),I.push(M);return I}(C,v.length-d),v,d,M)}function o4(v,C,d){return n3.fromByteArray(0===C&&d===v.length?v:v.slice(C,d))}function Ei(v,C,d){d=Math.min(v.length,d);for(var M=[],D=C;D<d;){var w2,Y2,Y1,o1,I=v[D],P=null,D2=I>239?4:I>223?3:I>191?2:1;if(D+D2<=d)switch(D2){case 1:I<128&&(P=I);break;case 2:128==(192&(w2=v[D+1]))&&(o1=(31&I)<<6|63&w2)>127&&(P=o1);break;case 3:Y2=v[D+2],128==(192&(w2=v[D+1]))&&128==(192&Y2)&&(o1=(15&I)<<12|(63&w2)<<6|63&Y2)>2047&&(o1<55296||o1>57343)&&(P=o1);break;case 4:Y2=v[D+2],Y1=v[D+3],128==(192&(w2=v[D+1]))&&128==(192&Y2)&&128==(192&Y1)&&(o1=(15&I)<<18|(63&w2)<<12|(63&Y2)<<6|63&Y1)>65535&&o1<1114112&&(P=o1)}null===P?(P=65533,D2=1):P>65535&&(M.push((P-=65536)>>>10&1023|55296),P=56320|1023&P),M.push(P),D+=D2}return function A2(v){var C=v.length;if(C<=4096)return String.fromCharCode.apply(String,v);for(var d="",M=0;M<C;)d+=String.fromCharCode.apply(String,v.slice(M,M+=4096));return d}(M)}function On(v,C,d){var M="";d=Math.min(v.length,d);for(var D=C;D<d;++D)M+=String.fromCharCode(127&v[D]);return M}function Ti(v,C,d){var M="";d=Math.min(v.length,d);for(var D=C;D<d;++D)M+=String.fromCharCode(v[D]);return M}function Ai(v,C,d){var M=v.length;(!C||C<0)&&(C=0),(!d||d<0||d>M)&&(d=M);for(var D="",I=C;I<d;++I)D+=Ri[v[I]];return D}function ki(v,C,d){for(var M=v.slice(C,d),D="",I=0;I<M.length-1;I+=2)D+=String.fromCharCode(M[I]+256*M[I+1]);return D}function C2(v,C,d){if(v%1!=0||v<0)throw new RangeError("offset is not uint");if(v+C>d)throw new RangeError("Trying to access beyond buffer length")}function q1(v,C,d,M,D,I){if(!N.isBuffer(v))throw new TypeError('"buffer" argument must be a Buffer instance');if(C>D||C<I)throw new RangeError('"value" argument is out of bounds');if(d+M>v.length)throw new RangeError("Index out of range")}function G6(v,C,d,M,D,I){if(d+M>v.length)throw new RangeError("Index out of range");if(d<0)throw new RangeError("Index out of range")}function a1(v,C,d,M,D){return C=+C,d>>>=0,D||G6(v,0,d,4),p1.write(v,C,d,M,23,4),d+4}function O2(v,C,d,M,D){return C=+C,d>>>=0,D||G6(v,0,d,8),p1.write(v,C,d,M,52,8),d+8}!(N.TYPED_ARRAY_SUPPORT=function x2(){try{var v=new Uint8Array(1),C={foo:function(){return 42}};return Object.setPrototypeOf(C,Uint8Array.prototype),Object.setPrototypeOf(v,C),42===v.foo()}catch(d){return!1}}())&&"undefined"!=typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(N.prototype,"parent",{enumerable:!0,get:function(){if(N.isBuffer(this))return this.buffer}}),Object.defineProperty(N.prototype,"offset",{enumerable:!0,get:function(){if(N.isBuffer(this))return this.byteOffset}}),N.poolSize=8192,N.from=function(v,C,d){return S1(v,C,d)},Object.setPrototypeOf(N.prototype,Uint8Array.prototype),Object.setPrototypeOf(N,Uint8Array),N.alloc=function(v,C,d){return function z1(v,C,d){return t1(v),v<=0?e1(v):void 0!==C?"string"==typeof d?e1(v).fill(C,d):e1(v).fill(C):e1(v)}(v,C,d)},N.allocUnsafe=function(v){return k1(v)},N.allocUnsafeSlow=function(v){return k1(v)},N.isBuffer=function(C){return null!=C&&!0===C._isBuffer&&C!==N.prototype},N.compare=function(C,d){if(s4(C,Uint8Array)&&(C=N.from(C,C.offset,C.byteLength)),s4(d,Uint8Array)&&(d=N.from(d,d.offset,d.byteLength)),!N.isBuffer(C)||!N.isBuffer(d))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(C===d)return 0;for(var M=C.length,D=d.length,I=0,P=Math.min(M,D);I<P;++I)if(C[I]!==d[I]){M=C[I],D=d[I];break}return M<D?-1:D<M?1:0},N.isEncoding=function(C){switch(String(C).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}},N.concat=function(C,d){if(!Array.isArray(C))throw new TypeError('"list" argument must be an Array of Buffers');if(0===C.length)return N.alloc(0);var M;if(void 0===d)for(d=0,M=0;M<C.length;++M)d+=C[M].length;var D=N.allocUnsafe(d),I=0;for(M=0;M<C.length;++M){var P=C[M];if(s4(P,Uint8Array))I+P.length>D.length?N.from(P).copy(D,I):Uint8Array.prototype.set.call(D,P,I);else{if(!N.isBuffer(P))throw new TypeError('"list" argument must be an Array of Buffers');P.copy(D,I)}I+=P.length}return D},N.byteLength=U3,N.prototype._isBuffer=!0,N.prototype.swap16=function(){var C=this.length;if(C%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var d=0;d<C;d+=2)a4(this,d,d+1);return this},N.prototype.swap32=function(){var C=this.length;if(C%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var d=0;d<C;d+=4)a4(this,d,d+3),a4(this,d+1,d+2);return this},N.prototype.swap64=function(){var C=this.length;if(C%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var d=0;d<C;d+=8)a4(this,d,d+7),a4(this,d+1,d+6),a4(this,d+2,d+5),a4(this,d+3,d+4);return this},N.prototype.toLocaleString=N.prototype.toString=function(){var C=this.length;return 0===C?"":0===arguments.length?Ei(this,0,C):a3.apply(this,arguments)},N.prototype.equals=function(C){if(!N.isBuffer(C))throw new TypeError("Argument must be a Buffer");return this===C||0===N.compare(this,C)},N.prototype.inspect=function(){var C="",d=z3.h2;return C=this.toString("hex",0,d).replace(/(.{2})/g,"$1 ").trim(),this.length>d&&(C+=" ... "),"<Buffer "+C+">"},W2&&(N.prototype[W2]=N.prototype.inspect),N.prototype.compare=function(C,d,M,D,I){if(s4(C,Uint8Array)&&(C=N.from(C,C.offset,C.byteLength)),!N.isBuffer(C))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof C);if(void 0===d&&(d=0),void 0===M&&(M=C?C.length:0),void 0===D&&(D=0),void 0===I&&(I=this.length),d<0||M>C.length||D<0||I>this.length)throw new RangeError("out of range index");if(D>=I&&d>=M)return 0;if(D>=I)return-1;if(d>=M)return 1;if(this===C)return 0;for(var P=(I>>>=0)-(D>>>=0),D2=(M>>>=0)-(d>>>=0),w2=Math.min(P,D2),Y2=this.slice(D,I),Y1=C.slice(d,M),o1=0;o1<w2;++o1)if(Y2[o1]!==Y1[o1]){P=Y2[o1],D2=Y1[o1];break}return P<D2?-1:D2<P?1:0},N.prototype.includes=function(C,d,M){return-1!==this.indexOf(C,d,M)},N.prototype.indexOf=function(C,d,M){return In(this,C,d,M,!0)},N.prototype.lastIndexOf=function(C,d,M){return In(this,C,d,M,!1)},N.prototype.write=function(C,d,M,D){if(void 0===d)D="utf8",M=this.length,d=0;else if(void 0===M&&"string"==typeof d)D=d,M=this.length,d=0;else{if(!isFinite(d))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");d>>>=0,isFinite(M)?(M>>>=0,void 0===D&&(D="utf8")):(D=M,M=void 0)}var I=this.length-d;if((void 0===M||M>I)&&(M=I),C.length>0&&(M<0||d<0)||d>this.length)throw new RangeError("Attempt to write outside buffer bounds");D||(D="utf8");for(var P=!1;;)switch(D){case"hex":return Dt(this,C,d,M);case"utf8":case"utf-8":return Ni(this,C,d,M);case"ascii":case"latin1":case"binary":return B6(this,C,d,M);case"base64":return xi(this,C,d,M);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U6(this,C,d,M);default:if(P)throw new TypeError("Unknown encoding: "+D);D=(""+D).toLowerCase(),P=!0}},N.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},N.prototype.slice=function(C,d){var M=this.length;(C=~~C)<0?(C+=M)<0&&(C=0):C>M&&(C=M),(d=void 0===d?M:~~d)<0?(d+=M)<0&&(d=0):d>M&&(d=M),d<C&&(d=C);var D=this.subarray(C,d);return Object.setPrototypeOf(D,N.prototype),D},N.prototype.readUintLE=N.prototype.readUIntLE=function(C,d,M){C>>>=0,d>>>=0,M||C2(C,d,this.length);for(var D=this[C],I=1,P=0;++P<d&&(I*=256);)D+=this[C+P]*I;return D},N.prototype.readUintBE=N.prototype.readUIntBE=function(C,d,M){C>>>=0,d>>>=0,M||C2(C,d,this.length);for(var D=this[C+--d],I=1;d>0&&(I*=256);)D+=this[C+--d]*I;return D},N.prototype.readUint8=N.prototype.readUInt8=function(C,d){return C>>>=0,d||C2(C,1,this.length),this[C]},N.prototype.readUint16LE=N.prototype.readUInt16LE=function(C,d){return C>>>=0,d||C2(C,2,this.length),this[C]|this[C+1]<<8},N.prototype.readUint16BE=N.prototype.readUInt16BE=function(C,d){return C>>>=0,d||C2(C,2,this.length),this[C]<<8|this[C+1]},N.prototype.readUint32LE=N.prototype.readUInt32LE=function(C,d){return C>>>=0,d||C2(C,4,this.length),(this[C]|this[C+1]<<8|this[C+2]<<16)+16777216*this[C+3]},N.prototype.readUint32BE=N.prototype.readUInt32BE=function(C,d){return C>>>=0,d||C2(C,4,this.length),16777216*this[C]+(this[C+1]<<16|this[C+2]<<8|this[C+3])},N.prototype.readIntLE=function(C,d,M){C>>>=0,d>>>=0,M||C2(C,d,this.length);for(var D=this[C],I=1,P=0;++P<d&&(I*=256);)D+=this[C+P]*I;return D>=(I*=128)&&(D-=Math.pow(2,8*d)),D},N.prototype.readIntBE=function(C,d,M){C>>>=0,d>>>=0,M||C2(C,d,this.length);for(var D=d,I=1,P=this[C+--D];D>0&&(I*=256);)P+=this[C+--D]*I;return P>=(I*=128)&&(P-=Math.pow(2,8*d)),P},N.prototype.readInt8=function(C,d){return C>>>=0,d||C2(C,1,this.length),128&this[C]?-1*(255-this[C]+1):this[C]},N.prototype.readInt16LE=function(C,d){C>>>=0,d||C2(C,2,this.length);var M=this[C]|this[C+1]<<8;return 32768&M?4294901760|M:M},N.prototype.readInt16BE=function(C,d){C>>>=0,d||C2(C,2,this.length);var M=this[C+1]|this[C]<<8;return 32768&M?4294901760|M:M},N.prototype.readInt32LE=function(C,d){return C>>>=0,d||C2(C,4,this.length),this[C]|this[C+1]<<8|this[C+2]<<16|this[C+3]<<24},N.prototype.readInt32BE=function(C,d){return C>>>=0,d||C2(C,4,this.length),this[C]<<24|this[C+1]<<16|this[C+2]<<8|this[C+3]},N.prototype.readFloatLE=function(C,d){return C>>>=0,d||C2(C,4,this.length),p1.read(this,C,!0,23,4)},N.prototype.readFloatBE=function(C,d){return C>>>=0,d||C2(C,4,this.length),p1.read(this,C,!1,23,4)},N.prototype.readDoubleLE=function(C,d){return C>>>=0,d||C2(C,8,this.length),p1.read(this,C,!0,52,8)},N.prototype.readDoubleBE=function(C,d){return C>>>=0,d||C2(C,8,this.length),p1.read(this,C,!1,52,8)},N.prototype.writeUintLE=N.prototype.writeUIntLE=function(C,d,M,D){C=+C,d>>>=0,M>>>=0,D||q1(this,C,d,M,Math.pow(2,8*M)-1,0);var P=1,D2=0;for(this[d]=255&C;++D2<M&&(P*=256);)this[d+D2]=C/P&255;return d+M},N.prototype.writeUintBE=N.prototype.writeUIntBE=function(C,d,M,D){C=+C,d>>>=0,M>>>=0,D||q1(this,C,d,M,Math.pow(2,8*M)-1,0);var P=M-1,D2=1;for(this[d+P]=255&C;--P>=0&&(D2*=256);)this[d+P]=C/D2&255;return d+M},N.prototype.writeUint8=N.prototype.writeUInt8=function(C,d,M){return C=+C,d>>>=0,M||q1(this,C,d,1,255,0),this[d]=255&C,d+1},N.prototype.writeUint16LE=N.prototype.writeUInt16LE=function(C,d,M){return C=+C,d>>>=0,M||q1(this,C,d,2,65535,0),this[d]=255&C,this[d+1]=C>>>8,d+2},N.prototype.writeUint16BE=N.prototype.writeUInt16BE=function(C,d,M){return C=+C,d>>>=0,M||q1(this,C,d,2,65535,0),this[d]=C>>>8,this[d+1]=255&C,d+2},N.prototype.writeUint32LE=N.prototype.writeUInt32LE=function(C,d,M){return C=+C,d>>>=0,M||q1(this,C,d,4,4294967295,0),this[d+3]=C>>>24,this[d+2]=C>>>16,this[d+1]=C>>>8,this[d]=255&C,d+4},N.prototype.writeUint32BE=N.prototype.writeUInt32BE=function(C,d,M){return C=+C,d>>>=0,M||q1(this,C,d,4,4294967295,0),this[d]=C>>>24,this[d+1]=C>>>16,this[d+2]=C>>>8,this[d+3]=255&C,d+4},N.prototype.writeIntLE=function(C,d,M,D){if(C=+C,d>>>=0,!D){var I=Math.pow(2,8*M-1);q1(this,C,d,M,I-1,-I)}var P=0,D2=1,w2=0;for(this[d]=255&C;++P<M&&(D2*=256);)C<0&&0===w2&&0!==this[d+P-1]&&(w2=1),this[d+P]=(C/D2>>0)-w2&255;return d+M},N.prototype.writeIntBE=function(C,d,M,D){if(C=+C,d>>>=0,!D){var I=Math.pow(2,8*M-1);q1(this,C,d,M,I-1,-I)}var P=M-1,D2=1,w2=0;for(this[d+P]=255&C;--P>=0&&(D2*=256);)C<0&&0===w2&&0!==this[d+P+1]&&(w2=1),this[d+P]=(C/D2>>0)-w2&255;return d+M},N.prototype.writeInt8=function(C,d,M){return C=+C,d>>>=0,M||q1(this,C,d,1,127,-128),C<0&&(C=255+C+1),this[d]=255&C,d+1},N.prototype.writeInt16LE=function(C,d,M){return C=+C,d>>>=0,M||q1(this,C,d,2,32767,-32768),this[d]=255&C,this[d+1]=C>>>8,d+2},N.prototype.writeInt16BE=function(C,d,M){return C=+C,d>>>=0,M||q1(this,C,d,2,32767,-32768),this[d]=C>>>8,this[d+1]=255&C,d+2},N.prototype.writeInt32LE=function(C,d,M){return C=+C,d>>>=0,M||q1(this,C,d,4,2147483647,-2147483648),this[d]=255&C,this[d+1]=C>>>8,this[d+2]=C>>>16,this[d+3]=C>>>24,d+4},N.prototype.writeInt32BE=function(C,d,M){return C=+C,d>>>=0,M||q1(this,C,d,4,2147483647,-2147483648),C<0&&(C=4294967295+C+1),this[d]=C>>>24,this[d+1]=C>>>16,this[d+2]=C>>>8,this[d+3]=255&C,d+4},N.prototype.writeFloatLE=function(C,d,M){return a1(this,C,d,!0,M)},N.prototype.writeFloatBE=function(C,d,M){return a1(this,C,d,!1,M)},N.prototype.writeDoubleLE=function(C,d,M){return O2(this,C,d,!0,M)},N.prototype.writeDoubleBE=function(C,d,M){return O2(this,C,d,!1,M)},N.prototype.copy=function(C,d,M,D){if(!N.isBuffer(C))throw new TypeError("argument should be a Buffer");if(M||(M=0),!D&&0!==D&&(D=this.length),d>=C.length&&(d=C.length),d||(d=0),D>0&&D<M&&(D=M),D===M||0===C.length||0===this.length)return 0;if(d<0)throw new RangeError("targetStart out of bounds");if(M<0||M>=this.length)throw new RangeError("Index out of range");if(D<0)throw new RangeError("sourceEnd out of bounds");D>this.length&&(D=this.length),C.length-d<D-M&&(D=C.length-d+M);var I=D-M;return this===C&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(d,M,D):Uint8Array.prototype.set.call(C,this.subarray(M,D),d),I},N.prototype.fill=function(C,d,M,D){if("string"==typeof C){if("string"==typeof d?(D=d,d=0,M=this.length):"string"==typeof M&&(D=M,M=this.length),void 0!==D&&"string"!=typeof D)throw new TypeError("encoding must be a string");if("string"==typeof D&&!N.isEncoding(D))throw new TypeError("Unknown encoding: "+D);if(1===C.length){var I=C.charCodeAt(0);("utf8"===D&&I<128||"latin1"===D)&&(C=I)}}else"number"==typeof C?C&=255:"boolean"==typeof C&&(C=Number(C));if(d<0||this.length<d||this.length<M)throw new RangeError("Out of range index");if(M<=d)return this;var P;if(d>>>=0,M=void 0===M?this.length:M>>>0,C||(C=0),"number"==typeof C)for(P=d;P<M;++P)this[P]=C;else{var D2=N.isBuffer(C)?C:N.from(C,D),w2=D2.length;if(0===w2)throw new TypeError('The value "'+C+'" is invalid for argument "value"');for(P=0;P<M-d;++P)this[P+d]=D2[P%w2]}return this};var Ii=/[^+/0-9A-Za-z-_]/g;function Ue(v,C){C=C||1/0;for(var d,M=v.length,D=null,I=[],P=0;P<M;++P){if((d=v.charCodeAt(P))>55295&&d<57344){if(!D){if(d>56319){(C-=3)>-1&&I.push(239,191,189);continue}if(P+1===M){(C-=3)>-1&&I.push(239,191,189);continue}D=d;continue}if(d<56320){(C-=3)>-1&&I.push(239,191,189),D=d;continue}d=65536+(D-55296<<10|d-56320)}else D&&(C-=3)>-1&&I.push(239,191,189);if(D=null,d<128){if((C-=1)<0)break;I.push(d)}else if(d<2048){if((C-=2)<0)break;I.push(d>>6|192,63&d|128)}else if(d<65536){if((C-=3)<0)break;I.push(d>>12|224,d>>6&63|128,63&d|128)}else{if(!(d<1114112))throw new Error("Invalid code point");if((C-=4)<0)break;I.push(d>>18|240,d>>12&63|128,d>>6&63|128,63&d|128)}}return I}function Oi(v){return n3.toByteArray(function m2(v){if((v=(v=v.split("=")[0]).trim().replace(Ii,"")).length<2)return"";for(;v.length%4!=0;)v+="=";return v}(v))}function $6(v,C,d,M){for(var D=0;D<M&&!(D+d>=C.length||D>=v.length);++D)C[D+d]=v[D];return D}function s4(v,C){return v instanceof C||null!=v&&null!=v.constructor&&null!=v.constructor.name&&v.constructor.name===C.name}function Pn(v){return v!=v}var Ri=function(){for(var v="0123456789abcdef",C=new Array(256),d=0;d<16;++d)for(var M=16*d,D=0;D<16;++D)C[M+D]=v[d]+v[D];return C}()},461:(wt,z3)=>{z3.read=function(r1,Y,n3,p1,W2){var H2,x2,e1=8*W2-p1-1,N=(1<<e1)-1,S1=N>>1,t1=-7,z1=n3?W2-1:0,k1=n3?-1:1,n2=r1[Y+z1];for(z1+=k1,H2=n2&(1<<-t1)-1,n2>>=-t1,t1+=e1;t1>0;H2=256*H2+r1[Y+z1],z1+=k1,t1-=8);for(x2=H2&(1<<-t1)-1,H2>>=-t1,t1+=p1;t1>0;x2=256*x2+r1[Y+z1],z1+=k1,t1-=8);if(0===H2)H2=1-S1;else{if(H2===N)return x2?NaN:1/0*(n2?-1:1);x2+=Math.pow(2,p1),H2-=S1}return(n2?-1:1)*x2*Math.pow(2,H2-p1)},z3.write=function(r1,Y,n3,p1,W2,H2){var x2,e1,N,S1=8*H2-W2-1,t1=(1<<S1)-1,z1=t1>>1,k1=23===W2?Math.pow(2,-24)-Math.pow(2,-77):0,n2=p1?0:H2-1,_2=p1?1:-1,F2=Y<0||0===Y&&1/Y<0?1:0;for(Y=Math.abs(Y),isNaN(Y)||Y===1/0?(e1=isNaN(Y)?1:0,x2=t1):(x2=Math.floor(Math.log(Y)/Math.LN2),Y*(N=Math.pow(2,-x2))<1&&(x2--,N*=2),(Y+=x2+z1>=1?k1/N:k1*Math.pow(2,1-z1))*N>=2&&(x2++,N/=2),x2+z1>=t1?(e1=0,x2=t1):x2+z1>=1?(e1=(Y*N-1)*Math.pow(2,W2),x2+=z1):(e1=Y*Math.pow(2,z1-1)*Math.pow(2,W2),x2=0));W2>=8;r1[n3+n2]=255&e1,n2+=_2,e1/=256,W2-=8);for(x2=x2<<W2|e1,S1+=W2;S1>0;r1[n3+n2]=255&x2,n2+=_2,x2/=256,S1-=8);r1[n3+n2-_2]|=128*F2}}},wt=>{wt(wt.s=623)}]);
|
|
1
|
+
(self.webpackChunkconfig_ui=self.webpackChunkconfig_ui||[]).push([[179],{623:(wt,N3,r1)=>{"use strict";function K(e){return"function"==typeof e}function n3(e){const t=e(i=>{Error.call(i),i.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const p1=n3(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((i,r)=>`${r+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function W2(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class H2{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const a of t)a.remove(this);else t.remove(this);const{initialTeardown:i}=this;if(K(i))try{i()}catch(a){n=a instanceof p1?a.errors:[a]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const a of r)try{z(a)}catch(o){n=null!=n?n:[],o instanceof p1?n=[...n,...o.errors]:n.push(o)}}if(n)throw new p1(n)}}add(n){var t;if(n&&n!==this)if(this.closed)z(n);else{if(n instanceof H2){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(n)}}_hasParent(n){const{_parentage:t}=this;return t===n||Array.isArray(t)&&t.includes(n)}_addParent(n){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n}_removeParent(n){const{_parentage:t}=this;t===n?this._parentage=null:Array.isArray(t)&&W2(t,n)}remove(n){const{_finalizers:t}=this;t&&W2(t,n),n instanceof H2&&n._removeParent(this)}}H2.EMPTY=(()=>{const e=new H2;return e.closed=!0,e})();const x2=H2.EMPTY;function e1(e){return e instanceof H2||e&&"closed"in e&&K(e.remove)&&K(e.add)&&K(e.unsubscribe)}function z(e){K(e)?e():e.unsubscribe()}const S1={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},t1={setTimeout(e,n,...t){const{delegate:i}=t1;return(null==i?void 0:i.setTimeout)?i.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=t1;return((null==n?void 0:n.clearTimeout)||clearTimeout)(e)},delegate:void 0};function N1(e){t1.setTimeout(()=>{const{onUnhandledError:n}=S1;if(!n)throw e;n(e)})}function k1(){}const n2=u1("C",void 0,void 0);function u1(e,n,t){return{kind:e,value:n,error:t}}let g1=null;function q2(e){if(S1.useDeprecatedSynchronousErrorHandling){const n=!g1;if(n&&(g1={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:i}=g1;if(g1=null,t)throw i}}else e()}class U3 extends H2{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,e1(n)&&n.add(this)):this.destination=xi}static create(n,t,i){return new Be(n,t,i)}next(n){this.isStopped?B6(function F2(e){return u1("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?B6(function _2(e){return u1("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?B6(n2,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const a3=Function.prototype.bind;function a4(e,n){return a3.call(e,n)}class In{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(i){Dt(i)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(i){Dt(i)}else Dt(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){Dt(t)}}}class Be extends U3{constructor(n,t,i){let r;if(super(),K(n)||!n)r={next:null!=n?n:void 0,error:null!=t?t:void 0,complete:null!=i?i:void 0};else{let a;this&&S1.useDeprecatedNextContext?(a=Object.create(n),a.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&a4(n.next,a),error:n.error&&a4(n.error,a),complete:n.complete&&a4(n.complete,a)}):r=n}this.destination=new In(r)}}function Dt(e){S1.useDeprecatedSynchronousErrorHandling?function r3(e){S1.useDeprecatedSynchronousErrorHandling&&g1&&(g1.errorThrown=!0,g1.error=e)}(e):N1(e)}function B6(e,n){const{onStoppedNotification:t}=S1;t&&t1.setTimeout(()=>t(e,n))}const xi={closed:!0,next:k1,error:function zi(e){throw e},complete:k1},U6="function"==typeof Symbol&&Symbol.observable||"@@observable";function o4(e){return e}let A2=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){const i=new e;return i.source=this,i.operator=t,i}subscribe(t,i,r){const a=function Ai(e){return e&&e instanceof U3||function Ti(e){return e&&K(e.next)&&K(e.error)&&K(e.complete)}(e)&&e1(e)}(t)?t:new Be(t,i,r);return q2(()=>{const{operator:o,source:s}=this;a.add(o?o.call(a,s):s?this._subscribe(a):this._trySubscribe(a))}),a}_trySubscribe(t){try{return this._subscribe(t)}catch(i){t.error(i)}}forEach(t,i){return new(i=On(i))((r,a)=>{const o=new Be({next:s=>{try{t(s)}catch(c){a(c),o.unsubscribe()}},error:a,complete:r});this.subscribe(o)})}_subscribe(t){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(t)}[U6](){return this}pipe(...t){return function j6(e){return 0===e.length?o4:1===e.length?e[0]:function(t){return e.reduce((i,r)=>r(i),t)}}(t)(this)}toPromise(t){return new(t=On(t))((i,r)=>{let a;this.subscribe(o=>a=o,o=>r(o),()=>i(a))})}}return e.create=n=>new e(n),e})();function On(e){var n;return null!==(n=null!=e?e:S1.Promise)&&void 0!==n?n:Promise}const ki=n3(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let C2=(()=>{class e extends A2{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const i=new q1(this,this);return i.operator=t,i}_throwIfClosed(){if(this.closed)throw new ki}next(t){q2(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(t)}})}error(t){q2(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:i}=this;for(;i.length;)i.shift().error(t)}})}complete(){q2(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:i,isStopped:r,observers:a}=this;return i||r?x2:(this.currentObservers=null,a.push(t),new H2(()=>{this.currentObservers=null,W2(a,t)}))}_checkFinalizedStatuses(t){const{hasError:i,thrownError:r,isStopped:a}=this;i?t.error(r):a&&t.complete()}asObservable(){const t=new A2;return t.source=this,t}}return e.create=(n,t)=>new q1(n,t),e})();class q1 extends C2{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===i||i.call(t,n)}error(n){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===i||i.call(t,n)}complete(){var n,t;null===(t=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===t||t.call(n)}_subscribe(n){var t,i;return null!==(i=null===(t=this.source)||void 0===t?void 0:t.subscribe(n))&&void 0!==i?i:x2}}function G6(e){return K(null==e?void 0:e.lift)}function a1(e){return n=>{if(G6(n))return n.lift(function(t){try{return e(t,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function O2(e,n,t,i,r){return new Ii(e,n,t,i,r)}class Ii extends U3{constructor(n,t,i,r,a,o){super(n),this.onFinalize=a,this.shouldUnsubscribe=o,this._next=t?function(s){try{t(s)}catch(c){n.error(c)}}:super._next,this._error=r?function(s){try{r(s)}catch(c){n.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(s){n.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function m2(e,n){return a1((t,i)=>{let r=0;t.subscribe(O2(i,a=>{i.next(e.call(n,a,r++))}))})}function w2(e){return this instanceof w2?(this.v=e,this):new w2(e)}function K2(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=t.apply(e,n||[]),a=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(h){i[h]&&(r[h]=function(p){return new Promise(function(L,H){a.push([h,p,L,H])>1||s(h,p)})})}function s(h,p){try{!function c(h){h.value instanceof w2?Promise.resolve(h.value.v).then(l,u):f(a[0][2],h)}(i[h](p))}catch(L){f(a[0][3],L)}}function l(h){s("next",h)}function u(h){s("throw",h)}function f(h,p){h(p),a.shift(),a.length&&s(a[0][0],a[0][1])}}function o1(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function M(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],i=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(a){t[a]=e[a]&&function(o){return new Promise(function(s,c){!function r(a,o,s,c){Promise.resolve(c).then(function(l){a({value:l,done:s})},o)}(s,c,(o=e[a](o)).done,o.value)})}}}const Fi=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function B9(e){return K(null==e?void 0:e.then)}function U9(e){return K(e[U6])}function j9(e){return Symbol.asyncIterator&&K(null==e?void 0:e[Symbol.asyncIterator])}function G9(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 $9=function ww(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function W9(e){return K(null==e?void 0:e[$9])}function q9(e){return K2(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:i,done:r}=yield w2(t.read());if(r)return yield w2(void 0);yield yield w2(i)}}finally{t.releaseLock()}})}function K9(e){return K(null==e?void 0:e.getReader)}function o3(e){if(e instanceof A2)return e;if(null!=e){if(U9(e))return function Dw(e){return new A2(n=>{const t=e[U6]();if(K(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Fi(e))return function Sw(e){return new A2(n=>{for(let t=0;t<e.length&&!n.closed;t++)n.next(e[t]);n.complete()})}(e);if(B9(e))return function Nw(e){return new A2(n=>{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,N1)})}(e);if(j9(e))return Y9(e);if(W9(e))return function zw(e){return new A2(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(K9(e))return function xw(e){return Y9(q9(e))}(e)}throw G9(e)}function Y9(e){return new A2(n=>{(function Ew(e,n){var t,i,r,a;return function Ri(e,n,t,i){return new(t||(t=Promise))(function(a,o){function s(u){try{l(i.next(u))}catch(f){o(f)}}function c(u){try{l(i.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):function r(a){return a instanceof t?a:new t(function(o){o(a)})}(u.value).then(s,c)}l((i=i.apply(e,n||[])).next())})}(this,void 0,void 0,function*(){try{for(t=o1(e);!(i=yield t.next()).done;)if(n.next(i.value),n.closed)return}catch(o){r={error:o}}finally{try{i&&!i.done&&(a=t.return)&&(yield a.call(t))}finally{if(r)throw r.error}}n.complete()})})(e,n).catch(t=>n.error(t))})}function $4(e,n,t,i=0,r=!1){const a=n.schedule(function(){t(),r?e.add(this.schedule(null,i)):this.unsubscribe()},i);if(e.add(a),!r)return a}function b1(e,n,t=1/0){return K(n)?b1((i,r)=>m2((a,o)=>n(i,a,r,o))(o3(e(i,r))),t):("number"==typeof n&&(t=n),a1((i,r)=>function Tw(e,n,t,i,r,a,o,s){const c=[];let l=0,u=0,f=!1;const h=()=>{f&&!c.length&&!l&&n.complete()},p=H=>l<i?L(H):c.push(H),L=H=>{a&&n.next(H),l++;let S=!1;o3(t(H,u++)).subscribe(O2(n,N=>{null==r||r(N),a?p(N):n.next(N)},()=>{S=!0},void 0,()=>{if(S)try{for(l--;c.length&&l<i;){const N=c.shift();o?$4(n,o,()=>L(N)):L(N)}h()}catch(N){n.error(N)}}))};return e.subscribe(O2(n,p,()=>{f=!0,h()})),()=>{null==s||s()}}(i,r,e,t)))}function q6(e=1/0){return b1(o4,e)}const c4=new A2(e=>e.complete());function Q9(e){return e&&K(e.schedule)}function Bi(e){return e[e.length-1]}function Bn(e){return K(Bi(e))?e.pop():void 0}function K6(e){return Q9(Bi(e))?e.pop():void 0}function Z9(e,n=0){return a1((t,i)=>{t.subscribe(O2(i,r=>$4(i,e,()=>i.next(r),n),()=>$4(i,e,()=>i.complete(),n),r=>$4(i,e,()=>i.error(r),n)))})}function J9(e,n=0){return a1((t,i)=>{i.add(e.schedule(()=>t.subscribe(i),n))})}function X9(e,n){if(!e)throw new Error("Iterable cannot be null");return new A2(t=>{$4(t,n,()=>{const i=e[Symbol.asyncIterator]();$4(t,n,()=>{i.next().then(r=>{r.done?t.complete():t.next(r.value)})},0,!0)})})}function G1(e,n){return n?function Bw(e,n){if(null!=e){if(U9(e))return function Iw(e,n){return o3(e).pipe(J9(n),Z9(n))}(e,n);if(Fi(e))return function Rw(e,n){return new A2(t=>{let i=0;return n.schedule(function(){i===e.length?t.complete():(t.next(e[i++]),t.closed||this.schedule())})})}(e,n);if(B9(e))return function Ow(e,n){return o3(e).pipe(J9(n),Z9(n))}(e,n);if(j9(e))return X9(e,n);if(W9(e))return function Pw(e,n){return new A2(t=>{let i;return $4(t,n,()=>{i=e[$9](),$4(t,n,()=>{let r,a;try{({value:r,done:a}=i.next())}catch(o){return void t.error(o)}a?t.complete():t.next(r)},0,!0)}),()=>K(null==i?void 0:i.return)&&i.return()})}(e,n);if(K9(e))return function Fw(e,n){return X9(q9(e),n)}(e,n)}throw G9(e)}(e,n):o3(e)}function ec(...e){const n=K6(e),t=function kw(e,n){return"number"==typeof Bi(e)?e.pop():n}(e,1/0),i=e;return i.length?1===i.length?o3(i[0]):q6(t)(G1(i,n)):c4}function Y1(e){return e<=0?()=>c4:a1((n,t)=>{let i=0;n.subscribe(O2(t,r=>{++i<=e&&(t.next(r),e<=i&&t.complete())}))})}function tc(e={}){const{connector:n=(()=>new C2),resetOnError:t=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=e;return a=>{let o=null,s=null,c=null,l=0,u=!1,f=!1;const h=()=>{null==s||s.unsubscribe(),s=null},p=()=>{h(),o=c=null,u=f=!1},L=()=>{const H=o;p(),null==H||H.unsubscribe()};return a1((H,S)=>{l++,!f&&!u&&h();const N=c=null!=c?c:n();S.add(()=>{l--,0===l&&!f&&!u&&(s=Ui(L,r))}),N.subscribe(S),o||(o=new Be({next:w=>N.next(w),error:w=>{f=!0,h(),s=Ui(p,t,w),N.error(w)},complete:()=>{u=!0,h(),s=Ui(p,i),N.complete()}}),G1(H).subscribe(o))})(a)}}function Ui(e,n,...t){return!0===n?(e(),null):!1===n?null:n(...t).pipe(Y1(1)).subscribe(()=>e())}function B2(e){for(let n in e)if(e[n]===B2)return n;throw Error("Could not find renamed property on target object.")}function ji(e,n){for(const t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function k2(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(k2).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const n=e.toString();if(null==n)return""+n;const t=n.indexOf("\n");return-1===t?n:n.substring(0,t)}function Gi(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}const Uw=B2({__forward_ref__:B2});function z2(e){return e.__forward_ref__=z2,e.toString=function(){return k2(this())},e}function d2(e){return nc(e)?e():e}function nc(e){return"function"==typeof e&&e.hasOwnProperty(Uw)&&e.__forward_ref__===z2}class S2 extends Error{constructor(n,t){super(function $i(e,n){return`NG0${Math.abs(e)}${n?": "+n:""}`}(n,t)),this.code=n}}function o2(e){return"string"==typeof e?e:null==e?"":String(e)}function Q1(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():o2(e)}function Un(e,n){const t=n?` in ${n}`:"";throw new S2(-201,`No provider for ${Q1(e)} found${t}`)}function x3(e,n){null==e&&function U2(e,n,t,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${t} ${i} ${n} <=Actual]`))}(n,e,null,"!=")}function Z(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function E2(e){return{providers:e.providers||[],imports:e.imports||[]}}function Wi(e){return ic(e,jn)||ic(e,ac)}function ic(e,n){return e.hasOwnProperty(n)?e[n]:null}function rc(e){return e&&(e.hasOwnProperty(qi)||e.hasOwnProperty(Yw))?e[qi]:null}const jn=B2({\u0275prov:B2}),qi=B2({\u0275inj:B2}),ac=B2({ngInjectableDef:B2}),Yw=B2({ngInjectorDef:B2});var r2=(()=>((r2=r2||{})[r2.Default=0]="Default",r2[r2.Host=1]="Host",r2[r2.Self=2]="Self",r2[r2.SkipSelf=4]="SkipSelf",r2[r2.Optional=8]="Optional",r2))();let Ki;function ge(e){const n=Ki;return Ki=e,n}function oc(e,n,t){const i=Wi(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:t&r2.Optional?null:void 0!==n?n:void Un(k2(e),"Injector")}function me(e){return{toString:e}.toString()}var l4=(()=>((l4=l4||{})[l4.OnPush=0]="OnPush",l4[l4.Default=1]="Default",l4))(),w4=(()=>{return(e=w4||(w4={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",w4;var e})();const Zw="undefined"!=typeof globalThis&&globalThis,Jw="undefined"!=typeof window&&window,Xw="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,R2=Zw||"undefined"!=typeof global&&global||Jw||Xw,St={},j2=[],Gn=B2({\u0275cmp:B2}),Yi=B2({\u0275dir:B2}),Qi=B2({\u0275pipe:B2}),sc=B2({\u0275mod:B2}),q4=B2({\u0275fac:B2}),Y6=B2({__NG_ELEMENT_ID__:B2});let eD=0;function s2(e){return me(()=>{const t={},i={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===l4.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||j2,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||w4.Emulated,id:"c",styles:e.styles||j2,_:null,setInput:null,schemas:e.schemas||null,tView:null},r=e.directives,a=e.features,o=e.pipes;return i.id+=eD++,i.inputs=fc(e.inputs,t),i.outputs=fc(e.outputs),a&&a.forEach(s=>s(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(cc):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(lc):null,i})}function cc(e){return s3(e)||function ve(e){return e[Yi]||null}(e)}function lc(e){return function je(e){return e[Qi]||null}(e)}const uc={};function T2(e){return me(()=>{const n={type:e.type,bootstrap:e.bootstrap||j2,declarations:e.declarations||j2,imports:e.imports||j2,exports:e.exports||j2,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(uc[e.id]=e.type),n})}function fc(e,n){if(null==e)return St;const t={};for(const i in e)if(e.hasOwnProperty(i)){let r=e[i],a=r;Array.isArray(r)&&(a=r[1],r=r[0]),t[r]=i,n&&(n[r]=a)}return t}const U=s2;function s3(e){return e[Gn]||null}function j3(e,n){const t=e[sc]||null;if(!t&&!0===n)throw new Error(`Type ${k2(e)} does not have '\u0275mod' property.`);return t}function D4(e){return Array.isArray(e)&&"object"==typeof e[1]}function f4(e){return Array.isArray(e)&&!0===e[1]}function Xi(e){return 0!=(8&e.flags)}function Kn(e){return 2==(2&e.flags)}function Yn(e){return 1==(1&e.flags)}function C4(e){return null!==e.template}function oD(e){return 0!=(512&e[2])}function qe(e,n){return e.hasOwnProperty(q4)?e[q4]:null}class lD{constructor(n,t,i){this.previousValue=n,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}}function z1(){return dc}function dc(e){return e.type.prototype.ngOnChanges&&(e.setInput=fD),uD}function uD(){const e=pc(this),n=null==e?void 0:e.current;if(n){const t=e.previous;if(t===St)e.previous=n;else for(let i in n)t[i]=n[i];e.current=null,this.ngOnChanges(n)}}function fD(e,n,t,i){const r=pc(e)||function CD(e,n){return e[hc]=n}(e,{previous:St,current:null}),a=r.current||(r.current={}),o=r.previous,s=this.declaredInputs[t],c=o[s];a[s]=new lD(c&&c.currentValue,n,o===St),e[i]=n}z1.ngInherit=!0;const hc="__ngSimpleChanges__";function pc(e){return e[hc]||null}let rr;function ar(){return void 0!==rr?rr:"undefined"!=typeof document?document:void 0}function m1(e){return!!e.listen}const gc={createRenderer:(e,n)=>ar()};function x1(e){for(;Array.isArray(e);)e=e[0];return e}function Qn(e,n){return x1(n[e])}function W3(e,n){return x1(n[e.index])}function or(e,n){return e.data[n]}function T3(e,n){const t=n[e];return D4(t)?t:t[0]}function mc(e){return 4==(4&e[2])}function sr(e){return 128==(128&e[2])}function _e(e,n){return null==n?null:e[n]}function vc(e){e[18]=0}function cr(e,n){e[5]+=n;let t=e,i=e[3];for(;null!==i&&(1===n&&1===t[5]||-1===n&&0===t[5]);)i[5]+=n,t=i,i=i[3]}const c2={lFrame:Dc(null),bindingsEnabled:!0};function Mc(){return c2.bindingsEnabled}function k(){return c2.lFrame.lView}function N2(){return c2.lFrame.tView}function W(e){return c2.lFrame.contextLView=e,e[8]}function I1(){let e=yc();for(;null!==e&&64===e.type;)e=e.parent;return e}function yc(){return c2.lFrame.currentTNode}function S4(e,n){const t=c2.lFrame;t.currentTNode=e,t.isParent=n}function lr(){return c2.lFrame.isParent}function ur(){c2.lFrame.isParent=!1}function At(){return c2.lFrame.bindingIndex++}function Y4(e){const n=c2.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function ND(e,n){const t=c2.lFrame;t.bindingIndex=t.bindingRootIndex=e,fr(n)}function fr(e){c2.lFrame.currentDirectiveIndex=e}function Vc(){return c2.lFrame.currentQueryIndex}function dr(e){c2.lFrame.currentQueryIndex=e}function xD(e){const n=e[1];return 2===n.type?n.declTNode:1===n.type?e[6]:null}function Hc(e,n,t){if(t&r2.SkipSelf){let r=n,a=e;for(;!(r=r.parent,null!==r||t&r2.Host||(r=xD(a),null===r||(a=a[15],10&r.type))););if(null===r)return!1;n=r,e=a}const i=c2.lFrame=wc();return i.currentTNode=n,i.lView=e,!0}function Jn(e){const n=wc(),t=e[1];c2.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function wc(){const e=c2.lFrame,n=null===e?null:e.child;return null===n?Dc(e):n}function Dc(e){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=n),n}function Sc(){const e=c2.lFrame;return c2.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Nc=Sc;function Xn(){const e=Sc();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 v3(){return c2.lFrame.selectedIndex}function Me(e){c2.lFrame.selectedIndex=e}function v1(){const e=c2.lFrame;return or(e.tView,e.selectedIndex)}function kt(){c2.lFrame.currentNamespace="svg"}function It(){!function kD(){c2.lFrame.currentNamespace=null}()}function e8(e,n){for(let t=n.directiveStart,i=n.directiveEnd;t<i;t++){const a=e.data[t].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:s,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:u}=a;o&&(e.contentHooks||(e.contentHooks=[])).push(-t,o),s&&((e.contentHooks||(e.contentHooks=[])).push(t,s),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(t,s)),c&&(e.viewHooks||(e.viewHooks=[])).push(-t,c),l&&((e.viewHooks||(e.viewHooks=[])).push(t,l),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(t,l)),null!=u&&(e.destroyHooks||(e.destroyHooks=[])).push(t,u)}}function t8(e,n,t){zc(e,n,3,t)}function n8(e,n,t,i){(3&e[2])===t&&zc(e,n,t,i)}function hr(e,n){let t=e[2];(3&t)===n&&(t&=2047,t+=1,e[2]=t)}function zc(e,n,t,i){const a=null!=i?i:-1,o=n.length-1;let s=0;for(let c=void 0!==i?65535&e[18]:0;c<o;c++)if("number"==typeof n[c+1]){if(s=n[c],null!=i&&s>=i)break}else n[c]<0&&(e[18]+=65536),(s<a||-1==a)&&(RD(e,t,n,c),e[18]=(4294901760&e[18])+c+2),c++}function RD(e,n,t,i){const r=t[i]<0,a=t[i+1],s=e[r?-t[i]:t[i]];if(r){if(e[2]>>11<e[18]>>16&&(3&e[2])===n){e[2]+=2048;try{a.call(s)}finally{}}}else try{a.call(s)}finally{}}class e5{constructor(n,t,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=i}}function i8(e,n,t){const i=m1(e);let r=0;for(;r<t.length;){const a=t[r];if("number"==typeof a){if(0!==a)break;r++;const o=t[r++],s=t[r++],c=t[r++];i?e.setAttribute(n,s,c,o):n.setAttributeNS(o,s,c)}else{const o=a,s=t[++r];gr(o)?i&&e.setProperty(n,o,s):i?e.setAttribute(n,o,s):n.setAttribute(o,s),r++}}return r}function xc(e){return 3===e||4===e||6===e}function gr(e){return 64===e.charCodeAt(0)}function r8(e,n){if(null!==n&&0!==n.length)if(null===e||0===e.length)e=n.slice();else{let t=-1;for(let i=0;i<n.length;i++){const r=n[i];"number"==typeof r?t=r:0===t||Ec(e,t,r,null,-1===t||2===t?n[++i]:null)}}return e}function Ec(e,n,t,i,r){let a=0,o=e.length;if(-1===n)o=-1;else for(;a<e.length;){const s=e[a++];if("number"==typeof s){if(s===n){o=-1;break}if(s>n){o=a-1;break}}}for(;a<e.length;){const s=e[a];if("number"==typeof s)break;if(s===t){if(null===i)return void(null!==r&&(e[a+1]=r));if(i===e[a+1])return void(e[a+2]=r)}a++,null!==i&&a++,null!==r&&a++}-1!==o&&(e.splice(o,0,n),a=o+1),e.splice(a++,0,t),null!==i&&e.splice(a++,0,i),null!==r&&e.splice(a++,0,r)}function Tc(e){return-1!==e}function Ot(e){return 32767&e}function Rt(e,n){let t=function jD(e){return e>>16}(e),i=n;for(;t>0;)i=i[15],t--;return i}let mr=!0;function a8(e){const n=mr;return mr=e,n}let GD=0;function n5(e,n){const t=_r(e,n);if(-1!==t)return t;const i=n[1];i.firstCreatePass&&(e.injectorIndex=n.length,vr(i.data,e),vr(n,null),vr(i.blueprint,null));const r=o8(e,n),a=e.injectorIndex;if(Tc(r)){const o=Ot(r),s=Rt(r,n),c=s[1].data;for(let l=0;l<8;l++)n[a+l]=s[o+l]|c[o+l]}return n[a+8]=r,a}function vr(e,n){e.push(0,0,0,0,0,0,0,0,n)}function _r(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function o8(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let t=0,i=null,r=n;for(;null!==r;){const a=r[1],o=a.type;if(i=2===o?a.declTNode:1===o?r[6]:null,null===i)return-1;if(t++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|t<<16}return-1}function s8(e,n,t){!function $D(e,n,t){let i;"string"==typeof t?i=t.charCodeAt(0)||0:t.hasOwnProperty(Y6)&&(i=t[Y6]),null==i&&(i=t[Y6]=GD++);const r=255&i;n.data[e+(r>>5)]|=1<<r}(e,n,t)}function Ic(e,n,t){if(t&r2.Optional)return e;Un(n,"NodeInjector")}function Oc(e,n,t,i){if(t&r2.Optional&&void 0===i&&(i=null),0==(t&(r2.Self|r2.Host))){const r=e[9],a=ge(void 0);try{return r?r.get(n,i,t&r2.Optional):oc(n,i,t&r2.Optional)}finally{ge(a)}}return Ic(i,n,t)}function Rc(e,n,t,i=r2.Default,r){if(null!==e){const a=function YD(e){if("string"==typeof e)return e.charCodeAt(0)||0;const n=e.hasOwnProperty(Y6)?e[Y6]:void 0;return"number"==typeof n?n>=0?255&n:qD:n}(t);if("function"==typeof a){if(!Hc(n,e,i))return i&r2.Host?Ic(r,t,i):Oc(n,t,i,r);try{const o=a(i);if(null!=o||i&r2.Optional)return o;Un(t)}finally{Nc()}}else if("number"==typeof a){let o=null,s=_r(e,n),c=-1,l=i&r2.Host?n[16][6]:null;for((-1===s||i&r2.SkipSelf)&&(c=-1===s?o8(e,n):n[s+8],-1!==c&&Bc(i,!1)?(o=n[1],s=Ot(c),n=Rt(c,n)):s=-1);-1!==s;){const u=n[1];if(Fc(a,s,u.data)){const f=KD(s,n,t,o,i,l);if(f!==Pc)return f}c=n[s+8],-1!==c&&Bc(i,n[1].data[s+8]===l)&&Fc(a,s,n)?(o=u,s=Ot(c),n=Rt(c,n)):s=-1}}}return Oc(n,t,i,r)}const Pc={};function qD(){return new Pt(I1(),k())}function KD(e,n,t,i,r,a){const o=n[1],s=o.data[e+8],u=c8(s,o,t,null==i?Kn(s)&&mr:i!=o&&0!=(3&s.type),r&r2.Host&&a===s);return null!==u?i5(n,o,u,s):Pc}function c8(e,n,t,i,r){const a=e.providerIndexes,o=n.data,s=1048575&a,c=e.directiveStart,u=a>>20,h=r?s+u:e.directiveEnd;for(let p=i?s:s+u;p<h;p++){const L=o[p];if(p<c&&t===L||p>=c&&L.type===t)return p}if(r){const p=o[c];if(p&&C4(p)&&p.type===t)return c}return null}function i5(e,n,t,i){let r=e[t];const a=n.data;if(function PD(e){return e instanceof e5}(r)){const o=r;o.resolving&&function jw(e,n){const t=n?`. Dependency path: ${n.join(" > ")} > ${e}`:"";throw new S2(-200,`Circular dependency in DI detected for ${e}${t}`)}(Q1(a[t]));const s=a8(o.canSeeViewProviders);o.resolving=!0;const c=o.injectImpl?ge(o.injectImpl):null;Hc(e,i,r2.Default);try{r=e[t]=o.factory(void 0,a,e,i),n.firstCreatePass&&t>=i.directiveStart&&function OD(e,n,t){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:a}=n.type.prototype;if(i){const o=dc(n);(t.preOrderHooks||(t.preOrderHooks=[])).push(e,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,o)}r&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-e,r),a&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e,a),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,a))}(t,a[t],n)}finally{null!==c&&ge(c),a8(s),o.resolving=!1,Nc()}}return r}function Fc(e,n,t){return!!(t[n+(e>>5)]&1<<e)}function Bc(e,n){return!(e&r2.Self||e&r2.Host&&n)}class Pt{constructor(n,t){this._tNode=n,this._lView=t}get(n,t,i){return Rc(this._tNode,this._lView,n,i,t)}}function l3(e){return me(()=>{const n=e.prototype.constructor,t=n[q4]||Mr(n),i=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==i;){const a=r[q4]||Mr(r);if(a&&a!==t)return a;r=Object.getPrototypeOf(r)}return a=>new a})}function Mr(e){return nc(e)?()=>{const n=Mr(d2(e));return n&&n()}:qe(e)}const Bt="__parameters__";function jt(e,n,t){return me(()=>{const i=function yr(e){return function(...t){if(e){const i=e(...t);for(const r in i)this[r]=i[r]}}}(n);function r(...a){if(this instanceof r)return i.apply(this,a),this;const o=new r(...a);return s.annotation=o,s;function s(c,l,u){const f=c.hasOwnProperty(Bt)?c[Bt]:Object.defineProperty(c,Bt,{value:[]})[Bt];for(;f.length<=u;)f.push(null);return(f[u]=f[u]||[]).push(o),c}}return t&&(r.prototype=Object.create(t.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}class v2{constructor(n,t){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=Z({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const ZD=new v2("AnalyzeForEntryComponents");function q3(e,n){void 0===n&&(n=e);for(let t=0;t<e.length;t++){let i=e[t];Array.isArray(i)?(n===e&&(n=e.slice(0,t)),q3(i,n)):n!==e&&n.push(i)}return n}function N4(e,n){e.forEach(t=>Array.isArray(t)?N4(t,n):n(t))}function jc(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function l8(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function o5(e,n){const t=[];for(let i=0;i<e;i++)t.push(n);return t}function A3(e,n,t){let i=Gt(e,n);return i>=0?e[1|i]=t:(i=~i,function eS(e,n,t,i){let r=e.length;if(r==n)e.push(t,i);else if(1===r)e.push(i,e[0]),e[0]=t;else{for(r--,e.push(e[r-1],e[r]);r>n;)e[r]=e[r-2],r--;e[n]=t,e[n+1]=i}}(e,i,n,t)),i}function Lr(e,n){const t=Gt(e,n);if(t>=0)return e[1|t]}function Gt(e,n){return function Wc(e,n,t){let i=0,r=e.length>>t;for(;r!==i;){const a=i+(r-i>>1),o=e[a<<t];if(n===o)return a<<t;o>n?r=a:i=a+1}return~(r<<t)}(e,n,1)}const s5={},Hr="__NG_DI_FLAG__",f8="ngTempTokenPath",sS=/\n/gm,Kc="__source",lS=B2({provide:String,useValue:B2});let c5;function Yc(e){const n=c5;return c5=e,n}function uS(e,n=r2.Default){if(void 0===c5)throw new S2(203,"");return null===c5?oc(e,void 0,n):c5.get(e,n&r2.Optional?null:void 0,n)}function q(e,n=r2.Default){return(function Qw(){return Ki}()||uS)(d2(e),n)}const fS=q;function wr(e){const n=[];for(let t=0;t<e.length;t++){const i=d2(e[t]);if(Array.isArray(i)){if(0===i.length)throw new S2(900,"");let r,a=r2.Default;for(let o=0;o<i.length;o++){const s=i[o],c=CS(s);"number"==typeof c?-1===c?r=s.token:a|=c:r=s}n.push(q(r,a))}else n.push(q(i))}return n}function l5(e,n){return e[Hr]=n,e.prototype[Hr]=n,e}function CS(e){return e[Hr]}const C8=l5(jt("Inject",e=>({token:e})),-1),be=l5(jt("Optional"),8),u5=l5(jt("SkipSelf"),4);let h8,p8;function Wt(e){var n;return(null===(n=function Sr(){if(void 0===h8&&(h8=null,R2.trustedTypes))try{h8=R2.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return h8}())||void 0===n?void 0:n.createHTML(e))||e}function tl(e){var n;return(null===(n=function Nr(){if(void 0===p8&&(p8=null,R2.trustedTypes))try{p8=R2.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return p8}())||void 0===n?void 0:n.createHTML(e))||e}class Ye{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class HS extends Ye{getTypeName(){return"HTML"}}class wS extends Ye{getTypeName(){return"Style"}}class DS extends Ye{getTypeName(){return"Script"}}class SS extends Ye{getTypeName(){return"URL"}}class NS extends Ye{getTypeName(){return"ResourceURL"}}function k3(e){return e instanceof Ye?e.changingThisBreaksApplicationSecurity:e}function z4(e,n){const t=rl(e);if(null!=t&&t!==n){if("ResourceURL"===t&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${t} (see https://g.co/ng/security#xss)`)}return t===n}function rl(e){return e instanceof Ye&&e.getTypeName()||null}class kS{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{const t=(new window.DOMParser).parseFromString(Wt(n),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(n):(t.removeChild(t.firstChild),t)}catch(t){return null}}}class IS{constructor(n){if(this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const i=this.inertDocument.createElement("body");t.appendChild(i)}}getInertBodyElement(n){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=Wt(n),t;const i=this.inertDocument.createElement("body");return i.innerHTML=Wt(n),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(n){const t=n.attributes;for(let r=t.length-1;0<r;r--){const o=t.item(r).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&n.removeAttribute(o)}let i=n.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const RS=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,PS=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function C5(e){return(e=String(e)).match(RS)||e.match(PS)?e:"unsafe:"+e}function x4(e){const n={};for(const t of e.split(","))n[t]=!0;return n}function d5(...e){const n={};for(const t of e)for(const i in t)t.hasOwnProperty(i)&&(n[i]=!0);return n}const sl=x4("area,br,col,hr,img,wbr"),cl=x4("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ll=x4("rp,rt"),zr=d5(sl,d5(cl,x4("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")),d5(ll,x4("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")),d5(ll,cl)),xr=x4("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Er=x4("srcset"),ul=d5(xr,Er,x4("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),x4("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")),FS=x4("script,style,template");class BS{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let t=n.firstChild,i=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?i=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,i&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let r=this.checkClobberedElement(t,t.nextSibling);if(r){t=r;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(n){const t=n.nodeName.toLowerCase();if(!zr.hasOwnProperty(t))return this.sanitizedSomething=!0,!FS.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const i=n.attributes;for(let r=0;r<i.length;r++){const a=i.item(r),o=a.name,s=o.toLowerCase();if(!ul.hasOwnProperty(s)){this.sanitizedSomething=!0;continue}let c=a.value;xr[s]&&(c=C5(c)),Er[s]&&(e=c,c=(e=String(e)).split(",").map(n=>C5(n.trim())).join(", ")),this.buf.push(" ",o,'="',fl(c),'"')}var e;return this.buf.push(">"),!0}endElement(n){const t=n.nodeName.toLowerCase();zr.hasOwnProperty(t)&&!sl.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(n){this.buf.push(fl(n))}checkClobberedElement(n,t){if(t&&(n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return t}}const US=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,jS=/([^\#-~ |!])/g;function fl(e){return e.replace(/&/g,"&").replace(US,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(jS,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let g8;function Cl(e,n){let t=null;try{g8=g8||function al(e){const n=new IS(e);return function OS(){try{return!!(new window.DOMParser).parseFromString(Wt(""),"text/html")}catch(e){return!1}}()?new kS(n):n}(e);let i=n?String(n):"";t=g8.getInertBodyElement(i);let r=5,a=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=a,a=t.innerHTML,t=g8.getInertBodyElement(i)}while(i!==a);return Wt((new BS).sanitizeChildren(Tr(t)||t))}finally{if(t){const i=Tr(t)||t;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Tr(e){return"content"in e&&function GS(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Q2=(()=>((Q2=Q2||{})[Q2.NONE=0]="NONE",Q2[Q2.HTML=1]="HTML",Q2[Q2.STYLE=2]="STYLE",Q2[Q2.SCRIPT=3]="SCRIPT",Q2[Q2.URL=4]="URL",Q2[Q2.RESOURCE_URL=5]="RESOURCE_URL",Q2))();function dl(e){const n=h5();return n?tl(n.sanitize(Q2.HTML,e)||""):z4(e,"HTML")?tl(k3(e)):Cl(ar(),o2(e))}function Q4(e){const n=h5();return n?n.sanitize(Q2.STYLE,e)||"":z4(e,"Style")?k3(e):o2(e)}function Qe(e){const n=h5();return n?n.sanitize(Q2.URL,e)||"":z4(e,"URL")?k3(e):C5(o2(e))}function h5(){const e=k();return e&&e[12]}const gl="__ngContext__";function u3(e,n){e[gl]=n}function kr(e){const n=function p5(e){return e[gl]||null}(e);return n?Array.isArray(n)?n:n.lView:null}function Or(e){return e.ngOriginalError}function aN(e,...n){e.error(...n)}class g5{constructor(){this._console=console}handleError(n){const t=this._findOriginalError(n),i=function rN(e){return e&&e.ngErrorLogger||aN}(n);i(this._console,"ERROR",n),t&&i(this._console,"ORIGINAL ERROR",t)}_findOriginalError(n){let t=n&&Or(n);for(;t&&Or(t);)t=Or(t);return t||null}}const pN=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(R2))();function E4(e){return e instanceof Function?e():e}var I3=(()=>((I3=I3||{})[I3.Important=1]="Important",I3[I3.DashCase=2]="DashCase",I3))();function Pr(e,n){return undefined(e,n)}function m5(e){const n=e[3];return f4(n)?n[3]:n}function Fr(e){return Hl(e[13])}function Br(e){return Hl(e[4])}function Hl(e){for(;null!==e&&!f4(e);)e=e[4];return e}function Kt(e,n,t,i,r){if(null!=i){let a,o=!1;f4(i)?a=i:D4(i)&&(o=!0,i=i[0]);const s=x1(i);0===e&&null!==t?null==r?xl(n,t,s):Ze(n,t,s,r||null,!0):1===e&&null!==t?Ze(n,t,s,r||null,!0):2===e?function Rl(e,n,t){const i=m8(e,n);i&&function NN(e,n,t,i){m1(e)?e.removeChild(n,t,i):n.removeChild(t)}(e,i,n,t)}(n,s,o):3===e&&n.destroyNode(s),null!=a&&function EN(e,n,t,i,r){const a=t[7];a!==x1(t)&&Kt(n,e,i,a,r);for(let s=10;s<t.length;s++){const c=t[s];v5(c[1],c,e,n,i,a)}}(n,e,a,t,r)}}function jr(e,n,t){if(m1(e))return e.createElement(n,t);{const i=null!==t?function gD(e){const n=e.toLowerCase();return"svg"===n?"http://www.w3.org/2000/svg":"math"===n?"http://www.w3.org/1998/MathML/":null}(t):null;return null===i?e.createElement(n):e.createElementNS(i,n)}}function Dl(e,n){const t=e[9],i=t.indexOf(n),r=n[3];1024&n[2]&&(n[2]&=-1025,cr(r,-1)),t.splice(i,1)}function Gr(e,n){if(e.length<=10)return;const t=10+n,i=e[t];if(i){const r=i[17];null!==r&&r!==e&&Dl(r,i),n>0&&(e[t-1][4]=i[4]);const a=l8(e,10+n);!function yN(e,n){v5(e,n,n[11],2,null,null),n[0]=null,n[6]=null}(i[1],i);const o=a[19];null!==o&&o.detachView(a[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function Sl(e,n){if(!(256&n[2])){const t=n[11];m1(t)&&t.destroyNode&&v5(e,n,t,3,null,null),function VN(e){let n=e[13];if(!n)return $r(e[1],e);for(;n;){let t=null;if(D4(n))t=n[13];else{const i=n[10];i&&(t=i)}if(!t){for(;n&&!n[4]&&n!==e;)D4(n)&&$r(n[1],n),n=n[3];null===n&&(n=e),D4(n)&&$r(n[1],n),t=n&&n[4]}n=t}}(n)}}function $r(e,n){if(!(256&n[2])){n[2]&=-129,n[2]|=256,function SN(e,n){let t;if(null!=e&&null!=(t=e.destroyHooks))for(let i=0;i<t.length;i+=2){const r=n[t[i]];if(!(r instanceof e5)){const a=t[i+1];if(Array.isArray(a))for(let o=0;o<a.length;o+=2){const s=r[a[o]],c=a[o+1];try{c.call(s)}finally{}}else try{a.call(r)}finally{}}}}(e,n),function DN(e,n){const t=e.cleanup,i=n[7];let r=-1;if(null!==t)for(let a=0;a<t.length-1;a+=2)if("string"==typeof t[a]){const o=t[a+1],s="function"==typeof o?o(n):x1(n[o]),c=i[r=t[a+2]],l=t[a+3];"boolean"==typeof l?s.removeEventListener(t[a],c,l):l>=0?i[r=l]():i[r=-l].unsubscribe(),a+=2}else{const o=i[r=t[a+1]];t[a].call(o)}if(null!==i){for(let a=r+1;a<i.length;a++)i[a]();n[7]=null}}(e,n),1===n[1].type&&m1(n[11])&&n[11].destroy();const t=n[17];if(null!==t&&f4(n[3])){t!==n[3]&&Dl(t,n);const i=n[19];null!==i&&i.detachView(e)}}}function Nl(e,n,t){return function zl(e,n,t){let i=n;for(;null!==i&&40&i.type;)i=(n=i).parent;if(null===i)return t[0];if(2&i.flags){const r=e.data[i.directiveStart].encapsulation;if(r===w4.None||r===w4.Emulated)return null}return W3(i,t)}(e,n.parent,t)}function Ze(e,n,t,i,r){m1(e)?e.insertBefore(n,t,i,r):n.insertBefore(t,i,r)}function xl(e,n,t){m1(e)?e.appendChild(n,t):n.appendChild(t)}function El(e,n,t,i,r){null!==i?Ze(e,n,t,i,r):xl(e,n,t)}function m8(e,n){return m1(e)?e.parentNode(n):n.parentNode}function Tl(e,n,t){return kl(e,n,t)}let kl=function Al(e,n,t){return 40&e.type?W3(e,t):null};function v8(e,n,t,i){const r=Nl(e,i,n),a=n[11],s=Tl(i.parent||n[6],i,n);if(null!=r)if(Array.isArray(t))for(let c=0;c<t.length;c++)El(a,r,t[c],s,!1);else El(a,r,t,s,!1)}function _8(e,n){if(null!==n){const t=n.type;if(3&t)return W3(n,e);if(4&t)return qr(-1,e[n.index]);if(8&t){const i=n.child;if(null!==i)return _8(e,i);{const r=e[n.index];return f4(r)?qr(-1,r):x1(r)}}if(32&t)return Pr(n,e)()||x1(e[n.index]);{const i=Ol(e,n);return null!==i?Array.isArray(i)?i[0]:_8(m5(e[16]),i):_8(e,n.next)}}return null}function Ol(e,n){return null!==n?e[16][6].projection[n.projection]:null}function qr(e,n){const t=10+e+1;if(t<n.length){const i=n[t],r=i[1].firstChild;if(null!==r)return _8(i,r)}return n[7]}function Kr(e,n,t,i,r,a,o){for(;null!=t;){const s=i[t.index],c=t.type;if(o&&0===n&&(s&&u3(x1(s),i),t.flags|=4),64!=(64&t.flags))if(8&c)Kr(e,n,t.child,i,r,a,!1),Kt(n,e,r,s,a);else if(32&c){const l=Pr(t,i);let u;for(;u=l();)Kt(n,e,r,u,a);Kt(n,e,r,s,a)}else 16&c?Pl(e,n,i,t,r,a):Kt(n,e,r,s,a);t=o?t.projectionNext:t.next}}function v5(e,n,t,i,r,a){Kr(t,i,e.firstChild,n,r,a,!1)}function Pl(e,n,t,i,r,a){const o=t[16],c=o[6].projection[i.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++)Kt(n,e,r,c[l],a);else Kr(e,n,c,o[3],r,a,!0)}function Fl(e,n,t){m1(e)?e.setAttribute(n,"style",t):n.style.cssText=t}function Yr(e,n,t){m1(e)?""===t?e.removeAttribute(n,"class"):e.setAttribute(n,"class",t):n.className=t}function Bl(e,n,t){let i=e.length;for(;;){const r=e.indexOf(n,t);if(-1===r)return r;if(0===r||e.charCodeAt(r-1)<=32){const a=n.length;if(r+a===i||e.charCodeAt(r+a)<=32)return r}t=r+1}}const Ul="ng-template";function AN(e,n,t){let i=0;for(;i<e.length;){let r=e[i++];if(t&&"class"===r){if(r=e[i],-1!==Bl(r.toLowerCase(),n,0))return!0}else if(1===r){for(;i<e.length&&"string"==typeof(r=e[i++]);)if(r.toLowerCase()===n)return!0;return!1}}return!1}function jl(e){return 4===e.type&&e.value!==Ul}function kN(e,n,t){return n===(4!==e.type||t?e.value:Ul)}function IN(e,n,t){let i=4;const r=e.attrs||[],a=function PN(e){for(let n=0;n<e.length;n++)if(xc(e[n]))return n;return e.length}(r);let o=!1;for(let s=0;s<n.length;s++){const c=n[s];if("number"!=typeof c){if(!o)if(4&i){if(i=2|1&i,""!==c&&!kN(e,c,t)||""===c&&1===n.length){if(d4(i))return!1;o=!0}}else{const l=8&i?c:n[++s];if(8&i&&null!==e.attrs){if(!AN(e.attrs,l,t)){if(d4(i))return!1;o=!0}continue}const f=ON(8&i?"class":c,r,jl(e),t);if(-1===f){if(d4(i))return!1;o=!0;continue}if(""!==l){let h;h=f>a?"":r[f+1].toLowerCase();const p=8&i?h:null;if(p&&-1!==Bl(p,l,0)||2&i&&l!==h){if(d4(i))return!1;o=!0}}}}else{if(!o&&!d4(i)&&!d4(c))return!1;if(o&&d4(c))continue;o=!1,i=c|1&i}}return d4(i)||o}function d4(e){return 0==(1&e)}function ON(e,n,t,i){if(null===n)return-1;let r=0;if(i||!t){let a=!1;for(;r<n.length;){const o=n[r];if(o===e)return r;if(3===o||6===o)a=!0;else{if(1===o||2===o){let s=n[++r];for(;"string"==typeof s;)s=n[++r];continue}if(4===o)break;if(0===o){r+=4;continue}}r+=a?1:2}return-1}return function FN(e,n){let t=e.indexOf(4);if(t>-1)for(t++;t<e.length;){const i=e[t];if("number"==typeof i)return-1;if(i===n)return t;t++}return-1}(n,e)}function Gl(e,n,t=!1){for(let i=0;i<n.length;i++)if(IN(e,n[i],t))return!0;return!1}function BN(e,n){e:for(let t=0;t<n.length;t++){const i=n[t];if(e.length===i.length){for(let r=0;r<e.length;r++)if(e[r]!==i[r])continue e;return!0}}return!1}function $l(e,n){return e?":not("+n.trim()+")":n}function UN(e){let n=e[0],t=1,i=2,r="",a=!1;for(;t<e.length;){let o=e[t];if("string"==typeof o)if(2&i){const s=e[++t];r+="["+o+(s.length>0?'="'+s+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""!==r&&!d4(o)&&(n+=$l(a,r),r=""),i=o,a=a||!d4(i);t++}return""!==r&&(n+=$l(a,r)),n}const l2={};function _(e){Wl(N2(),k(),v3()+e,!1)}function Wl(e,n,t,i){if(!i)if(3==(3&n[2])){const a=e.preOrderCheckHooks;null!==a&&t8(n,a,t)}else{const a=e.preOrderHooks;null!==a&&n8(n,a,0,t)}Me(t)}function M8(e,n){return e<<17|n<<2}function h4(e){return e>>17&32767}function Qr(e){return 2|e}function Z4(e){return(131068&e)>>2}function Zr(e,n){return-131069&e|n<<2}function Jr(e){return 1|e}function iu(e,n){const t=e.contentQueries;if(null!==t)for(let i=0;i<t.length;i+=2){const r=t[i],a=t[i+1];if(-1!==a){const o=e.data[a];dr(r),o.contentQueries(2,n[a],a)}}}function _5(e,n,t,i,r,a,o,s,c,l){const u=n.blueprint.slice();return u[0]=r,u[2]=140|i,vc(u),u[3]=u[15]=e,u[8]=t,u[10]=o||e&&e[10],u[11]=s||e&&e[11],u[12]=c||e&&e[12]||null,u[9]=l||e&&e[9]||null,u[6]=a,u[16]=2==n.type?e[16]:u,u}function Yt(e,n,t,i,r){let a=e.data[n];if(null===a)a=function sa(e,n,t,i,r){const a=yc(),o=lr(),c=e.data[n]=function oz(e,n,t,i,r,a){return{type:t,index:i,insertBeforeIndex:null,injectorIndex:n?n.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:a,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?a:a&&a.parent,t,n,i,r);return null===e.firstChild&&(e.firstChild=c),null!==a&&(o?null==a.child&&null!==c.parent&&(a.child=c):null===a.next&&(a.next=c)),c}(e,n,t,i,r),function SD(){return c2.lFrame.inI18n}()&&(a.flags|=64);else if(64&a.type){a.type=t,a.value=i,a.attrs=r;const o=function X6(){const e=c2.lFrame,n=e.currentTNode;return e.isParent?n:n.parent}();a.injectorIndex=null===o?-1:o.injectorIndex}return S4(a,!0),a}function Qt(e,n,t,i){if(0===t)return-1;const r=n.length;for(let a=0;a<t;a++)n.push(i),e.blueprint.push(i),e.data.push(null);return r}function M5(e,n,t){Jn(n);try{const i=e.viewQuery;null!==i&&ga(1,i,t);const r=e.template;null!==r&&ru(e,n,r,1,t),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&iu(e,n),e.staticViewQueries&&ga(2,e.viewQuery,t);const a=e.components;null!==a&&function iz(e,n){for(let t=0;t<n.length;t++)Vz(e,n[t])}(n,a)}catch(i){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),i}finally{n[2]&=-5,Xn()}}function Zt(e,n,t,i){const r=n[2];if(256!=(256&r)){Jn(n);try{vc(n),function bc(e){return c2.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==t&&ru(e,n,t,2,i);const o=3==(3&r);if(o){const l=e.preOrderCheckHooks;null!==l&&t8(n,l,null)}else{const l=e.preOrderHooks;null!==l&&n8(n,l,0,null),hr(n,0)}if(function bz(e){for(let n=Fr(e);null!==n;n=Br(n)){if(!n[2])continue;const t=n[9];for(let i=0;i<t.length;i++){const r=t[i],a=r[3];0==(1024&r[2])&&cr(a,1),r[2]|=1024}}}(n),function yz(e){for(let n=Fr(e);null!==n;n=Br(n))for(let t=10;t<n.length;t++){const i=n[t],r=i[1];sr(i)&&Zt(r,i,r.template,i[8])}}(n),null!==e.contentQueries&&iu(e,n),o){const l=e.contentCheckHooks;null!==l&&t8(n,l)}else{const l=e.contentHooks;null!==l&&n8(n,l,1),hr(n,1)}!function tz(e,n){const t=e.hostBindingOpCodes;if(null!==t)try{for(let i=0;i<t.length;i++){const r=t[i];if(r<0)Me(~r);else{const a=r,o=t[++i],s=t[++i];ND(o,a),s(2,n[a])}}}finally{Me(-1)}}(e,n);const s=e.components;null!==s&&function nz(e,n){for(let t=0;t<n.length;t++)Lz(e,n[t])}(n,s);const c=e.viewQuery;if(null!==c&&ga(2,c,i),o){const l=e.viewCheckHooks;null!==l&&t8(n,l)}else{const l=e.viewHooks;null!==l&&n8(n,l,2),hr(n,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),n[2]&=-73,1024&n[2]&&(n[2]&=-1025,cr(n[3],-1))}finally{Xn()}}}function rz(e,n,t,i){const r=n[10],o=mc(n);try{!o&&r.begin&&r.begin(),o&&M5(e,n,i),Zt(e,n,t,i)}finally{!o&&r.end&&r.end()}}function ru(e,n,t,i,r){const a=v3(),o=2&i;try{Me(-1),o&&n.length>20&&Wl(e,n,20,!1),t(i,r)}finally{Me(a)}}function ca(e,n,t){!Mc()||(function dz(e,n,t,i){const r=t.directiveStart,a=t.directiveEnd;e.firstCreatePass||n5(t,n),u3(i,n);const o=t.initialInputs;for(let s=r;s<a;s++){const c=e.data[s],l=C4(c);l&&vz(n,t,c);const u=i5(n,e,s,t);u3(u,n),null!==o&&_z(0,s-r,u,c,0,o),l&&(T3(t.index,n)[8]=u)}}(e,n,t,W3(t,n)),128==(128&t.flags)&&function hz(e,n,t){const i=t.directiveStart,r=t.directiveEnd,o=t.index,s=function zD(){return c2.lFrame.currentDirectiveIndex}();try{Me(o);for(let c=i;c<r;c++){const l=e.data[c],u=n[c];fr(c),(null!==l.hostBindings||0!==l.hostVars||null!==l.hostAttrs)&&du(l,u)}}finally{Me(-1),fr(s)}}(e,n,t))}function la(e,n,t=W3){const i=n.localNames;if(null!==i){let r=n.index+1;for(let a=0;a<i.length;a+=2){const o=i[a+1],s=-1===o?t(n,e):e[o];e[r++]=s}}}function ou(e){const n=e.tView;return null===n||n.incompleteFirstPass?e.tView=L8(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):n}function L8(e,n,t,i,r,a,o,s,c,l){const u=20+i,f=u+r,h=function az(e,n){const t=[];for(let i=0;i<n;i++)t.push(i<e?null:l2);return t}(u,f),p="function"==typeof l?l():l;return h[1]={type:e,blueprint:h,template:t,queries:null,viewQuery:s,declTNode:n,data:h.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:f,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 o?o():o,firstChild:null,schemas:c,consts:p,incompleteFirstPass:!1}}function lu(e,n,t,i){const r=_u(n);null===t?r.push(i):(r.push(t),e.firstCreatePass&&Mu(e).push(i,r.length-1))}function uu(e,n,t){for(let i in e)if(e.hasOwnProperty(i)){const r=e[i];(t=null===t?{}:t).hasOwnProperty(i)?t[i].push(n,r):t[i]=[n,r]}return t}function O3(e,n,t,i,r,a,o,s){const c=W3(n,t);let u,l=n.inputs;!s&&null!=l&&(u=l[i])?(Lu(e,t,u,i,r),Kn(n)&&function lz(e,n){const t=T3(n,e);16&t[2]||(t[2]|=64)}(t,n.index)):3&n.type&&(i=function cz(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(i),r=null!=o?o(r,n.value||"",i):r,m1(a)?a.setProperty(c,i,r):gr(i)||(c.setProperty?c.setProperty(i,r):c[i]=r))}function ua(e,n,t,i){let r=!1;if(Mc()){const a=function pz(e,n,t){const i=e.directiveRegistry;let r=null;if(i)for(let a=0;a<i.length;a++){const o=i[a];Gl(t,o.selectors,!1)&&(r||(r=[]),s8(n5(t,n),e,o.type),C4(o)?(hu(e,t),r.unshift(o)):r.push(o))}return r}(e,n,t),o=null===i?null:{"":-1};if(null!==a){r=!0,pu(t,e.data.length,a.length);for(let u=0;u<a.length;u++){const f=a[u];f.providersResolver&&f.providersResolver(f)}let s=!1,c=!1,l=Qt(e,n,a.length,null);for(let u=0;u<a.length;u++){const f=a[u];t.mergedAttrs=r8(t.mergedAttrs,f.hostAttrs),gu(e,t,n,l,f),mz(l,f,o),null!==f.contentQueries&&(t.flags|=8),(null!==f.hostBindings||null!==f.hostAttrs||0!==f.hostVars)&&(t.flags|=128);const h=f.type.prototype;!s&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t.index),s=!0),!c&&(h.ngOnChanges||h.ngDoCheck)&&((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t.index),c=!0),l++}!function sz(e,n){const i=n.directiveEnd,r=e.data,a=n.attrs,o=[];let s=null,c=null;for(let l=n.directiveStart;l<i;l++){const u=r[l],f=u.inputs,h=null===a||jl(n)?null:Mz(f,a);o.push(h),s=uu(f,l,s),c=uu(u.outputs,l,c)}null!==s&&(s.hasOwnProperty("class")&&(n.flags|=16),s.hasOwnProperty("style")&&(n.flags|=32)),n.initialInputs=o,n.inputs=s,n.outputs=c}(e,t)}o&&function gz(e,n,t){if(n){const i=e.localNames=[];for(let r=0;r<n.length;r+=2){const a=t[n[r+1]];if(null==a)throw new S2(-301,!1);i.push(n[r],a)}}}(t,i,o)}return t.mergedAttrs=r8(t.mergedAttrs,t.attrs),r}function Cu(e,n,t,i,r,a){const o=a.hostBindings;if(o){let s=e.hostBindingOpCodes;null===s&&(s=e.hostBindingOpCodes=[]);const c=~n.index;(function Cz(e){let n=e.length;for(;n>0;){const t=e[--n];if("number"==typeof t&&t<0)return t}return 0})(s)!=c&&s.push(c),s.push(i,r,o)}}function du(e,n){null!==e.hostBindings&&e.hostBindings(1,n)}function hu(e,n){n.flags|=2,(e.components||(e.components=[])).push(n.index)}function mz(e,n,t){if(t){if(n.exportAs)for(let i=0;i<n.exportAs.length;i++)t[n.exportAs[i]]=e;C4(n)&&(t[""]=e)}}function pu(e,n,t){e.flags|=1,e.directiveStart=n,e.directiveEnd=n+t,e.providerIndexes=n}function gu(e,n,t,i,r){e.data[i]=r;const a=r.factory||(r.factory=qe(r.type)),o=new e5(a,C4(r),null);e.blueprint[i]=o,t[i]=o,Cu(e,n,0,i,Qt(e,t,r.hostVars,l2),r)}function vz(e,n,t){const i=W3(n,e),r=ou(t),a=e[10],o=V8(e,_5(e,r,null,t.onPush?64:16,i,n,a,a.createRenderer(i,t),null,null));e[n.index]=o}function T4(e,n,t,i,r,a){const o=W3(e,n);!function fa(e,n,t,i,r,a,o){if(null==a)m1(e)?e.removeAttribute(n,r,t):n.removeAttribute(r);else{const s=null==o?o2(a):o(a,i||"",r);m1(e)?e.setAttribute(n,r,s,t):t?n.setAttributeNS(t,r,s):n.setAttribute(r,s)}}(n[11],o,a,e.value,t,i,r)}function _z(e,n,t,i,r,a){const o=a[n];if(null!==o){const s=i.setInput;for(let c=0;c<o.length;){const l=o[c++],u=o[c++],f=o[c++];null!==s?i.setInput(t,f,l,u):t[u]=f}}}function Mz(e,n){let t=null,i=0;for(;i<n.length;){const r=n[i];if(0!==r)if(5!==r){if("number"==typeof r)break;e.hasOwnProperty(r)&&(null===t&&(t=[]),t.push(r,e[r],n[i+1])),i+=2}else i+=2;else i+=4}return t}function mu(e,n,t,i){return new Array(e,!0,!1,n,null,0,i,t,null,null)}function Lz(e,n){const t=T3(n,e);if(sr(t)){const i=t[1];80&t[2]?Zt(i,t,i.template,t[8]):t[5]>0&&Ca(t)}}function Ca(e){for(let i=Fr(e);null!==i;i=Br(i))for(let r=10;r<i.length;r++){const a=i[r];if(1024&a[2]){const o=a[1];Zt(o,a,o.template,a[8])}else a[5]>0&&Ca(a)}const t=e[1].components;if(null!==t)for(let i=0;i<t.length;i++){const r=T3(t[i],e);sr(r)&&r[5]>0&&Ca(r)}}function Vz(e,n){const t=T3(n,e),i=t[1];(function Hz(e,n){for(let t=n.length;t<e.blueprint.length;t++)n.push(e.blueprint[t])})(i,t),M5(i,t,t[8])}function V8(e,n){return e[13]?e[14][4]=n:e[13]=n,e[14]=n,n}function da(e){for(;e;){e[2]|=64;const n=m5(e);if(oD(e)&&!n)return e;e=n}return null}function vu(e){!function ha(e){for(let n=0;n<e.components.length;n++){const t=e.components[n],i=kr(t),r=i[1];rz(r,i,r.template,t)}}(e[8])}function ga(e,n,t){dr(0),n(e,t)}const Dz=(()=>Promise.resolve(null))();function _u(e){return e[7]||(e[7]=[])}function Mu(e){return e.cleanup||(e.cleanup=[])}function bu(e,n){const t=e[9],i=t?t.get(g5,null):null;i&&i.handleError(n)}function Lu(e,n,t,i,r){for(let a=0;a<t.length;){const o=t[a++],s=t[a++],c=n[o],l=e.data[o];null!==l.setInput?l.setInput(c,r,i,s):c[s]=r}}function J4(e,n,t){const i=Qn(n,e);!function wl(e,n,t){m1(e)?e.setValue(n,t):n.textContent=t}(e[11],i,t)}function H8(e,n,t){let i=t?e.styles:null,r=t?e.classes:null,a=0;if(null!==n)for(let o=0;o<n.length;o++){const s=n[o];"number"==typeof s?a=s:1==a?r=Gi(r,s):2==a&&(i=Gi(i,s+": "+n[++o]+";"))}t?e.styles=i:e.stylesWithoutHost=i,t?e.classes=r:e.classesWithoutHost=r}const ma=new v2("INJECTOR",-1);class Vu{get(n,t=s5){if(t===s5){const i=new Error(`NullInjectorError: No provider for ${k2(n)}!`);throw i.name="NullInjectorError",i}return t}}const va=new v2("Set Injector scope."),y5={},zz={};let _a;function Hu(){return void 0===_a&&(_a=new Vu),_a}function wu(e,n=null,t=null,i){const r=Du(e,n,t,i);return r._resolveInjectorDefTypes(),r}function Du(e,n=null,t=null,i){return new xz(e,t,n||Hu(),i)}class xz{constructor(n,t,i,r=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const a=[];t&&N4(t,s=>this.processProvider(s,n,t)),N4([n],s=>this.processInjectorType(s,[],a)),this.records.set(ma,Jt(void 0,this));const o=this.records.get(va);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof n?null:k2(n))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(n=>n.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(n,t=s5,i=r2.Default){this.assertNotDestroyed();const r=Yc(this),a=ge(void 0);try{if(!(i&r2.SkipSelf)){let s=this.records.get(n);if(void 0===s){const c=function Pz(e){return"function"==typeof e||"object"==typeof e&&e instanceof v2}(n)&&Wi(n);s=c&&this.injectableDefInScope(c)?Jt(Ma(n),y5):null,this.records.set(n,s)}if(null!=s)return this.hydrate(n,s)}return(i&r2.Self?Hu():this.parent).get(n,t=i&r2.Optional&&t===s5?null:t)}catch(o){if("NullInjectorError"===o.name){if((o[f8]=o[f8]||[]).unshift(k2(n)),r)throw o;return function dS(e,n,t,i){const r=e[f8];throw n[Kc]&&r.unshift(n[Kc]),e.message=function hS(e,n,t,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let r=k2(n);if(Array.isArray(n))r=n.map(k2).join(" -> ");else if("object"==typeof n){let a=[];for(let o in n)if(n.hasOwnProperty(o)){let s=n[o];a.push(o+":"+("string"==typeof s?JSON.stringify(s):k2(s)))}r=`{${a.join(", ")}}`}return`${t}${i?"("+i+")":""}[${r}]: ${e.replace(sS,"\n ")}`}("\n"+e.message,r,t,i),e.ngTokenPath=r,e[f8]=null,e}(o,n,"R3InjectorError",this.source)}throw o}finally{ge(a),Yc(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(n=>this.get(n))}toString(){const n=[];return this.records.forEach((i,r)=>n.push(k2(r))),`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new S2(205,!1)}processInjectorType(n,t,i){if(!(n=d2(n)))return!1;let r=rc(n);const a=null==r&&n.ngModule||void 0,o=void 0===a?n:a,s=-1!==i.indexOf(o);if(void 0!==a&&(r=rc(a)),null==r)return!1;if(null!=r.imports&&!s){let u;i.push(o);try{N4(r.imports,f=>{this.processInjectorType(f,t,i)&&(void 0===u&&(u=[]),u.push(f))})}finally{}if(void 0!==u)for(let f=0;f<u.length;f++){const{ngModule:h,providers:p}=u[f];N4(p,L=>this.processProvider(L,h,p||j2))}}this.injectorDefTypes.add(o);const c=qe(o)||(()=>new o);this.records.set(o,Jt(c,y5));const l=r.providers;if(null!=l&&!s){const u=n;N4(l,f=>this.processProvider(f,u,l))}return void 0!==a&&void 0!==n.providers}processProvider(n,t,i){let r=Xt(n=d2(n))?n:d2(n&&n.provide);const a=function Tz(e,n,t){return Nu(e)?Jt(void 0,e.useValue):Jt(Su(e),y5)}(n);if(Xt(n)||!0!==n.multi)this.records.get(r);else{let o=this.records.get(r);o||(o=Jt(void 0,y5,!0),o.factory=()=>wr(o.multi),this.records.set(r,o)),r=n,o.multi.push(n)}this.records.set(r,a)}hydrate(n,t){return t.value===y5&&(t.value=zz,t.value=t.factory()),"object"==typeof t.value&&t.value&&function Rz(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this.onDestroy.add(t.value),t.value}injectableDefInScope(n){if(!n.providedIn)return!1;const t=d2(n.providedIn);return"string"==typeof t?"any"===t||t===this.scope:this.injectorDefTypes.has(t)}}function Ma(e){const n=Wi(e),t=null!==n?n.factory:qe(e);if(null!==t)return t;if(e instanceof v2)throw new S2(204,!1);if(e instanceof Function)return function Ez(e){const n=e.length;if(n>0)throw o5(n,"?"),new S2(204,!1);const t=function qw(e){const n=e&&(e[jn]||e[ac]);if(n){const t=function Kw(e){if(e.hasOwnProperty("name"))return e.name;const n=(""+e).match(/^function\s*([^\s(]+)/);return null===n?"":n[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${t}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${t}" class.`),n}return null}(e);return null!==t?()=>t.factory(e):()=>new e}(e);throw new S2(204,!1)}function Su(e,n,t){let i;if(Xt(e)){const r=d2(e);return qe(r)||Ma(r)}if(Nu(e))i=()=>d2(e.useValue);else if(function kz(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...wr(e.deps||[]));else if(function Az(e){return!(!e||!e.useExisting)}(e))i=()=>q(d2(e.useExisting));else{const r=d2(e&&(e.useClass||e.provide));if(!function Oz(e){return!!e.deps}(e))return qe(r)||Ma(r);i=()=>new r(...wr(e.deps))}return i}function Jt(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function Nu(e){return null!==e&&"object"==typeof e&&lS in e}function Xt(e){return"function"==typeof e}let R1=(()=>{class e{static create(t,i){var r;if(Array.isArray(t))return wu({name:""},i,t,"");{const a=null!==(r=t.name)&&void 0!==r?r:"";return wu({name:a},t.parent,t.providers,a)}}}return e.THROW_IF_NOT_FOUND=s5,e.NULL=new Vu,e.\u0275prov=Z({token:e,providedIn:"any",factory:()=>q(ma)}),e.__NG_ELEMENT_ID__=-1,e})();function qz(e,n){e8(kr(e)[1],I1())}function J(e){let n=function Bu(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),t=!0;const i=[e];for(;n;){let r;if(C4(e))r=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new S2(903,"");r=n.\u0275dir}if(r){if(t){i.push(r);const o=e;o.inputs=La(e.inputs),o.declaredInputs=La(e.declaredInputs),o.outputs=La(e.outputs);const s=r.hostBindings;s&&Zz(e,s);const c=r.viewQuery,l=r.contentQueries;if(c&&Yz(e,c),l&&Qz(e,l),ji(e.inputs,r.inputs),ji(e.declaredInputs,r.declaredInputs),ji(e.outputs,r.outputs),C4(r)&&r.data.animation){const u=e.data;u.animation=(u.animation||[]).concat(r.data.animation)}}const a=r.features;if(a)for(let o=0;o<a.length;o++){const s=a[o];s&&s.ngInherit&&s(e),s===J&&(t=!1)}}n=Object.getPrototypeOf(n)}!function Kz(e){let n=0,t=null;for(let i=e.length-1;i>=0;i--){const r=e[i];r.hostVars=n+=r.hostVars,r.hostAttrs=r8(r.hostAttrs,t=r8(t,r.hostAttrs))}}(i)}function La(e){return e===St?{}:e===j2?[]:e}function Yz(e,n){const t=e.viewQuery;e.viewQuery=t?(i,r)=>{n(i,r),t(i,r)}:n}function Qz(e,n){const t=e.contentQueries;e.contentQueries=t?(i,r,a)=>{n(i,r,a),t(i,r,a)}:n}function Zz(e,n){const t=e.hostBindings;e.hostBindings=t?(i,r)=>{n(i,r),t(i,r)}:n}let w8=null;function e6(){if(!w8){const e=R2.Symbol;if(e&&e.iterator)w8=e.iterator;else{const n=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<n.length;++t){const i=n[t];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(w8=i)}}}return w8}function b5(e){return!!function Va(e){return null!==e&&("function"==typeof e||"object"==typeof e)}(e)&&(Array.isArray(e)||!(e instanceof Map)&&e6()in e)}function f3(e,n,t){return!Object.is(e[n],t)&&(e[n]=t,!0)}function Je(e,n,t,i){const r=f3(e,n,t);return f3(e,n+1,i)||r}function j(e,n,t,i){const r=k();return f3(r,At(),n)&&(N2(),T4(v1(),r,e,n,t,i)),j}function n6(e,n,t,i){return f3(e,At(),t)?n+o2(t)+i:l2}function i6(e,n,t,i,r,a){const s=Je(e,function K4(){return c2.lFrame.bindingIndex}(),t,r);return Y4(2),s?n+o2(t)+i+o2(r)+a:l2}function R(e,n,t,i,r,a,o,s){const c=k(),l=N2(),u=e+20,f=l.firstCreatePass?function rx(e,n,t,i,r,a,o,s,c){const l=n.consts,u=Yt(n,e,4,o||null,_e(l,s));ua(n,t,u,_e(l,c)),e8(n,u);const f=u.tViews=L8(2,u,i,r,a,n.directiveRegistry,n.pipeRegistry,null,n.schemas,l);return null!==n.queries&&(n.queries.template(n,u),f.queries=n.queries.embeddedTView(u)),u}(u,l,c,n,t,i,r,a,o):l.data[u];S4(f,!1);const h=c[11].createComment("");v8(l,c,h,f),u3(h,c),V8(c,c[u]=mu(h,c,h,f)),Yn(f)&&ca(l,c,f),null!=o&&la(c,f,s)}function Y3(e){return function Tt(e,n){return e[n]}(function DD(){return c2.lFrame.contextLView}(),20+e)}function V(e,n=r2.Default){const t=k();return null===t?q(e,n):Rc(I1(),t,d2(e),n)}function Na(){throw new Error("invalid")}function b(e,n,t){const i=k();return f3(i,At(),n)&&O3(N2(),v1(),i,e,n,i[11],t,!1),b}function za(e,n,t,i,r){const o=r?"class":"style";Lu(e,t,n.inputs[o],o,i)}function g(e,n,t,i){const r=k(),a=N2(),o=20+e,s=r[11],c=r[o]=jr(s,n,function ID(){return c2.lFrame.currentNamespace}()),l=a.firstCreatePass?function Hx(e,n,t,i,r,a,o){const s=n.consts,l=Yt(n,e,2,r,_e(s,a));return ua(n,t,l,_e(s,o)),null!==l.attrs&&H8(l,l.attrs,!1),null!==l.mergedAttrs&&H8(l,l.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,l),l}(o,a,r,0,n,t,i):a.data[o];S4(l,!0);const u=l.mergedAttrs;null!==u&&i8(s,c,u);const f=l.classes;null!==f&&Yr(s,c,f);const h=l.styles;return null!==h&&Fl(s,c,h),64!=(64&l.flags)&&v8(a,r,c,l),0===function bD(){return c2.lFrame.elementDepthCount}()&&u3(c,r),function LD(){c2.lFrame.elementDepthCount++}(),Yn(l)&&(ca(a,r,l),function au(e,n,t){if(Xi(n)){const r=n.directiveEnd;for(let a=n.directiveStart;a<r;a++){const o=e.data[a];o.contentQueries&&o.contentQueries(1,t[a],a)}}}(a,l,r)),null!==i&&la(r,l),g}function m(){let e=I1();lr()?ur():(e=e.parent,S4(e,!1));const n=e;!function VD(){c2.lFrame.elementDepthCount--}();const t=N2();return t.firstCreatePass&&(e8(t,e),Xi(e)&&t.queries.elementEnd(e)),null!=n.classesWithoutHost&&function BD(e){return 0!=(16&e.flags)}(n)&&za(t,n,k(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function UD(e){return 0!=(32&e.flags)}(n)&&za(t,n,k(),n.stylesWithoutHost,!1),m}function I(e,n,t,i){return g(e,n,t,i),m(),I}function V1(){return k()}function V5(e){return!!e&&"function"==typeof e.then}const Ta=function uf(e){return!!e&&"function"==typeof e.subscribe};function T(e,n,t,i){const r=k(),a=N2(),o=I1();return function Cf(e,n,t,i,r,a,o,s){const c=Yn(i),u=e.firstCreatePass&&Mu(e),f=n[8],h=_u(n);let p=!0;if(3&i.type||s){const S=W3(i,n),N=s?s(S):S,w=h.length,A=s?F=>s(x1(F[i.index])):i.index;if(m1(t)){let F=null;if(!s&&c&&(F=function Dx(e,n,t,i){const r=e.cleanup;if(null!=r)for(let a=0;a<r.length-1;a+=2){const o=r[a];if(o===t&&r[a+1]===i){const s=n[7],c=r[a+2];return s.length>c?s[c]:null}"string"==typeof o&&(a+=2)}return null}(e,n,r,i.index)),null!==F)(F.__ngLastListenerFn__||F).__ngNextListenerFn__=a,F.__ngLastListenerFn__=a,p=!1;else{a=Aa(i,n,f,a,!1);const B=t.listen(N,r,a);h.push(a,B),u&&u.push(r,A,w,w+1)}}else a=Aa(i,n,f,a,!0),N.addEventListener(r,a,o),h.push(a),u&&u.push(r,A,w,o)}else a=Aa(i,n,f,a,!1);const L=i.outputs;let H;if(p&&null!==L&&(H=L[r])){const S=H.length;if(S)for(let N=0;N<S;N+=2){const Q=n[H[N]][H[N+1]].subscribe(a),f2=h.length;h.push(a,Q),u&&u.push(r,i.index,f2,-(f2+1))}}}(a,r,r[11],o,e,n,!!t,i),T}function df(e,n,t,i){try{return!1!==t(i)}catch(r){return bu(e,r),!1}}function Aa(e,n,t,i,r){return function a(o){if(o===Function)return i;const s=2&e.flags?T3(e.index,n):n;0==(32&n[2])&&da(s);let c=df(n,0,i,o),l=a.__ngNextListenerFn__;for(;l;)c=df(n,0,l,o)&&c,l=l.__ngNextListenerFn__;return r&&!1===c&&(o.preventDefault(),o.returnValue=!1),c}}function E(e=1){return function ED(e){return(c2.lFrame.contextLView=function TD(e,n){for(;e>0;)n=n[15],e--;return n}(e,c2.lFrame.contextLView))[8]}(e)}function Sx(e,n){let t=null;const i=function RN(e){const n=e.attrs;if(null!=n){const t=n.indexOf(5);if(0==(1&t))return n[t+1]}return null}(e);for(let r=0;r<n.length;r++){const a=n[r];if("*"!==a){if(null===i?Gl(e,a,!0):BN(i,a))return r}else t=r}return t}function H5(e){const n=k()[16][6];if(!n.projection){const i=n.projection=o5(e?e.length:1,null),r=i.slice();let a=n.child;for(;null!==a;){const o=e?Sx(a,e):0;null!==o&&(r[o]?r[o].projectionNext=a:i[o]=a,r[o]=a),a=a.next}}}function w5(e,n=0,t){const i=k(),r=N2(),a=Yt(r,20+e,16,null,t||null);null===a.projection&&(a.projection=n),ur(),64!=(64&a.flags)&&function xN(e,n,t){Pl(n[11],0,n,t,Nl(e,t,n),Tl(t.parent||n[6],t,n))}(r,i,a)}function ka(e,n,t){return f6(e,"",n,"",t),ka}function f6(e,n,t,i,r){const a=k(),o=n6(a,n,t,i);return o!==l2&&O3(N2(),v1(),a,e,o,a[11],r,!1),f6}function bf(e,n,t,i,r){const a=e[t+1],o=null===n;let s=i?h4(a):Z4(a),c=!1;for(;0!==s&&(!1===c||o);){const u=e[s+1];xx(e[s],n)&&(c=!0,e[s+1]=i?Jr(u):Qr(u)),s=i?h4(u):Z4(u)}c&&(e[t+1]=i?Qr(a):Jr(a))}function xx(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&Gt(e,n)>=0}const P1={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Lf(e){return e.substring(P1.key,P1.keyEnd)}function Vf(e,n){const t=P1.textEnd;return t===n?-1:(n=P1.keyEnd=function kx(e,n,t){for(;n<t&&e.charCodeAt(n)>32;)n++;return n}(e,P1.key=n,t),C6(e,n,t))}function C6(e,n,t){for(;n<t&&e.charCodeAt(n)<=32;)n++;return n}function n1(e,n){return function g4(e,n,t,i){const r=k(),a=N2(),o=Y4(2);a.firstUpdatePass&&zf(a,e,o,i),n!==l2&&f3(r,o,n)&&Ef(a,a.data[v3()],r,r[11],e,r[o+1]=function $x(e,n){return null==e||("string"==typeof n?e+=n:"object"==typeof e&&(e=k2(k3(e)))),e}(n,t),i,o)}(e,n,null,!0),n1}function He(e){!function m4(e,n,t,i){const r=N2(),a=Y4(2);r.firstUpdatePass&&zf(r,null,a,i);const o=k();if(t!==l2&&f3(o,a,t)){const s=r.data[v3()];if(Af(s,i)&&!Nf(r,a)){let c=i?s.classesWithoutHost:s.stylesWithoutHost;null!==c&&(t=Gi(c,t||"")),za(r,s,o,t,i)}else!function Gx(e,n,t,i,r,a,o,s){r===l2&&(r=j2);let c=0,l=0,u=0<r.length?r[0]:null,f=0<a.length?a[0]:null;for(;null!==u||null!==f;){const h=c<r.length?r[c+1]:void 0,p=l<a.length?a[l+1]:void 0;let H,L=null;u===f?(c+=2,l+=2,h!==p&&(L=f,H=p)):null===f||null!==u&&u<f?(c+=2,L=u):(l+=2,L=f,H=p),null!==L&&Ef(e,n,t,i,L,H,o,s),u=c<r.length?r[c]:null,f=l<a.length?a[l]:null}}(r,s,o,o[11],o[a+1],o[a+1]=function jx(e,n,t){if(null==t||""===t)return j2;const i=[],r=k3(t);if(Array.isArray(r))for(let a=0;a<r.length;a++)e(i,r[a],!0);else if("object"==typeof r)for(const a in r)r.hasOwnProperty(a)&&e(i,a,r[a]);else"string"==typeof r&&n(i,r);return i}(e,n,t),i,a)}}(A3,I4,e,!0)}function I4(e,n){for(let t=function Tx(e){return function wf(e){P1.key=0,P1.keyEnd=0,P1.value=0,P1.valueEnd=0,P1.textEnd=e.length}(e),Vf(e,C6(e,0,P1.textEnd))}(n);t>=0;t=Vf(n,t))A3(e,Lf(n),!0)}function Nf(e,n){return n>=e.expandoStartIndex}function zf(e,n,t,i){const r=e.data;if(null===r[t+1]){const a=r[v3()],o=Nf(e,t);Af(a,i)&&null===n&&!o&&(n=!1),n=function Px(e,n,t,i){const r=function Cr(e){const n=c2.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}(e);let a=i?n.residualClasses:n.residualStyles;if(null===r)0===(i?n.classBindings:n.styleBindings)&&(t=D5(t=Oa(null,e,n,t,i),n.attrs,i),a=null);else{const o=n.directiveStylingLast;if(-1===o||e[o]!==r)if(t=Oa(r,e,n,t,i),null===a){let c=function Fx(e,n,t){const i=t?n.classBindings:n.styleBindings;if(0!==Z4(i))return e[h4(i)]}(e,n,i);void 0!==c&&Array.isArray(c)&&(c=Oa(null,e,n,c[1],i),c=D5(c,n.attrs,i),function Bx(e,n,t,i){e[h4(t?n.classBindings:n.styleBindings)]=i}(e,n,i,c))}else a=function Ux(e,n,t){let i;const r=n.directiveEnd;for(let a=1+n.directiveStylingLast;a<r;a++)i=D5(i,e[a].hostAttrs,t);return D5(i,n.attrs,t)}(e,n,i)}return void 0!==a&&(i?n.residualClasses=a:n.residualStyles=a),t}(r,a,n,i),function Nx(e,n,t,i,r,a){let o=a?n.classBindings:n.styleBindings,s=h4(o),c=Z4(o);e[i]=t;let u,l=!1;if(Array.isArray(t)){const f=t;u=f[1],(null===u||Gt(f,u)>0)&&(l=!0)}else u=t;if(r)if(0!==c){const h=h4(e[s+1]);e[i+1]=M8(h,s),0!==h&&(e[h+1]=Zr(e[h+1],i)),e[s+1]=function $N(e,n){return 131071&e|n<<17}(e[s+1],i)}else e[i+1]=M8(s,0),0!==s&&(e[s+1]=Zr(e[s+1],i)),s=i;else e[i+1]=M8(c,0),0===s?s=i:e[c+1]=Zr(e[c+1],i),c=i;l&&(e[i+1]=Qr(e[i+1])),bf(e,u,i,!0),bf(e,u,i,!1),function zx(e,n,t,i,r){const a=r?e.residualClasses:e.residualStyles;null!=a&&"string"==typeof n&&Gt(a,n)>=0&&(t[i+1]=Jr(t[i+1]))}(n,u,e,i,a),o=M8(s,c),a?n.classBindings=o:n.styleBindings=o}(r,a,n,t,o,i)}}function Oa(e,n,t,i,r){let a=null;const o=t.directiveEnd;let s=t.directiveStylingLast;for(-1===s?s=t.directiveStart:s++;s<o&&(a=n[s],i=D5(i,a.hostAttrs,r),a!==e);)s++;return null!==e&&(t.directiveStylingLast=s),i}function D5(e,n,t){const i=t?1:2;let r=-1;if(null!==n)for(let a=0;a<n.length;a++){const o=n[a];"number"==typeof o?r=o:r===i&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),A3(e,o,!!t||n[++a]))}return void 0===e?null:e}function Ef(e,n,t,i,r,a,o,s){if(!(3&n.type))return;const c=e.data,l=c[s+1];N8(function Yl(e){return 1==(1&e)}(l)?Tf(c,n,t,r,Z4(l),o):void 0)||(N8(a)||function Kl(e){return 2==(2&e)}(l)&&(a=Tf(c,null,t,r,s,o)),function TN(e,n,t,i,r){const a=m1(e);if(n)r?a?e.addClass(t,i):t.classList.add(i):a?e.removeClass(t,i):t.classList.remove(i);else{let o=-1===i.indexOf("-")?void 0:I3.DashCase;if(null==r)a?e.removeStyle(t,i,o):t.style.removeProperty(i);else{const s="string"==typeof r&&r.endsWith("!important");s&&(r=r.slice(0,-10),o|=I3.Important),a?e.setStyle(t,i,r,o):t.style.setProperty(i,r,s?"important":"")}}}(i,o,Qn(v3(),t),r,a))}function Tf(e,n,t,i,r,a){const o=null===n;let s;for(;r>0;){const c=e[r],l=Array.isArray(c),u=l?c[1]:c,f=null===u;let h=t[r+1];h===l2&&(h=f?j2:void 0);let p=f?Lr(h,i):u===i?h:void 0;if(l&&!N8(p)&&(p=Lr(c,i)),N8(p)&&(s=p,o))return s;const L=e[r+1];r=o?h4(L):Z4(L)}if(null!==n){let c=a?n.residualClasses:n.residualStyles;null!=c&&(s=Lr(c,i))}return s}function N8(e){return void 0!==e}function Af(e,n){return 0!=(e.flags&(n?16:32))}function y(e,n=""){const t=k(),i=N2(),r=e+20,a=i.firstCreatePass?Yt(i,r,1,n,null):i.data[r],o=t[r]=function Ur(e,n){return m1(e)?e.createText(n):e.createTextNode(n)}(t[11],n);v8(i,t,o,a),S4(a,!1)}function S5(e){return Q3("",e,""),S5}function Q3(e,n,t){const i=k(),r=n6(i,e,n,t);return r!==l2&&J4(i,v3(),r),Q3}function d6(e,n,t,i,r){const a=k(),o=i6(a,e,n,t,i,r);return o!==l2&&J4(a,v3(),o),d6}function O4(e,n,t){const i=k();return f3(i,At(),n)&&O3(N2(),v1(),i,e,n,i[11],t,!0),O4}const z8="en-US";let eC=z8;function Ba(e,n,t,i,r){if(e=d2(e),Array.isArray(e))for(let a=0;a<e.length;a++)Ba(e[a],n,t,i,r);else{const a=N2(),o=k();let s=Xt(e)?e:d2(e.provide),c=Su(e);const l=I1(),u=1048575&l.providerIndexes,f=l.directiveStart,h=l.providerIndexes>>20;if(Xt(e)||!e.multi){const p=new e5(c,r,V),L=ja(s,n,r?u:u+h,f);-1===L?(s8(n5(l,o),a,s),Ua(a,e,n.length),n.push(s),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),t.push(p),o.push(p)):(t[L]=p,o[L]=p)}else{const p=ja(s,n,u+h,f),L=ja(s,n,u,u+h),H=p>=0&&t[p],S=L>=0&&t[L];if(r&&!S||!r&&!H){s8(n5(l,o),a,s);const N=function cT(e,n,t,i,r){const a=new e5(e,t,V);return a.multi=[],a.index=n,a.componentProviders=0,VC(a,r,i&&!t),a}(r?sT:oT,t.length,r,i,c);!r&&S&&(t[L].providerFactory=N),Ua(a,e,n.length,0),n.push(s),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),t.push(N),o.push(N)}else Ua(a,e,p>-1?p:L,VC(t[r?L:p],c,!r&&i));!r&&i&&S&&t[L].componentProviders++}}}function Ua(e,n,t,i){const r=Xt(n),a=function Iz(e){return!!e.useClass}(n);if(r||a){const c=(a?d2(n.useClass):n).prototype.ngOnDestroy;if(c){const l=e.destroyHooks||(e.destroyHooks=[]);if(!r&&n.multi){const u=l.indexOf(t);-1===u?l.push(t,[i,c]):l[u+1].push(i,c)}else l.push(t,c)}}}function VC(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function ja(e,n,t,i){for(let r=t;r<i;r++)if(n[r]===e)return r;return-1}function oT(e,n,t,i){return Ga(this.multi,[])}function sT(e,n,t,i){const r=this.multi;let a;if(this.providerFactory){const o=this.providerFactory.componentProviders,s=i5(t,t[1],this.providerFactory.index,i);a=s.slice(0,o),Ga(r,a);for(let c=o;c<s.length;c++)a.push(s[c])}else a=[],Ga(r,a);return a}function Ga(e,n){for(let t=0;t<e.length;t++)n.push((0,e[t])());return n}function G2(e,n=[]){return t=>{t.providersResolver=(i,r)=>function aT(e,n,t){const i=N2();if(i.firstCreatePass){const r=C4(e);Ba(t,i.data,i.blueprint,r,!0),Ba(n,i.data,i.blueprint,r,!1)}}(i,r?r(e):e,n)}}class HC{}class fT{resolveComponentFactory(n){throw function uT(e){const n=Error(`No component factory found for ${k2(e)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=e,n}(n)}}let g6=(()=>{class e{}return e.NULL=new fT,e})();function CT(){return m6(I1(),k())}function m6(e,n){return new I2(W3(e,n))}let I2=(()=>{class e{constructor(t){this.nativeElement=t}}return e.__NG_ELEMENT_ID__=CT,e})();function dT(e){return e instanceof I2?e.nativeElement:e}class $a{}let y3=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function pT(){const e=k(),t=T3(I1().index,e);return function hT(e){return e[11]}(D4(t)?t:e)}(),e})(),gT=(()=>{class e{}return e.\u0275prov=Z({token:e,providedIn:"root",factory:()=>null}),e})();class T5{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const mT=new T5("13.3.11"),Wa={};function k8(e,n,t,i,r=!1){for(;null!==t;){const a=n[t.index];if(null!==a&&i.push(x1(a)),f4(a))for(let s=10;s<a.length;s++){const c=a[s],l=c[1].firstChild;null!==l&&k8(c[1],c,l,i)}const o=t.type;if(8&o)k8(e,n,t.child,i);else if(32&o){const s=Pr(t,n);let c;for(;c=s();)i.push(c)}else if(16&o){const s=Ol(n,t);if(Array.isArray(s))i.push(...s);else{const c=m5(n[16]);k8(c[1],c,s,i,!0)}}t=r?t.projectionNext:t.next}return i}class A5{constructor(n,t){this._lView=n,this._cdRefInjectingView=t,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const n=this._lView,t=n[1];return k8(t,n,t.firstChild,[])}get context(){return this._lView[8]}set context(n){this._lView[8]=n}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[3];if(f4(n)){const t=n[8],i=t?t.indexOf(this):-1;i>-1&&(Gr(n,i),l8(t,i))}this._attachedToViewContainer=!1}Sl(this._lView[1],this._lView)}onDestroy(n){lu(this._lView[1],this._lView,null,n)}markForCheck(){da(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function pa(e,n,t){const i=n[10];i.begin&&i.begin();try{Zt(e,n,e.template,t)}catch(r){throw bu(n,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new S2(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function LN(e,n){v5(e,n,n[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new S2(902,"");this._appRef=n}}class vT extends A5{constructor(n){super(n),this._view=n}detectChanges(){vu(this._view)}checkNoChanges(){}get context(){return null}}class DC extends g6{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const t=s3(n);return new qa(t,this.ngModule)}}function SC(e){const n=[];for(let t in e)e.hasOwnProperty(t)&&n.push({propName:e[t],templateName:t});return n}class qa extends HC{constructor(n,t){super(),this.componentDef=n,this.ngModule=t,this.componentType=n.type,this.selector=function jN(e){return e.map(UN).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return SC(this.componentDef.inputs)}get outputs(){return SC(this.componentDef.outputs)}create(n,t,i,r){const a=(r=r||this.ngModule)?function MT(e,n){return{get:(t,i,r)=>{const a=e.get(t,Wa,r);return a!==Wa||i===Wa?a:n.get(t,i,r)}}}(n,r.injector):n,o=a.get($a,gc),s=a.get(gT,null),c=o.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",u=i?function cu(e,n,t){if(m1(e))return e.selectRootElement(n,t===w4.ShadowDom);let i="string"==typeof n?e.querySelector(n):n;return i.textContent="",i}(c,i,this.componentDef.encapsulation):jr(o.createRenderer(null,this.componentDef),l,function _T(e){const n=e.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(l)),f=this.componentDef.onPush?576:528,h=function Fu(e,n){return{components:[],scheduler:e||pN,clean:Dz,playerHandler:n||null,flags:0}}(),p=L8(0,null,null,1,0,null,null,null,null,null),L=_5(null,p,h,f,null,null,o,c,s,a);let H,S;Jn(L);try{const N=function Ru(e,n,t,i,r,a){const o=t[1];t[20]=e;const c=Yt(o,20,2,"#host",null),l=c.mergedAttrs=n.hostAttrs;null!==l&&(H8(c,l,!0),null!==e&&(i8(r,e,l),null!==c.classes&&Yr(r,e,c.classes),null!==c.styles&&Fl(r,e,c.styles)));const u=i.createRenderer(e,n),f=_5(t,ou(n),null,n.onPush?64:16,t[20],c,i,u,a||null,null);return o.firstCreatePass&&(s8(n5(c,t),o,n.type),hu(o,c),pu(c,t.length,1)),V8(t,f),t[20]=f}(u,this.componentDef,L,o,c);if(u)if(i)i8(c,u,["ng-version",mT.full]);else{const{attrs:w,classes:A}=function GN(e){const n=[],t=[];let i=1,r=2;for(;i<e.length;){let a=e[i];if("string"==typeof a)2===r?""!==a&&n.push(a,e[++i]):8===r&&t.push(a);else{if(!d4(r))break;r=a}i++}return{attrs:n,classes:t}}(this.componentDef.selectors[0]);w&&i8(c,u,w),A&&A.length>0&&Yr(c,u,A.join(" "))}if(S=or(p,20),void 0!==t){const w=S.projection=[];for(let A=0;A<this.ngContentSelectors.length;A++){const F=t[A];w.push(null!=F?Array.from(F):null)}}H=function Pu(e,n,t,i,r){const a=t[1],o=function fz(e,n,t){const i=I1();e.firstCreatePass&&(t.providersResolver&&t.providersResolver(t),gu(e,i,n,Qt(e,n,1,null),t));const r=i5(n,e,i.directiveStart,i);u3(r,n);const a=W3(i,n);return a&&u3(a,n),r}(a,t,n);if(i.components.push(o),e[8]=o,r&&r.forEach(c=>c(o,n)),n.contentQueries){const c=I1();n.contentQueries(1,o,c.directiveStart)}const s=I1();return!a.firstCreatePass||null===n.hostBindings&&null===n.hostAttrs||(Me(s.index),Cu(t[1],s,0,s.directiveStart,s.directiveEnd,n),du(n,o)),o}(N,this.componentDef,L,h,[qz]),M5(p,L,null)}finally{Xn()}return new bT(this.componentType,H,m6(S,L),L,S)}}class bT extends class lT{}{constructor(n,t,i,r,a){super(),this.location=i,this._rootLView=r,this._tNode=a,this.instance=t,this.hostView=this.changeDetectorRef=new vT(r),this.componentType=n}get injector(){return new Pt(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}class X4{}class NC{}const v6=new Map;class EC extends X4{constructor(n,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new DC(this);const i=j3(n);this._bootstrapComponents=E4(i.bootstrap),this._r3Injector=Du(n,t,[{provide:X4,useValue:this},{provide:g6,useValue:this.componentFactoryResolver}],k2(n)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(n)}get(n,t=R1.THROW_IF_NOT_FOUND,i=r2.Default){return n===R1||n===X4||n===ma?this:this._r3Injector.get(n,t,i)}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class Ka extends NC{constructor(n){super(),this.moduleType=n,null!==j3(n)&&function VT(e){const n=new Set;!function t(i){const r=j3(i,!0),a=r.id;null!==a&&(function zC(e,n,t){if(n&&n!==t)throw new Error(`Duplicate module registered for ${e} - ${k2(n)} vs ${k2(n.name)}`)}(a,v6.get(a),i),v6.set(a,i));const o=E4(r.imports);for(const s of o)n.has(s)||(n.add(s),t(s))}(e)}(n)}create(n){return new EC(this.moduleType,n)}}function k5(e,n,t,i,r){return function AC(e,n,t,i,r,a,o){const s=n+t;return Je(e,s,r,a)?function A4(e,n,t){return e[n]=t}(e,s+2,o?i.call(o,r,a):i(r,a)):function I5(e,n){const t=e[n];return t===l2?void 0:t}(e,s+2)}(k(),function m3(){const e=c2.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}(),e,n,t,i,r)}function Qa(e){return n=>{setTimeout(e,void 0,n)}}const u2=class PT extends C2{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,t,i){var r,a,o;let s=n,c=t||(()=>null),l=i;if(n&&"object"==typeof n){const f=n;s=null===(r=f.next)||void 0===r?void 0:r.bind(f),c=null===(a=f.error)||void 0===a?void 0:a.bind(f),l=null===(o=f.complete)||void 0===o?void 0:o.bind(f)}this.__isAsync&&(c=Qa(c),s&&(s=Qa(s)),l&&(l=Qa(l)));const u=super.subscribe({next:s,error:c,complete:l});return n instanceof H2&&n.add(u),u}};function FT(){return this._results[e6()]()}class Za{constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=e6(),i=Za.prototype;i[t]||(i[t]=FT)}get changes(){return this._changes||(this._changes=new u2)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,t){return this._results.reduce(n,t)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,t){const i=this;i.dirty=!1;const r=q3(n);(this._changesDetected=!function JD(e,n,t){if(e.length!==n.length)return!1;for(let i=0;i<e.length;i++){let r=e[i],a=n[i];if(t&&(r=t(r),a=t(a)),a!==r)return!1}return!0}(i._results,r,t))&&(i._results=r,i.length=r.length,i.last=r[this.length-1],i.first=r[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let c1=(()=>{class e{}return e.__NG_ELEMENT_ID__=jT,e})();const BT=c1,UT=class extends BT{constructor(n,t,i){super(),this._declarationLView=n,this._declarationTContainer=t,this.elementRef=i}createEmbeddedView(n){const t=this._declarationTContainer.tViews,i=_5(this._declarationLView,t,n,16,null,t.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[19];return null!==a&&(i[19]=a.createEmbeddedView(t)),M5(t,i,n),new A5(i)}};function jT(){return O8(I1(),k())}function O8(e,n){return 4&e.type?new UT(n,e,m6(e,n)):null}let Z3=(()=>{class e{}return e.__NG_ELEMENT_ID__=GT,e})();function GT(){return FC(I1(),k())}const $T=Z3,RC=class extends $T{constructor(n,t,i){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=i}get element(){return m6(this._hostTNode,this._hostLView)}get injector(){return new Pt(this._hostTNode,this._hostLView)}get parentInjector(){const n=o8(this._hostTNode,this._hostLView);if(Tc(n)){const t=Rt(n,this._hostLView),i=Ot(n);return new Pt(t[1].data[i+8],t)}return new Pt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=PC(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-10}createEmbeddedView(n,t,i){const r=n.createEmbeddedView(t||{});return this.insert(r,i),r}createComponent(n,t,i,r,a){const o=n&&!function a5(e){return"function"==typeof e}(n);let s;if(o)s=t;else{const f=t||{};s=f.index,i=f.injector,r=f.projectableNodes,a=f.ngModuleRef}const c=o?n:new qa(s3(n)),l=i||this.parentInjector;if(!a&&null==c.ngModule){const h=(o?l:this.parentInjector).get(X4,null);h&&(a=h)}const u=c.create(l,r,void 0,a);return this.insert(u.hostView,s),u}insert(n,t){const i=n._lView,r=i[1];if(function yD(e){return f4(e[3])}(i)){const u=this.indexOf(n);if(-1!==u)this.detach(u);else{const f=i[3],h=new RC(f,f[6],f[3]);h.detach(h.indexOf(n))}}const a=this._adjustIndex(t),o=this._lContainer;!function HN(e,n,t,i){const r=10+i,a=t.length;i>0&&(t[r-1][4]=n),i<a-10?(n[4]=t[r],jc(t,10+i,n)):(t.push(n),n[4]=null),n[3]=t;const o=n[17];null!==o&&t!==o&&function wN(e,n){const t=e[9];n[16]!==n[3][3][16]&&(e[2]=!0),null===t?e[9]=[n]:t.push(n)}(o,n);const s=n[19];null!==s&&s.insertView(e),n[2]|=128}(r,i,o,a);const s=qr(a,o),c=i[11],l=m8(c,o[7]);return null!==l&&function bN(e,n,t,i,r,a){i[0]=r,i[6]=n,v5(e,i,t,1,r,a)}(r,o[6],c,i,l,s),n.attachToViewContainerRef(),jc(Ja(o),a,n),n}move(n,t){return this.insert(n,t)}indexOf(n){const t=PC(this._lContainer);return null!==t?t.indexOf(n):-1}remove(n){const t=this._adjustIndex(n,-1),i=Gr(this._lContainer,t);i&&(l8(Ja(this._lContainer),t),Sl(i[1],i))}detach(n){const t=this._adjustIndex(n,-1),i=Gr(this._lContainer,t);return i&&null!=l8(Ja(this._lContainer),t)?new A5(i):null}_adjustIndex(n,t=0){return null==n?this.length+t:n}};function PC(e){return e[8]}function Ja(e){return e[8]||(e[8]=[])}function FC(e,n){let t;const i=n[e.index];if(f4(i))t=i;else{let r;if(8&e.type)r=x1(i);else{const a=n[11];r=a.createComment("");const o=W3(e,n);Ze(a,m8(a,o),r,function zN(e,n){return m1(e)?e.nextSibling(n):n.nextSibling}(a,o),!1)}n[e.index]=t=mu(i,n,r,e),V8(n,t)}return new RC(t,e,n)}class Xa{constructor(n){this.queryList=n,this.matches=null}clone(){return new Xa(this.queryList)}setDirty(){this.queryList.setDirty()}}class eo{constructor(n=[]){this.queries=n}createEmbeddedView(n){const t=n.queries;if(null!==t){const i=null!==n.contentQueries?n.contentQueries[0]:t.length,r=[];for(let a=0;a<i;a++){const o=t.getByIndex(a);r.push(this.queries[o.indexInDeclarationView].clone())}return new eo(r)}return null}insertView(n){this.dirtyQueriesWithMatches(n)}detachView(n){this.dirtyQueriesWithMatches(n)}dirtyQueriesWithMatches(n){for(let t=0;t<this.queries.length;t++)null!==$C(n,t).matches&&this.queries[t].setDirty()}}class BC{constructor(n,t,i=null){this.predicate=n,this.flags=t,this.read=i}}class to{constructor(n=[]){this.queries=n}elementStart(n,t){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(n,t)}elementEnd(n){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(n)}embeddedTView(n){let t=null;for(let i=0;i<this.length;i++){const r=null!==t?t.length:0,a=this.getByIndex(i).embeddedTView(n,r);a&&(a.indexInDeclarationView=i,null!==t?t.push(a):t=[a])}return null!==t?new to(t):null}template(n,t){for(let i=0;i<this.queries.length;i++)this.queries[i].template(n,t)}getByIndex(n){return this.queries[n]}get length(){return this.queries.length}track(n){this.queries.push(n)}}class no{constructor(n,t=-1){this.metadata=n,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}elementStart(n,t){this.isApplyingToNode(t)&&this.matchTNode(n,t)}elementEnd(n){this._declarationNodeIndex===n.index&&(this._appliesToNextNode=!1)}template(n,t){this.elementStart(n,t)}embeddedTView(n,t){return this.isApplyingToNode(n)?(this.crossesNgTemplate=!0,this.addMatch(-n.index,t),new no(this.metadata)):null}isApplyingToNode(n){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const t=this._declarationNodeIndex;let i=n.parent;for(;null!==i&&8&i.type&&i.index!==t;)i=i.parent;return t===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(n,t){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const a=i[r];this.matchTNodeWithReadOption(n,t,KT(t,a)),this.matchTNodeWithReadOption(n,t,c8(t,n,a,!1,!1))}else i===c1?4&t.type&&this.matchTNodeWithReadOption(n,t,-1):this.matchTNodeWithReadOption(n,t,c8(t,n,i,!1,!1))}matchTNodeWithReadOption(n,t,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===I2||r===Z3||r===c1&&4&t.type)this.addMatch(t.index,-2);else{const a=c8(t,n,r,!1,!1);null!==a&&this.addMatch(t.index,a)}else this.addMatch(t.index,i)}}addMatch(n,t){null===this.matches?this.matches=[n,t]:this.matches.push(n,t)}}function KT(e,n){const t=e.localNames;if(null!==t)for(let i=0;i<t.length;i+=2)if(t[i]===n)return t[i+1];return null}function QT(e,n,t,i){return-1===t?function YT(e,n){return 11&e.type?m6(e,n):4&e.type?O8(e,n):null}(n,e):-2===t?function ZT(e,n,t){return t===I2?m6(n,e):t===c1?O8(n,e):t===Z3?FC(n,e):void 0}(e,n,i):i5(e,e[1],t,n)}function UC(e,n,t,i){const r=n[19].queries[i];if(null===r.matches){const a=e.data,o=t.matches,s=[];for(let c=0;c<o.length;c+=2){const l=o[c];s.push(l<0?null:QT(n,a[l],o[c+1],t.metadata.read))}r.matches=s}return r.matches}function io(e,n,t,i){const r=e.queries.getByIndex(t),a=r.matches;if(null!==a){const o=UC(e,n,r,t);for(let s=0;s<a.length;s+=2){const c=a[s];if(c>0)i.push(o[s/2]);else{const l=a[s+1],u=n[-c];for(let f=10;f<u.length;f++){const h=u[f];h[17]===h[3]&&io(h[1],h,l,i)}if(null!==u[9]){const f=u[9];for(let h=0;h<f.length;h++){const p=f[h];io(p[1],p,l,i)}}}}}return i}function f1(e){const n=k(),t=N2(),i=Vc();dr(i+1);const r=$C(t,i);if(e.dirty&&mc(n)===(2==(2&r.metadata.flags))){if(null===r.matches)e.reset([]);else{const a=r.crossesNgTemplate?io(t,n,i,[]):UC(t,n,r,i);e.reset(a,dT),e.notifyOnChanges()}return!0}return!1}function H1(e,n,t,i){const r=N2();if(r.firstCreatePass){const a=I1();GC(r,new BC(n,t,i),a.index),function XT(e,n){const t=e.contentQueries||(e.contentQueries=[]);n!==(t.length?t[t.length-1]:-1)&&t.push(e.queries.length-1,n)}(r,e),2==(2&t)&&(r.staticContentQueries=!0)}jC(r,k(),t)}function C1(){return function JT(e,n){return e[19].queries[n].queryList}(k(),Vc())}function jC(e,n,t){const i=new Za(4==(4&t));lu(e,n,i,i.destroy),null===n[19]&&(n[19]=new eo),n[19].queries.push(new Xa(i))}function GC(e,n,t){null===e.queries&&(e.queries=new to),e.queries.track(new no(n,t))}function $C(e,n){return e.queries.getByIndex(n)}function J3(e,n){return O8(e,n)}function F8(...e){}const uo=new v2("Application Initializer");let fo=(()=>{class e{constructor(t){this.appInits=t,this.resolve=F8,this.reject=F8,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const t=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r<this.appInits.length;r++){const a=this.appInits[r]();if(V5(a))t.push(a);else if(Ta(a)){const o=new Promise((s,c)=>{a.subscribe({complete:s,error:c})});t.push(o)}}Promise.all(t).then(()=>{i()}).catch(r=>{this.reject(r)}),0===t.length&&i(),this.initialized=!0}}return e.\u0275fac=function(t){return new(t||e)(q(uo,8))},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const P5=new v2("AppId",{providedIn:"root",factory:function cd(){return`${Co()}${Co()}${Co()}`}});function Co(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const ld=new v2("Platform Initializer"),ho=new v2("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),ud=new v2("appBootstrapListener");let gA=(()=>{class e{log(t){console.log(t)}warn(t){console.warn(t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const De=new v2("LocaleId",{providedIn:"root",factory:()=>fS(De,r2.Optional|r2.SkipSelf)||function mA(){return"undefined"!=typeof $localize&&$localize.locale||z8}()});class _A{constructor(n,t){this.ngModuleFactory=n,this.componentFactories=t}}let fd=(()=>{class e{compileModuleSync(t){return new Ka(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const i=this.compileModuleSync(t),a=E4(j3(t).declarations).reduce((o,s)=>{const c=s3(s);return c&&o.push(new qa(c)),o},[]);return new _A(i,a)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const yA=(()=>Promise.resolve(0))();function po(e){"undefined"==typeof Zone?yA.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class $2{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new u2(!1),this.onMicrotaskEmpty=new u2(!1),this.onStable=new u2(!1),this.onError=new u2(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&t,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function bA(){let e=R2.requestAnimationFrame,n=R2.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&n){const t=e[Zone.__symbol__("OriginalDelegate")];t&&(e=t);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function HA(e){const n=()=>{!function VA(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(R2,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,mo(e),e.isCheckStableRunning=!0,go(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),mo(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,i,r,a,o,s)=>{try{return Cd(e),t.invokeTask(r,a,o,s)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===a.type||e.shouldCoalesceRunChangeDetection)&&n(),dd(e)}},onInvoke:(t,i,r,a,o,s,c)=>{try{return Cd(e),t.invoke(r,a,o,s,c)}finally{e.shouldCoalesceRunChangeDetection&&n(),dd(e)}},onHasTask:(t,i,r,a)=>{t.hasTask(r,a),i===r&&("microTask"==a.change?(e._hasPendingMicrotasks=a.microTask,mo(e),go(e)):"macroTask"==a.change&&(e.hasPendingMacrotasks=a.macroTask))},onHandleError:(t,i,r,a)=>(t.handleError(r,a),e.runOutsideAngular(()=>e.onError.emit(a)),!1)})}(r)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!$2.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if($2.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(n,t,i){return this._inner.run(n,t,i)}runTask(n,t,i,r){const a=this._inner,o=a.scheduleEventTask("NgZoneEvent: "+r,n,LA,F8,F8);try{return a.runTask(o,t,i)}finally{a.cancelTask(o)}}runGuarded(n,t,i){return this._inner.runGuarded(n,t,i)}runOutsideAngular(n){return this._outer.run(n)}}const LA={};function go(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 mo(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Cd(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function dd(e){e._nesting--,go(e)}class wA{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new u2,this.onMicrotaskEmpty=new u2,this.onStable=new u2,this.onError=new u2}run(n,t,i){return n.apply(t,i)}runGuarded(n,t,i){return n.apply(t,i)}runOutsideAngular(n){return n()}runTask(n,t,i,r){return n.apply(t,i)}}let vo=(()=>{class e{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{$2.assertNotInAngularZone(),po(()=>{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())po(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(t)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,i,r){let a=-1;i&&i>0&&(a=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==a),t(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:t,timeoutId:a,updateCb:r})}whenStable(t,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,i,r){return[]}}return e.\u0275fac=function(t){return new(t||e)(q($2))},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})(),DA=(()=>{class e{constructor(){this._applications=new Map,_o.addToWindow(this)}registerApplication(t,i){this._applications.set(t,i)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,i=!0){return _o.findTestabilityInTree(this,t,i)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();class SA{addToWindow(n){}findTestabilityInTree(n,t,i){return null}}let _o=new SA,et=null;const hd=new v2("AllowMultipleToken"),pd=new v2("PlatformOnDestroy");class gd{constructor(n,t){this.name=n,this.token=t}}function md(e,n,t=[]){const i=`Platform: ${n}`,r=new v2(i);return(a=[])=>{let o=Mo();if(!o||o.injector.get(hd,!1)){const s=[...t,...a,{provide:r,useValue:!0}];e?e(s):function EA(e){if(et&&!et.get(hd,!1))throw new S2(400,"");et=e;const n=e.get(vd),t=e.get(ld,null);t&&t.forEach(i=>i())}(function AA(e=[],n){return R1.create({name:n,providers:[{provide:va,useValue:"platform"},{provide:pd,useValue:()=>et=null},...e]})}(s,i))}return function TA(e){const n=Mo();if(!n)throw new S2(401,"");return n}()}}function Mo(){var e;return null!==(e=null==et?void 0:et.get(vd))&&void 0!==e?e:null}let vd=(()=>{class e{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,i){const s=function kA(e,n){let t;return t="noop"===e?new wA:("zone.js"===e?void 0:e)||new $2({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==n?void 0:n.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==n?void 0:n.ngZoneRunCoalescing)}),t}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),c=[{provide:$2,useValue:s}];return s.run(()=>{const l=R1.create({providers:c,parent:this.injector,name:t.moduleType.name}),u=t.create(l),f=u.injector.get(g5,null);if(!f)throw new S2(402,"");return s.runOutsideAngular(()=>{const h=s.onError.subscribe({next:p=>{f.handleError(p)}});u.onDestroy(()=>{yo(this._modules,u),h.unsubscribe()})}),function IA(e,n,t){try{const i=t();return V5(i)?i.catch(r=>{throw n.runOutsideAngular(()=>e.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>e.handleError(i)),i}}(f,s,()=>{const h=u.injector.get(fo);return h.runInitializers(),h.donePromise.then(()=>(function gE(e){x3(e,"Expected localeId to be defined"),"string"==typeof e&&(eC=e.toLowerCase().replace(/_/g,"-"))}(u.injector.get(De,z8)||z8),this._moduleDoBootstrap(u),u))})})}bootstrapModule(t,i=[]){const r=_d({},i);return function zA(e,n,t){const i=new Ka(t);return Promise.resolve(i)}(0,0,t).then(a=>this.bootstrapModuleFactory(a,r))}_moduleDoBootstrap(t){const i=t.injector.get(F5);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!t.instance.ngDoBootstrap)throw new S2(403,"");t.instance.ngDoBootstrap(i)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new S2(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const t=this._injector.get(pd,null);null==t||t(),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(t){return new(t||e)(q(R1))},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function _d(e,n){return Array.isArray(n)?n.reduce(_d,e):Object.assign(Object.assign({},e),n)}let F5=(()=>{class e{constructor(t,i,r,a){this._zone=t,this._injector=i,this._exceptionHandler=r,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new A2(c=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{c.next(this._stable),c.complete()})}),s=new A2(c=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{$2.assertNotInAngularZone(),po(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,c.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{$2.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{c.next(!1)}))});return()=>{l.unsubscribe(),u.unsubscribe()}});this.isStable=ec(o,s.pipe(tc()))}bootstrap(t,i){if(!this._initStatus.done)throw new S2(405,"");let r;r=t instanceof HC?t:this._injector.get(g6).resolveComponentFactory(t),this.componentTypes.push(r.componentType);const a=function xA(e){return e.isBoundToModule}(r)?void 0:this._injector.get(X4),s=r.create(R1.NULL,[],i||r.selector,a),c=s.location.nativeElement,l=s.injector.get(vo,null),u=l&&s.injector.get(DA);return l&&u&&u.registerApplication(c,l),s.onDestroy(()=>{this.detachView(s.hostView),yo(this.components,s),u&&u.unregisterApplication(c)}),this._loadComponent(s),s}tick(){if(this._runningTick)throw new S2(101,"");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const i=t;this._views.push(i),i.attachToAppRef(this)}detachView(t){const i=t;yo(this._views,i),i.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(ud,[]).concat(this._bootstrapListeners).forEach(r=>r(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(t){return new(t||e)(q($2),q(R1),q(g5),q(fo))},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function yo(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}let yd=!0,X3=(()=>{class e{}return e.__NG_ELEMENT_ID__=PA,e})();function PA(e){return function FA(e,n,t){if(Kn(e)&&!t){const i=T3(e.index,n);return new A5(i,i)}return 47&e.type?new A5(n[16],n):null}(I1(),k(),16==(16&e))}class wd{constructor(){}supports(n){return b5(n)}create(n){return new WA(n)}}const $A=(e,n)=>n;class WA{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||$A}forEachItem(n){let t;for(t=this._itHead;null!==t;t=t._next)n(t)}forEachOperation(n){let t=this._itHead,i=this._removalsHead,r=0,a=null;for(;t||i;){const o=!i||t&&t.currentIndex<Sd(i,r,a)?t:i,s=Sd(o,r,a),c=o.currentIndex;if(o===i)r--,i=i._nextRemoved;else if(t=t._next,null==o.previousIndex)r++;else{a||(a=[]);const l=s-r,u=c-r;if(l!=u){for(let h=0;h<l;h++){const p=h<a.length?a[h]:a[h]=0,L=p+h;u<=L&&L<l&&(a[h]=p+1)}a[o.previousIndex]=u-l}}s!==c&&n(o,s,c)}}forEachPreviousItem(n){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)n(t)}forEachAddedItem(n){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)n(t)}forEachMovedItem(n){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)n(t)}forEachRemovedItem(n){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)n(t)}forEachIdentityChange(n){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)n(t)}diff(n){if(null==n&&(n=[]),!b5(n))throw new S2(900,"");return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let r,a,o,t=this._itHead,i=!1;if(Array.isArray(n)){this.length=n.length;for(let s=0;s<this.length;s++)a=n[s],o=this._trackByFn(s,a),null!==t&&Object.is(t.trackById,o)?(i&&(t=this._verifyReinsertion(t,a,o,s)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,o,s),i=!0),t=t._next}else r=0,function ix(e,n){if(Array.isArray(e))for(let t=0;t<e.length;t++)n(e[t]);else{const t=e[e6()]();let i;for(;!(i=t.next()).done;)n(i.value)}}(n,s=>{o=this._trackByFn(r,s),null!==t&&Object.is(t.trackById,o)?(i&&(t=this._verifyReinsertion(t,s,o,r)),Object.is(t.item,s)||this._addIdentityChange(t,s)):(t=this._mismatch(t,s,o,r),i=!0),t=t._next,r++}),this.length=r;return this._truncate(t),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,t,i,r){let a;return null===n?a=this._itTail:(a=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._reinsertAfter(n,a,r)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._moveAfter(n,a,r)):n=this._addAfter(new qA(t,i),a,r),n}_verifyReinsertion(n,t,i,r){let a=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==a?n=this._reinsertAfter(a,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;null!==n;){const t=n._next;this._addToRemovals(this._unlink(n)),n=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,t,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const r=n._prevRemoved,a=n._nextRemoved;return null===r?this._removalsHead=a:r._nextRemoved=a,null===a?this._removalsTail=r:a._prevRemoved=r,this._insertAfter(n,t,i),this._addToMoves(n,i),n}_moveAfter(n,t,i){return this._unlink(n),this._insertAfter(n,t,i),this._addToMoves(n,i),n}_addAfter(n,t,i){return this._insertAfter(n,t,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,t,i){const r=null===t?this._itHead:t._next;return n._next=r,n._prev=t,null===r?this._itTail=n:r._prev=n,null===t?this._itHead=n:t._next=n,null===this._linkedRecords&&(this._linkedRecords=new Dd),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const t=n._prev,i=n._next;return null===t?this._itHead=i:t._next=i,null===i?this._itTail=t:i._prev=t,n}_addToMoves(n,t){return n.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Dd),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,t){return n.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class qA{constructor(n,t){this.item=n,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class KA{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,t){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===t||t<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const t=n._prevDup,i=n._nextDup;return null===t?this._head=i:t._nextDup=i,null===i?this._tail=t:i._prevDup=t,null===this._head}}class Dd{constructor(){this.map=new Map}put(n){const t=n.trackById;let i=this.map.get(t);i||(i=new KA,this.map.set(t,i)),i.add(n)}get(n,t){const r=this.map.get(n);return r?r.get(n,t):null}remove(n){const t=n.trackById;return this.map.get(t).remove(n)&&this.map.delete(t),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Sd(e,n,t){const i=e.previousIndex;if(null===i)return i;let r=0;return t&&i<t.length&&(r=t[i]),i+n+r}function zd(){return new j8([new wd])}let j8=(()=>{class e{constructor(t){this.factories=t}static create(t,i){if(null!=i){const r=i.factories.slice();t=t.concat(r)}return new e(t)}static extend(t){return{provide:e,useFactory:i=>e.create(t,i||zd()),deps:[[e,new u5,new be]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(null!=i)return i;throw new S2(901,"")}}return e.\u0275prov=Z({token:e,providedIn:"root",factory:zd}),e})();const XA=md(null,"core",[]);let ek=(()=>{class e{constructor(t){}}return e.\u0275fac=function(t){return new(t||e)(q(F5))},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({}),e})(),G8=null;function R4(){return G8}const E1=new v2("DocumentToken");let nt=(()=>{class e{historyGo(t){throw new Error("Not implemented")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:function(){return function rk(){return q(Ed)}()},providedIn:"platform"}),e})();const ak=new v2("Location Initialized");let Ed=(()=>{class e extends nt{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return R4().getBaseHref(this._doc)}onPopState(t){const i=R4().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",t,!1),()=>i.removeEventListener("popstate",t)}onHashChange(t){const i=R4().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",t,!1),()=>i.removeEventListener("hashchange",t)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,i,r){Td()?this._history.pushState(t,i,r):this.location.hash=r}replaceState(t,i,r){Td()?this._history.replaceState(t,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return e.\u0275fac=function(t){return new(t||e)(q(E1))},e.\u0275prov=Z({token:e,factory:function(){return function ok(){return new Ed(q(E1))}()},providedIn:"platform"}),e})();function Td(){return!!window.history.pushState}function wo(e,n){if(0==e.length)return n;if(0==n.length)return e;let t=0;return e.endsWith("/")&&t++,n.startsWith("/")&&t++,2==t?e+n.substring(1):1==t?e+n:e+"/"+n}function Ad(e){const n=e.match(/#|\?|$/),t=n&&n.index||e.length;return e.slice(0,t-("/"===e[t-1]?1:0))+e.slice(t)}function ee(e){return e&&"?"!==e[0]?"?"+e:e}let it=(()=>{class e{historyGo(t){throw new Error("Not implemented")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:function(){return function sk(e){const n=q(E1).location;return new kd(q(nt),n&&n.origin||"")}()},providedIn:"root"}),e})();const Do=new v2("appBaseHref");let kd=(()=>{class e extends it{constructor(t,i){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=i}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return wo(this._baseHref,t)}path(t=!1){const i=this._platformLocation.pathname+ee(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?`${i}${r}`:i}pushState(t,i,r,a){const o=this.prepareExternalUrl(r+ee(a));this._platformLocation.pushState(t,i,o)}replaceState(t,i,r,a){const o=this.prepareExternalUrl(r+ee(a));this._platformLocation.replaceState(t,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,t)}}return e.\u0275fac=function(t){return new(t||e)(q(nt),q(Do,8))},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})(),Id=(()=>{class e extends it{constructor(t,i){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(t){const i=wo(this._baseHref,t);return i.length>0?"#"+i:i}pushState(t,i,r,a){let o=this.prepareExternalUrl(r+ee(a));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,i,o)}replaceState(t,i,r,a){let o=this.prepareExternalUrl(r+ee(a));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(t,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,t)}}return e.\u0275fac=function(t){return new(t||e)(q(nt),q(Do,8))},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})(),So=(()=>{class e{constructor(t,i){this._subject=new u2,this._urlChangeListeners=[],this._platformStrategy=t;const r=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=Ad(Od(r)),this._platformStrategy.onPopState(a=>{this._subject.emit({url:this.path(!0),pop:!0,state:a.state,type:a.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,i=""){return this.path()==this.normalize(t+ee(i))}normalize(t){return e.stripTrailingSlash(function lk(e,n){return e&&n.startsWith(e)?n.substring(e.length):n}(this._baseHref,Od(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,i="",r=null){this._platformStrategy.pushState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ee(i)),r)}replaceState(t,i="",r=null){this._platformStrategy.replaceState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ee(i)),r)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var i,r;null===(r=(i=this._platformStrategy).historyGo)||void 0===r||r.call(i,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(t="",i){this._urlChangeListeners.forEach(r=>r(t,i))}subscribe(t,i,r){return this._subject.subscribe({next:t,error:i,complete:r})}}return e.normalizeQueryParams=ee,e.joinWithSlash=wo,e.stripTrailingSlash=Ad,e.\u0275fac=function(t){return new(t||e)(q(it),q(nt))},e.\u0275prov=Z({token:e,factory:function(){return function ck(){return new So(q(it),q(nt))}()},providedIn:"root"}),e})();function Od(e){return e.replace(/\/index.html$/,"")}class Yk{constructor(n,t,i,r){this.$implicit=n,this.ngForOf=t,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let rt=(()=>{class e{constructor(t,i,r){this._viewContainer=t,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const i=this._viewContainer;t.forEachOperation((r,a,o)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new Yk(r.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)i.remove(null===a?void 0:a);else if(null!==a){const s=i.get(a);i.move(s,o),Wd(s,r)}});for(let r=0,a=i.length;r<a;r++){const s=i.get(r).context;s.index=r,s.count=a,s.ngForOf=this._ngForOf}t.forEachIdentityChange(r=>{Wd(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(t,i){return!0}}return e.\u0275fac=function(t){return new(t||e)(V(Z3),V(c1),V(j8))},e.\u0275dir=U({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e})();function Wd(e,n){e.context.$implicit=n.item}let B1=(()=>{class e{constructor(t,i){this._viewContainer=t,this._context=new Qk,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){qd("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){qd("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,i){return!0}}return e.\u0275fac=function(t){return new(t||e)(V(Z3),V(c1))},e.\u0275dir=U({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e})();class Qk{constructor(){this.$implicit=null,this.ngIf=null}}function qd(e,n){if(n&&!n.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${k2(n)}'.`)}let M6=(()=>{class e{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(t.ngTemplateOutlet){const i=this._viewContainerRef;this._viewRef&&i.remove(i.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?i.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return e.\u0275fac=function(t){return new(t||e)(V(Z3))},e.\u0275dir=U({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[z1]}),e})(),R3=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({}),e})();let wI=(()=>{class e{}return e.\u0275prov=Z({token:e,providedIn:"root",factory:()=>new DI(q(E1),window)}),e})();class DI{constructor(n,t){this.document=n,this.window=t,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const t=function SI(e,n){const t=e.getElementById(n)||e.getElementsByName(n)[0];if(t)return t;if("function"==typeof e.createTreeWalker&&e.body&&(e.body.createShadowRoot||e.body.attachShadow)){const i=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const a=r.shadowRoot;if(a){const o=a.getElementById(n)||a.querySelector(`[name="${n}"]`);if(o)return o}r=i.nextNode()}}return null}(this.document,n);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=n)}}scrollToElement(n){const t=n.getBoundingClientRect(),i=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,a=this.offset();this.window.scrollTo(i-a[0],r-a[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=Zd(this.window.history)||Zd(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch(n){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(n){return!1}}}function Zd(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class Uo extends class zI extends class ik{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function nk(e){G8||(G8=e)}(new Uo)}onAndCancel(n,t,i){return n.addEventListener(t,i,!1),()=>{n.removeEventListener(t,i,!1)}}dispatchEvent(n,t){n.dispatchEvent(t)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,t){return(t=t||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,t){return"window"===t?window:"document"===t?n:"body"===t?n.body:null}getBaseHref(n){const t=function xI(){return G5=G5||document.querySelector("base"),G5?G5.getAttribute("href"):null}();return null==t?null:function EI(e){e0=e0||document.createElement("a"),e0.setAttribute("href",e);const n=e0.pathname;return"/"===n.charAt(0)?n:`/${n}`}(t)}resetBaseElement(){G5=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return function Wk(e,n){n=encodeURIComponent(n);for(const t of e.split(";")){const i=t.indexOf("="),[r,a]=-1==i?[t,""]:[t.slice(0,i),t.slice(i+1)];if(r.trim()===n)return decodeURIComponent(a)}return null}(document.cookie,n)}}let e0,G5=null;const Jd=new v2("TRANSITION_ID"),AI=[{provide:uo,useFactory:function TI(e,n,t){return()=>{t.get(fo).donePromise.then(()=>{const i=R4(),r=n.querySelectorAll(`style[ng-transition="${e}"]`);for(let a=0;a<r.length;a++)i.remove(r[a])})}},deps:[Jd,E1,R1],multi:!0}];class jo{static init(){!function NA(e){_o=e}(new jo)}addToWindow(n){R2.getAngularTestability=(i,r=!0)=>{const a=n.findTestabilityInTree(i,r);if(null==a)throw new Error("Could not find testability for element.");return a},R2.getAllAngularTestabilities=()=>n.getAllTestabilities(),R2.getAllAngularRootElements=()=>n.getAllRootElements(),R2.frameworkStabilizers||(R2.frameworkStabilizers=[]),R2.frameworkStabilizers.push(i=>{const r=R2.getAllAngularTestabilities();let a=r.length,o=!1;const s=function(c){o=o||c,a--,0==a&&i(o)};r.forEach(function(c){c.whenStable(s)})})}findTestabilityInTree(n,t,i){if(null==t)return null;const r=n.getTestability(t);return null!=r?r:i?R4().isShadowRoot(t)?this.findTestabilityInTree(n,t.host,!0):this.findTestabilityInTree(n,t.parentElement,!0):null}}let kI=(()=>{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})();const t0=new v2("EventManagerPlugins");let n0=(()=>{class e{constructor(t,i){this._zone=i,this._eventNameToPlugin=new Map,t.forEach(r=>r.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,i,r){return this._findPluginFor(i).addEventListener(t,i,r)}addGlobalEventListener(t,i,r){return this._findPluginFor(i).addGlobalEventListener(t,i,r)}getZone(){return this._zone}_findPluginFor(t){const i=this._eventNameToPlugin.get(t);if(i)return i;const r=this._plugins;for(let a=0;a<r.length;a++){const o=r[a];if(o.supports(t))return this._eventNameToPlugin.set(t,o),o}throw new Error(`No event manager plugin found for event ${t}`)}}return e.\u0275fac=function(t){return new(t||e)(q(t0),q($2))},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})();class Xd{constructor(n){this._doc=n}addGlobalEventListener(n,t,i){const r=R4().getGlobalEventTarget(this._doc,n);if(!r)throw new Error(`Unsupported event target ${r} for event ${t}`);return this.addEventListener(r,t,i)}}let eh=(()=>{class e{constructor(){this._stylesSet=new Set}addStyles(t){const i=new Set;t.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})(),$5=(()=>{class e extends eh{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,i,r){t.forEach(a=>{const o=this._doc.createElement("style");o.textContent=a,r.push(i.appendChild(o))})}addHost(t){const i=[];this._addStylesToHost(this._stylesSet,t,i),this._hostNodes.set(t,i)}removeHost(t){const i=this._hostNodes.get(t);i&&i.forEach(th),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(t,r,i)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(th))}}return e.\u0275fac=function(t){return new(t||e)(q(E1))},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})();function th(e){R4().remove(e)}const Go={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/"},$o=/%COMP%/g;function r0(e,n,t){for(let i=0;i<n.length;i++){let r=n[i];Array.isArray(r)?r0(e,r,t):(r=r.replace($o,e),t.push(r))}return t}function rh(e){return n=>{if("__ngUnwrap__"===n)return e;!1===e(n)&&(n.preventDefault(),n.returnValue=!1)}}let Wo=(()=>{class e{constructor(t,i,r){this.eventManager=t,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new qo(t)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;switch(i.encapsulation){case w4.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new BI(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(t),r}case 1:case w4.ShadowDom:return new UI(this.eventManager,this.sharedStylesHost,t,i);default:if(!this.rendererByCompId.has(i.id)){const r=r0(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(t){return new(t||e)(q(n0),q($5),q(P5))},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})();class qo{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,t){return t?document.createElementNS(Go[t]||t,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,t){n.appendChild(t)}insertBefore(n,t,i){n&&n.insertBefore(t,i)}removeChild(n,t){n&&n.removeChild(t)}selectRootElement(n,t){let i="string"==typeof n?document.querySelector(n):n;if(!i)throw new Error(`The selector "${n}" did not match any elements`);return t||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,t,i,r){if(r){t=r+":"+t;const a=Go[r];a?n.setAttributeNS(a,t,i):n.setAttribute(t,i)}else n.setAttribute(t,i)}removeAttribute(n,t,i){if(i){const r=Go[i];r?n.removeAttributeNS(r,t):n.removeAttribute(`${i}:${t}`)}else n.removeAttribute(t)}addClass(n,t){n.classList.add(t)}removeClass(n,t){n.classList.remove(t)}setStyle(n,t,i,r){r&(I3.DashCase|I3.Important)?n.style.setProperty(t,i,r&I3.Important?"important":""):n.style[t]=i}removeStyle(n,t,i){i&I3.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,i){n[t]=i}setValue(n,t){n.nodeValue=t}listen(n,t,i){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,t,rh(i)):this.eventManager.addEventListener(n,t,rh(i))}}class BI extends qo{constructor(n,t,i,r){super(n),this.component=i;const a=r0(r+"-"+i.id,i.styles,[]);t.addStyles(a),this.contentAttr=function RI(e){return"_ngcontent-%COMP%".replace($o,e)}(r+"-"+i.id),this.hostAttr=function PI(e){return"_nghost-%COMP%".replace($o,e)}(r+"-"+i.id)}applyToHost(n){super.setAttribute(n,this.hostAttr,"")}createElement(n,t){const i=super.createElement(n,t);return super.setAttribute(i,this.contentAttr,""),i}}class UI extends qo{constructor(n,t,i,r){super(n),this.sharedStylesHost=t,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const a=r0(r.id,r.styles,[]);for(let o=0;o<a.length;o++){const s=document.createElement("style");s.textContent=a[o],this.shadowRoot.appendChild(s)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(n,t){return super.appendChild(this.nodeOrShadowRoot(n),t)}insertBefore(n,t,i){return super.insertBefore(this.nodeOrShadowRoot(n),t,i)}removeChild(n,t){return super.removeChild(this.nodeOrShadowRoot(n),t)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}}let jI=(()=>{class e extends Xd{constructor(t){super(t)}supports(t){return!0}addEventListener(t,i,r){return t.addEventListener(i,r,!1),()=>this.removeEventListener(t,i,r)}removeEventListener(t,i,r){return t.removeEventListener(i,r)}}return e.\u0275fac=function(t){return new(t||e)(q(E1))},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})();const oh=["alt","control","meta","shift"],$I={"\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"},sh={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},WI={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let qI=(()=>{class e extends Xd{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,i,r){const a=e.parseEventName(i),o=e.eventCallback(a.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>R4().onAndCancel(t,a.domEventName,o))}static parseEventName(t){const i=t.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const a=e._normalizeKey(i.pop());let o="";if(oh.forEach(c=>{const l=i.indexOf(c);l>-1&&(i.splice(l,1),o+=c+".")}),o+=a,0!=i.length||0===a.length)return null;const s={};return s.domEventName=r,s.fullKey=o,s}static getEventFullKey(t){let i="",r=function KI(e){let n=e.key;if(null==n){if(n=e.keyIdentifier,null==n)return"Unidentified";n.startsWith("U+")&&(n=String.fromCharCode(parseInt(n.substring(2),16)),3===e.location&&sh.hasOwnProperty(n)&&(n=sh[n]))}return $I[n]||n}(t);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),oh.forEach(a=>{a!=r&&WI[a](t)&&(i+=a+".")}),i+=r,i}static eventCallback(t,i,r){return a=>{e.getEventFullKey(a)===t&&r.runGuarded(()=>i(a))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return e.\u0275fac=function(t){return new(t||e)(q(E1))},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})();const JI=md(XA,"browser",[{provide:ho,useValue:"browser"},{provide:ld,useValue:function YI(){Uo.makeCurrent(),jo.init()},multi:!0},{provide:E1,useFactory:function ZI(){return function mD(e){rr=e}(document),document},deps:[]}]),XI=[{provide:va,useValue:"root"},{provide:g5,useFactory:function QI(){return new g5},deps:[]},{provide:t0,useClass:jI,multi:!0,deps:[E1,$2,ho]},{provide:t0,useClass:qI,multi:!0,deps:[E1]},{provide:Wo,useClass:Wo,deps:[n0,$5,P5]},{provide:$a,useExisting:Wo},{provide:eh,useExisting:$5},{provide:$5,useClass:$5,deps:[E1]},{provide:vo,useClass:vo,deps:[$2]},{provide:n0,useClass:n0,deps:[t0,$2]},{provide:class NI{},useClass:kI,deps:[]}];let eO=(()=>{class e{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:e,providers:[{provide:P5,useValue:t.appId},{provide:Jd,useExisting:P5},AI]}}}return e.\u0275fac=function(t){return new(t||e)(q(e,12))},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({providers:XI,imports:[R3,ek]}),e})();"undefined"!=typeof window&&window;let uh=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:function(t){let i=null;return i=t?new(t||e):q(fh),i},providedIn:"root"}),e})(),fh=(()=>{class e extends uh{constructor(t){super(),this._doc=t}sanitize(t,i){if(null==i)return null;switch(t){case Q2.NONE:return i;case Q2.HTML:return z4(i,"HTML")?k3(i):Cl(this._doc,String(i)).toString();case Q2.STYLE:return z4(i,"Style")?k3(i):i;case Q2.SCRIPT:if(z4(i,"Script"))return k3(i);throw new Error("unsafe value used in a script context");case Q2.URL:return rl(i),z4(i,"URL")?k3(i):C5(String(i));case Q2.RESOURCE_URL:if(z4(i,"ResourceURL"))return k3(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return function zS(e){return new HS(e)}(t)}bypassSecurityTrustStyle(t){return function xS(e){return new wS(e)}(t)}bypassSecurityTrustScript(t){return function ES(e){return new DS(e)}(t)}bypassSecurityTrustUrl(t){return function TS(e){return new SS(e)}(t)}bypassSecurityTrustResourceUrl(t){return function AS(e){return new NS(e)}(t)}}return e.\u0275fac=function(t){return new(t||e)(q(E1))},e.\u0275prov=Z({token:e,factory:function(t){let i=null;return i=t?new t:function uO(e){return new fh(e.get(E1))}(q(R1)),i},providedIn:"root"}),e})();const{isArray:fO}=Array,{getPrototypeOf:CO,prototype:dO,keys:hO}=Object;function Ch(e){if(1===e.length){const n=e[0];if(fO(n))return{args:n,keys:null};if(function pO(e){return e&&"object"==typeof e&&CO(e)===dO}(n)){const t=hO(n);return{args:t.map(i=>n[i]),keys:t}}}return{args:e,keys:null}}const{isArray:gO}=Array;function Yo(e){return m2(n=>function mO(e,n){return gO(n)?e(...n):e(n)}(e,n))}function dh(e,n){return e.reduce((t,i,r)=>(t[i]=n[r],t),{})}let hh=(()=>{class e{constructor(t,i){this._renderer=t,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(t,i){this._renderer.setProperty(this._elementRef.nativeElement,t,i)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return e.\u0275fac=function(t){return new(t||e)(V(y3),V(I2))},e.\u0275dir=U({type:e}),e})(),at=(()=>{class e extends hh{}return e.\u0275fac=function(){let n;return function(i){return(n||(n=l3(e)))(i||e)}}(),e.\u0275dir=U({type:e,features:[J]}),e})();const n4=new v2("NgValueAccessor"),_O={provide:n4,useExisting:z2(()=>C3),multi:!0};let C3=(()=>{class e extends at{writeValue(t){this.setProperty("checked",t)}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=l3(e)))(i||e)}}(),e.\u0275dir=U({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,i){1&t&&T("change",function(a){return i.onChange(a.target.checked)})("blur",function(){return i.onTouched()})},features:[G2([_O]),J]}),e})();const MO={provide:n4,useExisting:z2(()=>Ne),multi:!0},bO=new v2("CompositionEventMode");let Ne=(()=>{class e extends hh{constructor(t,i,r){super(t,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function yO(){const e=R4()?R4().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(t){this.setProperty("value",null==t?"":t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return e.\u0275fac=function(t){return new(t||e)(V(y3),V(I2),V(bO,8))},e.\u0275dir=U({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,i){1&t&&T("input",function(a){return i._handleInput(a.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(a){return i._compositionEnd(a.target.value)})},features:[G2([MO]),J]}),e})();const d3=new v2("NgValidators"),xe=new v2("NgAsyncValidators"),LO=/^(?=.{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 Mh(e){return function ze(e){return null==e||0===e.length}(e.value)||LO.test(e.value)?null:{email:!0}}function a0(e){return null}function Vh(e){return null!=e}function Hh(e){const n=V5(e)?G1(e):e;return Ta(n),n}function wh(e){let n={};return e.forEach(t=>{n=null!=t?Object.assign(Object.assign({},n),t):n}),0===Object.keys(n).length?null:n}function Dh(e,n){return n.map(t=>t(e))}function Sh(e){return e.map(n=>function VO(e){return!e.validate}(n)?n:t=>n.validate(t))}function Qo(e){return null!=e?function Nh(e){if(!e)return null;const n=e.filter(Vh);return 0==n.length?null:function(t){return wh(Dh(t,n))}}(Sh(e)):null}function Zo(e){return null!=e?function zh(e){if(!e)return null;const n=e.filter(Vh);return 0==n.length?null:function(t){return function vO(...e){const n=Bn(e),{args:t,keys:i}=Ch(e),r=new A2(a=>{const{length:o}=t;if(!o)return void a.complete();const s=new Array(o);let c=o,l=o;for(let u=0;u<o;u++){let f=!1;o3(t[u]).subscribe(O2(a,h=>{f||(f=!0,l--),s[u]=h},()=>c--,void 0,()=>{(!c||!f)&&(l||a.next(i?dh(i,s):s),a.complete())}))}});return n?r.pipe(Yo(n)):r}(Dh(t,n).map(Hh)).pipe(m2(wh))}}(Sh(e)):null}function xh(e,n){return null===e?[n]:Array.isArray(e)?[...e,n]:[e,n]}function Jo(e){return e?Array.isArray(e)?e:[e]:[]}function o0(e,n){return Array.isArray(e)?e.includes(n):e===n}function Ah(e,n){const t=Jo(n);return Jo(e).forEach(r=>{o0(t,r)||t.push(r)}),t}function kh(e,n){return Jo(n).filter(t=>!o0(e,t))}class Ih{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=Qo(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Zo(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,t){return!!this.control&&this.control.hasError(n,t)}getError(n,t){return this.control?this.control.getError(n,t):null}}class Ee extends Ih{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class L3 extends Ih{get formDirective(){return null}get path(){return null}}let M1=(()=>{class e extends class Oh{constructor(n){this._cd=n}is(n){var t,i,r;return"submitted"===n?!!(null===(t=this._cd)||void 0===t?void 0:t.submitted):!!(null===(r=null===(i=this._cd)||void 0===i?void 0:i.control)||void 0===r?void 0:r[n])}}{constructor(t){super(t)}}return e.\u0275fac=function(t){return new(t||e)(V(Ee,2))},e.\u0275dir=U({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,i){2&t&&n1("ng-untouched",i.is("untouched"))("ng-touched",i.is("touched"))("ng-pristine",i.is("pristine"))("ng-dirty",i.is("dirty"))("ng-valid",i.is("valid"))("ng-invalid",i.is("invalid"))("ng-pending",i.is("pending"))},features:[J]}),e})();function W5(e,n){(function t7(e,n){const t=function Eh(e){return e._rawValidators}(e);null!==n.validator?e.setValidators(xh(t,n.validator)):"function"==typeof t&&e.setValidators([t]);const i=function Th(e){return e._rawAsyncValidators}(e);null!==n.asyncValidator?e.setAsyncValidators(xh(i,n.asyncValidator)):"function"==typeof i&&e.setAsyncValidators([i]);const r=()=>e.updateValueAndValidity();u0(n._rawValidators,r),u0(n._rawAsyncValidators,r)})(e,n),n.valueAccessor.writeValue(e.value),function TO(e,n){n.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&Ph(e,n)})}(e,n),function kO(e,n){const t=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};e.registerOnChange(t),n._registerOnDestroy(()=>{e._unregisterOnChange(t)})}(e,n),function AO(e,n){n.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&Ph(e,n),"submit"!==e.updateOn&&e.markAsTouched()})}(e,n),function EO(e,n){if(n.valueAccessor.setDisabledState){const t=i=>{n.valueAccessor.setDisabledState(i)};e.registerOnDisabledChange(t),n._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}(e,n)}function u0(e,n){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function Ph(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function r7(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}const q5="VALID",C0="INVALID",y6="PENDING",K5="DISABLED";function o7(e){return(d0(e)?e.validators:e)||null}function jh(e){return Array.isArray(e)?Qo(e):e||null}function s7(e,n){return(d0(n)?n.asyncValidators:e)||null}function Gh(e){return Array.isArray(e)?Zo(e):e||null}function d0(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}const c7=e=>e instanceof u7;function Wh(e){return(e=>e instanceof Yh)(e)?e.value:e.getRawValue()}function qh(e,n){const t=c7(e),i=e.controls;if(!(t?Object.keys(i):i).length)throw new S2(1e3,"");if(!i[n])throw new S2(1001,"")}function Kh(e,n){c7(e),e._forEachChild((i,r)=>{if(void 0===n[r])throw new S2(1002,"")})}class l7{constructor(n,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=n,this._rawAsyncValidators=t,this._composedValidatorFn=jh(this._rawValidators),this._composedAsyncValidatorFn=Gh(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===q5}get invalid(){return this.status===C0}get pending(){return this.status==y6}get disabled(){return this.status===K5}get enabled(){return this.status!==K5}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._rawValidators=n,this._composedValidatorFn=jh(n)}setAsyncValidators(n){this._rawAsyncValidators=n,this._composedAsyncValidatorFn=Gh(n)}addValidators(n){this.setValidators(Ah(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(Ah(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(kh(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(kh(n,this._rawAsyncValidators))}hasValidator(n){return o0(this._rawValidators,n)}hasAsyncValidator(n){return o0(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=y6,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=K5,this.errors=null,this._forEachChild(i=>{i.disable(Object.assign(Object.assign({},n),{onlySelf:!0}))}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},n),{skipPristineCheck:t})),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=q5,this._forEachChild(i=>{i.enable(Object.assign(Object.assign({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},n),{skipPristineCheck:t})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===q5||this.status===y6)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?K5:q5}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=y6,this._hasOwnPendingAsyncValidator=!0;const t=Hh(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,t={}){this.errors=n,this._updateControlsErrors(!1!==t.emitEvent)}get(n){return function PO(e,n,t){if(null==n||(Array.isArray(n)||(n=n.split(t)),Array.isArray(n)&&0===n.length))return null;let i=e;return n.forEach(r=>{i=c7(i)?i.controls.hasOwnProperty(r)?i.controls[r]:null:(e=>e instanceof BO)(i)&&i.at(r)||null}),i}(this,n,".")}getError(n,t){const i=t?this.get(t):this;return i&&i.errors?i.errors[n]:null}hasError(n,t){return!!this.getError(n,t)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new u2,this.statusChanges=new u2}_calculateStatus(){return this._allControlsDisabled()?K5:this.errors?C0:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(y6)?y6:this._anyControlsHaveStatus(C0)?C0:q5}_anyControlsHaveStatus(n){return this._anyControls(t=>t.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_isBoxedValue(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){d0(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Yh extends l7{constructor(n=null,t,i){super(o7(t),s7(i,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),d0(t)&&t.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(n)?n.value:n)}setValue(n,t={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(n,t={}){this.setValue(n,t)}reset(n=this.defaultValue,t={}){this._applyFormState(n),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){r7(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){r7(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){this._isBoxedValue(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}}class u7 extends l7{constructor(n,t,i){super(o7(t),s7(i,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,t){return this.controls[n]?this.controls[n]:(this.controls[n]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(n,t,i={}){this.registerControl(n,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,t={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(n,t,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],t&&this.registerControl(n,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,t={}){Kh(this,n),Object.keys(n).forEach(i=>{qh(this,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(Object.keys(n).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(n[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n={},t={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(n,t,i)=>(n[i]=Wh(t),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(t,i)=>!!i._syncPendingControls()||t);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(t=>{const i=this.controls[t];i&&n(i,t)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const t of Object.keys(this.controls)){const i=this.controls[t];if(this.contains(t)&&n(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(n,t,i)=>((t.enabled||this.disabled)&&(n[i]=t.value),n))}_reduceChildren(n,t){let i=n;return this._forEachChild((r,a)=>{i=t(i,r,a)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class BO extends l7{constructor(n,t,i){super(o7(t),s7(i,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[n]}push(n,t={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(n,t,i={}){this.controls.splice(n,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,t={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(n,t,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),t&&(this.controls.splice(n,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,t={}){Kh(this,n),n.forEach((i,r)=>{qh(this,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(n.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n=[],t={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(n=>Wh(n))}clear(n={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_syncPendingControls(){let n=this.controls.reduce((t,i)=>!!i._syncPendingControls()||t,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((t,i)=>{n(t,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(t=>t.enabled&&n(t))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}}const GO={provide:Ee,useExisting:z2(()=>h1)},Jh=(()=>Promise.resolve(null))();let h1=(()=>{class e extends Ee{constructor(t,i,r,a,o){super(),this._changeDetectorRef=o,this.control=new Yh,this._registered=!1,this.update=new u2,this._parent=t,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=function i7(e,n){if(!n)return null;let t,i,r;return Array.isArray(n),n.forEach(a=>{a.constructor===Ne?t=a:function RO(e){return Object.getPrototypeOf(e.constructor)===at}(a)?i=a:r=a}),r||i||t||null}(0,a)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){const i=t.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),function n7(e,n){if(!e.hasOwnProperty("model"))return!1;const t=e.model;return!!t.isFirstChange()||!Object.is(n,t.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){W5(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){Jh.then(()=>{var i;this.control.setValue(t,{emitViewToModelChange:!1}),null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()})}_updateDisabled(t){const i=t.isDisabled.currentValue,r=""===i||i&&"false"!==i;Jh.then(()=>{var a;r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),null===(a=this._changeDetectorRef)||void 0===a||a.markForCheck()})}_getPath(t){return this._parent?function c0(e,n){return[...n.path,e]}(t,this._parent):[t]}}return e.\u0275fac=function(t){return new(t||e)(V(L3,9),V(d3,10),V(xe,10),V(n4,10),V(X3,8))},e.\u0275dir=U({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[G2([GO]),J,z1]}),e})();const WO={provide:n4,useExisting:z2(()=>b6),multi:!0};let b6=(()=>{class e extends at{writeValue(t){this.setProperty("value",null==t?"":t)}registerOnChange(t){this.onChange=i=>{t(""==i?null:parseFloat(i))}}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=l3(e)))(i||e)}}(),e.\u0275dir=U({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,i){1&t&&T("input",function(a){return i.onChange(a.target.value)})("blur",function(){return i.onTouched()})},features:[G2([WO]),J]}),e})(),Xh=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({}),e})();const tR={provide:n4,useExisting:z2(()=>ne),multi:!0};function op(e,n){return null==e?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${e}: ${n}`.slice(0,50))}let ne=(()=>{class e extends at{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const r=op(this._getOptionId(t),t);this.setProperty("value",r)}registerOnChange(t){this.onChange=i=>{this.value=this._getOptionValue(i),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const i of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(i),t))return i;return null}_getOptionValue(t){const i=function nR(e){return e.split(":")[0]}(t);return this._optionMap.has(i)?this._optionMap.get(i):t}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=l3(e)))(i||e)}}(),e.\u0275dir=U({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,i){1&t&&T("change",function(a){return i.onChange(a.target.value)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[G2([tR]),J]}),e})(),ot=(()=>{class e{constructor(t,i,r){this._element=t,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(op(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return e.\u0275fac=function(t){return new(t||e)(V(I2),V(y3),V(ne,9))},e.\u0275dir=U({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})();const iR={provide:n4,useExisting:z2(()=>p7),multi:!0};function sp(e,n){return null==e?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${e}: ${n}`.slice(0,50))}let p7=(()=>{class e extends at{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let i;if(this.value=t,Array.isArray(t)){const r=t.map(a=>this._getOptionId(a));i=(a,o)=>{a._setSelected(r.indexOf(o.toString())>-1)}}else i=(r,a)=>{r._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(t){this.onChange=i=>{const r=[],a=i.selectedOptions;if(void 0!==a){const o=a;for(let s=0;s<o.length;s++){const l=this._getOptionValue(o[s].value);r.push(l)}}else{const o=i.options;for(let s=0;s<o.length;s++){const c=o[s];if(c.selected){const l=this._getOptionValue(c.value);r.push(l)}}}this.value=r,t(r)}}_registerOption(t){const i=(this._idCounter++).toString();return this._optionMap.set(i,t),i}_getOptionId(t){for(const i of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(i)._value,t))return i;return null}_getOptionValue(t){const i=function rR(e){return e.split(":")[0]}(t);return this._optionMap.has(i)?this._optionMap.get(i)._value:t}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=l3(e)))(i||e)}}(),e.\u0275dir=U({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(t,i){1&t&&T("change",function(a){return i.onChange(a.target)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[G2([iR]),J]}),e})(),st=(()=>{class e{constructor(t,i,r){this._element=t,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(sp(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(sp(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return e.\u0275fac=function(t){return new(t||e)(V(I2),V(y3),V(p7,9))},e.\u0275dir=U({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})(),ct=(()=>{class e{constructor(){this._validator=a0}ngOnChanges(t){if(this.inputName in t){const i=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):a0,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return null!=t}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=U({type:e,features:[z1]}),e})();const uR={provide:d3,useExisting:z2(()=>m7),multi:!0};let m7=(()=>{class e extends ct{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=t=>""===t||!0===t||"true"===t,this.createValidator=t=>Mh}enabled(t){return t}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=l3(e)))(i||e)}}(),e.\u0275dir=U({type:e,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[G2([uR]),J]}),e})(),hR=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({imports:[[Xh]]}),e})(),gp=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({imports:[hR]}),e})();function a2(...e){return G1(e,K6(e))}const pR=["addListener","removeListener"],gR=["addEventListener","removeEventListener"],mR=["on","off"];function h3(e,n,t,i){if(K(t)&&(i=t,t=void 0),i)return h3(e,n,t).pipe(Yo(i));const[r,a]=function MR(e){return K(e.addEventListener)&&K(e.removeEventListener)}(e)?gR.map(o=>s=>e[o](n,s,t)):function vR(e){return K(e.addListener)&&K(e.removeListener)}(e)?pR.map(mp(e,n)):function _R(e){return K(e.on)&&K(e.off)}(e)?mR.map(mp(e,n)):[];if(!r&&Fi(e))return b1(o=>h3(o,n,t))(o3(e));if(!r)throw new TypeError("Invalid event target");return new A2(o=>{const s=(...c)=>o.next(1<c.length?c:c[0]);return r(s),()=>a(s)})}function mp(e,n){return t=>i=>e[t](n,i)}class yR extends H2{constructor(n,t){super()}schedule(n,t=0){return this}}const h0={setInterval(e,n,...t){const{delegate:i}=h0;return(null==i?void 0:i.setInterval)?i.setInterval(e,n,...t):setInterval(e,n,...t)},clearInterval(e){const{delegate:n}=h0;return((null==n?void 0:n.clearInterval)||clearInterval)(e)},delegate:void 0},vp={now:()=>(vp.delegate||Date).now(),delegate:void 0};class Q5{constructor(n,t=Q5.now){this.schedulerActionCtor=n,this.now=t}schedule(n,t=0,i){return new this.schedulerActionCtor(this,n).schedule(i,t)}}Q5.now=vp.now;const _p=new class LR extends Q5{constructor(n,t=Q5.now){super(n,t),this.actions=[],this._active=!1,this._scheduled=void 0}flush(n){const{actions:t}=this;if(this._active)return void t.push(n);let i;this._active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=t.shift());if(this._active=!1,i){for(;n=t.shift();)n.unsubscribe();throw i}}}(class bR extends yR{constructor(n,t){super(n,t),this.scheduler=n,this.work=t,this.pending=!1}schedule(n,t=0){if(this.closed)return this;this.state=n;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}requestAsyncId(n,t,i=0){return h0.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,t,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return t;h0.clearInterval(t)}execute(n,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,t);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,t){let r,i=!1;try{this.work(n)}catch(a){i=!0,r=a||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:n,scheduler:t}=this,{actions:i}=t;this.work=this.state=this.scheduler=null,this.pending=!1,W2(i,this),null!=n&&(this.id=this.recycleAsyncId(t,n,null)),this.delay=null,super.unsubscribe()}}}),VR=_p;function v7(e=0,n,t=VR){let i=-1;return null!=n&&(Q9(n)?t=n:i=n),new A2(r=>{let a=function HR(e){return e instanceof Date&&!isNaN(e)}(e)?+e-t.now():e;a<0&&(a=0);let o=0;return t.schedule(function(){r.closed||(r.next(o++),0<=i?this.schedule(void 0,i):r.complete())},a)})}const{isArray:wR}=Array;function Mp(e){return 1===e.length&&wR(e[0])?e[0]:e}function yp(...e){return 1===(e=Mp(e)).length?o3(e[0]):new A2(function DR(e){return n=>{let t=[];for(let i=0;t&&!n.closed&&i<e.length;i++)t.push(o3(e[i]).subscribe(O2(n,r=>{if(t){for(let a=0;a<t.length;a++)a!==i&&t[a].unsubscribe();t=null}n.next(r)})))}}(e))}class W1 extends C2{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const t=super._subscribe(n);return!t.closed&&n.next(this._value),t}getValue(){const{hasError:n,thrownError:t,_value:i}=this;if(n)throw t;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}function bp(e,n,t){e?$4(t,e,n):n()}function p0(...e){const n=Bn(e),t=Mp(e);return t.length?new A2(i=>{let r=t.map(()=>[]),a=t.map(()=>!1);i.add(()=>{r=a=null});for(let o=0;!i.closed&&o<t.length;o++)o3(t[o]).subscribe(O2(i,s=>{if(r[o].push(s),r.every(c=>c.length)){const c=r.map(l=>l.shift());i.next(n?n(...c):c),r.some((l,u)=>!l.length&&a[u])&&i.complete()}},()=>{a[o]=!0,!r[o].length&&i.complete()}));return()=>{r=a=null}}):c4}function Z5(...e){return function NR(){return q6(1)}()(G1(e,K6(e)))}function U1(e){return a1((n,t)=>{o3(e).subscribe(O2(t,()=>t.complete(),k1)),!t.closed&&n.subscribe(t)})}function Z1(e,n){return a1((t,i)=>{let r=0;t.subscribe(O2(i,a=>e.call(n,a,r++)&&i.next(a)))})}function ie(e,n){return a1((t,i)=>{let r=null,a=0,o=!1;const s=()=>o&&!r&&i.complete();t.subscribe(O2(i,c=>{null==r||r.unsubscribe();let l=0;const u=a++;o3(e(c,u)).subscribe(r=O2(i,f=>i.next(n?n(c,f,u,l++):f),()=>{r=null,s()}))},()=>{o=!0,s()}))})}function p3(e,n,t){const i=K(e)||n||t?{next:e,error:n,complete:t}:e;return i?a1((r,a)=>{var o;null===(o=i.subscribe)||void 0===o||o.call(i);let s=!0;r.subscribe(O2(a,c=>{var l;null===(l=i.next)||void 0===l||l.call(i,c),a.next(c)},()=>{var c;s=!1,null===(c=i.complete)||void 0===c||c.call(i),a.complete()},c=>{var l;s=!1,null===(l=i.error)||void 0===l||l.call(i,c),a.error(c)},()=>{var c,l;s&&(null===(c=i.unsubscribe)||void 0===c||c.call(i)),null===(l=i.finalize)||void 0===l||l.call(i)}))}):o4}function y7(...e){const n=Bn(e);return a1((t,i)=>{const r=e.length,a=new Array(r);let o=e.map(()=>!1),s=!1;for(let c=0;c<r;c++)o3(e[c]).subscribe(O2(i,l=>{a[c]=l,!s&&!o[c]&&(o[c]=!0,(s=o.every(o4))&&(o=null))},k1));t.subscribe(O2(i,c=>{if(s){const l=[c,...a];i.next(n?n(...l):l)}}))})}function Vp(e,n){return n?t=>Z5(n.pipe(Y1(1),function ER(){return a1((e,n)=>{e.subscribe(O2(n,k1))})}()),t.pipe(Vp(e))):b1((t,i)=>e(t,i).pipe(Y1(1),function TR(e){return m2(()=>e)}(t)))}function Hp(e,n=_p){const t=v7(e,n);return Vp(()=>t)}new A2(k1);var kR={left:"right",right:"left",bottom:"top",top:"bottom"};function m0(e){return e.replace(/left|right|bottom|top/g,function(n){return kR[n]})}function P4(e){return e.split("-")[0]}var IR={start:"end",end:"start"};function wp(e){return e.replace(/start|end/g,function(n){return IR[n]})}var P3="top",M4="bottom",y4="right",F3="left",b7="auto",J5=[P3,M4,y4,F3],L6="start",X5="end",Dp="viewport",en="popper",Sp=J5.reduce(function(e,n){return e.concat([n+"-"+L6,n+"-"+X5])},[]),Np=[].concat(J5,[b7]).reduce(function(e,n){return e.concat([n,n+"-"+L6,n+"-"+X5])},[]),KR=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function b4(e){if(null==e)return window;if("[object Window]"!==e.toString()){var n=e.ownerDocument;return n&&n.defaultView||window}return e}function V6(e){return e instanceof b4(e).Element||e instanceof Element}function i4(e){return e instanceof b4(e).HTMLElement||e instanceof HTMLElement}function L7(e){return"undefined"!=typeof ShadowRoot&&(e instanceof b4(e).ShadowRoot||e instanceof ShadowRoot)}function Te(e){return((V6(e)?e.ownerDocument:e.document)||window.document).documentElement}var lt=Math.max,v0=Math.min,H6=Math.round;function w6(e,n){void 0===n&&(n=!1);var t=e.getBoundingClientRect(),i=1,r=1;if(i4(e)&&n){var a=e.offsetHeight,o=e.offsetWidth;o>0&&(i=H6(t.width)/o||1),a>0&&(r=H6(t.height)/a||1)}return{width:t.width/i,height:t.height/r,top:t.top/r,right:t.right/i,bottom:t.bottom/r,left:t.left/i,x:t.left/i,y:t.top/r}}function V7(e){var n=b4(e);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function H7(e){return w6(Te(e)).left+V7(e).scrollLeft}function re(e){return b4(e).getComputedStyle(e)}function F4(e){return e?(e.nodeName||"").toLowerCase():null}function _0(e){return"html"===F4(e)?e:e.assignedSlot||e.parentNode||(L7(e)?e.host:null)||Te(e)}function w7(e){var n=re(e);return/auto|scroll|overlay|hidden/.test(n.overflow+n.overflowY+n.overflowX)}function zp(e){return["html","body","#document"].indexOf(F4(e))>=0?e.ownerDocument.body:i4(e)&&w7(e)?e:zp(_0(e))}function tn(e,n){var t;void 0===n&&(n=[]);var i=zp(e),r=i===(null==(t=e.ownerDocument)?void 0:t.body),a=b4(i),o=r?[a].concat(a.visualViewport||[],w7(i)?i:[]):i,s=n.concat(o);return r?s:s.concat(tn(_0(o)))}function ZR(e){return["table","td","th"].indexOf(F4(e))>=0}function xp(e){return i4(e)&&"fixed"!==re(e).position?e.offsetParent:null}function nn(e){for(var n=b4(e),t=xp(e);t&&ZR(t)&&"static"===re(t).position;)t=xp(t);return t&&("html"===F4(t)||"body"===F4(t)&&"static"===re(t).position)?n:t||function JR(e){var n=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&i4(e)&&"fixed"===re(e).position)return null;var r=_0(e);for(L7(r)&&(r=r.host);i4(r)&&["html","body"].indexOf(F4(r))<0;){var a=re(r);if("none"!==a.transform||"none"!==a.perspective||"paint"===a.contain||-1!==["transform","perspective"].indexOf(a.willChange)||n&&"filter"===a.willChange||n&&a.filter&&"none"!==a.filter)return r;r=r.parentNode}return null}(e)||n}function Ep(e,n){var t=n.getRootNode&&n.getRootNode();if(e.contains(n))return!0;if(t&&L7(t)){var i=n;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function D7(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Tp(e,n){return n===Dp?D7(function YR(e){var n=b4(e),t=Te(e),i=n.visualViewport,r=t.clientWidth,a=t.clientHeight,o=0,s=0;return i&&(r=i.width,a=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=i.offsetLeft,s=i.offsetTop)),{width:r,height:a,x:o+H7(e),y:s}}(e)):V6(n)?function XR(e){var n=w6(e);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(n):D7(function QR(e){var n,t=Te(e),i=V7(e),r=null==(n=e.ownerDocument)?void 0:n.body,a=lt(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=lt(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-i.scrollLeft+H7(e),c=-i.scrollTop;return"rtl"===re(r||t).direction&&(s+=lt(t.clientWidth,r?r.clientWidth:0)-a),{width:a,height:o,x:s,y:c}}(Te(e)))}function D6(e){return e.split("-")[1]}function S7(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ap(e){var c,n=e.reference,t=e.element,i=e.placement,r=i?P4(i):null,a=i?D6(i):null,o=n.x+n.width/2-t.width/2,s=n.y+n.height/2-t.height/2;switch(r){case P3:c={x:o,y:n.y-t.height};break;case M4:c={x:o,y:n.y+n.height};break;case y4:c={x:n.x+n.width,y:s};break;case F3:c={x:n.x-t.width,y:s};break;default:c={x:n.x,y:n.y}}var l=r?S7(r):null;if(null!=l){var u="y"===l?"height":"width";switch(a){case L6:c[l]=c[l]-(n[u]/2-t[u]/2);break;case X5:c[l]=c[l]+(n[u]/2-t[u]/2)}}return c}function Ip(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Op(e,n){return n.reduce(function(t,i){return t[i]=e,t},{})}function N7(e,n){void 0===n&&(n={});var i=n.placement,r=void 0===i?e.placement:i,a=n.boundary,o=void 0===a?"clippingParents":a,s=n.rootBoundary,c=void 0===s?Dp:s,l=n.elementContext,u=void 0===l?en:l,f=n.altBoundary,h=void 0!==f&&f,p=n.padding,L=void 0===p?0:p,H=Ip("number"!=typeof L?L:Op(L,J5)),N=e.rects.popper,w=e.elements[h?u===en?"reference":en:u],A=function tP(e,n,t){var i="clippingParents"===n?function eP(e){var n=tn(_0(e)),i=["absolute","fixed"].indexOf(re(e).position)>=0&&i4(e)?nn(e):e;return V6(i)?n.filter(function(r){return V6(r)&&Ep(r,i)&&"body"!==F4(r)}):[]}(e):[].concat(n),r=[].concat(i,[t]),o=r.reduce(function(s,c){var l=Tp(e,c);return s.top=lt(l.top,s.top),s.right=v0(l.right,s.right),s.bottom=v0(l.bottom,s.bottom),s.left=lt(l.left,s.left),s},Tp(e,r[0]));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}(V6(w)?w:w.contextElement||Te(e.elements.popper),o,c),F=w6(e.elements.reference),B=Ap({reference:F,element:N,strategy:"absolute",placement:r}),Q=D7(Object.assign({},N,B)),f2=u===en?Q:F,g2={top:A.top-f2.top+H.top,bottom:f2.bottom-A.bottom+H.bottom,left:A.left-f2.left+H.left,right:f2.right-A.right+H.right},P2=e.modifiersData.offset;if(u===en&&P2){var D1=P2[r];Object.keys(g2).forEach(function(X2){var V3=[y4,M4].indexOf(X2)>=0?1:-1,e3=[P3,M4].indexOf(X2)>=0?"y":"x";g2[X2]+=D1[e3]*V3})}return g2}const aP={name:"flip",enabled:!0,phase:"main",fn:function rP(e){var n=e.state,t=e.options,i=e.name;if(!n.modifiersData[i]._skip){for(var r=t.mainAxis,a=void 0===r||r,o=t.altAxis,s=void 0===o||o,c=t.fallbackPlacements,l=t.padding,u=t.boundary,f=t.rootBoundary,h=t.altBoundary,p=t.flipVariations,L=void 0===p||p,H=t.allowedAutoPlacements,S=n.options.placement,N=P4(S),A=c||(N!==S&&L?function iP(e){if(P4(e)===b7)return[];var n=m0(e);return[wp(e),n,wp(n)]}(S):[m0(S)]),F=[S].concat(A).reduce(function(F6,Fe){return F6.concat(P4(Fe)===b7?function nP(e,n){void 0===n&&(n={});var r=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=void 0===c?Np:c,u=D6(n.placement),f=u?s?Sp:Sp.filter(function(L){return D6(L)===u}):J5,h=f.filter(function(L){return l.indexOf(L)>=0});0===h.length&&(h=f);var p=h.reduce(function(L,H){return L[H]=N7(e,{placement:H,boundary:r,rootBoundary:a,padding:o})[P4(H)],L},{});return Object.keys(p).sort(function(L,H){return p[L]-p[H]})}(n,{placement:Fe,boundary:u,rootBoundary:f,padding:l,flipVariations:L,allowedAutoPlacements:H}):Fe)},[]),B=n.rects.reference,Q=n.rects.popper,f2=new Map,g2=!0,P2=F[0],D1=0;D1<F.length;D1++){var X2=F[D1],V3=P4(X2),e3=D6(X2)===L6,he=[P3,M4].indexOf(V3)>=0,pe=he?"width":"height",t3=N7(n,{placement:X2,boundary:u,rootBoundary:f,altBoundary:h,padding:l}),H4=he?e3?y4:F3:e3?M4:P3;B[pe]>Q[pe]&&(H4=m0(H4));var Hi=m0(H4),Lt=[];if(a&&Lt.push(t3[V3]<=0),s&&Lt.push(t3[H4]<=0,t3[Hi]<=0),Lt.every(function(F6){return F6})){P2=X2,g2=!1;break}f2.set(X2,Lt)}if(g2)for(var I9=function(Fe){var kn=F.find(function(Si){var Vt=f2.get(Si);if(Vt)return Vt.slice(0,Fe).every(function(O9){return O9})});if(kn)return P2=kn,"break"},An=L?3:1;An>0&&"break"!==I9(An);An--);n.placement!==P2&&(n.modifiersData[i]._skip=!0,n.placement=P2,n.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function rn(e,n,t){return lt(e,v0(n,t))}function z7(e){var n=w6(e),t=e.offsetWidth,i=e.offsetHeight;return Math.abs(n.width-t)<=1&&(t=n.width),Math.abs(n.height-i)<=1&&(i=n.height),{x:e.offsetLeft,y:e.offsetTop,width:t,height:i}}const lP={name:"preventOverflow",enabled:!0,phase:"main",fn:function cP(e){var n=e.state,t=e.options,i=e.name,r=t.mainAxis,a=void 0===r||r,o=t.altAxis,s=void 0!==o&&o,h=t.tether,p=void 0===h||h,L=t.tetherOffset,H=void 0===L?0:L,S=N7(n,{boundary:t.boundary,rootBoundary:t.rootBoundary,padding:t.padding,altBoundary:t.altBoundary}),N=P4(n.placement),w=D6(n.placement),A=!w,F=S7(N),B=function oP(e){return"x"===e?"y":"x"}(F),Q=n.modifiersData.popperOffsets,f2=n.rects.reference,g2=n.rects.popper,P2="function"==typeof H?H(Object.assign({},n.rects,{placement:n.placement})):H,D1="number"==typeof P2?{mainAxis:P2,altAxis:P2}:Object.assign({mainAxis:0,altAxis:0},P2),X2=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,V3={x:0,y:0};if(Q){if(a){var e3,he="y"===F?P3:F3,pe="y"===F?M4:y4,t3="y"===F?"height":"width",H4=Q[F],Hi=H4+S[he],Lt=H4-S[pe],wi=p?-g2[t3]/2:0,I9=w===L6?f2[t3]:g2[t3],An=w===L6?-g2[t3]:-f2[t3],Di=n.elements.arrow,F6=p&&Di?z7(Di):{width:0,height:0},Fe=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},kn=Fe[he],Si=Fe[pe],Vt=rn(0,f2[t3],F6[t3]),O9=A?f2[t3]/2-wi-Vt-kn-D1.mainAxis:I9-Vt-kn-D1.mainAxis,Nf2=A?-f2[t3]/2+wi+Vt+Si+D1.mainAxis:An+Vt+Si+D1.mainAxis,R9=n.elements.arrow&&nn(n.elements.arrow),mw=null!=(e3=null==X2?void 0:X2[F])?e3:0,Ef2=H4+Nf2-mw,vw=rn(p?v0(Hi,H4+O9-mw-(R9?"y"===F?R9.clientTop||0:R9.clientLeft||0:0)):Hi,H4,p?lt(Lt,Ef2):Lt);Q[F]=vw,V3[F]=vw-H4}if(s){var _w,Ht=Q[B],Ni="y"===B?"height":"width",Mw=Ht+S["x"===F?P3:F3],yw=Ht-S["x"===F?M4:y4],P9=-1!==[P3,F3].indexOf(N),bw=null!=(_w=null==X2?void 0:X2[B])?_w:0,Lw=P9?Mw:Ht-f2[Ni]-g2[Ni]-bw+D1.altAxis,Vw=P9?Ht+f2[Ni]+g2[Ni]-bw-D1.altAxis:yw,Hw=p&&P9?function sP(e,n,t){var i=rn(e,n,t);return i>t?t:i}(Lw,Ht,Vw):rn(p?Lw:Mw,Ht,p?Vw:yw);Q[B]=Hw,V3[B]=Hw-Ht}n.modifiersData[i]=V3}},requiresIfExists:["offset"]},dP={name:"arrow",enabled:!0,phase:"main",fn:function fP(e){var n,t=e.state,i=e.name,r=e.options,a=t.elements.arrow,o=t.modifiersData.popperOffsets,s=P4(t.placement),c=S7(s),u=[F3,y4].indexOf(s)>=0?"height":"width";if(a&&o){var f=function(n,t){return Ip("number"!=typeof(n="function"==typeof n?n(Object.assign({},t.rects,{placement:t.placement})):n)?n:Op(n,J5))}(r.padding,t),h=z7(a),p="y"===c?P3:F3,L="y"===c?M4:y4,H=t.rects.reference[u]+t.rects.reference[c]-o[c]-t.rects.popper[u],S=o[c]-t.rects.reference[c],N=nn(a),w=N?"y"===c?N.clientHeight||0:N.clientWidth||0:0,Q=w/2-h[u]/2+(H/2-S/2),f2=rn(f[p],Q,w-h[u]-f[L]);t.modifiersData[i]=((n={})[c]=f2,n.centerOffset=f2-Q,n)}},effect:function CP(e){var n=e.state,i=e.options.element,r=void 0===i?"[data-popper-arrow]":i;null!=r&&("string"==typeof r&&!(r=n.elements.popper.querySelector(r))||!Ep(n.elements.popper,r)||(n.elements.arrow=r))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function mP(e,n,t){void 0===t&&(t=!1);var i=i4(n),r=i4(n)&&function gP(e){var n=e.getBoundingClientRect(),t=H6(n.width)/e.offsetWidth||1,i=H6(n.height)/e.offsetHeight||1;return 1!==t||1!==i}(n),a=Te(n),o=w6(e,r),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!t)&&(("body"!==F4(n)||w7(a))&&(s=function pP(e){return e!==b4(e)&&i4(e)?function hP(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(e):V7(e)}(n)),i4(n)?((c=w6(n,!0)).x+=n.clientLeft,c.y+=n.clientTop):a&&(c.x=H7(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function vP(e){var n=new Map,t=new Set,i=[];function r(a){t.add(a.name),[].concat(a.requires||[],a.requiresIfExists||[]).forEach(function(s){if(!t.has(s)){var c=n.get(s);c&&r(c)}}),i.push(a)}return e.forEach(function(a){n.set(a.name,a)}),e.forEach(function(a){t.has(a.name)||r(a)}),i}function MP(e){var n;return function(){return n||(n=new Promise(function(t){Promise.resolve().then(function(){n=void 0,t(e())})})),n}}var Rp={placement:"bottom",modifiers:[],strategy:"absolute"};function Pp(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return!n.some(function(i){return!(i&&"function"==typeof i.getBoundingClientRect)})}function bP(e){void 0===e&&(e={});var t=e.defaultModifiers,i=void 0===t?[]:t,r=e.defaultOptions,a=void 0===r?Rp:r;return function(s,c,l){void 0===l&&(l=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Rp,a),modifiersData:{},elements:{reference:s,popper:c},attributes:{},styles:{}},f=[],h=!1,p={state:u,setOptions:function(N){var w="function"==typeof N?N(u.options):N;H(),u.options=Object.assign({},a,u.options,w),u.scrollParents={reference:V6(s)?tn(s):s.contextElement?tn(s.contextElement):[],popper:tn(c)};var A=function _P(e){var n=vP(e);return KR.reduce(function(t,i){return t.concat(n.filter(function(r){return r.phase===i}))},[])}(function yP(e){var n=e.reduce(function(t,i){var r=t[i.name];return t[i.name]=r?Object.assign({},r,i,{options:Object.assign({},r.options,i.options),data:Object.assign({},r.data,i.data)}):i,t},{});return Object.keys(n).map(function(t){return n[t]})}([].concat(i,u.options.modifiers)));return u.orderedModifiers=A.filter(function(X2){return X2.enabled}),function L(){u.orderedModifiers.forEach(function(S){var w=S.options,F=S.effect;if("function"==typeof F){var B=F({state:u,name:S.name,instance:p,options:void 0===w?{}:w});f.push(B||function(){})}})}(),p.update()},forceUpdate:function(){if(!h){var N=u.elements,w=N.reference,A=N.popper;if(Pp(w,A)){u.rects={reference:mP(w,nn(A),"fixed"===u.options.strategy),popper:z7(A)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(X2){return u.modifiersData[X2.name]=Object.assign({},X2.data)});for(var B=0;B<u.orderedModifiers.length;B++)if(!0!==u.reset){var Q=u.orderedModifiers[B],f2=Q.fn,g2=Q.options;"function"==typeof f2&&(u=f2({state:u,options:void 0===g2?{}:g2,name:Q.name,instance:p})||u)}else u.reset=!1,B=-1}}},update:MP(function(){return new Promise(function(S){p.forceUpdate(),S(u)})}),destroy:function(){H(),h=!0}};if(!Pp(s,c))return p;function H(){f.forEach(function(S){return S()}),f=[]}return p.setOptions(l).then(function(S){!h&&l.onFirstUpdate&&l.onFirstUpdate(S)}),p}}var M0={passive:!0},DP={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Fp(e){var n,t=e.popper,i=e.popperRect,r=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,f=e.isFixed,h=o.x,p=void 0===h?0:h,L=o.y,H=void 0===L?0:L,S="function"==typeof u?u({x:p,y:H}):{x:p,y:H};p=S.x,H=S.y;var N=o.hasOwnProperty("x"),w=o.hasOwnProperty("y"),A=F3,F=P3,B=window;if(l){var Q=nn(t),f2="clientHeight",g2="clientWidth";Q===b4(t)&&"static"!==re(Q=Te(t)).position&&"absolute"===s&&(f2="scrollHeight",g2="scrollWidth"),Q=Q,(r===P3||(r===F3||r===y4)&&a===X5)&&(F=M4,H-=(f&&Q===B&&B.visualViewport?B.visualViewport.height:Q[f2])-i.height,H*=c?1:-1),r!==F3&&(r!==P3&&r!==M4||a!==X5)||(A=y4,p-=(f&&Q===B&&B.visualViewport?B.visualViewport.width:Q[g2])-i.width,p*=c?1:-1)}var e3,X2=Object.assign({position:s},l&&DP),V3=!0===u?function SP(e){var t=e.y,r=window.devicePixelRatio||1;return{x:H6(e.x*r)/r||0,y:H6(t*r)/r||0}}({x:p,y:H}):{x:p,y:H};return p=V3.x,H=V3.y,Object.assign({},X2,c?((e3={})[F]=w?"0":"",e3[A]=N?"0":"",e3.transform=(B.devicePixelRatio||1)<=1?"translate("+p+"px, "+H+"px)":"translate3d("+p+"px, "+H+"px, 0)",e3):((n={})[F]=w?H+"px":"",n[A]=N?p+"px":"",n.transform="",n))}var AP=bP({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function LP(e){var n=e.state,t=e.instance,i=e.options,r=i.scroll,a=void 0===r||r,o=i.resize,s=void 0===o||o,c=b4(n.elements.popper),l=[].concat(n.scrollParents.reference,n.scrollParents.popper);return a&&l.forEach(function(u){u.addEventListener("scroll",t.update,M0)}),s&&c.addEventListener("resize",t.update,M0),function(){a&&l.forEach(function(u){u.removeEventListener("scroll",t.update,M0)}),s&&c.removeEventListener("resize",t.update,M0)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function HP(e){var n=e.state;n.modifiersData[e.name]=Ap({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function NP(e){var n=e.state,t=e.options,i=t.gpuAcceleration,r=void 0===i||i,a=t.adaptive,o=void 0===a||a,s=t.roundOffsets,c=void 0===s||s,u={placement:P4(n.placement),variation:D6(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:r,isFixed:"fixed"===n.options.strategy};null!=n.modifiersData.popperOffsets&&(n.styles.popper=Object.assign({},n.styles.popper,Fp(Object.assign({},u,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:o,roundOffsets:c})))),null!=n.modifiersData.arrow&&(n.styles.arrow=Object.assign({},n.styles.arrow,Fp(Object.assign({},u,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function xP(e){var n=e.state;Object.keys(n.elements).forEach(function(t){var i=n.styles[t]||{},r=n.attributes[t]||{},a=n.elements[t];!i4(a)||!F4(a)||(Object.assign(a.style,i),Object.keys(r).forEach(function(o){var s=r[o];!1===s?a.removeAttribute(o):a.setAttribute(o,!0===s?"":s)}))})},effect:function EP(e){var n=e.state,t={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,t.popper),n.styles=t,n.elements.arrow&&Object.assign(n.elements.arrow.style,t.arrow),function(){Object.keys(n.elements).forEach(function(i){var r=n.elements[i],a=n.attributes[i]||{},s=Object.keys(n.styles.hasOwnProperty(i)?n.styles[i]:t[i]).reduce(function(c,l){return c[l]="",c},{});!i4(r)||!F4(r)||(Object.assign(r.style,s),Object.keys(a).forEach(function(c){r.removeAttribute(c)}))})}},requires:["computeStyles"]}]});const OP={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function IP(e){var n=e.state,i=e.name,r=e.options.offset,a=void 0===r?[0,0]:r,o=Np.reduce(function(u,f){return u[f]=function kP(e,n,t){var i=P4(e),r=[F3,P3].indexOf(i)>=0?-1:1,a="function"==typeof t?t(Object.assign({},n,{placement:e})):t,o=a[0],s=a[1];return o=o||0,s=(s||0)*r,[F3,y4].indexOf(i)>=0?{x:s,y:o}:{x:o,y:s}}(f,n.rects,a),u},{}),s=o[n.placement],l=s.y;null!=n.modifiersData.popperOffsets&&(n.modifiersData.popperOffsets.x+=s.x,n.modifiersData.popperOffsets.y+=l),n.modifiersData[i]=o}};function RP(e,n){}function PP(e,n){if(1&e&&(g(0,"button",3),y(1),R(2,RP,0,0,"ng-template",4),m()),2&e){const t=n.$implicit;b("ngbPanelToggle",t),_(1),Q3(" ",t.title,""),_(1),b("ngTemplateOutlet",null==t.titleTpl?null:t.titleTpl.templateRef)}}function FP(e,n){}function BP(e,n){}function UP(e,n){if(1&e){const t=V1();g(0,"div",8),T("ngbRef",function(r){return W(t),E().$implicit.panelDiv=r}),g(1,"div",9),R(2,BP,0,0,"ng-template",4),m()()}if(2&e){const t=E().$implicit;ka("id",t.id),j("aria-labelledby",t.id+"-header"),_(2),b("ngTemplateOutlet",(null==t.contentTpl?null:t.contentTpl.templateRef)||null)}}const jP=function(e,n){return{$implicit:e,opened:n}};function GP(e,n){if(1&e&&(g(0,"div")(1,"div",5),R(2,FP,0,0,"ng-template",6),m(),R(3,UP,3,3,"div",7),m()),2&e){const t=n.$implicit,i=E(),r=Y3(1);He("accordion-item "+(t.cardClass||"")),_(1),He("accordion-header "+(t.type?"bg-"+t.type:i.type?"bg-"+i.type:"")),f6("id","",t.id,"-header"),_(1),b("ngTemplateOutlet",(null==t.headerTpl?null:t.headerTpl.templateRef)||r)("ngTemplateOutletContext",k5(8,jP,t,t.isOpen)),_(1),b("ngIf",!i.destroyOnHide||t.isOpen||t.transitionRunning)}}function $P(e,n){if(1&e){const t=V1();g(0,"button",1),T("click",function(){return W(t),E().close()}),m()}}const x7=["*"],lF=["dialog"];function BF(e,n){1&e&&y(0),2&e&&S5(E(2).title)}function UF(e,n){}function jF(e,n){if(1&e&&(g(0,"h3",3),R(1,BF,1,1,"ng-template",null,4,J3),R(3,UF,0,0,"ng-template",5),m()),2&e){const t=Y3(2),i=E();_(3),b("ngTemplateOutlet",i.isTitleTemplate()?i.title:t)("ngTemplateOutletContext",i.context)}}function T7(e){return"string"==typeof e}function ut(e){return null!=e}function S6(e){return(e||document.body).getBoundingClientRect()}const Up={animation:!0,transitionTimerDelayMs:5},rB=()=>{},{transitionTimerDelayMs:aB}=Up,an=new Map,g3=(e,n,t,i)=>{let r=i.context||{};const a=an.get(n);if(a)switch(i.runningTransition){case"continue":return c4;case"stop":e.run(()=>a.transition$.complete()),r=Object.assign(a.context,r),an.delete(n)}const o=t(n,i.animation,r)||rB;if(!i.animation||"none"===window.getComputedStyle(n).transitionProperty)return e.run(()=>o()),a2(void 0).pipe(function nB(e){return n=>new A2(t=>n.subscribe({next:o=>e.run(()=>t.next(o)),error:o=>e.run(()=>t.error(o)),complete:()=>e.run(()=>t.complete())}))}(e));const s=new C2,c=new C2,l=s.pipe(function zR(...e){return n=>Z5(n,a2(...e))}(!0));an.set(n,{transition$:s,complete:()=>{c.next(),c.complete()},context:r});const u=function iB(e){const{transitionDelay:n,transitionDuration:t}=window.getComputedStyle(e);return 1e3*(parseFloat(n)+parseFloat(t))}(n);return e.runOutsideAngular(()=>{const f=h3(n,"transitionend").pipe(U1(l),Z1(({target:p})=>p===n));yp(v7(u+aB).pipe(U1(l)),f,c).pipe(U1(l)).subscribe(()=>{an.delete(n),e.run(()=>{o(),s.next(),s.complete()})})}),s.asObservable()},jp=(e,n,t)=>{let{direction:i,maxHeight:r}=t;const{classList:a}=e;function o(){a.add("collapse"),"show"===i?a.add("show"):a.remove("show")}if(n)return r||(r=function sB(e){if("undefined"==typeof navigator)return"0px";const{classList:n}=e,t=n.contains("show");t||n.add("show"),e.style.height="";const i=e.getBoundingClientRect().height+"px";return t||n.remove("show"),i}(e),t.maxHeight=r,e.style.height="show"!==i?r:"0px",a.remove("collapse"),a.remove("collapsing"),a.remove("show"),S6(e),a.add("collapsing")),e.style.height="show"===i?r:"0px",()=>{o(),a.remove("collapsing"),e.style.height=""};o()};let N6=(()=>{class e{constructor(){this.animation=Up.animation}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),cB=(()=>{class e{constructor(t){this._ngbConfig=t,this.closeOthers=!1}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(t){this._animation=t}}return e.\u0275fac=function(t){return new(t||e)(q(N6))},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),lB=0,b0=(()=>{class e{constructor(t){this.templateRef=t}}return e.\u0275fac=function(t){return new(t||e)(V(c1))},e.\u0275dir=U({type:e,selectors:[["ng-template","ngbPanelHeader",""]]}),e})(),k7=(()=>{class e{constructor(t){this.templateRef=t}}return e.\u0275fac=function(t){return new(t||e)(V(c1))},e.\u0275dir=U({type:e,selectors:[["ng-template","ngbPanelTitle",""]]}),e})(),I7=(()=>{class e{constructor(t){this.templateRef=t}}return e.\u0275fac=function(t){return new(t||e)(V(c1))},e.\u0275dir=U({type:e,selectors:[["ng-template","ngbPanelContent",""]]}),e})(),L0=(()=>{class e{constructor(){this.disabled=!1,this.id="ngb-panel-"+lB++,this.isOpen=!1,this.initClassDone=!1,this.transitionRunning=!1,this.shown=new u2,this.hidden=new u2}ngAfterContentChecked(){this.titleTpl=this.titleTpls.first,this.headerTpl=this.headerTpls.first,this.contentTpl=this.contentTpls.first}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=U({type:e,selectors:[["ngb-panel"]],contentQueries:function(t,i,r){if(1&t&&(H1(r,k7,4),H1(r,b0,4),H1(r,I7,4)),2&t){let a;f1(a=C1())&&(i.titleTpls=a),f1(a=C1())&&(i.headerTpls=a),f1(a=C1())&&(i.contentTpls=a)}},inputs:{disabled:"disabled",id:"id",title:"title",type:"type",cardClass:"cardClass"},outputs:{shown:"shown",hidden:"hidden"}}),e})(),uB=(()=>{class e{constructor(t){this._El=t,this.ngbRef=new u2}ngOnInit(){this.ngbRef.emit(this._El.nativeElement)}ngOnDestroy(){this.ngbRef.emit(null)}}return e.\u0275fac=function(t){return new(t||e)(V(I2))},e.\u0275dir=U({type:e,selectors:[["","ngbRef",""]],outputs:{ngbRef:"ngbRef"}}),e})(),O7=(()=>{class e{constructor(t,i,r){this._ngZone=i,this._changeDetector=r,this.activeIds=[],this.destroyOnHide=!0,this.panelChange=new u2,this.shown=new u2,this.hidden=new u2,this.animation=t.animation,this.type=t.type,this.closeOtherPanels=t.closeOthers}isExpanded(t){return this.activeIds.indexOf(t)>-1}expand(t){this._changeOpenState(this._findPanelById(t),!0)}expandAll(){this.closeOtherPanels?0===this.activeIds.length&&this.panels.length&&this._changeOpenState(this.panels.first,!0):this.panels.forEach(t=>this._changeOpenState(t,!0))}collapse(t){this._changeOpenState(this._findPanelById(t),!1)}collapseAll(){this.panels.forEach(t=>{this._changeOpenState(t,!1)})}toggle(t){const i=this._findPanelById(t);i&&this._changeOpenState(i,!i.isOpen)}ngAfterContentChecked(){T7(this.activeIds)&&(this.activeIds=this.activeIds.split(/\s*,\s*/)),this.panels.forEach(t=>{t.isOpen=!t.disabled&&this.activeIds.indexOf(t.id)>-1}),this.activeIds.length>1&&this.closeOtherPanels&&(this._closeOthers(this.activeIds[0],!1),this._updateActiveIds()),this._ngZone.onStable.pipe(Y1(1)).subscribe(()=>{this.panels.forEach(t=>{const i=t.panelDiv;i?t.initClassDone||(t.initClassDone=!0,g3(this._ngZone,i,jp,{animation:!1,runningTransition:"continue",context:{direction:t.isOpen?"show":"hide"}})):t.initClassDone=!1})})}_changeOpenState(t,i){if(null!=t&&!t.disabled&&t.isOpen!==i){let r=!1;this.panelChange.emit({panelId:t.id,nextState:i,preventDefault:()=>{r=!0}}),r||(t.isOpen=i,t.transitionRunning=!0,i&&this.closeOtherPanels&&this._closeOthers(t.id),this._updateActiveIds(),this._runTransitions(this.animation))}}_closeOthers(t,i=!0){this.panels.forEach(r=>{r.id!==t&&r.isOpen&&(r.isOpen=!1,r.transitionRunning=i)})}_findPanelById(t){return this.panels.find(i=>i.id===t)||null}_updateActiveIds(){this.activeIds=this.panels.filter(t=>t.isOpen&&!t.disabled).map(t=>t.id)}_runTransitions(t){this._changeDetector.detectChanges(),this.panels.forEach(i=>{i.transitionRunning&&g3(this._ngZone,i.panelDiv,jp,{animation:t,runningTransition:"stop",context:{direction:i.isOpen?"show":"hide"}}).subscribe(()=>{i.transitionRunning=!1;const{id:a}=i;i.isOpen?(i.shown.emit(),this.shown.emit(a)):(i.hidden.emit(),this.hidden.emit(a))})})}}return e.\u0275fac=function(t){return new(t||e)(V(cB),V($2),V(X3))},e.\u0275cmp=s2({type:e,selectors:[["ngb-accordion"]],contentQueries:function(t,i,r){if(1&t&&H1(r,L0,4),2&t){let a;f1(a=C1())&&(i.panels=a)}},hostAttrs:["role","tablist",1,"accordion"],hostVars:1,hostBindings:function(t,i){2&t&&j("aria-multiselectable",!i.closeOtherPanels)},inputs:{animation:"animation",activeIds:"activeIds",closeOtherPanels:["closeOthers","closeOtherPanels"],destroyOnHide:"destroyOnHide",type:"type"},outputs:{panelChange:"panelChange",shown:"shown",hidden:"hidden"},exportAs:["ngbAccordion"],decls:3,vars:1,consts:[["ngbPanelHeader",""],["t",""],["ngFor","",3,"ngForOf"],[1,"accordion-button",3,"ngbPanelToggle"],[3,"ngTemplateOutlet"],["role","tab",3,"id"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["role","tabpanel",3,"id","ngbRef",4,"ngIf"],["role","tabpanel",3,"id","ngbRef"],[1,"accordion-body"]],template:function(t,i){1&t&&(R(0,PP,3,3,"ng-template",0,1,J3),R(2,GP,4,11,"ng-template",2)),2&t&&(_(2),b("ngForOf",i.panels))},directives:function(){return[b0,R7,M6,rt,B1,uB]},encapsulation:2}),e})(),R7=(()=>{class e{constructor(t,i){this.accordion=t,this.panel=i}set ngbPanelToggle(t){t&&(this.panel=t)}}return e.\u0275fac=function(t){return new(t||e)(V(O7),V(L0,9))},e.\u0275dir=U({type:e,selectors:[["button","ngbPanelToggle",""]],hostAttrs:["type","button"],hostVars:5,hostBindings:function(t,i){1&t&&T("click",function(){return i.accordion.toggle(i.panel.id)}),2&t&&(O4("disabled",i.panel.disabled),j("aria-expanded",i.panel.isOpen)("aria-controls",i.panel.id),n1("collapsed",!i.panel.isOpen))},inputs:{ngbPanelToggle:"ngbPanelToggle"}}),e})(),Gp=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({imports:[[R3]]}),e})();const fB=({classList:e})=>{e.remove("show")};let CB=(()=>{class e{constructor(t){this._ngbConfig=t,this.dismissible=!0,this.type="warning"}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(t){this._animation=t}}return e.\u0275fac=function(t){return new(t||e)(q(N6))},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),$p=(()=>{class e{constructor(t,i,r,a){this._renderer=i,this._element=r,this._zone=a,this.closed=new u2,this.dismissible=t.dismissible,this.type=t.type,this.animation=t.animation}close(){const t=g3(this._zone,this._element.nativeElement,fB,{animation:this.animation,runningTransition:"continue"});return t.subscribe(()=>this.closed.emit()),t}ngOnChanges(t){const i=t.type;i&&!i.firstChange&&(this._renderer.removeClass(this._element.nativeElement,`alert-${i.previousValue}`),this._renderer.addClass(this._element.nativeElement,`alert-${i.currentValue}`))}ngOnInit(){this._renderer.addClass(this._element.nativeElement,`alert-${this.type}`)}}return e.\u0275fac=function(t){return new(t||e)(V(CB),V(y3),V(I2),V($2))},e.\u0275cmp=s2({type:e,selectors:[["ngb-alert"]],hostAttrs:["role","alert",1,"alert","show"],hostVars:4,hostBindings:function(t,i){2&t&&n1("fade",i.animation)("alert-dismissible",i.dismissible)},inputs:{animation:"animation",dismissible:"dismissible",type:"type"},outputs:{closed:"closed"},exportAs:["ngbAlert"],features:[z1],ngContentSelectors:x7,decls:2,vars:1,consts:function(){let n;return n=$localize`:@@ngb.alert.close:Close`,[["type","button","class","btn-close","aria-label",n,3,"click",4,"ngIf"],["type","button","aria-label",n,1,"btn-close",3,"click"]]},template:function(t,i){1&t&&(H5(),w5(0),R(1,$P,1,0,"button",0)),2&t&&(_(1),b("ngIf",i.dismissible))},directives:[B1],styles:["ngb-alert{display:block}\n"],encapsulation:2,changeDetection:0}),e})(),Wp=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({imports:[[R3]]}),e})(),Kp=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({}),e})(),Zp=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({imports:[[R3]]}),e})(),Jp=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({}),e})();var j1=(()=>{return(e=j1||(j1={}))[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",j1;var e})();const H0=(e,n)=>!!n&&n.some(t=>t.contains(e)),Xp=(e,n)=>!n||null!=function tB(e,n){return n&&void 0!==e.closest?e.closest(n):null}(e,n),wB="undefined"!=typeof navigator&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));const tg=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function ng(e){const n=Array.from(e.querySelectorAll(tg)).filter(t=>-1!==t.tabIndex);return[n[0],n[n.length-1]]}const NB=/\s+/,zB=/ +/gi,xB=/^start/,EB=/^end/,TB=/-(top|left)$/,AB=/-(bottom|right)$/,IB=/^left/,OB=/^right/,RB=/^start/,PB=/^end/;function ig({placement:e,baseClass:n}){let t=Array.isArray(e)?e:e.split(NB),r=t.findIndex(c=>"auto"===c);r>=0&&["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end","start-top","start-bottom","end-top","end-bottom"].forEach(function(c){null==t.find(l=>-1!==l.search("^"+c))&&t.splice(r++,1,c)});const a=t.map(c=>function kB(e){return e.replace(xB,"left").replace(EB,"right").replace(TB,"-start").replace(AB,"-end")}(c));return{placement:a.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!n,phase:"write",fn({state:c}){const l=new RegExp(n+"(-[a-z]+)*","gi"),u=c.elements.popper,f=c.placement;let h=u.className;h=h.replace(l,""),h+=` ${function FB(e,n){let[t,i]=n.split("-");const r=t.replace(IB,"start").replace(OB,"end");let a=[r];if(i){let o=i;("left"===t||"right"===t)&&(o=o.replace(RB,"top").replace(PB,"bottom")),a.push(`${r}-${o}`)}return e&&(a=a.map(o=>`${e}-${o}`)),a.join(" ")}(n,f)}`,h=h.trim().replace(zB," "),u.className=h}},aP,lP,dP,{enabled:!0,name:"flip",options:{fallbackPlacements:a}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function rg(e){return e}function og(e){return n=>(n.modifiers.push(OP,{name:"offset",options:{offset:()=>e}}),n)}new Date(1882,10,12),new Date(2174,10,25);let Cg=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({imports:[[R3,gp]]}),e})(),gg=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({}),e})();class ht{constructor(n,t,i){this.nodes=n,this.viewRef=t,this.componentRef=i}}class ZB{constructor(n,t,i,r,a,o){this._type=n,this._injector=t,this._viewContainerRef=i,this._renderer=r,this._ngZone=a,this._applicationRef=o,this._windowRef=null,this._contentRef=null}open(n,t,i=!1){this._windowRef||(this._contentRef=this._getContentRef(n,t),this._windowRef=this._viewContainerRef.createComponent(this._type,{index:this._viewContainerRef.length,injector:this._injector,projectableNodes:this._contentRef.nodes}));const{nativeElement:r}=this._windowRef.location,a=this._ngZone.onStable.pipe(Y1(1),b1(()=>g3(this._ngZone,r,({classList:o})=>o.add("show"),{animation:i,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:a}}close(n=!1){return this._windowRef?g3(this._ngZone,this._windowRef.location.nativeElement,({classList:t})=>t.remove("show"),{animation:n,runningTransition:"stop"}).pipe(p3(()=>{var t;this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),(null===(t=this._contentRef)||void 0===t?void 0:t.viewRef)&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):a2(void 0)}_getContentRef(n,t){if(n){if(n instanceof c1){const i=n.createEmbeddedView(t);return this._applicationRef.attachView(i),new ht([i.rootNodes],i)}return new ht([[this._renderer.createText(`${n}`)]])}return new ht([])}}let JB=(()=>{class e{constructor(t,i){this._el=t,this._zone=i}ngOnInit(){this._zone.onStable.asObservable().pipe(Y1(1)).subscribe(()=>{g3(this._zone,this._el.nativeElement,(t,i)=>{i&&S6(t),t.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return g3(this._zone,this._el.nativeElement,({classList:t})=>t.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return e.\u0275fac=function(t){return new(t||e)(V(I2),V($2))},e.\u0275cmp=s2({type:e,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(t,i){2&t&&(He("modal-backdrop"+(i.backdropClass?" "+i.backdropClass:"")),n1("show",!i.animation)("fade",i.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(t,i){},encapsulation:2}),e})();class mg{close(n){}dismiss(n){}}class XB{constructor(n,t,i,r){this._windowCmptRef=n,this._contentRef=t,this._backdropCmptRef=i,this._beforeDismiss=r,this._closed=new C2,this._dismissed=new C2,this._hidden=new C2,n.instance.dismissEvent.subscribe(a=>{this.dismiss(a)}),this.result=new Promise((a,o)=>{this._resolve=a,this._reject=o}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(U1(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(U1(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}close(n){this._windowCmptRef&&(this._closed.next(n),this._resolve(n),this._removeModalElements())}_dismiss(n){this._dismissed.next(n),this._reject(n),this._removeModalElements()}dismiss(n){if(this._windowCmptRef)if(this._beforeDismiss){const t=this._beforeDismiss();!function Bp(e){return e&&e.then}(t)?!1!==t&&this._dismiss(n):t.then(i=>{!1!==i&&this._dismiss(n)},()=>{})}else this._dismiss(n)}_removeModalElements(){const n=this._windowCmptRef.instance.hide(),t=this._backdropCmptRef?this._backdropCmptRef.instance.hide():a2(void 0);n.subscribe(()=>{const{nativeElement:i}=this._windowCmptRef.location;i.parentNode.removeChild(i),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),t.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:i}=this._backdropCmptRef.location;i.parentNode.removeChild(i),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),p0(n,t).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var pt=(()=>{return(e=pt||(pt={}))[e.BACKDROP_CLICK=0]="BACKDROP_CLICK",e[e.ESC=1]="ESC",pt;var e})();let eU=(()=>{class e{constructor(t,i,r){this._document=t,this._elRef=i,this._zone=r,this._closed$=new C2,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new u2,this.shown=new C2,this.hidden=new C2}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":T7(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(t){this.dismissEvent.emit(t)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(Y1(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:t}=this._elRef,i={animation:this.animation,runningTransition:"stop"},o=p0(g3(this._zone,t,()=>t.classList.remove("show"),i),g3(this._zone,this._dialogEl.nativeElement,()=>{},i));return o.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),o}_show(){const t={animation:this.animation,runningTransition:"continue"};p0(g3(this._zone,this._elRef.nativeElement,(a,o)=>{o&&S6(a),a.classList.add("show")},t),g3(this._zone,this._dialogEl.nativeElement,()=>{},t)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:t}=this._elRef;this._zone.runOutsideAngular(()=>{h3(t,"keydown").pipe(U1(this._closed$),Z1(r=>r.which===j1.Escape)).subscribe(r=>{this.keyboard?requestAnimationFrame(()=>{r.defaultPrevented||this._zone.run(()=>this.dismiss(pt.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let i=!1;h3(this._dialogEl.nativeElement,"mousedown").pipe(U1(this._closed$),p3(()=>i=!1),ie(()=>h3(t,"mouseup").pipe(U1(this._closed$),Y1(1))),Z1(({target:r})=>t===r)).subscribe(()=>{i=!0}),h3(t,"click").pipe(U1(this._closed$)).subscribe(({target:r})=>{t===r&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!i&&this._zone.run(()=>this.dismiss(pt.BACKDROP_CLICK))),i=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:t}=this._elRef;if(!t.contains(document.activeElement)){const i=t.querySelector("[ngbAutofocus]"),r=ng(t)[0];(i||r||t).focus()}}_restoreFocus(){const t=this._document.body,i=this._elWithFocus;let r;r=i&&i.focus&&t.contains(i)?i:t,this._zone.runOutsideAngular(()=>{setTimeout(()=>r.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&g3(this._zone,this._elRef.nativeElement,({classList:t})=>(t.add("modal-static"),()=>t.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return e.\u0275fac=function(t){return new(t||e)(V(E1),V(I2),V($2))},e.\u0275cmp=s2({type:e,selectors:[["ngb-modal-window"]],viewQuery:function(t,i){if(1&t&&function ro(e,n,t){const i=N2();i.firstCreatePass&&(GC(i,new BC(e,n,t),-1),2==(2&n)&&(i.staticViewQueries=!0)),jC(i,k(),n)}(lF,7),2&t){let r;f1(r=C1())&&(i._dialogEl=r.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(t,i){2&t&&(j("aria-modal",!0)("aria-labelledby",i.ariaLabelledBy)("aria-describedby",i.ariaDescribedBy),He("modal d-block"+(i.windowClass?" "+i.windowClass:"")),n1("fade",i.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:x7,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(t,i){1&t&&(H5(),g(0,"div",0,1)(2,"div",2),w5(3),m()()),2&t&&He("modal-dialog"+(i.size?" modal-"+i.size:"")+(i.centered?" modal-dialog-centered":"")+i.fullscreenClass+(i.scrollable?" modal-dialog-scrollable":"")+(i.modalDialogClass?" "+i.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}\n"],encapsulation:2}),e})(),tU=(()=>{class e{constructor(t){this._document=t}hide(){const t=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),i=this._document.body,r=i.style,{overflow:a,paddingRight:o}=r;if(t>0){const s=parseFloat(window.getComputedStyle(i).paddingRight);r.paddingRight=`${s+t}px`}return r.overflow="hidden",()=>{t>0&&(r.paddingRight=o),r.overflow=a}}}return e.\u0275fac=function(t){return new(t||e)(q(E1))},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),nU=(()=>{class e{constructor(t,i,r,a,o,s){this._applicationRef=t,this._injector=i,this._document=r,this._scrollBar=a,this._rendererFactory=o,this._ngZone=s,this._activeWindowCmptHasChanged=new C2,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._backdropAttributes=["animation","backdropClass"],this._modalRefs=[],this._windowAttributes=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],this._windowCmpts=[],this._activeInstances=new u2,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const c=this._windowCmpts[this._windowCmpts.length-1];((e,n,t,i=!1)=>{this._ngZone.runOutsideAngular(()=>{const r=h3(n,"focusin").pipe(U1(t),m2(a=>a.target));h3(n,"keydown").pipe(U1(t),Z1(a=>a.which===j1.Tab),y7(r)).subscribe(([a,o])=>{const[s,c]=ng(n);(o===s||o===n)&&a.shiftKey&&(c.focus(),a.preventDefault()),o===c&&!a.shiftKey&&(s.focus(),a.preventDefault())}),i&&h3(n,"click").pipe(U1(t),y7(r),m2(a=>a[1])).subscribe(a=>a.focus())})})(0,c.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(c.location.nativeElement)}})}_restoreScrollBar(){const t=this._scrollBarRestoreFn;t&&(this._scrollBarRestoreFn=null,t())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(t,i,r,a){const o=a.container instanceof HTMLElement?a.container:ut(a.container)?this._document.querySelector(a.container):this._document.body,s=this._rendererFactory.createRenderer(null,null);if(!o)throw new Error(`The specified modal container "${a.container||"body"}" was not found in the DOM.`);this._hideScrollBar();const c=new mg,l=this._getContentRef(t,a.injector||i,r,c,a);let u=!1!==a.backdrop?this._attachBackdrop(t,o):void 0,f=this._attachWindowComponent(t,o,l),h=new XB(f,l,u,a.beforeDismiss);return this._registerModalRef(h),this._registerWindowCmpt(f),h.hidden.pipe(Y1(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(s.removeClass(this._document.body,"modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),c.close=p=>{h.close(p)},c.dismiss=p=>{h.dismiss(p)},this._applyWindowOptions(f.instance,a),1===this._modalRefs.length&&s.addClass(this._document.body,"modal-open"),u&&u.instance&&(this._applyBackdropOptions(u.instance,a),u.changeDetectorRef.detectChanges()),f.changeDetectorRef.detectChanges(),h}get activeInstances(){return this._activeInstances}dismissAll(t){this._modalRefs.forEach(i=>i.dismiss(t))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(t,i){let a=t.resolveComponentFactory(JB).create(this._injector);return this._applicationRef.attachView(a.hostView),i.appendChild(a.location.nativeElement),a}_attachWindowComponent(t,i,r){let o=t.resolveComponentFactory(eU).create(this._injector,r.nodes);return this._applicationRef.attachView(o.hostView),i.appendChild(o.location.nativeElement),o}_applyWindowOptions(t,i){this._windowAttributes.forEach(r=>{ut(i[r])&&(t[r]=i[r])})}_applyBackdropOptions(t,i){this._backdropAttributes.forEach(r=>{ut(i[r])&&(t[r]=i[r])})}_getContentRef(t,i,r,a,o){return r?r instanceof c1?this._createFromTemplateRef(r,a):T7(r)?this._createFromString(r):this._createFromComponent(t,i,r,a,o):new ht([])}_createFromTemplateRef(t,i){const a=t.createEmbeddedView({$implicit:i,close(o){i.close(o)},dismiss(o){i.dismiss(o)}});return this._applicationRef.attachView(a),new ht([a.rootNodes],a)}_createFromString(t){const i=this._document.createTextNode(`${t}`);return new ht([[i]])}_createFromComponent(t,i,r,a,o){const s=t.resolveComponentFactory(r),c=R1.create({providers:[{provide:mg,useValue:a}],parent:i}),l=s.create(c),u=l.location.nativeElement;return o.scrollable&&u.classList.add("component-host-scrollable"),this._applicationRef.attachView(l.hostView),new ht([[u]],l.hostView,l)}_setAriaHidden(t){const i=t.parentElement;i&&t!==this._document.body&&(Array.from(i.children).forEach(r=>{r!==t&&"SCRIPT"!==r.nodeName&&(this._ariaHiddenValues.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}),this._setAriaHidden(i))}_revertAriaHidden(){this._ariaHiddenValues.forEach((t,i)=>{t?i.setAttribute("aria-hidden",t):i.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(t){const i=()=>{const r=this._modalRefs.indexOf(t);r>-1&&(this._modalRefs.splice(r,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(t),this._activeInstances.emit(this._modalRefs),t.result.then(i,i)}_registerWindowCmpt(t){this._windowCmpts.push(t),this._activeWindowCmptHasChanged.next(),t.onDestroy(()=>{const i=this._windowCmpts.indexOf(t);i>-1&&(this._windowCmpts.splice(i,1),this._activeWindowCmptHasChanged.next())})}}return e.\u0275fac=function(t){return new(t||e)(q(F5),q(R1),q(E1),q(tU),q($a),q($2))},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),iU=(()=>{class e{constructor(t){this._ngbConfig=t,this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(t){this._animation=t}}return e.\u0275fac=function(t){return new(t||e)(q(N6))},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),vg=(()=>{class e{constructor(t,i,r,a){this._moduleCFR=t,this._injector=i,this._modalStack=r,this._config=a}open(t,i={}){const r=Object.assign(Object.assign(Object.assign({},this._config),{animation:this._config.animation}),i);return this._modalStack.open(this._moduleCFR,this._injector,t,r)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(t){this._modalStack.dismissAll(t)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return e.\u0275fac=function(t){return new(t||e)(q(g6),q(R1),q(nU),q(iU))},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),_g=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({providers:[vg]}),e})(),Lg=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({imports:[[R3]]}),e})(),xg=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({imports:[[R3]]}),e})();class lU{constructor(n,t){this.open=n,this.close=t,t||(this.close=n)}isManual(){return"manual"===this.open||"manual"===this.close}}const uU={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},Eg=e=>e>0?Hp(e):n=>n;let pU=(()=>{class e{constructor(t){this._ngbConfig=t,this.autoClose=!0,this.placement="auto",this.triggers="click",this.disablePopover=!1,this.openDelay=0,this.closeDelay=0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(t){this._animation=t}}return e.\u0275fac=function(t){return new(t||e)(q(N6))},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),gU=0,mU=(()=>{class e{isTitleTemplate(){return this.title instanceof c1}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=s2({type:e,selectors:[["ngb-popover-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(t,i){2&t&&(O4("id",i.id),He("popover"+(i.popoverClass?" "+i.popoverClass:"")),n1("fade",i.animation))},inputs:{animation:"animation",title:"title",id:"id",popoverClass:"popoverClass",context:"context"},ngContentSelectors:x7,decls:4,vars:1,consts:[["data-popper-arrow","",1,"popover-arrow"],["class","popover-header",4,"ngIf"],[1,"popover-body"],[1,"popover-header"],["simpleTitle",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,i){1&t&&(H5(),I(0,"div",0),R(1,jF,4,2,"h3",1),g(2,"div",2),w5(3),m()),2&t&&(_(1),b("ngIf",i.title))},directives:[B1,M6],encapsulation:2,changeDetection:0}),e})(),vU=(()=>{class e{constructor(t,i,r,a,o,s,c,l,u){this._elementRef=t,this._renderer=i,this._ngZone=s,this._document=c,this._changeDetector=l,this.shown=new u2,this.hidden=new u2,this._ngbPopoverWindowId="ngb-popover-"+gU++,this._windowRef=null,this._positioning=function ag(){let e=null;return{createPopper(n){if(!e){let i=(n.updatePopperOptions||rg)(ig(n));e=AP(n.hostElement,n.targetElement,i)}},update(){e&&e.update()},setOptions(n){if(e){let i=(n.updatePopperOptions||rg)(ig(n));e.setOptions(i)}},destroy(){e&&(e.destroy(),e=null)}}}(),this.animation=o.animation,this.autoClose=o.autoClose,this.placement=o.placement,this.triggers=o.triggers,this.container=o.container,this.disablePopover=o.disablePopover,this.popoverClass=o.popoverClass,this.openDelay=o.openDelay,this.closeDelay=o.closeDelay,this._popupService=new ZB(mU,r,a,i,this._ngZone,u)}_isDisabled(){return!(!this.disablePopover&&(this.ngbPopover||this.popoverTitle))}open(t){if(!this._windowRef&&!this._isDisabled()){const{windowRef:i,transition$:r}=this._popupService.open(this.ngbPopover,t,this.animation);this._windowRef=i,this._windowRef.instance.animation=this.animation,this._windowRef.instance.title=this.popoverTitle,this._windowRef.instance.context=t,this._windowRef.instance.popoverClass=this.popoverClass,this._windowRef.instance.id=this._ngbPopoverWindowId,this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ngbPopoverWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._elementRef.nativeElement,targetElement:this._windowRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,baseClass:"bs-popover",updatePopperOptions:og([0,8])}),Promise.resolve().then(()=>{this._positioning.update(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update())})}),function eg(e,n,t,i,r,a,o,s){t&&e.runOutsideAngular((e=>wB?()=>setTimeout(()=>e(),100):e)(()=>{const l=h3(n,"keydown").pipe(U1(r),Z1(h=>h.which===j1.Escape),p3(h=>h.preventDefault())),u=h3(n,"mousedown").pipe(m2(h=>{const p=h.target;return 2!==h.button&&!H0(p,o)&&("inside"===t?H0(p,a)&&Xp(p,s):"outside"===t?!H0(p,a):Xp(p,s)||!H0(p,a))}),U1(r)),f=h3(n,"mouseup").pipe(y7(u),Z1(([h,p])=>p),Hp(0),U1(r));yp([l.pipe(m2(h=>0)),f.pipe(m2(h=>1))]).subscribe(h=>e.run(()=>i(h)))}))}(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),r.subscribe(()=>this.shown.emit())}}close(t=this.animation){this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(t).subscribe(()=>{var i;this._windowRef=null,this._positioning.destroy(),null===(i=this._zoneSubscription)||void 0===i||i.unsubscribe(),this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=function hU(e,n,t,i,r,a,o=0,s=0){const c=function fU(e,n=uU){const t=(e||"").trim();if(0===t.length)return[];const i=t.split(/\s+/).map(a=>a.split(":")).map(a=>{let o=n[a[0]]||a;return new lU(o[0],o[1])}),r=i.filter(a=>a.isManual());if(r.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===r.length&&i.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return i}(t);if(1===c.length&&c[0].isManual())return()=>{};const l=function CU(e,n,t,i){return new A2(r=>{const a=[],o=()=>r.next(!0),s=()=>r.next(!1),c=()=>r.next(!i());return t.forEach(l=>{l.open===l.close?a.push(e.listen(n,l.open,c)):a.push(e.listen(n,l.open,o),e.listen(n,l.close,s))}),()=>{a.forEach(l=>l())}})}(e,n,c,i).pipe(function dU(e,n,t){return i=>{let r=null;const a=i.pipe(m2(c=>({open:c})),Z1(c=>{const l=t();return l===c.open||r&&r.open!==l?(r&&r.open!==c.open&&(r=null),!1):(r=c,!0)}),tc());return ec(a.pipe(Z1(c=>c.open),Eg(e)),a.pipe(Z1(c=>!c.open),Eg(n))).pipe(Z1(c=>c===r&&(r=null,c.open!==t())),m2(c=>c.open))}}(o,s,i)).subscribe(u=>u?r():a());return()=>l.unsubscribe()}(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({ngbPopover:t,popoverTitle:i,disablePopover:r,popoverClass:a}){a&&this.isOpen()&&(this._windowRef.instance.popoverClass=a.currentValue),(t||i||r)&&this._isDisabled()&&this.close()}ngOnDestroy(){var t;this.close(!1),null===(t=this._unregisterListenersFn)||void 0===t||t.call(this)}}return e.\u0275fac=function(t){return new(t||e)(V(I2),V(y3),V(R1),V(Z3),V(pU),V($2),V(E1),V(X3),V(F5))},e.\u0275dir=U({type:e,selectors:[["","ngbPopover",""]],inputs:{animation:"animation",autoClose:"autoClose",ngbPopover:"ngbPopover",popoverTitle:"popoverTitle",placement:"placement",triggers:"triggers",container:"container",disablePopover:"disablePopover",popoverClass:"popoverClass",openDelay:"openDelay",closeDelay:"closeDelay"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbPopover"],features:[z1]}),e})(),Tg=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({imports:[[R3]]}),e})(),Ag=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({imports:[[R3]]}),e})(),kg=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({imports:[[R3]]}),e})(),Ig=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({imports:[[R3]]}),e})(),Og=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({imports:[[R3]]}),e})(),Rg=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({}),e})();new v2("live announcer delay",{providedIn:"root",factory:function yU(){return 100}});let Pg=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({imports:[[R3]]}),e})(),Fg=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({}),e})();const bU=[Gp,Wp,Kp,Zp,Jp,Cg,gg,_g,Lg,Fg,xg,Tg,Ag,kg,Ig,Og,Rg,Pg];let LU=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({imports:[bU,Gp,Wp,Kp,Zp,Jp,Cg,gg,_g,Lg,Fg,xg,Tg,Ag,kg,Ig,Og,Rg,Pg]}),e})();function Bg(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,i)}return t}function Y(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Bg(Object(t),!0).forEach(function(i){wU(e,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Bg(Object(t)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))})}return e}function x0(e){return(x0="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(e)}function Ug(e,n){for(var t=0;t<n.length;t++){var i=n[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function wU(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function W7(e,n){return function NU(e){if(Array.isArray(e))return e}(e)||function xU(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var o,s,i=[],r=!0,a=!1;try{for(t=t.call(e);!(r=(o=t.next()).done)&&(i.push(o.value),!n||i.length!==n);r=!0);}catch(c){a=!0,s=c}finally{try{!r&&null!=t.return&&t.return()}finally{if(a)throw s}}return i}}(e,n)||jg(e,n)||function TU(){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 T0(e){return function SU(e){if(Array.isArray(e))return q7(e)}(e)||function zU(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||jg(e)||function EU(){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 jg(e,n){if(e){if("string"==typeof e)return q7(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return q7(e,n)}}function q7(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t<n;t++)i[t]=e[t];return i}var Gg=function(){},K7={},$g={},Wg=null,qg={mark:Gg,measure:Gg};try{"undefined"!=typeof window&&(K7=window),"undefined"!=typeof document&&($g=document),"undefined"!=typeof MutationObserver&&(Wg=MutationObserver),"undefined"!=typeof performance&&(qg=performance)}catch(e){}var Kg=(K7.navigator||{}).userAgent,Yg=void 0===Kg?"":Kg,ke=K7,i1=$g,Qg=Wg,A0=qg,oe=!!i1.documentElement&&!!i1.head&&"function"==typeof i1.addEventListener&&"function"==typeof i1.createElement,Zg=~Yg.indexOf("MSIE")||~Yg.indexOf("Trident/"),se="___FONT_AWESOME___",Xg="svg-inline--fa",gt="data-fa-i2svg",Q7="data-fa-pseudo-element",Z7="data-prefix",J7="data-icon",em="fontawesome-i2svg",OU=["HTML","HEAD","STYLE","SCRIPT"],tm=function(){try{return!0}catch(e){return!1}}(),X7={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",fa:"solid"},k0={solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"},nm={fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},RU={"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},PU=/fa[srltdbk\-\ ]/,im="fa-layers-text",FU=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Kit)?.*/i,BU={900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},rm=[1,2,3,4,5,6,7,8,9,10],UU=rm.concat([11,12,13,14,15,16,17,18,19,20]),jU=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],GU=[].concat(T0(Object.keys(k0)),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul","duotone-group","swap-opacity","primary","secondary"]).concat(rm.map(function(e){return"".concat(e,"x")})).concat(UU.map(function(e){return"w-".concat(e)})),am=ke.FontAwesomeConfig||{};i1&&"function"==typeof i1.querySelector&&[["data-family-prefix","familyPrefix"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(function(e){var n=W7(e,2),i=n[1],r=function WU(e){return""===e||"false"!==e&&("true"===e||e)}(function $U(e){var n=i1.querySelector("script["+e+"]");if(n)return n.getAttribute(e)}(n[0]));null!=r&&(am[i]=r)});var un=Y(Y({},{familyPrefix:"fa",styleDefault:"solid",replacementClass:Xg,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0}),am);un.autoReplaceSvg||(un.observeMutations=!1);var X={};Object.keys(un).forEach(function(e){Object.defineProperty(X,e,{enumerable:!0,set:function(t){un[e]=t,I0.forEach(function(i){return i(X)})},get:function(){return un[e]}})}),ke.FontAwesomeConfig=X;var I0=[],U4={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function fn(){for(var e=12,n="";e-- >0;)n+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return n}function x6(e){for(var n=[],t=(e||[]).length>>>0;t--;)n[t]=e[t];return n}function es(e){return e.classList?x6(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(n){return n})}function om(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function O0(e){return Object.keys(e||{}).reduce(function(n,t){return n+"".concat(t,": ").concat(e[t].trim(),";")},"")}function ts(e){return e.size!==U4.size||e.x!==U4.x||e.y!==U4.y||e.rotate!==U4.rotate||e.flipX||e.flipY}function sm(){var e="fa",n=Xg,t=X.familyPrefix,i=X.replacementClass,r=':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-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, 0);\n animation-delay: var(--fa-animation-delay, 0);\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, 0);\n animation-delay: var(--fa-animation-delay, 0);\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, 0);\n animation-delay: var(--fa-animation-delay, 0);\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, 0);\n animation-delay: var(--fa-animation-delay, 0);\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, 0);\n animation-delay: var(--fa-animation-delay, 0);\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, 0);\n animation-delay: var(--fa-animation-delay, 0);\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, 0);\n animation-delay: var(--fa-animation-delay, 0);\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 transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';if(t!==e||i!==n){var a=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(n),"g");r=r.replace(a,".".concat(t,"-")).replace(o,"--".concat(t,"-")).replace(s,".".concat(i))}return r}var cm=!1;function ns(){X.autoAddCss&&!cm&&(function QU(e){if(e&&oe){var n=i1.createElement("style");n.setAttribute("type","text/css"),n.innerHTML=e;for(var t=i1.head.childNodes,i=null,r=t.length-1;r>-1;r--){var a=t[r],o=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(i=a)}i1.head.insertBefore(n,i)}}(sm()),cm=!0)}var nj={mixout:function(){return{dom:{css:sm,insertCss:ns}}},hooks:function(){return{beforeDOMElementCreation:function(){ns()},beforeI2svg:function(){ns()}}}},ce=ke||{};ce[se]||(ce[se]={}),ce[se].styles||(ce[se].styles={}),ce[se].hooks||(ce[se].hooks={}),ce[se].shims||(ce[se].shims=[]);var V4=ce[se],lm=[],R0=!1;function rj(e){!oe||(R0?setTimeout(e,0):lm.push(e))}function Cn(e){var n=e.tag,t=e.attributes,i=void 0===t?{}:t,r=e.children,a=void 0===r?[]:r;return"string"==typeof e?om(e):"<".concat(n," ").concat(function JU(e){return Object.keys(e||{}).reduce(function(n,t){return n+"".concat(t,'="').concat(om(e[t]),'" ')},"").trim()}(i),">").concat(a.map(Cn).join(""),"</").concat(n,">")}function um(e,n,t){if(e&&e[n]&&e[n][t])return{prefix:n,iconName:t,icon:e[n][t]}}oe&&((R0=(i1.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(i1.readyState))||i1.addEventListener("DOMContentLoaded",function e(){i1.removeEventListener("DOMContentLoaded",e),R0=1,lm.map(function(n){return n()})}));var is=function(n,t,i,r){var c,l,u,a=Object.keys(n),o=a.length,s=void 0!==r?function(n,t){return function(i,r,a,o){return n.call(t,i,r,a,o)}}(t,r):t;for(void 0===i?(c=1,u=n[a[0]]):(c=0,u=i);c<o;c++)u=s(u,n[l=a[c]],l,n);return u};function rs(e){var n=function oj(e){for(var n=[],t=0,i=e.length;t<i;){var r=e.charCodeAt(t++);if(r>=55296&&r<=56319&&t<i){var a=e.charCodeAt(t++);56320==(64512&a)?n.push(((1023&r)<<10)+(1023&a)+65536):(n.push(r),t--)}else n.push(r)}return n}(e);return 1===n.length?n[0].toString(16):null}function fm(e){return Object.keys(e).reduce(function(n,t){var i=e[t];return i.icon?n[i.iconName]=i.icon:n[t]=i,n},{})}function as(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t.skipHooks,r=void 0!==i&&i,a=fm(n);"function"!=typeof V4.hooks.addPack||r?V4.styles[e]=Y(Y({},V4.styles[e]||{}),a):V4.hooks.addPack(e,fm(n)),"fas"===e&&as("fa",n)}var dn=V4.styles,cj=V4.shims,lj=Object.values(nm),os=null,Cm={},dm={},hm={},pm={},gm={},uj=Object.keys(X7);function Cj(e,n){var t=n.split("-"),i=t[0],r=t.slice(1).join("-");return i!==e||""===r||function fj(e){return~GU.indexOf(e)}(r)?null:r}var mm=function(){var n=function(a){return is(dn,function(o,s,c){return o[c]=is(s,a,{}),o},{})};Cm=n(function(r,a,o){return a[3]&&(r[a[3]]=o),a[2]&&a[2].filter(function(c){return"number"==typeof c}).forEach(function(c){r[c.toString(16)]=o}),r}),dm=n(function(r,a,o){return r[o]=o,a[2]&&a[2].filter(function(c){return"string"==typeof c}).forEach(function(c){r[c]=o}),r}),gm=n(function(r,a,o){var s=a[2];return r[o]=o,s.forEach(function(c){r[c]=o}),r});var t="far"in dn||X.autoFetchSvg,i=is(cj,function(r,a){var o=a[0],s=a[1],c=a[2];return"far"===s&&!t&&(s="fas"),"string"==typeof o&&(r.names[o]={prefix:s,iconName:c}),"number"==typeof o&&(r.unicodes[o.toString(16)]={prefix:s,iconName:c}),r},{names:{},unicodes:{}});hm=i.names,pm=i.unicodes,os=P0(X.styleDefault)};function ss(e,n){return(Cm[e]||{})[n]}function E6(e,n){return(gm[e]||{})[n]}function vm(e){return hm[e]||{prefix:null,iconName:null}}function Oe(){return os}function P0(e){return k0[e]||k0[X7[e]]||(e in V4.styles?e:null)||null}function F0(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.skipLookups,i=void 0!==t&&t,r=null,a=e.reduce(function(o,s){var c=Cj(X.familyPrefix,s);if(dn[s]?(s=lj.includes(s)?RU[s]:s,r=s,o.prefix=s):uj.indexOf(s)>-1?(r=s,o.prefix=P0(s)):c?o.iconName=c:s!==X.replacementClass&&o.rest.push(s),!i&&o.prefix&&o.iconName){var l="fa"===r?vm(o.iconName):{},u=E6(o.prefix,o.iconName);l.prefix&&(r=null),o.iconName=l.iconName||u||o.iconName,o.prefix=l.prefix||o.prefix,"far"===o.prefix&&!dn.far&&dn.fas&&!X.autoFetchSvg&&(o.prefix="fas")}return o},{prefix:null,iconName:null,rest:[]});return("fa"===a.prefix||"fa"===r)&&(a.prefix=Oe()||"fas"),a}(function YU(e){I0.push(e)})(function(e){os=P0(e.styleDefault)}),mm();var pj=function(){function e(){(function VU(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")})(this,e),this.definitions={}}return function HU(e,n,t){n&&Ug(e.prototype,n),t&&Ug(e,t),Object.defineProperty(e,"prototype",{writable:!1})}(e,[{key:"add",value:function(){for(var t=this,i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];var o=r.reduce(this._pullDefinitions,{});Object.keys(o).forEach(function(s){t.definitions[s]=Y(Y({},t.definitions[s]||{}),o[s]),as(s,o[s]);var c=nm[s];c&&as(c,o[s]),mm()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(t,i){var r=i.prefix&&i.iconName&&i.icon?{0:i}:i;return Object.keys(r).map(function(a){var o=r[a],s=o.prefix,c=o.iconName,l=o.icon,u=l[2];t[s]||(t[s]={}),u.length>0&&u.forEach(function(f){"string"==typeof f&&(t[s][f]=l)}),t[s][c]=l}),t}}]),e}(),_m=[],T6={},A6={},gj=Object.keys(A6);function ls(e,n){for(var t=arguments.length,i=new Array(t>2?t-2:0),r=2;r<t;r++)i[r-2]=arguments[r];var a=T6[e]||[];return a.forEach(function(o){n=o.apply(null,[n].concat(i))}),n}function vt(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),i=1;i<n;i++)t[i-1]=arguments[i];var r=T6[e]||[];r.forEach(function(a){a.apply(null,t)})}function le(){var e=arguments[0],n=Array.prototype.slice.call(arguments,1);return A6[e]?A6[e].apply(null,n):void 0}function us(e){"fa"===e.prefix&&(e.prefix="fas");var n=e.iconName,t=e.prefix||Oe();if(n)return n=E6(t,n)||n,um(Mm.definitions,t,n)||um(V4.styles,t,n)}var Mm=new pj,_j={i2svg:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return oe?(vt("beforeI2svg",n),le("pseudoElements2svg",n),le("i2svg",n)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.autoReplaceSvgRoot;!1===X.autoReplaceSvg&&(X.autoReplaceSvg=!0),X.observeMutations=!0,rj(function(){yj({autoReplaceSvgRoot:t}),vt("watch",n)})}},B3={noAuto:function(){X.autoReplaceSvg=!1,X.observeMutations=!1,vt("noAuto")},config:X,dom:_j,parse:{icon:function(n){if(null===n)return null;if("object"===x0(n)&&n.prefix&&n.iconName)return{prefix:n.prefix,iconName:E6(n.prefix,n.iconName)||n.iconName};if(Array.isArray(n)&&2===n.length){var t=0===n[1].indexOf("fa-")?n[1].slice(3):n[1],i=P0(n[0]);return{prefix:i,iconName:E6(i,t)||t}}if("string"==typeof n&&(n.indexOf("".concat(X.familyPrefix,"-"))>-1||n.match(PU))){var r=F0(n.split(" "),{skipLookups:!0});return{prefix:r.prefix||Oe(),iconName:E6(r.prefix,r.iconName)||r.iconName}}if("string"==typeof n){var a=Oe();return{prefix:a,iconName:E6(a,n)||n}}}},library:Mm,findIconDefinition:us,toHtml:Cn},yj=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.autoReplaceSvgRoot,i=void 0===t?i1:t;(Object.keys(V4.styles).length>0||X.autoFetchSvg)&&oe&&X.autoReplaceSvg&&B3.dom.i2svg({node:i})};function B0(e,n){return Object.defineProperty(e,"abstract",{get:n}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(i){return Cn(i)})}}),Object.defineProperty(e,"node",{get:function(){if(oe){var i=i1.createElement("div");return i.innerHTML=e.html,i.children}}}),e}function fs(e){var n=e.icons,t=n.main,i=n.mask,r=e.prefix,a=e.iconName,o=e.transform,s=e.symbol,c=e.title,l=e.maskId,u=e.titleId,f=e.extra,h=e.watchable,p=void 0!==h&&h,L=i.found?i:t,H=L.width,S=L.height,N="fak"===r,w=[X.replacementClass,a?"".concat(X.familyPrefix,"-").concat(a):""].filter(function(P2){return-1===f.classes.indexOf(P2)}).filter(function(P2){return""!==P2||!!P2}).concat(f.classes).join(" "),A={children:[],attributes:Y(Y({},f.attributes),{},{"data-prefix":r,"data-icon":a,class:w,role:f.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(H," ").concat(S)})},F=N&&!~f.classes.indexOf("fa-fw")?{width:"".concat(H/S*16*.0625,"em")}:{};p&&(A.attributes[gt]=""),c&&(A.children.push({tag:"title",attributes:{id:A.attributes["aria-labelledby"]||"title-".concat(u||fn())},children:[c]}),delete A.attributes.title);var B=Y(Y({},A),{},{prefix:r,iconName:a,main:t,mask:i,maskId:l,transform:o,symbol:s,styles:Y(Y({},F),f.styles)}),Q=i.found&&t.found?le("generateAbstractMask",B)||{children:[],attributes:{}}:le("generateAbstractIcon",B)||{children:[],attributes:{}},g2=Q.attributes;return B.children=Q.children,B.attributes=g2,s?function Lj(e){var t=e.iconName,i=e.children,r=e.attributes,a=e.symbol,o=!0===a?"".concat(e.prefix,"-").concat(X.familyPrefix,"-").concat(t):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Y(Y({},r),{},{id:o}),children:i}]}]}(B):function bj(e){var n=e.children,t=e.main,i=e.mask,r=e.attributes,a=e.styles,o=e.transform;if(ts(o)&&t.found&&!i.found){var l={x:t.width/t.height/2,y:.5};r.style=O0(Y(Y({},a),{},{"transform-origin":"".concat(l.x+o.x/16,"em ").concat(l.y+o.y/16,"em")}))}return[{tag:"svg",attributes:r,children:n}]}(B)}function ym(e){var n=e.content,t=e.width,i=e.height,r=e.transform,a=e.title,o=e.extra,s=e.watchable,c=void 0!==s&&s,l=Y(Y(Y({},o.attributes),a?{title:a}:{}),{},{class:o.classes.join(" ")});c&&(l[gt]="");var u=Y({},o.styles);ts(r)&&(u.transform=function ej(e){var n=e.transform,t=e.width,r=e.height,a=void 0===r?16:r,o=e.startCentered,s=void 0!==o&&o,c="";return c+=s&&Zg?"translate(".concat(n.x/16-(void 0===t?16:t)/2,"em, ").concat(n.y/16-a/2,"em) "):s?"translate(calc(-50% + ".concat(n.x/16,"em), calc(-50% + ").concat(n.y/16,"em)) "):"translate(".concat(n.x/16,"em, ").concat(n.y/16,"em) "),(c+="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "))+"rotate(".concat(n.rotate,"deg) ")}({transform:r,startCentered:!0,width:t,height:i}),u["-webkit-transform"]=u.transform);var f=O0(u);f.length>0&&(l.style=f);var h=[];return h.push({tag:"span",attributes:l,children:[n]}),a&&h.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),h}function Vj(e){var n=e.content,t=e.title,i=e.extra,r=Y(Y(Y({},i.attributes),t?{title:t}:{}),{},{class:i.classes.join(" ")}),a=O0(i.styles);a.length>0&&(r.style=a);var o=[];return o.push({tag:"span",attributes:r,children:[n]}),t&&o.push({tag:"span",attributes:{class:"sr-only"},children:[t]}),o}var Cs=V4.styles;function ds(e){var n=e[0],t=e[1],a=W7(e.slice(4),1)[0];return{found:!0,width:n,height:t,icon:Array.isArray(a)?{tag:"g",attributes:{class:"".concat(X.familyPrefix,"-").concat("duotone-group")},children:[{tag:"path",attributes:{class:"".concat(X.familyPrefix,"-").concat("secondary"),fill:"currentColor",d:a[0]}},{tag:"path",attributes:{class:"".concat(X.familyPrefix,"-").concat("primary"),fill:"currentColor",d:a[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:a}}}}var Hj={found:!1,width:512,height:512};function hs(e,n){var t=n;return"fa"===n&&null!==X.styleDefault&&(n=Oe()),new Promise(function(i,r){if(le("missingIconAbstract"),"fa"===t){var o=vm(e)||{};e=o.iconName||e,n=o.prefix||n}if(e&&n&&Cs[n]&&Cs[n][e])return i(ds(Cs[n][e]));(function wj(e,n){!tm&&!X.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(n,'" is missing.'))})(e,n),i(Y(Y({},Hj),{},{icon:X.showMissingIcons&&e&&le("missingIconAbstract")||{}}))})}var bm=function(){},ps=X.measurePerformance&&A0&&A0.mark&&A0.measure?A0:{mark:bm,measure:bm},hn='FA "6.1.1"',gs_begin=function(n){return ps.mark("".concat(hn," ").concat(n," begins")),function(){return function(n){ps.mark("".concat(hn," ").concat(n," ends")),ps.measure("".concat(hn," ").concat(n),"".concat(hn," ").concat(n," begins"),"".concat(hn," ").concat(n," ends"))}(n)}},U0=function(){};function Vm(e){return"string"==typeof(e.getAttribute?e.getAttribute(gt):null)}function xj(e){return i1.createElementNS("http://www.w3.org/2000/svg",e)}function Ej(e){return i1.createElement(e)}function Hm(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.ceFn,i=void 0===t?"svg"===e.tag?xj:Ej:t;if("string"==typeof e)return i1.createTextNode(e);var r=i(e.tag);Object.keys(e.attributes||[]).forEach(function(o){r.setAttribute(o,e.attributes[o])});var a=e.children||[];return a.forEach(function(o){r.appendChild(Hm(o,{ceFn:i}))}),r}var j0={replace:function(n){var t=n[0];if(t.parentNode)if(n[1].forEach(function(r){t.parentNode.insertBefore(Hm(r),t)}),null===t.getAttribute(gt)&&X.keepOriginalSource){var i=i1.createComment(function Tj(e){var n=" ".concat(e.outerHTML," ");return"".concat(n,"Font Awesome fontawesome.com ")}(t));t.parentNode.replaceChild(i,t)}else t.remove()},nest:function(n){var t=n[0],i=n[1];if(~es(t).indexOf(X.replacementClass))return j0.replace(n);var r=new RegExp("".concat(X.familyPrefix,"-.*"));if(delete i[0].attributes.id,i[0].attributes.class){var a=i[0].attributes.class.split(" ").reduce(function(s,c){return c===X.replacementClass||c.match(r)?s.toSvg.push(c):s.toNode.push(c),s},{toNode:[],toSvg:[]});i[0].attributes.class=a.toSvg.join(" "),0===a.toNode.length?t.removeAttribute("class"):t.setAttribute("class",a.toNode.join(" "))}var o=i.map(function(s){return Cn(s)}).join("\n");t.setAttribute(gt,""),t.innerHTML=o}};function wm(e){e()}function Dm(e,n){var t="function"==typeof n?n:U0;if(0===e.length)t();else{var i=wm;"async"===X.mutateApproach&&(i=ke.requestAnimationFrame||wm),i(function(){var r=function zj(){return!0===X.autoReplaceSvg?j0.replace:j0[X.autoReplaceSvg]||j0.replace}(),a=gs_begin("mutate");e.map(r),a(),t()})}}var ms=!1;function Sm(){ms=!0}function vs(){ms=!1}var G0=null;function Nm(e){if(Qg&&X.observeMutations){var n=e.treeCallback,t=void 0===n?U0:n,i=e.nodeCallback,r=void 0===i?U0:i,a=e.pseudoElementsCallback,o=void 0===a?U0:a,s=e.observeMutationsRoot,c=void 0===s?i1:s;G0=new Qg(function(l){if(!ms){var u=Oe();x6(l).forEach(function(f){if("childList"===f.type&&f.addedNodes.length>0&&!Vm(f.addedNodes[0])&&(X.searchPseudoElements&&o(f.target),t(f.target)),"attributes"===f.type&&f.target.parentNode&&X.searchPseudoElements&&o(f.target.parentNode),"attributes"===f.type&&Vm(f.target)&&~jU.indexOf(f.attributeName))if("class"===f.attributeName&&function Sj(e){var n=e.getAttribute?e.getAttribute(Z7):null,t=e.getAttribute?e.getAttribute(J7):null;return n&&t}(f.target)){var h=F0(es(f.target)),L=h.iconName;f.target.setAttribute(Z7,h.prefix||u),L&&f.target.setAttribute(J7,L)}else(function Nj(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(X.replacementClass)})(f.target)&&r(f.target)})}}),oe&&G0.observe(c,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function kj(e){var n=e.getAttribute("style"),t=[];return n&&(t=n.split(";").reduce(function(i,r){var a=r.split(":"),o=a[0],s=a.slice(1);return o&&s.length>0&&(i[o]=s.join(":").trim()),i},{})),t}function Ij(e){var n=e.getAttribute("data-prefix"),t=e.getAttribute("data-icon"),i=void 0!==e.innerText?e.innerText.trim():"",r=F0(es(e));return r.prefix||(r.prefix=Oe()),n&&t&&(r.prefix=n,r.iconName=t),r.iconName&&r.prefix||r.prefix&&i.length>0&&(r.iconName=function dj(e,n){return(dm[e]||{})[n]}(r.prefix,e.innerText)||ss(r.prefix,rs(e.innerText))),r}function Oj(e){var n=x6(e.attributes).reduce(function(r,a){return"class"!==r.name&&"style"!==r.name&&(r[a.name]=a.value),r},{}),t=e.getAttribute("title"),i=e.getAttribute("data-fa-title-id");return X.autoA11y&&(t?n["aria-labelledby"]="".concat(X.replacementClass,"-title-").concat(i||fn()):(n["aria-hidden"]="true",n.focusable="false")),n}function zm(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},t=Ij(e),i=t.iconName,r=t.prefix,a=t.rest,o=Oj(e),s=ls("parseNodeAttributes",{},e),c=n.styleParser?kj(e):[];return Y({iconName:i,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:U4,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:c,attributes:o}},s)}var Pj=V4.styles;function xm(e){var n="nest"===X.autoReplaceSvg?zm(e,{styleParser:!1}):zm(e);return~n.extra.classes.indexOf(im)?le("generateLayersText",e,n):le("generateSvgReplacementMutation",e,n)}function Em(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!oe)return Promise.resolve();var t=i1.documentElement.classList,i=function(f){return t.add("".concat(em,"-").concat(f))},r=function(f){return t.remove("".concat(em,"-").concat(f))},a=Object.keys(X.autoFetchSvg?X7:Pj),o=[".".concat(im,":not([").concat(gt,"])")].concat(a.map(function(u){return".".concat(u,":not([").concat(gt,"])")})).join(", ");if(0===o.length)return Promise.resolve();var s=[];try{s=x6(e.querySelectorAll(o))}catch(u){}if(!(s.length>0))return Promise.resolve();i("pending"),r("complete");var c=gs_begin("onTree"),l=s.reduce(function(u,f){try{var h=xm(f);h&&u.push(h)}catch(p){tm||"MissingIcon"===p.name&&console.error(p)}return u},[]);return new Promise(function(u,f){Promise.all(l).then(function(h){Dm(h,function(){i("active"),i("complete"),r("pending"),"function"==typeof n&&n(),c(),u()})}).catch(function(h){c(),f(h)})})}function Fj(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;xm(e).then(function(t){t&&Dm([t],n)})}var Uj=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.transform,r=void 0===i?U4:i,a=t.symbol,o=void 0!==a&&a,s=t.mask,c=void 0===s?null:s,l=t.maskId,u=void 0===l?null:l,f=t.title,h=void 0===f?null:f,p=t.titleId,L=void 0===p?null:p,H=t.classes,S=void 0===H?[]:H,N=t.attributes,w=void 0===N?{}:N,A=t.styles,F=void 0===A?{}:A;if(n){var B=n.prefix,Q=n.iconName,f2=n.icon;return B0(Y({type:"icon"},n),function(){return vt("beforeDOMElementCreation",{iconDefinition:n,params:t}),X.autoA11y&&(h?w["aria-labelledby"]="".concat(X.replacementClass,"-title-").concat(L||fn()):(w["aria-hidden"]="true",w.focusable="false")),fs({icons:{main:ds(f2),mask:c?ds(c.icon):{found:!1,width:null,height:null,icon:{}}},prefix:B,iconName:Q,transform:Y(Y({},U4),r),symbol:o,title:h,maskId:u,titleId:L,extra:{attributes:w,styles:F,classes:S}})})}},jj={mixout:function(){return{icon:(e=Uj,function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(n||{}).icon?n:us(n||{}),r=t.mask;return r&&(r=(r||{}).icon?r:us(r||{})),e(i,Y(Y({},t),{},{mask:r}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(t){return t.treeCallback=Em,t.nodeCallback=Fj,t}}},provides:function(n){n.i2svg=function(t){var i=t.node,a=t.callback;return Em(void 0===i?i1:i,void 0===a?function(){}:a)},n.generateSvgReplacementMutation=function(t,i){var r=i.iconName,a=i.title,o=i.titleId,s=i.prefix,c=i.transform,l=i.symbol,u=i.mask,f=i.maskId,h=i.extra;return new Promise(function(p,L){Promise.all([hs(r,s),u.iconName?hs(u.iconName,u.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(H){var S=W7(H,2);p([t,fs({icons:{main:S[0],mask:S[1]},prefix:s,iconName:r,transform:c,symbol:l,maskId:f,title:a,titleId:o,extra:h,watchable:!0})])}).catch(L)})},n.generateAbstractIcon=function(t){var l,i=t.children,r=t.attributes,a=t.main,o=t.transform,c=O0(t.styles);return c.length>0&&(r.style=c),ts(o)&&(l=le("generateAbstractTransformGrouping",{main:a,transform:o,containerWidth:a.width,iconWidth:a.width})),i.push(l||a.icon),{children:i,attributes:r}}}},Gj={mixout:function(){return{layer:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.classes,a=void 0===r?[]:r;return B0({type:"layer"},function(){vt("beforeDOMElementCreation",{assembler:t,params:i});var o=[];return t(function(s){Array.isArray(s)?s.map(function(c){o=o.concat(c.abstract)}):o=o.concat(s.abstract)}),[{tag:"span",attributes:{class:["".concat(X.familyPrefix,"-layers")].concat(T0(a)).join(" ")},children:o}]})}}}},$j={mixout:function(){return{counter:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.title,a=void 0===r?null:r,o=i.classes,s=void 0===o?[]:o,c=i.attributes,l=void 0===c?{}:c,u=i.styles,f=void 0===u?{}:u;return B0({type:"counter",content:t},function(){return vt("beforeDOMElementCreation",{content:t,params:i}),Vj({content:t.toString(),title:a,extra:{attributes:l,styles:f,classes:["".concat(X.familyPrefix,"-layers-counter")].concat(T0(s))}})})}}}},Wj={mixout:function(){return{text:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.transform,a=void 0===r?U4:r,o=i.title,s=void 0===o?null:o,c=i.classes,l=void 0===c?[]:c,u=i.attributes,f=void 0===u?{}:u,h=i.styles,p=void 0===h?{}:h;return B0({type:"text",content:t},function(){return vt("beforeDOMElementCreation",{content:t,params:i}),ym({content:t,transform:Y(Y({},U4),a),title:s,extra:{attributes:f,styles:p,classes:["".concat(X.familyPrefix,"-layers-text")].concat(T0(l))}})})}}},provides:function(n){n.generateLayersText=function(t,i){var r=i.title,a=i.transform,o=i.extra,s=null,c=null;if(Zg){var l=parseInt(getComputedStyle(t).fontSize,10),u=t.getBoundingClientRect();s=u.width/l,c=u.height/l}return X.autoA11y&&!r&&(o.attributes["aria-hidden"]="true"),Promise.resolve([t,ym({content:t.innerHTML,width:s,height:c,transform:a,title:r,extra:o,watchable:!0})])}}},qj=new RegExp('"',"ug"),Tm=[1105920,1112319];function Am(e,n){var t="".concat("data-fa-pseudo-element-pending").concat(n.replace(":","-"));return new Promise(function(i,r){if(null!==e.getAttribute(t))return i();var o=x6(e.children).filter(function(Q){return Q.getAttribute(Q7)===n})[0],s=ke.getComputedStyle(e,n),c=s.getPropertyValue("font-family").match(FU),l=s.getPropertyValue("font-weight"),u=s.getPropertyValue("content");if(o&&!c)return e.removeChild(o),i();if(c&&"none"!==u&&""!==u){var f=s.getPropertyValue("content"),h=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(c[2])?k0[c[2].toLowerCase()]:BU[l],p=function Kj(e){var n=e.replace(qj,""),t=function sj(e,n){var r,t=e.length,i=e.charCodeAt(n);return i>=55296&&i<=56319&&t>n+1&&(r=e.charCodeAt(n+1))>=56320&&r<=57343?1024*(i-55296)+r-56320+65536:i}(n,0),i=t>=Tm[0]&&t<=Tm[1],r=2===n.length&&n[0]===n[1];return{value:rs(r?n[0]:n),isSecondary:i||r}}(f),L=p.value,H=p.isSecondary,S=c[0].startsWith("FontAwesome"),N=ss(h,L),w=N;if(S){var A=function hj(e){var n=pm[e],t=ss("fas",e);return n||(t?{prefix:"fas",iconName:t}:null)||{prefix:null,iconName:null}}(L);A.iconName&&A.prefix&&(N=A.iconName,h=A.prefix)}if(!N||H||o&&o.getAttribute(Z7)===h&&o.getAttribute(J7)===w)i();else{e.setAttribute(t,w),o&&e.removeChild(o);var F=function Rj(){return{iconName:null,title:null,titleId:null,prefix:null,transform:U4,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),B=F.extra;B.attributes[Q7]=n,hs(N,h).then(function(Q){var f2=fs(Y(Y({},F),{},{icons:{main:Q,mask:{prefix:null,iconName:null,rest:[]}},prefix:h,iconName:w,extra:B,watchable:!0})),g2=i1.createElement("svg");"::before"===n?e.insertBefore(g2,e.firstChild):e.appendChild(g2),g2.outerHTML=f2.map(function(P2){return Cn(P2)}).join("\n"),e.removeAttribute(t),i()}).catch(r)}}else i()})}function Yj(e){return Promise.all([Am(e,"::before"),Am(e,"::after")])}function Qj(e){return!(e.parentNode===document.head||~OU.indexOf(e.tagName.toUpperCase())||e.getAttribute(Q7)||e.parentNode&&"svg"===e.parentNode.tagName)}function km(e){if(oe)return new Promise(function(n,t){var i=x6(e.querySelectorAll("*")).filter(Qj).map(Yj),r=gs_begin("searchPseudoElements");Sm(),Promise.all(i).then(function(){r(),vs(),n()}).catch(function(){r(),vs(),t()})})}var Im=!1,Om=function(n){return n.toLowerCase().split(" ").reduce(function(i,r){var a=r.toLowerCase().split("-"),o=a[0],s=a.slice(1).join("-");if(o&&"h"===s)return i.flipX=!0,i;if(o&&"v"===s)return i.flipY=!0,i;if(s=parseFloat(s),isNaN(s))return i;switch(o){case"grow":i.size=i.size+s;break;case"shrink":i.size=i.size-s;break;case"left":i.x=i.x-s;break;case"right":i.x=i.x+s;break;case"up":i.y=i.y-s;break;case"down":i.y=i.y+s;break;case"rotate":i.rotate=i.rotate+s}return i},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},_s={x:0,y:0,width:"100%",height:"100%"};function Rm(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||n)&&(e.attributes.fill="black"),e}!function mj(e,n){var t=n.mixoutsTo;_m=e,T6={},Object.keys(A6).forEach(function(i){-1===gj.indexOf(i)&&delete A6[i]}),_m.forEach(function(i){var r=i.mixout?i.mixout():{};if(Object.keys(r).forEach(function(o){"function"==typeof r[o]&&(t[o]=r[o]),"object"===x0(r[o])&&Object.keys(r[o]).forEach(function(s){t[o]||(t[o]={}),t[o][s]=r[o][s]})}),i.hooks){var a=i.hooks();Object.keys(a).forEach(function(o){T6[o]||(T6[o]=[]),T6[o].push(a[o])})}i.provides&&i.provides(A6)})}([nj,jj,Gj,$j,Wj,{hooks:function(){return{mutationObserverCallbacks:function(t){return t.pseudoElementsCallback=km,t}}},provides:function(n){n.pseudoElements2svg=function(t){var i=t.node;X.searchPseudoElements&&km(void 0===i?i1:i)}}},{mixout:function(){return{dom:{unwatch:function(){Sm(),Im=!0}}}},hooks:function(){return{bootstrap:function(){Nm(ls("mutationObserverCallbacks",{}))},noAuto:function(){!function Aj(){!G0||G0.disconnect()}()},watch:function(t){var i=t.observeMutationsRoot;Im?vs():Nm(ls("mutationObserverCallbacks",{observeMutationsRoot:i}))}}}},{mixout:function(){return{parse:{transform:function(t){return Om(t)}}}},hooks:function(){return{parseNodeAttributes:function(t,i){var r=i.getAttribute("data-fa-transform");return r&&(t.transform=Om(r)),t}}},provides:function(n){n.generateAbstractTransformGrouping=function(t){var i=t.main,r=t.transform,o=t.iconWidth,s={transform:"translate(".concat(t.containerWidth/2," 256)")},c="translate(".concat(32*r.x,", ").concat(32*r.y,") "),l="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),u="rotate(".concat(r.rotate," 0 0)"),p={outer:s,inner:{transform:"".concat(c," ").concat(l," ").concat(u)},path:{transform:"translate(".concat(o/2*-1," -256)")}};return{tag:"g",attributes:Y({},p.outer),children:[{tag:"g",attributes:Y({},p.inner),children:[{tag:i.icon.tag,children:i.icon.children,attributes:Y(Y({},i.icon.attributes),p.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(t,i){var r=i.getAttribute("data-fa-mask"),a=r?F0(r.split(" ").map(function(o){return o.trim()})):{prefix:null,iconName:null,rest:[]};return a.prefix||(a.prefix=Oe()),t.mask=a,t.maskId=i.getAttribute("data-fa-mask-id"),t}}},provides:function(n){n.generateAbstractMask=function(t){var e,i=t.children,r=t.attributes,a=t.main,o=t.mask,s=t.maskId,u=a.icon,h=o.icon,p=function XU(e){var n=e.transform,i=e.iconWidth,r={transform:"translate(".concat(e.containerWidth/2," 256)")},a="translate(".concat(32*n.x,", ").concat(32*n.y,") "),o="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),s="rotate(".concat(n.rotate," 0 0)");return{outer:r,inner:{transform:"".concat(a," ").concat(o," ").concat(s)},path:{transform:"translate(".concat(i/2*-1," -256)")}}}({transform:t.transform,containerWidth:o.width,iconWidth:a.width}),L={tag:"rect",attributes:Y(Y({},_s),{},{fill:"white"})},H=u.children?{children:u.children.map(Rm)}:{},S={tag:"g",attributes:Y({},p.inner),children:[Rm(Y({tag:u.tag,attributes:Y(Y({},u.attributes),p.path)},H))]},N={tag:"g",attributes:Y({},p.outer),children:[S]},w="mask-".concat(s||fn()),A="clip-".concat(s||fn()),F={tag:"mask",attributes:Y(Y({},_s),{},{id:w,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[L,N]},B={tag:"defs",children:[{tag:"clipPath",attributes:{id:A},children:(e=h,"g"===e.tag?e.children:[e])},F]};return i.push(B,{tag:"rect",attributes:Y({fill:"currentColor","clip-path":"url(#".concat(A,")"),mask:"url(#".concat(w,")")},_s)}),{children:i,attributes:r}}}},{provides:function(n){var t=!1;ke.matchMedia&&(t=ke.matchMedia("(prefers-reduced-motion: reduce)").matches),n.missingIconAbstract=function(){var i=[],r={fill:"currentColor"},a={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};i.push({tag:"path",attributes:Y(Y({},r),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var o=Y(Y({},a),{},{attributeName:"opacity"}),s={tag:"circle",attributes:Y(Y({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||s.children.push({tag:"animate",attributes:Y(Y({},a),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Y(Y({},o),{},{values:"1;0;1;1;0;1;"})}),i.push(s),i.push({tag:"path",attributes:Y(Y({},r),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:Y(Y({},o),{},{values:"1;0;0;0;0;1;"})}]}),t||i.push({tag:"path",attributes:Y(Y({},r),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Y(Y({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:i}}}},{hooks:function(){return{parseNodeAttributes:function(t,i){var r=i.getAttribute("data-fa-symbol");return t.symbol=null!==r&&(""===r||r),t}}}}],{mixoutsTo:B3});var aG=B3.parse,oG=B3.icon;const sG=["*"],uG=e=>{const n={"fa-spin":e.spin,"fa-pulse":e.pulse,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-inverse":e.inverse,"fa-layers-counter":e.counter,"fa-flip-horizontal":"horizontal"===e.flip||"both"===e.flip,"fa-flip-vertical":"vertical"===e.flip||"both"===e.flip,[`fa-${e.size}`]:null!==e.size,[`fa-rotate-${e.rotate}`]:null!==e.rotate,[`fa-pull-${e.pull}`]:null!==e.pull,[`fa-stack-${e.stackItemSize}`]:null!=e.stackItemSize};return Object.keys(n).map(t=>n[t]?t:null).filter(t=>t)};let dG=(()=>{class e{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),hG=(()=>{class e{constructor(){this.definitions={}}addIcons(...t){for(const i of t){i.prefix in this.definitions||(this.definitions[i.prefix]={}),this.definitions[i.prefix][i.iconName]=i;for(const r of i.icon[2])"string"==typeof r&&(this.definitions[i.prefix][r]=i)}}addIconPacks(...t){for(const i of t){const r=Object.keys(i).map(a=>i[a]);this.addIcons(...r)}}getIconDefinition(t,i){return t in this.definitions&&i in this.definitions[t]?this.definitions[t][i]:null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),pG=(()=>{class e{constructor(){this.stackItemSize="1x"}ngOnChanges(t){if("size"in t)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: <fa-stack size="4x">...</fa-stack>.')}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=U({type:e,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[z1]}),e})(),gG=(()=>{class e{constructor(t,i){this.renderer=t,this.elementRef=i}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(t){"size"in t&&(null!=t.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${t.size.currentValue}`),null!=t.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${t.size.previousValue}`))}}return e.\u0275fac=function(t){return new(t||e)(V(y3),V(I2))},e.\u0275cmp=s2({type:e,selectors:[["fa-stack"]],inputs:{size:"size"},features:[z1],ngContentSelectors:sG,decls:1,vars:0,template:function(t,i){1&t&&(H5(),w5(0))},encapsulation:2}),e})(),Pm=(()=>{class e{constructor(t,i,r,a,o){this.sanitizer=t,this.config=i,this.iconLibrary=r,this.stackItem=a,this.classes=[],null!=o&&null==a&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: <fa-icon stackItemSize="2x"></fa-icon>.')}ngOnChanges(t){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let i=null;if(i=null==this.icon?this.config.fallbackIcon:this.icon,t){const r=this.findIconDefinition(i);if(null!=r){const a=this.buildParams();this.renderIcon(r,a)}}}render(){this.ngOnChanges({})}findIconDefinition(t){const i=((e,n)=>(e=>void 0!==e.prefix&&void 0!==e.iconName)(e)?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:n,iconName:e}:void 0)(t,this.config.defaultPrefix);if("icon"in i)return i;const r=this.iconLibrary.getIconDefinition(i.prefix,i.iconName);return null!=r?r:((e=>{throw new Error(`Could not find icon with iconName=${e.iconName} and prefix=${e.prefix} in the icon library.`)})(i),null)}buildParams(){const t={flip:this.flip,spin:this.spin,pulse:this.pulse,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:"boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize:null},i="string"==typeof this.transform?aG.transform(this.transform):this.transform;return{title:this.title,transform:i,classes:[...uG(t),...this.classes],mask:null!=this.mask?this.findIconDefinition(this.mask):null,styles:null!=this.styles?this.styles:{},symbol:this.symbol,attributes:{role:this.a11yRole}}}renderIcon(t,i){const r=oG(t,i);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(r.html.join("\n"))}}return e.\u0275fac=function(t){return new(t||e)(V(uh),V(dG),V(hG),V(pG,8),V(gG,8))},e.\u0275cmp=s2({type:e,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(t,i){2&t&&(O4("innerHTML",i.renderedIconHTML,dl),j("title",i.title))},inputs:{icon:"icon",title:"title",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",classes:"classes",transform:"transform",a11yRole:"a11yRole"},features:[z1],decls:0,vars:0,template:function(t,i){},encapsulation:2}),e})(),mG=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({}),e})();function $0(e,n){const t=K(e)?e:()=>e,i=r=>r.error(t());return new A2(n?r=>n.schedule(i,0,r):i)}const W0=n3(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Fm(e){return new A2(n=>{o3(e()).subscribe(n)})}function Bm(){return a1((e,n)=>{let t=null;e._refCount++;const i=O2(n,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(t=null);const r=e._connection,a=t;t=null,r&&(!a||r===a)&&r.unsubscribe(),n.unsubscribe()});e.subscribe(i),i.closed||(t=e.connect())})}class vG extends A2{constructor(n,t){super(),this.source=n,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,G6(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,null==n||n.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new H2;const t=this.getSubject();n.add(this.source.subscribe(O2(t,void 0,()=>{this._teardown(),t.complete()},i=>{this._teardown(),t.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=H2.EMPTY)}return n}refCount(){return Bm()(this)}}function _G(e,n,t,i,r){return(a,o)=>{let s=t,c=n,l=0;a.subscribe(O2(o,u=>{const f=l++;c=s?e(c,u,f):(s=!0,u),i&&o.next(c)},r&&(()=>{s&&o.next(c),o.complete()})))}}function Um(e,n){return a1(_G(e,n,arguments.length>=2,!0))}function Re(e){return a1((n,t)=>{let a,i=null,r=!1;i=n.subscribe(O2(t,void 0,void 0,o=>{a=o3(e(o,Re(e)(n))),i?(i.unsubscribe(),i=null,a.subscribe(t)):r=!0})),r&&(i.unsubscribe(),i=null,a.subscribe(t))})}function pn(e,n){return K(n)?b1(e,n,1):b1(e,1)}function Ms(e){return e<=0?()=>c4:a1((n,t)=>{let i=[];n.subscribe(O2(t,r=>{i.push(r),e<i.length&&i.shift()},()=>{for(const r of i)t.next(r);t.complete()},void 0,()=>{i=null}))})}function jm(e=MG){return a1((n,t)=>{let i=!1;n.subscribe(O2(t,r=>{i=!0,t.next(r)},()=>i?t.complete():t.error(e())))})}function MG(){return new W0}function Gm(e){return a1((n,t)=>{let i=!1;n.subscribe(O2(t,r=>{i=!0,t.next(r)},()=>{i||t.next(e),t.complete()}))})}function k6(e,n){const t=arguments.length>=2;return i=>i.pipe(e?Z1((r,a)=>e(r,a,i)):o4,Y1(1),t?Gm(n):jm(()=>new W0))}class ue{constructor(n,t){this.id=n,this.url=t}}class q0 extends ue{constructor(n,t,i="imperative",r=null){super(n,t),this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class gn extends ue{constructor(n,t,i){super(n,t),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class $m extends ue{constructor(n,t,i){super(n,t),this.reason=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class LG extends ue{constructor(n,t,i){super(n,t),this.error=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class VG extends ue{constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class HG extends ue{constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class wG extends ue{constructor(n,t,i,r,a){super(n,t),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=a}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class DG extends ue{constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class SG extends ue{constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Wm{constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class qm{constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class NG{constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class zG{constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class xG{constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class EG{constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Km{constructor(n,t,i){this.routerEvent=n,this.position=t,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const y2="primary";class TG{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t[0]:t}return null}getAll(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function I6(e){return new TG(e)}const Ym="ngNavigationCancelingError";function ys(e){const n=Error("NavigationCancelingError: "+e);return n[Ym]=!0,n}function kG(e,n,t){const i=t.path.split("/");if(i.length>e.length||"full"===t.pathMatch&&(n.hasChildren()||i.length<e.length))return null;const r={};for(let a=0;a<i.length;a++){const o=i[a],s=e[a];if(o.startsWith(":"))r[o.substring(1)]=s;else if(o!==s.path)return null}return{consumed:e.slice(0,i.length),posParams:r}}function j4(e,n){const t=e?Object.keys(e):void 0,i=n?Object.keys(n):void 0;if(!t||!i||t.length!=i.length)return!1;let r;for(let a=0;a<t.length;a++)if(r=t[a],!Qm(e[r],n[r]))return!1;return!0}function Qm(e,n){if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return!1;const t=[...e].sort(),i=[...n].sort();return t.every((r,a)=>i[a]===r)}return e===n}function Zm(e){return Array.prototype.concat.apply([],e)}function Jm(e){return e.length>0?e[e.length-1]:null}function J1(e,n){for(const t in e)e.hasOwnProperty(t)&&n(e[t],t)}function G4(e){return Ta(e)?e:V5(e)?G1(Promise.resolve(e)):a2(e)}const RG={exact:function tv(e,n,t){if(!Mt(e.segments,n.segments)||!K0(e.segments,n.segments,t)||e.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!e.children[i]||!tv(e.children[i],n.children[i],t))return!1;return!0},subset:nv},Xm={exact:function PG(e,n){return j4(e,n)},subset:function FG(e,n){return Object.keys(n).length<=Object.keys(e).length&&Object.keys(n).every(t=>Qm(e[t],n[t]))},ignored:()=>!0};function ev(e,n,t){return RG[t.paths](e.root,n.root,t.matrixParams)&&Xm[t.queryParams](e.queryParams,n.queryParams)&&!("exact"===t.fragment&&e.fragment!==n.fragment)}function nv(e,n,t){return iv(e,n,n.segments,t)}function iv(e,n,t,i){if(e.segments.length>t.length){const r=e.segments.slice(0,t.length);return!(!Mt(r,t)||n.hasChildren()||!K0(r,t,i))}if(e.segments.length===t.length){if(!Mt(e.segments,t)||!K0(e.segments,t,i))return!1;for(const r in n.children)if(!e.children[r]||!nv(e.children[r],n.children[r],i))return!1;return!0}{const r=t.slice(0,e.segments.length),a=t.slice(e.segments.length);return!!(Mt(e.segments,r)&&K0(e.segments,r,i)&&e.children[y2])&&iv(e.children[y2],n,a,i)}}function K0(e,n,t){return n.every((i,r)=>Xm[t](e[r].parameters,i.parameters))}class _t{constructor(n,t,i){this.root=n,this.queryParams=t,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=I6(this.queryParams)),this._queryParamMap}toString(){return jG.serialize(this)}}class V2{constructor(n,t){this.segments=n,this.children=t,this.parent=null,J1(t,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Y0(this)}}class mn{constructor(n,t){this.path=n,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=I6(this.parameters)),this._parameterMap}toString(){return cv(this)}}function Mt(e,n){return e.length===n.length&&e.every((t,i)=>t.path===n[i].path)}class rv{}class av{parse(n){const t=new JG(n);return new _t(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(n){const t=`/${vn(n.root,!0)}`,i=function WG(e){const n=Object.keys(e).map(t=>{const i=e[t];return Array.isArray(i)?i.map(r=>`${Q0(t)}=${Q0(r)}`).join("&"):`${Q0(t)}=${Q0(i)}`}).filter(t=>!!t);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${t}${i}${"string"==typeof n.fragment?`#${function GG(e){return encodeURI(e)}(n.fragment)}`:""}`}}const jG=new av;function Y0(e){return e.segments.map(n=>cv(n)).join("/")}function vn(e,n){if(!e.hasChildren())return Y0(e);if(n){const t=e.children[y2]?vn(e.children[y2],!1):"",i=[];return J1(e.children,(r,a)=>{a!==y2&&i.push(`${a}:${vn(r,!1)}`)}),i.length>0?`${t}(${i.join("//")})`:t}{const t=function UG(e,n){let t=[];return J1(e.children,(i,r)=>{r===y2&&(t=t.concat(n(i,r)))}),J1(e.children,(i,r)=>{r!==y2&&(t=t.concat(n(i,r)))}),t}(e,(i,r)=>r===y2?[vn(e.children[y2],!1)]:[`${r}:${vn(i,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[y2]?`${Y0(e)}/${t[0]}`:`${Y0(e)}/(${t.join("//")})`}}function ov(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Q0(e){return ov(e).replace(/%3B/gi,";")}function bs(e){return ov(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Z0(e){return decodeURIComponent(e)}function sv(e){return Z0(e.replace(/\+/g,"%20"))}function cv(e){return`${bs(e.path)}${function $G(e){return Object.keys(e).map(n=>`;${bs(n)}=${bs(e[n])}`).join("")}(e.parameters)}`}const qG=/^[^\/()?;=#]+/;function J0(e){const n=e.match(qG);return n?n[0]:""}const KG=/^[^=?&#]+/,QG=/^[^&#]+/;class JG{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new V2([],{}):new V2([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(t).length>0)&&(i[y2]=new V2(n,t)),i}parseSegment(){const n=J0(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(n),new mn(Z0(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const t=J0(this.remaining);if(!t)return;this.capture(t);let i="";if(this.consumeOptional("=")){const r=J0(this.remaining);r&&(i=r,this.capture(i))}n[Z0(t)]=Z0(i)}parseQueryParam(n){const t=function YG(e){const n=e.match(KG);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let i="";if(this.consumeOptional("=")){const o=function ZG(e){const n=e.match(QG);return n?n[0]:""}(this.remaining);o&&(i=o,this.capture(i))}const r=sv(t),a=sv(i);if(n.hasOwnProperty(r)){let o=n[r];Array.isArray(o)||(o=[o],n[r]=o),o.push(a)}else n[r]=a}parseParens(n){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=J0(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let a;i.indexOf(":")>-1?(a=i.substr(0,i.indexOf(":")),this.capture(a),this.capture(":")):n&&(a=y2);const o=this.parseChildren();t[a]=1===Object.keys(o).length?o[y2]:new V2([],o),this.consumeOptional("//")}return t}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new Error(`Expected "${n}".`)}}class lv{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const t=this.pathFromRoot(n);return t.length>1?t[t.length-2]:null}children(n){const t=Ls(n,this._root);return t?t.children.map(i=>i.value):[]}firstChild(n){const t=Ls(n,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(n){const t=Vs(n,this._root);return t.length<2?[]:t[t.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return Vs(n,this._root).map(t=>t.value)}}function Ls(e,n){if(e===n.value)return n;for(const t of n.children){const i=Ls(e,t);if(i)return i}return null}function Vs(e,n){if(e===n.value)return[n];for(const t of n.children){const i=Vs(e,t);if(i.length)return i.unshift(n),i}return[]}class fe{constructor(n,t){this.value=n,this.children=t}toString(){return`TreeNode(${this.value})`}}function O6(e){const n={};return e&&e.children.forEach(t=>n[t.value.outlet]=t),n}class uv extends lv{constructor(n,t){super(n),this.snapshot=t,Hs(this,n)}toString(){return this.snapshot.toString()}}function fv(e,n){const t=function XG(e,n){const o=new X0([],{},{},"",{},y2,n,null,e.root,-1,{});return new dv("",new fe(o,[]))}(e,n),i=new W1([new mn("",{})]),r=new W1({}),a=new W1({}),o=new W1({}),s=new W1(""),c=new Ce(i,r,o,s,a,y2,n,t.root);return c.snapshot=t.root,new uv(new fe(c,[]),t)}class Ce{constructor(n,t,i,r,a,o,s,c){this.url=n,this.params=t,this.queryParams=i,this.fragment=r,this.data=a,this.outlet=o,this.component=s,this._futureSnapshot=c}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(m2(n=>I6(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(m2(n=>I6(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Cv(e,n="emptyOnly"){const t=e.pathFromRoot;let i=0;if("always"!==n)for(i=t.length-1;i>=1;){const r=t[i],a=t[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(a.component)break;i--}}return function e$(e){return e.reduce((n,t)=>({params:Object.assign(Object.assign({},n.params),t.params),data:Object.assign(Object.assign({},n.data),t.data),resolve:Object.assign(Object.assign({},n.resolve),t._resolvedData)}),{params:{},data:{},resolve:{}})}(t.slice(i))}class X0{constructor(n,t,i,r,a,o,s,c,l,u,f){this.url=n,this.params=t,this.queryParams=i,this.fragment=r,this.data=a,this.outlet=o,this.component=s,this.routeConfig=c,this._urlSegment=l,this._lastPathIndex=u,this._resolve=f}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=I6(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=I6(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class dv extends lv{constructor(n,t){super(t),this.url=n,Hs(this,t)}toString(){return hv(this._root)}}function Hs(e,n){n.value._routerState=e,n.children.forEach(t=>Hs(e,t))}function hv(e){const n=e.children.length>0?` { ${e.children.map(hv).join(", ")} } `:"";return`${e.value}${n}`}function ws(e){if(e.snapshot){const n=e.snapshot,t=e._futureSnapshot;e.snapshot=t,j4(n.queryParams,t.queryParams)||e.queryParams.next(t.queryParams),n.fragment!==t.fragment&&e.fragment.next(t.fragment),j4(n.params,t.params)||e.params.next(t.params),function IG(e,n){if(e.length!==n.length)return!1;for(let t=0;t<e.length;++t)if(!j4(e[t],n[t]))return!1;return!0}(n.url,t.url)||e.url.next(t.url),j4(n.data,t.data)||e.data.next(t.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function Ds(e,n){const t=j4(e.params,n.params)&&function BG(e,n){return Mt(e,n)&&e.every((t,i)=>j4(t.parameters,n[i].parameters))}(e.url,n.url);return t&&!(!e.parent!=!n.parent)&&(!e.parent||Ds(e.parent,n.parent))}function _n(e,n,t){if(t&&e.shouldReuseRoute(n.value,t.value.snapshot)){const i=t.value;i._futureSnapshot=n.value;const r=function n$(e,n,t){return n.children.map(i=>{for(const r of t.children)if(e.shouldReuseRoute(i.value,r.value.snapshot))return _n(e,i,r);return _n(e,i)})}(e,n,t);return new fe(i,r)}{if(e.shouldAttach(n.value)){const a=e.retrieve(n.value);if(null!==a){const o=a.route;return o.value._futureSnapshot=n.value,o.children=n.children.map(s=>_n(e,s)),o}}const i=function i$(e){return new Ce(new W1(e.url),new W1(e.params),new W1(e.queryParams),new W1(e.fragment),new W1(e.data),e.outlet,e.component,e)}(n.value),r=n.children.map(a=>_n(e,a));return new fe(i,r)}}function ei(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Mn(e){return"object"==typeof e&&null!=e&&e.outlets}function Ss(e,n,t,i,r){let a={};if(i&&J1(i,(s,c)=>{a[c]=Array.isArray(s)?s.map(l=>`${l}`):`${s}`}),e===n)return new _t(t,a,r);const o=pv(e,n,t);return new _t(o,a,r)}function pv(e,n,t){const i={};return J1(e.children,(r,a)=>{i[a]=r===n?t:pv(r,n,t)}),new V2(e.segments,i)}class gv{constructor(n,t,i){if(this.isAbsolute=n,this.numberOfDoubleDots=t,this.commands=i,n&&i.length>0&&ei(i[0]))throw new Error("Root segment cannot have matrix parameters");const r=i.find(Mn);if(r&&r!==Jm(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ns{constructor(n,t,i){this.segmentGroup=n,this.processChildren=t,this.index=i}}function mv(e,n,t){if(e||(e=new V2([],{})),0===e.segments.length&&e.hasChildren())return ti(e,n,t);const i=function l$(e,n,t){let i=0,r=n;const a={match:!1,pathIndex:0,commandIndex:0};for(;r<e.segments.length;){if(i>=t.length)return a;const o=e.segments[r],s=t[i];if(Mn(s))break;const c=`${s}`,l=i<t.length-1?t[i+1]:null;if(r>0&&void 0===c)break;if(c&&l&&"object"==typeof l&&void 0===l.outlets){if(!_v(c,l,o))return a;i+=2}else{if(!_v(c,{},o))return a;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,n,t),r=t.slice(i.commandIndex);if(i.match&&i.pathIndex<e.segments.length){const a=new V2(e.segments.slice(0,i.pathIndex),{});return a.children[y2]=new V2(e.segments.slice(i.pathIndex),e.children),ti(a,0,r)}return i.match&&0===r.length?new V2(e.segments,{}):i.match&&!e.hasChildren()?zs(e,n,t):i.match?ti(e,0,r):zs(e,n,t)}function ti(e,n,t){if(0===t.length)return new V2(e.segments,{});{const i=function c$(e){return Mn(e[0])?e[0].outlets:{[y2]:e}}(t),r={};return J1(i,(a,o)=>{"string"==typeof a&&(a=[a]),null!==a&&(r[o]=mv(e.children[o],n,a))}),J1(e.children,(a,o)=>{void 0===i[o]&&(r[o]=a)}),new V2(e.segments,r)}}function zs(e,n,t){const i=e.segments.slice(0,n);let r=0;for(;r<t.length;){const a=t[r];if(Mn(a)){const c=u$(a.outlets);return new V2(i,c)}if(0===r&&ei(t[0])){i.push(new mn(e.segments[n].path,vv(t[0]))),r++;continue}const o=Mn(a)?a.outlets[y2]:`${a}`,s=r<t.length-1?t[r+1]:null;o&&s&&ei(s)?(i.push(new mn(o,vv(s))),r+=2):(i.push(new mn(o,{})),r++)}return new V2(i,{})}function u$(e){const n={};return J1(e,(t,i)=>{"string"==typeof t&&(t=[t]),null!==t&&(n[i]=zs(new V2([],{}),0,t))}),n}function vv(e){const n={};return J1(e,(t,i)=>n[i]=`${t}`),n}function _v(e,n,t){return e==t.path&&j4(n,t.parameters)}class C${constructor(n,t,i,r){this.routeReuseStrategy=n,this.futureState=t,this.currState=i,this.forwardEvent=r}activate(n){const t=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,i,n),ws(this.futureState.root),this.activateChildRoutes(t,i,n)}deactivateChildRoutes(n,t,i){const r=O6(t);n.children.forEach(a=>{const o=a.value.outlet;this.deactivateRoutes(a,r[o],i),delete r[o]}),J1(r,(a,o)=>{this.deactivateRouteAndItsChildren(a,i)})}deactivateRoutes(n,t,i){const r=n.value,a=t?t.value:null;if(r===a)if(r.component){const o=i.getContext(r.outlet);o&&this.deactivateChildRoutes(n,t,o.children)}else this.deactivateChildRoutes(n,t,i);else a&&this.deactivateRouteAndItsChildren(t,i)}deactivateRouteAndItsChildren(n,t){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,t):this.deactivateRouteAndOutlet(n,t)}detachAndStoreRouteSubtree(n,t){const i=t.getContext(n.value.outlet),r=i&&n.value.component?i.children:t,a=O6(n);for(const o of Object.keys(a))this.deactivateRouteAndItsChildren(a[o],r);if(i&&i.outlet){const o=i.outlet.detach(),s=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:o,route:n,contexts:s})}}deactivateRouteAndOutlet(n,t){const i=t.getContext(n.value.outlet),r=i&&n.value.component?i.children:t,a=O6(n);for(const o of Object.keys(a))this.deactivateRouteAndItsChildren(a[o],r);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(n,t,i){const r=O6(t);n.children.forEach(a=>{this.activateRoutes(a,r[a.value.outlet],i),this.forwardEvent(new EG(a.value.snapshot))}),n.children.length&&this.forwardEvent(new zG(n.value.snapshot))}activateRoutes(n,t,i){const r=n.value,a=t?t.value:null;if(ws(r),r===a)if(r.component){const o=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,t,o.children)}else this.activateChildRoutes(n,t,i);else if(r.component){const o=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(s.contexts),o.attachRef=s.componentRef,o.route=s.route.value,o.outlet&&o.outlet.attach(s.componentRef,s.route.value),ws(s.route.value),this.activateChildRoutes(n,null,o.children)}else{const s=function d$(e){for(let n=e.parent;n;n=n.parent){const t=n.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(r.snapshot),c=s?s.module.componentFactoryResolver:null;o.attachRef=null,o.route=r,o.resolver=c,o.outlet&&o.outlet.activateWith(r,c),this.activateChildRoutes(n,null,o.children)}}else this.activateChildRoutes(n,null,i)}}class xs{constructor(n,t){this.routes=n,this.module=t}}function Pe(e){return"function"==typeof e}function yt(e){return e instanceof _t}const yn=Symbol("INITIAL_VALUE");function bn(){return ie(e=>function _7(...e){const n=K6(e),t=Bn(e),{args:i,keys:r}=Ch(e);if(0===i.length)return G1([],n);const a=new A2(function SR(e,n,t=o4){return i=>{bp(n,()=>{const{length:r}=e,a=new Array(r);let o=r,s=r;for(let c=0;c<r;c++)bp(n,()=>{const l=G1(e[c],n);let u=!1;l.subscribe(O2(i,f=>{a[c]=f,u||(u=!0,s--),s||i.next(t(a.slice()))},()=>{--o||i.complete()}))},i)},i)}}(i,n,r?o=>dh(r,o):o4));return t?a.pipe(Yo(t)):a}(e.map(n=>n.pipe(Y1(1),function g0(...e){const n=K6(e);return a1((t,i)=>{(n?Z5(e,t,n):Z5(e,t)).subscribe(i)})}(yn)))).pipe(Um((n,t)=>{let i=!1;return t.reduce((r,a,o)=>r!==yn?r:(a===yn&&(i=!0),i||!1!==a&&o!==t.length-1&&!yt(a)?r:a),n)},yn),Z1(n=>n!==yn),m2(n=>yt(n)?n:!0===n),Y1(1)))}class _${constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Ln,this.attachRef=null}}class Ln{constructor(){this.contexts=new Map}onChildOutletCreated(n,t){const i=this.getOrCreateContext(n);i.outlet=t,this.contexts.set(n,i)}onChildOutletDestroyed(n){const t=this.getContext(n);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let t=this.getContext(n);return t||(t=new _$,this.contexts.set(n,t)),t}getContext(n){return this.contexts.get(n)||null}}let Es=(()=>{class e{constructor(t,i,r,a,o){this.parentContexts=t,this.location=i,this.resolver=r,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new u2,this.deactivateEvents=new u2,this.attachEvents=new u2,this.detachEvents=new u2,this.name=a||y2,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,i){this.activated=t,this._activatedRoute=i,this.location.insert(t.hostView),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,i){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const o=(i=i||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),s=this.parentContexts.getOrCreateContext(this.name).children,c=new M$(t,s,this.location.injector);this.activated=this.location.createComponent(o,this.location.length,c),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(t){return new(t||e)(V(Ln),V(Z3),V(g6),function Ke(e){return function WD(e,n){if("class"===n)return e.classes;if("style"===n)return e.styles;const t=e.attrs;if(t){const i=t.length;let r=0;for(;r<i;){const a=t[r];if(xc(a))break;if(0===a)r+=2;else if("number"==typeof a)for(r++;r<i&&"string"==typeof t[r];)r++;else{if(a===n)return t[r+1];r+=2}}}return null}(I1(),e)}("name"),V(X3))},e.\u0275dir=U({type:e,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),e})();class M${constructor(n,t,i){this.route=n,this.childContexts=t,this.parent=i}get(n,t){return n===Ce?this.route:n===Ln?this.childContexts:this.parent.get(n,t)}}let Mv=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=s2({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,i){1&t&&I(0,"router-outlet")},directives:[Es],encapsulation:2}),e})();function yv(e,n=""){for(let t=0;t<e.length;t++){const i=e[t];y$(i,b$(n,i))}}function y$(e,n){e.children&&yv(e.children,n)}function b$(e,n){return n?e||n.path?e&&!n.path?`${e}/`:!e&&n.path?n.path:`${e}/${n.path}`:"":e}function Ts(e){const n=e.children&&e.children.map(Ts),t=n?Object.assign(Object.assign({},e),{children:n}):Object.assign({},e);return!t.component&&(n||t.loadChildren)&&t.outlet&&t.outlet!==y2&&(t.component=Mv),t}function r4(e){return e.outlet||y2}function bv(e,n){const t=e.filter(i=>r4(i)===n);return t.push(...e.filter(i=>r4(i)!==n)),t}const Lv={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ni(e,n,t){var i;if(""===n.path)return"full"===n.pathMatch&&(e.hasChildren()||t.length>0)?Object.assign({},Lv):{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const a=(n.matcher||kG)(t,e,n);if(!a)return Object.assign({},Lv);const o={};J1(a.posParams,(c,l)=>{o[l]=c.path});const s=a.consumed.length>0?Object.assign(Object.assign({},o),a.consumed[a.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:a.consumed,remainingSegments:t.slice(a.consumed.length),parameters:s,positionalParamSegments:null!==(i=a.posParams)&&void 0!==i?i:{}}}function ii(e,n,t,i,r="corrected"){if(t.length>0&&function H$(e,n,t){return t.some(i=>ri(e,n,i)&&r4(i)!==y2)}(e,t,i)){const o=new V2(n,function V$(e,n,t,i){const r={};r[y2]=i,i._sourceSegment=e,i._segmentIndexShift=n.length;for(const a of t)if(""===a.path&&r4(a)!==y2){const o=new V2([],{});o._sourceSegment=e,o._segmentIndexShift=n.length,r[r4(a)]=o}return r}(e,n,i,new V2(t,e.children)));return o._sourceSegment=e,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:[]}}if(0===t.length&&function w$(e,n,t){return t.some(i=>ri(e,n,i))}(e,t,i)){const o=new V2(e.segments,function L$(e,n,t,i,r,a){const o={};for(const s of i)if(ri(e,t,s)&&!r[r4(s)]){const c=new V2([],{});c._sourceSegment=e,c._segmentIndexShift="legacy"===a?e.segments.length:n.length,o[r4(s)]=c}return Object.assign(Object.assign({},r),o)}(e,n,t,i,e.children,r));return o._sourceSegment=e,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:t}}const a=new V2(e.segments,e.children);return a._sourceSegment=e,a._segmentIndexShift=n.length,{segmentGroup:a,slicedSegments:t}}function ri(e,n,t){return(!(e.hasChildren()||n.length>0)||"full"!==t.pathMatch)&&""===t.path}function Vv(e,n,t,i){return!!(r4(e)===i||i!==y2&&ri(n,t,e))&&("**"===e.path||ni(n,e,t).matched)}function Hv(e,n,t){return 0===n.length&&!e.children[t]}class ai{constructor(n){this.segmentGroup=n||null}}class wv{constructor(n){this.urlTree=n}}function Vn(e){return $0(new ai(e))}function Dv(e){return $0(new wv(e))}class z${constructor(n,t,i,r,a){this.configLoader=t,this.urlSerializer=i,this.urlTree=r,this.config=a,this.allowRedirects=!0,this.ngModule=n.get(X4)}apply(){const n=ii(this.urlTree.root,[],[],this.config).segmentGroup,t=new V2(n.segments,n.children);return this.expandSegmentGroup(this.ngModule,this.config,t,y2).pipe(m2(a=>this.createUrlTree(As(a),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Re(a=>{if(a instanceof wv)return this.allowRedirects=!1,this.match(a.urlTree);throw a instanceof ai?this.noMatchError(a):a}))}match(n){return this.expandSegmentGroup(this.ngModule,this.config,n.root,y2).pipe(m2(r=>this.createUrlTree(As(r),n.queryParams,n.fragment))).pipe(Re(r=>{throw r instanceof ai?this.noMatchError(r):r}))}noMatchError(n){return new Error(`Cannot match any routes. URL Segment: '${n.segmentGroup}'`)}createUrlTree(n,t,i){const r=n.segments.length>0?new V2([],{[y2]:n}):n;return new _t(r,t,i)}expandSegmentGroup(n,t,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(n,t,i).pipe(m2(a=>new V2([],a))):this.expandSegment(n,i,t,i.segments,r,!0)}expandChildren(n,t,i){const r=[];for(const a of Object.keys(i.children))"primary"===a?r.unshift(a):r.push(a);return G1(r).pipe(pn(a=>{const o=i.children[a],s=bv(t,a);return this.expandSegmentGroup(n,s,o,a).pipe(m2(c=>({segment:c,outlet:a})))}),Um((a,o)=>(a[o.outlet]=o.segment,a),{}),function yG(e,n){const t=arguments.length>=2;return i=>i.pipe(e?Z1((r,a)=>e(r,a,i)):o4,Ms(1),t?Gm(n):jm(()=>new W0))}())}expandSegment(n,t,i,r,a,o){return G1(i).pipe(pn(s=>this.expandSegmentAgainstRoute(n,t,i,s,r,a,o).pipe(Re(l=>{if(l instanceof ai)return a2(null);throw l}))),k6(s=>!!s),Re((s,c)=>{if(s instanceof W0||"EmptyError"===s.name)return Hv(t,r,a)?a2(new V2([],{})):Vn(t);throw s}))}expandSegmentAgainstRoute(n,t,i,r,a,o,s){return Vv(r,t,a,o)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(n,t,r,a,o):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,t,i,r,a,o):Vn(t):Vn(t)}expandSegmentAgainstRouteUsingRedirect(n,t,i,r,a,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,i,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(n,t,i,r,a,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,t,i,r){const a=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?Dv(a):this.lineralizeSegments(i,a).pipe(b1(o=>{const s=new V2(o,{});return this.expandSegment(n,s,t,o,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,t,i,r,a,o){const{matched:s,consumedSegments:c,remainingSegments:l,positionalParamSegments:u}=ni(t,r,a);if(!s)return Vn(t);const f=this.applyRedirectCommands(c,r.redirectTo,u);return r.redirectTo.startsWith("/")?Dv(f):this.lineralizeSegments(r,f).pipe(b1(h=>this.expandSegment(n,t,i,h.concat(l),o,!1)))}matchSegmentAgainstRoute(n,t,i,r,a){if("**"===i.path)return i.loadChildren?(i._loadedConfig?a2(i._loadedConfig):this.configLoader.load(n.injector,i)).pipe(m2(f=>(i._loadedConfig=f,new V2(r,{})))):a2(new V2(r,{}));const{matched:o,consumedSegments:s,remainingSegments:c}=ni(t,i,r);return o?this.getChildConfig(n,i,r).pipe(b1(u=>{const f=u.module,h=u.routes,{segmentGroup:p,slicedSegments:L}=ii(t,s,c,h),H=new V2(p.segments,p.children);if(0===L.length&&H.hasChildren())return this.expandChildren(f,h,H).pipe(m2(A=>new V2(s,A)));if(0===h.length&&0===L.length)return a2(new V2(s,{}));const S=r4(i)===a;return this.expandSegment(f,H,h,L,S?y2:a,!0).pipe(m2(w=>new V2(s.concat(w.segments),w.children)))})):Vn(t)}getChildConfig(n,t,i){return t.children?a2(new xs(t.children,n)):t.loadChildren?void 0!==t._loadedConfig?a2(t._loadedConfig):this.runCanLoadGuards(n.injector,t,i).pipe(b1(r=>r?this.configLoader.load(n.injector,t).pipe(m2(a=>(t._loadedConfig=a,a))):function S$(e){return $0(ys(`Cannot load children because the guard of the route "path: '${e.path}'" returned false`))}(t))):a2(new xs([],n))}runCanLoadGuards(n,t,i){const r=t.canLoad;return r&&0!==r.length?a2(r.map(o=>{const s=n.get(o);let c;if(function p$(e){return e&&Pe(e.canLoad)}(s))c=s.canLoad(t,i);else{if(!Pe(s))throw new Error("Invalid CanLoad guard");c=s(t,i)}return G4(c)})).pipe(bn(),p3(o=>{if(!yt(o))return;const s=ys(`Redirecting to "${this.urlSerializer.serialize(o)}"`);throw s.url=o,s}),m2(o=>!0===o)):a2(!0)}lineralizeSegments(n,t){let i=[],r=t.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return a2(i);if(r.numberOfChildren>1||!r.children[y2])return $0(new Error(`Only absolute redirects can have named outlets. redirectTo: '${n.redirectTo}'`));r=r.children[y2]}}applyRedirectCommands(n,t,i){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),n,i)}applyRedirectCreatreUrlTree(n,t,i,r){const a=this.createSegmentGroup(n,t.root,i,r);return new _t(a,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(n,t){const i={};return J1(n,(r,a)=>{if("string"==typeof r&&r.startsWith(":")){const s=r.substring(1);i[a]=t[s]}else i[a]=r}),i}createSegmentGroup(n,t,i,r){const a=this.createSegments(n,t.segments,i,r);let o={};return J1(t.children,(s,c)=>{o[c]=this.createSegmentGroup(n,s,i,r)}),new V2(a,o)}createSegments(n,t,i,r){return t.map(a=>a.path.startsWith(":")?this.findPosParam(n,a,r):this.findOrReturn(a,i))}findPosParam(n,t,i){const r=i[t.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${n}'. Cannot find '${t.path}'.`);return r}findOrReturn(n,t){let i=0;for(const r of t){if(r.path===n.path)return t.splice(i),r;i++}return n}}function As(e){const n={};for(const i of Object.keys(e.children)){const a=As(e.children[i]);(a.segments.length>0||a.hasChildren())&&(n[i]=a)}return function x$(e){if(1===e.numberOfChildren&&e.children[y2]){const n=e.children[y2];return new V2(e.segments.concat(n.segments),n.children)}return e}(new V2(e.segments,n))}class Sv{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class oi{constructor(n,t){this.component=n,this.route=t}}function T$(e,n,t){const i=e._root;return Hn(i,n?n._root:null,t,[i.value])}function si(e,n,t){const i=function k$(e){if(!e)return null;for(let n=e.parent;n;n=n.parent){const t=n.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(n);return(i?i.module.injector:t).get(e)}function Hn(e,n,t,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const a=O6(n);return e.children.forEach(o=>{(function I$(e,n,t,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const a=e.value,o=n?n.value:null,s=t?t.getContext(e.value.outlet):null;if(o&&a.routeConfig===o.routeConfig){const c=function O$(e,n,t){if("function"==typeof t)return t(e,n);switch(t){case"pathParamsChange":return!Mt(e.url,n.url);case"pathParamsOrQueryParamsChange":return!Mt(e.url,n.url)||!j4(e.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ds(e,n)||!j4(e.queryParams,n.queryParams);default:return!Ds(e,n)}}(o,a,a.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new Sv(i)):(a.data=o.data,a._resolvedData=o._resolvedData),Hn(e,n,a.component?s?s.children:null:t,i,r),c&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new oi(s.outlet.component,o))}else o&&wn(n,s,r),r.canActivateChecks.push(new Sv(i)),Hn(e,null,a.component?s?s.children:null:t,i,r)})(o,a[o.value.outlet],t,i.concat([o.value]),r),delete a[o.value.outlet]}),J1(a,(o,s)=>wn(o,t.getContext(s),r)),r}function wn(e,n,t){const i=O6(e),r=e.value;J1(i,(a,o)=>{wn(a,r.component?n?n.children.getContext(o):null:n,t)}),t.canDeactivateChecks.push(new oi(r.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,r))}class W${}function Nv(e){return new A2(n=>n.error(e))}class K${constructor(n,t,i,r,a,o){this.rootComponentType=n,this.config=t,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=a,this.relativeLinkResolution=o}recognize(){const n=ii(this.urlTree.root,[],[],this.config.filter(o=>void 0===o.redirectTo),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,n,y2);if(null===t)return null;const i=new X0([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},y2,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new fe(i,t),a=new dv(this.url,r);return this.inheritParamsAndData(a._root),a}inheritParamsAndData(n){const t=n.value,i=Cv(t,this.paramsInheritanceStrategy);t.params=Object.freeze(i.params),t.data=Object.freeze(i.data),n.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(n,t,i){return 0===t.segments.length&&t.hasChildren()?this.processChildren(n,t):this.processSegment(n,t,t.segments,i)}processChildren(n,t){const i=[];for(const a of Object.keys(t.children)){const o=t.children[a],s=bv(n,a),c=this.processSegmentGroup(s,o,a);if(null===c)return null;i.push(...c)}const r=zv(i);return function Y$(e){e.sort((n,t)=>n.value.outlet===y2?-1:t.value.outlet===y2?1:n.value.outlet.localeCompare(t.value.outlet))}(r),r}processSegment(n,t,i,r){for(const a of n){const o=this.processSegmentAgainstRoute(a,t,i,r);if(null!==o)return o}return Hv(t,i,r)?[]:null}processSegmentAgainstRoute(n,t,i,r){if(n.redirectTo||!Vv(n,t,i,r))return null;let a,o=[],s=[];if("**"===n.path){const p=i.length>0?Jm(i).parameters:{};a=new X0(i,p,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Tv(n),r4(n),n.component,n,xv(t),Ev(t)+i.length,Av(n))}else{const p=ni(t,n,i);if(!p.matched)return null;o=p.consumedSegments,s=p.remainingSegments,a=new X0(o,p.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Tv(n),r4(n),n.component,n,xv(t),Ev(t)+o.length,Av(n))}const c=function Q$(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(n),{segmentGroup:l,slicedSegments:u}=ii(t,o,s,c.filter(p=>void 0===p.redirectTo),this.relativeLinkResolution);if(0===u.length&&l.hasChildren()){const p=this.processChildren(c,l);return null===p?null:[new fe(a,p)]}if(0===c.length&&0===u.length)return[new fe(a,[])];const f=r4(n)===r,h=this.processSegment(c,l,u,f?y2:r);return null===h?null:[new fe(a,h)]}}function Z$(e){const n=e.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function zv(e){const n=[],t=new Set;for(const i of e){if(!Z$(i)){n.push(i);continue}const r=n.find(a=>i.value.routeConfig===a.value.routeConfig);void 0!==r?(r.children.push(...i.children),t.add(r)):n.push(i)}for(const i of t){const r=zv(i.children);n.push(new fe(i.value,r))}return n.filter(i=>!t.has(i))}function xv(e){let n=e;for(;n._sourceSegment;)n=n._sourceSegment;return n}function Ev(e){let n=e,t=n._segmentIndexShift?n._segmentIndexShift:0;for(;n._sourceSegment;)n=n._sourceSegment,t+=n._segmentIndexShift?n._segmentIndexShift:0;return t-1}function Tv(e){return e.data||{}}function Av(e){return e.resolve||{}}function kv(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function ks(e){return ie(n=>{const t=e(n);return t?G1(t).pipe(m2(()=>n)):a2(n)})}class aW extends class rW{shouldDetach(n){return!1}store(n,t){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,t){return n.routeConfig===t.routeConfig}}{}const Is=new v2("ROUTES");class Iv{constructor(n,t,i,r){this.injector=n,this.compiler=t,this.onLoadStartListener=i,this.onLoadEndListener=r}load(n,t){if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);const r=this.loadModuleFactory(t.loadChildren).pipe(m2(a=>{this.onLoadEndListener&&this.onLoadEndListener(t);const o=a.create(n);return new xs(Zm(o.injector.get(Is,void 0,r2.Self|r2.Optional)).map(Ts),o)}),Re(a=>{throw t._loader$=void 0,a}));return t._loader$=new vG(r,()=>new C2).pipe(Bm()),t._loader$}loadModuleFactory(n){return G4(n()).pipe(b1(t=>t instanceof NC?a2(t):G1(this.compiler.compileModuleAsync(t))))}}class sW{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,t){return n}}function cW(e){throw e}function lW(e,n,t){return n.parse("/")}function Ov(e,n){return a2(null)}const uW={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},fW={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let X1=(()=>{class e{constructor(t,i,r,a,o,s,c){this.rootComponentType=t,this.urlSerializer=i,this.rootContexts=r,this.location=a,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new C2,this.errorHandler=cW,this.malformedUriErrorHandler=lW,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Ov,afterPreactivation:Ov},this.urlHandlingStrategy=new sW,this.routeReuseStrategy=new aW,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(X4),this.console=o.get(gA);const f=o.get($2);this.isNgZoneEnabled=f instanceof $2&&$2.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=function OG(){return new _t(new V2([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Iv(o,s,h=>this.triggerEvent(new Wm(h)),h=>this.triggerEvent(new qm(h))),this.routerState=fv(this.currentUrlTree,this.rootComponentType),this.transitions=new W1({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var t;return null===(t=this.location.getState())||void 0===t?void 0:t.\u0275routerPageId}setupNavigations(t){const i=this.events;return t.pipe(Z1(r=>0!==r.id),m2(r=>Object.assign(Object.assign({},r),{extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),ie(r=>{let a=!1,o=!1;return a2(r).pipe(p3(s=>{this.currentNavigation={id:s.id,initialUrl:s.currentRawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),ie(s=>{const c=this.browserUrlTree.toString(),l=!this.navigated||s.extractedUrl.toString()!==c||c!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||l)&&this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return Rv(s.source)&&(this.browserUrlTree=s.extractedUrl),a2(s).pipe(ie(f=>{const h=this.transitions.getValue();return i.next(new q0(f.id,this.serializeUrl(f.extractedUrl),f.source,f.restoredState)),h!==this.transitions.getValue()?c4:Promise.resolve(f)}),function E$(e,n,t,i){return ie(r=>function N$(e,n,t,i,r){return new z$(e,n,t,i,r).apply()}(e,n,t,r.extractedUrl,i).pipe(m2(a=>Object.assign(Object.assign({},r),{urlAfterRedirects:a}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),p3(f=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:f.urlAfterRedirects})}),function J$(e,n,t,i,r){return b1(a=>function q$(e,n,t,i,r="emptyOnly",a="legacy"){try{const o=new K$(e,n,t,i,r,a).recognize();return null===o?Nv(new W$):a2(o)}catch(o){return Nv(o)}}(e,n,a.urlAfterRedirects,t(a.urlAfterRedirects),i,r).pipe(m2(o=>Object.assign(Object.assign({},a),{targetSnapshot:o}))))}(this.rootComponentType,this.config,f=>this.serializeUrl(f),this.paramsInheritanceStrategy,this.relativeLinkResolution),p3(f=>{if("eager"===this.urlUpdateStrategy){if(!f.extras.skipLocationChange){const p=this.urlHandlingStrategy.merge(f.urlAfterRedirects,f.rawUrl);this.setBrowserUrl(p,f)}this.browserUrlTree=f.urlAfterRedirects}const h=new VG(f.id,this.serializeUrl(f.extractedUrl),this.serializeUrl(f.urlAfterRedirects),f.targetSnapshot);i.next(h)}));if(l&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:h,extractedUrl:p,source:L,restoredState:H,extras:S}=s,N=new q0(h,this.serializeUrl(p),L,H);i.next(N);const w=fv(p,this.rootComponentType).snapshot;return a2(Object.assign(Object.assign({},s),{targetSnapshot:w,urlAfterRedirects:p,extras:Object.assign(Object.assign({},S),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=s.rawUrl,s.resolve(null),c4}),ks(s=>{const{targetSnapshot:c,id:l,extractedUrl:u,rawUrl:f,extras:{skipLocationChange:h,replaceUrl:p}}=s;return this.hooks.beforePreactivation(c,{navigationId:l,appliedUrlTree:u,rawUrlTree:f,skipLocationChange:!!h,replaceUrl:!!p})}),p3(s=>{const c=new HG(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot);this.triggerEvent(c)}),m2(s=>Object.assign(Object.assign({},s),{guards:T$(s.targetSnapshot,s.currentSnapshot,this.rootContexts)})),function R$(e,n){return b1(t=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:a,canDeactivateChecks:o}}=t;return 0===o.length&&0===a.length?a2(Object.assign(Object.assign({},t),{guardsResult:!0})):function P$(e,n,t,i){return G1(e).pipe(b1(r=>function $$(e,n,t,i,r){const a=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return a&&0!==a.length?a2(a.map(s=>{const c=si(s,n,r);let l;if(function v$(e){return e&&Pe(e.canDeactivate)}(c))l=G4(c.canDeactivate(e,n,t,i));else{if(!Pe(c))throw new Error("Invalid CanDeactivate guard");l=G4(c(e,n,t,i))}return l.pipe(k6())})).pipe(bn()):a2(!0)}(r.component,r.route,t,n,i)),k6(r=>!0!==r,!0))}(o,i,r,e).pipe(b1(s=>s&&function h$(e){return"boolean"==typeof e}(s)?function F$(e,n,t,i){return G1(n).pipe(pn(r=>Z5(function U$(e,n){return null!==e&&n&&n(new NG(e)),a2(!0)}(r.route.parent,i),function B$(e,n){return null!==e&&n&&n(new xG(e)),a2(!0)}(r.route,i),function G$(e,n,t){const i=n[n.length-1],a=n.slice(0,n.length-1).reverse().map(o=>function A$(e){const n=e.routeConfig?e.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:e,guards:n}:null}(o)).filter(o=>null!==o).map(o=>Fm(()=>a2(o.guards.map(c=>{const l=si(c,o.node,t);let u;if(function m$(e){return e&&Pe(e.canActivateChild)}(l))u=G4(l.canActivateChild(i,e));else{if(!Pe(l))throw new Error("Invalid CanActivateChild guard");u=G4(l(i,e))}return u.pipe(k6())})).pipe(bn())));return a2(a).pipe(bn())}(e,r.path,t),function j$(e,n,t){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return a2(!0);const r=i.map(a=>Fm(()=>{const o=si(a,n,t);let s;if(function g$(e){return e&&Pe(e.canActivate)}(o))s=G4(o.canActivate(n,e));else{if(!Pe(o))throw new Error("Invalid CanActivate guard");s=G4(o(n,e))}return s.pipe(k6())}));return a2(r).pipe(bn())}(e,r.route,t))),k6(r=>!0!==r,!0))}(i,a,e,n):a2(s)),m2(s=>Object.assign(Object.assign({},t),{guardsResult:s})))})}(this.ngModule.injector,s=>this.triggerEvent(s)),p3(s=>{if(yt(s.guardsResult)){const l=ys(`Redirecting to "${this.serializeUrl(s.guardsResult)}"`);throw l.url=s.guardsResult,l}const c=new wG(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.triggerEvent(c)}),Z1(s=>!!s.guardsResult||(this.restoreHistory(s),this.cancelNavigationTransition(s,""),!1)),ks(s=>{if(s.guards.canActivateChecks.length)return a2(s).pipe(p3(c=>{const l=new DG(c.id,this.serializeUrl(c.extractedUrl),this.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);this.triggerEvent(l)}),ie(c=>{let l=!1;return a2(c).pipe(function X$(e,n){return b1(t=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=t;if(!r.length)return a2(t);let a=0;return G1(r).pipe(pn(o=>function eW(e,n,t,i){return function tW(e,n,t,i){const r=kv(e);if(0===r.length)return a2({});const a={};return G1(r).pipe(b1(o=>function nW(e,n,t,i){const r=si(e,n,i);return G4(r.resolve?r.resolve(n,t):r(n,t))}(e[o],n,t,i).pipe(p3(s=>{a[o]=s}))),Ms(1),b1(()=>kv(a).length===r.length?a2(a):c4))}(e._resolve,e,n,i).pipe(m2(a=>(e._resolvedData=a,e.data=Object.assign(Object.assign({},e.data),Cv(e,t).resolve),null)))}(o.route,i,e,n)),p3(()=>a++),Ms(1),b1(o=>a===r.length?a2(t):c4))})}(this.paramsInheritanceStrategy,this.ngModule.injector),p3({next:()=>l=!0,complete:()=>{l||(this.restoreHistory(c),this.cancelNavigationTransition(c,"At least one route resolver didn't emit any value."))}}))}),p3(c=>{const l=new SG(c.id,this.serializeUrl(c.extractedUrl),this.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);this.triggerEvent(l)}))}),ks(s=>{const{targetSnapshot:c,id:l,extractedUrl:u,rawUrl:f,extras:{skipLocationChange:h,replaceUrl:p}}=s;return this.hooks.afterPreactivation(c,{navigationId:l,appliedUrlTree:u,rawUrlTree:f,skipLocationChange:!!h,replaceUrl:!!p})}),m2(s=>{const c=function t$(e,n,t){const i=_n(e,n._root,t?t._root:void 0);return new uv(i,n)}(this.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return Object.assign(Object.assign({},s),{targetRouterState:c})}),p3(s=>{this.currentUrlTree=s.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),this.routerState=s.targetRouterState,"deferred"===this.urlUpdateStrategy&&(s.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,s),this.browserUrlTree=s.urlAfterRedirects)}),((e,n,t)=>m2(i=>(new C$(n,i.targetRouterState,i.currentRouterState,t).activate(e),i)))(this.rootContexts,this.routeReuseStrategy,s=>this.triggerEvent(s)),p3({next(){a=!0},complete(){a=!0}}),function bG(e){return a1((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})}(()=>{var s;a||o||this.cancelNavigationTransition(r,`Navigation ID ${r.id} is not equal to the current navigation id ${this.navigationId}`),(null===(s=this.currentNavigation)||void 0===s?void 0:s.id)===r.id&&(this.currentNavigation=null)}),Re(s=>{if(o=!0,function AG(e){return e&&e[Ym]}(s)){const c=yt(s.url);c||(this.navigated=!0,this.restoreHistory(r,!0));const l=new $m(r.id,this.serializeUrl(r.extractedUrl),s.message);i.next(l),c?setTimeout(()=>{const u=this.urlHandlingStrategy.merge(s.url,this.rawUrlTree),f={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Rv(r.source)};this.scheduleNavigation(u,"imperative",null,f,{resolve:r.resolve,reject:r.reject,promise:r.promise})},0):r.resolve(!1)}else{this.restoreHistory(r,!0);const c=new LG(r.id,this.serializeUrl(r.extractedUrl),s);i.next(c);try{r.resolve(this.errorHandler(s))}catch(l){r.reject(l)}}return c4}))}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const i="popstate"===t.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{var r;const a={replaceUrl:!0},o=(null===(r=t.state)||void 0===r?void 0:r.navigationId)?t.state:null;if(o){const c=Object.assign({},o);delete c.navigationId,delete c.\u0275routerPageId,0!==Object.keys(c).length&&(a.state=c)}const s=this.parseUrl(t.url);this.scheduleNavigation(s,i,o,a)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){yv(t),this.config=t.map(Ts),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,i={}){const{relativeTo:r,queryParams:a,fragment:o,queryParamsHandling:s,preserveFragment:c}=i,l=r||this.routerState.root,u=c?this.currentUrlTree.fragment:o;let f=null;switch(s){case"merge":f=Object.assign(Object.assign({},this.currentUrlTree.queryParams),a);break;case"preserve":f=this.currentUrlTree.queryParams;break;default:f=a||null}return null!==f&&(f=this.removeEmptyProps(f)),function r$(e,n,t,i,r){if(0===t.length)return Ss(n.root,n.root,n.root,i,r);const a=function a$(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new gv(!0,0,e);let n=0,t=!1;const i=e.reduce((r,a,o)=>{if("object"==typeof a&&null!=a){if(a.outlets){const s={};return J1(a.outlets,(c,l)=>{s[l]="string"==typeof c?c.split("/"):c}),[...r,{outlets:s}]}if(a.segmentPath)return[...r,a.segmentPath]}return"string"!=typeof a?[...r,a]:0===o?(a.split("/").forEach((s,c)=>{0==c&&"."===s||(0==c&&""===s?t=!0:".."===s?n++:""!=s&&r.push(s))}),r):[...r,a]},[]);return new gv(t,n,i)}(t);if(a.toRoot())return Ss(n.root,n.root,new V2([],{}),i,r);const o=function o$(e,n,t){if(e.isAbsolute)return new Ns(n.root,!0,0);if(-1===t.snapshot._lastPathIndex){const a=t.snapshot._urlSegment;return new Ns(a,a===n.root,0)}const i=ei(e.commands[0])?0:1;return function s$(e,n,t){let i=e,r=n,a=t;for(;a>r;){if(a-=r,i=i.parent,!i)throw new Error("Invalid number of '../'");r=i.segments.length}return new Ns(i,!1,r-a)}(t.snapshot._urlSegment,t.snapshot._lastPathIndex+i,e.numberOfDoubleDots)}(a,n,e),s=o.processChildren?ti(o.segmentGroup,o.index,a.commands):mv(o.segmentGroup,o.index,a.commands);return Ss(n.root,o.segmentGroup,s,i,r)}(l,this.currentUrlTree,t,f,null!=u?u:null)}navigateByUrl(t,i={skipLocationChange:!1}){const r=yt(t)?t:this.parseUrl(t),a=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(a,"imperative",null,i)}navigate(t,i={skipLocationChange:!1}){return function CW(e){for(let n=0;n<e.length;n++){const t=e[n];if(null==t)throw new Error(`The requested path contains ${t} segment at index ${n}`)}}(t),this.navigateByUrl(this.createUrlTree(t,i),i)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){let i;try{i=this.urlSerializer.parse(t)}catch(r){i=this.malformedUriErrorHandler(r,this.urlSerializer,t)}return i}isActive(t,i){let r;if(r=!0===i?Object.assign({},uW):!1===i?Object.assign({},fW):i,yt(t))return ev(this.currentUrlTree,t,r);const a=this.parseUrl(t);return ev(this.currentUrlTree,a,r)}removeEmptyProps(t){return Object.keys(t).reduce((i,r)=>{const a=t[r];return null!=a&&(i[r]=a),i},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new gn(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)})}scheduleNavigation(t,i,r,a,o){var s,c;if(this.disposed)return Promise.resolve(!1);let l,u,f;o?(l=o.resolve,u=o.reject,f=o.promise):f=new Promise((L,H)=>{l=L,u=H});const h=++this.navigationId;let p;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),p=r&&r.\u0275routerPageId?r.\u0275routerPageId:a.replaceUrl||a.skipLocationChange?null!==(s=this.browserPageId)&&void 0!==s?s:0:(null!==(c=this.browserPageId)&&void 0!==c?c:0)+1):p=0,this.setTransition({id:h,targetPageId:p,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:a,resolve:l,reject:u,promise:f,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),f.catch(L=>Promise.reject(L))}setBrowserUrl(t,i){const r=this.urlSerializer.serialize(t),a=Object.assign(Object.assign({},i.extras.state),this.generateNgRouterState(i.id,i.targetPageId));this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl?this.location.replaceState(r,"",a):this.location.go(r,"",a)}restoreHistory(t,i=!1){var r,a;if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)||0===o?this.currentUrlTree===(null===(a=this.currentNavigation)||void 0===a?void 0:a.finalUrl)&&0===o&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,i){const r=new $m(t.id,this.serializeUrl(t.extractedUrl),i);this.triggerEvent(r),t.resolve(!1)}generateNgRouterState(t,i){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:i}:{navigationId:t}}}return e.\u0275fac=function(t){Na()},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})();function Rv(e){return"imperative"!==e}let de=(()=>{class e{constructor(t,i,r){this.router=t,this.route=i,this.locationStrategy=r,this.commands=null,this.href=null,this.onChanges=new C2,this.subscription=t.events.subscribe(a=>{a instanceof gn&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:null}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,i,r,a,o){if(0!==t||i||r||a||o||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const s={skipLocationChange:R6(this.skipLocationChange),replaceUrl:R6(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:R6(this.preserveFragment)})}}return e.\u0275fac=function(t){return new(t||e)(V(X1),V(Ce),V(it))},e.\u0275dir=U({type:e,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,i){1&t&&T("click",function(a){return i.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),2&t&&j("target",i.target)("href",i.href,Qe)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[z1]}),e})();function R6(e){return""===e||!!e}class Pv{}class Fv{preload(n,t){return a2(null)}}let Bv=(()=>{class e{constructor(t,i,r,a){this.router=t,this.injector=r,this.preloadingStrategy=a,this.loader=new Iv(r,i,c=>t.triggerEvent(new Wm(c)),c=>t.triggerEvent(new qm(c)))}setUpPreloading(){this.subscription=this.router.events.pipe(Z1(t=>t instanceof gn),pn(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(X4);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,i){const r=[];for(const a of i)if(a.loadChildren&&!a.canLoad&&a._loadedConfig){const o=a._loadedConfig;r.push(this.processRoutes(o.module,o.routes))}else a.loadChildren&&!a.canLoad?r.push(this.preloadConfig(t,a)):a.children&&r.push(this.processRoutes(t,a.children));return G1(r).pipe(q6(),m2(a=>{}))}preloadConfig(t,i){return this.preloadingStrategy.preload(i,()=>(i._loadedConfig?a2(i._loadedConfig):this.loader.load(t.injector,i)).pipe(b1(a=>(i._loadedConfig=a,this.processRoutes(a.module,a.routes)))))}}return e.\u0275fac=function(t){return new(t||e)(q(X1),q(fd),q(R1),q(Pv))},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})(),Rs=(()=>{class e{constructor(t,i,r={}){this.router=t,this.viewportScroller=i,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof q0?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof gn&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Km&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,i){this.router.triggerEvent(new Km(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return e.\u0275fac=function(t){Na()},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})();const bt=new v2("ROUTER_CONFIGURATION"),Uv=new v2("ROUTER_FORROOT_GUARD"),gW=[So,{provide:rv,useClass:av},{provide:X1,useFactory:function yW(e,n,t,i,r,a,o={},s,c){const l=new X1(null,e,n,t,i,r,Zm(a));return s&&(l.urlHandlingStrategy=s),c&&(l.routeReuseStrategy=c),function bW(e,n){e.errorHandler&&(n.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(n.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(n.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(n.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(n.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(n.urlUpdateStrategy=e.urlUpdateStrategy),e.canceledNavigationResolution&&(n.canceledNavigationResolution=e.canceledNavigationResolution)}(o,l),o.enableTracing&&l.events.subscribe(u=>{var f,h;null===(f=console.group)||void 0===f||f.call(console,`Router Event: ${u.constructor.name}`),console.log(u.toString()),console.log(u),null===(h=console.groupEnd)||void 0===h||h.call(console)}),l},deps:[rv,Ln,So,R1,fd,Is,bt,[class oW{},new be],[class iW{},new be]]},Ln,{provide:Ce,useFactory:function LW(e){return e.routerState.root},deps:[X1]},Bv,Fv,class pW{preload(n,t){return t().pipe(Re(()=>a2(null)))}},{provide:bt,useValue:{enableTracing:!1}}];function mW(){return new gd("Router",X1)}let jv=(()=>{class e{constructor(t,i){}static forRoot(t,i){return{ngModule:e,providers:[gW,Gv(t),{provide:Uv,useFactory:MW,deps:[[X1,new be,new u5]]},{provide:bt,useValue:i||{}},{provide:it,useFactory:_W,deps:[nt,[new C8(Do),new be],bt]},{provide:Rs,useFactory:vW,deps:[X1,wI,bt]},{provide:Pv,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:Fv},{provide:gd,multi:!0,useFactory:mW},[Ps,{provide:uo,multi:!0,useFactory:VW,deps:[Ps]},{provide:$v,useFactory:HW,deps:[Ps]},{provide:ud,multi:!0,useExisting:$v}]]}}static forChild(t){return{ngModule:e,providers:[Gv(t)]}}}return e.\u0275fac=function(t){return new(t||e)(q(Uv,8),q(X1,8))},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({}),e})();function vW(e,n,t){return t.scrollOffset&&n.setOffset(t.scrollOffset),new Rs(e,n,t)}function _W(e,n,t={}){return t.useHash?new Id(e,n):new kd(e,n)}function MW(e){return"guarded"}function Gv(e){return[{provide:ZD,multi:!0,useValue:e},{provide:Is,multi:!0,useValue:e}]}let Ps=(()=>{class e{constructor(t){this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new C2}appInitializer(){return this.injector.get(ak,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let i=null;const r=new Promise(s=>i=s),a=this.injector.get(X1),o=this.injector.get(bt);return"disabled"===o.initialNavigation?(a.setUpLocationChangeListener(),i(!0)):"enabled"===o.initialNavigation||"enabledBlocking"===o.initialNavigation?(a.hooks.afterPreactivation=()=>this.initNavigation?a2(null):(this.initNavigation=!0,i(!0),this.resultOfPreactivationDone),a.initialNavigation()):i(!0),r})}bootstrapListener(t){const i=this.injector.get(bt),r=this.injector.get(Bv),a=this.injector.get(Rs),o=this.injector.get(X1),s=this.injector.get(F5);t===s.components[0]&&(("enabledNonBlocking"===i.initialNavigation||void 0===i.initialNavigation)&&o.initialNavigation(),r.setUpPreloading(),a.init(),o.resetRootComponentType(s.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return e.\u0275fac=function(t){return new(t||e)(q(R1))},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})();function VW(e){return e.appInitializer.bind(e)}function HW(e){return e.bootstrapListener.bind(e)}const $v=new v2("Router Initializer");let DW=(()=>{class e{constructor(){this.title="config-ui",this.logoSrc="assets/images/homebridge-eufy-security.png"}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=s2({type:e,selectors:[["app-root"]],decls:16,vars:1,consts:[[1,"card","card-body",2,"width","100%"],[1,"logo"],[1,"logo",3,"src"],[1,"text-center"],[2,"font-weight","800"],[1,"pluginContent",2,"max-width","720px !important"],[1,"footer"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"div",1),I(2,"img",2),m(),g(3,"h3",3),y(4," Welcome to"),I(5,"br"),g(6,"b",4),y(7,"Eufy Security Plugin"),m()(),g(8,"h6",3),y(9,"Homebridge plugin for Eufy Security Devices"),m(),I(10,"hr"),g(11,"div",5),I(12,"router-outlet"),m(),I(13,"hr"),g(14,"div",6),y(15,"We are not affiliated, associated, authorized, endorsed by, or in any way officially connected with Anker Innovations Technology Co.LTd, and Shenzhen Oceanwing Smart Innovations Technology Co., Ltd, and its affiliated companies within the Anker Group, or any of its subsidiaries or its affiliates. "),m()()),2&t&&(_(2),b("src",i.logoSrc,Qe))},directives:[Es],styles:["div.logo[_ngcontent-%COMP%]{text-align:center;margin:0 0 5px}img.logo[_ngcontent-%COMP%]{text-align:center;margin:0 auto;max-width:75%;height:auto;object-fit:cover}.footer[_ngcontent-%COMP%]{font-size:small;color:#888}"]}),e})();function Wv(e,n,t,i,r,a,o){try{var s=e[a](o),c=s.value}catch(l){return void t(l)}s.done?n(c):Promise.resolve(c).then(i,r)}function L2(e){return function(){var n=this,t=arguments;return new Promise(function(i,r){var a=e.apply(n,t);function o(c){Wv(a,i,r,o,s,"next",c)}function s(c){Wv(a,i,r,o,s,"throw",c)}o(void 0)})}}var pM={prefix:"fas",iconName:"circle",icon:[512,512,[128308,128309,128992,128993,128994,128995,128996,9898,9899,11044,61708,61915,9679],"f111","M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256z"]},AM={prefix:"fas",iconName:"circle-minus",icon:[512,512,["minus-circle"],"f056","M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM168 232C154.7 232 144 242.7 144 256C144 269.3 154.7 280 168 280H344C357.3 280 368 269.3 368 256C368 242.7 357.3 232 344 232H168z"]},RM={prefix:"fas",iconName:"circle-plus",icon:[512,512,["plus-circle"],"f055","M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM256 368C269.3 368 280 357.3 280 344V280H344C357.3 280 368 269.3 368 256C368 242.7 357.3 232 344 232H280V168C280 154.7 269.3 144 256 144C242.7 144 232 154.7 232 168V232H168C154.7 232 144 242.7 144 256C144 269.3 154.7 280 168 280H232V344C232 357.3 242.7 368 256 368z"]},vy={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M150.7 92.77C195 58.27 251.8 32 320 32C400.8 32 465.5 68.84 512.6 112.6C559.4 156 590.7 207.1 605.5 243.7C608.8 251.6 608.8 260.4 605.5 268.3C592.1 300.6 565.2 346.1 525.6 386.7L630.8 469.1C641.2 477.3 643.1 492.4 634.9 502.8C626.7 513.2 611.6 515.1 601.2 506.9L9.196 42.89C-1.236 34.71-3.065 19.63 5.112 9.196C13.29-1.236 28.37-3.065 38.81 5.112L150.7 92.77zM223.1 149.5L313.4 220.3C317.6 211.8 320 202.2 320 191.1C320 180.5 316.1 169.7 311.6 160.4C314.4 160.1 317.2 159.1 320 159.1C373 159.1 416 202.1 416 255.1C416 269.7 413.1 282.7 407.1 294.5L446.6 324.7C457.7 304.3 464 280.9 464 255.1C464 176.5 399.5 111.1 320 111.1C282.7 111.1 248.6 126.2 223.1 149.5zM320 480C239.2 480 174.5 443.2 127.4 399.4C80.62 355.1 49.34 304 34.46 268.3C31.18 260.4 31.18 251.6 34.46 243.7C44 220.8 60.29 191.2 83.09 161.5L177.4 235.8C176.5 242.4 176 249.1 176 255.1C176 335.5 240.5 400 320 400C338.7 400 356.6 396.4 373 389.9L446.2 447.5C409.9 467.1 367.8 480 320 480H320z"]},v9={prefix:"fas",iconName:"rotate",icon:[512,512,[128260,"sync-alt"],"f2f1","M449.9 39.96l-48.5 48.53C362.5 53.19 311.4 32 256 32C161.5 32 78.59 92.34 49.58 182.2c-5.438 16.81 3.797 34.88 20.61 40.28c16.97 5.5 34.86-3.812 40.3-20.59C130.9 138.5 189.4 96 256 96c37.96 0 73 14.18 100.2 37.8L311.1 178C295.1 194.8 306.8 223.4 330.4 224h146.9C487.7 223.7 496 215.3 496 204.9V59.04C496 34.99 466.9 22.95 449.9 39.96zM441.8 289.6c-16.94-5.438-34.88 3.812-40.3 20.59C381.1 373.5 322.6 416 256 416c-37.96 0-73-14.18-100.2-37.8L200 334C216.9 317.2 205.2 288.6 181.6 288H34.66C24.32 288.3 16 296.7 16 307.1v145.9c0 24.04 29.07 36.08 46.07 19.07l48.5-48.53C149.5 458.8 200.6 480 255.1 480c94.45 0 177.4-60.34 206.4-150.2C467.9 313 458.6 294.1 441.8 289.6z"]},M9={prefix:"fas",iconName:"screwdriver-wrench",icon:[512,512,["tools"],"f7d9","M331.8 224.1c28.29 0 54.88 10.99 74.86 30.97l19.59 19.59c40.01-17.74 71.25-53.3 81.62-96.65c5.725-23.92 5.34-47.08 .2148-68.4c-2.613-10.88-16.43-14.51-24.34-6.604l-68.9 68.9h-75.6V97.2l68.9-68.9c7.912-7.912 4.275-21.73-6.604-24.34c-21.32-5.125-44.48-5.51-68.4 .2148c-55.3 13.23-98.39 60.22-107.2 116.4C224.5 128.9 224.2 137 224.3 145l82.78 82.86C315.2 225.1 323.5 224.1 331.8 224.1zM384 278.6c-23.16-23.16-57.57-27.57-85.39-13.9L191.1 158L191.1 95.99l-127.1-95.99L0 63.1l96 127.1l62.04 .0077l106.7 106.6c-13.67 27.82-9.251 62.23 13.91 85.39l117 117.1c14.62 14.5 38.21 14.5 52.71-.0016l52.75-52.75c14.5-14.5 14.5-38.08-.0016-52.71L384 278.6zM227.9 307L168.7 247.9l-148.9 148.9c-26.37 26.37-26.37 69.08 0 95.45C32.96 505.4 50.21 512 67.5 512s34.54-6.592 47.72-19.78l119.1-119.1C225.5 352.3 222.6 329.4 227.9 307zM64 472c-13.25 0-24-10.75-24-24c0-13.26 10.75-24 24-24S88 434.7 88 448C88 461.3 77.25 472 64 472z"]},x=(()=>{return(e=x||(x={}))[e.STATION=0]="STATION",e[e.CAMERA=1]="CAMERA",e[e.SENSOR=2]="SENSOR",e[e.FLOODLIGHT=3]="FLOODLIGHT",e[e.CAMERA_E=4]="CAMERA_E",e[e.DOORBELL=5]="DOORBELL",e[e.BATTERY_DOORBELL=7]="BATTERY_DOORBELL",e[e.CAMERA2C=8]="CAMERA2C",e[e.CAMERA2=9]="CAMERA2",e[e.MOTION_SENSOR=10]="MOTION_SENSOR",e[e.KEYPAD=11]="KEYPAD",e[e.CAMERA2_PRO=14]="CAMERA2_PRO",e[e.CAMERA2C_PRO=15]="CAMERA2C_PRO",e[e.BATTERY_DOORBELL_2=16]="BATTERY_DOORBELL_2",e[e.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.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",x;var e})();class En{static isDoorbell(n){return n===x.DOORBELL||n===x.BATTERY_DOORBELL||n===x.BATTERY_DOORBELL_2||n===x.BATTERY_DOORBELL_PLUS||n===x.DOORBELL_SOLO}static isCamera(n){return n===x.CAMERA||n===x.CAMERA2||n===x.CAMERA_E||n===x.CAMERA2C||n===x.INDOOR_CAMERA||n===x.INDOOR_PT_CAMERA||n===x.FLOODLIGHT||n===x.DOORBELL||n===x.BATTERY_DOORBELL||n===x.BATTERY_DOORBELL_2||n===x.BATTERY_DOORBELL_PLUS||n===x.DOORBELL_SOLO||n===x.CAMERA2C_PRO||n===x.CAMERA2_PRO||n===x.INDOOR_CAMERA_1080||n===x.INDOOR_PT_CAMERA_1080||n===x.SOLO_CAMERA||n===x.SOLO_CAMERA_PRO||n===x.SOLO_CAMERA_SPOTLIGHT_1080||n===x.SOLO_CAMERA_SPOTLIGHT_2K||n===x.SOLO_CAMERA_SPOTLIGHT_SOLAR||n===x.INDOOR_OUTDOOR_CAMERA_1080P||n===x.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT||n===x.INDOOR_OUTDOOR_CAMERA_2K||n===x.INDOOR_COST_DOWN_CAMERA||n===x.FLOODLIGHT_CAMERA_8422||n===x.FLOODLIGHT_CAMERA_8423||n===x.FLOODLIGHT_CAMERA_8424}static supportsRTSP(n){return n===x.CAMERA||n===x.CAMERA2||n===x.CAMERA2C||n===x.CAMERA2C_PRO||n===x.CAMERA_E||n===x.INDOOR_CAMERA||n===x.INDOOR_CAMERA_1080||n===x.INDOOR_OUTDOOR_CAMERA_1080P||n===x.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT||n===x.INDOOR_OUTDOOR_CAMERA_2K||n===x.INDOOR_PT_CAMERA||n===x.INDOOR_PT_CAMERA_1080||n===x.INDOOR_COST_DOWN_CAMERA||n===x.FLOODLIGHT_CAMERA_8423}static supportsTalkback(n){return n===x.CAMERA2||n===x.CAMERA2C||n===x.CAMERA2C_PRO||n===x.CAMERA2_PRO||n===x.DOORBELL||n===x.BATTERY_DOORBELL||n===x.BATTERY_DOORBELL_2||n===x.BATTERY_DOORBELL_PLUS||n===x.DOORBELL_SOLO||n===x.INDOOR_CAMERA||n===x.INDOOR_CAMERA_1080||n===x.INDOOR_OUTDOOR_CAMERA_1080P||n===x.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT||n===x.INDOOR_OUTDOOR_CAMERA_2K||n===x.INDOOR_PT_CAMERA||n===x.INDOOR_PT_CAMERA_1080||n===x.INDOOR_COST_DOWN_CAMERA||n===x.SOLO_CAMERA||n===x.SOLO_CAMERA_PRO||n===x.SOLO_CAMERA_SPOTLIGHT_1080||n===x.SOLO_CAMERA_SPOTLIGHT_2K||n===x.SOLO_CAMERA_SPOTLIGHT_SOLAR||n===x.FLOODLIGHT||n===x.FLOODLIGHT_CAMERA_8422||n===x.FLOODLIGHT_CAMERA_8423||n===x.FLOODLIGHT_CAMERA_8424}}const k9=new Map([[x.STATION,{image:"homebase2_large.jpg",padding:"0px"}],[x.CAMERA,{image:"eufycam_large.jpg",padding:"0px"}],[x.SENSOR,{image:"sensor_large.jpg",padding:"0px"}],[x.FLOODLIGHT,{image:"floodlight_large.jpg",padding:"0px"}],[x.CAMERA_E,{image:"eufycam_large.jpg",padding:"0px"}],[x.DOORBELL,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[x.BATTERY_DOORBELL,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[x.CAMERA2C,{image:"eufycam2c_large.jpg",padding:"0px"}],[x.CAMERA2,{image:"eufycam2_large.jpg",padding:"0px"}],[x.MOTION_SENSOR,{image:"motionsensor_large.jpg",padding:"0px"}],[x.KEYPAD,{image:"keypad_large.jpg",padding:"0px"}],[x.CAMERA2_PRO,{image:"eufycam2pro_large.jpg",padding:"0px"}],[x.CAMERA2C_PRO,{image:"eufycam2cpro_large.jpg",padding:"0px"}],[x.BATTERY_DOORBELL_2,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[x.INDOOR_CAMERA,{image:"indoorcammini_large.jpg",padding:"0px"}],[x.INDOOR_PT_CAMERA,{image:"indoorcamp24_large.jpg",padding:"0px"}],[x.SOLO_CAMERA,{image:"solocame20_large.jpg",padding:"0px"}],[x.SOLO_CAMERA_PRO,{image:"solocame20_large.jpg",padding:"0px"}],[x.INDOOR_CAMERA_1080,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[x.INDOOR_PT_CAMERA_1080,{image:"indoorcamp24_large.jpg",padding:"0px"}],[x.FLOODLIGHT_CAMERA_8422,{image:"floodlight_large.jpg",padding:"0px"}],[x.FLOODLIGHT_CAMERA_8423,{image:"floodlight2pro_large.jpg",padding:"0px"}],[x.FLOODLIGHT_CAMERA_8424,{image:"floodlight2_large.jpg",padding:"0px"}],[x.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[x.INDOOR_OUTDOOR_CAMERA_2K,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[x.INDOOR_OUTDOOR_CAMERA_1080P,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[x.LOCK_BLE,{image:"smartlock_touch_t8510_large.jpg",padding:"0px"}],[x.LOCK_WIFI,{image:"smartlock_touch_t8510_large.jpg",padding:"0px"}],[x.LOCK_BLE_NO_FINGER,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[x.LOCK_WIFI_NO_FINGER,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[x.LOCK_8503,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[x.LOCK_8530,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[x.LOCK_85A3,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[x.LOCK_8592,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[x.LOCK_8504,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[x.SOLO_CAMERA_SPOTLIGHT_1080,{image:"solooutdoorcamc24_large.jpg",padding:"15px"}],[x.SOLO_CAMERA_SPOTLIGHT_2K,{image:"solooutdoorcamc24_large.jpg",padding:"15px"}],[x.SOLO_CAMERA_SPOTLIGHT_SOLAR,{image:"solocams40_large.jpg",padding:"10px"}],[x.SMART_DROP,{image:"unknown.png",padding:"20px"}],[x.BATTERY_DOORBELL_PLUS,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[x.DOORBELL_SOLO,{image:"wireddoorbelldual_large.jpg",padding:"0px"}],[x.INDOOR_COST_DOWN_CAMERA,{image:"indoorcammini_large.jpg",padding:"0px"}],[x.CAMERA_GUN,{image:"unknown.png",padding:"20px"}],[x.CAMERA_SNAIL,{image:"unknown.png",padding:"20px"}],[x.CAMERA_FG,{image:"unknown.png",padding:"20px"}],[x.SMART_SAFE_7400,{image:"unknown.png",padding:"20px"}],[x.SMART_SAFE_7401,{image:"unknown.png",padding:"20px"}],[x.SMART_SAFE_7402,{image:"unknown.png",padding:"20px"}],[x.SMART_SAFE_7403,{image:"unknown.png",padding:"20px"}]]);let J2=(()=>{class e extends EventTarget{constructor(){super(),this.stations=[],this.devices=[],this.accessories$=h3(window.homebridge,"addAccessory"),this.init()}init(){this.accessories$.subscribe(t=>{this.loadStoredAccessories()}),this.loadStoredAccessories()}getStations(){return this.stations}getDevices(){return this.devices}getStation(t){return this.stations.find(i=>i.uniqueId===t)}getDevice(t){return this.devices.find(i=>i.uniqueId===t)}loadStoredAccessories(){var t=this;return L2(function*(){try{const i=yield window.homebridge.request("/storedAccessories");return i.forEach(r=>{t.addAccessory(r)}),0!==i.length&&t.dispatchEvent(new Event("newAccessories")),Promise.resolve(0!==i.length)}catch(i){return Promise.reject(i)}})()}addAccessory(t){const i=t.station?this.stations:this.devices;i.find(r=>r.uniqueId===t.uniqueId)||i.push(t)}getConfig(){var t=this;return L2(function*(){return t.config?Promise.resolve(t.config):t.getPlatformConfig()})()}updateConfig(t,i){var r=this;return L2(function*(){try{yield window.homebridge.updatePluginConfig([t]),r.config=t,i&&(yield window.homebridge.savePluginConfig()),r.dispatchEvent(new Event("configChanged"))}catch(a){console.log("There was an error updating the credentials in your config: "+a)}})()}getPlatformConfig(){var t=this;return L2(function*(){try{const i=yield window.homebridge.getPluginConfig();return i.length>0?(t.config=i[0],t.config.platform="EufySecurity",Promise.resolve(i[0])):Promise.reject("Could not get Platform config")}catch(i){return Promise.reject(i)}})()}getCachedName(t){return L2(function*(){let r;return(yield window.homebridge.getCachedAccessories()).forEach(a=>{a.context&&a.context.device&&a.context.device.uniqueId===t.uniqueId&&a.context.device.station===t.station&&(r=a.context.device.displayName)}),Promise.resolve(r)})()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function $l2(e,n){if(1&e){const t=V1();g(0,"div",2)(1,"h4",3),y(2,"Refresh stations and devices"),m(),g(3,"button",4),T("click",function(){return W(t).$implicit.dismiss("Cross click")}),m()(),g(4,"div",5)(5,"div",6),y(6," To refresh all stations and devices you will be logged into your eufy account. This can interfere with the plugins connection to the eufy cloud. "),I(7,"p"),g(8,"b",7),y(9,"We strongly recommened that you restart the plugin after you're done with the configuration even if you didn't change any settings."),m(),I(10,"p"),y(11," Otherwise you might experience glitches like no longer working push notifications for the plugin (see "),g(12,"a",8),y(13,"here"),m(),y(14," for more information). "),m()(),g(15,"div",9)(16,"a",10),T("click",function(){return W(t).$implicit.close("Login")}),y(17,"Login with eufy"),m()()}}function Wl2(e,n){1&e&&(g(0,"div",11)(1,"div",12),I(2,"div",13),g(3,"div",14)(4,"div",15)(5,"div",16),y(6," Loading Accessories... "),g(7,"div",17),I(8,"div",18),m()()()(),I(9,"div",13),m()())}function ql2(e,n){if(1&e&&(g(0,"span",42),I(1,"fa-icon",43),m()),2&e){const t=E(3);_(1),b("icon",t.ignoreIcon)}}function Kl2(e,n){if(1&e&&(g(0,"div",31)(1,"div",32)(2,"div",33)(3,"a",34)(4,"div",35),I(5,"img",36),g(6,"span",37),I(7,"fa-icon",38),m(),R(8,ql2,2,1,"span",39),m()()()(),g(9,"span",40),y(10),m(),g(11,"span",41),y(12),m()()),2&e){const t=n.$implicit,i=E(2);let r;_(3),f6("routerLink","/stationConfig/",t.uniqueId,""),_(2),b("src","assets/devices/"+(i.DeviceImage.get(t.type)?null==(r=i.DeviceImage.get(t.type))?null:r.image:"unknown.png"),Qe),j("style",i.getDevicePanelStyle(t),Q4),_(2),b("icon",i.settingsIcon),_(1),b("ngIf",t.ignored),_(2),S5(t.cachedName?t.cachedName:t.displayName),_(2),Q3("(",t.uniqueId,")")}}function Yl2(e,n){if(1&e&&(g(0,"span",42),I(1,"fa-icon",43),m()),2&e){const t=E(3);_(1),b("icon",t.ignoreIcon)}}function Ql2(e,n){if(1&e&&(g(0,"div",31)(1,"div",32)(2,"div",33)(3,"a",34)(4,"div",35),I(5,"img",36),g(6,"span",37),I(7,"fa-icon",38),m(),R(8,Yl2,2,1,"span",39),m()()()(),g(9,"span",40),y(10),m(),g(11,"span",41),y(12),m()()),2&e){const t=n.$implicit,i=E(2);let r;_(3),f6("routerLink","/cameraConfig/",t.uniqueId,""),_(2),b("src","assets/devices/"+(i.DeviceImage.get(t.type)?null==(r=i.DeviceImage.get(t.type))?null:r.image:"unknown.png"),Qe),j("style",i.getDevicePanelStyle(t),Q4),_(2),b("icon",i.settingsIcon),_(1),b("ngIf",t.ignored),_(2),S5(t.cachedName?t.cachedName:t.displayName),_(2),Q3("(",t.uniqueId,")")}}function Zl2(e,n){if(1&e){const t=V1();g(0,"div",11)(1,"div",19)(2,"div",20)(3,"button",21),T("click",function(){W(t);const r=E(),a=Y3(1);return r.openReloadModal(a)}),I(4,"fa-icon",22),m()(),g(5,"div",23)(6,"a",24),y(7,"Plugin Settings"),m()()(),I(8,"p"),g(9,"span"),y(10,"Click on any device below to access its settings."),m(),I(11,"p"),g(12,"div",25)(13,"div",26),y(14," Stations "),m(),g(15,"div",27)(16,"div",19),R(17,Kl2,13,7,"div",28),m()()(),I(18,"p"),g(19,"div",25)(20,"div",26),y(21," Devices "),m(),g(22,"div",29)(23,"div",19),R(24,Ql2,13,7,"div",28),m()()(),I(25,"p"),g(26,"span")(27,"i"),y(28,"The images used above are 'best effort' for now, since we do not own every eufy device. If you experience that your device is depicted with a wrong image please feel free to let us know in an issue on our "),g(29,"a",30),y(30,"Github page."),m()()()()}if(2&e){const t=E();_(4),b("icon",t.reloadIcon),_(13),b("ngForOf",t.stations),_(7),b("ngForOf",t.devices)}}let Jl2=(()=>{class e{constructor(t,i,r,a){this.modalService=t,this.pluginService=i,this.route=r,this.routerService=a,this.stations=[],this.devices=[],this.settingsIcon=M9,this.ignoreIcon=vy,this.reloadIcon=v9,this.DeviceImage=k9,this.closeResult=""}ngOnInit(){this.waitForAccessories="true"===this.route.snapshot.paramMap.get("waitForAccessories"),this.pluginService.addEventListener("newAccessories",()=>{console.log("plugin accessories have changed. updating..."),this.updateDevices(),this.updateStations()}),this.updateStations(),this.updateDevices(),!this.waitForAccessories&&0===this.stations.length&&0===this.devices.length&&this.pluginService.loadStoredAccessories().then(t=>{t||this.routerService.navigateByUrl("/login")}).catch(t=>{this.routerService.navigateByUrl("/login")})}updateStations(){this.stations=this.pluginService.getStations(),this.updateProperties()}updateDevices(){this.devices=this.pluginService.getDevices(),this.updateProperties()}updateProperties(){var t=this;return L2(function*(){const i=yield t.pluginService.getConfig();Array.isArray(i.ignoreStations)&&t.stations.forEach(r=>{r.ignored=void 0!==i.ignoreStations.find(a=>a===r.uniqueId)}),Array.isArray(i.ignoreDevices)&&t.devices.forEach(r=>{r.ignored=void 0!==i.ignoreDevices.find(a=>a===r.uniqueId)}),t.stations.forEach(r=>{t.pluginService.getCachedName(r).then(a=>r.cachedName=a)}),t.devices.forEach(r=>{t.pluginService.getCachedName(r).then(a=>r.cachedName=a)})})()}openReloadModal(t){this.modalService.open(t,{ariaLabelledBy:"modal-basic-title",centered:!0}).result.then(i=>{this.closeResult=`Closed with: ${i}`},i=>{this.closeResult=`Dismissed ${this.getDismissReason(i)}`})}getDismissReason(t){return t===pt.ESC?"by pressing ESC":t===pt.BACKDROP_CLICK?"by clicking on a backdrop":`with: ${t}`}getDevicePanelStyle(t){var i;let r="";return t.ignored&&(r+="opacity: 0.2;"),k9.get(t.type)?r+="padding:"+(null===(i=k9.get(t.type))||void 0===i?void 0:i.padding):r+="padding:20px",r}}return e.\u0275fac=function(t){return new(t||e)(V(vg),V(J2),V(Ce),V(X1))},e.\u0275cmp=s2({type:e,selectors:[["app-accessory-list"]],inputs:{waitForAccessories:"waitForAccessories"},decls:4,vars:2,consts:[["reloadModal",""],["class","container",4,"ngIf"],[1,"modal-header"],["id","modal-basic-title",1,"modal-title"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[1,"modal-body"],[1,"mb-3"],[2,"color","#dc3545"],["href","https://github.com/homebridge-eufy-security/plugin/issues/59#issuecomment-1147314942","target","_blank","rel","noopener noreferrer"],[1,"modal-footer"],["routerLink","/login",1,"btn","btn-success",3,"click"],[1,"container"],[1,"row","pl-5","pr-5"],[1,"col",2,"max-width","20%"],[1,"col","d-flex","justify-content-center"],[1,"card","shadow-sm","text-center","pt-3","pb-3",2,"width","100%"],[1,"mx-auto"],[1,"progress",2,"height","8px"],["role","progressbar","aria-valuenow","75","aria-valuemin","0","aria-valuemax","100",1,"progress-bar","progress-bar-striped","bg-info","progress-bar-animated",2,"width","75%"],[1,"row"],[1,"col-6"],["type","button",1,"btn","btn-success",3,"click"],["size","lg",3,"icon"],[1,"col-6","text-end"],["routerLink","/advancedConfig",1,"btn","btn-secondary"],[1,"card"],[1,"card-header"],[1,"card-body","pt-0","pb-0"],["class","col-6 col-sm-4 mt-3 mb-3 d-flex flex-column align-items-center",4,"ngFor","ngForOf"],[1,"card-body"],["href","https://github.com/homebridge-eufy-security/plugin","target","_blank","rel","noopener noreferrer"],[1,"col-6","col-sm-4","mt-3","mb-3","d-flex","flex-column","align-items-center"],[1,"col-12","col-sm-7"],[1,"text-center"],[2,"color","black",3,"routerLink"],[1,"device","ratio","ratio-1x1","border","rounded","shadow-sm"],[1,"deviceimage",3,"src"],[1,"devicesettingsicon","d-flex","border","align-items-center","justify-content-center",2,"z-index","15"],["size","2x",3,"icon"],["class","d-flex border align-items-top justify-content-end","style","z-index: 20;",4,"ngIf"],[1,"col-12","text-center"],[1,"col-12","serial","fw-light","text-center"],[1,"d-flex","border","align-items-top","justify-content-end",2,"z-index","20"],["size","xs",1,"mt-sm-1","m-sm-2","m-1","mt-0",3,"icon"]],template:function(t,i){1&t&&(R(0,$l2,18,0,"ng-template",null,0,J3),R(2,Wl2,10,0,"div",1),R(3,Zl2,31,3,"div",1)),2&t&&(_(2),b("ngIf",0===i.stations.length&&0===i.devices.length),_(1),b("ngIf",0!==i.stations.length||0!==i.devices.length))},directives:[de,B1,Pm,rt],styles:[".device[_ngcontent-%COMP%]:hover{transform:scale(1.05);border-color:#ffc107!important;color:#ffc107}.device[_ngcontent-%COMP%]{background-color:#fff!important;color:#000!important}.device[_ngcontent-%COMP%]:hover .deviceimage[_ngcontent-%COMP%]{opacity:.5}.device[_ngcontent-%COMP%] .devicesettingsicon[_ngcontent-%COMP%]{display:none!important}.device[_ngcontent-%COMP%]:hover .devicesettingsicon[_ngcontent-%COMP%]{display:flex!important;color:#ffa000!important}.serial[_ngcontent-%COMP%]{font-size:12px}"]}),e})(),Xl2=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=s2({type:e,selectors:[["app-edit-credentials"]],decls:6,vars:0,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-center"],[1,"mb-3","mb-sm-0"],["routerLink","/login",1,"btn","btn-secondary","col-12","col-sm-4"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"div",1)(2,"span",2),y(3,"Change username, password and country"),m(),g(4,"a",3),y(5,"New Login"),m()()())},directives:[de],encapsulation:2}),e})();class y1{constructor(n){this.pluginService=n,this.config={},this.pluginService.getConfig().then(t=>{this.config=t}).catch(t=>console.log("Could not get config in config interpreter: "+t))}getCameraConfig(n){var t=this;return L2(function*(){const i=yield t.pluginService.getConfig();return Array.isArray(i.cameras)?Promise.resolve(i.cameras.find(r=>r.serialNumber===n)):Promise.resolve(void 0)})()}getStationConfig(n){var t=this;return L2(function*(){const i=yield t.pluginService.getConfig();return Array.isArray(i.stations)?Promise.resolve(i.stations.find(r=>r.serialNumber===n)):Promise.resolve(void 0)})()}updateConfig(n,t){var i=this;return L2(function*(){let r=yield i.pluginService.getConfig();if(t||(r=Object.assign(Object.assign({},r),n)),t&&!1===t.station){Array.isArray(r.cameras)||(r.cameras=[]);let a=-1;r.cameras.forEach((o,s)=>{o.serialNumber===t.uniqueId&&(a=s)}),a>=0?r.cameras[a]=Object.assign(Object.assign({},r.cameras[a]),n):r.cameras.push(Object.assign({serialNumber:t.uniqueId},n))}else if(t&&!0===t.station){Array.isArray(r.stations)||(r.stations=[]);let a=-1;r.stations.forEach((o,s)=>{o.serialNumber===t.uniqueId&&(a=s)}),a>=0?r.stations[a]=Object.assign(Object.assign({},r.stations[a]),n):r.stations.push(Object.assign({serialNumber:t.uniqueId},n))}i.pluginService.updateConfig(r)})()}}let eu2=(()=>{class e extends y1{constructor(t){super(t),this.value=10,this.inputIsInvalid=!1}ngOnInit(){this.readValue()}readValue(){Object.prototype.hasOwnProperty.call(this.config,"pollingIntervalMinutes")&&(this.value=this.config.pollingIntervalMinutes)}update(){this.inputIsInvalid=!1,(!this.value||this.value<0)&&(this.inputIsInvalid=!0),this.inputIsInvalid||this.updateConfig({pollingIntervalMinutes:this.value})}}return e.\u0275fac=function(t){return new(t||e)(V(J2))},e.\u0275cmp=s2({type:e,selectors:[["app-polling-interval-minutes"]],features:[J],decls:13,vars:2,consts:[[1,"settingsItem","row","p-3","pb-0"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],[1,"input-group","input-group-sm"],["type","number","aria-label","Polling interval minutes","aria-describedby","basic-addon2",3,"ngModel","ngModelChange","change"],[1,"input-group-append"],["id","basic-addon2",1,"input-group-text"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Polling Interval"),m(),g(4,"div",2)(5,"div",3)(6,"input",4),T("ngModelChange",function(a){return i.value=a})("change",function(){return i.update()}),m(),g(7,"div",5)(8,"span",6),y(9,"minutes"),m()()()()(),g(10,"small")(11,"i"),y(12," Time in minutes before polling the eufy cloud for updated device information (set to 0 for no polling). "),m()()()),2&t&&(_(6),b("ngModel",i.value),j("class",i.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},directives:[b6,Ne,M1,h1],encapsulation:2}),e})(),tu2=(()=>{class e extends y1{constructor(t){super(t),this.value=30,this.inputIsInvalid=!1}ngOnInit(){this.readValue()}readValue(){Object.prototype.hasOwnProperty.call(this.config,"CameraMaxLivestreamDuration")&&(this.value=this.config.CameraMaxLivestreamDuration)}update(){this.inputIsInvalid=!1,(!this.value||this.value<0)&&(this.inputIsInvalid=!0),this.inputIsInvalid||this.updateConfig({CameraMaxLivestreamDuration:this.value})}}return e.\u0275fac=function(t){return new(t||e)(V(J2))},e.\u0275cmp=s2({type:e,selectors:[["app-livestream-duration-seconds"]],features:[J],decls:13,vars:2,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],[1,"input-group","input-group-sm"],["type","number","aria-label","Polling interval minutes","aria-describedby","basic-addon2",3,"ngModel","ngModelChange","change"],[1,"input-group-append"],["id","basic-addon2",1,"input-group-text"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Maximum Livestream Duration"),m(),g(4,"div",2)(5,"div",3)(6,"input",4),T("ngModelChange",function(a){return i.value=a})("change",function(){return i.update()}),m(),g(7,"div",5)(8,"span",6),y(9,"seconds"),m()()()()(),g(10,"small")(11,"i"),y(12," Time in second before ending the livestream automatically (longer livestreams imply shorter batterylife) "),m()()()),2&t&&(_(6),b("ngModel",i.value),j("class",i.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},directives:[b6,Ne,M1,h1],encapsulation:2}),e})(),nu2=(()=>{class e extends y1{constructor(t){super(t),this.model=!1}ngOnInit(){this.readValue()}readValue(){Object.prototype.hasOwnProperty.call(this.config,"enableDetailedLogging")&&(this.model=this.config.enableDetailedLogging)}update(){this.updateConfig({enableDetailedLogging:this.model})}}return e.\u0275fac=function(t){return new(t||e)(V(J2))},e.\u0275cmp=s2({type:e,selectors:[["app-enable-detailed-logging"]],features:[J],decls:9,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Debug Mode"),m(),g(4,"div",2)(5,"input",3),T("ngModelChange",function(a){return i.model=a})("change",function(){return i.update()}),m()()(),g(6,"small")(7,"i"),y(8," This will output more information to the homebridge logs. This helps the plugin team to understand what's going on. "),m()()()),2&t&&(_(5),b("ngModel",i.model))},directives:[C3,M1,h1],encapsulation:2}),e})(),iu2=(()=>{class e extends y1{constructor(t){super(t),this.value=!1}ngOnInit(){this.readValue()}readValue(){Object.prototype.hasOwnProperty.call(this.config,"omitLogFiles")&&(this.value=this.config.omitLogFiles)}update(){this.updateConfig({omitLogFiles:this.value})}}return e.\u0275fac=function(t){return new(t||e)(V(J2))},e.\u0275cmp=s2({type:e,selectors:[["app-omit-log-files"]],features:[J],decls:9,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Don't store log files"),m(),g(4,"div",2)(5,"input",3),T("ngModelChange",function(a){return i.value=a})("change",function(){return i.update()}),m()()(),g(6,"small")(7,"i"),y(8," This setting prevents log files to be stored to disk. If enabled, log messages will only be written to the Homebridge UI log window. "),m()()()),2&t&&(_(5),b("ngModel",i.value))},directives:[C3,M1,h1],encapsulation:2}),e})(),ru2=(()=>{class e extends y1{constructor(t){super(t),this.model=!1}ngOnInit(){this.readValue()}readValue(){Object.prototype.hasOwnProperty.call(this.config,"cleanCache")&&(this.model=this.config.cleanCache)}update(){this.updateConfig({cleanCache:this.model})}}return e.\u0275fac=function(t){return new(t||e)(V(J2))},e.\u0275cmp=s2({type:e,selectors:[["app-clean-cache"]],features:[J],decls:9,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Clean cache automatically"),m(),g(4,"div",2)(5,"input",3),T("ngModelChange",function(a){return i.model=a})("change",function(){return i.update()}),m()()(),g(6,"small")(7,"i"),y(8," When enabled, you let the plugin clean accessory when removed from the Eufy app. "),m()()()),2&t&&(_(5),b("ngModel",i.model))},directives:[C3,M1,h1],encapsulation:2}),e})();function au2(e,n){1&e&&(g(0,"span"),y(1,"These settings will only apply for this station. The global mappings can be found in the plugin settings."),m())}function ou2(e,n){1&e&&(g(0,"option",6),y(1,"Use global setting"),m()),2&e&&b("ngValue",void 0)}function su2(e,n){1&e&&(g(0,"option",6),y(1,"Use global setting"),m()),2&e&&b("ngValue",void 0)}function cu2(e,n){1&e&&(g(0,"option",6),y(1,"Use global setting"),m()),2&e&&b("ngValue",void 0)}function lu2(e,n){1&e&&(g(0,"option",6),y(1,"Use global setting"),m()),2&e&&b("ngValue",void 0)}let uu2=(()=>{class e extends y1{constructor(t){super(t),this.hkHome=void 0,this.hkAway=void 0,this.hkNight=void 0,this.hkOff=void 0}ngOnInit(){this.readValue()}readValue(){var t=this;return L2(function*(){const i=t.accessory?yield t.getStationConfig(t.accessory.uniqueId):yield t.pluginService.getConfig();i&&Object.prototype.hasOwnProperty.call(i,"hkHome")?t.hkHome=i.hkHome:t.accessory||(t.hkHome=1),i&&Object.prototype.hasOwnProperty.call(i,"hkAway")?t.hkAway=i.hkAway:t.accessory||(t.hkAway=0),i&&Object.prototype.hasOwnProperty.call(i,"hkNight")?t.hkNight=i.hkNight:t.accessory||(t.hkNight=3),i&&Object.prototype.hasOwnProperty.call(i,"hkOff")?t.hkOff=i.hkOff:t.accessory||(t.hkOff=63)})()}update(){var t=this;return L2(function*(){let i=t.accessory?yield t.getStationConfig(t.accessory.uniqueId):yield t.pluginService.getConfig();void 0===i&&(i={}),void 0===t.hkHome&&Object.prototype.hasOwnProperty.call(i,"hkHome")?delete i.hkHome:i.hkHome=t.hkHome,void 0===t.hkAway&&Object.prototype.hasOwnProperty.call(i,"hkAway")?delete i.hkAway:i.hkAway=t.hkAway,void 0===t.hkNight&&Object.prototype.hasOwnProperty.call(i,"hkNight")?delete i.hkNight:i.hkNight=t.hkNight,void 0===t.hkOff&&Object.prototype.hasOwnProperty.call(i,"hkOff")?delete i.hkOff:i.hkOff=t.hkOff;let r=yield t.pluginService.getConfig();if(t.accessory){Array.isArray(r.stations)||(r.stations=[]);let a=-1;r.stations.forEach((o,s)=>{var c;o.serialNumber===(null===(c=t.accessory)||void 0===c?void 0:c.uniqueId)&&(a=s)}),a>=0?r.stations[a]=i:(i.serialNumber=t.accessory.uniqueId,r.stations.push(i))}else r=i;t.pluginService.updateConfig(r)})()}}return e.\u0275fac=function(t){return new(t||e)(V(J2))},e.\u0275cmp=s2({type:e,selectors:[["app-guard-modes-mapping"]],inputs:{accessory:"accessory"},features:[J],decls:90,vars:41,consts:[[1,"settingsItem","row","p-3"],[4,"ngIf"],[1,"input-group","mb-1"],["for","inputGroupSelect01",1,"input-group-text","w-25"],["id","inputGroupSelect01",1,"form-select",3,"ngModel","ngModelChange","change"],[3,"ngValue",4,"ngIf"],[3,"ngValue"],["for","inputGroupSelect02",1,"input-group-text","w-25"],["id","inputGroupSelect02",1,"form-select",3,"ngModel","ngModelChange","change"],["for","inputGroupSelect03",1,"input-group-text","w-25"],["id","inputGroupSelect03",1,"form-select",3,"ngModel","ngModelChange","change"],["for","inputGroupSelect04",1,"input-group-text","w-25"],["id","inputGroupSelect04",1,"form-select",3,"ngModel","ngModelChange","change"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"span"),y(2,"Change how each mode in the HomeKit security system is mapped to the modes in the Eufy App."),m(),I(3,"p"),R(4,au2,2,0,"span",1),I(5,"p"),g(6,"div",2)(7,"label",3),y(8,"HomeKit Home"),m(),g(9,"select",4),T("ngModelChange",function(a){return i.hkHome=a})("change",function(){return i.update()}),R(10,ou2,2,1,"option",5),g(11,"option",6),y(12,"Eufy Home"),m(),g(13,"option",6),y(14,"Eufy Away"),m(),g(15,"option",6),y(16,"Eufy Schedule"),m(),g(17,"option",6),y(18,"Eufy Custom 1 (Night)"),m(),g(19,"option",6),y(20,"Eufy Custom 2"),m(),g(21,"option",6),y(22,"Eufy Custom 3"),m(),g(23,"option",6),y(24,"Eufy Geofencing"),m(),g(25,"option",6),y(26,"Eufy Disarmed"),m()()(),g(27,"div",2)(28,"label",7),y(29,"HomeKit Away"),m(),g(30,"select",8),T("ngModelChange",function(a){return i.hkAway=a})("change",function(){return i.update()}),R(31,su2,2,1,"option",5),g(32,"option",6),y(33,"Eufy Home"),m(),g(34,"option",6),y(35,"Eufy Away"),m(),g(36,"option",6),y(37,"Eufy Schedule"),m(),g(38,"option",6),y(39,"Eufy Custom 1 (Night)"),m(),g(40,"option",6),y(41,"Eufy Custom 2"),m(),g(42,"option",6),y(43,"Eufy Custom 3"),m(),g(44,"option",6),y(45,"Eufy Geofencing"),m(),g(46,"option",6),y(47,"Eufy Disarmed"),m()()(),g(48,"div",2)(49,"label",9),y(50,"HomeKit Night"),m(),g(51,"select",10),T("ngModelChange",function(a){return i.hkNight=a})("change",function(){return i.update()}),R(52,cu2,2,1,"option",5),g(53,"option",6),y(54,"Eufy Home"),m(),g(55,"option",6),y(56,"Eufy Away"),m(),g(57,"option",6),y(58,"Eufy Schedule"),m(),g(59,"option",6),y(60,"Eufy Custom 1 (Night)"),m(),g(61,"option",6),y(62,"Eufy Custom 2"),m(),g(63,"option",6),y(64,"Eufy Custom 3"),m(),g(65,"option",6),y(66,"Eufy Geofencing"),m(),g(67,"option",6),y(68,"Eufy Disarmed"),m()()(),g(69,"div",2)(70,"label",11),y(71,"HomeKit Off"),m(),g(72,"select",12),T("ngModelChange",function(a){return i.hkOff=a})("change",function(){return i.update()}),R(73,lu2,2,1,"option",5),g(74,"option",6),y(75,"Eufy Home"),m(),g(76,"option",6),y(77,"Eufy Away"),m(),g(78,"option",6),y(79,"Eufy Schedule"),m(),g(80,"option",6),y(81,"Eufy Custom 1 (Night)"),m(),g(82,"option",6),y(83,"Eufy Custom 2"),m(),g(84,"option",6),y(85,"Eufy Custom 3"),m(),g(86,"option",6),y(87,"Eufy Geofencing"),m(),g(88,"option",6),y(89,"Eufy Disarmed"),m()()()()),2&t&&(_(4),b("ngIf",i.accessory),_(5),b("ngModel",i.hkHome),_(1),b("ngIf",i.accessory),_(1),b("ngValue",1),_(2),b("ngValue",0),_(2),b("ngValue",2),_(2),b("ngValue",3),_(2),b("ngValue",4),_(2),b("ngValue",5),_(2),b("ngValue",47),_(2),b("ngValue",63),_(5),b("ngModel",i.hkAway),_(1),b("ngIf",i.accessory),_(1),b("ngValue",1),_(2),b("ngValue",0),_(2),b("ngValue",2),_(2),b("ngValue",3),_(2),b("ngValue",4),_(2),b("ngValue",5),_(2),b("ngValue",47),_(2),b("ngValue",63),_(5),b("ngModel",i.hkNight),_(1),b("ngIf",i.accessory),_(1),b("ngValue",1),_(2),b("ngValue",0),_(2),b("ngValue",2),_(2),b("ngValue",3),_(2),b("ngValue",4),_(2),b("ngValue",5),_(2),b("ngValue",47),_(2),b("ngValue",63),_(5),b("ngModel",i.hkOff),_(1),b("ngIf",i.accessory),_(1),b("ngValue",1),_(2),b("ngValue",0),_(2),b("ngValue",2),_(2),b("ngValue",3),_(2),b("ngValue",4),_(2),b("ngValue",5),_(2),b("ngValue",47),_(2),b("ngValue",63))},directives:[B1,ne,M1,h1,ot,st],encapsulation:2}),e})();var fu2=r1(172);function Cu2(e,n){if(1&e&&(g(0,"div",7),y(1),m()),2&e){const t=E();_(1),Q3(" ",t.failureMessage," ")}}function du2(e,n){1&e&&I(0,"span",10)}function hu2(e,n){1&e&&(g(0,"span"),y(1,"Download Logs"),m())}function pu2(e,n){1&e&&(g(0,"span"),y(1," Generating Log File..."),m())}function gu2(e,n){if(1&e){const t=V1();g(0,"button",8),T("click",function(){return W(t),E().downloadLogs()}),R(1,du2,1,0,"span",9),R(2,hu2,2,0,"span",6),R(3,pu2,2,0,"span",6),m()}if(2&e){const t=E();j("disabled",!!t.isDownloading||null),_(1),b("ngIf",t.isDownloading),_(1),b("ngIf",!t.isDownloading),_(1),b("ngIf",t.isDownloading)}}function mu2(e,n){if(1&e){const t=V1();g(0,"a",11),T("click",function(){return W(t),E().openLink()}),g(1,"span"),y(2,"Download Logs"),m()()}}function vu2(e,n){if(1&e&&(g(0,"small")(1,"i"),y(2),m()()),2&e){const t=E();_(2),Q3(" ",t.downloadMessage," ")}}function _u2(e,n){1&e&&(g(0,"small")(1,"i"),y(2," The log file should have downloaded. If not click the button again. The file will be named 'Unknown.zip', due to technical reasons."),I(3,"br"),g(4,"b"),y(5,"Please make sure that you have pop-ups allowed for this site. If you're not sure, maybe this "),g(6,"a",12),y(7,"site"),m(),y(8," can help."),m()()())}let Mu2=(()=>{class e{constructor(t,i){this.router=t,this.zone=i,this.failed=!1,this.isDownloading=!1,this.hasDownloaded=!1,this.failureMessage="",this.logFileLocation=""}ngOnInit(){this.routeSub=this.router.events.subscribe(t=>{t instanceof q0&&""!==this.logFileLocation&&(console.log("revoke log zip file blob location url."),window.URL.revokeObjectURL(this.logFileLocation),this.logFileLocation="")}),window.homebridge.addEventListener("downloadLogsFileCount",t=>{this.updateDownloadMessage(`Compressing ${t.data.numberOfFiles} log files...`)})}downloadLogs(){var t=this;return L2(function*(){try{t.isDownloading=!0;const i=yield window.homebridge.request("/downloadLogs"),r=fu2.lW.from(i.data),a=new File([r],"logs.zip",{type:"application/zip"}),o=window.URL.createObjectURL(a);t.logFileLocation=o,window.open(t.logFileLocation),t.updateDownloadMessage(void 0),t.hasDownloaded=!0}catch(i){console.log(i);const r=i;t.failed=!0,t.updateDownloadMessage(void 0),t.failureMessage=`Generating of compressed logs.zip file did not complete: ${r.message}`}finally{t.isDownloading=!1}})()}openLink(){window.open(this.logFileLocation)}updateDownloadMessage(t){this.zone.run(()=>{this.downloadMessage=t})}}return e.\u0275fac=function(t){return new(t||e)(V(X1),V($2))},e.\u0275cmp=s2({type:e,selectors:[["app-download-logs"]],decls:9,vars:5,consts:[[1,"settingsItem","row","p-3"],["class","alert alert-danger","role","alert",4,"ngIf"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-center","mb-2"],[1,"mb-3","mb-sm-0"],["type","button","class","btn btn-secondary col-12 col-sm-4",3,"click",4,"ngIf"],["class","btn btn-success col-12 col-sm-4",3,"click",4,"ngIf"],[4,"ngIf"],["role","alert",1,"alert","alert-danger"],["type","button",1,"btn","btn-secondary","col-12","col-sm-4",3,"click"],["class","spinner-border spinner-border-sm","role","status","aria-hidden","true",4,"ngIf"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm"],[1,"btn","btn-success","col-12","col-sm-4",3,"click"],["href","https://www.howtogeek.com/773082/how-to-disable-pop-up-blocker-in-chrome-firefox-edge-safari/","target","_blank","rel","noopener noreferrer"]],template:function(t,i){1&t&&(g(0,"div",0),R(1,Cu2,2,1,"div",1),g(2,"div",2)(3,"span",3),y(4,"Download Logs"),m(),R(5,gu2,4,4,"button",4),R(6,mu2,3,0,"a",5),m(),R(7,vu2,3,1,"small",6),R(8,_u2,9,0,"small",6),m()),2&t&&(_(1),b("ngIf",i.failed),_(4),b("ngIf",!i.hasDownloaded),_(1),b("ngIf",i.hasDownloaded),_(1),b("ngIf",i.downloadMessage),_(1),b("ngIf",i.hasDownloaded))},directives:[B1],encapsulation:2}),e})(),yu2=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=s2({type:e,selectors:[["app-reset-plugin"]],decls:9,vars:0,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-center","mb-2"],[1,"mb-3","mb-sm-0"],["routerLink","/reset",1,"btn","btn-danger","col-12","col-sm-4"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"div",1)(2,"span",2),y(3,"Reset Plugin"),m(),g(4,"a",3),y(5,"Remove everything"),m()(),g(6,"small")(7,"i"),y(8," This will delete the plugin settings and files. Please be aware that this will not delete any cached accessories from homebridge. You'll have to remove these manually via the homebridge UI. "),m()()())},directives:[de],encapsulation:2}),e})(),bu2=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=s2({type:e,selectors:[["app-advanced-config-options"]],decls:23,vars:0,consts:[["routerLink","/accessories",1,"btn","btn-secondary","mb-3"],[1,"card"],[1,"card-header"],[1,"card-body","pt-0","pb-4"]],template:function(t,i){1&t&&(g(0,"a",0),y(1,"Back to Devices List"),m(),g(2,"div",1)(3,"div",2),y(4," Advanced Settings "),m(),g(5,"div",3),I(6,"app-edit-credentials")(7,"hr")(8,"app-polling-interval-minutes")(9,"hr")(10,"app-livestream-duration-seconds")(11,"hr")(12,"app-enable-detailed-logging")(13,"hr")(14,"app-omit-log-files")(15,"hr")(16,"app-clean-cache")(17,"hr")(18,"app-guard-modes-mapping")(19,"hr")(20,"app-download-logs")(21,"hr")(22,"app-reset-plugin"),m()())},directives:[de,Xl2,eu2,tu2,nu2,iu2,ru2,uu2,Mu2,yu2],encapsulation:2}),e})(),gw=(()=>{class e extends y1{constructor(t){super(t),this.value=!1}ngOnInit(){this.readValue()}readValue(){var t=this;return L2(function*(){if(t.config=yield t.pluginService.getConfig(),t.accessory){const i=t.accessory.station?"ignoreStations":"ignoreDevices";Array.isArray(t.config[i])&&(t.value=void 0!==t.config[i].find(r=>r===t.accessory.uniqueId))}})()}update(){var t=this;return L2(function*(){if(!t.accessory)return;const i=t.accessory.station?"ignoreStations":"ignoreDevices";t.config=yield t.pluginService.getConfig(),t.value?Array.isArray(t.config[i])&&!t.config[i].find(r=>r===t.accessory.uniqueId)?t.config[i].push(t.accessory.uniqueId):Array.isArray(t.config[i])||(t.config[i]=[t.accessory.uniqueId]):Array.isArray(t.config[i])&&void 0!==t.config[i].find(r=>r===t.accessory.uniqueId)&&(t.config[i]=t.config[i].filter(r=>r!==t.accessory.uniqueId)),t.pluginService.updateConfig(t.config)})()}}return e.\u0275fac=function(t){return new(t||e)(V(J2))},e.\u0275cmp=s2({type:e,selectors:[["app-ignore-accessory"]],inputs:{accessory:"accessory"},features:[J],decls:6,vars:2,consts:[[1,"settingsItem","row","p-3","pb-1"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3),m(),g(4,"div",2)(5,"input",3),T("ngModelChange",function(a){return i.value=a})("change",function(){return i.update()}),m()()()()),2&t&&(_(3),Q3("Ignore ",i.accessory&&i.accessory.station?"Station":"Device",""),_(2),b("ngModel",i.value))},directives:[C3,M1,h1],encapsulation:2}),e})();function Lu2(e,n){1&e&&(g(0,"small")(1,"i"),y(2," This option is disabled since doorbells are handled always as cameras. "),m()())}function Vu2(e,n){1&e&&(g(0,"small")(1,"i"),y(2," Cameras are handled as Motion Sensor by default, switch this setting to use as Camera "),m()())}let Hu2=(()=>{class e extends y1{constructor(t){super(t),this.value=!1,this.disabled=!1}ngOnInit(){this.readValue()}readValue(){var t=this;return L2(function*(){var i;t.accessory&&En.isDoorbell(t.accessory.type)&&(t.value=!0,t.disabled=!0,t.update());const r=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");r&&Object.prototype.hasOwnProperty.call(r,"enableCamera")&&(t.value=r.enableCamera)})()}update(){this.updateConfig({enableCamera:this.value},this.accessory)}}return e.\u0275fac=function(t){return new(t||e)(V(J2))},e.\u0275cmp=s2({type:e,selectors:[["app-enable-camera"]],inputs:{accessory:"accessory"},features:[J],decls:12,vars:4,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],["aria-label","Device Operation Mode",1,"form-select",3,"ngModel","ngModelChange","change"],["value","false"],["value","true"],[4,"ngIf"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Operation Mode"),m(),g(4,"div",2)(5,"select",3),T("ngModelChange",function(a){return i.value=a})("change",function(){return i.update()}),g(6,"option",4),y(7,"Motion Sensor"),m(),g(8,"option",5),y(9,"Camera"),m()()()(),R(10,Lu2,3,0,"small",6),R(11,Vu2,3,0,"small",6),m()),2&t&&(_(5),b("ngModel",i.value),j("disabled",!!i.disabled||null),_(5),b("ngIf",i.disabled),_(1),b("ngIf",!i.disabled))},directives:[ne,M1,h1,ot,st,B1],encapsulation:2}),e})(),wu2=(()=>{class e extends y1{constructor(t){super(t),this.value=false}ngOnInit(){this.readValue()}readValue(){var t=this;return L2(function*(){var i;const r=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");r&&Object.prototype.hasOwnProperty.call(r,"useCachedLocalLivestream")&&(t.value=r.useCachedLocalLivestream)})()}update(){this.updateConfig({useCachedLocalLivestream:this.value},this.accessory)}}return e.\u0275fac=function(t){return new(t||e)(V(J2))},e.\u0275cmp=s2({type:e,selectors:[["app-livestream-cache"]],inputs:{accessory:"accessory"},features:[J],decls:12,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Use Local Livestream Caching"),m(),g(4,"div",2)(5,"input",3),T("ngModelChange",function(a){return i.value=a})("change",function(){return i.update()}),m()()(),g(6,"small")(7,"i")(8,"b"),y(9,"This setting seems only useful if you are able to set the video codec / video compression for the camera in the eufy app to 'low' (aka. H264 codec). If you can, we recommened to do so, since there can be a significant performance boost (aka. startup of livestreams)."),m(),I(10,"p"),y(11," If enabled local livestreams will be kept alive for a short time after the user stops streaming or a snapshot is refreshed (see 'Force Refresh Snapshot' also). This allows subsequent streams to start up much faster, but also may increase power consumption for battery powered devices. Additionally a livestream will be started (cached) immediately after an event (motion, person, doorbell) occurs, so that start up times are decreased. "),m()()()),2&t&&(_(5),b("ngModel",i.value))},directives:[C3,M1,h1],encapsulation:2}),e})();function Du2(e,n){1&e&&(g(0,"div",5),y(1," Talkback will not work while 'RTSP Streaming' is enabled! "),m())}let Su2=(()=>{class e extends y1{constructor(t){super(t),this.value=!1,this.talkbackIsEnabled=!1}ngOnInit(){this.readValue(),this.pluginService.addEventListener("configChanged",()=>this.readValue())}readValue(){var t=this;return L2(function*(){var i;const r=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");r&&Object.prototype.hasOwnProperty.call(r,"rtsp")&&(t.value=r.rtsp),r&&Object.prototype.hasOwnProperty.call(r,"talkback")&&(t.talkbackIsEnabled=r.talkback)})()}update(){this.updateConfig({rtsp:this.value},this.accessory)}}return e.\u0275fac=function(t){return new(t||e)(V(J2))},e.\u0275cmp=s2({type:e,selectors:[["app-rtsp-streaming"]],inputs:{accessory:"accessory"},features:[J],decls:11,vars:2,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"],["class","alert alert-danger","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-danger"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Use RTSP streaming"),m(),g(4,"div",2)(5,"input",3),T("ngModelChange",function(a){return i.value=a})("change",function(){return i.update()}),m()()(),R(6,Du2,2,0,"div",4),g(7,"small")(8,"i"),y(9," Try to utilize RTSP capabilities of some devices. This may result in improved streaming stability. Please be advised that RTSP must be enable within Eufy App first!"),I(10,"br"),m()()()),2&t&&(_(5),b("ngModel",i.value),_(1),b("ngIf",i.talkbackIsEnabled&&i.value))},directives:[C3,M1,h1,B1],encapsulation:2}),e})(),Nu2=(()=>{class e extends y1{constructor(t){super(t),this.value=!1,this.samplerate=0}ngOnInit(){this.readValue()}readValue(){var t=this;return L2(function*(){var i;const r=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");if(r&&r.videoConfig&&Object.prototype.hasOwnProperty.call(r.videoConfig,"audio")&&(t.value=r.videoConfig.audio),r&&r.videoConfig&&Object.prototype.hasOwnProperty.call(r.videoConfig,"audioSampleRate")){const a=r.videoConfig.audioSampleRate;(8===a||16===a||24===a)&&(t.samplerate=a)}})()}update(){var t=this;return L2(function*(){var i,r;if(!t.accessory)return;let a=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");a||(a={serialNumber:null===(r=t.accessory)||void 0===r?void 0:r.uniqueId,videoConfig:{}}),Object.prototype.hasOwnProperty.call(a,"videoConfig")||(a.videoConfig={}),a.videoConfig.audio=t.value,a.videoConfig.audioSampleRate=t.samplerate,t.updateConfig(a,t.accessory)})()}}return e.\u0275fac=function(t){return new(t||e)(V(J2))},e.\u0275cmp=s2({type:e,selectors:[["app-enable-audio"]],inputs:{accessory:"accessory"},features:[J],decls:25,vars:7,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],["aria-label","Samplerate",1,"form-select",3,"ngModel","ngModelChange","change"],[3,"ngValue"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Enable Audio"),m(),g(4,"div",2)(5,"input",3),T("ngModelChange",function(a){return i.value=a})("change",function(){return i.update()}),m()()(),g(6,"small")(7,"i"),y(8," Try to enable audio streaming for this device."),I(9,"br"),y(10," If you encounter problems try to disable this setting. "),m()(),I(11,"p"),g(12,"div",4)(13,"span"),y(14,"Force Audio Sample Rate"),m(),g(15,"div",5)(16,"select",6),T("ngModelChange",function(a){return i.samplerate=a})("change",function(){return i.update()}),g(17,"option",7),y(18,"Default Sample Rate"),m(),g(19,"option",7),y(20,"8 kHz"),m(),g(21,"option",7),y(22,"16 kHz"),m(),g(23,"option",7),y(24,"24 kHz"),m()()()()()),2&t&&(_(5),b("ngModel",i.value),_(11),b("ngModel",i.samplerate),j("disabled",!i.value||null),_(1),b("ngValue",0),_(2),b("ngValue",8),_(2),b("ngValue",16),_(2),b("ngValue",24))},directives:[C3,M1,h1,ne,ot,st],encapsulation:2}),e})();function zu2(e,n){1&e&&(g(0,"div",5),y(1," Talkback will not work while 'RTSP Streaming' is enabled! "),m())}let xu2=(()=>{class e extends y1{constructor(t){super(t),this.value=!1,this.rtspIsEnabled=!1}ngOnInit(){this.readValue(),this.pluginService.addEventListener("configChanged",()=>this.readValue())}readValue(){var t=this;return L2(function*(){var i;const r=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");r&&Object.prototype.hasOwnProperty.call(r,"talkback")&&(t.value=r.talkback),r&&Object.prototype.hasOwnProperty.call(r,"rtsp")&&(t.rtspIsEnabled=r.rtsp)})()}update(){this.updateConfig({talkback:this.value},this.accessory)}}return e.\u0275fac=function(t){return new(t||e)(V(J2))},e.\u0275cmp=s2({type:e,selectors:[["app-talkback"]],inputs:{accessory:"accessory"},features:[J],decls:13,vars:2,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"],["class","alert alert-danger","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-danger"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Enable Talkback (Two way communication)"),m(),g(4,"div",2)(5,"input",3),T("ngModelChange",function(a){return i.value=a})("change",function(){return i.update()}),m()()(),R(6,zu2,2,0,"div",4),g(7,"small")(8,"i"),y(9," Enables you to talk with someone infront of the camera while streaming. "),I(10,"p"),y(11," Please be advised that this setting is in an early development stage. If you're experiencing issues while streaming, it is recommened to disable this setting."),I(12,"br"),m()()()),2&t&&(_(5),b("ngModel",i.value),_(1),b("ngIf",i.rtspIsEnabled&&i.value))},directives:[C3,M1,h1,B1],encapsulation:2}),e})(),Eu2=(()=>{class e extends y1{constructor(t){super(t),this.enableCameraButton=!0,this.enableMotionButton=!0}ngOnInit(){this.readValue()}readValue(){var t=this;return L2(function*(){var i;const r=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");r&&Object.prototype.hasOwnProperty.call(r,"enableButton")&&(t.enableCameraButton=r.enableButton),r&&Object.prototype.hasOwnProperty.call(r,"motionButton")&&(t.enableMotionButton=r.motionButton)})()}update(){this.updateConfig({enableButton:this.enableCameraButton,motionButton:this.enableMotionButton},this.accessory)}}return e.\u0275fac=function(t){return new(t||e)(V(J2))},e.\u0275cmp=s2({type:e,selectors:[["app-camera-buttons"]],inputs:{accessory:"accessory"},features:[J],decls:17,vars:2,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"],["href","https://github.com/homebridge-eufy-security/plugin/wiki/Common-Issues#unexpected-homekit-behaviour","target","_blank","rel","noopener noreferrer"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Display HomeKit button to switch camera on/off"),m(),g(4,"div",2)(5,"input",3),T("ngModelChange",function(a){return i.enableCameraButton=a})("change",function(){return i.update()}),m()()(),g(6,"div",1)(7,"span"),y(8,"Display HomeKit button to switch motion detection on/off"),m(),g(9,"div",2)(10,"input",3),T("ngModelChange",function(a){return i.enableMotionButton=a})("change",function(){return i.update()}),m()()(),g(11,"small")(12,"i"),y(13," When changing these settings you might need to clear accessory cache (homebridge settings) so it can take effect. See "),g(14,"a",4),y(15,"here"),m(),y(16," for more details. "),m()()()),2&t&&(_(5),b("ngModel",i.enableCameraButton),_(5),b("ngModel",i.enableMotionButton))},directives:[C3,M1,h1],encapsulation:2}),e})(),Tu2=(()=>{class e extends y1{constructor(t){super(t),this.value=false}ngOnInit(){this.readValue()}readValue(){var t=this;return L2(function*(){var i;const r=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");r&&Object.prototype.hasOwnProperty.call(r,"unbridge")&&(t.value=r.unbridge)})()}update(){this.updateConfig({unbridge:this.value},this.accessory)}}return e.\u0275fac=function(t){return new(t||e)(V(J2))},e.\u0275cmp=s2({type:e,selectors:[["app-unbridge-accessory"]],inputs:{accessory:"accessory"},features:[J],decls:12,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"],["href","https://github.com/homebridge-eufy-security/plugin/wiki/Bridged-and-Unbridged-Mode-and-Problems","target","_blank","rel","noopener noreferrer"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Unbridge Camera"),m(),g(4,"div",2)(5,"input",3),T("ngModelChange",function(a){return i.value=a})("change",function(){return i.update()}),m()()(),g(6,"small")(7,"i"),y(8," Bridged cameras can cause slowdowns of the entire Homebridge instance. If unbridged, the camera will need to be added to HomeKit manually. See "),g(9,"a",4),y(10,"here"),m(),y(11," for mor details. "),m()()()),2&t&&(_(5),b("ngModel",i.value))},directives:[C3,M1,h1],encapsulation:2}),e})();function Au2(e,n){if(1&e&&(g(0,"small")(1,"i")(2,"b"),y(3,"Description:"),m(),y(4," The plugin will try to get the latest possible snapshot. If none is present the plugin will start a livestream to render one frame."),I(5,"br"),y(6," This process might take a few seconds and can slow down your homebridge instance for this duration. If you encounter problems with this method please try another. "),I(7,"p")(8,"fa-icon",6),y(9," Up-to-date Snapshots (events)"),I(10,"br")(11,"fa-icon",6),y(12," Up-to-date Snapshots (HomeKit View)"),I(13,"br")(14,"fa-icon",7),y(15," Performance"),I(16,"br")(17,"fa-icon",7),y(18," Battery life"),I(19,"br"),m()()),2&e){const t=E();_(8),b("icon",t.plusIcon),_(3),b("icon",t.plusIcon),_(3),b("icon",t.minusIcon),_(3),b("icon",t.minusIcon)}}function ku2(e,n){if(1&e&&(g(0,"small")(1,"i")(2,"b"),y(3,"Description:"),m(),y(4," This mode combines the other two. When a snapshot is requested the plugin will try to get a new snapshot from the camera."),I(5,"br"),y(6," After one second the snapshot will be delivered - if necessary by using an older snapshot. For events the plugin will wait on a new snapshot. "),I(7,"p")(8,"fa-icon",6),y(9," Up-to-date Snapshots (events)"),I(10,"br")(11,"fa-icon",8),y(12," Up-to-date Snapshots (HomeKit View)"),I(13,"br")(14,"fa-icon",6),y(15," Performance"),I(16,"br")(17,"fa-icon",7),y(18," Battery life"),I(19,"br"),m()()),2&e){const t=E();_(8),b("icon",t.plusIcon),_(3),b("icon",t.mediumIcon),_(3),b("icon",t.plusIcon),_(3),b("icon",t.minusIcon)}}function Iu2(e,n){if(1&e&&(g(0,"small")(1,"i")(2,"b"),y(3,"Description:"),m(),y(4," The plugin will preferablly use cloud snapshots from eufy to fulfill snapshot requests as fast as possible."),I(5,"br"),y(6," If an event, like motion or doorbell ring oocurs, the plugin will try to wait for a cloud snapshot to be provided. But the periodic snapshots in homekit will most likely be outdated (e.g. up to a few hours old). "),I(7,"p")(8,"fa-icon",6),y(9," Up-to-date Snapshots (events)"),I(10,"br")(11,"fa-icon",7),y(12," Up-to-date Snapshots (HomeKit View)"),I(13,"br")(14,"fa-icon",6),y(15," Performance"),I(16,"br")(17,"fa-icon",6),y(18," Battery life"),I(19,"br"),m()()),2&e){const t=E();_(8),b("icon",t.plusIcon),_(3),b("icon",t.minusIcon),_(3),b("icon",t.plusIcon),_(3),b("icon",t.plusIcon)}}let Ou2=(()=>{class e extends y1{constructor(t){super(t),this.plusIcon=RM,this.minusIcon=AM,this.mediumIcon=pM,this.value=3}ngOnInit(){this.readValue()}readValue(){var t=this;return L2(function*(){var i;const r=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");r&&Object.prototype.hasOwnProperty.call(r,"snapshotHandlingMethod")?t.value=r.snapshotHandlingMethod:r&&Object.prototype.hasOwnProperty.call(r,"forcerefreshsnap")&&(t.value=r.forcerefreshsnap?1:3)})()}update(){this.updateConfig({snapshotHandlingMethod:this.value},this.accessory)}}return e.\u0275fac=function(t){return new(t||e)(V(J2))},e.\u0275cmp=s2({type:e,selectors:[["app-snapshot-handling-method"]],inputs:{accessory:"accessory"},features:[J],decls:15,vars:7,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],["aria-label","Device Operation Mode",1,"form-select",3,"ngModel","ngModelChange","change"],[3,"ngValue"],[4,"ngIf"],["size","xs",1,"m-1",2,"color","#7FFF00",3,"icon"],["size","xs",1,"m-1",2,"color","#B22222",3,"icon"],["size","xs",1,"m-1",2,"color","#FF8C00",3,"icon"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Snapshot Handling Method"),m(),g(4,"div",2)(5,"select",3),T("ngModelChange",function(a){return i.value=a})("change",function(){return i.update()}),g(6,"option",4),y(7,"Force Refresh Snapshots"),m(),g(8,"option",4),y(9,"Balanced"),m(),g(10,"option",4),y(11,"Cloud Snapshots"),m()()()(),R(12,Au2,20,4,"small",5),R(13,ku2,20,4,"small",5),R(14,Iu2,20,4,"small",5),m()),2&t&&(_(5),b("ngModel",i.value),_(1),b("ngValue",1),_(2),b("ngValue",2),_(2),b("ngValue",3),_(2),b("ngIf",1===i.value),_(1),b("ngIf",2===i.value),_(1),b("ngIf",3===i.value))},directives:[ne,M1,h1,ot,st,B1,Pm],encapsulation:2}),e})(),Ru2=(()=>{class e extends y1{constructor(t){super(t),this.value=false}ngOnInit(){this.readValue()}readValue(){var t=this;return L2(function*(){var i;const r=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");r&&Object.prototype.hasOwnProperty.call(r,"immediateRingNotificationWithoutSnapshot")&&(t.value=r.immediateRingNotificationWithoutSnapshot)})()}update(){this.updateConfig({immediateRingNotificationWithoutSnapshot:this.value},this.accessory)}}return e.\u0275fac=function(t){return new(t||e)(V(J2))},e.\u0275cmp=s2({type:e,selectors:[["app-immediate-notification-on-ring"]],inputs:{accessory:"accessory"},features:[J],decls:12,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Immediate Notification on ring events"),m(),g(4,"div",2)(5,"input",3),T("ngModelChange",function(a){return i.value=a})("change",function(){return i.update()}),m()()(),g(6,"small")(7,"i"),y(8," In general Homekit will try to get a snapshot to show it in it's push notifications. Since the process to genereate a snapshot takes some time the push notification will be delayed by this time difference. This option allows to generate an empty snapshot on ringing events to speed up the push notification. This can safe up to 10 seconds between the event and the corresponding notification on your device."),I(9,"br"),g(10,"b"),y(11,"This option however delivers most likely an empty (black) snapshot on those events!"),m()()()()),2&t&&(_(5),b("ngModel",i.value))},directives:[C3,M1,h1],encapsulation:2}),e})(),Pu2=(()=>{class e extends y1{constructor(t){super(t),this.value=false}ngOnInit(){this.readValue()}readValue(){var t=this;return L2(function*(){var i;const r=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");r&&Object.prototype.hasOwnProperty.call(r,"delayCameraSnapshot")&&(t.value=r.delayCameraSnapshot)})()}update(){this.updateConfig({delayCameraSnapshot:this.value},this.accessory)}}return e.\u0275fac=function(t){return new(t||e)(V(J2))},e.\u0275cmp=s2({type:e,selectors:[["app-delay-camera-snapshots"]],inputs:{accessory:"accessory"},features:[J],decls:12,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Night-Vision Improvement for camera snapshots"),m(),g(4,"div",2)(5,"input",3),T("ngModelChange",function(a){return i.value=a})("change",function(){return i.update()}),m()()(),g(6,"small")(7,"i"),y(8," Force night vision on dark snapshots to improve the image."),I(9,"br"),g(10,"b"),y(11,"The snapshot request will be delayed by half a second if you enable this setting."),m()()()()),2&t&&(_(5),b("ngModel",i.value))},directives:[C3,M1,h1],encapsulation:2}),e})(),Fu2=(()=>{class e extends y1{constructor(t){super(t),this.value=0,this.inputIsInvalid=!1}ngOnInit(){this.readValue()}readValue(){var t=this;return L2(function*(){var i;const r=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");r&&Object.prototype.hasOwnProperty.call(r,"refreshSnapshotIntervalMinutes")&&(t.value=r.refreshSnapshotIntervalMinutes)})()}switchSetting(){this.value=0===this.value?30:0,this.update()}update(){!this.validate()||this.updateConfig({refreshSnapshotIntervalMinutes:this.value},this.accessory)}validate(){return this.inputIsInvalid=!1,(null==this.value||this.value<5&&0!==this.value)&&(this.inputIsInvalid=!0),!this.inputIsInvalid}}return e.\u0275fac=function(t){return new(t||e)(V(J2))},e.\u0275cmp=s2({type:e,selectors:[["app-periodic-snapshot-refresh"]],inputs:{accessory:"accessory"},features:[J],decls:25,vars:3,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"change"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],[1,"input-group","input-group-sm"],["type","number","aria-label","Polling interval minutes","aria-describedby","basic-addon2",3,"ngModel","ngModelChange","change"],[1,"input-group-append"],["id","basic-addon2",1,"input-group-text"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Periodic Snapshot Refresh"),m(),g(4,"div",2)(5,"input",3),T("change",function(){return i.switchSetting()}),m()()(),g(6,"div",4)(7,"span"),y(8,"Refresh Interval"),m(),g(9,"div",5)(10,"div",6)(11,"input",7),T("ngModelChange",function(a){return i.value=a})("change",function(){return i.update()}),m(),g(12,"div",8)(13,"span",9),y(14,"minutes"),m()()()()(),g(15,"small")(16,"i"),y(17," This option will force a snapshot to be generated every x minutes. This snapshot will then be used for homekit. So that your snapshots will never be older than this."),I(18,"br"),y(19," Best used with 'Cloud Snapshots' handling method."),I(20,"br"),y(21," Every setting below 5 minutes will be discarded due to performance reasons."),I(22,"br"),g(23,"b"),y(24,"Don't use this with the 'Force Refresh Snapshots' method, since it will have negligible effects other than slowing down homebridge and decreasing possible battery life."),m()()()()),2&t&&(_(5),j("checked",i.value>0||null),_(6),b("ngModel",i.value),j("class",i.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},directives:[b6,Ne,M1,h1],encapsulation:2}),e})(),Bu2=(()=>{class e extends y1{constructor(t){super(t),this.value=!1}ngOnInit(){this.readValue()}readValue(){var t=this;return L2(function*(){var i;const r=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");r&&Object.prototype.hasOwnProperty.call(r,"forcerefreshsnap")&&(t.value=r.forcerefreshsnap)})()}update(){this.updateConfig({forcerefreshsnap:this.value},this.accessory)}}return e.\u0275fac=function(t){return new(t||e)(V(J2))},e.\u0275cmp=s2({type:e,selectors:[["app-force-refreshsnap"]],inputs:{accessory:"accessory"},features:[J],decls:11,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Force Refresh Snapshot (Deprecated)"),m(),g(4,"div",2)(5,"input",3),T("ngModelChange",function(a){return i.value=a})("change",function(){return i.update()}),m()()(),g(6,"small")(7,"i"),y(8," When enabled, we will start stream for one frame and use as a snapshot (this can affect the battery life). If it's disabled, we will use the Eufy Cloud API one (which could be really old)."),I(9,"br"),y(10," This option is only used if you have disabled enhanced snapshot handling. "),m()()()),2&t&&(_(5),b("ngModel",i.value))},directives:[C3,M1,h1],encapsulation:2}),e})();function Uu2(e,n){1&e&&(g(0,"span")(1,"b"),y(2,"Advanced Video Config"),m()())}function ju2(e,n){1&e&&(g(0,"button",4)(1,"span")(2,"b"),y(3,"Advanced Video Config"),m()()())}function Gu2(e,n){if(1&e&&(g(0,"div"),y(1),m()),2&e){const t=E(2);_(1),Q3(" ",t.presetDescription," ")}}function $u2(e,n){if(1&e){const t=V1();y(0," The following options directly change the way how ffmpeg is configured when a stream is started. If configured incorrectly these will most likely result in faulty streams or bad streaming performance. "),I(1,"p"),y(2," You can try the following presets to improve your streaming experience. We do not guarantee that these will work for you."),I(3,"p"),g(4,"div",5)(5,"div",6)(6,"select",7),T("ngModelChange",function(r){return W(t),E().preset=r})("change",function(){return W(t),E().loadPreset()}),g(7,"option",8),y(8,"No Preset (default)"),m(),g(9,"option",8),y(10,"Copy"),m(),g(11,"option",8),y(12,"Performance"),m(),g(13,"option",8),y(14,"Custom"),m()()()(),R(15,Gu2,2,1,"div",9),I(16,"p"),g(17,"div",10)(18,"div",11)(19,"input",12),T("ngModelChange",function(r){return W(t),E().debug=r})("change",function(){return W(t),E().update()}),m()(),g(20,"span",13),y(21,"ffmpeg debug"),m()(),g(22,"div",10)(23,"div",11)(24,"input",12),T("ngModelChange",function(r){return W(t),E().useSeparateProcesses=r})("change",function(){return W(t),E().update()}),m()(),g(25,"span",13),y(26,"use separate processes for video and audio"),m()(),g(27,"div",10)(28,"div",11)(29,"input",12),T("ngModelChange",function(r){return W(t),E().readRate=r})("change",function(){return W(t),E().update()}),m()(),g(30,"span",13),y(31,"readRate"),m()(),g(32,"div",10)(33,"div",11)(34,"input",14),T("change",function(){W(t);const r=E();return r.vcodec=void 0===r.vcodec?"":void 0,r.update()}),m()(),g(35,"span",13),y(36,"vcodec"),m(),g(37,"input",15),T("ngModelChange",function(r){return W(t),E().vcodec=r})("change",function(){return W(t),E().update()}),m()(),g(38,"div",10)(39,"div",11)(40,"input",14),T("change",function(){W(t);const r=E();return r.acodec=void 0===r.acodec?"":void 0,r.update()}),m()(),g(41,"span",13),y(42,"acodec"),m(),g(43,"input",16),T("ngModelChange",function(r){return W(t),E().acodec=r})("change",function(){return W(t),E().update()}),m()(),g(44,"div",10)(45,"div",11)(46,"input",14),T("change",function(){W(t);const r=E();return r.videoFilter=void 0===r.videoFilter?"":void 0,r.update()}),m()(),g(47,"span",13),y(48,"videoFilter"),m(),g(49,"input",17),T("ngModelChange",function(r){return W(t),E().videoFilter=r})("change",function(){return W(t),E().update()}),m()(),g(50,"div",10)(51,"div",11)(52,"input",14),T("change",function(){W(t);const r=E();return r.encoderOptions=void 0===r.encoderOptions?"":void 0,r.update()}),m()(),g(53,"span",13),y(54,"encoderOptions"),m(),g(55,"input",18),T("ngModelChange",function(r){return W(t),E().encoderOptions=r})("change",function(){return W(t),E().update()}),m()(),g(56,"div",10)(57,"div",11)(58,"input",14),T("change",function(){W(t);const r=E();return r.probeSize=void 0===r.probeSize?0:void 0,r.update()}),m()(),g(59,"span",13),y(60,"probeSize"),m(),g(61,"input",19),T("ngModelChange",function(r){return W(t),E().probeSize=r})("change",function(){return W(t),E().update()}),m()(),g(62,"div",10)(63,"div",11)(64,"input",14),T("change",function(){W(t);const r=E();return r.analyzeDuration=void 0===r.analyzeDuration?0:void 0,r.update()}),m()(),g(65,"span",13),y(66,"analyzeDuration"),m(),g(67,"input",19),T("ngModelChange",function(r){return W(t),E().analyzeDuration=r})("change",function(){return W(t),E().update()}),m()(),g(68,"div",10)(69,"div",11)(70,"input",14),T("change",function(){W(t);const r=E();return r.maxStreams=void 0===r.maxStreams?0:void 0,r.update()}),m()(),g(71,"span",13),y(72,"maxStreams"),m(),g(73,"input",19),T("ngModelChange",function(r){return W(t),E().maxStreams=r})("change",function(){return W(t),E().update()}),m()(),g(74,"div",10)(75,"div",11)(76,"input",14),T("change",function(){W(t);const r=E();return r.maxWidth=void 0===r.maxWidth?0:void 0,r.update()}),m()(),g(77,"span",13),y(78,"maxWidth"),m(),g(79,"input",19),T("ngModelChange",function(r){return W(t),E().maxWidth=r})("change",function(){return W(t),E().update()}),m()(),g(80,"div",10)(81,"div",11)(82,"input",14),T("change",function(){W(t);const r=E();return r.maxHeight=void 0===r.maxHeight?0:void 0,r.update()}),m()(),g(83,"span",13),y(84,"maxHeight"),m(),g(85,"input",19),T("ngModelChange",function(r){return W(t),E().maxHeight=r})("change",function(){return W(t),E().update()}),m()(),g(86,"div",10)(87,"div",11)(88,"input",14),T("change",function(){W(t);const r=E();return r.maxFPS=void 0===r.maxFPS?0:void 0,r.update()}),m()(),g(89,"span",13),y(90,"fps"),m(),g(91,"input",19),T("ngModelChange",function(r){return W(t),E().maxFPS=r})("change",function(){return W(t),E().update()}),m()(),g(92,"div",10)(93,"div",11)(94,"input",14),T("change",function(){W(t);const r=E();return r.maxBitrate=void 0===r.maxBitrate?0:void 0,r.update()}),m()(),g(95,"span",13),y(96,"bitrate"),m(),g(97,"input",19),T("ngModelChange",function(r){return W(t),E().maxBitrate=r})("change",function(){return W(t),E().update()}),m()()}if(2&e){const t=E();_(6),b("ngModel",t.preset),_(1),b("ngValue",0),_(2),b("ngValue",1),_(2),b("ngValue",2),_(2),b("ngValue",3),_(2),b("ngIf",t.presetDescription),_(4),b("ngModel",t.debug),_(5),b("ngModel",t.useSeparateProcesses),_(5),b("ngModel",t.readRate),_(5),b("checked",void 0!==t.vcodec||null),_(3),b("ngModel",t.vcodec),j("disabled",void 0===t.vcodec||null),_(3),b("checked",void 0!==t.acodec||null),_(3),b("ngModel",t.acodec),j("disabled",void 0===t.acodec||null),_(3),b("checked",void 0!==t.videoFilter||null),j("disabled","copy"===t.vcodec||null),_(1),j("style","copy"===t.vcodec?"text-decoration: line-through; color: lightgray;":null,Q4),_(2),b("ngModel",t.videoFilter),j("disabled",void 0===t.videoFilter||"copy"===t.vcodec||null),_(3),b("checked",void 0!==t.encoderOptions||null),j("disabled","copy"===t.vcodec||null),_(1),j("style","copy"===t.vcodec?"text-decoration: line-through; color: lightgray;":null,Q4),_(2),b("ngModel",t.encoderOptions),j("disabled",void 0===t.encoderOptions||"copy"===t.vcodec||null),_(3),b("checked",void 0!==t.probeSize||null),_(3),b("ngModel",t.probeSize),j("disabled",void 0===t.probeSize||null),_(3),b("checked",void 0!==t.analyzeDuration||null),_(3),b("ngModel",t.analyzeDuration),j("disabled",void 0===t.analyzeDuration||null),_(3),b("checked",void 0!==t.maxStreams||null),_(3),b("ngModel",t.maxStreams),j("disabled",void 0===t.maxStreams||null),_(3),b("checked",void 0!==t.maxWidth||null),j("disabled","copy"===t.vcodec||null),_(1),j("style","copy"===t.vcodec?"text-decoration: line-through; color: lightgray;":null,Q4),_(2),b("ngModel",t.maxWidth),j("disabled",void 0===t.maxWidth||"copy"===t.vcodec||null),_(3),b("checked",void 0!==t.maxHeight||null),j("disabled","copy"===t.vcodec||null),_(1),j("style","copy"===t.vcodec?"text-decoration: line-through; color: lightgray;":null,Q4),_(2),b("ngModel",t.maxHeight),j("disabled",void 0===t.maxHeight||"copy"===t.vcodec||null),_(3),b("checked",void 0!==t.maxFPS||null),j("disabled","copy"===t.vcodec||null),_(1),j("style","copy"===t.vcodec?"text-decoration: line-through; color: lightgray;":null,Q4),_(2),b("ngModel",t.maxFPS),j("disabled",void 0===t.maxFPS||"copy"===t.vcodec||null),_(3),b("checked",void 0!==t.maxBitrate||null),j("disabled","copy"===t.vcodec||null),_(1),j("style","copy"===t.vcodec?"text-decoration: line-through; color: lightgray;":null,Q4),_(2),b("ngModel",t.maxBitrate),j("disabled",void 0===t.maxBitrate||"copy"===t.vcodec||null)}}let Wu2=(()=>{class e extends y1{constructor(t){super(t),this.debug=void 0,this.readRate=void 0,this.vcodec=void 0,this.acodec=void 0,this.videoFilter=void 0,this.encoderOptions=void 0,this.probeSize=void 0,this.analyzeDuration=void 0,this.maxStreams=void 0,this.maxWidth=void 0,this.maxHeight=void 0,this.maxFPS=void 0,this.maxBitrate=void 0,this.useSeparateProcesses=void 0,this.preset=0}ngOnInit(){this.readValue()}readValue(){var t=this;return L2(function*(){var i;const r=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");r&&Object.prototype.hasOwnProperty.call(r,"videoConfig")&&Object.entries(r.videoConfig).forEach(([a,o])=>{t[a]=o}),t.updatePreset()})()}loadPreset(){0===this.preset?(this.readRate=void 0,this.vcodec=void 0,this.acodec=void 0,this.videoFilter=void 0,this.encoderOptions=void 0,this.probeSize=void 0,this.analyzeDuration=void 0,this.maxStreams=void 0,this.maxWidth=void 0,this.maxHeight=void 0,this.maxFPS=void 0,this.maxBitrate=void 0,this.useSeparateProcesses=void 0,this.presetDescription=void 0):1===this.preset?(this.readRate=void 0,this.vcodec="copy",this.acodec=void 0,this.videoFilter=void 0,this.encoderOptions=void 0,this.probeSize=void 0,this.analyzeDuration=void 0,this.maxStreams=void 0,this.maxWidth=void 0,this.maxHeight=void 0,this.maxFPS=void 0,this.maxBitrate=void 0,this.useSeparateProcesses=!0,this.presetDescription="Most eufy cams support the same codec that HomeKit requests. You can try and 'forward' the stream directly without encoding it with ffmpeg. This can increase performance and quality drastically."):2===this.preset?(this.readRate=void 0,this.vcodec=void 0,this.acodec=void 0,this.videoFilter=void 0,this.encoderOptions=void 0,this.probeSize=void 0,this.analyzeDuration=void 0,this.maxStreams=void 0,this.maxWidth=640,this.maxHeight=480,this.maxFPS=15,this.maxBitrate=void 0,this.useSeparateProcesses=!0,this.presetDescription="This preset tries to increase performance by reducing the quality of the stream. This can work for low performance hardware like raspberry pis."):this.presetDescription=void 0,this.update()}updatePreset(){let t=3;!this.readRate&&void 0===this.vcodec&&void 0===this.acodec&&void 0===this.videoFilter&&void 0===this.encoderOptions&&void 0===this.probeSize&&void 0===this.analyzeDuration&&void 0===this.maxStreams&&void 0===this.maxWidth&&void 0===this.maxHeight&&void 0===this.maxFPS&&void 0===this.maxBitrate&&void 0===this.useSeparateProcesses&&(t=0),!this.readRate&&"copy"===this.vcodec&&void 0===this.acodec&&void 0===this.videoFilter&&void 0===this.encoderOptions&&void 0===this.probeSize&&void 0===this.analyzeDuration&&void 0===this.maxStreams&&void 0===this.maxWidth&&void 0===this.maxHeight&&void 0===this.maxFPS&&void 0===this.maxBitrate&&!0===this.useSeparateProcesses&&(t=1),!this.readRate&&void 0===this.vcodec&&void 0===this.acodec&&void 0===this.videoFilter&&void 0===this.encoderOptions&&void 0===this.probeSize&&void 0===this.analyzeDuration&&void 0===this.maxStreams&&640===this.maxWidth&&480===this.maxHeight&&15===this.maxFPS&&void 0===this.maxBitrate&&!0===this.useSeparateProcesses&&(t=2),t!==this.preset&&(this.preset=t)}update(){var t=this;return L2(function*(){var i;const r=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||""),a=r&&Object.prototype.hasOwnProperty.call(r,"videoConfig")?r.videoConfig:{},o={};Object.prototype.hasOwnProperty.call(a,"audio")&&(o.audio=a.audio),t.debug&&(o.debug=t.debug),t.readRate&&(o.readRate=t.readRate),t.vcodec&&""!==t.vcodec&&(o.vcodec=t.vcodec),t.acodec&&""!==t.acodec&&(o.acodec=t.acodec),t.videoFilter&&""!==t.videoFilter&&(o.videoFilter=t.videoFilter),t.encoderOptions&&""!==t.encoderOptions&&(o.encoderOptions=t.encoderOptions),void 0!==t.probeSize&&(o.probeSize=t.probeSize),void 0!==t.analyzeDuration&&(o.analyzeDuration=t.analyzeDuration),void 0!==t.maxStreams&&(o.maxStreams=t.maxStreams),void 0!==t.maxWidth&&(o.maxWidth=t.maxWidth),void 0!==t.maxHeight&&(o.maxHeight=t.maxHeight),void 0!==t.maxFPS&&(o.maxFPS=t.maxFPS),void 0!==t.maxBitrate&&(o.maxBitrate=t.maxBitrate),t.useSeparateProcesses&&(o.useSeparateProcesses=t.useSeparateProcesses),t.updateConfig({videoConfig:o},t.accessory),t.updatePreset()})()}}return e.\u0275fac=function(t){return new(t||e)(V(J2))},e.\u0275cmp=s2({type:e,selectors:[["app-advanced-videoconfig"]],inputs:{accessory:"accessory"},features:[J],decls:6,vars:0,consts:[["acc","ngbAccordion"],["ngbPanelTitle","","class","accordion-header"],["ngbPanelHeader",""],["ngbPanelContent",""],["ngbPanelToggle","",1,"accordion-button"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],["aria-label","Presets",1,"form-select",3,"ngModel","ngModelChange","change"],[3,"ngValue"],[4,"ngIf"],[1,"input-group","mb-1"],[1,"input-group-text"],["type","checkbox",1,"form-check-input","mt-0",3,"ngModel","ngModelChange","change"],["id","inputGroup-sizing-default",1,"input-group-text"],["type","checkbox",1,"form-check-input","mt-0",3,"checked","change"],["type","text","placeholder","libx264",1,"form-control",3,"ngModel","ngModelChange","change"],["type","text","placeholder","libfdk_aac",1,"form-control",3,"ngModel","ngModelChange","change"],["type","text","placeholder","leave blank if you don't know",1,"form-control",3,"ngModel","ngModelChange","change"],["type","text","placeholder","-preset ultrafast -tune zerolatency",1,"form-control",3,"ngModel","ngModelChange","change"],["type","number","placeholder","0",1,"form-control",3,"ngModel","ngModelChange","change"]],template:function(t,i){1&t&&(g(0,"ngb-accordion",null,0)(2,"ngb-panel"),R(3,Uu2,3,0,"ng-template",1),R(4,ju2,4,0,"ng-template",2),R(5,$u2,98,54,"ng-template",3),m()())},directives:[O7,L0,k7,b0,R7,I7,ne,M1,h1,ot,st,B1,C3,Ne,b6],styles:[".accordion-button[_ngcontent-%COMP%]:not(.collapsed){background-color:#00000008!important;color:#000!important}.accordion-button[_ngcontent-%COMP%]:not(.collapsed):after{background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e\")}.form-check-input[_ngcontent-%COMP%]{margin-left:-.5rem}.input-group-text[_ngcontent-%COMP%]{padding:.375rem 1rem}"]}),e})();function qu2(e,n){1&e&&I(0,"hr")}function Ku2(e,n){1&e&&I(0,"app-rtsp-streaming",6),2&e&&b("accessory",E(3).accessory)}function Yu2(e,n){1&e&&I(0,"hr")}function Qu2(e,n){1&e&&I(0,"app-talkback",6),2&e&&b("accessory",E(3).accessory)}function Zu2(e,n){if(1&e&&(g(0,"div"),I(1,"hr")(2,"app-enable-camera",6)(3,"hr")(4,"app-livestream-cache",6),R(5,qu2,1,0,"hr",2),R(6,Ku2,1,1,"app-rtsp-streaming",7),I(7,"hr")(8,"app-enable-audio",6),R(9,Yu2,1,0,"hr",2),R(10,Qu2,1,1,"app-talkback",7),m()),2&e){const t=E(2);_(2),b("accessory",t.accessory),_(2),b("accessory",t.accessory),_(1),b("ngIf",t.supportsRTSP),_(1),b("ngIf",t.supportsRTSP),_(2),b("accessory",t.accessory),_(1),b("ngIf",t.supportsTalkback),_(1),b("ngIf",t.supportsTalkback)}}function Ju2(e,n){if(1&e&&(g(0,"div",3)(1,"div",4)(2,"b"),y(3,"Camera Settings"),m(),y(4," for "),g(5,"i"),y(6),m()(),g(7,"div",5),I(8,"app-ignore-accessory",6),R(9,Zu2,11,7,"div",2),m()()),2&e){const t=E();_(6),d6("",t.accessory.displayName," (",t.accessory.uniqueId,")"),_(2),b("accessory",t.accessory),_(1),b("ngIf",t.isCamera)}}function Xu2(e,n){if(1&e&&(g(0,"div",3)(1,"div",4)(2,"b"),y(3,"HomeKit Behaviour"),m(),y(4," for "),g(5,"i"),y(6),m()(),g(7,"div",5),I(8,"app-camera-buttons",6)(9,"hr")(10,"app-unbridge-accessory",6),m()()),2&e){const t=E(2);_(6),d6("",t.accessory.displayName," (",t.accessory.uniqueId,")"),_(2),b("accessory",t.accessory),_(2),b("accessory",t.accessory)}}function ef2(e,n){1&e&&I(0,"hr")}function tf2(e,n){1&e&&I(0,"app-immediate-notification-on-ring",6),2&e&&b("accessory",E(3).accessory)}function nf2(e,n){if(1&e&&(g(0,"div"),I(1,"app-force-refreshsnap",6),m()),2&e){const t=E(3);_(1),b("accessory",t.accessory)}}function if2(e,n){if(1&e&&(g(0,"div",3)(1,"div",4)(2,"b"),y(3,"Snapshot Behaviour"),m(),y(4," for "),g(5,"i"),y(6),m()(),g(7,"div",5),I(8,"app-snapshot-handling-method",6),R(9,ef2,1,0,"hr",2),R(10,tf2,1,1,"app-immediate-notification-on-ring",7),I(11,"hr")(12,"app-delay-camera-snapshots",6)(13,"hr")(14,"app-periodic-snapshot-refresh",6),R(15,nf2,2,1,"div",2),m()()),2&e){const t=E(2);_(6),d6("",t.accessory.displayName," (",t.accessory.uniqueId,")"),_(2),b("accessory",t.accessory),_(1),b("ngIf",t.isDoorbell),_(1),b("ngIf",t.isDoorbell),_(2),b("accessory",t.accessory),_(2),b("accessory",t.accessory),_(1),b("ngIf",!t.showEnhancedSnapshotBehaviour)}}function rf2(e,n){if(1&e&&(g(0,"div"),I(1,"p"),R(2,Xu2,11,4,"div",1),I(3,"p"),R(4,if2,16,8,"div",1),I(5,"p")(6,"app-advanced-videoconfig",6),m()),2&e){const t=E();_(2),b("ngIf",t.accessory),_(2),b("ngIf",t.accessory),_(2),b("accessory",t.accessory)}}let af2=(()=>{class e extends y1{constructor(t,i){super(t),this.route=i,this.showEnhancedSnapshotBehaviour=!0,this.isDoorbell=!1,this.isCamera=!1,this.supportsRTSP=!1,this.supportsTalkback=!1}ngOnInit(){const t=this.route.snapshot.paramMap.get("uniqueId");this.accessory=this.pluginService.getDevice(t),this.accessory&&(this.isDoorbell=En.isDoorbell(this.accessory.type),this.isCamera=En.isCamera(this.accessory.type),this.supportsRTSP=En.supportsRTSP(this.accessory.type),this.supportsTalkback=En.supportsTalkback(this.accessory.type),this.supportsRTSP||this.updateConfig({rtsp:!1},this.accessory),this.supportsTalkback||this.updateConfig({talkback:!1},this.accessory))}updateSnapshotView(t){this.showEnhancedSnapshotBehaviour=t}}return e.\u0275fac=function(t){return new(t||e)(V(J2),V(Ce))},e.\u0275cmp=s2({type:e,selectors:[["app-camera-config-options"]],features:[J],decls:4,vars:2,consts:[["routerLink","/accessories",1,"btn","btn-secondary","mb-3"],["class","card",4,"ngIf"],[4,"ngIf"],[1,"card"],[1,"card-header"],[1,"card-body","pt-0","pb-4"],[3,"accessory"],[3,"accessory",4,"ngIf"]],template:function(t,i){1&t&&(g(0,"a",0),y(1,"Back to Devices List"),m(),R(2,Ju2,10,4,"div",1),R(3,rf2,7,3,"div",2)),2&t&&(_(2),b("ngIf",i.accessory),_(1),b("ngIf",i.isCamera))},directives:[de,B1,gw,Hu2,wu2,Su2,Nu2,xu2,Eu2,Tu2,Ou2,Ru2,Pu2,Fu2,Bu2,Wu2],encapsulation:2}),e})();var Tn=(()=>{return(e=Tn||(Tn={}))[e.UNKNOWN=0]="UNKNOWN",e[e.CAPTCHA=1]="CAPTCHA",e[e.TFA=2]="TFA",e[e.TIMEOUT=3]="TIMEOUT",Tn;var e})();const of2={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 sf2=(()=>{class e{constructor(t){this.pluginService=t}getCredentials(){var t=this;return L2(function*(){try{const i=yield t.pluginService.getConfig();return i.username&&i.password?Promise.resolve({username:i.username,password:i.password,country:i.country?i.country:"US",deviceName:i.deviceName}):Promise.reject("no full credentials in config")}catch(i){return Promise.reject("no config")}})()}login(t){return L2(function*(){try{const i=yield window.homebridge.request("/login",t);return Promise.resolve(i)}catch(i){return Promise.reject(i)}})()}updateConfigCredentials(t){var i=this;return L2(function*(){let r={};try{r=yield i.pluginService.getConfig()}catch(a){console.log("Could not get credentials from config: "+a)}r.username=t.username,r.password=t.password,r.country=t.country,r.deviceName=t.deviceName,yield i.pluginService.updateConfig(r,!0)})()}}return e.\u0275fac=function(t){return new(t||e)(q(J2))},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function cf2(e,n){1&e&&(kt(),y(0," If you login here the new connection might interfere with any already established connection that was made by the eufy plugin itself."),It(),I(1,"p"),g(2,"i"),y(3,"So even if you do not change any settings we recommened that you restart the plugin after you've connected to the eufy cloud here."),m())}function lf2(e,n){if(1&e){const t=V1();g(0,"p",10)(1,"ngb-alert",11),T("closed",function(){return W(t),E().resetLoginFailed()}),kt(),g(2,"svg",12),I(3,"use",13),m(),It(),g(4,"strong"),y(5,"Login was not successful!"),m()()()}2&e&&(_(1),b("dismissible",!0))}function uf2(e,n){if(1&e&&(g(0,"div",31),kt(),g(1,"svg",32),I(2,"use",33),m(),It(),g(3,"div"),y(4," Please make sure to restart plugin after you're done. "),g(5,"u",34),y(6," Tell me why... "),m()()()),2&e){E(2);const t=Y3(6);_(5),b("autoClose","outside")("ngbPopover",t)}}function ff2(e,n){if(1&e&&(g(0,"option"),y(1),m()),2&e){const t=n.$implicit,i=E(2);j("value",t.short)("selected",i.credentials.country===t.short||null),_(1),Q3("",t.long," ")}}function Cf2(e,n){1&e&&I(0,"span",35)}function df2(e,n){1&e&&(g(0,"span"),y(1,"..."),m())}function hf2(e,n){if(1&e){const t=V1();g(0,"div"),R(1,uf2,7,2,"div",14),g(2,"div",15)(3,"input",16),T("ngModelChange",function(r){return W(t),E().credentials.username=r}),m(),g(4,"label",17),y(5,"Email address"),m()(),I(6,"p"),g(7,"div",15)(8,"input",18),T("ngModelChange",function(r){return W(t),E().credentials.password=r}),m(),g(9,"label",19),y(10,"Password"),m()(),I(11,"p"),g(12,"div",15)(13,"input",20),T("ngModelChange",function(r){return W(t),E().credentials.deviceName=r}),m(),g(14,"label",21),y(15,"Device Name"),m()(),g(16,"div",22)(17,"div",23)(18,"select",24),T("ngModelChange",function(r){return W(t),E().credentials.country=r}),R(19,ff2,2,3,"option",25),m(),g(20,"small")(21,"i"),y(22," Make sure to use the same country that you use to login with the eufy app. "),m()()(),I(23,"span",26),g(24,"div",27)(25,"button",28),T("click",function(){return W(t),E().login()}),R(26,Cf2,1,0,"span",29),y(27," Login "),R(28,df2,2,0,"span",9),m(),g(29,"button",30),T("click",function(){return W(t),E().cancelLogin()}),y(30," Cancel "),m()()()()}if(2&e){const t=E();_(1),b("ngIf",!t.firstLoginAssumed),_(2),b("ngModel",t.credentials.username),j("class",t.emailIsValid?"form-control":"form-control is-invalid")("disabled",!!t.loginInProgress||null),_(5),b("ngModel",t.credentials.password),j("class",t.passwordIsValid?"form-control":"form-control is-invalid")("disabled",!!t.loginInProgress||null),_(5),b("ngModel",t.credentials.deviceName),j("class",t.passwordIsValid?"form-control":"form-control is-invalid")("disabled",!!t.loginInProgress||null),_(5),b("ngModel",t.credentials.country),j("disabled",!!t.loginInProgress||null),_(1),b("ngForOf",t.countries),_(6),j("disabled",!!t.loginInProgress||null),_(1),b("ngIf",t.loginInProgress),_(2),b("ngIf",t.loginInProgress),_(1),j("disabled",!!t.loginInProgress||null)}}function pf2(e,n){1&e&&I(0,"span",35)}function gf2(e,n){1&e&&(g(0,"span"),y(1,"..."),m())}function mf2(e,n){if(1&e){const t=V1();g(0,"div")(1,"div",36),y(2,"You should have gotten a 2FA verification code from eufy in your mail. Please enter this below."),m(),g(3,"div",6)(4,"div",37)(5,"input",38),T("ngModelChange",function(r){return W(t),E().otp=r}),m(),g(6,"label",39),y(7,"2FA Code"),m()()(),g(8,"div",40)(9,"div",41)(10,"button",42),T("click",function(){return W(t),E().login()}),R(11,pf2,1,0,"span",29),y(12," Verify "),R(13,gf2,2,0,"span",9),m()()(),g(14,"div",6)(15,"div",41)(16,"button",30),T("click",function(){return W(t),E().cancelLogin()}),y(17," Cancel "),m()()()()}if(2&e){const t=E();_(5),b("ngModel",t.otp),j("class",t.otpIsValid?"form-control":"form-control is-invalid")("disabled",!!t.loginInProgress||null),_(5),j("disabled",!!t.loginInProgress||null),_(1),b("ngIf",t.loginInProgress),_(2),b("ngIf",t.loginInProgress),_(3),j("disabled",!!t.loginInProgress||null)}}function vf2(e,n){1&e&&I(0,"span",35)}function _f2(e,n){1&e&&(g(0,"span"),y(1,"..."),m())}function Mf2(e,n){if(1&e){const t=V1();g(0,"div")(1,"div",36),y(2,"Please enter the captcha below."),m(),g(3,"div",40),I(4,"img",43),m(),g(5,"div",6)(6,"div",37)(7,"input",38),T("ngModelChange",function(r){return W(t),E().captcha=r}),m(),g(8,"label",39),y(9,"Captcha"),m()()(),g(10,"div",40)(11,"div",41)(12,"button",42),T("click",function(){return W(t),E().login()}),R(13,vf2,1,0,"span",29),y(14," Verify "),R(15,_f2,2,0,"span",9),m()()(),g(16,"div",6)(17,"div",41)(18,"button",30),T("click",function(){return W(t),E().cancelLogin()}),y(19," Cancel "),m()()()()}if(2&e){const t=E();_(4),b("src",t.captchaImageData,Qe),_(3),b("ngModel",t.captcha),j("class",t.captchaIsValid?"form-control":"form-control is-invalid")("disabled",!!t.loginInProgress||null),_(5),j("disabled",!!t.loginInProgress||null),_(1),b("ngIf",t.loginInProgress),_(2),b("ngIf",t.loginInProgress),_(3),j("disabled",!!t.loginInProgress||null)}}var S3=(()=>{return(e=S3||(S3={}))[e.LOGIN=1]="LOGIN",e[e.TFA=2]="TFA",e[e.CAPTCHA=3]="CAPTCHA",S3;var e})();let yf2=(()=>{class e{constructor(t,i){this.loginService=t,this.routerService=i,this.countries=[],this.credentials={username:"",password:"",country:"US",deviceName:""},this.otp="",this.captcha="",this.captchaImageData="",this.captchaId="",this.loginInProgress=!1,this.loginFailed=!1,this.loginStep=S3.LOGIN,this.firstLoginAssumed=!1,this.emailIsValid=!0,this.passwordIsValid=!0,this.otpIsValid=!0,this.captchaIsValid=!0}ngOnInit(){this.getCredentials(),this.fillCountryArray()}getCredentials(){this.loginService.getCredentials().then(t=>this.credentials=t).catch(t=>{this.firstLoginAssumed=!0,console.log("Could not get config in login component: "+t)})}fillCountryArray(){Object.entries(of2).forEach(([t,i])=>{this.countries.push({short:t,long:i})})}login(){this.inputIsInvalid()||(this.resetLoginFailed(),this.loginInProgress=!0,this.loginStep===S3.LOGIN&&this.loginWithCredentials(),this.loginStep===S3.TFA&&this.loginWithTFA(),this.loginStep===S3.CAPTCHA&&this.loginWithCaptcha())}loginWithCredentials(){var t=this;return L2(function*(){let i;try{i=yield t.loginService.login(t.credentials)}catch(r){console.log("login error: "+r)}t.evaluateLoginResult(i)})()}loginWithTFA(){var t=this;return L2(function*(){let i;try{i=yield t.loginService.login({verifyCode:t.otp})}catch(r){console.log("login error: "+r)}t.evaluateLoginResult(i)})()}loginWithCaptcha(){var t=this;return L2(function*(){let i;try{i=yield t.loginService.login({captcha:{captchaCode:t.captcha,captchaId:t.captchaId}})}catch(r){console.log("login error: "+r)}t.evaluateLoginResult(i)})()}evaluateLoginResult(t){if(this.loginInProgress=!1,t&&t.success)this.loginService.updateConfigCredentials(this.credentials),this.routerService.navigate(["/accessories",{waitForAccessories:!0}]);else{if(t&&t.failReason&&t.failReason===Tn.TFA)return void(this.loginStep=S3.TFA);if(t&&t.failReason&&t.failReason===Tn.CAPTCHA&&t.data&&t.data.id&&t.data.captcha)return this.loginStep=S3.CAPTCHA,this.captchaId=t.data.id,void(this.captchaImageData=t.data.captcha);this.loginStep=S3.LOGIN,this.loginFailed=!0}}inputIsInvalid(){this.emailIsValid=!0,this.passwordIsValid=!0,this.otpIsValid=!0;let t=!1;return this.loginStep===S3.LOGIN&&this.credentials.username.length<4&&(this.emailIsValid=!1,t=!0),this.loginStep===S3.LOGIN&&this.credentials.password.length<4&&(this.passwordIsValid=!1,t=!0),this.loginStep===S3.TFA&&this.otp.length<6&&(this.otpIsValid=!1,t=!0),this.loginStep===S3.CAPTCHA&&this.captcha.length<4&&(this.captchaIsValid=!1,t=!0),t}resetLoginFailed(){this.loginFailed=!1}cancelLogin(){this.routerService.navigate(["/accessories"])}}return e.\u0275fac=function(t){return new(t||e)(V(sf2),V(X1))},e.\u0275cmp=s2({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"],["type","text","id","floatingDevice","placeholder","Device Name",3,"ngModel","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"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm"],[1,"row","mb-3"],[1,"form-floating","mb-3","col-8","col-sm-6"],["type","text","id","floatingOTP","placeholder","",3,"ngModel","ngModelChange"],["for","floatingOTP"],[1,"row","d-flex","justify-content-center","mb-3"],[1,"col-8","col-sm-6"],["type","button",1,"btn","btn-success","col-12",3,"click"],[1,"col-10","col-sm-8",3,"src"]],template:function(t,i){1&t&&(kt(),g(0,"svg",0)(1,"symbol",1),I(2,"path",2),m(),g(3,"symbol",3),I(4,"path",4),m()(),R(5,cf2,4,0,"ng-template",null,5,J3),It(),g(7,"div",6),R(8,lf2,6,1,"p",7),g(9,"div",8),R(10,hf2,31,17,"div",9),R(11,mf2,18,7,"div",9),R(12,Mf2,20,8,"div",9),m()()),2&t&&(_(8),b("ngIf",i.loginFailed),_(2),b("ngIf",1===i.loginStep),_(1),b("ngIf",2===i.loginStep),_(1),b("ngIf",3===i.loginStep))},directives:[B1,$p,vU,Ne,M1,h1,m7,ne,rt,ot,st],encapsulation:2}),e})(),bf2=(()=>{class e extends y1{constructor(t){super(t),this.value=[]}ngOnInit(){this.readValue()}readValue(){var t=this;return L2(function*(){var i;const r=yield t.getStationConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");r&&Array.isArray(r.manualTriggerModes)&&(t.value=r.manualTriggerModes)})()}toggle(t){-1!==this.value.indexOf(t)?this.value=this.value.filter(i=>i!==t):this.value.push(t)}update(){this.updateConfig({manualTriggerModes:this.value},this.accessory)}}return e.\u0275fac=function(t){return new(t||e)(V(J2))},e.\u0275cmp=s2({type:e,selectors:[["app-manual-alarm-modes"]],inputs:{accessory:"accessory"},features:[J],decls:36,vars:4,consts:[[1,"settingsItem","row","p-3"],[1,"mb-4"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"change"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"span",1),y(2,"Manual Alarm Trigger Modes"),m(),g(3,"div",2)(4,"span"),y(5,"HomeKit Home"),m(),g(6,"div",3)(7,"input",4),T("change",function(){return i.toggle(0),i.update()}),m()()(),g(8,"div",2)(9,"span"),y(10,"HomeKit Away"),m(),g(11,"div",3)(12,"input",4),T("change",function(){return i.toggle(1),i.update()}),m()()(),g(13,"div",2)(14,"span"),y(15,"HomeKit Night"),m(),g(16,"div",3)(17,"input",4),T("change",function(){return i.toggle(2),i.update()}),m()()(),g(18,"div",2)(19,"span"),y(20,"HomeKit Off/Disarmed"),m(),g(21,"div",3)(22,"input",4),T("change",function(){return i.toggle(3),i.update()}),m()()(),g(23,"small")(24,"i"),y(25," You can manually trigger (and reset) the stations alarm with a switch. Therefore you can utilize non eufy devices (e.g. a motion sensor, leak sensor, break-in sensor, ... from another vendor) to trigger the alarm with a homekit automation."),I(26,"p"),y(27," In order to do so, you must specify in which station mode the alarm can be triggered. "),I(28,"p"),y(29," Please be aware that this setting can only be set on a per station basis and not per automation."),I(30,"br"),y(31," By default the alarm cause will be shown as 'motion detected' in the eufy app. "),I(32,"p"),y(33," The manual alarm respects the delay alarm on leave settings from the eufy app. Triggered automations while the delay is effective will be ignored."),I(34,"br"),y(35," The native alarm delay setting is currently not supported. "),m()()()),2&t&&(_(7),j("checked",-1!==i.value.indexOf(0)||null),_(5),j("checked",-1!==i.value.indexOf(1)||null),_(5),j("checked",-1!==i.value.indexOf(2)||null),_(5),j("checked",-1!==i.value.indexOf(3)||null))},encapsulation:2}),e})();function Lf2(e,n){if(1&e&&(g(0,"div",2)(1,"div",3)(2,"b"),y(3,"Station Settings"),m(),y(4," for "),g(5,"i"),y(6),m()(),g(7,"div",4),I(8,"app-ignore-accessory",5)(9,"hr")(10,"app-manual-alarm-modes",5),m()()),2&e){const t=E();_(6),d6("",t.accessory.displayName," (",t.accessory.uniqueId,")"),_(2),b("accessory",t.accessory),_(2),b("accessory",t.accessory)}}function Hf2(e,n){if(1&e){const t=V1();g(0,"p",7)(1,"ngb-alert",8),T("closed",function(){return W(t),E().failed=!1}),kt(),g(2,"svg",9),I(3,"use",10),m(),It(),g(4,"strong"),y(5,"Reset was not successful!"),m()()()}2&e&&(_(1),b("dismissible",!0))}const wf2=[{path:"",redirectTo:"/accessories",pathMatch:"full"},{path:"accessories",component:Jl2},{path:"advancedConfig",component:bu2},{path:"cameraConfig/:uniqueId",component:af2},{path:"stationConfig/:uniqueId",component:(()=>{class e{constructor(t,i){this.pluginService=t,this.route=i}ngOnInit(){const t=this.route.snapshot.paramMap.get("uniqueId");this.accessory=this.pluginService.getStation(t)}}return e.\u0275fac=function(t){return new(t||e)(V(J2),V(Ce))},e.\u0275cmp=s2({type:e,selectors:[["app-station-config-options"]],decls:3,vars:1,consts:[["routerLink","/accessories",1,"btn","btn-secondary","mb-3"],["class","card",4,"ngIf"],[1,"card"],[1,"card-header"],[1,"card-body","pt-0","pb-4"],[3,"accessory"]],template:function(t,i){1&t&&(g(0,"a",0),y(1,"Back to Devices List"),m(),R(2,Lf2,11,4,"div",1)),2&t&&(_(2),b("ngIf",i.accessory))},directives:[de,B1,gw,bf2],encapsulation:2}),e})()},{path:"login",component:yf2},{path:"reset",component:(()=>{class e{constructor(t,i){this.routerService=t,this.pluginService=i,this.disabled=!1,this.failed=!1}cancel(){this.routerService.navigateByUrl("/accessories")}resetEverything(){var t=this;return L2(function*(){t.disabled=!0;try{const i=yield window.homebridge.request("/reset");t.failed=1!==i.result}catch(i){t.failed=!0}t.disabled=!1,t.failed||(yield t.pluginService.updateConfig({},!0),window.homebridge.closeSettings())})()}}return e.\u0275fac=function(t){return new(t||e)(V(X1),V(J2))},e.\u0275cmp=s2({type:e,selectors:[["app-reset-confirmation"]],decls:10,vars:3,consts:[[1,"row","d-flex","justify-content-center"],["class","col-11 col-sm-7",4,"ngIf"],[1,"col-11","col-sm-7","card","p-4"],[1,"text-center","mb-4"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-center"],["type","button",1,"btn","btn-secondary","col-11","col-sm-3","mb-sm-0","mb-3",3,"click"],["type","button",1,"btn","btn-danger","col-11","col-sm-3",3,"click"],[1,"col-11","col-sm-7"],["type","danger",3,"dismissible","closed"],["width","24","height","24","role","img","aria-label","Login Error",1,"bi","flex-shrink-0","me-2"],[0,"xlink","href","#exclamation-triangle-fill"]],template:function(t,i){1&t&&(g(0,"div",0),R(1,Hf2,6,1,"p",1),g(2,"div",2)(3,"h3",3),y(4,"Are you sure that you want to erase everything?"),m(),g(5,"div",4)(6,"button",5),T("click",function(){return i.cancel()}),y(7,"No"),m(),g(8,"button",6),T("click",function(){return i.resetEverything()}),y(9,"Do it!"),m()()()()),2&t&&(_(1),b("ngIf",i.failed),_(5),j("disabled",!!i.disabled||null),_(2),j("disabled",!!i.disabled||null))},directives:[B1,$p],encapsulation:2}),e})()},{path:"**",redirectTo:"/accessories"}];let Df2=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e}),e.\u0275inj=E2({imports:[[jv.forRoot(wf2,{scrollPositionRestoration:"enabled"})],jv]}),e})(),Sf2=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=T2({type:e,bootstrap:[DW]}),e.\u0275inj=E2({providers:[{provide:it,useClass:Id}],imports:[[eO,gp,LU,Df2,mG]]}),e})();(function RA(){yd=!1})(),JI().bootstrapModule(Sf2).catch(e=>console.error(e))},343:(wt,N3)=>{"use strict";N3.byteLength=function e1(n2){var _2=x2(n2),u1=_2[1];return 3*(_2[0]+u1)/4-u1},N3.toByteArray=function S1(n2){var _2,a3,F2=x2(n2),u1=F2[0],g1=F2[1],q2=new n3(function z(n2,_2,F2){return 3*(_2+F2)/4-F2}(0,u1,g1)),r3=0,U3=g1>0?u1-4:u1;for(a3=0;a3<U3;a3+=4)_2=K[n2.charCodeAt(a3)]<<18|K[n2.charCodeAt(a3+1)]<<12|K[n2.charCodeAt(a3+2)]<<6|K[n2.charCodeAt(a3+3)],q2[r3++]=_2>>16&255,q2[r3++]=_2>>8&255,q2[r3++]=255&_2;return 2===g1&&(_2=K[n2.charCodeAt(a3)]<<2|K[n2.charCodeAt(a3+1)]>>4,q2[r3++]=255&_2),1===g1&&(_2=K[n2.charCodeAt(a3)]<<10|K[n2.charCodeAt(a3+1)]<<4|K[n2.charCodeAt(a3+2)]>>2,q2[r3++]=_2>>8&255,q2[r3++]=255&_2),q2},N3.fromByteArray=function k1(n2){for(var _2,F2=n2.length,u1=F2%3,g1=[],r3=0,U3=F2-u1;r3<U3;r3+=16383)g1.push(N1(n2,r3,r3+16383>U3?U3:r3+16383));return 1===u1?g1.push(r1[(_2=n2[F2-1])>>2]+r1[_2<<4&63]+"=="):2===u1&&g1.push(r1[(_2=(n2[F2-2]<<8)+n2[F2-1])>>10]+r1[_2>>4&63]+r1[_2<<2&63]+"="),g1.join("")};for(var r1=[],K=[],n3="undefined"!=typeof Uint8Array?Uint8Array:Array,p1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",W2=0,H2=p1.length;W2<H2;++W2)r1[W2]=p1[W2],K[p1.charCodeAt(W2)]=W2;function x2(n2){var _2=n2.length;if(_2%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var F2=n2.indexOf("=");return-1===F2&&(F2=_2),[F2,F2===_2?0:4-F2%4]}function t1(n2){return r1[n2>>18&63]+r1[n2>>12&63]+r1[n2>>6&63]+r1[63&n2]}function N1(n2,_2,F2){for(var g1=[],q2=_2;q2<F2;q2+=3)g1.push(t1((n2[q2]<<16&16711680)+(n2[q2+1]<<8&65280)+(255&n2[q2+2])));return g1.join("")}K["-".charCodeAt(0)]=62,K["_".charCodeAt(0)]=63},172:(wt,N3,r1)=>{"use strict";var n3=r1(343),p1=r1(461),W2="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;N3.lW=z,N3.h2=50;var H2=2147483647;function e1(v){if(v>H2)throw new RangeError('The value "'+v+'" is invalid for option "size"');var C=new Uint8Array(v);return Object.setPrototypeOf(C,z.prototype),C}function z(v,C,d){if("number"==typeof v){if("string"==typeof C)throw new TypeError('The "string" argument must be of type string. Received type number');return k1(v)}return S1(v,C,d)}function S1(v,C,d){if("string"==typeof v)return function n2(v,C){if(("string"!=typeof C||""===C)&&(C="utf8"),!z.isEncoding(C))throw new TypeError("Unknown encoding: "+C);var d=0|U3(v,C),M=e1(d),D=M.write(v,C);return D!==d&&(M=M.slice(0,D)),M}(v,C);if(ArrayBuffer.isView(v))return function F2(v){if(s4(v,Uint8Array)){var C=new Uint8Array(v);return u1(C.buffer,C.byteOffset,C.byteLength)}return _2(v)}(v);if(null==v)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof v);if(s4(v,ArrayBuffer)||v&&s4(v.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(s4(v,SharedArrayBuffer)||v&&s4(v.buffer,SharedArrayBuffer)))return u1(v,C,d);if("number"==typeof v)throw new TypeError('The "value" argument must not be of type number. Received type number');var M=v.valueOf&&v.valueOf();if(null!=M&&M!==v)return z.from(M,C,d);var D=function g1(v){if(z.isBuffer(v)){var C=0|q2(v.length),d=e1(C);return 0===d.length||v.copy(d,0,0,C),d}return void 0!==v.length?"number"!=typeof v.length||Pn(v.length)?e1(0):_2(v):"Buffer"===v.type&&Array.isArray(v.data)?_2(v.data):void 0}(v);if(D)return D;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof v[Symbol.toPrimitive])return z.from(v[Symbol.toPrimitive]("string"),C,d);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof v)}function t1(v){if("number"!=typeof v)throw new TypeError('"size" argument must be of type number');if(v<0)throw new RangeError('The value "'+v+'" is invalid for option "size"')}function k1(v){return t1(v),e1(v<0?0:0|q2(v))}function _2(v){for(var C=v.length<0?0:0|q2(v.length),d=e1(C),M=0;M<C;M+=1)d[M]=255&v[M];return d}function u1(v,C,d){if(C<0||v.byteLength<C)throw new RangeError('"offset" is outside of buffer bounds');if(v.byteLength<C+(d||0))throw new RangeError('"length" is outside of buffer bounds');var M;return M=void 0===C&&void 0===d?new Uint8Array(v):void 0===d?new Uint8Array(v,C):new Uint8Array(v,C,d),Object.setPrototypeOf(M,z.prototype),M}function q2(v){if(v>=H2)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+H2.toString(16)+" bytes");return 0|v}function U3(v,C){if(z.isBuffer(v))return v.length;if(ArrayBuffer.isView(v)||s4(v,ArrayBuffer))return v.byteLength;if("string"!=typeof v)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof v);var d=v.length,M=arguments.length>2&&!0===arguments[2];if(!M&&0===d)return 0;for(var D=!1;;)switch(C){case"ascii":case"latin1":case"binary":return d;case"utf8":case"utf-8":return Ue(v).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*d;case"hex":return d>>>1;case"base64":return Oi(v).length;default:if(D)return M?-1:Ue(v).length;C=(""+C).toLowerCase(),D=!0}}function a3(v,C,d){var M=!1;if((void 0===C||C<0)&&(C=0),C>this.length||((void 0===d||d>this.length)&&(d=this.length),d<=0)||(d>>>=0)<=(C>>>=0))return"";for(v||(v="utf8");;)switch(v){case"hex":return Ai(this,C,d);case"utf8":case"utf-8":return Ei(this,C,d);case"ascii":return On(this,C,d);case"latin1":case"binary":return Ti(this,C,d);case"base64":return o4(this,C,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ki(this,C,d);default:if(M)throw new TypeError("Unknown encoding: "+v);v=(v+"").toLowerCase(),M=!0}}function a4(v,C,d){var M=v[C];v[C]=v[d],v[d]=M}function In(v,C,d,M,D){if(0===v.length)return-1;if("string"==typeof d?(M=d,d=0):d>2147483647?d=2147483647:d<-2147483648&&(d=-2147483648),Pn(d=+d)&&(d=D?0:v.length-1),d<0&&(d=v.length+d),d>=v.length){if(D)return-1;d=v.length-1}else if(d<0){if(!D)return-1;d=0}if("string"==typeof C&&(C=z.from(C,M)),z.isBuffer(C))return 0===C.length?-1:Be(v,C,d,M,D);if("number"==typeof C)return C&=255,"function"==typeof Uint8Array.prototype.indexOf?D?Uint8Array.prototype.indexOf.call(v,C,d):Uint8Array.prototype.lastIndexOf.call(v,C,d):Be(v,[C],d,M,D);throw new TypeError("val must be string, number or Buffer")}function Be(v,C,d,M,D){var K2,O=1,P=v.length,D2=C.length;if(void 0!==M&&("ucs2"===(M=String(M).toLowerCase())||"ucs-2"===M||"utf16le"===M||"utf-16le"===M)){if(v.length<2||C.length<2)return-1;O=2,P/=2,D2/=2,d/=2}function w2(Fn,Pi){return 1===O?Fn[Pi]:Fn.readUInt16BE(Pi*O)}if(D){var K1=-1;for(K2=d;K2<P;K2++)if(w2(v,K2)===w2(C,-1===K1?0:K2-K1)){if(-1===K1&&(K1=K2),K2-K1+1===D2)return K1*O}else-1!==K1&&(K2-=K2-K1),K1=-1}else for(d+D2>P&&(d=P-D2),K2=d;K2>=0;K2--){for(var o1=!0,W6=0;W6<D2;W6++)if(w2(v,K2+W6)!==w2(C,W6)){o1=!1;break}if(o1)return K2}return-1}function Dt(v,C,d,M){d=Number(d)||0;var D=v.length-d;M?(M=Number(M))>D&&(M=D):M=D;var O=C.length;M>O/2&&(M=O/2);for(var P=0;P<M;++P){var D2=parseInt(C.substr(2*P,2),16);if(Pn(D2))return P;v[d+P]=D2}return P}function zi(v,C,d,M){return $6(Ue(C,v.length-d),v,d,M)}function B6(v,C,d,M){return $6(function F9(v){for(var C=[],d=0;d<v.length;++d)C.push(255&v.charCodeAt(d));return C}(C),v,d,M)}function xi(v,C,d,M){return $6(Oi(C),v,d,M)}function U6(v,C,d,M){return $6(function Rn(v,C){for(var d,M,O=[],P=0;P<v.length&&!((C-=2)<0);++P)M=(d=v.charCodeAt(P))>>8,O.push(d%256),O.push(M);return O}(C,v.length-d),v,d,M)}function o4(v,C,d){return n3.fromByteArray(0===C&&d===v.length?v:v.slice(C,d))}function Ei(v,C,d){d=Math.min(v.length,d);for(var M=[],D=C;D<d;){var w2,K2,K1,o1,O=v[D],P=null,D2=O>239?4:O>223?3:O>191?2:1;if(D+D2<=d)switch(D2){case 1:O<128&&(P=O);break;case 2:128==(192&(w2=v[D+1]))&&(o1=(31&O)<<6|63&w2)>127&&(P=o1);break;case 3:K2=v[D+2],128==(192&(w2=v[D+1]))&&128==(192&K2)&&(o1=(15&O)<<12|(63&w2)<<6|63&K2)>2047&&(o1<55296||o1>57343)&&(P=o1);break;case 4:K2=v[D+2],K1=v[D+3],128==(192&(w2=v[D+1]))&&128==(192&K2)&&128==(192&K1)&&(o1=(15&O)<<18|(63&w2)<<12|(63&K2)<<6|63&K1)>65535&&o1<1114112&&(P=o1)}null===P?(P=65533,D2=1):P>65535&&(M.push((P-=65536)>>>10&1023|55296),P=56320|1023&P),M.push(P),D+=D2}return function A2(v){var C=v.length;if(C<=4096)return String.fromCharCode.apply(String,v);for(var d="",M=0;M<C;)d+=String.fromCharCode.apply(String,v.slice(M,M+=4096));return d}(M)}function On(v,C,d){var M="";d=Math.min(v.length,d);for(var D=C;D<d;++D)M+=String.fromCharCode(127&v[D]);return M}function Ti(v,C,d){var M="";d=Math.min(v.length,d);for(var D=C;D<d;++D)M+=String.fromCharCode(v[D]);return M}function Ai(v,C,d){var M=v.length;(!C||C<0)&&(C=0),(!d||d<0||d>M)&&(d=M);for(var D="",O=C;O<d;++O)D+=Ri[v[O]];return D}function ki(v,C,d){for(var M=v.slice(C,d),D="",O=0;O<M.length-1;O+=2)D+=String.fromCharCode(M[O]+256*M[O+1]);return D}function C2(v,C,d){if(v%1!=0||v<0)throw new RangeError("offset is not uint");if(v+C>d)throw new RangeError("Trying to access beyond buffer length")}function q1(v,C,d,M,D,O){if(!z.isBuffer(v))throw new TypeError('"buffer" argument must be a Buffer instance');if(C>D||C<O)throw new RangeError('"value" argument is out of bounds');if(d+M>v.length)throw new RangeError("Index out of range")}function G6(v,C,d,M,D,O){if(d+M>v.length)throw new RangeError("Index out of range");if(d<0)throw new RangeError("Index out of range")}function a1(v,C,d,M,D){return C=+C,d>>>=0,D||G6(v,0,d,4),p1.write(v,C,d,M,23,4),d+4}function O2(v,C,d,M,D){return C=+C,d>>>=0,D||G6(v,0,d,8),p1.write(v,C,d,M,52,8),d+8}!(z.TYPED_ARRAY_SUPPORT=function x2(){try{var v=new Uint8Array(1),C={foo:function(){return 42}};return Object.setPrototypeOf(C,Uint8Array.prototype),Object.setPrototypeOf(v,C),42===v.foo()}catch(d){return!1}}())&&"undefined"!=typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(z.prototype,"parent",{enumerable:!0,get:function(){if(z.isBuffer(this))return this.buffer}}),Object.defineProperty(z.prototype,"offset",{enumerable:!0,get:function(){if(z.isBuffer(this))return this.byteOffset}}),z.poolSize=8192,z.from=function(v,C,d){return S1(v,C,d)},Object.setPrototypeOf(z.prototype,Uint8Array.prototype),Object.setPrototypeOf(z,Uint8Array),z.alloc=function(v,C,d){return function N1(v,C,d){return t1(v),v<=0?e1(v):void 0!==C?"string"==typeof d?e1(v).fill(C,d):e1(v).fill(C):e1(v)}(v,C,d)},z.allocUnsafe=function(v){return k1(v)},z.allocUnsafeSlow=function(v){return k1(v)},z.isBuffer=function(C){return null!=C&&!0===C._isBuffer&&C!==z.prototype},z.compare=function(C,d){if(s4(C,Uint8Array)&&(C=z.from(C,C.offset,C.byteLength)),s4(d,Uint8Array)&&(d=z.from(d,d.offset,d.byteLength)),!z.isBuffer(C)||!z.isBuffer(d))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(C===d)return 0;for(var M=C.length,D=d.length,O=0,P=Math.min(M,D);O<P;++O)if(C[O]!==d[O]){M=C[O],D=d[O];break}return M<D?-1:D<M?1:0},z.isEncoding=function(C){switch(String(C).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}},z.concat=function(C,d){if(!Array.isArray(C))throw new TypeError('"list" argument must be an Array of Buffers');if(0===C.length)return z.alloc(0);var M;if(void 0===d)for(d=0,M=0;M<C.length;++M)d+=C[M].length;var D=z.allocUnsafe(d),O=0;for(M=0;M<C.length;++M){var P=C[M];if(s4(P,Uint8Array))O+P.length>D.length?z.from(P).copy(D,O):Uint8Array.prototype.set.call(D,P,O);else{if(!z.isBuffer(P))throw new TypeError('"list" argument must be an Array of Buffers');P.copy(D,O)}O+=P.length}return D},z.byteLength=U3,z.prototype._isBuffer=!0,z.prototype.swap16=function(){var C=this.length;if(C%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var d=0;d<C;d+=2)a4(this,d,d+1);return this},z.prototype.swap32=function(){var C=this.length;if(C%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var d=0;d<C;d+=4)a4(this,d,d+3),a4(this,d+1,d+2);return this},z.prototype.swap64=function(){var C=this.length;if(C%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var d=0;d<C;d+=8)a4(this,d,d+7),a4(this,d+1,d+6),a4(this,d+2,d+5),a4(this,d+3,d+4);return this},z.prototype.toLocaleString=z.prototype.toString=function(){var C=this.length;return 0===C?"":0===arguments.length?Ei(this,0,C):a3.apply(this,arguments)},z.prototype.equals=function(C){if(!z.isBuffer(C))throw new TypeError("Argument must be a Buffer");return this===C||0===z.compare(this,C)},z.prototype.inspect=function(){var C="",d=N3.h2;return C=this.toString("hex",0,d).replace(/(.{2})/g,"$1 ").trim(),this.length>d&&(C+=" ... "),"<Buffer "+C+">"},W2&&(z.prototype[W2]=z.prototype.inspect),z.prototype.compare=function(C,d,M,D,O){if(s4(C,Uint8Array)&&(C=z.from(C,C.offset,C.byteLength)),!z.isBuffer(C))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof C);if(void 0===d&&(d=0),void 0===M&&(M=C?C.length:0),void 0===D&&(D=0),void 0===O&&(O=this.length),d<0||M>C.length||D<0||O>this.length)throw new RangeError("out of range index");if(D>=O&&d>=M)return 0;if(D>=O)return-1;if(d>=M)return 1;if(this===C)return 0;for(var P=(O>>>=0)-(D>>>=0),D2=(M>>>=0)-(d>>>=0),w2=Math.min(P,D2),K2=this.slice(D,O),K1=C.slice(d,M),o1=0;o1<w2;++o1)if(K2[o1]!==K1[o1]){P=K2[o1],D2=K1[o1];break}return P<D2?-1:D2<P?1:0},z.prototype.includes=function(C,d,M){return-1!==this.indexOf(C,d,M)},z.prototype.indexOf=function(C,d,M){return In(this,C,d,M,!0)},z.prototype.lastIndexOf=function(C,d,M){return In(this,C,d,M,!1)},z.prototype.write=function(C,d,M,D){if(void 0===d)D="utf8",M=this.length,d=0;else if(void 0===M&&"string"==typeof d)D=d,M=this.length,d=0;else{if(!isFinite(d))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");d>>>=0,isFinite(M)?(M>>>=0,void 0===D&&(D="utf8")):(D=M,M=void 0)}var O=this.length-d;if((void 0===M||M>O)&&(M=O),C.length>0&&(M<0||d<0)||d>this.length)throw new RangeError("Attempt to write outside buffer bounds");D||(D="utf8");for(var P=!1;;)switch(D){case"hex":return Dt(this,C,d,M);case"utf8":case"utf-8":return zi(this,C,d,M);case"ascii":case"latin1":case"binary":return B6(this,C,d,M);case"base64":return xi(this,C,d,M);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U6(this,C,d,M);default:if(P)throw new TypeError("Unknown encoding: "+D);D=(""+D).toLowerCase(),P=!0}},z.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},z.prototype.slice=function(C,d){var M=this.length;(C=~~C)<0?(C+=M)<0&&(C=0):C>M&&(C=M),(d=void 0===d?M:~~d)<0?(d+=M)<0&&(d=0):d>M&&(d=M),d<C&&(d=C);var D=this.subarray(C,d);return Object.setPrototypeOf(D,z.prototype),D},z.prototype.readUintLE=z.prototype.readUIntLE=function(C,d,M){C>>>=0,d>>>=0,M||C2(C,d,this.length);for(var D=this[C],O=1,P=0;++P<d&&(O*=256);)D+=this[C+P]*O;return D},z.prototype.readUintBE=z.prototype.readUIntBE=function(C,d,M){C>>>=0,d>>>=0,M||C2(C,d,this.length);for(var D=this[C+--d],O=1;d>0&&(O*=256);)D+=this[C+--d]*O;return D},z.prototype.readUint8=z.prototype.readUInt8=function(C,d){return C>>>=0,d||C2(C,1,this.length),this[C]},z.prototype.readUint16LE=z.prototype.readUInt16LE=function(C,d){return C>>>=0,d||C2(C,2,this.length),this[C]|this[C+1]<<8},z.prototype.readUint16BE=z.prototype.readUInt16BE=function(C,d){return C>>>=0,d||C2(C,2,this.length),this[C]<<8|this[C+1]},z.prototype.readUint32LE=z.prototype.readUInt32LE=function(C,d){return C>>>=0,d||C2(C,4,this.length),(this[C]|this[C+1]<<8|this[C+2]<<16)+16777216*this[C+3]},z.prototype.readUint32BE=z.prototype.readUInt32BE=function(C,d){return C>>>=0,d||C2(C,4,this.length),16777216*this[C]+(this[C+1]<<16|this[C+2]<<8|this[C+3])},z.prototype.readIntLE=function(C,d,M){C>>>=0,d>>>=0,M||C2(C,d,this.length);for(var D=this[C],O=1,P=0;++P<d&&(O*=256);)D+=this[C+P]*O;return D>=(O*=128)&&(D-=Math.pow(2,8*d)),D},z.prototype.readIntBE=function(C,d,M){C>>>=0,d>>>=0,M||C2(C,d,this.length);for(var D=d,O=1,P=this[C+--D];D>0&&(O*=256);)P+=this[C+--D]*O;return P>=(O*=128)&&(P-=Math.pow(2,8*d)),P},z.prototype.readInt8=function(C,d){return C>>>=0,d||C2(C,1,this.length),128&this[C]?-1*(255-this[C]+1):this[C]},z.prototype.readInt16LE=function(C,d){C>>>=0,d||C2(C,2,this.length);var M=this[C]|this[C+1]<<8;return 32768&M?4294901760|M:M},z.prototype.readInt16BE=function(C,d){C>>>=0,d||C2(C,2,this.length);var M=this[C+1]|this[C]<<8;return 32768&M?4294901760|M:M},z.prototype.readInt32LE=function(C,d){return C>>>=0,d||C2(C,4,this.length),this[C]|this[C+1]<<8|this[C+2]<<16|this[C+3]<<24},z.prototype.readInt32BE=function(C,d){return C>>>=0,d||C2(C,4,this.length),this[C]<<24|this[C+1]<<16|this[C+2]<<8|this[C+3]},z.prototype.readFloatLE=function(C,d){return C>>>=0,d||C2(C,4,this.length),p1.read(this,C,!0,23,4)},z.prototype.readFloatBE=function(C,d){return C>>>=0,d||C2(C,4,this.length),p1.read(this,C,!1,23,4)},z.prototype.readDoubleLE=function(C,d){return C>>>=0,d||C2(C,8,this.length),p1.read(this,C,!0,52,8)},z.prototype.readDoubleBE=function(C,d){return C>>>=0,d||C2(C,8,this.length),p1.read(this,C,!1,52,8)},z.prototype.writeUintLE=z.prototype.writeUIntLE=function(C,d,M,D){C=+C,d>>>=0,M>>>=0,D||q1(this,C,d,M,Math.pow(2,8*M)-1,0);var P=1,D2=0;for(this[d]=255&C;++D2<M&&(P*=256);)this[d+D2]=C/P&255;return d+M},z.prototype.writeUintBE=z.prototype.writeUIntBE=function(C,d,M,D){C=+C,d>>>=0,M>>>=0,D||q1(this,C,d,M,Math.pow(2,8*M)-1,0);var P=M-1,D2=1;for(this[d+P]=255&C;--P>=0&&(D2*=256);)this[d+P]=C/D2&255;return d+M},z.prototype.writeUint8=z.prototype.writeUInt8=function(C,d,M){return C=+C,d>>>=0,M||q1(this,C,d,1,255,0),this[d]=255&C,d+1},z.prototype.writeUint16LE=z.prototype.writeUInt16LE=function(C,d,M){return C=+C,d>>>=0,M||q1(this,C,d,2,65535,0),this[d]=255&C,this[d+1]=C>>>8,d+2},z.prototype.writeUint16BE=z.prototype.writeUInt16BE=function(C,d,M){return C=+C,d>>>=0,M||q1(this,C,d,2,65535,0),this[d]=C>>>8,this[d+1]=255&C,d+2},z.prototype.writeUint32LE=z.prototype.writeUInt32LE=function(C,d,M){return C=+C,d>>>=0,M||q1(this,C,d,4,4294967295,0),this[d+3]=C>>>24,this[d+2]=C>>>16,this[d+1]=C>>>8,this[d]=255&C,d+4},z.prototype.writeUint32BE=z.prototype.writeUInt32BE=function(C,d,M){return C=+C,d>>>=0,M||q1(this,C,d,4,4294967295,0),this[d]=C>>>24,this[d+1]=C>>>16,this[d+2]=C>>>8,this[d+3]=255&C,d+4},z.prototype.writeIntLE=function(C,d,M,D){if(C=+C,d>>>=0,!D){var O=Math.pow(2,8*M-1);q1(this,C,d,M,O-1,-O)}var P=0,D2=1,w2=0;for(this[d]=255&C;++P<M&&(D2*=256);)C<0&&0===w2&&0!==this[d+P-1]&&(w2=1),this[d+P]=(C/D2>>0)-w2&255;return d+M},z.prototype.writeIntBE=function(C,d,M,D){if(C=+C,d>>>=0,!D){var O=Math.pow(2,8*M-1);q1(this,C,d,M,O-1,-O)}var P=M-1,D2=1,w2=0;for(this[d+P]=255&C;--P>=0&&(D2*=256);)C<0&&0===w2&&0!==this[d+P+1]&&(w2=1),this[d+P]=(C/D2>>0)-w2&255;return d+M},z.prototype.writeInt8=function(C,d,M){return C=+C,d>>>=0,M||q1(this,C,d,1,127,-128),C<0&&(C=255+C+1),this[d]=255&C,d+1},z.prototype.writeInt16LE=function(C,d,M){return C=+C,d>>>=0,M||q1(this,C,d,2,32767,-32768),this[d]=255&C,this[d+1]=C>>>8,d+2},z.prototype.writeInt16BE=function(C,d,M){return C=+C,d>>>=0,M||q1(this,C,d,2,32767,-32768),this[d]=C>>>8,this[d+1]=255&C,d+2},z.prototype.writeInt32LE=function(C,d,M){return C=+C,d>>>=0,M||q1(this,C,d,4,2147483647,-2147483648),this[d]=255&C,this[d+1]=C>>>8,this[d+2]=C>>>16,this[d+3]=C>>>24,d+4},z.prototype.writeInt32BE=function(C,d,M){return C=+C,d>>>=0,M||q1(this,C,d,4,2147483647,-2147483648),C<0&&(C=4294967295+C+1),this[d]=C>>>24,this[d+1]=C>>>16,this[d+2]=C>>>8,this[d+3]=255&C,d+4},z.prototype.writeFloatLE=function(C,d,M){return a1(this,C,d,!0,M)},z.prototype.writeFloatBE=function(C,d,M){return a1(this,C,d,!1,M)},z.prototype.writeDoubleLE=function(C,d,M){return O2(this,C,d,!0,M)},z.prototype.writeDoubleBE=function(C,d,M){return O2(this,C,d,!1,M)},z.prototype.copy=function(C,d,M,D){if(!z.isBuffer(C))throw new TypeError("argument should be a Buffer");if(M||(M=0),!D&&0!==D&&(D=this.length),d>=C.length&&(d=C.length),d||(d=0),D>0&&D<M&&(D=M),D===M||0===C.length||0===this.length)return 0;if(d<0)throw new RangeError("targetStart out of bounds");if(M<0||M>=this.length)throw new RangeError("Index out of range");if(D<0)throw new RangeError("sourceEnd out of bounds");D>this.length&&(D=this.length),C.length-d<D-M&&(D=C.length-d+M);var O=D-M;return this===C&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(d,M,D):Uint8Array.prototype.set.call(C,this.subarray(M,D),d),O},z.prototype.fill=function(C,d,M,D){if("string"==typeof C){if("string"==typeof d?(D=d,d=0,M=this.length):"string"==typeof M&&(D=M,M=this.length),void 0!==D&&"string"!=typeof D)throw new TypeError("encoding must be a string");if("string"==typeof D&&!z.isEncoding(D))throw new TypeError("Unknown encoding: "+D);if(1===C.length){var O=C.charCodeAt(0);("utf8"===D&&O<128||"latin1"===D)&&(C=O)}}else"number"==typeof C?C&=255:"boolean"==typeof C&&(C=Number(C));if(d<0||this.length<d||this.length<M)throw new RangeError("Out of range index");if(M<=d)return this;var P;if(d>>>=0,M=void 0===M?this.length:M>>>0,C||(C=0),"number"==typeof C)for(P=d;P<M;++P)this[P]=C;else{var D2=z.isBuffer(C)?C:z.from(C,D),w2=D2.length;if(0===w2)throw new TypeError('The value "'+C+'" is invalid for argument "value"');for(P=0;P<M-d;++P)this[P+d]=D2[P%w2]}return this};var Ii=/[^+/0-9A-Za-z-_]/g;function Ue(v,C){C=C||1/0;for(var d,M=v.length,D=null,O=[],P=0;P<M;++P){if((d=v.charCodeAt(P))>55295&&d<57344){if(!D){if(d>56319){(C-=3)>-1&&O.push(239,191,189);continue}if(P+1===M){(C-=3)>-1&&O.push(239,191,189);continue}D=d;continue}if(d<56320){(C-=3)>-1&&O.push(239,191,189),D=d;continue}d=65536+(D-55296<<10|d-56320)}else D&&(C-=3)>-1&&O.push(239,191,189);if(D=null,d<128){if((C-=1)<0)break;O.push(d)}else if(d<2048){if((C-=2)<0)break;O.push(d>>6|192,63&d|128)}else if(d<65536){if((C-=3)<0)break;O.push(d>>12|224,d>>6&63|128,63&d|128)}else{if(!(d<1114112))throw new Error("Invalid code point");if((C-=4)<0)break;O.push(d>>18|240,d>>12&63|128,d>>6&63|128,63&d|128)}}return O}function Oi(v){return n3.toByteArray(function m2(v){if((v=(v=v.split("=")[0]).trim().replace(Ii,"")).length<2)return"";for(;v.length%4!=0;)v+="=";return v}(v))}function $6(v,C,d,M){for(var D=0;D<M&&!(D+d>=C.length||D>=v.length);++D)C[D+d]=v[D];return D}function s4(v,C){return v instanceof C||null!=v&&null!=v.constructor&&null!=v.constructor.name&&v.constructor.name===C.name}function Pn(v){return v!=v}var Ri=function(){for(var v="0123456789abcdef",C=new Array(256),d=0;d<16;++d)for(var M=16*d,D=0;D<16;++D)C[M+D]=v[d]+v[D];return C}()},461:(wt,N3)=>{N3.read=function(r1,K,n3,p1,W2){var H2,x2,e1=8*W2-p1-1,z=(1<<e1)-1,S1=z>>1,t1=-7,N1=n3?W2-1:0,k1=n3?-1:1,n2=r1[K+N1];for(N1+=k1,H2=n2&(1<<-t1)-1,n2>>=-t1,t1+=e1;t1>0;H2=256*H2+r1[K+N1],N1+=k1,t1-=8);for(x2=H2&(1<<-t1)-1,H2>>=-t1,t1+=p1;t1>0;x2=256*x2+r1[K+N1],N1+=k1,t1-=8);if(0===H2)H2=1-S1;else{if(H2===z)return x2?NaN:1/0*(n2?-1:1);x2+=Math.pow(2,p1),H2-=S1}return(n2?-1:1)*x2*Math.pow(2,H2-p1)},N3.write=function(r1,K,n3,p1,W2,H2){var x2,e1,z,S1=8*H2-W2-1,t1=(1<<S1)-1,N1=t1>>1,k1=23===W2?Math.pow(2,-24)-Math.pow(2,-77):0,n2=p1?0:H2-1,_2=p1?1:-1,F2=K<0||0===K&&1/K<0?1:0;for(K=Math.abs(K),isNaN(K)||K===1/0?(e1=isNaN(K)?1:0,x2=t1):(x2=Math.floor(Math.log(K)/Math.LN2),K*(z=Math.pow(2,-x2))<1&&(x2--,z*=2),(K+=x2+N1>=1?k1/z:k1*Math.pow(2,1-N1))*z>=2&&(x2++,z/=2),x2+N1>=t1?(e1=0,x2=t1):x2+N1>=1?(e1=(K*z-1)*Math.pow(2,W2),x2+=N1):(e1=K*Math.pow(2,N1-1)*Math.pow(2,W2),x2=0));W2>=8;r1[n3+n2]=255&e1,n2+=_2,e1/=256,W2-=8);for(x2=x2<<W2|e1,S1+=W2;S1>0;r1[n3+n2]=255&x2,n2+=_2,x2/=256,S1-=8);r1[n3+n2-_2]|=128*F2}}},wt=>{wt(wt.s=623)}]);
|